@halo-dev/api-client 2.22.0 → 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.ts +676 -587
- package/dist/index.iife.js +2 -2
- package/dist/index.js +1350 -1438
- package/package.json +36 -15
package/dist/index.iife.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var HaloApiClient=(function(e,t){var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},u=(e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));t=u(t);let d=`http://localhost:8091`.replace(/\/+$/,``);var f=class{constructor(e,n=d,r=t.default){this.basePath=n,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath??n)}},p=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}};let m={},h=`https://example.com`,g=function(e,t,n){if(n==null)throw new p(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},_=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},v=async function(e,t){t&&t.accessToken&&(e.Authorization=`Bearer `+(typeof t.accessToken==`function`?await t.accessToken():await t.accessToken))};function y(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>y(e,t,n)):Object.keys(t).forEach(r=>y(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}let b=function(e,...t){let n=new URLSearchParams(e.search);y(n,t),e.search=n.toString()},x=function(e,t,n){let r=typeof e!=`string`;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers[`Content-Type`]):r)?JSON.stringify(e===void 0?{}:e):e||``},S=function(e){return e.pathname+e.search+e.hash},C=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)}},w=function(e){return{createAnnotationSetting:async(t,n={})=>{let r=new URL(`/api/v1alpha1/annotationsettings`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteAnnotationSetting:async(t,n={})=>{g(`deleteAnnotationSetting`,`name`,t);let r=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getAnnotationSetting:async(t,n={})=>{g(`getAnnotationSetting`,`name`,t);let r=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAnnotationSetting:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/annotationsettings`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchAnnotationSetting:async(t,n,r={})=>{g(`patchAnnotationSetting`,`name`,t);let i=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateAnnotationSetting:async(t,n,r={})=>{g(`updateAnnotationSetting`,`name`,t);let i=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},T=function(e){let n=w(e);return{async createAnnotationSetting(r,i){let a=await n.createAnnotationSetting(r,i),o=e?.serverIndex??0,s=m[`AnnotationSettingV1alpha1Api.createAnnotationSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteAnnotationSetting(r,i){let a=await n.deleteAnnotationSetting(r,i),o=e?.serverIndex??0,s=m[`AnnotationSettingV1alpha1Api.deleteAnnotationSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getAnnotationSetting(r,i){let a=await n.getAnnotationSetting(r,i),o=e?.serverIndex??0,s=m[`AnnotationSettingV1alpha1Api.getAnnotationSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAnnotationSetting(r,i,a,o,s,c){let l=await n.listAnnotationSetting(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`AnnotationSettingV1alpha1Api.listAnnotationSetting`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchAnnotationSetting(r,i,a){let o=await n.patchAnnotationSetting(r,i,a),s=e?.serverIndex??0,c=m[`AnnotationSettingV1alpha1Api.patchAnnotationSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateAnnotationSetting(r,i,a){let o=await n.updateAnnotationSetting(r,i,a),s=e?.serverIndex??0,c=m[`AnnotationSettingV1alpha1Api.updateAnnotationSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},E=function(e,t,n){let r=T(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 D=class extends f{createAnnotationSetting(e={},t){return T(this.configuration).createAnnotationSetting(e.annotationSetting,t).then(e=>e(this.axios,this.basePath))}deleteAnnotationSetting(e,t){return T(this.configuration).deleteAnnotationSetting(e.name,t).then(e=>e(this.axios,this.basePath))}getAnnotationSetting(e,t){return T(this.configuration).getAnnotationSetting(e.name,t).then(e=>e(this.axios,this.basePath))}listAnnotationSetting(e={},t){return T(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 T(this.configuration).patchAnnotationSetting(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAnnotationSetting(e,t){return T(this.configuration).updateAnnotationSetting(e.name,e.annotationSetting,t).then(e=>e(this.axios,this.basePath))}};let O=function(e){return{createAttachment:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/attachments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteAttachment:async(t,n={})=>{g(`deleteAttachment`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getAttachment:async(t,n={})=>{g(`getAttachment`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAttachment:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/attachments`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchAttachment:async(t,n,r={})=>{g(`patchAttachment`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateAttachment:async(t,n,r={})=>{g(`updateAttachment`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},k=function(e){let n=O(e);return{async createAttachment(r,i){let a=await n.createAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1Api.createAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteAttachment(r,i){let a=await n.deleteAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1Api.deleteAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getAttachment(r,i){let a=await n.getAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1Api.getAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAttachment(r,i,a,o,s,c){let l=await n.listAttachment(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`AttachmentV1alpha1Api.listAttachment`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchAttachment(r,i,a){let o=await n.patchAttachment(r,i,a),s=e?.serverIndex??0,c=m[`AttachmentV1alpha1Api.patchAttachment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateAttachment(r,i,a){let o=await n.updateAttachment(r,i,a),s=e?.serverIndex??0,c=m[`AttachmentV1alpha1Api.updateAttachment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},A=function(e,t,n){let r=k(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 j=class extends f{createAttachment(e={},t){return k(this.configuration).createAttachment(e.attachment,t).then(e=>e(this.axios,this.basePath))}deleteAttachment(e,t){return k(this.configuration).deleteAttachment(e.name,t).then(e=>e(this.axios,this.basePath))}getAttachment(e,t){return k(this.configuration).getAttachment(e.name,t).then(e=>e(this.axios,this.basePath))}listAttachment(e={},t){return k(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 k(this.configuration).patchAttachment(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAttachment(e,t){return k(this.configuration).updateAttachment(e.name,e.attachment,t).then(e=>e(this.axios,this.basePath))}};let M=function(e){return{externalTransferAttachment:async(t,n={})=>{g(`externalTransferAttachment`,`uploadFromUrlRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/attachments/-/upload-from-url`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},searchAttachments:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/api.console.halo.run/v1alpha1/attachments`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.ungrouped=o),s!==void 0&&(m.keyword=s),c&&(m.accepts=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},uploadAttachment:async(t,n,r,i={})=>{g(`uploadAttachment`,`file`,t),g(`uploadAttachment`,`policyName`,n);let a=new URL(`/apis/api.console.halo.run/v1alpha1/attachments/upload`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),r!==void 0&&u.append(`groupName`,r),n!==void 0&&u.append(`policyName`,n),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}},uploadAttachmentForConsole:async(t,n,r,i={})=>{let a=new URL(`/apis/console.api.storage.halo.run/v1alpha1/attachments/-/upload`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),n!==void 0&&u.append(`filename`,n),r!==void 0&&u.append(`url`,r),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}}}},N=function(e){let n=M(e);return{async externalTransferAttachment(r,i){let a=await n.externalTransferAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1ConsoleApi.externalTransferAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async searchAttachments(r,i,a,o,s,c,l,u,f){let p=await n.searchAttachments(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`AttachmentV1alpha1ConsoleApi.searchAttachments`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async uploadAttachment(r,i,a,o){let s=await n.uploadAttachment(r,i,a,o),c=e?.serverIndex??0,l=m[`AttachmentV1alpha1ConsoleApi.uploadAttachment`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async uploadAttachmentForConsole(r,i,a,o){let s=await n.uploadAttachmentForConsole(r,i,a,o),c=e?.serverIndex??0,l=m[`AttachmentV1alpha1ConsoleApi.uploadAttachmentForConsole`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},ee=function(e,t,n){let r=N(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))},uploadAttachmentForConsole(e={},i){return r.uploadAttachmentForConsole(e.file,e.filename,e.url,i).then(e=>e(n,t))}}};var P=class extends f{externalTransferAttachment(e,t){return N(this.configuration).externalTransferAttachment(e.uploadFromUrlRequest,t).then(e=>e(this.axios,this.basePath))}searchAttachments(e={},t){return N(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 N(this.configuration).uploadAttachment(e.file,e.policyName,e.groupName,t).then(e=>e(this.axios,this.basePath))}uploadAttachmentForConsole(e={},t){return N(this.configuration).uploadAttachmentForConsole(e.file,e.filename,e.url,t).then(e=>e(this.axios,this.basePath))}};let F=function(e){return{createAttachmentForPost:async(t,n,r,i,a={})=>{g(`createAttachmentForPost`,`file`,t);let o=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments`,h),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...a},l={},u={},d=new(e&&e.formDataCtor||FormData);_(c,e),await v(l,e),n!==void 0&&(u.waitForPermalink=n),t!==void 0&&d.append(`file`,t),r!==void 0&&d.append(`postName`,r),i!==void 0&&d.append(`singlePageName`,i),l[`Content-Type`]=`multipart/form-data`,b(o,u);let f=s&&s.headers?s.headers:{};return c.headers={...l,...f,...a.headers},c.data=d,{url:S(o),options:c}},externalTransferAttachment1:async(t,n,r={})=>{g(`externalTransferAttachment1`,`ucUploadFromUrlRequest`,t);let i=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload-from-url`,h),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={},c={};_(o,e),await v(s,e),n!==void 0&&(c.waitForPermalink=n),s[`Content-Type`]=`application/json`,b(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},o.data=x(t,o,e),{url:S(i),options:o}},listMyAttachments:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.ungrouped=o),s!==void 0&&(m.keyword=s),c&&(m.accepts=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},uploadAttachmentForUc:async(t,n,r,i={})=>{let a=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),n!==void 0&&u.append(`filename`,n),r!==void 0&&u.append(`url`,r),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}}}},I=function(e){let n=F(e);return{async createAttachmentForPost(r,i,a,o,s){let c=await n.createAttachmentForPost(r,i,a,o,s),l=e?.serverIndex??0,u=m[`AttachmentV1alpha1UcApi.createAttachmentForPost`]?.[l]?.url;return(n,r)=>C(c,t.default,d,e)(n,u||r)},async externalTransferAttachment1(r,i,a){let o=await n.externalTransferAttachment1(r,i,a),s=e?.serverIndex??0,c=m[`AttachmentV1alpha1UcApi.externalTransferAttachment1`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listMyAttachments(r,i,a,o,s,c,l,u,f){let p=await n.listMyAttachments(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`AttachmentV1alpha1UcApi.listMyAttachments`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async uploadAttachmentForUc(r,i,a,o){let s=await n.uploadAttachmentForUc(r,i,a,o),c=e?.serverIndex??0,l=m[`AttachmentV1alpha1UcApi.uploadAttachmentForUc`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},te=function(e,t,n){let r=I(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))},uploadAttachmentForUc(e={},i){return r.uploadAttachmentForUc(e.file,e.filename,e.url,i).then(e=>e(n,t))}}};var L=class extends f{createAttachmentForPost(e,t){return I(this.configuration).createAttachmentForPost(e.file,e.waitForPermalink,e.postName,e.singlePageName,t).then(e=>e(this.axios,this.basePath))}externalTransferAttachment1(e,t){return I(this.configuration).externalTransferAttachment1(e.ucUploadFromUrlRequest,e.waitForPermalink,t).then(e=>e(this.axios,this.basePath))}listMyAttachments(e={},t){return I(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))}uploadAttachmentForUc(e={},t){return I(this.configuration).uploadAttachmentForUc(e.file,e.filename,e.url,t).then(e=>e(this.axios,this.basePath))}};let ne=function(e){return{createAuthProvider:async(t,n={})=>{let r=new URL(`/apis/auth.halo.run/v1alpha1/authproviders`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteAuthProvider:async(t,n={})=>{g(`deleteAuthProvider`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getAuthProvider:async(t,n={})=>{g(`getAuthProvider`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAuthProvider:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/auth.halo.run/v1alpha1/authproviders`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchAuthProvider:async(t,n,r={})=>{g(`patchAuthProvider`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateAuthProvider:async(t,n,r={})=>{g(`updateAuthProvider`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},R=function(e){let n=ne(e);return{async createAuthProvider(r,i){let a=await n.createAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1Api.createAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteAuthProvider(r,i){let a=await n.deleteAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1Api.deleteAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getAuthProvider(r,i){let a=await n.getAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1Api.getAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAuthProvider(r,i,a,o,s,c){let l=await n.listAuthProvider(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`AuthProviderV1alpha1Api.listAuthProvider`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchAuthProvider(r,i,a){let o=await n.patchAuthProvider(r,i,a),s=e?.serverIndex??0,c=m[`AuthProviderV1alpha1Api.patchAuthProvider`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateAuthProvider(r,i,a){let o=await n.updateAuthProvider(r,i,a),s=e?.serverIndex??0,c=m[`AuthProviderV1alpha1Api.updateAuthProvider`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},re=function(e,t,n){let r=R(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 ie=class extends f{createAuthProvider(e={},t){return R(this.configuration).createAuthProvider(e.authProvider,t).then(e=>e(this.axios,this.basePath))}deleteAuthProvider(e,t){return R(this.configuration).deleteAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}getAuthProvider(e,t){return R(this.configuration).getAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}listAuthProvider(e={},t){return R(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 R(this.configuration).patchAuthProvider(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAuthProvider(e,t){return R(this.configuration).updateAuthProvider(e.name,e.authProvider,t).then(e=>e(this.axios,this.basePath))}};let ae=function(e){return{disableAuthProvider:async(t,n={})=>{g(`disableAuthProvider`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},enableAuthProvider:async(t,n={})=>{g(`enableAuthProvider`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAuthProviders:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/auth-providers`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},oe=function(e){let n=ae(e);return{async disableAuthProvider(r,i){let a=await n.disableAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1ConsoleApi.disableAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async enableAuthProvider(r,i){let a=await n.enableAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1ConsoleApi.enableAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAuthProviders(r){let i=await n.listAuthProviders(r),a=e?.serverIndex??0,o=m[`AuthProviderV1alpha1ConsoleApi.listAuthProviders`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},se=function(e,t,n){let r=oe(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 ce=class extends f{disableAuthProvider(e,t){return oe(this.configuration).disableAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}enableAuthProvider(e,t){return oe(this.configuration).enableAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}listAuthProviders(e){return oe(this.configuration).listAuthProviders(e).then(e=>e(this.axios,this.basePath))}};let le=function(e){return{createBackup:async(t,n={})=>{let r=new URL(`/apis/migration.halo.run/v1alpha1/backups`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteBackup:async(t,n={})=>{g(`deleteBackup`,`name`,t);let r=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getBackup:async(t,n={})=>{g(`getBackup`,`name`,t);let r=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listBackup:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/migration.halo.run/v1alpha1/backups`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchBackup:async(t,n,r={})=>{g(`patchBackup`,`name`,t);let i=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateBackup:async(t,n,r={})=>{g(`updateBackup`,`name`,t);let i=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},z=function(e){let n=le(e);return{async createBackup(r,i){let a=await n.createBackup(r,i),o=e?.serverIndex??0,s=m[`BackupV1alpha1Api.createBackup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteBackup(r,i){let a=await n.deleteBackup(r,i),o=e?.serverIndex??0,s=m[`BackupV1alpha1Api.deleteBackup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getBackup(r,i){let a=await n.getBackup(r,i),o=e?.serverIndex??0,s=m[`BackupV1alpha1Api.getBackup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listBackup(r,i,a,o,s,c){let l=await n.listBackup(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`BackupV1alpha1Api.listBackup`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchBackup(r,i,a){let o=await n.patchBackup(r,i,a),s=e?.serverIndex??0,c=m[`BackupV1alpha1Api.patchBackup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateBackup(r,i,a){let o=await n.updateBackup(r,i,a),s=e?.serverIndex??0,c=m[`BackupV1alpha1Api.updateBackup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ue=function(e,t,n){let r=z(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 de=class extends f{createBackup(e={},t){return z(this.configuration).createBackup(e.backup,t).then(e=>e(this.axios,this.basePath))}deleteBackup(e,t){return z(this.configuration).deleteBackup(e.name,t).then(e=>e(this.axios,this.basePath))}getBackup(e,t){return z(this.configuration).getBackup(e.name,t).then(e=>e(this.axios,this.basePath))}listBackup(e={},t){return z(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 z(this.configuration).patchBackup(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateBackup(e,t){return z(this.configuration).updateBackup(e.name,e.backup,t).then(e=>e(this.axios,this.basePath))}};let B=function(e){return{createCategory:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/categories`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteCategory:async(t,n={})=>{g(`deleteCategory`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getCategory:async(t,n={})=>{g(`getCategory`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listCategory:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/categories`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchCategory:async(t,n,r={})=>{g(`patchCategory`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateCategory:async(t,n,r={})=>{g(`updateCategory`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},V=function(e){let n=B(e);return{async createCategory(r,i){let a=await n.createCategory(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1Api.createCategory`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteCategory(r,i){let a=await n.deleteCategory(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1Api.deleteCategory`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getCategory(r,i){let a=await n.getCategory(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1Api.getCategory`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listCategory(r,i,a,o,s,c){let l=await n.listCategory(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CategoryV1alpha1Api.listCategory`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchCategory(r,i,a){let o=await n.patchCategory(r,i,a),s=e?.serverIndex??0,c=m[`CategoryV1alpha1Api.patchCategory`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateCategory(r,i,a){let o=await n.updateCategory(r,i,a),s=e?.serverIndex??0,c=m[`CategoryV1alpha1Api.updateCategory`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},fe=function(e,t,n){let r=V(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 pe=class extends f{createCategory(e={},t){return V(this.configuration).createCategory(e.category,t).then(e=>e(this.axios,this.basePath))}deleteCategory(e,t){return V(this.configuration).deleteCategory(e.name,t).then(e=>e(this.axios,this.basePath))}getCategory(e,t){return V(this.configuration).getCategory(e.name,t).then(e=>e(this.axios,this.basePath))}listCategory(e={},t){return V(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 V(this.configuration).patchCategory(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateCategory(e,t){return V(this.configuration).updateCategory(e.name,e.category,t).then(e=>e(this.axios,this.basePath))}};let me=function(e){return{queryCategories:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/categories`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},queryCategoryByName:async(t,n={})=>{g(`queryCategoryByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPostsByCategoryName:async(t,n,r,i,a,o,s={})=>{g(`queryPostsByCategoryName`,`name`,t);let c=`/apis/api.content.halo.run/v1alpha1/categories/{name}/posts`.replace(`{name}`,encodeURIComponent(String(t))),l=new URL(c,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};_(d,e),await v(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),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:S(l),options:d}}}},he=function(e){let n=me(e);return{async queryCategories(r,i,a,o,s,c){let l=await n.queryCategories(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CategoryV1alpha1PublicApi.queryCategories`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async queryCategoryByName(r,i){let a=await n.queryCategoryByName(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1PublicApi.queryCategoryByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPostsByCategoryName(r,i,a,o,s,c,l){let u=await n.queryPostsByCategoryName(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`CategoryV1alpha1PublicApi.queryPostsByCategoryName`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)}}},ge=function(e,t,n){let r=he(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 _e=class extends f{queryCategories(e={},t){return he(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 he(this.configuration).queryCategoryByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPostsByCategoryName(e,t){return he(this.configuration).queryPostsByCategoryName(e.name,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};let ve=function(e){return{createComment:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/comments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteComment:async(t,n={})=>{g(`deleteComment`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getComment:async(t,n={})=>{g(`getComment`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listComment:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/comments`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchComment:async(t,n,r={})=>{g(`patchComment`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateComment:async(t,n,r={})=>{g(`updateComment`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},H=function(e){let n=ve(e);return{async createComment(r,i){let a=await n.createComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1Api.createComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteComment(r,i){let a=await n.deleteComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1Api.deleteComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getComment(r,i){let a=await n.getComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1Api.getComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listComment(r,i,a,o,s,c){let l=await n.listComment(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CommentV1alpha1Api.listComment`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchComment(r,i,a){let o=await n.patchComment(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1Api.patchComment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateComment(r,i,a){let o=await n.updateComment(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1Api.updateComment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ye=function(e,t,n){let r=H(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 be=class extends f{createComment(e={},t){return H(this.configuration).createComment(e.comment,t).then(e=>e(this.axios,this.basePath))}deleteComment(e,t){return H(this.configuration).deleteComment(e.name,t).then(e=>e(this.axios,this.basePath))}getComment(e,t){return H(this.configuration).getComment(e.name,t).then(e=>e(this.axios,this.basePath))}listComment(e={},t){return H(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 H(this.configuration).patchComment(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateComment(e,t){return H(this.configuration).updateComment(e.name,e.comment,t).then(e=>e(this.axios,this.basePath))}};let xe=function(e){return{createComment:async(t,n={})=>{g(`createComment`,`commentRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/comments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},createReply:async(t,n,r={})=>{g(`createReply`,`name`,t),g(`createReply`,`replyRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},listComments:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/api.console.halo.run/v1alpha1/comments`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.keyword=o),s!==void 0&&(m.ownerKind=s),c!==void 0&&(m.ownerName=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}}}},U=function(e){let n=xe(e);return{async createComment(r,i){let a=await n.createComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1ConsoleApi.createComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async createReply(r,i,a){let o=await n.createReply(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1ConsoleApi.createReply`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listComments(r,i,a,o,s,c,l,u,f){let p=await n.listComments(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`CommentV1alpha1ConsoleApi.listComments`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)}}},Se=function(e,t,n){let r=U(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 Ce=class extends f{createComment(e,t){return U(this.configuration).createComment(e.commentRequest,t).then(e=>e(this.axios,this.basePath))}createReply(e,t){return U(this.configuration).createReply(e.name,e.replyRequest,t).then(e=>e(this.axios,this.basePath))}listComments(e={},t){return U(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))}};let we=function(e){return{createComment1:async(t,n={})=>{g(`createComment1`,`commentRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/comments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},createReply1:async(t,n,r={})=>{g(`createReply1`,`name`,t),g(`createReply1`,`replyRequest`,n);let i=`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},getComment:async(t,n={})=>{g(`getComment`,`name`,t);let r=`/apis/api.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listCommentReplies:async(t,n,r,i={})=>{g(`listCommentReplies`,`name`,t);let a=`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,h),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};_(c,e),await v(l,e),n!==void 0&&(u.page=n),r!==void 0&&(u.size=r),b(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:S(o),options:c}},listComments1:async(t,n,r,i,a,o,s,c,l,u={})=>{g(`listComments1`,`version`,t),g(`listComments1`,`kind`,n),g(`listComments1`,`name`,r);let d=new URL(`/apis/api.halo.run/v1alpha1/comments`,h),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...u},m={},y={};_(p,e),await v(m,e),i!==void 0&&(y.page=i),a!==void 0&&(y.size=a),o&&(y.sort=o),s!==void 0&&(y.group=s),t!==void 0&&(y.version=t),n!==void 0&&(y.kind=n),r!==void 0&&(y.name=r),c!==void 0&&(y.withReplies=c),l!==void 0&&(y.replySize=l),b(d,y);let x=f&&f.headers?f.headers:{};return p.headers={...m,...x,...u.headers},{url:S(d),options:p}}}},W=function(e){let n=we(e);return{async createComment1(r,i){let a=await n.createComment1(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1PublicApi.createComment1`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async createReply1(r,i,a){let o=await n.createReply1(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1PublicApi.createReply1`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async getComment(r,i){let a=await n.getComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1PublicApi.getComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listCommentReplies(r,i,a,o){let s=await n.listCommentReplies(r,i,a,o),c=e?.serverIndex??0,l=m[`CommentV1alpha1PublicApi.listCommentReplies`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async listComments1(r,i,a,o,s,c,l,u,f,p){let h=await n.listComments1(r,i,a,o,s,c,l,u,f,p),g=e?.serverIndex??0,_=m[`CommentV1alpha1PublicApi.listComments1`]?.[g]?.url;return(n,r)=>C(h,t.default,d,e)(n,_||r)}}},Te=function(e,t,n){let r=W(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 Ee=class extends f{createComment1(e,t){return W(this.configuration).createComment1(e.commentRequest,t).then(e=>e(this.axios,this.basePath))}createReply1(e,t){return W(this.configuration).createReply1(e.name,e.replyRequest,t).then(e=>e(this.axios,this.basePath))}getComment(e,t){return W(this.configuration).getComment(e.name,t).then(e=>e(this.axios,this.basePath))}listCommentReplies(e,t){return W(this.configuration).listCommentReplies(e.name,e.page,e.size,t).then(e=>e(this.axios,this.basePath))}listComments1(e,t){return W(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))}};let De=function(e){return{createConfigMap:async(t,n={})=>{let r=new URL(`/api/v1alpha1/configmaps`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteConfigMap:async(t,n={})=>{g(`deleteConfigMap`,`name`,t);let r=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getConfigMap:async(t,n={})=>{g(`getConfigMap`,`name`,t);let r=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listConfigMap:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/configmaps`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchConfigMap:async(t,n,r={})=>{g(`patchConfigMap`,`name`,t);let i=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateConfigMap:async(t,n,r={})=>{g(`updateConfigMap`,`name`,t);let i=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},G=function(e){let n=De(e);return{async createConfigMap(r,i){let a=await n.createConfigMap(r,i),o=e?.serverIndex??0,s=m[`ConfigMapV1alpha1Api.createConfigMap`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteConfigMap(r,i){let a=await n.deleteConfigMap(r,i),o=e?.serverIndex??0,s=m[`ConfigMapV1alpha1Api.deleteConfigMap`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getConfigMap(r,i){let a=await n.getConfigMap(r,i),o=e?.serverIndex??0,s=m[`ConfigMapV1alpha1Api.getConfigMap`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listConfigMap(r,i,a,o,s,c){let l=await n.listConfigMap(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ConfigMapV1alpha1Api.listConfigMap`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchConfigMap(r,i,a){let o=await n.patchConfigMap(r,i,a),s=e?.serverIndex??0,c=m[`ConfigMapV1alpha1Api.patchConfigMap`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateConfigMap(r,i,a){let o=await n.updateConfigMap(r,i,a),s=e?.serverIndex??0,c=m[`ConfigMapV1alpha1Api.updateConfigMap`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Oe=function(e,t,n){let r=G(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 ke=class extends f{createConfigMap(e={},t){return G(this.configuration).createConfigMap(e.configMap,t).then(e=>e(this.axios,this.basePath))}deleteConfigMap(e,t){return G(this.configuration).deleteConfigMap(e.name,t).then(e=>e(this.axios,this.basePath))}getConfigMap(e,t){return G(this.configuration).getConfigMap(e.name,t).then(e=>e(this.axios,this.basePath))}listConfigMap(e={},t){return G(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 G(this.configuration).patchConfigMap(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateConfigMap(e,t){return G(this.configuration).updateConfigMap(e.name,e.configMap,t).then(e=>e(this.axios,this.basePath))}};let Ae=function(e){return{createCounter:async(t,n={})=>{let r=new URL(`/apis/metrics.halo.run/v1alpha1/counters`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteCounter:async(t,n={})=>{g(`deleteCounter`,`name`,t);let r=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getCounter:async(t,n={})=>{g(`getCounter`,`name`,t);let r=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listCounter:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/metrics.halo.run/v1alpha1/counters`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchCounter:async(t,n,r={})=>{g(`patchCounter`,`name`,t);let i=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateCounter:async(t,n,r={})=>{g(`updateCounter`,`name`,t);let i=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},K=function(e){let n=Ae(e);return{async createCounter(r,i){let a=await n.createCounter(r,i),o=e?.serverIndex??0,s=m[`CounterV1alpha1Api.createCounter`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteCounter(r,i){let a=await n.deleteCounter(r,i),o=e?.serverIndex??0,s=m[`CounterV1alpha1Api.deleteCounter`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getCounter(r,i){let a=await n.getCounter(r,i),o=e?.serverIndex??0,s=m[`CounterV1alpha1Api.getCounter`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listCounter(r,i,a,o,s,c){let l=await n.listCounter(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CounterV1alpha1Api.listCounter`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchCounter(r,i,a){let o=await n.patchCounter(r,i,a),s=e?.serverIndex??0,c=m[`CounterV1alpha1Api.patchCounter`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateCounter(r,i,a){let o=await n.updateCounter(r,i,a),s=e?.serverIndex??0,c=m[`CounterV1alpha1Api.updateCounter`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},je=function(e,t,n){let r=K(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 Me=class extends f{createCounter(e={},t){return K(this.configuration).createCounter(e.counter,t).then(e=>e(this.axios,this.basePath))}deleteCounter(e,t){return K(this.configuration).deleteCounter(e.name,t).then(e=>e(this.axios,this.basePath))}getCounter(e,t){return K(this.configuration).getCounter(e.name,t).then(e=>e(this.axios,this.basePath))}listCounter(e={},t){return K(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 K(this.configuration).patchCounter(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateCounter(e,t){return K(this.configuration).updateCounter(e.name,e.counter,t).then(e=>e(this.axios,this.basePath))}};let Ne=function(e){return{setNoCacheForSetUpPage:async(t={})=>{let n=new URL(`/system/setup`,h),r;e&&(r=e.baseOptions);let i={method:`POST`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},Pe=function(e){let n=Ne(e);return{async setNoCacheForSetUpPage(r){let i=await n.setNoCacheForSetUpPage(r),a=e?.serverIndex??0,o=m[`DefaultApi.setNoCacheForSetUpPage`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},Fe=function(e,t,n){let r=Pe(e);return{setNoCacheForSetUpPage(e){return r.setNoCacheForSetUpPage(e).then(e=>e(n,t))}}};var Ie=class extends f{setNoCacheForSetUpPage(e){return Pe(this.configuration).setNoCacheForSetUpPage(e).then(e=>e(this.axios,this.basePath))}};let Le=function(e){return{createDevice:async(t,n={})=>{let r=new URL(`/apis/security.halo.run/v1alpha1/devices`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteDevice:async(t,n={})=>{g(`deleteDevice`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getDevice:async(t,n={})=>{g(`getDevice`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listDevice:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/security.halo.run/v1alpha1/devices`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchDevice:async(t,n,r={})=>{g(`patchDevice`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateDevice:async(t,n,r={})=>{g(`updateDevice`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Re=function(e){let n=Le(e);return{async createDevice(r,i){let a=await n.createDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1Api.createDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteDevice(r,i){let a=await n.deleteDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1Api.deleteDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getDevice(r,i){let a=await n.getDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1Api.getDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listDevice(r,i,a,o,s,c){let l=await n.listDevice(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`DeviceV1alpha1Api.listDevice`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchDevice(r,i,a){let o=await n.patchDevice(r,i,a),s=e?.serverIndex??0,c=m[`DeviceV1alpha1Api.patchDevice`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateDevice(r,i,a){let o=await n.updateDevice(r,i,a),s=e?.serverIndex??0,c=m[`DeviceV1alpha1Api.updateDevice`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ze=function(e,t,n){let r=Re(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 Be=class extends f{createDevice(e={},t){return Re(this.configuration).createDevice(e.device,t).then(e=>e(this.axios,this.basePath))}deleteDevice(e,t){return Re(this.configuration).deleteDevice(e.name,t).then(e=>e(this.axios,this.basePath))}getDevice(e,t){return Re(this.configuration).getDevice(e.name,t).then(e=>e(this.axios,this.basePath))}listDevice(e={},t){return Re(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 Re(this.configuration).patchDevice(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateDevice(e,t){return Re(this.configuration).updateDevice(e.name,e.device,t).then(e=>e(this.axios,this.basePath))}};let Ve=function(e){return{listDevices:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/devices`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},revokeDevice:async(t,n={})=>{g(`revokeDevice`,`deviceId`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/devices/{deviceId}`.replace(`{deviceId}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},He=function(e){let n=Ve(e);return{async listDevices(r){let i=await n.listDevices(r),a=e?.serverIndex??0,o=m[`DeviceV1alpha1UcApi.listDevices`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async revokeDevice(r,i){let a=await n.revokeDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1UcApi.revokeDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},Ue=function(e,t,n){let r=He(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 We=class extends f{listDevices(e){return He(this.configuration).listDevices(e).then(e=>e(this.axios,this.basePath))}revokeDevice(e,t){return He(this.configuration).revokeDevice(e.deviceId,t).then(e=>e(this.axios,this.basePath))}};let Ge=function(e){return{createExtensionDefinition:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/extensiondefinitions`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteExtensionDefinition:async(t,n={})=>{g(`deleteExtensionDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getExtensionDefinition:async(t,n={})=>{g(`getExtensionDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listExtensionDefinition:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/extensiondefinitions`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchExtensionDefinition:async(t,n,r={})=>{g(`patchExtensionDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateExtensionDefinition:async(t,n,r={})=>{g(`updateExtensionDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Ke=function(e){let n=Ge(e);return{async createExtensionDefinition(r,i){let a=await n.createExtensionDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionDefinitionV1alpha1Api.createExtensionDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteExtensionDefinition(r,i){let a=await n.deleteExtensionDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionDefinitionV1alpha1Api.deleteExtensionDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getExtensionDefinition(r,i){let a=await n.getExtensionDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionDefinitionV1alpha1Api.getExtensionDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listExtensionDefinition(r,i,a,o,s,c){let l=await n.listExtensionDefinition(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ExtensionDefinitionV1alpha1Api.listExtensionDefinition`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchExtensionDefinition(r,i,a){let o=await n.patchExtensionDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionDefinitionV1alpha1Api.patchExtensionDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateExtensionDefinition(r,i,a){let o=await n.updateExtensionDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionDefinitionV1alpha1Api.updateExtensionDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},qe=function(e,t,n){let r=Ke(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 Je=class extends f{createExtensionDefinition(e={},t){return Ke(this.configuration).createExtensionDefinition(e.extensionDefinition,t).then(e=>e(this.axios,this.basePath))}deleteExtensionDefinition(e,t){return Ke(this.configuration).deleteExtensionDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}getExtensionDefinition(e,t){return Ke(this.configuration).getExtensionDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}listExtensionDefinition(e={},t){return Ke(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 Ke(this.configuration).patchExtensionDefinition(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateExtensionDefinition(e,t){return Ke(this.configuration).updateExtensionDefinition(e.name,e.extensionDefinition,t).then(e=>e(this.axios,this.basePath))}};let Ye=function(e){return{createExtensionPointDefinition:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteExtensionPointDefinition:async(t,n={})=>{g(`deleteExtensionPointDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getExtensionPointDefinition:async(t,n={})=>{g(`getExtensionPointDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listExtensionPointDefinition:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchExtensionPointDefinition:async(t,n,r={})=>{g(`patchExtensionPointDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateExtensionPointDefinition:async(t,n,r={})=>{g(`updateExtensionPointDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Xe=function(e){let n=Ye(e);return{async createExtensionPointDefinition(r,i){let a=await n.createExtensionPointDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionPointDefinitionV1alpha1Api.createExtensionPointDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteExtensionPointDefinition(r,i){let a=await n.deleteExtensionPointDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionPointDefinitionV1alpha1Api.deleteExtensionPointDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getExtensionPointDefinition(r,i){let a=await n.getExtensionPointDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionPointDefinitionV1alpha1Api.getExtensionPointDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listExtensionPointDefinition(r,i,a,o,s,c){let l=await n.listExtensionPointDefinition(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ExtensionPointDefinitionV1alpha1Api.listExtensionPointDefinition`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchExtensionPointDefinition(r,i,a){let o=await n.patchExtensionPointDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionPointDefinitionV1alpha1Api.patchExtensionPointDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateExtensionPointDefinition(r,i,a){let o=await n.updateExtensionPointDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionPointDefinitionV1alpha1Api.updateExtensionPointDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Ze=function(e,t,n){let r=Xe(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 f{createExtensionPointDefinition(e={},t){return Xe(this.configuration).createExtensionPointDefinition(e.extensionPointDefinition,t).then(e=>e(this.axios,this.basePath))}deleteExtensionPointDefinition(e,t){return Xe(this.configuration).deleteExtensionPointDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}getExtensionPointDefinition(e,t){return Xe(this.configuration).getExtensionPointDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}listExtensionPointDefinition(e={},t){return Xe(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 Xe(this.configuration).patchExtensionPointDefinition(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateExtensionPointDefinition(e,t){return Xe(this.configuration).updateExtensionPointDefinition(e.name,e.extensionPointDefinition,t).then(e=>e(this.axios,this.basePath))}};let $e=function(e){return{createGroup:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/groups`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteGroup:async(t,n={})=>{g(`deleteGroup`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getGroup:async(t,n={})=>{g(`getGroup`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listGroup:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/groups`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchGroup:async(t,n,r={})=>{g(`patchGroup`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateGroup:async(t,n,r={})=>{g(`updateGroup`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},et=function(e){let n=$e(e);return{async createGroup(r,i){let a=await n.createGroup(r,i),o=e?.serverIndex??0,s=m[`GroupV1alpha1Api.createGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteGroup(r,i){let a=await n.deleteGroup(r,i),o=e?.serverIndex??0,s=m[`GroupV1alpha1Api.deleteGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getGroup(r,i){let a=await n.getGroup(r,i),o=e?.serverIndex??0,s=m[`GroupV1alpha1Api.getGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listGroup(r,i,a,o,s,c){let l=await n.listGroup(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`GroupV1alpha1Api.listGroup`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchGroup(r,i,a){let o=await n.patchGroup(r,i,a),s=e?.serverIndex??0,c=m[`GroupV1alpha1Api.patchGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateGroup(r,i,a){let o=await n.updateGroup(r,i,a),s=e?.serverIndex??0,c=m[`GroupV1alpha1Api.updateGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},tt=function(e,t,n){let r=et(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 nt=class extends f{createGroup(e={},t){return et(this.configuration).createGroup(e.group,t).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t){return et(this.configuration).deleteGroup(e.name,t).then(e=>e(this.axios,this.basePath))}getGroup(e,t){return et(this.configuration).getGroup(e.name,t).then(e=>e(this.axios,this.basePath))}listGroup(e={},t){return et(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 et(this.configuration).patchGroup(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateGroup(e,t){return et(this.configuration).updateGroup(e.name,e.group,t).then(e=>e(this.axios,this.basePath))}};let rt=function(e){return{indicesSearch:async(t,n={})=>{let r=new URL(`/apis/api.halo.run/v1alpha1/indices/-/search`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},it=function(e){let n=rt(e);return{async indicesSearch(r,i){let a=await n.indicesSearch(r,i),o=e?.serverIndex??0,s=m[`IndexV1alpha1PublicApi.indicesSearch`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},at=function(e,t,n){let r=it(e);return{indicesSearch(e={},i){return r.indicesSearch(e.searchOption,i).then(e=>e(n,t))}}};var ot=class extends f{indicesSearch(e={},t){return it(this.configuration).indicesSearch(e.searchOption,t).then(e=>e(this.axios,this.basePath))}};let st=function(e){return{rebuildAllIndices:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/indices/-/rebuild`,h),r;e&&(r=e.baseOptions);let i={method:`POST`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},ct=function(e){let n=st(e);return{async rebuildAllIndices(r){let i=await n.rebuildAllIndices(r),a=e?.serverIndex??0,o=m[`IndicesV1alpha1ConsoleApi.rebuildAllIndices`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},lt=function(e,t,n){let r=ct(e);return{rebuildAllIndices(e){return r.rebuildAllIndices(e).then(e=>e(n,t))}}};var ut=class extends f{rebuildAllIndices(e){return ct(this.configuration).rebuildAllIndices(e).then(e=>e(this.axios,this.basePath))}};let dt=function(e){return{createLocalThumbnail:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/localthumbnails`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteLocalThumbnail:async(t,n={})=>{g(`deleteLocalThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getLocalThumbnail:async(t,n={})=>{g(`getLocalThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listLocalThumbnail:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/localthumbnails`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchLocalThumbnail:async(t,n,r={})=>{g(`patchLocalThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateLocalThumbnail:async(t,n,r={})=>{g(`updateLocalThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},q=function(e){let n=dt(e);return{async createLocalThumbnail(r,i){let a=await n.createLocalThumbnail(r,i),o=e?.serverIndex??0,s=m[`LocalThumbnailV1alpha1Api.createLocalThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteLocalThumbnail(r,i){let a=await n.deleteLocalThumbnail(r,i),o=e?.serverIndex??0,s=m[`LocalThumbnailV1alpha1Api.deleteLocalThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getLocalThumbnail(r,i){let a=await n.getLocalThumbnail(r,i),o=e?.serverIndex??0,s=m[`LocalThumbnailV1alpha1Api.getLocalThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listLocalThumbnail(r,i,a,o,s,c){let l=await n.listLocalThumbnail(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`LocalThumbnailV1alpha1Api.listLocalThumbnail`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchLocalThumbnail(r,i,a){let o=await n.patchLocalThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`LocalThumbnailV1alpha1Api.patchLocalThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateLocalThumbnail(r,i,a){let o=await n.updateLocalThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`LocalThumbnailV1alpha1Api.updateLocalThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ft=function(e,t,n){let r=q(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 f{createLocalThumbnail(e={},t){return q(this.configuration).createLocalThumbnail(e.localThumbnail,t).then(e=>e(this.axios,this.basePath))}deleteLocalThumbnail(e,t){return q(this.configuration).deleteLocalThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}getLocalThumbnail(e,t){return q(this.configuration).getLocalThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}listLocalThumbnail(e={},t){return q(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 q(this.configuration).patchLocalThumbnail(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateLocalThumbnail(e,t){return q(this.configuration).updateLocalThumbnail(e.name,e.localThumbnail,t).then(e=>e(this.axios,this.basePath))}};let mt=function(e){return{createMenuItem:async(t,n={})=>{let r=new URL(`/api/v1alpha1/menuitems`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteMenuItem:async(t,n={})=>{g(`deleteMenuItem`,`name`,t);let r=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getMenuItem:async(t,n={})=>{g(`getMenuItem`,`name`,t);let r=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listMenuItem:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/menuitems`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchMenuItem:async(t,n,r={})=>{g(`patchMenuItem`,`name`,t);let i=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateMenuItem:async(t,n,r={})=>{g(`updateMenuItem`,`name`,t);let i=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ht=function(e){let n=mt(e);return{async createMenuItem(r,i){let a=await n.createMenuItem(r,i),o=e?.serverIndex??0,s=m[`MenuItemV1alpha1Api.createMenuItem`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteMenuItem(r,i){let a=await n.deleteMenuItem(r,i),o=e?.serverIndex??0,s=m[`MenuItemV1alpha1Api.deleteMenuItem`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMenuItem(r,i){let a=await n.getMenuItem(r,i),o=e?.serverIndex??0,s=m[`MenuItemV1alpha1Api.getMenuItem`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listMenuItem(r,i,a,o,s,c){let l=await n.listMenuItem(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`MenuItemV1alpha1Api.listMenuItem`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchMenuItem(r,i,a){let o=await n.patchMenuItem(r,i,a),s=e?.serverIndex??0,c=m[`MenuItemV1alpha1Api.patchMenuItem`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateMenuItem(r,i,a){let o=await n.updateMenuItem(r,i,a),s=e?.serverIndex??0,c=m[`MenuItemV1alpha1Api.updateMenuItem`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let vt=function(e){return{createMenu:async(t,n={})=>{let r=new URL(`/api/v1alpha1/menus`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteMenu:async(t,n={})=>{g(`deleteMenu`,`name`,t);let r=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getMenu:async(t,n={})=>{g(`getMenu`,`name`,t);let r=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listMenu:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/menus`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchMenu:async(t,n,r={})=>{g(`patchMenu`,`name`,t);let i=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateMenu:async(t,n,r={})=>{g(`updateMenu`,`name`,t);let i=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},yt=function(e){let n=vt(e);return{async createMenu(r,i){let a=await n.createMenu(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1Api.createMenu`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteMenu(r,i){let a=await n.deleteMenu(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1Api.deleteMenu`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMenu(r,i){let a=await n.getMenu(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1Api.getMenu`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listMenu(r,i,a,o,s,c){let l=await n.listMenu(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`MenuV1alpha1Api.listMenu`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchMenu(r,i,a){let o=await n.patchMenu(r,i,a),s=e?.serverIndex??0,c=m[`MenuV1alpha1Api.patchMenu`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateMenu(r,i,a){let o=await n.updateMenu(r,i,a),s=e?.serverIndex??0,c=m[`MenuV1alpha1Api.updateMenu`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let St=function(e){return{queryMenuByName:async(t,n={})=>{g(`queryMenuByName`,`name`,t);let r=`/apis/api.halo.run/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPrimaryMenu:async(t={})=>{let n=new URL(`/apis/api.halo.run/v1alpha1/menus/-`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},Ct=function(e){let n=St(e);return{async queryMenuByName(r,i){let a=await n.queryMenuByName(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1PublicApi.queryMenuByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPrimaryMenu(r){let i=await n.queryPrimaryMenu(r),a=e?.serverIndex??0,o=m[`MenuV1alpha1PublicApi.queryPrimaryMenu`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(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 f{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))}};let Et=function(e){return{count:async(t,n={})=>{g(`count`,`counterRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/trackers/counter`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},downvote:async(t,n={})=>{g(`downvote`,`voteRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/trackers/downvote`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},upvote:async(t,n={})=>{g(`upvote`,`voteRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/trackers/upvote`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},Dt=function(e){let n=Et(e);return{async count(r,i){let a=await n.count(r,i),o=e?.serverIndex??0,s=m[`MetricsV1alpha1PublicApi.count`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async downvote(r,i){let a=await n.downvote(r,i),o=e?.serverIndex??0,s=m[`MetricsV1alpha1PublicApi.downvote`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async upvote(r,i){let a=await n.upvote(r,i),o=e?.serverIndex??0,s=m[`MetricsV1alpha1PublicApi.upvote`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(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 f{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))}};let At=function(e){return{downloadBackups:async(t,n,r={})=>{g(`downloadBackups`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},getBackupFiles:async(t={})=>{let n=new URL(`/apis/console.api.migration.halo.run/v1alpha1/backup-files`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},restoreBackup:async(t,n,r,i,a={})=>{let o=new URL(`/apis/console.api.migration.halo.run/v1alpha1/restorations`,h),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...a},l={},u={},d=new(e&&e.formDataCtor||FormData);_(c,e),await v(l,e),t!==void 0&&d.append(`backupName`,t),n!==void 0&&d.append(`downloadUrl`,n),r!==void 0&&d.append(`file`,r),i!==void 0&&d.append(`filename`,i),l[`Content-Type`]=`multipart/form-data`,b(o,u);let f=s&&s.headers?s.headers:{};return c.headers={...l,...f,...a.headers},c.data=d,{url:S(o),options:c}}}},jt=function(e){let n=At(e);return{async downloadBackups(r,i,a){let o=await n.downloadBackups(r,i,a),s=e?.serverIndex??0,c=m[`MigrationV1alpha1ConsoleApi.downloadBackups`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async getBackupFiles(r){let i=await n.getBackupFiles(r),a=e?.serverIndex??0,o=m[`MigrationV1alpha1ConsoleApi.getBackupFiles`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async restoreBackup(r,i,a,o,s){let c=await n.restoreBackup(r,i,a,o,s),l=e?.serverIndex??0,u=m[`MigrationV1alpha1ConsoleApi.restoreBackup`]?.[l]?.url;return(n,r)=>C(c,t.default,d,e)(n,u||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 f{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))}};let Pt=function(e){return{createNotificationTemplate:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/notificationtemplates`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteNotificationTemplate:async(t,n={})=>{g(`deleteNotificationTemplate`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getNotificationTemplate:async(t,n={})=>{g(`getNotificationTemplate`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listNotificationTemplate:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/notificationtemplates`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchNotificationTemplate:async(t,n,r={})=>{g(`patchNotificationTemplate`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateNotificationTemplate:async(t,n,r={})=>{g(`updateNotificationTemplate`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Ft=function(e){let n=Pt(e);return{async createNotificationTemplate(r,i){let a=await n.createNotificationTemplate(r,i),o=e?.serverIndex??0,s=m[`NotificationTemplateV1alpha1Api.createNotificationTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteNotificationTemplate(r,i){let a=await n.deleteNotificationTemplate(r,i),o=e?.serverIndex??0,s=m[`NotificationTemplateV1alpha1Api.deleteNotificationTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getNotificationTemplate(r,i){let a=await n.getNotificationTemplate(r,i),o=e?.serverIndex??0,s=m[`NotificationTemplateV1alpha1Api.getNotificationTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listNotificationTemplate(r,i,a,o,s,c){let l=await n.listNotificationTemplate(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`NotificationTemplateV1alpha1Api.listNotificationTemplate`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchNotificationTemplate(r,i,a){let o=await n.patchNotificationTemplate(r,i,a),s=e?.serverIndex??0,c=m[`NotificationTemplateV1alpha1Api.patchNotificationTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateNotificationTemplate(r,i,a){let o=await n.updateNotificationTemplate(r,i,a),s=e?.serverIndex??0,c=m[`NotificationTemplateV1alpha1Api.updateNotificationTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Rt=function(e){return{createNotification:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/notifications`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteNotification:async(t,n={})=>{g(`deleteNotification`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getNotification:async(t,n={})=>{g(`getNotification`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listNotification:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/notifications`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchNotification:async(t,n,r={})=>{g(`patchNotification`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateNotification:async(t,n,r={})=>{g(`updateNotification`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},zt=function(e){let n=Rt(e);return{async createNotification(r,i){let a=await n.createNotification(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1Api.createNotification`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteNotification(r,i){let a=await n.deleteNotification(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1Api.deleteNotification`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getNotification(r,i){let a=await n.getNotification(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1Api.getNotification`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listNotification(r,i,a,o,s,c){let l=await n.listNotification(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`NotificationV1alpha1Api.listNotification`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchNotification(r,i,a){let o=await n.patchNotification(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1Api.patchNotification`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateNotification(r,i,a){let o=await n.updateNotification(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1Api.updateNotification`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Ht=function(e){return{unsubscribe:async(t,n,r={})=>{g(`unsubscribe`,`name`,t),g(`unsubscribe`,`token`,n);let i=`/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.token=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}}}},Ut=function(e){let n=Ht(e);return{async unsubscribe(r,i,a){let o=await n.unsubscribe(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1PublicApi.unsubscribe`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{unsubscribe(e,t){return Ut(this.configuration).unsubscribe(e.name,e.token,t).then(e=>e(this.axios,this.basePath))}};let Kt=function(e){return{deleteSpecifiedNotification:async(t,n,r={})=>{g(`deleteSpecifiedNotification`,`username`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},listUserNotificationPreferences:async(t,n={})=>{g(`listUserNotificationPreferences`,`username`,t);let r=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listUserNotifications:async(t,n,r,i,a,o,s={})=>{g(`listUserNotifications`,`username`,t);let c=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications`.replace(`{username}`,encodeURIComponent(String(t))),l=new URL(c,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};_(d,e),await v(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),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:S(l),options:d}},markNotificationAsRead:async(t,n,r={})=>{g(`markNotificationAsRead`,`username`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},markNotificationsAsRead:async(t,n,r={})=>{g(`markNotificationsAsRead`,`username`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},saveUserNotificationPreferences:async(t,n,r={})=>{g(`saveUserNotificationPreferences`,`username`,t);let i=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(`{username}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},qt=function(e){let n=Kt(e);return{async deleteSpecifiedNotification(r,i,a){let o=await n.deleteSpecifiedNotification(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.deleteSpecifiedNotification`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listUserNotificationPreferences(r,i){let a=await n.listUserNotificationPreferences(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1UcApi.listUserNotificationPreferences`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listUserNotifications(r,i,a,o,s,c,l){let u=await n.listUserNotifications(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`NotificationV1alpha1UcApi.listUserNotifications`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)},async markNotificationAsRead(r,i,a){let o=await n.markNotificationAsRead(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.markNotificationAsRead`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async markNotificationsAsRead(r,i,a){let o=await n.markNotificationsAsRead(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.markNotificationsAsRead`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async saveUserNotificationPreferences(r,i,a){let o=await n.saveUserNotificationPreferences(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.saveUserNotificationPreferences`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Xt=function(e){return{createNotifierDescriptor:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/notifierDescriptors`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteNotifierDescriptor:async(t,n={})=>{g(`deleteNotifierDescriptor`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getNotifierDescriptor:async(t,n={})=>{g(`getNotifierDescriptor`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listNotifierDescriptor:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/notifierDescriptors`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchNotifierDescriptor:async(t,n,r={})=>{g(`patchNotifierDescriptor`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateNotifierDescriptor:async(t,n,r={})=>{g(`updateNotifierDescriptor`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Zt=function(e){let n=Xt(e);return{async createNotifierDescriptor(r,i){let a=await n.createNotifierDescriptor(r,i),o=e?.serverIndex??0,s=m[`NotifierDescriptorV1alpha1Api.createNotifierDescriptor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteNotifierDescriptor(r,i){let a=await n.deleteNotifierDescriptor(r,i),o=e?.serverIndex??0,s=m[`NotifierDescriptorV1alpha1Api.deleteNotifierDescriptor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getNotifierDescriptor(r,i){let a=await n.getNotifierDescriptor(r,i),o=e?.serverIndex??0,s=m[`NotifierDescriptorV1alpha1Api.getNotifierDescriptor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listNotifierDescriptor(r,i,a,o,s,c){let l=await n.listNotifierDescriptor(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`NotifierDescriptorV1alpha1Api.listNotifierDescriptor`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchNotifierDescriptor(r,i,a){let o=await n.patchNotifierDescriptor(r,i,a),s=e?.serverIndex??0,c=m[`NotifierDescriptorV1alpha1Api.patchNotifierDescriptor`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateNotifierDescriptor(r,i,a){let o=await n.updateNotifierDescriptor(r,i,a),s=e?.serverIndex??0,c=m[`NotifierDescriptorV1alpha1Api.updateNotifierDescriptor`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let en=function(e){return{fetchSenderConfig:async(t,n={})=>{g(`fetchSenderConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},saveSenderConfig:async(t,n,r={})=>{g(`saveSenderConfig`,`name`,t),g(`saveSenderConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},verifyEmailSenderConfig:async(t,n={})=>{g(`verifyEmailSenderConfig`,`emailConfigValidationRequest`,t);let r=new URL(`/apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},tn=function(e){let n=en(e);return{async fetchSenderConfig(r,i){let a=await n.fetchSenderConfig(r,i),o=e?.serverIndex??0,s=m[`NotifierV1alpha1ConsoleApi.fetchSenderConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async saveSenderConfig(r,i,a){let o=await n.saveSenderConfig(r,i,a),s=e?.serverIndex??0,c=m[`NotifierV1alpha1ConsoleApi.saveSenderConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async verifyEmailSenderConfig(r,i){let a=await n.verifyEmailSenderConfig(r,i),o=e?.serverIndex??0,s=m[`NotifierV1alpha1ConsoleApi.verifyEmailSenderConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(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 f{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))}};let an=function(e){return{fetchReceiverConfig:async(t,n={})=>{g(`fetchReceiverConfig`,`name`,t);let r=`/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},saveReceiverConfig:async(t,n,r={})=>{g(`saveReceiverConfig`,`name`,t),g(`saveReceiverConfig`,`body`,n);let i=`/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},on=function(e){let n=an(e);return{async fetchReceiverConfig(r,i){let a=await n.fetchReceiverConfig(r,i),o=e?.serverIndex??0,s=m[`NotifierV1alpha1UcApi.fetchReceiverConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async saveReceiverConfig(r,i,a){let o=await n.saveReceiverConfig(r,i,a),s=e?.serverIndex??0,c=m[`NotifierV1alpha1UcApi.saveReceiverConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let ln=function(e){return{createPersonalAccessToken:async(t,n={})=>{let r=new URL(`/apis/security.halo.run/v1alpha1/personalaccesstokens`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePersonalAccessToken:async(t,n={})=>{g(`deletePersonalAccessToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPersonalAccessToken:async(t,n={})=>{g(`getPersonalAccessToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPersonalAccessToken:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/security.halo.run/v1alpha1/personalaccesstokens`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPersonalAccessToken:async(t,n,r={})=>{g(`patchPersonalAccessToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePersonalAccessToken:async(t,n,r={})=>{g(`updatePersonalAccessToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},un=function(e){let n=ln(e);return{async createPersonalAccessToken(r,i){let a=await n.createPersonalAccessToken(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1Api.createPersonalAccessToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePersonalAccessToken(r,i){let a=await n.deletePersonalAccessToken(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1Api.deletePersonalAccessToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPersonalAccessToken(r,i){let a=await n.getPersonalAccessToken(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1Api.getPersonalAccessToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPersonalAccessToken(r,i,a,o,s,c){let l=await n.listPersonalAccessToken(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PersonalAccessTokenV1alpha1Api.listPersonalAccessToken`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPersonalAccessToken(r,i,a){let o=await n.patchPersonalAccessToken(r,i,a),s=e?.serverIndex??0,c=m[`PersonalAccessTokenV1alpha1Api.patchPersonalAccessToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePersonalAccessToken(r,i,a){let o=await n.updatePersonalAccessToken(r,i,a),s=e?.serverIndex??0,c=m[`PersonalAccessTokenV1alpha1Api.updatePersonalAccessToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let pn=function(e){return{deletePat:async(t,n={})=>{g(`deletePat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},generatePat:async(t,n={})=>{g(`generatePat`,`personalAccessToken`,t);let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},obtainPat:async(t,n={})=>{g(`obtainPat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},obtainPats:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},restorePat:async(t,n={})=>{g(`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,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},revokePat:async(t,n={})=>{g(`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,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},mn=function(e){let n=pn(e);return{async deletePat(r,i){let a=await n.deletePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.deletePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async generatePat(r,i){let a=await n.generatePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.generatePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async obtainPat(r,i){let a=await n.obtainPat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.obtainPat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async obtainPats(r){let i=await n.obtainPats(r),a=e?.serverIndex??0,o=m[`PersonalAccessTokenV1alpha1UcApi.obtainPats`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async restorePat(r,i){let a=await n.restorePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.restorePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async revokePat(r,i){let a=await n.revokePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.revokePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(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 f{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))}};let _n=function(e){return{createPlugin:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/plugins`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePlugin:async(t,n={})=>{g(`deletePlugin`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPlugin:async(t,n={})=>{g(`getPlugin`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPlugin:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/plugins`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPlugin:async(t,n,r={})=>{g(`patchPlugin`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePlugin:async(t,n,r={})=>{g(`updatePlugin`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},vn=function(e){let n=_n(e);return{async createPlugin(r,i){let a=await n.createPlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1Api.createPlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePlugin(r,i){let a=await n.deletePlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1Api.deletePlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPlugin(r,i){let a=await n.getPlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1Api.getPlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPlugin(r,i,a,o,s,c){let l=await n.listPlugin(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PluginV1alpha1Api.listPlugin`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPlugin(r,i,a){let o=await n.patchPlugin(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1Api.patchPlugin`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePlugin(r,i,a){let o=await n.updatePlugin(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1Api.updatePlugin`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let xn=function(e){return{changePluginRunningState:async(t,n,r={})=>{g(`changePluginRunningState`,`name`,t),g(`changePluginRunningState`,`pluginRunningStateRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},fetchCssBundle:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},fetchJsBundle:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},fetchPluginJsonConfig:async(t,n={})=>{g(`fetchPluginJsonConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchPluginSetting:async(t,n={})=>{g(`fetchPluginSetting`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},installPlugin:async(t,n,r,i={})=>{let a=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/install`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),n!==void 0&&u.append(`presetName`,n),r!==void 0&&u.append(`source`,r),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}},installPluginFromUri:async(t,n={})=>{g(`installPluginFromUri`,`installFromUriRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},listPlugins:async(t,n,r,i,a,o,s,c={})=>{let l=new URL(`/apis/api.console.halo.run/v1alpha1/plugins`,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...c},f={},p={};_(d,e),await v(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),s!==void 0&&(p.enabled=s),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...c.headers},{url:S(l),options:d}},reloadPlugin:async(t,n={})=>{g(`reloadPlugin`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},resetPluginConfig:async(t,n={})=>{g(`resetPluginConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updatePluginJsonConfig:async(t,n,r={})=>{g(`updatePluginJsonConfig`,`name`,t),g(`updatePluginJsonConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},upgradePlugin:async(t,n,r,i,a={})=>{g(`upgradePlugin`,`name`,t);let o=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade`.replace(`{name}`,encodeURIComponent(String(t))),s=new URL(o,h),c;e&&(c=e.baseOptions);let l={method:`POST`,...c,...a},u={},d={},f=new(e&&e.formDataCtor||FormData);_(l,e),await v(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`,b(s,d);let p=c&&c.headers?c.headers:{};return l.headers={...u,...p,...a.headers},l.data=f,{url:S(s),options:l}},upgradePluginFromUri:async(t,n,r={})=>{g(`upgradePluginFromUri`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},J=function(e){let n=xn(e);return{async changePluginRunningState(r,i,a){let o=await n.changePluginRunningState(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1ConsoleApi.changePluginRunningState`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async fetchCssBundle(r){let i=await n.fetchCssBundle(r),a=e?.serverIndex??0,o=m[`PluginV1alpha1ConsoleApi.fetchCssBundle`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async fetchJsBundle(r){let i=await n.fetchJsBundle(r),a=e?.serverIndex??0,o=m[`PluginV1alpha1ConsoleApi.fetchJsBundle`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async fetchPluginJsonConfig(r,i){let a=await n.fetchPluginJsonConfig(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.fetchPluginJsonConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchPluginSetting(r,i){let a=await n.fetchPluginSetting(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.fetchPluginSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async installPlugin(r,i,a,o){let s=await n.installPlugin(r,i,a,o),c=e?.serverIndex??0,l=m[`PluginV1alpha1ConsoleApi.installPlugin`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async installPluginFromUri(r,i){let a=await n.installPluginFromUri(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.installPluginFromUri`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPlugins(r,i,a,o,s,c,l,u){let f=await n.listPlugins(r,i,a,o,s,c,l,u),p=e?.serverIndex??0,h=m[`PluginV1alpha1ConsoleApi.listPlugins`]?.[p]?.url;return(n,r)=>C(f,t.default,d,e)(n,h||r)},async reloadPlugin(r,i){let a=await n.reloadPlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.reloadPlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async resetPluginConfig(r,i){let a=await n.resetPluginConfig(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.resetPluginConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updatePluginJsonConfig(r,i,a){let o=await n.updatePluginJsonConfig(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1ConsoleApi.updatePluginJsonConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async upgradePlugin(r,i,a,o,s){let c=await n.upgradePlugin(r,i,a,o,s),l=e?.serverIndex??0,u=m[`PluginV1alpha1ConsoleApi.upgradePlugin`]?.[l]?.url;return(n,r)=>C(c,t.default,d,e)(n,u||r)},async upgradePluginFromUri(r,i,a){let o=await n.upgradePluginFromUri(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1ConsoleApi.upgradePluginFromUri`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Sn=function(e,t,n){let r=J(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 f{changePluginRunningState(e,t){return J(this.configuration).changePluginRunningState(e.name,e.pluginRunningStateRequest,t).then(e=>e(this.axios,this.basePath))}fetchCssBundle(e){return J(this.configuration).fetchCssBundle(e).then(e=>e(this.axios,this.basePath))}fetchJsBundle(e){return J(this.configuration).fetchJsBundle(e).then(e=>e(this.axios,this.basePath))}fetchPluginJsonConfig(e,t){return J(this.configuration).fetchPluginJsonConfig(e.name,t).then(e=>e(this.axios,this.basePath))}fetchPluginSetting(e,t){return J(this.configuration).fetchPluginSetting(e.name,t).then(e=>e(this.axios,this.basePath))}installPlugin(e={},t){return J(this.configuration).installPlugin(e.file,e.presetName,e.source,t).then(e=>e(this.axios,this.basePath))}installPluginFromUri(e,t){return J(this.configuration).installPluginFromUri(e.installFromUriRequest,t).then(e=>e(this.axios,this.basePath))}listPlugins(e={},t){return J(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 J(this.configuration).reloadPlugin(e.name,t).then(e=>e(this.axios,this.basePath))}resetPluginConfig(e,t){return J(this.configuration).resetPluginConfig(e.name,t).then(e=>e(this.axios,this.basePath))}updatePluginJsonConfig(e,t){return J(this.configuration).updatePluginJsonConfig(e.name,e.body,t).then(e=>e(this.axios,this.basePath))}upgradePlugin(e,t){return J(this.configuration).upgradePlugin(e.name,e.file,e.presetName,e.source,t).then(e=>e(this.axios,this.basePath))}upgradePluginFromUri(e,t){return J(this.configuration).upgradePluginFromUri(e.name,e.upgradeFromUriRequest,t).then(e=>e(this.axios,this.basePath))}};let wn={File:`FILE`,Preset:`PRESET`,Url:`URL`},Tn={File:`FILE`,Preset:`PRESET`,Url:`URL`},En=function(e){return{queryPluginAvailableByName:async(t,n={})=>{g(`queryPluginAvailableByName`,`name`,t);let r=`/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},Dn=function(e){let n=En(e);return{async queryPluginAvailableByName(r,i){let a=await n.queryPluginAvailableByName(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1PublicApi.queryPluginAvailableByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(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 f{queryPluginAvailableByName(e,t){return Dn(this.configuration).queryPluginAvailableByName(e.name,t).then(e=>e(this.axios,this.basePath))}};let An=function(e){return{getPolicyConfigByGroup:async(t,n,r={})=>{g(`getPolicyConfigByGroup`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},updatePolicyConfigByGroup:async(t,n,r,i={})=>{g(`updatePolicyConfigByGroup`,`name`,t),g(`updatePolicyConfigByGroup`,`group`,n),g(`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,h),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};_(c,e),await v(l,e),l[`Content-Type`]=`application/json`,b(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=x(r,c,e),{url:S(o),options:c}}}},jn=function(e){let n=An(e);return{async getPolicyConfigByGroup(r,i,a){let o=await n.getPolicyConfigByGroup(r,i,a),s=e?.serverIndex??0,c=m[`PolicyAlpha1ConsoleApi.getPolicyConfigByGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePolicyConfigByGroup(r,i,a,o){let s=await n.updatePolicyConfigByGroup(r,i,a,o),c=e?.serverIndex??0,l=m[`PolicyAlpha1ConsoleApi.updatePolicyConfigByGroup`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(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 f{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))}};let Pn=function(e){return{createPolicyTemplate:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/policytemplates`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePolicyTemplate:async(t,n={})=>{g(`deletePolicyTemplate`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPolicyTemplate:async(t,n={})=>{g(`getPolicyTemplate`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPolicyTemplate:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/policytemplates`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPolicyTemplate:async(t,n,r={})=>{g(`patchPolicyTemplate`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePolicyTemplate:async(t,n,r={})=>{g(`updatePolicyTemplate`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Fn=function(e){let n=Pn(e);return{async createPolicyTemplate(r,i){let a=await n.createPolicyTemplate(r,i),o=e?.serverIndex??0,s=m[`PolicyTemplateV1alpha1Api.createPolicyTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePolicyTemplate(r,i){let a=await n.deletePolicyTemplate(r,i),o=e?.serverIndex??0,s=m[`PolicyTemplateV1alpha1Api.deletePolicyTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPolicyTemplate(r,i){let a=await n.getPolicyTemplate(r,i),o=e?.serverIndex??0,s=m[`PolicyTemplateV1alpha1Api.getPolicyTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPolicyTemplate(r,i,a,o,s,c){let l=await n.listPolicyTemplate(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PolicyTemplateV1alpha1Api.listPolicyTemplate`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPolicyTemplate(r,i,a){let o=await n.patchPolicyTemplate(r,i,a),s=e?.serverIndex??0,c=m[`PolicyTemplateV1alpha1Api.patchPolicyTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePolicyTemplate(r,i,a){let o=await n.updatePolicyTemplate(r,i,a),s=e?.serverIndex??0,c=m[`PolicyTemplateV1alpha1Api.updatePolicyTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Rn=function(e){return{createPolicy:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/policies`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePolicy:async(t,n={})=>{g(`deletePolicy`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPolicy:async(t,n={})=>{g(`getPolicy`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPolicy:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/policies`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPolicy:async(t,n,r={})=>{g(`patchPolicy`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePolicy:async(t,n,r={})=>{g(`updatePolicy`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},zn=function(e){let n=Rn(e);return{async createPolicy(r,i){let a=await n.createPolicy(r,i),o=e?.serverIndex??0,s=m[`PolicyV1alpha1Api.createPolicy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePolicy(r,i){let a=await n.deletePolicy(r,i),o=e?.serverIndex??0,s=m[`PolicyV1alpha1Api.deletePolicy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPolicy(r,i){let a=await n.getPolicy(r,i),o=e?.serverIndex??0,s=m[`PolicyV1alpha1Api.getPolicy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPolicy(r,i,a,o,s,c){let l=await n.listPolicy(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PolicyV1alpha1Api.listPolicy`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPolicy(r,i,a){let o=await n.patchPolicy(r,i,a),s=e?.serverIndex??0,c=m[`PolicyV1alpha1Api.patchPolicy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePolicy(r,i,a){let o=await n.updatePolicy(r,i,a),s=e?.serverIndex??0,c=m[`PolicyV1alpha1Api.updatePolicy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Hn=function(e){return{createPost:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/posts`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePost:async(t,n={})=>{g(`deletePost`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPost:async(t,n={})=>{g(`getPost`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPost:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/posts`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPost:async(t,n,r={})=>{g(`patchPost`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePost:async(t,n,r={})=>{g(`updatePost`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Un=function(e){let n=Hn(e);return{async createPost(r,i){let a=await n.createPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1Api.createPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePost(r,i){let a=await n.deletePost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1Api.deletePost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPost(r,i){let a=await n.getPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1Api.getPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPost(r,i,a,o,s,c){let l=await n.listPost(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PostV1alpha1Api.listPost`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPost(r,i,a){let o=await n.patchPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1Api.patchPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePost(r,i,a){let o=await n.updatePost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1Api.updatePost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Kn=function(e){return{deletePostContent:async(t,n,r={})=>{g(`deletePostContent`,`name`,t),g(`deletePostContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},draftPost:async(t,n={})=>{g(`draftPost`,`postRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/posts`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},fetchPostContent:async(t,n,r={})=>{g(`fetchPostContent`,`name`,t),g(`fetchPostContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},fetchPostHeadContent:async(t,n={})=>{g(`fetchPostHeadContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchPostReleaseContent:async(t,n={})=>{g(`fetchPostReleaseContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPostSnapshots:async(t,n={})=>{g(`listPostSnapshots`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/snapshot`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPosts:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/api.console.halo.run/v1alpha1/posts`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.publishPhase=o),s!==void 0&&(m.keyword=s),c!==void 0&&(m.categoryWithChildren=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},publishPost:async(t,n,r,i={})=>{g(`publishPost`,`name`,t);let a=`/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,h),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};_(c,e),await v(l,e),n!==void 0&&(u.headSnapshot=n),r!==void 0&&(u.async=r),b(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:S(o),options:c}},recyclePost:async(t,n={})=>{g(`recyclePost`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},revertToSpecifiedSnapshotForPost:async(t,n,r={})=>{g(`revertToSpecifiedSnapshotForPost`,`name`,t),g(`revertToSpecifiedSnapshotForPost`,`revertSnapshotForPostParam`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/revert-content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},unpublishPost:async(t,n={})=>{g(`unpublishPost`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateDraftPost:async(t,n,r={})=>{g(`updateDraftPost`,`name`,t),g(`updateDraftPost`,`postRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePostContent:async(t,n,r={})=>{g(`updatePostContent`,`name`,t),g(`updatePostContent`,`content`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Y=function(e){let n=Kn(e);return{async deletePostContent(r,i,a){let o=await n.deletePostContent(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.deletePostContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async draftPost(r,i){let a=await n.draftPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.draftPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchPostContent(r,i,a){let o=await n.fetchPostContent(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.fetchPostContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async fetchPostHeadContent(r,i){let a=await n.fetchPostHeadContent(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.fetchPostHeadContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchPostReleaseContent(r,i){let a=await n.fetchPostReleaseContent(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.fetchPostReleaseContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPostSnapshots(r,i){let a=await n.listPostSnapshots(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.listPostSnapshots`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPosts(r,i,a,o,s,c,l,u,f){let p=await n.listPosts(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`PostV1alpha1ConsoleApi.listPosts`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async publishPost(r,i,a,o){let s=await n.publishPost(r,i,a,o),c=e?.serverIndex??0,l=m[`PostV1alpha1ConsoleApi.publishPost`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async recyclePost(r,i){let a=await n.recyclePost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.recyclePost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async revertToSpecifiedSnapshotForPost(r,i,a){let o=await n.revertToSpecifiedSnapshotForPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.revertToSpecifiedSnapshotForPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async unpublishPost(r,i){let a=await n.unpublishPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.unpublishPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateDraftPost(r,i,a){let o=await n.updateDraftPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.updateDraftPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePostContent(r,i,a){let o=await n.updatePostContent(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.updatePostContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},qn=function(e,t,n){let r=Y(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 f{deletePostContent(e,t){return Y(this.configuration).deletePostContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}draftPost(e,t){return Y(this.configuration).draftPost(e.postRequest,t).then(e=>e(this.axios,this.basePath))}fetchPostContent(e,t){return Y(this.configuration).fetchPostContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}fetchPostHeadContent(e,t){return Y(this.configuration).fetchPostHeadContent(e.name,t).then(e=>e(this.axios,this.basePath))}fetchPostReleaseContent(e,t){return Y(this.configuration).fetchPostReleaseContent(e.name,t).then(e=>e(this.axios,this.basePath))}listPostSnapshots(e,t){return Y(this.configuration).listPostSnapshots(e.name,t).then(e=>e(this.axios,this.basePath))}listPosts(e={},t){return Y(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 Y(this.configuration).publishPost(e.name,e.headSnapshot,e.async,t).then(e=>e(this.axios,this.basePath))}recyclePost(e,t){return Y(this.configuration).recyclePost(e.name,t).then(e=>e(this.axios,this.basePath))}revertToSpecifiedSnapshotForPost(e,t){return Y(this.configuration).revertToSpecifiedSnapshotForPost(e.name,e.revertSnapshotForPostParam,t).then(e=>e(this.axios,this.basePath))}unpublishPost(e,t){return Y(this.configuration).unpublishPost(e.name,t).then(e=>e(this.axios,this.basePath))}updateDraftPost(e,t){return Y(this.configuration).updateDraftPost(e.name,e.postRequest,t).then(e=>e(this.axios,this.basePath))}updatePostContent(e,t){return Y(this.configuration).updatePostContent(e.name,e.content,t).then(e=>e(this.axios,this.basePath))}};let Yn={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},Xn=function(e){return{queryPostByName:async(t,n={})=>{g(`queryPostByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPostNavigationByName:async(t,n={})=>{g(`queryPostNavigationByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPosts:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/posts`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}}}},Zn=function(e){let n=Xn(e);return{async queryPostByName(r,i){let a=await n.queryPostByName(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1PublicApi.queryPostByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPostNavigationByName(r,i){let a=await n.queryPostNavigationByName(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1PublicApi.queryPostNavigationByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPosts(r,i,a,o,s,c){let l=await n.queryPosts(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PostV1alpha1PublicApi.queryPosts`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(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 f{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))}};let er=function(e){return{createMyPost:async(t,n={})=>{let r=new URL(`/apis/uc.api.content.halo.run/v1alpha1/posts`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},getMyPost:async(t,n={})=>{g(`getMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getMyPostDraft:async(t,n,r={})=>{g(`getMyPostDraft`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.patched=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},listMyPosts:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/uc.api.content.halo.run/v1alpha1/posts`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.publishPhase=o),s!==void 0&&(m.keyword=s),c!==void 0&&(m.categoryWithChildren=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},publishMyPost:async(t,n={})=>{g(`publishMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},recycleMyPost:async(t,n={})=>{g(`recycleMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/recycle`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},unpublishMyPost:async(t,n={})=>{g(`unpublishMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateMyPost:async(t,n,r={})=>{g(`updateMyPost`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateMyPostDraft:async(t,n,r={})=>{g(`updateMyPostDraft`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},X=function(e){let n=er(e);return{async createMyPost(r,i){let a=await n.createMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.createMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMyPost(r,i){let a=await n.getMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.getMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMyPostDraft(r,i,a){let o=await n.getMyPostDraft(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1UcApi.getMyPostDraft`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listMyPosts(r,i,a,o,s,c,l,u,f){let p=await n.listMyPosts(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`PostV1alpha1UcApi.listMyPosts`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async publishMyPost(r,i){let a=await n.publishMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.publishMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async recycleMyPost(r,i){let a=await n.recycleMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.recycleMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async unpublishMyPost(r,i){let a=await n.unpublishMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.unpublishMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateMyPost(r,i,a){let o=await n.updateMyPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1UcApi.updateMyPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateMyPostDraft(r,i,a){let o=await n.updateMyPostDraft(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1UcApi.updateMyPostDraft`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},tr=function(e,t,n){let r=X(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 f{createMyPost(e={},t){return X(this.configuration).createMyPost(e.post,t).then(e=>e(this.axios,this.basePath))}getMyPost(e,t){return X(this.configuration).getMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}getMyPostDraft(e,t){return X(this.configuration).getMyPostDraft(e.name,e.patched,t).then(e=>e(this.axios,this.basePath))}listMyPosts(e={},t){return X(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 X(this.configuration).publishMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}recycleMyPost(e,t){return X(this.configuration).recycleMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}unpublishMyPost(e,t){return X(this.configuration).unpublishMyPost(e.name,t).then(e=>e(this.axios,this.basePath))}updateMyPost(e,t){return X(this.configuration).updateMyPost(e.name,e.post,t).then(e=>e(this.axios,this.basePath))}updateMyPostDraft(e,t){return X(this.configuration).updateMyPostDraft(e.name,e.snapshot,t).then(e=>e(this.axios,this.basePath))}};let rr={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},ir=function(e){return{createReasonType:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/reasontypes`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReasonType:async(t,n={})=>{g(`deleteReasonType`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReasonType:async(t,n={})=>{g(`getReasonType`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReasonType:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/reasontypes`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReasonType:async(t,n,r={})=>{g(`patchReasonType`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReasonType:async(t,n,r={})=>{g(`updateReasonType`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ar=function(e){let n=ir(e);return{async createReasonType(r,i){let a=await n.createReasonType(r,i),o=e?.serverIndex??0,s=m[`ReasonTypeV1alpha1Api.createReasonType`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReasonType(r,i){let a=await n.deleteReasonType(r,i),o=e?.serverIndex??0,s=m[`ReasonTypeV1alpha1Api.deleteReasonType`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReasonType(r,i){let a=await n.getReasonType(r,i),o=e?.serverIndex??0,s=m[`ReasonTypeV1alpha1Api.getReasonType`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReasonType(r,i,a,o,s,c){let l=await n.listReasonType(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReasonTypeV1alpha1Api.listReasonType`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReasonType(r,i,a){let o=await n.patchReasonType(r,i,a),s=e?.serverIndex??0,c=m[`ReasonTypeV1alpha1Api.patchReasonType`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReasonType(r,i,a){let o=await n.updateReasonType(r,i,a),s=e?.serverIndex??0,c=m[`ReasonTypeV1alpha1Api.updateReasonType`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let cr=function(e){return{createReason:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/reasons`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReason:async(t,n={})=>{g(`deleteReason`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReason:async(t,n={})=>{g(`getReason`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReason:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/reasons`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReason:async(t,n,r={})=>{g(`patchReason`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReason:async(t,n,r={})=>{g(`updateReason`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},lr=function(e){let n=cr(e);return{async createReason(r,i){let a=await n.createReason(r,i),o=e?.serverIndex??0,s=m[`ReasonV1alpha1Api.createReason`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReason(r,i){let a=await n.deleteReason(r,i),o=e?.serverIndex??0,s=m[`ReasonV1alpha1Api.deleteReason`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReason(r,i){let a=await n.getReason(r,i),o=e?.serverIndex??0,s=m[`ReasonV1alpha1Api.getReason`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReason(r,i,a,o,s,c){let l=await n.listReason(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReasonV1alpha1Api.listReason`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReason(r,i,a){let o=await n.patchReason(r,i,a),s=e?.serverIndex??0,c=m[`ReasonV1alpha1Api.patchReason`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReason(r,i,a){let o=await n.updateReason(r,i,a),s=e?.serverIndex??0,c=m[`ReasonV1alpha1Api.updateReason`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let fr=function(e){return{createRememberMeToken:async(t,n={})=>{let r=new URL(`/apis/security.halo.run/v1alpha1/remembermetokens`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteRememberMeToken:async(t,n={})=>{g(`deleteRememberMeToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getRememberMeToken:async(t,n={})=>{g(`getRememberMeToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listRememberMeToken:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/security.halo.run/v1alpha1/remembermetokens`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchRememberMeToken:async(t,n,r={})=>{g(`patchRememberMeToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateRememberMeToken:async(t,n,r={})=>{g(`updateRememberMeToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},pr=function(e){let n=fr(e);return{async createRememberMeToken(r,i){let a=await n.createRememberMeToken(r,i),o=e?.serverIndex??0,s=m[`RememberMeTokenV1alpha1Api.createRememberMeToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteRememberMeToken(r,i){let a=await n.deleteRememberMeToken(r,i),o=e?.serverIndex??0,s=m[`RememberMeTokenV1alpha1Api.deleteRememberMeToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getRememberMeToken(r,i){let a=await n.getRememberMeToken(r,i),o=e?.serverIndex??0,s=m[`RememberMeTokenV1alpha1Api.getRememberMeToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listRememberMeToken(r,i,a,o,s,c){let l=await n.listRememberMeToken(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`RememberMeTokenV1alpha1Api.listRememberMeToken`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchRememberMeToken(r,i,a){let o=await n.patchRememberMeToken(r,i,a),s=e?.serverIndex??0,c=m[`RememberMeTokenV1alpha1Api.patchRememberMeToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateRememberMeToken(r,i,a){let o=await n.updateRememberMeToken(r,i,a),s=e?.serverIndex??0,c=m[`RememberMeTokenV1alpha1Api.updateRememberMeToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let gr=function(e){return{createReply:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/replies`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReply:async(t,n={})=>{g(`deleteReply`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReply:async(t,n={})=>{g(`getReply`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReply:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/replies`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReply:async(t,n,r={})=>{g(`patchReply`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReply:async(t,n,r={})=>{g(`updateReply`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},_r=function(e){let n=gr(e);return{async createReply(r,i){let a=await n.createReply(r,i),o=e?.serverIndex??0,s=m[`ReplyV1alpha1Api.createReply`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReply(r,i){let a=await n.deleteReply(r,i),o=e?.serverIndex??0,s=m[`ReplyV1alpha1Api.deleteReply`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReply(r,i){let a=await n.getReply(r,i),o=e?.serverIndex??0,s=m[`ReplyV1alpha1Api.getReply`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReply(r,i,a,o,s,c){let l=await n.listReply(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReplyV1alpha1Api.listReply`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReply(r,i,a){let o=await n.patchReply(r,i,a),s=e?.serverIndex??0,c=m[`ReplyV1alpha1Api.patchReply`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReply(r,i,a){let o=await n.updateReply(r,i,a),s=e?.serverIndex??0,c=m[`ReplyV1alpha1Api.updateReply`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let br=function(e){return{listReplies:async(t,n,r,i,a,o,s={})=>{g(`listReplies`,`commentName`,t);let c=new URL(`/apis/api.console.halo.run/v1alpha1/replies`,h),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...s},d={},f={};_(u,e),await v(d,e),n!==void 0&&(f.page=n),r!==void 0&&(f.size=r),i&&(f.labelSelector=i),a&&(f.fieldSelector=a),o&&(f.sort=o),t!==void 0&&(f.commentName=t),b(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...s.headers},{url:S(c),options:u}}}},xr=function(e){let n=br(e);return{async listReplies(r,i,a,o,s,c,l){let u=await n.listReplies(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`ReplyV1alpha1ConsoleApi.listReplies`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||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 f{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))}};let wr=function(e){return{createReverseProxy:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/reverseproxies`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReverseProxy:async(t,n={})=>{g(`deleteReverseProxy`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReverseProxy:async(t,n={})=>{g(`getReverseProxy`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReverseProxy:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/reverseproxies`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReverseProxy:async(t,n,r={})=>{g(`patchReverseProxy`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReverseProxy:async(t,n,r={})=>{g(`updateReverseProxy`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Tr=function(e){let n=wr(e);return{async createReverseProxy(r,i){let a=await n.createReverseProxy(r,i),o=e?.serverIndex??0,s=m[`ReverseProxyV1alpha1Api.createReverseProxy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReverseProxy(r,i){let a=await n.deleteReverseProxy(r,i),o=e?.serverIndex??0,s=m[`ReverseProxyV1alpha1Api.deleteReverseProxy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReverseProxy(r,i){let a=await n.getReverseProxy(r,i),o=e?.serverIndex??0,s=m[`ReverseProxyV1alpha1Api.getReverseProxy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReverseProxy(r,i,a,o,s,c){let l=await n.listReverseProxy(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReverseProxyV1alpha1Api.listReverseProxy`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReverseProxy(r,i,a){let o=await n.patchReverseProxy(r,i,a),s=e?.serverIndex??0,c=m[`ReverseProxyV1alpha1Api.patchReverseProxy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReverseProxy(r,i,a){let o=await n.updateReverseProxy(r,i,a),s=e?.serverIndex??0,c=m[`ReverseProxyV1alpha1Api.updateReverseProxy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Or=function(e){return{createRoleBinding:async(t,n={})=>{let r=new URL(`/api/v1alpha1/rolebindings`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteRoleBinding:async(t,n={})=>{g(`deleteRoleBinding`,`name`,t);let r=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getRoleBinding:async(t,n={})=>{g(`getRoleBinding`,`name`,t);let r=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listRoleBinding:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/rolebindings`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchRoleBinding:async(t,n,r={})=>{g(`patchRoleBinding`,`name`,t);let i=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateRoleBinding:async(t,n,r={})=>{g(`updateRoleBinding`,`name`,t);let i=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},kr=function(e){let n=Or(e);return{async createRoleBinding(r,i){let a=await n.createRoleBinding(r,i),o=e?.serverIndex??0,s=m[`RoleBindingV1alpha1Api.createRoleBinding`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteRoleBinding(r,i){let a=await n.deleteRoleBinding(r,i),o=e?.serverIndex??0,s=m[`RoleBindingV1alpha1Api.deleteRoleBinding`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getRoleBinding(r,i){let a=await n.getRoleBinding(r,i),o=e?.serverIndex??0,s=m[`RoleBindingV1alpha1Api.getRoleBinding`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listRoleBinding(r,i,a,o,s,c){let l=await n.listRoleBinding(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`RoleBindingV1alpha1Api.listRoleBinding`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchRoleBinding(r,i,a){let o=await n.patchRoleBinding(r,i,a),s=e?.serverIndex??0,c=m[`RoleBindingV1alpha1Api.patchRoleBinding`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateRoleBinding(r,i,a){let o=await n.updateRoleBinding(r,i,a),s=e?.serverIndex??0,c=m[`RoleBindingV1alpha1Api.updateRoleBinding`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Mr=function(e){return{createRole:async(t,n={})=>{let r=new URL(`/api/v1alpha1/roles`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteRole:async(t,n={})=>{g(`deleteRole`,`name`,t);let r=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getRole:async(t,n={})=>{g(`getRole`,`name`,t);let r=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listRole:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/roles`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchRole:async(t,n,r={})=>{g(`patchRole`,`name`,t);let i=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateRole:async(t,n,r={})=>{g(`updateRole`,`name`,t);let i=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Nr=function(e){let n=Mr(e);return{async createRole(r,i){let a=await n.createRole(r,i),o=e?.serverIndex??0,s=m[`RoleV1alpha1Api.createRole`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteRole(r,i){let a=await n.deleteRole(r,i),o=e?.serverIndex??0,s=m[`RoleV1alpha1Api.deleteRole`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getRole(r,i){let a=await n.getRole(r,i),o=e?.serverIndex??0,s=m[`RoleV1alpha1Api.getRole`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listRole(r,i,a,o,s,c){let l=await n.listRole(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`RoleV1alpha1Api.listRole`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchRole(r,i,a){let o=await n.patchRole(r,i,a),s=e?.serverIndex??0,c=m[`RoleV1alpha1Api.patchRole`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateRole(r,i,a){let o=await n.updateRole(r,i,a),s=e?.serverIndex??0,c=m[`RoleV1alpha1Api.updateRole`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Ir=function(e){return{createSecret:async(t,n={})=>{let r=new URL(`/api/v1alpha1/secrets`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSecret:async(t,n={})=>{g(`deleteSecret`,`name`,t);let r=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSecret:async(t,n={})=>{g(`getSecret`,`name`,t);let r=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSecret:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/secrets`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSecret:async(t,n,r={})=>{g(`patchSecret`,`name`,t);let i=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSecret:async(t,n,r={})=>{g(`updateSecret`,`name`,t);let i=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Lr=function(e){let n=Ir(e);return{async createSecret(r,i){let a=await n.createSecret(r,i),o=e?.serverIndex??0,s=m[`SecretV1alpha1Api.createSecret`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSecret(r,i){let a=await n.deleteSecret(r,i),o=e?.serverIndex??0,s=m[`SecretV1alpha1Api.deleteSecret`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSecret(r,i){let a=await n.getSecret(r,i),o=e?.serverIndex??0,s=m[`SecretV1alpha1Api.getSecret`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSecret(r,i,a,o,s,c){let l=await n.listSecret(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SecretV1alpha1Api.listSecret`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSecret(r,i,a){let o=await n.patchSecret(r,i,a),s=e?.serverIndex??0,c=m[`SecretV1alpha1Api.patchSecret`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSecret(r,i,a){let o=await n.updateSecret(r,i,a),s=e?.serverIndex??0,c=m[`SecretV1alpha1Api.updateSecret`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Br=function(e){return{createSetting:async(t,n={})=>{let r=new URL(`/api/v1alpha1/settings`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSetting:async(t,n={})=>{g(`deleteSetting`,`name`,t);let r=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSetting:async(t,n={})=>{g(`getSetting`,`name`,t);let r=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSetting:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/settings`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSetting:async(t,n,r={})=>{g(`patchSetting`,`name`,t);let i=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSetting:async(t,n,r={})=>{g(`updateSetting`,`name`,t);let i=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Vr=function(e){let n=Br(e);return{async createSetting(r,i){let a=await n.createSetting(r,i),o=e?.serverIndex??0,s=m[`SettingV1alpha1Api.createSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSetting(r,i){let a=await n.deleteSetting(r,i),o=e?.serverIndex??0,s=m[`SettingV1alpha1Api.deleteSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSetting(r,i){let a=await n.getSetting(r,i),o=e?.serverIndex??0,s=m[`SettingV1alpha1Api.getSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSetting(r,i,a,o,s,c){let l=await n.listSetting(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SettingV1alpha1Api.listSetting`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSetting(r,i,a){let o=await n.patchSetting(r,i,a),s=e?.serverIndex??0,c=m[`SettingV1alpha1Api.patchSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSetting(r,i,a){let o=await n.updateSetting(r,i,a),s=e?.serverIndex??0,c=m[`SettingV1alpha1Api.updateSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Wr=function(e){return{createSinglePage:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/singlepages`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSinglePage:async(t,n={})=>{g(`deleteSinglePage`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSinglePage:async(t,n={})=>{g(`getSinglePage`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSinglePage:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/singlepages`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSinglePage:async(t,n,r={})=>{g(`patchSinglePage`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSinglePage:async(t,n,r={})=>{g(`updateSinglePage`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Gr=function(e){let n=Wr(e);return{async createSinglePage(r,i){let a=await n.createSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1Api.createSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSinglePage(r,i){let a=await n.deleteSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1Api.deleteSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSinglePage(r,i){let a=await n.getSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1Api.getSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSinglePage(r,i,a,o,s,c){let l=await n.listSinglePage(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SinglePageV1alpha1Api.listSinglePage`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSinglePage(r,i,a){let o=await n.patchSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1Api.patchSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSinglePage(r,i,a){let o=await n.updateSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1Api.updateSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let Jr=function(e){return{deleteSinglePageContent:async(t,n,r={})=>{g(`deleteSinglePageContent`,`name`,t),g(`deleteSinglePageContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},draftSinglePage:async(t,n={})=>{g(`draftSinglePage`,`singlePageRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/singlepages`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},fetchSinglePageContent:async(t,n,r={})=>{g(`fetchSinglePageContent`,`name`,t),g(`fetchSinglePageContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},fetchSinglePageHeadContent:async(t,n={})=>{g(`fetchSinglePageHeadContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchSinglePageReleaseContent:async(t,n={})=>{g(`fetchSinglePageReleaseContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSinglePageSnapshots:async(t,n={})=>{g(`listSinglePageSnapshots`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/snapshot`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSinglePages:async(t,n,r,i,a,o,s,c,l,u={})=>{let d=new URL(`/apis/api.console.halo.run/v1alpha1/singlepages`,h),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...u},m={},g={};_(p,e),await v(m,e),t!==void 0&&(g.page=t),n!==void 0&&(g.size=n),r&&(g.labelSelector=r),i&&(g.fieldSelector=i),a&&(g.sort=a),o&&(g.contributor=o),s!==void 0&&(g.publishPhase=s),c!==void 0&&(g.visible=c),l!==void 0&&(g.keyword=l),b(d,g);let y=f&&f.headers?f.headers:{};return p.headers={...m,...y,...u.headers},{url:S(d),options:p}},publishSinglePage:async(t,n={})=>{g(`publishSinglePage`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},revertToSpecifiedSnapshotForSinglePage:async(t,n,r={})=>{g(`revertToSpecifiedSnapshotForSinglePage`,`name`,t),g(`revertToSpecifiedSnapshotForSinglePage`,`revertSnapshotForSingleParam`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/revert-content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateDraftSinglePage:async(t,n,r={})=>{g(`updateDraftSinglePage`,`name`,t),g(`updateDraftSinglePage`,`singlePageRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSinglePageContent:async(t,n,r={})=>{g(`updateSinglePageContent`,`name`,t),g(`updateSinglePageContent`,`content`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Z=function(e){let n=Jr(e);return{async deleteSinglePageContent(r,i,a){let o=await n.deleteSinglePageContent(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.deleteSinglePageContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async draftSinglePage(r,i){let a=await n.draftSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.draftSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchSinglePageContent(r,i,a){let o=await n.fetchSinglePageContent(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.fetchSinglePageContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async fetchSinglePageHeadContent(r,i){let a=await n.fetchSinglePageHeadContent(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.fetchSinglePageHeadContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchSinglePageReleaseContent(r,i){let a=await n.fetchSinglePageReleaseContent(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.fetchSinglePageReleaseContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSinglePageSnapshots(r,i){let a=await n.listSinglePageSnapshots(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.listSinglePageSnapshots`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSinglePages(r,i,a,o,s,c,l,u,f,p){let h=await n.listSinglePages(r,i,a,o,s,c,l,u,f,p),g=e?.serverIndex??0,_=m[`SinglePageV1alpha1ConsoleApi.listSinglePages`]?.[g]?.url;return(n,r)=>C(h,t.default,d,e)(n,_||r)},async publishSinglePage(r,i){let a=await n.publishSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.publishSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async revertToSpecifiedSnapshotForSinglePage(r,i,a){let o=await n.revertToSpecifiedSnapshotForSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.revertToSpecifiedSnapshotForSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateDraftSinglePage(r,i,a){let o=await n.updateDraftSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.updateDraftSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSinglePageContent(r,i,a){let o=await n.updateSinglePageContent(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.updateSinglePageContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Yr=function(e,t,n){let r=Z(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 f{deleteSinglePageContent(e,t){return Z(this.configuration).deleteSinglePageContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}draftSinglePage(e,t){return Z(this.configuration).draftSinglePage(e.singlePageRequest,t).then(e=>e(this.axios,this.basePath))}fetchSinglePageContent(e,t){return Z(this.configuration).fetchSinglePageContent(e.name,e.snapshotName,t).then(e=>e(this.axios,this.basePath))}fetchSinglePageHeadContent(e,t){return Z(this.configuration).fetchSinglePageHeadContent(e.name,t).then(e=>e(this.axios,this.basePath))}fetchSinglePageReleaseContent(e,t){return Z(this.configuration).fetchSinglePageReleaseContent(e.name,t).then(e=>e(this.axios,this.basePath))}listSinglePageSnapshots(e,t){return Z(this.configuration).listSinglePageSnapshots(e.name,t).then(e=>e(this.axios,this.basePath))}listSinglePages(e={},t){return Z(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 Z(this.configuration).publishSinglePage(e.name,t).then(e=>e(this.axios,this.basePath))}revertToSpecifiedSnapshotForSinglePage(e,t){return Z(this.configuration).revertToSpecifiedSnapshotForSinglePage(e.name,e.revertSnapshotForSingleParam,t).then(e=>e(this.axios,this.basePath))}updateDraftSinglePage(e,t){return Z(this.configuration).updateDraftSinglePage(e.name,e.singlePageRequest,t).then(e=>e(this.axios,this.basePath))}updateSinglePageContent(e,t){return Z(this.configuration).updateSinglePageContent(e.name,e.content,t).then(e=>e(this.axios,this.basePath))}};let 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={})=>{g(`querySinglePageByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},querySinglePages:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/singlepages`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}}}},ei=function(e){let n=$r(e);return{async querySinglePageByName(r,i){let a=await n.querySinglePageByName(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1PublicApi.querySinglePageByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async querySinglePages(r,i,a,o,s,c){let l=await n.querySinglePages(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SinglePageV1alpha1PublicApi.querySinglePages`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(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 f{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))}};let ri=function(e){return{createSnapshot:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/snapshots`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSnapshot:async(t,n={})=>{g(`deleteSnapshot`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSnapshot:async(t,n={})=>{g(`getSnapshot`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSnapshot:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/snapshots`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSnapshot:async(t,n,r={})=>{g(`patchSnapshot`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSnapshot:async(t,n,r={})=>{g(`updateSnapshot`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ii=function(e){let n=ri(e);return{async createSnapshot(r,i){let a=await n.createSnapshot(r,i),o=e?.serverIndex??0,s=m[`SnapshotV1alpha1Api.createSnapshot`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSnapshot(r,i){let a=await n.deleteSnapshot(r,i),o=e?.serverIndex??0,s=m[`SnapshotV1alpha1Api.deleteSnapshot`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSnapshot(r,i){let a=await n.getSnapshot(r,i),o=e?.serverIndex??0,s=m[`SnapshotV1alpha1Api.getSnapshot`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSnapshot(r,i,a,o,s,c){let l=await n.listSnapshot(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SnapshotV1alpha1Api.listSnapshot`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSnapshot(r,i,a){let o=await n.patchSnapshot(r,i,a),s=e?.serverIndex??0,c=m[`SnapshotV1alpha1Api.patchSnapshot`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSnapshot(r,i,a){let o=await n.updateSnapshot(r,i,a),s=e?.serverIndex??0,c=m[`SnapshotV1alpha1Api.updateSnapshot`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let si=function(e){return{getSnapshotForPost:async(t,n,r,i={})=>{g(`getSnapshotForPost`,`name`,t),g(`getSnapshotForPost`,`postName`,n);let a=`/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,h),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};_(c,e),await v(l,e),n!==void 0&&(u.postName=n),r!==void 0&&(u.patched=r),b(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:S(o),options:c}}}},ci=function(e){let n=si(e);return{async getSnapshotForPost(r,i,a,o){let s=await n.getSnapshotForPost(r,i,a,o),c=e?.serverIndex??0,l=m[`SnapshotV1alpha1UcApi.getSnapshotForPost`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(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 f{getSnapshotForPost(e,t){return ci(this.configuration).getSnapshotForPost(e.name,e.postName,e.patched,t).then(e=>e(this.axios,this.basePath))}};let di=function(e){return{createSubscription:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/subscriptions`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSubscription:async(t,n={})=>{g(`deleteSubscription`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSubscription:async(t,n={})=>{g(`getSubscription`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSubscription:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/subscriptions`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSubscription:async(t,n,r={})=>{g(`patchSubscription`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSubscription:async(t,n,r={})=>{g(`updateSubscription`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},fi=function(e){let n=di(e);return{async createSubscription(r,i){let a=await n.createSubscription(r,i),o=e?.serverIndex??0,s=m[`SubscriptionV1alpha1Api.createSubscription`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSubscription(r,i){let a=await n.deleteSubscription(r,i),o=e?.serverIndex??0,s=m[`SubscriptionV1alpha1Api.deleteSubscription`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSubscription(r,i){let a=await n.getSubscription(r,i),o=e?.serverIndex??0,s=m[`SubscriptionV1alpha1Api.getSubscription`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSubscription(r,i,a,o,s,c){let l=await n.listSubscription(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SubscriptionV1alpha1Api.listSubscription`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSubscription(r,i,a){let o=await n.patchSubscription(r,i,a),s=e?.serverIndex??0,c=m[`SubscriptionV1alpha1Api.patchSubscription`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSubscription(r,i,a){let o=await n.updateSubscription(r,i,a),s=e?.serverIndex??0,c=m[`SubscriptionV1alpha1Api.updateSubscription`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let hi=function(e){return{getSystemConfigByGroup:async(t,n={})=>{g(`getSystemConfigByGroup`,`group`,t);let r=`/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}`.replace(`{group}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateSystemConfigByGroup:async(t,n,r={})=>{g(`updateSystemConfigByGroup`,`group`,t);let i=`/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}`.replace(`{group}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},gi=function(e){let n=hi(e);return{async getSystemConfigByGroup(r,i){let a=await n.getSystemConfigByGroup(r,i),o=e?.serverIndex??0,s=m[`SystemConfigV1alpha1ConsoleApi.getSystemConfigByGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateSystemConfigByGroup(r,i,a){let o=await n.updateSystemConfigByGroup(r,i,a),s=e?.serverIndex??0,c=m[`SystemConfigV1alpha1ConsoleApi.updateSystemConfigByGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(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 f{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))}};let yi=function(e){return{getStats:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/stats`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},bi=function(e){let n=yi(e);return{async getStats(r){let i=await n.getStats(r),a=e?.serverIndex??0,o=m[`SystemV1alpha1ConsoleApi.getStats`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(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 f{getStats(e){return bi(this.configuration).getStats(e).then(e=>e(this.axios,this.basePath))}};let Ci=function(e){return{jumpToSetupPage:async(t={})=>{let n=new URL(`/system/setup`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},queryStats:async(t={})=>{let n=new URL(`/apis/api.halo.run/v1alpha1/stats/-`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},wi=function(e){let n=Ci(e);return{async jumpToSetupPage(r){let i=await n.jumpToSetupPage(r),a=e?.serverIndex??0,o=m[`SystemV1alpha1PublicApi.jumpToSetupPage`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async queryStats(r){let i=await n.queryStats(r),a=e?.serverIndex??0,o=m[`SystemV1alpha1PublicApi.queryStats`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(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 f{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))}};let Di=function(e){return{createTag:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/tags`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteTag:async(t,n={})=>{g(`deleteTag`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getTag:async(t,n={})=>{g(`getTag`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listTag:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/tags`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchTag:async(t,n,r={})=>{g(`patchTag`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateTag:async(t,n,r={})=>{g(`updateTag`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Oi=function(e){let n=Di(e);return{async createTag(r,i){let a=await n.createTag(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1Api.createTag`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteTag(r,i){let a=await n.deleteTag(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1Api.deleteTag`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getTag(r,i){let a=await n.getTag(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1Api.getTag`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listTag(r,i,a,o,s,c){let l=await n.listTag(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`TagV1alpha1Api.listTag`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchTag(r,i,a){let o=await n.patchTag(r,i,a),s=e?.serverIndex??0,c=m[`TagV1alpha1Api.patchTag`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateTag(r,i,a){let o=await n.updateTag(r,i,a),s=e?.serverIndex??0,c=m[`TagV1alpha1Api.updateTag`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ki=function(e,t,n){let r=Oi(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 Ai=class extends f{createTag(e={},t){return Oi(this.configuration).createTag(e.tag,t).then(e=>e(this.axios,this.basePath))}deleteTag(e,t){return Oi(this.configuration).deleteTag(e.name,t).then(e=>e(this.axios,this.basePath))}getTag(e,t){return Oi(this.configuration).getTag(e.name,t).then(e=>e(this.axios,this.basePath))}listTag(e={},t){return Oi(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 Oi(this.configuration).patchTag(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateTag(e,t){return Oi(this.configuration).updateTag(e.name,e.tag,t).then(e=>e(this.axios,this.basePath))}};let ji=function(e){return{listPostTags:async(t,n,r,i,a,o,s={})=>{let c=new URL(`/apis/api.console.halo.run/v1alpha1/tags`,h),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...s},d={},f={};_(u,e),await v(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),o!==void 0&&(f.keyword=o),b(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...s.headers},{url:S(c),options:u}}}},Mi=function(e){let n=ji(e);return{async listPostTags(r,i,a,o,s,c,l){let u=await n.listPostTags(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`TagV1alpha1ConsoleApi.listPostTags`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)}}},Ni=function(e,t,n){let r=Mi(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 Pi=class extends f{listPostTags(e={},t){return Mi(this.configuration).listPostTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,t).then(e=>e(this.axios,this.basePath))}};let Fi=function(e){return{queryPostsByTagName:async(t,n,r,i,a,o,s={})=>{g(`queryPostsByTagName`,`name`,t);let c=`/apis/api.content.halo.run/v1alpha1/tags/{name}/posts`.replace(`{name}`,encodeURIComponent(String(t))),l=new URL(c,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};_(d,e),await v(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),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:S(l),options:d}},queryTagByName:async(t,n={})=>{g(`queryTagByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryTags:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/tags`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}}}},Ii=function(e){let n=Fi(e);return{async queryPostsByTagName(r,i,a,o,s,c,l){let u=await n.queryPostsByTagName(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`TagV1alpha1PublicApi.queryPostsByTagName`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)},async queryTagByName(r,i){let a=await n.queryTagByName(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1PublicApi.queryTagByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryTags(r,i,a,o,s,c){let l=await n.queryTags(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`TagV1alpha1PublicApi.queryTags`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)}}},Li=function(e,t,n){let r=Ii(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 Ri=class extends f{queryPostsByTagName(e,t){return Ii(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 Ii(this.configuration).queryTagByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryTags(e={},t){return Ii(this.configuration).queryTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};let zi=function(e){return{createTheme:async(t,n={})=>{let r=new URL(`/apis/theme.halo.run/v1alpha1/themes`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteTheme:async(t,n={})=>{g(`deleteTheme`,`name`,t);let r=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getTheme:async(t,n={})=>{g(`getTheme`,`name`,t);let r=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listTheme:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/theme.halo.run/v1alpha1/themes`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchTheme:async(t,n,r={})=>{g(`patchTheme`,`name`,t);let i=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateTheme:async(t,n,r={})=>{g(`updateTheme`,`name`,t);let i=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Bi=function(e){let n=zi(e);return{async createTheme(r,i){let a=await n.createTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1Api.createTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteTheme(r,i){let a=await n.deleteTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1Api.deleteTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getTheme(r,i){let a=await n.getTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1Api.getTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listTheme(r,i,a,o,s,c){let l=await n.listTheme(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ThemeV1alpha1Api.listTheme`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchTheme(r,i,a){let o=await n.patchTheme(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1Api.patchTheme`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateTheme(r,i,a){let o=await n.updateTheme(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1Api.updateTheme`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Vi=function(e,t,n){let r=Bi(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 Hi=class extends f{createTheme(e={},t){return Bi(this.configuration).createTheme(e.theme,t).then(e=>e(this.axios,this.basePath))}deleteTheme(e,t){return Bi(this.configuration).deleteTheme(e.name,t).then(e=>e(this.axios,this.basePath))}getTheme(e,t){return Bi(this.configuration).getTheme(e.name,t).then(e=>e(this.axios,this.basePath))}listTheme(e={},t){return Bi(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 Bi(this.configuration).patchTheme(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateTheme(e,t){return Bi(this.configuration).updateTheme(e.name,e.theme,t).then(e=>e(this.axios,this.basePath))}};let Ui=function(e){return{activateTheme:async(t,n={})=>{g(`activateTheme`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchActivatedTheme:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/themes/-/activation`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},fetchThemeJsonConfig:async(t,n={})=>{g(`fetchThemeJsonConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchThemeSetting:async(t,n={})=>{g(`fetchThemeSetting`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},installTheme:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/themes/install`,h),r;e&&(r=e.baseOptions);let i={method:`POST`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},installThemeFromUri:async(t,n={})=>{g(`installThemeFromUri`,`installFromUriRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},invalidateCache:async(t,n={})=>{g(`invalidateCache`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/invalidate-cache`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listThemes:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.console.halo.run/v1alpha1/themes`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a!==void 0&&(d.uninstalled=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},reload:async(t,n={})=>{g(`reload`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},resetThemeConfig:async(t,n={})=>{g(`resetThemeConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateThemeJsonConfig:async(t,n,r={})=>{g(`updateThemeJsonConfig`,`name`,t),g(`updateThemeJsonConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/themes/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},upgradeTheme:async(t,n,r={})=>{g(`upgradeTheme`,`name`,t),g(`upgradeTheme`,`file`,n);let i=`/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),n!==void 0&&u.append(`file`,n),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=u,{url:S(a),options:s}},upgradeThemeFromUri:async(t,n,r={})=>{g(`upgradeThemeFromUri`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Q=function(e){let n=Ui(e);return{async activateTheme(r,i){let a=await n.activateTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.activateTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchActivatedTheme(r){let i=await n.fetchActivatedTheme(r),a=e?.serverIndex??0,o=m[`ThemeV1alpha1ConsoleApi.fetchActivatedTheme`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async fetchThemeJsonConfig(r,i){let a=await n.fetchThemeJsonConfig(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.fetchThemeJsonConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchThemeSetting(r,i){let a=await n.fetchThemeSetting(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.fetchThemeSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async installTheme(r){let i=await n.installTheme(r),a=e?.serverIndex??0,o=m[`ThemeV1alpha1ConsoleApi.installTheme`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async installThemeFromUri(r,i){let a=await n.installThemeFromUri(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.installThemeFromUri`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async invalidateCache(r,i){let a=await n.invalidateCache(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.invalidateCache`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listThemes(r,i,a,o,s,c){let l=await n.listThemes(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ThemeV1alpha1ConsoleApi.listThemes`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async reload(r,i){let a=await n.reload(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.reload`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async resetThemeConfig(r,i){let a=await n.resetThemeConfig(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.resetThemeConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateThemeJsonConfig(r,i,a){let o=await n.updateThemeJsonConfig(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1ConsoleApi.updateThemeJsonConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async upgradeTheme(r,i,a){let o=await n.upgradeTheme(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1ConsoleApi.upgradeTheme`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async upgradeThemeFromUri(r,i,a){let o=await n.upgradeThemeFromUri(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1ConsoleApi.upgradeThemeFromUri`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Wi=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 Gi=class extends f{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))}};let Ki=function(e){return{createThumbnail:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/thumbnails`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteThumbnail:async(t,n={})=>{g(`deleteThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getThumbnail:async(t,n={})=>{g(`getThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listThumbnail:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/thumbnails`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchThumbnail:async(t,n,r={})=>{g(`patchThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateThumbnail:async(t,n,r={})=>{g(`updateThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},qi=function(e){let n=Ki(e);return{async createThumbnail(r,i){let a=await n.createThumbnail(r,i),o=e?.serverIndex??0,s=m[`ThumbnailV1alpha1Api.createThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteThumbnail(r,i){let a=await n.deleteThumbnail(r,i),o=e?.serverIndex??0,s=m[`ThumbnailV1alpha1Api.deleteThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getThumbnail(r,i){let a=await n.getThumbnail(r,i),o=e?.serverIndex??0,s=m[`ThumbnailV1alpha1Api.getThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listThumbnail(r,i,a,o,s,c){let l=await n.listThumbnail(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ThumbnailV1alpha1Api.listThumbnail`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchThumbnail(r,i,a){let o=await n.patchThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`ThumbnailV1alpha1Api.patchThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateThumbnail(r,i,a){let o=await n.updateThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`ThumbnailV1alpha1Api.updateThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Ji=function(e,t,n){let r=qi(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 Yi=class extends f{createThumbnail(e={},t){return qi(this.configuration).createThumbnail(e.thumbnail,t).then(e=>e(this.axios,this.basePath))}deleteThumbnail(e,t){return qi(this.configuration).deleteThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}getThumbnail(e,t){return qi(this.configuration).getThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}listThumbnail(e={},t){return qi(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 qi(this.configuration).patchThumbnail(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateThumbnail(e,t){return qi(this.configuration).updateThumbnail(e.name,e.thumbnail,t).then(e=>e(this.axios,this.basePath))}};let Xi=function(e){return{getThumbnailByUri:async(t,n,r,i={})=>{g(`getThumbnailByUri`,`uri`,t),g(`getThumbnailByUri`,`size`,n);let a=new URL(`/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri`,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...i},c={},l={};_(s,e),await v(c,e),t!==void 0&&(l.uri=t),n!==void 0&&(l.size=n),r!==void 0&&(l.width=r),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},{url:S(a),options:s}}}},Zi=function(e){let n=Xi(e);return{async getThumbnailByUri(r,i,a,o){let s=await n.getThumbnailByUri(r,i,a,o),c=e?.serverIndex??0,l=m[`ThumbnailV1alpha1PublicApi.getThumbnailByUri`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},Qi=function(e,t,n){let r=Zi(e);return{getThumbnailByUri(e,i){return r.getThumbnailByUri(e.uri,e.size,e.width,i).then(e=>e(n,t))}}};var $i=class extends f{getThumbnailByUri(e,t){return Zi(this.configuration).getThumbnailByUri(e.uri,e.size,e.width,t).then(e=>e(this.axios,this.basePath))}};let ea={S:`S`,M:`M`,L:`L`,Xl:`XL`},ta={NUMBER_400:400,NUMBER_800:800,NUMBER_1200:1200,NUMBER_1600:1600},na=function(e){return{configurerTotp:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteTotp:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/-`,h),i;e&&(i=e.baseOptions);let a={method:`DELETE`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},disableTwoFactor:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},enableTwoFactor:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},getTotpAuthLink:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},getTwoFactorAuthenticationSettings:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},ra=function(e){let n=na(e);return{async configurerTotp(r,i){let a=await n.configurerTotp(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.configurerTotp`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteTotp(r,i){let a=await n.deleteTotp(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.deleteTotp`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async disableTwoFactor(r,i){let a=await n.disableTwoFactor(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.disableTwoFactor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async enableTwoFactor(r,i){let a=await n.enableTwoFactor(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.enableTwoFactor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getTotpAuthLink(r){let i=await n.getTotpAuthLink(r),a=e?.serverIndex??0,o=m[`TwoFactorAuthV1alpha1UcApi.getTotpAuthLink`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async getTwoFactorAuthenticationSettings(r){let i=await n.getTwoFactorAuthenticationSettings(r),a=e?.serverIndex??0,o=m[`TwoFactorAuthV1alpha1UcApi.getTwoFactorAuthenticationSettings`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},ia=function(e,t,n){let r=ra(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 aa=class extends f{configurerTotp(e={},t){return ra(this.configuration).configurerTotp(e.totpRequest,t).then(e=>e(this.axios,this.basePath))}deleteTotp(e={},t){return ra(this.configuration).deleteTotp(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}disableTwoFactor(e={},t){return ra(this.configuration).disableTwoFactor(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}enableTwoFactor(e={},t){return ra(this.configuration).enableTwoFactor(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}getTotpAuthLink(e){return ra(this.configuration).getTotpAuthLink(e).then(e=>e(this.axios,this.basePath))}getTwoFactorAuthenticationSettings(e){return ra(this.configuration).getTwoFactorAuthenticationSettings(e).then(e=>e(this.axios,this.basePath))}};let oa=function(e){return{createUserConnection:async(t,n={})=>{let r=new URL(`/apis/auth.halo.run/v1alpha1/userconnections`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteUserConnection:async(t,n={})=>{g(`deleteUserConnection`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getUserConnection:async(t,n={})=>{g(`getUserConnection`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listUserConnection:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/auth.halo.run/v1alpha1/userconnections`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchUserConnection:async(t,n,r={})=>{g(`patchUserConnection`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateUserConnection:async(t,n,r={})=>{g(`updateUserConnection`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},sa=function(e){let n=oa(e);return{async createUserConnection(r,i){let a=await n.createUserConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1Api.createUserConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteUserConnection(r,i){let a=await n.deleteUserConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1Api.deleteUserConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getUserConnection(r,i){let a=await n.getUserConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1Api.getUserConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listUserConnection(r,i,a,o,s,c){let l=await n.listUserConnection(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`UserConnectionV1alpha1Api.listUserConnection`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchUserConnection(r,i,a){let o=await n.patchUserConnection(r,i,a),s=e?.serverIndex??0,c=m[`UserConnectionV1alpha1Api.patchUserConnection`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateUserConnection(r,i,a){let o=await n.updateUserConnection(r,i,a),s=e?.serverIndex??0,c=m[`UserConnectionV1alpha1Api.updateUserConnection`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ca=function(e,t,n){let r=sa(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 la=class extends f{createUserConnection(e={},t){return sa(this.configuration).createUserConnection(e.userConnection,t).then(e=>e(this.axios,this.basePath))}deleteUserConnection(e,t){return sa(this.configuration).deleteUserConnection(e.name,t).then(e=>e(this.axios,this.basePath))}getUserConnection(e,t){return sa(this.configuration).getUserConnection(e.name,t).then(e=>e(this.axios,this.basePath))}listUserConnection(e={},t){return sa(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 sa(this.configuration).patchUserConnection(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateUserConnection(e,t){return sa(this.configuration).updateUserConnection(e.name,e.userConnection,t).then(e=>e(this.axios,this.basePath))}};let ua=function(e){return{disconnectMyConnection:async(t,n={})=>{g(`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,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},da=function(e){let n=ua(e);return{async disconnectMyConnection(r,i){let a=await n.disconnectMyConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1UcApi.disconnectMyConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},fa=function(e,t,n){let r=da(e);return{disconnectMyConnection(e,i){return r.disconnectMyConnection(e.registerId,i).then(e=>e(n,t))}}};var pa=class extends f{disconnectMyConnection(e,t){return da(this.configuration).disconnectMyConnection(e.registerId,t).then(e=>e(this.axios,this.basePath))}};let ma=function(e){return{getMyPreference:async(t,n={})=>{g(`getMyPreference`,`group`,t);let r=`/apis/uc.api.halo.run/v1alpha1/user-preferences/{group}`.replace(`{group}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateMyPreference:async(t,n,r={})=>{g(`updateMyPreference`,`group`,t),g(`updateMyPreference`,`body`,n);let i=`/apis/uc.api.halo.run/v1alpha1/user-preferences/{group}`.replace(`{group}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ha=function(e){let n=ma(e);return{async getMyPreference(r,i){let a=await n.getMyPreference(r,i),o=e?.serverIndex??0,s=m[`UserPreferenceV1alpha1UcApi.getMyPreference`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateMyPreference(r,i,a){let o=await n.updateMyPreference(r,i,a),s=e?.serverIndex??0,c=m[`UserPreferenceV1alpha1UcApi.updateMyPreference`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ga=function(e,t,n){let r=ha(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 _a=class extends f{getMyPreference(e,t){return ha(this.configuration).getMyPreference(e.group,t).then(e=>e(this.axios,this.basePath))}updateMyPreference(e,t){return ha(this.configuration).updateMyPreference(e.group,e.body,t).then(e=>e(this.axios,this.basePath))}};let va=function(e){return{createUser:async(t,n={})=>{let r=new URL(`/api/v1alpha1/users`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteUser:async(t,n={})=>{g(`deleteUser`,`name`,t);let r=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getUser:async(t,n={})=>{g(`getUser`,`name`,t);let r=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listUser:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/users`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchUser:async(t,n,r={})=>{g(`patchUser`,`name`,t);let i=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateUser:async(t,n,r={})=>{g(`updateUser`,`name`,t);let i=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ya=function(e){let n=va(e);return{async createUser(r,i){let a=await n.createUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1Api.createUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteUser(r,i){let a=await n.deleteUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1Api.deleteUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getUser(r,i){let a=await n.getUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1Api.getUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listUser(r,i,a,o,s,c){let l=await n.listUser(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`UserV1alpha1Api.listUser`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchUser(r,i,a){let o=await n.patchUser(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1Api.patchUser`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateUser(r,i,a){let o=await n.updateUser(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1Api.updateUser`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ba=function(e,t,n){let r=ya(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 xa=class extends f{createUser(e={},t){return ya(this.configuration).createUser(e.user,t).then(e=>e(this.axios,this.basePath))}deleteUser(e,t){return ya(this.configuration).deleteUser(e.name,t).then(e=>e(this.axios,this.basePath))}getUser(e,t){return ya(this.configuration).getUser(e.name,t).then(e=>e(this.axios,this.basePath))}listUser(e={},t){return ya(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 ya(this.configuration).patchUser(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateUser(e,t){return ya(this.configuration).updateUser(e.name,e.user,t).then(e=>e(this.axios,this.basePath))}};let Sa=function(e){return{changeAnyonePassword:async(t,n,r={})=>{g(`changeAnyonePassword`,`name`,t),g(`changeAnyonePassword`,`changePasswordRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},changeOwnPassword:async(t,n={})=>{g(`changeOwnPassword`,`changeOwnPasswordRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-/password`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},createUser:async(t,n={})=>{g(`createUser`,`createUserRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteUserAvatar:async(t,n={})=>{g(`deleteUserAvatar`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},disableUser:async(t,n={})=>{g(`disableUser`,`username`,t);let r=`/apis/console.api.security.halo.run/v1alpha1/users/{username}/disable`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},enableUser:async(t,n={})=>{g(`enableUser`,`username`,t);let r=`/apis/console.api.security.halo.run/v1alpha1/users/{username}/enable`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getCurrentUserDetail:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/users/-`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},getPermissions:async(t,n={})=>{g(`getPermissions`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getUserDetail:async(t,n={})=>{g(`getUserDetail`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},grantPermission:async(t,n,r={})=>{g(`grantPermission`,`name`,t),g(`grantPermission`,`grantRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},listUsers:async(t,n,r,i,a,o,s,c={})=>{let l=new URL(`/apis/api.console.halo.run/v1alpha1/users`,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...c},f={},p={};_(d,e),await v(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),s!==void 0&&(p.role=s),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...c.headers},{url:S(l),options:d}},sendEmailVerificationCode:async(t,n={})=>{g(`sendEmailVerificationCode`,`emailVerifyRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},updateCurrentUser:async(t,n={})=>{g(`updateCurrentUser`,`user`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},uploadUserAvatar:async(t,n,r={})=>{g(`uploadUserAvatar`,`name`,t),g(`uploadUserAvatar`,`file`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),n!==void 0&&u.append(`file`,n),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=u,{url:S(a),options:s}},verifyEmail:async(t,n={})=>{g(`verifyEmail`,`verifyCodeRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-/verify-email`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},$=function(e){let n=Sa(e);return{async changeAnyonePassword(r,i,a){let o=await n.changeAnyonePassword(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1ConsoleApi.changeAnyonePassword`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async changeOwnPassword(r,i){let a=await n.changeOwnPassword(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.changeOwnPassword`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async createUser(r,i){let a=await n.createUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.createUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteUserAvatar(r,i){let a=await n.deleteUserAvatar(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.deleteUserAvatar`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async disableUser(r,i){let a=await n.disableUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.disableUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async enableUser(r,i){let a=await n.enableUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.enableUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getCurrentUserDetail(r){let i=await n.getCurrentUserDetail(r),a=e?.serverIndex??0,o=m[`UserV1alpha1ConsoleApi.getCurrentUserDetail`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async getPermissions(r,i){let a=await n.getPermissions(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.getPermissions`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getUserDetail(r,i){let a=await n.getUserDetail(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.getUserDetail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async grantPermission(r,i,a){let o=await n.grantPermission(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1ConsoleApi.grantPermission`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listUsers(r,i,a,o,s,c,l,u){let f=await n.listUsers(r,i,a,o,s,c,l,u),p=e?.serverIndex??0,h=m[`UserV1alpha1ConsoleApi.listUsers`]?.[p]?.url;return(n,r)=>C(f,t.default,d,e)(n,h||r)},async sendEmailVerificationCode(r,i){let a=await n.sendEmailVerificationCode(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.sendEmailVerificationCode`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateCurrentUser(r,i){let a=await n.updateCurrentUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.updateCurrentUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async uploadUserAvatar(r,i,a){let o=await n.uploadUserAvatar(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1ConsoleApi.uploadUserAvatar`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async verifyEmail(r,i){let a=await n.verifyEmail(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.verifyEmail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},Ca=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 wa=class extends f{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))}},Ta=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.awsv4=e.awsv4,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions={...e.baseOptions,headers:{...e.baseOptions?.headers}},this.formDataCtor=e.formDataCtor}isJsonMime(e){return e!==null&&(RegExp(`^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$`,`i`).test(e)||e.toLowerCase()===`application/json-patch+json`)}};let Ea={Add:`add`},Da={Form:`FORM`,Oauth2:`OAUTH2`},Oa={Pending:`PENDING`,Running:`RUNNING`,Succeeded:`SUCCEEDED`,Failed:`FAILED`},ka={True:`TRUE`,False:`FALSE`,Unknown:`UNKNOWN`},Aa={Copy:`copy`},ja={Singleton:`SINGLETON`,MultiInstance:`MULTI_INSTANCE`},Ma={Form:`FORM`,Oauth2:`OAUTH2`},Na={S:`S`,M:`M`,L:`L`,Xl:`XL`},Pa={Pending:`PENDING`,Succeeded:`SUCCEEDED`,Failed:`FAILED`},Fa={Blank:`_blank`,Self:`_self`,Parent:`_parent`,Top:`_top`},Ia={Move:`move`},La={Created:`CREATED`,Disabled:`DISABLED`,Resolved:`RESOLVED`,Started:`STARTED`,Stopped:`STOPPED`,Failed:`FAILED`,Unloaded:`UNLOADED`},Ra={Pending:`PENDING`,Starting:`STARTING`,Created:`CREATED`,Disabling:`DISABLING`,Disabled:`DISABLED`,Resolved:`RESOLVED`,Started:`STARTED`,Stopped:`STOPPED`,Failed:`FAILED`,Unknown:`UNKNOWN`},za={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},Ba={Remove:`remove`},Va={Replace:`replace`},Ha={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},Ua={Test:`test`},Wa={Ready:`READY`,Failed:`FAILED`,Unknown:`UNKNOWN`},Ga={S:`S`,M:`M`,L:`L`,Xl:`XL`};var Ka=c(((e,t)=>{t.exports=TypeError})),qa=c((()=>{})),Ja=c(((e,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?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||`symbol`)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var ee=qa(),P=ee.custom,F=z(P)?P:null,I={__proto__:null,double:`"`,single:`'`},te={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(B(s,`quoteStyle`)&&!B(I,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(B(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=B(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(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(B(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 ye(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return re(t)?`[Array]`:`[Object]`;var g=we(s,r);if(o===void 0)o=[];else if(pe(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return B(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ae(t)){var x=fe(t),T=Te(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(z(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?xe(D):D}if(H(t)){for(var P=`<`+b.call(String(t.nodeName)),te=t.attributes||[],R=0;R<te.length;R++)P+=` `+te[R].name+`=`+L(ne(te[R].value),`double`,s);return P+=`>`,t.childNodes&&t.childNodes.length&&(P+=`...`),P+=`</`+b.call(String(t.nodeName))+`>`,P}if(re(t)){if(t.length===0)return`[]`;var de=Te(t,y);return g&&!Ce(de)?`[`+W(de,g)+`]`:`[ `+C.call(de,`, `)+` ]`}if(oe(t)){var be=Te(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),be),`, `)+` }`:be.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(be,`, `)+` }`}if(typeof t==`object`&&u){if(F&&typeof t[F]==`function`&&ee)return ee(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(me(t)){var Ee=[];return a&&a.call(t,function(e,n){Ee.push(y(n,t,!0)+` => `+y(e,t))}),Se(`Map`,i.call(t),Ee,g)}if(_e(t)){var De=[];return l&&l.call(t,function(e){De.push(y(e,t))}),Se(`Set`,c.call(t),De,g)}if(he(t))return U(`WeakMap`);if(ve(t))return U(`WeakSet`);if(ge(t))return U(`WeakRef`);if(ce(t))return xe(y(Number(t)));if(ue(t))return xe(y(E.call(t)));if(le(t))return xe(p.call(t));if(se(t))return xe(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!ie(t)&&!ae(t)){var G=Te(t,y),Oe=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,ke=t instanceof Object?``:`null prototype`,Ae=!Oe&&A&&Object(t)===t&&A in t?_.call(V(t),8,-1):ke?`Object`:``,K=(Oe||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Ae||ke?`[`+C.call(S.call([],Ae||[],ke||[]),`: `)+`] `:``);return G.length===0?K+`{}`:g?K+`{`+W(G,g)+`}`:K+`{ `+C.call(G,`, `)+` }`}return String(t)};function L(e,t,n){var r=I[n.quoteStyle||t];return r+e+r}function ne(e){return v.call(String(e),/"/g,`"`)}function R(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function re(e){return V(e)===`[object Array]`&&R(e)}function ie(e){return V(e)===`[object Date]`&&R(e)}function ae(e){return V(e)===`[object RegExp]`&&R(e)}function oe(e){return V(e)===`[object Error]`&&R(e)}function se(e){return V(e)===`[object String]`&&R(e)}function ce(e){return V(e)===`[object Number]`&&R(e)}function le(e){return V(e)===`[object Boolean]`&&R(e)}function z(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function ue(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var de=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return de.call(e,t)}function V(e){return m.call(e)}function fe(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function pe(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 me(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 he(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function ge(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function _e(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 ve(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function H(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function ye(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return ye(_.call(e,0,t.maxStringLength),t)+r}var i=te[t.quoteStyle||`single`];return i.lastIndex=0,L(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,be),`single`,t)}function be(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`:``)+y.call(t.toString(16))}function xe(e){return`Object(`+e+`)`}function U(e){return e+` { ? }`}function Se(e,t,n,r){var i=r?W(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Ce(e){for(var t=0;t<e.length;t++)if(pe(e[t],`
|
|
1
|
+
var HaloApiClient=(function(e,t){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},u=(e,t,i)=>(i=e==null?{}:n(o(e)),l(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e));t=u(t);let d=`http://localhost:8091`.replace(/\/+$/,``);var f=class{constructor(e,n=d,r=t.default){this.basePath=n,this.axios=r,e&&(this.configuration=e,this.basePath=e.basePath??n)}},p=class extends Error{constructor(e,t){super(t),this.field=e,this.name=`RequiredError`}};let m={},h=`https://example.com`,g=function(e,t,n){if(n==null)throw new p(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},_=function(e,t){t&&(t.username||t.password)&&(e.auth={username:t.username,password:t.password})},v=async function(e,t){t&&t.accessToken&&(e.Authorization=`Bearer `+(typeof t.accessToken==`function`?await t.accessToken():await t.accessToken))};function y(e,t,n=``){t!=null&&(typeof t==`object`?Array.isArray(t)?t.forEach(t=>y(e,t,n)):Object.keys(t).forEach(r=>y(e,t[r],`${n}${n===``?``:`.`}${r}`)):e.has(n)?e.append(n,t):e.set(n,t))}let b=function(e,...t){let n=new URLSearchParams(e.search);y(n,t),e.search=n.toString()},x=function(e,t,n){let r=typeof e!=`string`;return(r&&n&&n.isJsonMime?n.isJsonMime(t.headers[`Content-Type`]):r)?JSON.stringify(e===void 0?{}:e):e||``},S=function(e){return e.pathname+e.search+e.hash},C=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)}},w=function(e){return{listAvailableAnnotationSettings:async(t,n={})=>{g(`listAvailableAnnotationSettings`,`targetRef`,t);let r=new URL(`/apis/uc.api.halo.run/v1alpha1/annotationsettings`,h),i;e&&(i=e.baseOptions);let a={method:`GET`,...i,...n},o={},s={};_(a,e),await v(o,e),t!==void 0&&(s.targetRef=t),b(r,s);let c=i&&i.headers?i.headers:{};return a.headers={...o,...c,...n.headers},{url:S(r),options:a}}}},T=function(e){let n=w(e);return{async listAvailableAnnotationSettings(r,i){let a=await n.listAvailableAnnotationSettings(r,i),o=e?.serverIndex??0,s=m[`AnnotationSettingV1AlphaUcApi.listAvailableAnnotationSettings`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},E=function(e,t,n){let r=T(e);return{listAvailableAnnotationSettings(e,i){return r.listAvailableAnnotationSettings(e.targetRef,i).then(e=>e(n,t))}}};var D=class extends f{listAvailableAnnotationSettings(e,t){return T(this.configuration).listAvailableAnnotationSettings(e.targetRef,t).then(e=>e(this.axios,this.basePath))}};let O=function(e){return{createAnnotationSetting:async(t,n={})=>{let r=new URL(`/api/v1alpha1/annotationsettings`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteAnnotationSetting:async(t,n={})=>{g(`deleteAnnotationSetting`,`name`,t);let r=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getAnnotationSetting:async(t,n={})=>{g(`getAnnotationSetting`,`name`,t);let r=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAnnotationSetting:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/annotationsettings`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchAnnotationSetting:async(t,n,r={})=>{g(`patchAnnotationSetting`,`name`,t);let i=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateAnnotationSetting:async(t,n,r={})=>{g(`updateAnnotationSetting`,`name`,t);let i=`/api/v1alpha1/annotationsettings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},k=function(e){let n=O(e);return{async createAnnotationSetting(r,i){let a=await n.createAnnotationSetting(r,i),o=e?.serverIndex??0,s=m[`AnnotationSettingV1alpha1Api.createAnnotationSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteAnnotationSetting(r,i){let a=await n.deleteAnnotationSetting(r,i),o=e?.serverIndex??0,s=m[`AnnotationSettingV1alpha1Api.deleteAnnotationSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getAnnotationSetting(r,i){let a=await n.getAnnotationSetting(r,i),o=e?.serverIndex??0,s=m[`AnnotationSettingV1alpha1Api.getAnnotationSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAnnotationSetting(r,i,a,o,s,c){let l=await n.listAnnotationSetting(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`AnnotationSettingV1alpha1Api.listAnnotationSetting`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchAnnotationSetting(r,i,a){let o=await n.patchAnnotationSetting(r,i,a),s=e?.serverIndex??0,c=m[`AnnotationSettingV1alpha1Api.patchAnnotationSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateAnnotationSetting(r,i,a){let o=await n.updateAnnotationSetting(r,i,a),s=e?.serverIndex??0,c=m[`AnnotationSettingV1alpha1Api.updateAnnotationSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},A=function(e,t,n){let r=k(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 j=class extends f{createAnnotationSetting(e={},t){return k(this.configuration).createAnnotationSetting(e.annotationSetting,t).then(e=>e(this.axios,this.basePath))}deleteAnnotationSetting(e,t){return k(this.configuration).deleteAnnotationSetting(e.name,t).then(e=>e(this.axios,this.basePath))}getAnnotationSetting(e,t){return k(this.configuration).getAnnotationSetting(e.name,t).then(e=>e(this.axios,this.basePath))}listAnnotationSetting(e={},t){return k(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 k(this.configuration).patchAnnotationSetting(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAnnotationSetting(e,t){return k(this.configuration).updateAnnotationSetting(e.name,e.annotationSetting,t).then(e=>e(this.axios,this.basePath))}};let M=function(e){return{createAttachment:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/attachments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteAttachment:async(t,n={})=>{g(`deleteAttachment`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getAttachment:async(t,n={})=>{g(`getAttachment`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAttachment:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/attachments`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchAttachment:async(t,n,r={})=>{g(`patchAttachment`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateAttachment:async(t,n,r={})=>{g(`updateAttachment`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/attachments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},N=function(e){let n=M(e);return{async createAttachment(r,i){let a=await n.createAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1Api.createAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteAttachment(r,i){let a=await n.deleteAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1Api.deleteAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getAttachment(r,i){let a=await n.getAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1Api.getAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAttachment(r,i,a,o,s,c){let l=await n.listAttachment(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`AttachmentV1alpha1Api.listAttachment`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchAttachment(r,i,a){let o=await n.patchAttachment(r,i,a),s=e?.serverIndex??0,c=m[`AttachmentV1alpha1Api.patchAttachment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateAttachment(r,i,a){let o=await n.updateAttachment(r,i,a),s=e?.serverIndex??0,c=m[`AttachmentV1alpha1Api.updateAttachment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ee=function(e,t,n){let r=N(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 P=class extends f{createAttachment(e={},t){return N(this.configuration).createAttachment(e.attachment,t).then(e=>e(this.axios,this.basePath))}deleteAttachment(e,t){return N(this.configuration).deleteAttachment(e.name,t).then(e=>e(this.axios,this.basePath))}getAttachment(e,t){return N(this.configuration).getAttachment(e.name,t).then(e=>e(this.axios,this.basePath))}listAttachment(e={},t){return N(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 N(this.configuration).patchAttachment(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAttachment(e,t){return N(this.configuration).updateAttachment(e.name,e.attachment,t).then(e=>e(this.axios,this.basePath))}};let F=function(e){return{externalTransferAttachment:async(t,n={})=>{g(`externalTransferAttachment`,`uploadFromUrlRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/attachments/-/upload-from-url`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},searchAttachments:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/api.console.halo.run/v1alpha1/attachments`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.ungrouped=o),s!==void 0&&(m.keyword=s),c&&(m.accepts=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},uploadAttachment:async(t,n,r,i={})=>{g(`uploadAttachment`,`file`,t),g(`uploadAttachment`,`policyName`,n);let a=new URL(`/apis/api.console.halo.run/v1alpha1/attachments/upload`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),r!==void 0&&u.append(`groupName`,r),n!==void 0&&u.append(`policyName`,n),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}},uploadAttachmentForConsole:async(t,n,r,i={})=>{let a=new URL(`/apis/console.api.storage.halo.run/v1alpha1/attachments/-/upload`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),n!==void 0&&u.append(`filename`,n),r!==void 0&&u.append(`url`,r),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}}}},I=function(e){let n=F(e);return{async externalTransferAttachment(r,i){let a=await n.externalTransferAttachment(r,i),o=e?.serverIndex??0,s=m[`AttachmentV1alpha1ConsoleApi.externalTransferAttachment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async searchAttachments(r,i,a,o,s,c,l,u,f){let p=await n.searchAttachments(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`AttachmentV1alpha1ConsoleApi.searchAttachments`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async uploadAttachment(r,i,a,o){let s=await n.uploadAttachment(r,i,a,o),c=e?.serverIndex??0,l=m[`AttachmentV1alpha1ConsoleApi.uploadAttachment`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async uploadAttachmentForConsole(r,i,a,o){let s=await n.uploadAttachmentForConsole(r,i,a,o),c=e?.serverIndex??0,l=m[`AttachmentV1alpha1ConsoleApi.uploadAttachmentForConsole`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},te=function(e,t,n){let r=I(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))},uploadAttachmentForConsole(e={},i){return r.uploadAttachmentForConsole(e.file,e.filename,e.url,i).then(e=>e(n,t))}}};var L=class extends f{externalTransferAttachment(e,t){return I(this.configuration).externalTransferAttachment(e.uploadFromUrlRequest,t).then(e=>e(this.axios,this.basePath))}searchAttachments(e={},t){return I(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 I(this.configuration).uploadAttachment(e.file,e.policyName,e.groupName,t).then(e=>e(this.axios,this.basePath))}uploadAttachmentForConsole(e={},t){return I(this.configuration).uploadAttachmentForConsole(e.file,e.filename,e.url,t).then(e=>e(this.axios,this.basePath))}};let ne=function(e){return{createAttachmentForPost:async(t,n,r,i,a={})=>{g(`createAttachmentForPost`,`file`,t);let o=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments`,h),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...a},l={},u={},d=new(e&&e.formDataCtor||FormData);_(c,e),await v(l,e),n!==void 0&&(u.waitForPermalink=n),t!==void 0&&d.append(`file`,t),r!==void 0&&d.append(`postName`,r),i!==void 0&&d.append(`singlePageName`,i),l[`Content-Type`]=`multipart/form-data`,b(o,u);let f=s&&s.headers?s.headers:{};return c.headers={...l,...f,...a.headers},c.data=d,{url:S(o),options:c}},externalTransferAttachment1:async(t,n,r={})=>{g(`externalTransferAttachment1`,`ucUploadFromUrlRequest`,t);let i=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload-from-url`,h),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...r},s={},c={};_(o,e),await v(s,e),n!==void 0&&(c.waitForPermalink=n),s[`Content-Type`]=`application/json`,b(i,c);let l=a&&a.headers?a.headers:{};return o.headers={...s,...l,...r.headers},o.data=x(t,o,e),{url:S(i),options:o}},listMyAttachments:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.ungrouped=o),s!==void 0&&(m.keyword=s),c&&(m.accepts=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},uploadAttachmentForUc:async(t,n,r,i={})=>{let a=new URL(`/apis/uc.api.storage.halo.run/v1alpha1/attachments/-/upload`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),n!==void 0&&u.append(`filename`,n),r!==void 0&&u.append(`url`,r),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}}}},R=function(e){let n=ne(e);return{async createAttachmentForPost(r,i,a,o,s){let c=await n.createAttachmentForPost(r,i,a,o,s),l=e?.serverIndex??0,u=m[`AttachmentV1alpha1UcApi.createAttachmentForPost`]?.[l]?.url;return(n,r)=>C(c,t.default,d,e)(n,u||r)},async externalTransferAttachment1(r,i,a){let o=await n.externalTransferAttachment1(r,i,a),s=e?.serverIndex??0,c=m[`AttachmentV1alpha1UcApi.externalTransferAttachment1`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listMyAttachments(r,i,a,o,s,c,l,u,f){let p=await n.listMyAttachments(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`AttachmentV1alpha1UcApi.listMyAttachments`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async uploadAttachmentForUc(r,i,a,o){let s=await n.uploadAttachmentForUc(r,i,a,o),c=e?.serverIndex??0,l=m[`AttachmentV1alpha1UcApi.uploadAttachmentForUc`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},re=function(e,t,n){let r=R(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))},uploadAttachmentForUc(e={},i){return r.uploadAttachmentForUc(e.file,e.filename,e.url,i).then(e=>e(n,t))}}};var ie=class extends f{createAttachmentForPost(e,t){return R(this.configuration).createAttachmentForPost(e.file,e.waitForPermalink,e.postName,e.singlePageName,t).then(e=>e(this.axios,this.basePath))}externalTransferAttachment1(e,t){return R(this.configuration).externalTransferAttachment1(e.ucUploadFromUrlRequest,e.waitForPermalink,t).then(e=>e(this.axios,this.basePath))}listMyAttachments(e={},t){return R(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))}uploadAttachmentForUc(e={},t){return R(this.configuration).uploadAttachmentForUc(e.file,e.filename,e.url,t).then(e=>e(this.axios,this.basePath))}};let ae=function(e){return{createAuthProvider:async(t,n={})=>{let r=new URL(`/apis/auth.halo.run/v1alpha1/authproviders`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteAuthProvider:async(t,n={})=>{g(`deleteAuthProvider`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getAuthProvider:async(t,n={})=>{g(`getAuthProvider`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAuthProvider:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/auth.halo.run/v1alpha1/authproviders`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchAuthProvider:async(t,n,r={})=>{g(`patchAuthProvider`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateAuthProvider:async(t,n,r={})=>{g(`updateAuthProvider`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/authproviders/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},z=function(e){let n=ae(e);return{async createAuthProvider(r,i){let a=await n.createAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1Api.createAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteAuthProvider(r,i){let a=await n.deleteAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1Api.deleteAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getAuthProvider(r,i){let a=await n.getAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1Api.getAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAuthProvider(r,i,a,o,s,c){let l=await n.listAuthProvider(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`AuthProviderV1alpha1Api.listAuthProvider`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchAuthProvider(r,i,a){let o=await n.patchAuthProvider(r,i,a),s=e?.serverIndex??0,c=m[`AuthProviderV1alpha1Api.patchAuthProvider`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateAuthProvider(r,i,a){let o=await n.updateAuthProvider(r,i,a),s=e?.serverIndex??0,c=m[`AuthProviderV1alpha1Api.updateAuthProvider`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},oe=function(e,t,n){let r=z(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 f{createAuthProvider(e={},t){return z(this.configuration).createAuthProvider(e.authProvider,t).then(e=>e(this.axios,this.basePath))}deleteAuthProvider(e,t){return z(this.configuration).deleteAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}getAuthProvider(e,t){return z(this.configuration).getAuthProvider(e.name,t).then(e=>e(this.axios,this.basePath))}listAuthProvider(e={},t){return z(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 z(this.configuration).patchAuthProvider(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateAuthProvider(e,t){return z(this.configuration).updateAuthProvider(e.name,e.authProvider,t).then(e=>e(this.axios,this.basePath))}};let ce=function(e){return{disableAuthProvider:async(t,n={})=>{g(`disableAuthProvider`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/disable`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},enableAuthProvider:async(t,n={})=>{g(`enableAuthProvider`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/auth-providers/{name}/enable`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listAuthProviders:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/auth-providers`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},le=function(e){let n=ce(e);return{async disableAuthProvider(r,i){let a=await n.disableAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1ConsoleApi.disableAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async enableAuthProvider(r,i){let a=await n.enableAuthProvider(r,i),o=e?.serverIndex??0,s=m[`AuthProviderV1alpha1ConsoleApi.enableAuthProvider`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listAuthProviders(r){let i=await n.listAuthProviders(r),a=e?.serverIndex??0,o=m[`AuthProviderV1alpha1ConsoleApi.listAuthProviders`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(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 f{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))}};let B=function(e){return{createBackup:async(t,n={})=>{let r=new URL(`/apis/migration.halo.run/v1alpha1/backups`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteBackup:async(t,n={})=>{g(`deleteBackup`,`name`,t);let r=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getBackup:async(t,n={})=>{g(`getBackup`,`name`,t);let r=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listBackup:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/migration.halo.run/v1alpha1/backups`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchBackup:async(t,n,r={})=>{g(`patchBackup`,`name`,t);let i=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateBackup:async(t,n,r={})=>{g(`updateBackup`,`name`,t);let i=`/apis/migration.halo.run/v1alpha1/backups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},V=function(e){let n=B(e);return{async createBackup(r,i){let a=await n.createBackup(r,i),o=e?.serverIndex??0,s=m[`BackupV1alpha1Api.createBackup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteBackup(r,i){let a=await n.deleteBackup(r,i),o=e?.serverIndex??0,s=m[`BackupV1alpha1Api.deleteBackup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getBackup(r,i){let a=await n.getBackup(r,i),o=e?.serverIndex??0,s=m[`BackupV1alpha1Api.getBackup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listBackup(r,i,a,o,s,c){let l=await n.listBackup(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`BackupV1alpha1Api.listBackup`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchBackup(r,i,a){let o=await n.patchBackup(r,i,a),s=e?.serverIndex??0,c=m[`BackupV1alpha1Api.patchBackup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateBackup(r,i,a){let o=await n.updateBackup(r,i,a),s=e?.serverIndex??0,c=m[`BackupV1alpha1Api.updateBackup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},fe=function(e,t,n){let r=V(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 pe=class extends f{createBackup(e={},t){return V(this.configuration).createBackup(e.backup,t).then(e=>e(this.axios,this.basePath))}deleteBackup(e,t){return V(this.configuration).deleteBackup(e.name,t).then(e=>e(this.axios,this.basePath))}getBackup(e,t){return V(this.configuration).getBackup(e.name,t).then(e=>e(this.axios,this.basePath))}listBackup(e={},t){return V(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 V(this.configuration).patchBackup(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateBackup(e,t){return V(this.configuration).updateBackup(e.name,e.backup,t).then(e=>e(this.axios,this.basePath))}};let me=function(e){return{createCategory:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/categories`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteCategory:async(t,n={})=>{g(`deleteCategory`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getCategory:async(t,n={})=>{g(`getCategory`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listCategory:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/categories`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchCategory:async(t,n,r={})=>{g(`patchCategory`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateCategory:async(t,n,r={})=>{g(`updateCategory`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},H=function(e){let n=me(e);return{async createCategory(r,i){let a=await n.createCategory(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1Api.createCategory`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteCategory(r,i){let a=await n.deleteCategory(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1Api.deleteCategory`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getCategory(r,i){let a=await n.getCategory(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1Api.getCategory`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listCategory(r,i,a,o,s,c){let l=await n.listCategory(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CategoryV1alpha1Api.listCategory`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchCategory(r,i,a){let o=await n.patchCategory(r,i,a),s=e?.serverIndex??0,c=m[`CategoryV1alpha1Api.patchCategory`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateCategory(r,i,a){let o=await n.updateCategory(r,i,a),s=e?.serverIndex??0,c=m[`CategoryV1alpha1Api.updateCategory`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},he=function(e,t,n){let r=H(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 f{createCategory(e={},t){return H(this.configuration).createCategory(e.category,t).then(e=>e(this.axios,this.basePath))}deleteCategory(e,t){return H(this.configuration).deleteCategory(e.name,t).then(e=>e(this.axios,this.basePath))}getCategory(e,t){return H(this.configuration).getCategory(e.name,t).then(e=>e(this.axios,this.basePath))}listCategory(e={},t){return H(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 H(this.configuration).patchCategory(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateCategory(e,t){return H(this.configuration).updateCategory(e.name,e.category,t).then(e=>e(this.axios,this.basePath))}};let _e=function(e){return{queryCategories:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/categories`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},queryCategoryByName:async(t,n={})=>{g(`queryCategoryByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/categories/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPostsByCategoryName:async(t,n,r,i,a,o,s={})=>{g(`queryPostsByCategoryName`,`name`,t);let c=`/apis/api.content.halo.run/v1alpha1/categories/{name}/posts`.replace(`{name}`,encodeURIComponent(String(t))),l=new URL(c,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};_(d,e),await v(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),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:S(l),options:d}}}},ve=function(e){let n=_e(e);return{async queryCategories(r,i,a,o,s,c){let l=await n.queryCategories(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CategoryV1alpha1PublicApi.queryCategories`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async queryCategoryByName(r,i){let a=await n.queryCategoryByName(r,i),o=e?.serverIndex??0,s=m[`CategoryV1alpha1PublicApi.queryCategoryByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPostsByCategoryName(r,i,a,o,s,c,l){let u=await n.queryPostsByCategoryName(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`CategoryV1alpha1PublicApi.queryPostsByCategoryName`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||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 f{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))}};let xe=function(e){return{createComment:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/comments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteComment:async(t,n={})=>{g(`deleteComment`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getComment:async(t,n={})=>{g(`getComment`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listComment:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/comments`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchComment:async(t,n,r={})=>{g(`patchComment`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateComment:async(t,n,r={})=>{g(`updateComment`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},U=function(e){let n=xe(e);return{async createComment(r,i){let a=await n.createComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1Api.createComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteComment(r,i){let a=await n.deleteComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1Api.deleteComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getComment(r,i){let a=await n.getComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1Api.getComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listComment(r,i,a,o,s,c){let l=await n.listComment(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CommentV1alpha1Api.listComment`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchComment(r,i,a){let o=await n.patchComment(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1Api.patchComment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateComment(r,i,a){let o=await n.updateComment(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1Api.updateComment`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Se=function(e,t,n){let r=U(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 f{createComment(e={},t){return U(this.configuration).createComment(e.comment,t).then(e=>e(this.axios,this.basePath))}deleteComment(e,t){return U(this.configuration).deleteComment(e.name,t).then(e=>e(this.axios,this.basePath))}getComment(e,t){return U(this.configuration).getComment(e.name,t).then(e=>e(this.axios,this.basePath))}listComment(e={},t){return U(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 U(this.configuration).patchComment(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateComment(e,t){return U(this.configuration).updateComment(e.name,e.comment,t).then(e=>e(this.axios,this.basePath))}};let we=function(e){return{createComment:async(t,n={})=>{g(`createComment`,`commentRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/comments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},createReply:async(t,n,r={})=>{g(`createReply`,`name`,t),g(`createReply`,`replyRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},listComments:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/api.console.halo.run/v1alpha1/comments`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.keyword=o),s!==void 0&&(m.ownerKind=s),c!==void 0&&(m.ownerName=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}}}},W=function(e){let n=we(e);return{async createComment(r,i){let a=await n.createComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1ConsoleApi.createComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async createReply(r,i,a){let o=await n.createReply(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1ConsoleApi.createReply`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listComments(r,i,a,o,s,c,l,u,f){let p=await n.listComments(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`CommentV1alpha1ConsoleApi.listComments`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)}}},Te=function(e,t,n){let r=W(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 f{createComment(e,t){return W(this.configuration).createComment(e.commentRequest,t).then(e=>e(this.axios,this.basePath))}createReply(e,t){return W(this.configuration).createReply(e.name,e.replyRequest,t).then(e=>e(this.axios,this.basePath))}listComments(e={},t){return W(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))}};let De=function(e){return{createComment1:async(t,n={})=>{g(`createComment1`,`commentRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/comments`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},createReply1:async(t,n,r={})=>{g(`createReply1`,`name`,t),g(`createReply1`,`replyRequest`,n);let i=`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},getComment:async(t,n={})=>{g(`getComment`,`name`,t);let r=`/apis/api.halo.run/v1alpha1/comments/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listCommentReplies:async(t,n,r,i={})=>{g(`listCommentReplies`,`name`,t);let a=`/apis/api.halo.run/v1alpha1/comments/{name}/reply`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,h),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};_(c,e),await v(l,e),n!==void 0&&(u.page=n),r!==void 0&&(u.size=r),b(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:S(o),options:c}},listComments1:async(t,n,r,i,a,o,s,c,l,u={})=>{g(`listComments1`,`version`,t),g(`listComments1`,`kind`,n),g(`listComments1`,`name`,r);let d=new URL(`/apis/api.halo.run/v1alpha1/comments`,h),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...u},m={},y={};_(p,e),await v(m,e),i!==void 0&&(y.page=i),a!==void 0&&(y.size=a),o&&(y.sort=o),s!==void 0&&(y.group=s),t!==void 0&&(y.version=t),n!==void 0&&(y.kind=n),r!==void 0&&(y.name=r),c!==void 0&&(y.withReplies=c),l!==void 0&&(y.replySize=l),b(d,y);let x=f&&f.headers?f.headers:{};return p.headers={...m,...x,...u.headers},{url:S(d),options:p}}}},G=function(e){let n=De(e);return{async createComment1(r,i){let a=await n.createComment1(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1PublicApi.createComment1`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async createReply1(r,i,a){let o=await n.createReply1(r,i,a),s=e?.serverIndex??0,c=m[`CommentV1alpha1PublicApi.createReply1`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async getComment(r,i){let a=await n.getComment(r,i),o=e?.serverIndex??0,s=m[`CommentV1alpha1PublicApi.getComment`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listCommentReplies(r,i,a,o){let s=await n.listCommentReplies(r,i,a,o),c=e?.serverIndex??0,l=m[`CommentV1alpha1PublicApi.listCommentReplies`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async listComments1(r,i,a,o,s,c,l,u,f,p){let h=await n.listComments1(r,i,a,o,s,c,l,u,f,p),g=e?.serverIndex??0,_=m[`CommentV1alpha1PublicApi.listComments1`]?.[g]?.url;return(n,r)=>C(h,t.default,d,e)(n,_||r)}}},Oe=function(e,t,n){let r=G(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 f{createComment1(e,t){return G(this.configuration).createComment1(e.commentRequest,t).then(e=>e(this.axios,this.basePath))}createReply1(e,t){return G(this.configuration).createReply1(e.name,e.replyRequest,t).then(e=>e(this.axios,this.basePath))}getComment(e,t){return G(this.configuration).getComment(e.name,t).then(e=>e(this.axios,this.basePath))}listCommentReplies(e,t){return G(this.configuration).listCommentReplies(e.name,e.page,e.size,t).then(e=>e(this.axios,this.basePath))}listComments1(e,t){return G(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))}};let Ae=function(e){return{createConfigMap:async(t,n={})=>{let r=new URL(`/api/v1alpha1/configmaps`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteConfigMap:async(t,n={})=>{g(`deleteConfigMap`,`name`,t);let r=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getConfigMap:async(t,n={})=>{g(`getConfigMap`,`name`,t);let r=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listConfigMap:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/configmaps`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchConfigMap:async(t,n,r={})=>{g(`patchConfigMap`,`name`,t);let i=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateConfigMap:async(t,n,r={})=>{g(`updateConfigMap`,`name`,t);let i=`/api/v1alpha1/configmaps/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},K=function(e){let n=Ae(e);return{async createConfigMap(r,i){let a=await n.createConfigMap(r,i),o=e?.serverIndex??0,s=m[`ConfigMapV1alpha1Api.createConfigMap`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteConfigMap(r,i){let a=await n.deleteConfigMap(r,i),o=e?.serverIndex??0,s=m[`ConfigMapV1alpha1Api.deleteConfigMap`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getConfigMap(r,i){let a=await n.getConfigMap(r,i),o=e?.serverIndex??0,s=m[`ConfigMapV1alpha1Api.getConfigMap`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listConfigMap(r,i,a,o,s,c){let l=await n.listConfigMap(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ConfigMapV1alpha1Api.listConfigMap`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchConfigMap(r,i,a){let o=await n.patchConfigMap(r,i,a),s=e?.serverIndex??0,c=m[`ConfigMapV1alpha1Api.patchConfigMap`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateConfigMap(r,i,a){let o=await n.updateConfigMap(r,i,a),s=e?.serverIndex??0,c=m[`ConfigMapV1alpha1Api.updateConfigMap`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},je=function(e,t,n){let r=K(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 f{createConfigMap(e={},t){return K(this.configuration).createConfigMap(e.configMap,t).then(e=>e(this.axios,this.basePath))}deleteConfigMap(e,t){return K(this.configuration).deleteConfigMap(e.name,t).then(e=>e(this.axios,this.basePath))}getConfigMap(e,t){return K(this.configuration).getConfigMap(e.name,t).then(e=>e(this.axios,this.basePath))}listConfigMap(e={},t){return K(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 K(this.configuration).patchConfigMap(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateConfigMap(e,t){return K(this.configuration).updateConfigMap(e.name,e.configMap,t).then(e=>e(this.axios,this.basePath))}};let Ne=function(e){return{createCounter:async(t,n={})=>{let r=new URL(`/apis/metrics.halo.run/v1alpha1/counters`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteCounter:async(t,n={})=>{g(`deleteCounter`,`name`,t);let r=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getCounter:async(t,n={})=>{g(`getCounter`,`name`,t);let r=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listCounter:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/metrics.halo.run/v1alpha1/counters`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchCounter:async(t,n,r={})=>{g(`patchCounter`,`name`,t);let i=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateCounter:async(t,n,r={})=>{g(`updateCounter`,`name`,t);let i=`/apis/metrics.halo.run/v1alpha1/counters/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Pe=function(e){let n=Ne(e);return{async createCounter(r,i){let a=await n.createCounter(r,i),o=e?.serverIndex??0,s=m[`CounterV1alpha1Api.createCounter`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteCounter(r,i){let a=await n.deleteCounter(r,i),o=e?.serverIndex??0,s=m[`CounterV1alpha1Api.deleteCounter`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getCounter(r,i){let a=await n.getCounter(r,i),o=e?.serverIndex??0,s=m[`CounterV1alpha1Api.getCounter`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listCounter(r,i,a,o,s,c){let l=await n.listCounter(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`CounterV1alpha1Api.listCounter`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchCounter(r,i,a){let o=await n.patchCounter(r,i,a),s=e?.serverIndex??0,c=m[`CounterV1alpha1Api.patchCounter`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateCounter(r,i,a){let o=await n.updateCounter(r,i,a),s=e?.serverIndex??0,c=m[`CounterV1alpha1Api.updateCounter`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Fe=function(e,t,n){let r=Pe(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 Ie=class extends f{createCounter(e={},t){return Pe(this.configuration).createCounter(e.counter,t).then(e=>e(this.axios,this.basePath))}deleteCounter(e,t){return Pe(this.configuration).deleteCounter(e.name,t).then(e=>e(this.axios,this.basePath))}getCounter(e,t){return Pe(this.configuration).getCounter(e.name,t).then(e=>e(this.axios,this.basePath))}listCounter(e={},t){return Pe(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 Pe(this.configuration).patchCounter(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateCounter(e,t){return Pe(this.configuration).updateCounter(e.name,e.counter,t).then(e=>e(this.axios,this.basePath))}};let Le=function(e){return{createDevice:async(t,n={})=>{let r=new URL(`/apis/security.halo.run/v1alpha1/devices`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteDevice:async(t,n={})=>{g(`deleteDevice`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getDevice:async(t,n={})=>{g(`getDevice`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listDevice:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/security.halo.run/v1alpha1/devices`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchDevice:async(t,n,r={})=>{g(`patchDevice`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateDevice:async(t,n,r={})=>{g(`updateDevice`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/devices/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Re=function(e){let n=Le(e);return{async createDevice(r,i){let a=await n.createDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1Api.createDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteDevice(r,i){let a=await n.deleteDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1Api.deleteDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getDevice(r,i){let a=await n.getDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1Api.getDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listDevice(r,i,a,o,s,c){let l=await n.listDevice(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`DeviceV1alpha1Api.listDevice`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchDevice(r,i,a){let o=await n.patchDevice(r,i,a),s=e?.serverIndex??0,c=m[`DeviceV1alpha1Api.patchDevice`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateDevice(r,i,a){let o=await n.updateDevice(r,i,a),s=e?.serverIndex??0,c=m[`DeviceV1alpha1Api.updateDevice`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ze=function(e,t,n){let r=Re(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 Be=class extends f{createDevice(e={},t){return Re(this.configuration).createDevice(e.device,t).then(e=>e(this.axios,this.basePath))}deleteDevice(e,t){return Re(this.configuration).deleteDevice(e.name,t).then(e=>e(this.axios,this.basePath))}getDevice(e,t){return Re(this.configuration).getDevice(e.name,t).then(e=>e(this.axios,this.basePath))}listDevice(e={},t){return Re(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 Re(this.configuration).patchDevice(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateDevice(e,t){return Re(this.configuration).updateDevice(e.name,e.device,t).then(e=>e(this.axios,this.basePath))}};let Ve=function(e){return{listDevices:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/devices`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},revokeDevice:async(t,n={})=>{g(`revokeDevice`,`deviceId`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/devices/{deviceId}`.replace(`{deviceId}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},He=function(e){let n=Ve(e);return{async listDevices(r){let i=await n.listDevices(r),a=e?.serverIndex??0,o=m[`DeviceV1alpha1UcApi.listDevices`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async revokeDevice(r,i){let a=await n.revokeDevice(r,i),o=e?.serverIndex??0,s=m[`DeviceV1alpha1UcApi.revokeDevice`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},Ue=function(e,t,n){let r=He(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 We=class extends f{listDevices(e){return He(this.configuration).listDevices(e).then(e=>e(this.axios,this.basePath))}revokeDevice(e,t){return He(this.configuration).revokeDevice(e.deviceId,t).then(e=>e(this.axios,this.basePath))}};let Ge=function(e){return{createExtensionDefinition:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/extensiondefinitions`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteExtensionDefinition:async(t,n={})=>{g(`deleteExtensionDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getExtensionDefinition:async(t,n={})=>{g(`getExtensionDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listExtensionDefinition:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/extensiondefinitions`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchExtensionDefinition:async(t,n,r={})=>{g(`patchExtensionDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateExtensionDefinition:async(t,n,r={})=>{g(`updateExtensionDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Ke=function(e){let n=Ge(e);return{async createExtensionDefinition(r,i){let a=await n.createExtensionDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionDefinitionV1alpha1Api.createExtensionDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteExtensionDefinition(r,i){let a=await n.deleteExtensionDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionDefinitionV1alpha1Api.deleteExtensionDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getExtensionDefinition(r,i){let a=await n.getExtensionDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionDefinitionV1alpha1Api.getExtensionDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listExtensionDefinition(r,i,a,o,s,c){let l=await n.listExtensionDefinition(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ExtensionDefinitionV1alpha1Api.listExtensionDefinition`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchExtensionDefinition(r,i,a){let o=await n.patchExtensionDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionDefinitionV1alpha1Api.patchExtensionDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateExtensionDefinition(r,i,a){let o=await n.updateExtensionDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionDefinitionV1alpha1Api.updateExtensionDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},qe=function(e,t,n){let r=Ke(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 Je=class extends f{createExtensionDefinition(e={},t){return Ke(this.configuration).createExtensionDefinition(e.extensionDefinition,t).then(e=>e(this.axios,this.basePath))}deleteExtensionDefinition(e,t){return Ke(this.configuration).deleteExtensionDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}getExtensionDefinition(e,t){return Ke(this.configuration).getExtensionDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}listExtensionDefinition(e={},t){return Ke(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 Ke(this.configuration).patchExtensionDefinition(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateExtensionDefinition(e,t){return Ke(this.configuration).updateExtensionDefinition(e.name,e.extensionDefinition,t).then(e=>e(this.axios,this.basePath))}};let Ye=function(e){return{createExtensionPointDefinition:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteExtensionPointDefinition:async(t,n={})=>{g(`deleteExtensionPointDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getExtensionPointDefinition:async(t,n={})=>{g(`getExtensionPointDefinition`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listExtensionPointDefinition:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchExtensionPointDefinition:async(t,n,r={})=>{g(`patchExtensionPointDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateExtensionPointDefinition:async(t,n,r={})=>{g(`updateExtensionPointDefinition`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/extensionpointdefinitions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Xe=function(e){let n=Ye(e);return{async createExtensionPointDefinition(r,i){let a=await n.createExtensionPointDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionPointDefinitionV1alpha1Api.createExtensionPointDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteExtensionPointDefinition(r,i){let a=await n.deleteExtensionPointDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionPointDefinitionV1alpha1Api.deleteExtensionPointDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getExtensionPointDefinition(r,i){let a=await n.getExtensionPointDefinition(r,i),o=e?.serverIndex??0,s=m[`ExtensionPointDefinitionV1alpha1Api.getExtensionPointDefinition`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listExtensionPointDefinition(r,i,a,o,s,c){let l=await n.listExtensionPointDefinition(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ExtensionPointDefinitionV1alpha1Api.listExtensionPointDefinition`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchExtensionPointDefinition(r,i,a){let o=await n.patchExtensionPointDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionPointDefinitionV1alpha1Api.patchExtensionPointDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateExtensionPointDefinition(r,i,a){let o=await n.updateExtensionPointDefinition(r,i,a),s=e?.serverIndex??0,c=m[`ExtensionPointDefinitionV1alpha1Api.updateExtensionPointDefinition`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Ze=function(e,t,n){let r=Xe(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 f{createExtensionPointDefinition(e={},t){return Xe(this.configuration).createExtensionPointDefinition(e.extensionPointDefinition,t).then(e=>e(this.axios,this.basePath))}deleteExtensionPointDefinition(e,t){return Xe(this.configuration).deleteExtensionPointDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}getExtensionPointDefinition(e,t){return Xe(this.configuration).getExtensionPointDefinition(e.name,t).then(e=>e(this.axios,this.basePath))}listExtensionPointDefinition(e={},t){return Xe(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 Xe(this.configuration).patchExtensionPointDefinition(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateExtensionPointDefinition(e,t){return Xe(this.configuration).updateExtensionPointDefinition(e.name,e.extensionPointDefinition,t).then(e=>e(this.axios,this.basePath))}};let $e=function(e){return{createGroup:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/groups`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteGroup:async(t,n={})=>{g(`deleteGroup`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getGroup:async(t,n={})=>{g(`getGroup`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listGroup:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/groups`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchGroup:async(t,n,r={})=>{g(`patchGroup`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateGroup:async(t,n,r={})=>{g(`updateGroup`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/groups/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},et=function(e){let n=$e(e);return{async createGroup(r,i){let a=await n.createGroup(r,i),o=e?.serverIndex??0,s=m[`GroupV1alpha1Api.createGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteGroup(r,i){let a=await n.deleteGroup(r,i),o=e?.serverIndex??0,s=m[`GroupV1alpha1Api.deleteGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getGroup(r,i){let a=await n.getGroup(r,i),o=e?.serverIndex??0,s=m[`GroupV1alpha1Api.getGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listGroup(r,i,a,o,s,c){let l=await n.listGroup(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`GroupV1alpha1Api.listGroup`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchGroup(r,i,a){let o=await n.patchGroup(r,i,a),s=e?.serverIndex??0,c=m[`GroupV1alpha1Api.patchGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateGroup(r,i,a){let o=await n.updateGroup(r,i,a),s=e?.serverIndex??0,c=m[`GroupV1alpha1Api.updateGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},tt=function(e,t,n){let r=et(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 nt=class extends f{createGroup(e={},t){return et(this.configuration).createGroup(e.group,t).then(e=>e(this.axios,this.basePath))}deleteGroup(e,t){return et(this.configuration).deleteGroup(e.name,t).then(e=>e(this.axios,this.basePath))}getGroup(e,t){return et(this.configuration).getGroup(e.name,t).then(e=>e(this.axios,this.basePath))}listGroup(e={},t){return et(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 et(this.configuration).patchGroup(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateGroup(e,t){return et(this.configuration).updateGroup(e.name,e.group,t).then(e=>e(this.axios,this.basePath))}};let rt=function(e){return{indicesSearch:async(t,n={})=>{let r=new URL(`/apis/api.halo.run/v1alpha1/indices/-/search`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},it=function(e){let n=rt(e);return{async indicesSearch(r,i){let a=await n.indicesSearch(r,i),o=e?.serverIndex??0,s=m[`IndexV1alpha1PublicApi.indicesSearch`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},at=function(e,t,n){let r=it(e);return{indicesSearch(e={},i){return r.indicesSearch(e.searchOption,i).then(e=>e(n,t))}}};var ot=class extends f{indicesSearch(e={},t){return it(this.configuration).indicesSearch(e.searchOption,t).then(e=>e(this.axios,this.basePath))}};let st=function(e){return{rebuildAllIndices:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/indices/-/rebuild`,h),r;e&&(r=e.baseOptions);let i={method:`POST`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},ct=function(e){let n=st(e);return{async rebuildAllIndices(r){let i=await n.rebuildAllIndices(r),a=e?.serverIndex??0,o=m[`IndicesV1alpha1ConsoleApi.rebuildAllIndices`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},lt=function(e,t,n){let r=ct(e);return{rebuildAllIndices(e){return r.rebuildAllIndices(e).then(e=>e(n,t))}}};var ut=class extends f{rebuildAllIndices(e){return ct(this.configuration).rebuildAllIndices(e).then(e=>e(this.axios,this.basePath))}};let dt=function(e){return{createLocalThumbnail:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/localthumbnails`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteLocalThumbnail:async(t,n={})=>{g(`deleteLocalThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getLocalThumbnail:async(t,n={})=>{g(`getLocalThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listLocalThumbnail:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/localthumbnails`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchLocalThumbnail:async(t,n,r={})=>{g(`patchLocalThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateLocalThumbnail:async(t,n,r={})=>{g(`updateLocalThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/localthumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ft=function(e){let n=dt(e);return{async createLocalThumbnail(r,i){let a=await n.createLocalThumbnail(r,i),o=e?.serverIndex??0,s=m[`LocalThumbnailV1alpha1Api.createLocalThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteLocalThumbnail(r,i){let a=await n.deleteLocalThumbnail(r,i),o=e?.serverIndex??0,s=m[`LocalThumbnailV1alpha1Api.deleteLocalThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getLocalThumbnail(r,i){let a=await n.getLocalThumbnail(r,i),o=e?.serverIndex??0,s=m[`LocalThumbnailV1alpha1Api.getLocalThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listLocalThumbnail(r,i,a,o,s,c){let l=await n.listLocalThumbnail(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`LocalThumbnailV1alpha1Api.listLocalThumbnail`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchLocalThumbnail(r,i,a){let o=await n.patchLocalThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`LocalThumbnailV1alpha1Api.patchLocalThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateLocalThumbnail(r,i,a){let o=await n.updateLocalThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`LocalThumbnailV1alpha1Api.updateLocalThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},pt=function(e,t,n){let r=ft(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 mt=class extends f{createLocalThumbnail(e={},t){return ft(this.configuration).createLocalThumbnail(e.localThumbnail,t).then(e=>e(this.axios,this.basePath))}deleteLocalThumbnail(e,t){return ft(this.configuration).deleteLocalThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}getLocalThumbnail(e,t){return ft(this.configuration).getLocalThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}listLocalThumbnail(e={},t){return ft(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 ft(this.configuration).patchLocalThumbnail(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateLocalThumbnail(e,t){return ft(this.configuration).updateLocalThumbnail(e.name,e.localThumbnail,t).then(e=>e(this.axios,this.basePath))}};let ht=function(e){return{createMenuItem:async(t,n={})=>{let r=new URL(`/api/v1alpha1/menuitems`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteMenuItem:async(t,n={})=>{g(`deleteMenuItem`,`name`,t);let r=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getMenuItem:async(t,n={})=>{g(`getMenuItem`,`name`,t);let r=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listMenuItem:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/menuitems`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchMenuItem:async(t,n,r={})=>{g(`patchMenuItem`,`name`,t);let i=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateMenuItem:async(t,n,r={})=>{g(`updateMenuItem`,`name`,t);let i=`/api/v1alpha1/menuitems/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},gt=function(e){let n=ht(e);return{async createMenuItem(r,i){let a=await n.createMenuItem(r,i),o=e?.serverIndex??0,s=m[`MenuItemV1alpha1Api.createMenuItem`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteMenuItem(r,i){let a=await n.deleteMenuItem(r,i),o=e?.serverIndex??0,s=m[`MenuItemV1alpha1Api.deleteMenuItem`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMenuItem(r,i){let a=await n.getMenuItem(r,i),o=e?.serverIndex??0,s=m[`MenuItemV1alpha1Api.getMenuItem`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listMenuItem(r,i,a,o,s,c){let l=await n.listMenuItem(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`MenuItemV1alpha1Api.listMenuItem`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchMenuItem(r,i,a){let o=await n.patchMenuItem(r,i,a),s=e?.serverIndex??0,c=m[`MenuItemV1alpha1Api.patchMenuItem`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateMenuItem(r,i,a){let o=await n.updateMenuItem(r,i,a),s=e?.serverIndex??0,c=m[`MenuItemV1alpha1Api.updateMenuItem`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},_t=function(e,t,n){let r=gt(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 vt=class extends f{createMenuItem(e={},t){return gt(this.configuration).createMenuItem(e.menuItem,t).then(e=>e(this.axios,this.basePath))}deleteMenuItem(e,t){return gt(this.configuration).deleteMenuItem(e.name,t).then(e=>e(this.axios,this.basePath))}getMenuItem(e,t){return gt(this.configuration).getMenuItem(e.name,t).then(e=>e(this.axios,this.basePath))}listMenuItem(e={},t){return gt(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 gt(this.configuration).patchMenuItem(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateMenuItem(e,t){return gt(this.configuration).updateMenuItem(e.name,e.menuItem,t).then(e=>e(this.axios,this.basePath))}};let yt=function(e){return{createMenu:async(t,n={})=>{let r=new URL(`/api/v1alpha1/menus`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteMenu:async(t,n={})=>{g(`deleteMenu`,`name`,t);let r=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getMenu:async(t,n={})=>{g(`getMenu`,`name`,t);let r=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listMenu:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/menus`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchMenu:async(t,n,r={})=>{g(`patchMenu`,`name`,t);let i=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateMenu:async(t,n,r={})=>{g(`updateMenu`,`name`,t);let i=`/api/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},bt=function(e){let n=yt(e);return{async createMenu(r,i){let a=await n.createMenu(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1Api.createMenu`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteMenu(r,i){let a=await n.deleteMenu(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1Api.deleteMenu`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMenu(r,i){let a=await n.getMenu(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1Api.getMenu`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listMenu(r,i,a,o,s,c){let l=await n.listMenu(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`MenuV1alpha1Api.listMenu`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchMenu(r,i,a){let o=await n.patchMenu(r,i,a),s=e?.serverIndex??0,c=m[`MenuV1alpha1Api.patchMenu`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateMenu(r,i,a){let o=await n.updateMenu(r,i,a),s=e?.serverIndex??0,c=m[`MenuV1alpha1Api.updateMenu`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},xt=function(e,t,n){let r=bt(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 St=class extends f{createMenu(e={},t){return bt(this.configuration).createMenu(e.menu,t).then(e=>e(this.axios,this.basePath))}deleteMenu(e,t){return bt(this.configuration).deleteMenu(e.name,t).then(e=>e(this.axios,this.basePath))}getMenu(e,t){return bt(this.configuration).getMenu(e.name,t).then(e=>e(this.axios,this.basePath))}listMenu(e={},t){return bt(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 bt(this.configuration).patchMenu(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateMenu(e,t){return bt(this.configuration).updateMenu(e.name,e.menu,t).then(e=>e(this.axios,this.basePath))}};let Ct=function(e){return{queryMenuByName:async(t,n={})=>{g(`queryMenuByName`,`name`,t);let r=`/apis/api.halo.run/v1alpha1/menus/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPrimaryMenu:async(t={})=>{let n=new URL(`/apis/api.halo.run/v1alpha1/menus/-`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},wt=function(e){let n=Ct(e);return{async queryMenuByName(r,i){let a=await n.queryMenuByName(r,i),o=e?.serverIndex??0,s=m[`MenuV1alpha1PublicApi.queryMenuByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPrimaryMenu(r){let i=await n.queryPrimaryMenu(r),a=e?.serverIndex??0,o=m[`MenuV1alpha1PublicApi.queryPrimaryMenu`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},Tt=function(e,t,n){let r=wt(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 Et=class extends f{queryMenuByName(e,t){return wt(this.configuration).queryMenuByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPrimaryMenu(e){return wt(this.configuration).queryPrimaryMenu(e).then(e=>e(this.axios,this.basePath))}};let Dt=function(e){return{count:async(t,n={})=>{g(`count`,`counterRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/trackers/counter`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},downvote:async(t,n={})=>{g(`downvote`,`voteRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/trackers/downvote`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},upvote:async(t,n={})=>{g(`upvote`,`voteRequest`,t);let r=new URL(`/apis/api.halo.run/v1alpha1/trackers/upvote`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},Ot=function(e){let n=Dt(e);return{async count(r,i){let a=await n.count(r,i),o=e?.serverIndex??0,s=m[`MetricsV1alpha1PublicApi.count`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async downvote(r,i){let a=await n.downvote(r,i),o=e?.serverIndex??0,s=m[`MetricsV1alpha1PublicApi.downvote`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async upvote(r,i){let a=await n.upvote(r,i),o=e?.serverIndex??0,s=m[`MetricsV1alpha1PublicApi.upvote`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},kt=function(e,t,n){let r=Ot(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 At=class extends f{count(e,t){return Ot(this.configuration).count(e.counterRequest,t).then(e=>e(this.axios,this.basePath))}downvote(e,t){return Ot(this.configuration).downvote(e.voteRequest,t).then(e=>e(this.axios,this.basePath))}upvote(e,t){return Ot(this.configuration).upvote(e.voteRequest,t).then(e=>e(this.axios,this.basePath))}};let jt=function(e){return{downloadBackups:async(t,n,r={})=>{g(`downloadBackups`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},getBackupFiles:async(t={})=>{let n=new URL(`/apis/console.api.migration.halo.run/v1alpha1/backup-files`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},restoreBackup:async(t,n,r,i,a={})=>{let o=new URL(`/apis/console.api.migration.halo.run/v1alpha1/restorations`,h),s;e&&(s=e.baseOptions);let c={method:`POST`,...s,...a},l={},u={},d=new(e&&e.formDataCtor||FormData);_(c,e),await v(l,e),t!==void 0&&d.append(`backupName`,t),n!==void 0&&d.append(`downloadUrl`,n),r!==void 0&&d.append(`file`,r),i!==void 0&&d.append(`filename`,i),l[`Content-Type`]=`multipart/form-data`,b(o,u);let f=s&&s.headers?s.headers:{};return c.headers={...l,...f,...a.headers},c.data=d,{url:S(o),options:c}}}},Mt=function(e){let n=jt(e);return{async downloadBackups(r,i,a){let o=await n.downloadBackups(r,i,a),s=e?.serverIndex??0,c=m[`MigrationV1alpha1ConsoleApi.downloadBackups`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async getBackupFiles(r){let i=await n.getBackupFiles(r),a=e?.serverIndex??0,o=m[`MigrationV1alpha1ConsoleApi.getBackupFiles`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async restoreBackup(r,i,a,o,s){let c=await n.restoreBackup(r,i,a,o,s),l=e?.serverIndex??0,u=m[`MigrationV1alpha1ConsoleApi.restoreBackup`]?.[l]?.url;return(n,r)=>C(c,t.default,d,e)(n,u||r)}}},Nt=function(e,t,n){let r=Mt(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 Pt=class extends f{downloadBackups(e,t){return Mt(this.configuration).downloadBackups(e.name,e.filename,t).then(e=>e(this.axios,this.basePath))}getBackupFiles(e){return Mt(this.configuration).getBackupFiles(e).then(e=>e(this.axios,this.basePath))}restoreBackup(e={},t){return Mt(this.configuration).restoreBackup(e.backupName,e.downloadUrl,e.file,e.filename,t).then(e=>e(this.axios,this.basePath))}};let Ft=function(e){return{createNotificationTemplate:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/notificationtemplates`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteNotificationTemplate:async(t,n={})=>{g(`deleteNotificationTemplate`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getNotificationTemplate:async(t,n={})=>{g(`getNotificationTemplate`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listNotificationTemplate:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/notificationtemplates`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchNotificationTemplate:async(t,n,r={})=>{g(`patchNotificationTemplate`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateNotificationTemplate:async(t,n,r={})=>{g(`updateNotificationTemplate`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notificationtemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},It=function(e){let n=Ft(e);return{async createNotificationTemplate(r,i){let a=await n.createNotificationTemplate(r,i),o=e?.serverIndex??0,s=m[`NotificationTemplateV1alpha1Api.createNotificationTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteNotificationTemplate(r,i){let a=await n.deleteNotificationTemplate(r,i),o=e?.serverIndex??0,s=m[`NotificationTemplateV1alpha1Api.deleteNotificationTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getNotificationTemplate(r,i){let a=await n.getNotificationTemplate(r,i),o=e?.serverIndex??0,s=m[`NotificationTemplateV1alpha1Api.getNotificationTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listNotificationTemplate(r,i,a,o,s,c){let l=await n.listNotificationTemplate(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`NotificationTemplateV1alpha1Api.listNotificationTemplate`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchNotificationTemplate(r,i,a){let o=await n.patchNotificationTemplate(r,i,a),s=e?.serverIndex??0,c=m[`NotificationTemplateV1alpha1Api.patchNotificationTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateNotificationTemplate(r,i,a){let o=await n.updateNotificationTemplate(r,i,a),s=e?.serverIndex??0,c=m[`NotificationTemplateV1alpha1Api.updateNotificationTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Lt=function(e,t,n){let r=It(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 Rt=class extends f{createNotificationTemplate(e={},t){return It(this.configuration).createNotificationTemplate(e.notificationTemplate,t).then(e=>e(this.axios,this.basePath))}deleteNotificationTemplate(e,t){return It(this.configuration).deleteNotificationTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}getNotificationTemplate(e,t){return It(this.configuration).getNotificationTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}listNotificationTemplate(e={},t){return It(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 It(this.configuration).patchNotificationTemplate(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateNotificationTemplate(e,t){return It(this.configuration).updateNotificationTemplate(e.name,e.notificationTemplate,t).then(e=>e(this.axios,this.basePath))}};let zt=function(e){return{createNotification:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/notifications`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteNotification:async(t,n={})=>{g(`deleteNotification`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getNotification:async(t,n={})=>{g(`getNotification`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listNotification:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/notifications`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchNotification:async(t,n,r={})=>{g(`patchNotification`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateNotification:async(t,n,r={})=>{g(`updateNotification`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifications/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Bt=function(e){let n=zt(e);return{async createNotification(r,i){let a=await n.createNotification(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1Api.createNotification`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteNotification(r,i){let a=await n.deleteNotification(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1Api.deleteNotification`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getNotification(r,i){let a=await n.getNotification(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1Api.getNotification`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listNotification(r,i,a,o,s,c){let l=await n.listNotification(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`NotificationV1alpha1Api.listNotification`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchNotification(r,i,a){let o=await n.patchNotification(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1Api.patchNotification`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateNotification(r,i,a){let o=await n.updateNotification(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1Api.updateNotification`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Vt=function(e,t,n){let r=Bt(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 Ht=class extends f{createNotification(e={},t){return Bt(this.configuration).createNotification(e.notification,t).then(e=>e(this.axios,this.basePath))}deleteNotification(e,t){return Bt(this.configuration).deleteNotification(e.name,t).then(e=>e(this.axios,this.basePath))}getNotification(e,t){return Bt(this.configuration).getNotification(e.name,t).then(e=>e(this.axios,this.basePath))}listNotification(e={},t){return Bt(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 Bt(this.configuration).patchNotification(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateNotification(e,t){return Bt(this.configuration).updateNotification(e.name,e.notification,t).then(e=>e(this.axios,this.basePath))}};let Ut=function(e){return{unsubscribe:async(t,n,r={})=>{g(`unsubscribe`,`name`,t),g(`unsubscribe`,`token`,n);let i=`/apis/api.notification.halo.run/v1alpha1/subscriptions/{name}/unsubscribe`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.token=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}}}},Wt=function(e){let n=Ut(e);return{async unsubscribe(r,i,a){let o=await n.unsubscribe(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1PublicApi.unsubscribe`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Gt=function(e,t,n){let r=Wt(e);return{unsubscribe(e,i){return r.unsubscribe(e.name,e.token,i).then(e=>e(n,t))}}};var Kt=class extends f{unsubscribe(e,t){return Wt(this.configuration).unsubscribe(e.name,e.token,t).then(e=>e(this.axios,this.basePath))}};let qt=function(e){return{deleteSpecifiedNotification:async(t,n,r={})=>{g(`deleteSpecifiedNotification`,`username`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},listUserNotificationPreferences:async(t,n={})=>{g(`listUserNotificationPreferences`,`username`,t);let r=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listUserNotifications:async(t,n,r,i,a,o,s={})=>{g(`listUserNotifications`,`username`,t);let c=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notifications`.replace(`{username}`,encodeURIComponent(String(t))),l=new URL(c,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};_(d,e),await v(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),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:S(l),options:d}},markNotificationAsRead:async(t,n,r={})=>{g(`markNotificationAsRead`,`username`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},markNotificationsAsRead:async(t,n,r={})=>{g(`markNotificationsAsRead`,`username`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},saveUserNotificationPreferences:async(t,n,r={})=>{g(`saveUserNotificationPreferences`,`username`,t);let i=`/apis/api.notification.halo.run/v1alpha1/userspaces/{username}/notification-preferences`.replace(`{username}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Jt=function(e){let n=qt(e);return{async deleteSpecifiedNotification(r,i,a){let o=await n.deleteSpecifiedNotification(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.deleteSpecifiedNotification`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listUserNotificationPreferences(r,i){let a=await n.listUserNotificationPreferences(r,i),o=e?.serverIndex??0,s=m[`NotificationV1alpha1UcApi.listUserNotificationPreferences`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listUserNotifications(r,i,a,o,s,c,l){let u=await n.listUserNotifications(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`NotificationV1alpha1UcApi.listUserNotifications`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)},async markNotificationAsRead(r,i,a){let o=await n.markNotificationAsRead(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.markNotificationAsRead`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async markNotificationsAsRead(r,i,a){let o=await n.markNotificationsAsRead(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.markNotificationsAsRead`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async saveUserNotificationPreferences(r,i,a){let o=await n.saveUserNotificationPreferences(r,i,a),s=e?.serverIndex??0,c=m[`NotificationV1alpha1UcApi.saveUserNotificationPreferences`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Yt=function(e,t,n){let r=Jt(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 Xt=class extends f{deleteSpecifiedNotification(e,t){return Jt(this.configuration).deleteSpecifiedNotification(e.username,e.name,t).then(e=>e(this.axios,this.basePath))}listUserNotificationPreferences(e,t){return Jt(this.configuration).listUserNotificationPreferences(e.username,t).then(e=>e(this.axios,this.basePath))}listUserNotifications(e,t){return Jt(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 Jt(this.configuration).markNotificationAsRead(e.username,e.name,t).then(e=>e(this.axios,this.basePath))}markNotificationsAsRead(e,t){return Jt(this.configuration).markNotificationsAsRead(e.username,e.markSpecifiedRequest,t).then(e=>e(this.axios,this.basePath))}saveUserNotificationPreferences(e,t){return Jt(this.configuration).saveUserNotificationPreferences(e.username,e.reasonTypeNotifierCollectionRequest,t).then(e=>e(this.axios,this.basePath))}};let Zt=function(e){return{createNotifierDescriptor:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/notifierDescriptors`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteNotifierDescriptor:async(t,n={})=>{g(`deleteNotifierDescriptor`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getNotifierDescriptor:async(t,n={})=>{g(`getNotifierDescriptor`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listNotifierDescriptor:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/notifierDescriptors`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchNotifierDescriptor:async(t,n,r={})=>{g(`patchNotifierDescriptor`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateNotifierDescriptor:async(t,n,r={})=>{g(`updateNotifierDescriptor`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/notifierDescriptors/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Qt=function(e){let n=Zt(e);return{async createNotifierDescriptor(r,i){let a=await n.createNotifierDescriptor(r,i),o=e?.serverIndex??0,s=m[`NotifierDescriptorV1alpha1Api.createNotifierDescriptor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteNotifierDescriptor(r,i){let a=await n.deleteNotifierDescriptor(r,i),o=e?.serverIndex??0,s=m[`NotifierDescriptorV1alpha1Api.deleteNotifierDescriptor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getNotifierDescriptor(r,i){let a=await n.getNotifierDescriptor(r,i),o=e?.serverIndex??0,s=m[`NotifierDescriptorV1alpha1Api.getNotifierDescriptor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listNotifierDescriptor(r,i,a,o,s,c){let l=await n.listNotifierDescriptor(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`NotifierDescriptorV1alpha1Api.listNotifierDescriptor`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchNotifierDescriptor(r,i,a){let o=await n.patchNotifierDescriptor(r,i,a),s=e?.serverIndex??0,c=m[`NotifierDescriptorV1alpha1Api.patchNotifierDescriptor`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateNotifierDescriptor(r,i,a){let o=await n.updateNotifierDescriptor(r,i,a),s=e?.serverIndex??0,c=m[`NotifierDescriptorV1alpha1Api.updateNotifierDescriptor`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},$t=function(e,t,n){let r=Qt(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 en=class extends f{createNotifierDescriptor(e={},t){return Qt(this.configuration).createNotifierDescriptor(e.notifierDescriptor,t).then(e=>e(this.axios,this.basePath))}deleteNotifierDescriptor(e,t){return Qt(this.configuration).deleteNotifierDescriptor(e.name,t).then(e=>e(this.axios,this.basePath))}getNotifierDescriptor(e,t){return Qt(this.configuration).getNotifierDescriptor(e.name,t).then(e=>e(this.axios,this.basePath))}listNotifierDescriptor(e={},t){return Qt(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 Qt(this.configuration).patchNotifierDescriptor(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateNotifierDescriptor(e,t){return Qt(this.configuration).updateNotifierDescriptor(e.name,e.notifierDescriptor,t).then(e=>e(this.axios,this.basePath))}};let tn=function(e){return{fetchSenderConfig:async(t,n={})=>{g(`fetchSenderConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},saveSenderConfig:async(t,n,r={})=>{g(`saveSenderConfig`,`name`,t),g(`saveSenderConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/notifiers/{name}/sender-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},verifyEmailSenderConfig:async(t,n={})=>{g(`verifyEmailSenderConfig`,`emailConfigValidationRequest`,t);let r=new URL(`/apis/console.api.notification.halo.run/v1alpha1/notifiers/default-email-notifier/verify-connection`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},nn=function(e){let n=tn(e);return{async fetchSenderConfig(r,i){let a=await n.fetchSenderConfig(r,i),o=e?.serverIndex??0,s=m[`NotifierV1alpha1ConsoleApi.fetchSenderConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async saveSenderConfig(r,i,a){let o=await n.saveSenderConfig(r,i,a),s=e?.serverIndex??0,c=m[`NotifierV1alpha1ConsoleApi.saveSenderConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async verifyEmailSenderConfig(r,i){let a=await n.verifyEmailSenderConfig(r,i),o=e?.serverIndex??0,s=m[`NotifierV1alpha1ConsoleApi.verifyEmailSenderConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},rn=function(e,t,n){let r=nn(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 an=class extends f{fetchSenderConfig(e,t){return nn(this.configuration).fetchSenderConfig(e.name,t).then(e=>e(this.axios,this.basePath))}saveSenderConfig(e,t){return nn(this.configuration).saveSenderConfig(e.name,e.body,t).then(e=>e(this.axios,this.basePath))}verifyEmailSenderConfig(e,t){return nn(this.configuration).verifyEmailSenderConfig(e.emailConfigValidationRequest,t).then(e=>e(this.axios,this.basePath))}};let on=function(e){return{fetchReceiverConfig:async(t,n={})=>{g(`fetchReceiverConfig`,`name`,t);let r=`/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},saveReceiverConfig:async(t,n,r={})=>{g(`saveReceiverConfig`,`name`,t),g(`saveReceiverConfig`,`body`,n);let i=`/apis/api.notification.halo.run/v1alpha1/notifiers/{name}/receiver-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},sn=function(e){let n=on(e);return{async fetchReceiverConfig(r,i){let a=await n.fetchReceiverConfig(r,i),o=e?.serverIndex??0,s=m[`NotifierV1alpha1UcApi.fetchReceiverConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async saveReceiverConfig(r,i,a){let o=await n.saveReceiverConfig(r,i,a),s=e?.serverIndex??0,c=m[`NotifierV1alpha1UcApi.saveReceiverConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},cn=function(e,t,n){let r=sn(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 ln=class extends f{fetchReceiverConfig(e,t){return sn(this.configuration).fetchReceiverConfig(e.name,t).then(e=>e(this.axios,this.basePath))}saveReceiverConfig(e,t){return sn(this.configuration).saveReceiverConfig(e.name,e.body,t).then(e=>e(this.axios,this.basePath))}};let un=function(e){return{createPersonalAccessToken:async(t,n={})=>{let r=new URL(`/apis/security.halo.run/v1alpha1/personalaccesstokens`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePersonalAccessToken:async(t,n={})=>{g(`deletePersonalAccessToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPersonalAccessToken:async(t,n={})=>{g(`getPersonalAccessToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPersonalAccessToken:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/security.halo.run/v1alpha1/personalaccesstokens`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPersonalAccessToken:async(t,n,r={})=>{g(`patchPersonalAccessToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePersonalAccessToken:async(t,n,r={})=>{g(`updatePersonalAccessToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},dn=function(e){let n=un(e);return{async createPersonalAccessToken(r,i){let a=await n.createPersonalAccessToken(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1Api.createPersonalAccessToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePersonalAccessToken(r,i){let a=await n.deletePersonalAccessToken(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1Api.deletePersonalAccessToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPersonalAccessToken(r,i){let a=await n.getPersonalAccessToken(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1Api.getPersonalAccessToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPersonalAccessToken(r,i,a,o,s,c){let l=await n.listPersonalAccessToken(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PersonalAccessTokenV1alpha1Api.listPersonalAccessToken`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPersonalAccessToken(r,i,a){let o=await n.patchPersonalAccessToken(r,i,a),s=e?.serverIndex??0,c=m[`PersonalAccessTokenV1alpha1Api.patchPersonalAccessToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePersonalAccessToken(r,i,a){let o=await n.updatePersonalAccessToken(r,i,a),s=e?.serverIndex??0,c=m[`PersonalAccessTokenV1alpha1Api.updatePersonalAccessToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},fn=function(e,t,n){let r=dn(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 pn=class extends f{createPersonalAccessToken(e={},t){return dn(this.configuration).createPersonalAccessToken(e.personalAccessToken,t).then(e=>e(this.axios,this.basePath))}deletePersonalAccessToken(e,t){return dn(this.configuration).deletePersonalAccessToken(e.name,t).then(e=>e(this.axios,this.basePath))}getPersonalAccessToken(e,t){return dn(this.configuration).getPersonalAccessToken(e.name,t).then(e=>e(this.axios,this.basePath))}listPersonalAccessToken(e={},t){return dn(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 dn(this.configuration).patchPersonalAccessToken(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePersonalAccessToken(e,t){return dn(this.configuration).updatePersonalAccessToken(e.name,e.personalAccessToken,t).then(e=>e(this.axios,this.basePath))}};let mn=function(e){return{deletePat:async(t,n={})=>{g(`deletePat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},generatePat:async(t,n={})=>{g(`generatePat`,`personalAccessToken`,t);let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},obtainPat:async(t,n={})=>{g(`obtainPat`,`name`,t);let r=`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},obtainPats:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/personalaccesstokens`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},restorePat:async(t,n={})=>{g(`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,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},revokePat:async(t,n={})=>{g(`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,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},hn=function(e){let n=mn(e);return{async deletePat(r,i){let a=await n.deletePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.deletePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async generatePat(r,i){let a=await n.generatePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.generatePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async obtainPat(r,i){let a=await n.obtainPat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.obtainPat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async obtainPats(r){let i=await n.obtainPats(r),a=e?.serverIndex??0,o=m[`PersonalAccessTokenV1alpha1UcApi.obtainPats`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async restorePat(r,i){let a=await n.restorePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.restorePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async revokePat(r,i){let a=await n.revokePat(r,i),o=e?.serverIndex??0,s=m[`PersonalAccessTokenV1alpha1UcApi.revokePat`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},gn=function(e,t,n){let r=hn(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 _n=class extends f{deletePat(e,t){return hn(this.configuration).deletePat(e.name,t).then(e=>e(this.axios,this.basePath))}generatePat(e,t){return hn(this.configuration).generatePat(e.personalAccessToken,t).then(e=>e(this.axios,this.basePath))}obtainPat(e,t){return hn(this.configuration).obtainPat(e.name,t).then(e=>e(this.axios,this.basePath))}obtainPats(e){return hn(this.configuration).obtainPats(e).then(e=>e(this.axios,this.basePath))}restorePat(e,t){return hn(this.configuration).restorePat(e.name,t).then(e=>e(this.axios,this.basePath))}revokePat(e,t){return hn(this.configuration).revokePat(e.name,t).then(e=>e(this.axios,this.basePath))}};let vn=function(e){return{createPlugin:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/plugins`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePlugin:async(t,n={})=>{g(`deletePlugin`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPlugin:async(t,n={})=>{g(`getPlugin`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPlugin:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/plugins`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPlugin:async(t,n,r={})=>{g(`patchPlugin`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePlugin:async(t,n,r={})=>{g(`updatePlugin`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/plugins/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},yn=function(e){let n=vn(e);return{async createPlugin(r,i){let a=await n.createPlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1Api.createPlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePlugin(r,i){let a=await n.deletePlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1Api.deletePlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPlugin(r,i){let a=await n.getPlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1Api.getPlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPlugin(r,i,a,o,s,c){let l=await n.listPlugin(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PluginV1alpha1Api.listPlugin`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPlugin(r,i,a){let o=await n.patchPlugin(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1Api.patchPlugin`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePlugin(r,i,a){let o=await n.updatePlugin(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1Api.updatePlugin`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},bn=function(e,t,n){let r=yn(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 xn=class extends f{createPlugin(e={},t){return yn(this.configuration).createPlugin(e.plugin,t).then(e=>e(this.axios,this.basePath))}deletePlugin(e,t){return yn(this.configuration).deletePlugin(e.name,t).then(e=>e(this.axios,this.basePath))}getPlugin(e,t){return yn(this.configuration).getPlugin(e.name,t).then(e=>e(this.axios,this.basePath))}listPlugin(e={},t){return yn(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 yn(this.configuration).patchPlugin(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePlugin(e,t){return yn(this.configuration).updatePlugin(e.name,e.plugin,t).then(e=>e(this.axios,this.basePath))}};let Sn=function(e){return{changePluginRunningState:async(t,n,r={})=>{g(`changePluginRunningState`,`name`,t),g(`changePluginRunningState`,`pluginRunningStateRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/plugin-state`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},fetchCssBundle:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.css`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},fetchJsBundle:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/-/bundle.js`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},fetchPluginJsonConfig:async(t,n={})=>{g(`fetchPluginJsonConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchPluginSetting:async(t,n={})=>{g(`fetchPluginSetting`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/setting`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},installPlugin:async(t,n,r,i={})=>{let a=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/install`,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...i},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),t!==void 0&&u.append(`file`,t),n!==void 0&&u.append(`presetName`,n),r!==void 0&&u.append(`source`,r),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...i.headers},s.data=u,{url:S(a),options:s}},installPluginFromUri:async(t,n={})=>{g(`installPluginFromUri`,`installFromUriRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/plugins/-/install-from-uri`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},listPlugins:async(t,n,r,i,a,o,s,c={})=>{let l=new URL(`/apis/api.console.halo.run/v1alpha1/plugins`,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...c},f={},p={};_(d,e),await v(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),s!==void 0&&(p.enabled=s),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...c.headers},{url:S(l),options:d}},reloadPlugin:async(t,n={})=>{g(`reloadPlugin`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/reload`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},resetPluginConfig:async(t,n={})=>{g(`resetPluginConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/reset-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updatePluginJsonConfig:async(t,n,r={})=>{g(`updatePluginJsonConfig`,`name`,t),g(`updatePluginJsonConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},upgradePlugin:async(t,n,r,i,a={})=>{g(`upgradePlugin`,`name`,t);let o=`/apis/api.console.halo.run/v1alpha1/plugins/{name}/upgrade`.replace(`{name}`,encodeURIComponent(String(t))),s=new URL(o,h),c;e&&(c=e.baseOptions);let l={method:`POST`,...c,...a},u={},d={},f=new(e&&e.formDataCtor||FormData);_(l,e),await v(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`,b(s,d);let p=c&&c.headers?c.headers:{};return l.headers={...u,...p,...a.headers},l.data=f,{url:S(s),options:l}},upgradePluginFromUri:async(t,n,r={})=>{g(`upgradePluginFromUri`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},q=function(e){let n=Sn(e);return{async changePluginRunningState(r,i,a){let o=await n.changePluginRunningState(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1ConsoleApi.changePluginRunningState`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async fetchCssBundle(r){let i=await n.fetchCssBundle(r),a=e?.serverIndex??0,o=m[`PluginV1alpha1ConsoleApi.fetchCssBundle`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async fetchJsBundle(r){let i=await n.fetchJsBundle(r),a=e?.serverIndex??0,o=m[`PluginV1alpha1ConsoleApi.fetchJsBundle`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async fetchPluginJsonConfig(r,i){let a=await n.fetchPluginJsonConfig(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.fetchPluginJsonConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchPluginSetting(r,i){let a=await n.fetchPluginSetting(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.fetchPluginSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async installPlugin(r,i,a,o){let s=await n.installPlugin(r,i,a,o),c=e?.serverIndex??0,l=m[`PluginV1alpha1ConsoleApi.installPlugin`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async installPluginFromUri(r,i){let a=await n.installPluginFromUri(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.installPluginFromUri`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPlugins(r,i,a,o,s,c,l,u){let f=await n.listPlugins(r,i,a,o,s,c,l,u),p=e?.serverIndex??0,h=m[`PluginV1alpha1ConsoleApi.listPlugins`]?.[p]?.url;return(n,r)=>C(f,t.default,d,e)(n,h||r)},async reloadPlugin(r,i){let a=await n.reloadPlugin(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.reloadPlugin`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async resetPluginConfig(r,i){let a=await n.resetPluginConfig(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1ConsoleApi.resetPluginConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updatePluginJsonConfig(r,i,a){let o=await n.updatePluginJsonConfig(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1ConsoleApi.updatePluginJsonConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async upgradePlugin(r,i,a,o,s){let c=await n.upgradePlugin(r,i,a,o,s),l=e?.serverIndex??0,u=m[`PluginV1alpha1ConsoleApi.upgradePlugin`]?.[l]?.url;return(n,r)=>C(c,t.default,d,e)(n,u||r)},async upgradePluginFromUri(r,i,a){let o=await n.upgradePluginFromUri(r,i,a),s=e?.serverIndex??0,c=m[`PluginV1alpha1ConsoleApi.upgradePluginFromUri`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Cn=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 wn=class extends f{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))}};let Tn={File:`FILE`,Preset:`PRESET`,Url:`URL`},En={File:`FILE`,Preset:`PRESET`,Url:`URL`},Dn=function(e){return{queryPluginAvailableByName:async(t,n={})=>{g(`queryPluginAvailableByName`,`name`,t);let r=`/apis/api.plugin.halo.run/v1alpha1/plugins/{name}/available`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},On=function(e){let n=Dn(e);return{async queryPluginAvailableByName(r,i){let a=await n.queryPluginAvailableByName(r,i),o=e?.serverIndex??0,s=m[`PluginV1alpha1PublicApi.queryPluginAvailableByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},kn=function(e,t,n){let r=On(e);return{queryPluginAvailableByName(e,i){return r.queryPluginAvailableByName(e.name,i).then(e=>e(n,t))}}};var An=class extends f{queryPluginAvailableByName(e,t){return On(this.configuration).queryPluginAvailableByName(e.name,t).then(e=>e(this.axios,this.basePath))}};let jn=function(e){return{getPolicyConfigByGroup:async(t,n,r={})=>{g(`getPolicyConfigByGroup`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={};_(s,e),await v(c,e),b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},{url:S(a),options:s}},updatePolicyConfigByGroup:async(t,n,r,i={})=>{g(`updatePolicyConfigByGroup`,`name`,t),g(`updatePolicyConfigByGroup`,`group`,n),g(`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,h),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={};_(c,e),await v(l,e),l[`Content-Type`]=`application/json`,b(o,{});let u=s&&s.headers?s.headers:{};return c.headers={...l,...u,...i.headers},c.data=x(r,c,e),{url:S(o),options:c}}}},Mn=function(e){let n=jn(e);return{async getPolicyConfigByGroup(r,i,a){let o=await n.getPolicyConfigByGroup(r,i,a),s=e?.serverIndex??0,c=m[`PolicyAlpha1ConsoleApi.getPolicyConfigByGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePolicyConfigByGroup(r,i,a,o){let s=await n.updatePolicyConfigByGroup(r,i,a,o),c=e?.serverIndex??0,l=m[`PolicyAlpha1ConsoleApi.updatePolicyConfigByGroup`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},Nn=function(e,t,n){let r=Mn(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 Pn=class extends f{getPolicyConfigByGroup(e,t){return Mn(this.configuration).getPolicyConfigByGroup(e.name,e.group,t).then(e=>e(this.axios,this.basePath))}updatePolicyConfigByGroup(e,t){return Mn(this.configuration).updatePolicyConfigByGroup(e.name,e.group,e.body,t).then(e=>e(this.axios,this.basePath))}};let Fn=function(e){return{createPolicyTemplate:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/policytemplates`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePolicyTemplate:async(t,n={})=>{g(`deletePolicyTemplate`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPolicyTemplate:async(t,n={})=>{g(`getPolicyTemplate`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPolicyTemplate:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/policytemplates`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPolicyTemplate:async(t,n,r={})=>{g(`patchPolicyTemplate`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePolicyTemplate:async(t,n,r={})=>{g(`updatePolicyTemplate`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policytemplates/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},In=function(e){let n=Fn(e);return{async createPolicyTemplate(r,i){let a=await n.createPolicyTemplate(r,i),o=e?.serverIndex??0,s=m[`PolicyTemplateV1alpha1Api.createPolicyTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePolicyTemplate(r,i){let a=await n.deletePolicyTemplate(r,i),o=e?.serverIndex??0,s=m[`PolicyTemplateV1alpha1Api.deletePolicyTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPolicyTemplate(r,i){let a=await n.getPolicyTemplate(r,i),o=e?.serverIndex??0,s=m[`PolicyTemplateV1alpha1Api.getPolicyTemplate`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPolicyTemplate(r,i,a,o,s,c){let l=await n.listPolicyTemplate(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PolicyTemplateV1alpha1Api.listPolicyTemplate`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPolicyTemplate(r,i,a){let o=await n.patchPolicyTemplate(r,i,a),s=e?.serverIndex??0,c=m[`PolicyTemplateV1alpha1Api.patchPolicyTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePolicyTemplate(r,i,a){let o=await n.updatePolicyTemplate(r,i,a),s=e?.serverIndex??0,c=m[`PolicyTemplateV1alpha1Api.updatePolicyTemplate`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Ln=function(e,t,n){let r=In(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 Rn=class extends f{createPolicyTemplate(e={},t){return In(this.configuration).createPolicyTemplate(e.policyTemplate,t).then(e=>e(this.axios,this.basePath))}deletePolicyTemplate(e,t){return In(this.configuration).deletePolicyTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}getPolicyTemplate(e,t){return In(this.configuration).getPolicyTemplate(e.name,t).then(e=>e(this.axios,this.basePath))}listPolicyTemplate(e={},t){return In(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 In(this.configuration).patchPolicyTemplate(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePolicyTemplate(e,t){return In(this.configuration).updatePolicyTemplate(e.name,e.policyTemplate,t).then(e=>e(this.axios,this.basePath))}};let zn=function(e){return{createPolicy:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/policies`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePolicy:async(t,n={})=>{g(`deletePolicy`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPolicy:async(t,n={})=>{g(`getPolicy`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPolicy:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/policies`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPolicy:async(t,n,r={})=>{g(`patchPolicy`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePolicy:async(t,n,r={})=>{g(`updatePolicy`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/policies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Bn=function(e){let n=zn(e);return{async createPolicy(r,i){let a=await n.createPolicy(r,i),o=e?.serverIndex??0,s=m[`PolicyV1alpha1Api.createPolicy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePolicy(r,i){let a=await n.deletePolicy(r,i),o=e?.serverIndex??0,s=m[`PolicyV1alpha1Api.deletePolicy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPolicy(r,i){let a=await n.getPolicy(r,i),o=e?.serverIndex??0,s=m[`PolicyV1alpha1Api.getPolicy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPolicy(r,i,a,o,s,c){let l=await n.listPolicy(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PolicyV1alpha1Api.listPolicy`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPolicy(r,i,a){let o=await n.patchPolicy(r,i,a),s=e?.serverIndex??0,c=m[`PolicyV1alpha1Api.patchPolicy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePolicy(r,i,a){let o=await n.updatePolicy(r,i,a),s=e?.serverIndex??0,c=m[`PolicyV1alpha1Api.updatePolicy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Vn=function(e,t,n){let r=Bn(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 Hn=class extends f{createPolicy(e={},t){return Bn(this.configuration).createPolicy(e.policy,t).then(e=>e(this.axios,this.basePath))}deletePolicy(e,t){return Bn(this.configuration).deletePolicy(e.name,t).then(e=>e(this.axios,this.basePath))}getPolicy(e,t){return Bn(this.configuration).getPolicy(e.name,t).then(e=>e(this.axios,this.basePath))}listPolicy(e={},t){return Bn(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 Bn(this.configuration).patchPolicy(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePolicy(e,t){return Bn(this.configuration).updatePolicy(e.name,e.policy,t).then(e=>e(this.axios,this.basePath))}};let Un=function(e){return{createPost:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/posts`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deletePost:async(t,n={})=>{g(`deletePost`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getPost:async(t,n={})=>{g(`getPost`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPost:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/posts`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchPost:async(t,n,r={})=>{g(`patchPost`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePost:async(t,n,r={})=>{g(`updatePost`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Wn=function(e){let n=Un(e);return{async createPost(r,i){let a=await n.createPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1Api.createPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deletePost(r,i){let a=await n.deletePost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1Api.deletePost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getPost(r,i){let a=await n.getPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1Api.getPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPost(r,i,a,o,s,c){let l=await n.listPost(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PostV1alpha1Api.listPost`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchPost(r,i,a){let o=await n.patchPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1Api.patchPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePost(r,i,a){let o=await n.updatePost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1Api.updatePost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Gn=function(e,t,n){let r=Wn(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 Kn=class extends f{createPost(e={},t){return Wn(this.configuration).createPost(e.post,t).then(e=>e(this.axios,this.basePath))}deletePost(e,t){return Wn(this.configuration).deletePost(e.name,t).then(e=>e(this.axios,this.basePath))}getPost(e,t){return Wn(this.configuration).getPost(e.name,t).then(e=>e(this.axios,this.basePath))}listPost(e={},t){return Wn(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 Wn(this.configuration).patchPost(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updatePost(e,t){return Wn(this.configuration).updatePost(e.name,e.post,t).then(e=>e(this.axios,this.basePath))}};let qn=function(e){return{deletePostContent:async(t,n,r={})=>{g(`deletePostContent`,`name`,t),g(`deletePostContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},draftPost:async(t,n={})=>{g(`draftPost`,`postRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/posts`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},fetchPostContent:async(t,n,r={})=>{g(`fetchPostContent`,`name`,t),g(`fetchPostContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},fetchPostHeadContent:async(t,n={})=>{g(`fetchPostHeadContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/head-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchPostReleaseContent:async(t,n={})=>{g(`fetchPostReleaseContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/release-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPostSnapshots:async(t,n={})=>{g(`listPostSnapshots`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/snapshot`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listPosts:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/api.console.halo.run/v1alpha1/posts`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.publishPhase=o),s!==void 0&&(m.keyword=s),c!==void 0&&(m.categoryWithChildren=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},publishPost:async(t,n,r,i={})=>{g(`publishPost`,`name`,t);let a=`/apis/api.console.halo.run/v1alpha1/posts/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,h),s;e&&(s=e.baseOptions);let c={method:`PUT`,...s,...i},l={},u={};_(c,e),await v(l,e),n!==void 0&&(u.headSnapshot=n),r!==void 0&&(u.async=r),b(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:S(o),options:c}},recyclePost:async(t,n={})=>{g(`recyclePost`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/recycle`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},revertToSpecifiedSnapshotForPost:async(t,n,r={})=>{g(`revertToSpecifiedSnapshotForPost`,`name`,t),g(`revertToSpecifiedSnapshotForPost`,`revertSnapshotForPostParam`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/revert-content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},unpublishPost:async(t,n={})=>{g(`unpublishPost`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/posts/{name}/unpublish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateDraftPost:async(t,n,r={})=>{g(`updateDraftPost`,`name`,t),g(`updateDraftPost`,`postRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updatePostContent:async(t,n,r={})=>{g(`updatePostContent`,`name`,t),g(`updatePostContent`,`content`,n);let i=`/apis/api.console.halo.run/v1alpha1/posts/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},J=function(e){let n=qn(e);return{async deletePostContent(r,i,a){let o=await n.deletePostContent(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.deletePostContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async draftPost(r,i){let a=await n.draftPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.draftPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchPostContent(r,i,a){let o=await n.fetchPostContent(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.fetchPostContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async fetchPostHeadContent(r,i){let a=await n.fetchPostHeadContent(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.fetchPostHeadContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchPostReleaseContent(r,i){let a=await n.fetchPostReleaseContent(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.fetchPostReleaseContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPostSnapshots(r,i){let a=await n.listPostSnapshots(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.listPostSnapshots`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listPosts(r,i,a,o,s,c,l,u,f){let p=await n.listPosts(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`PostV1alpha1ConsoleApi.listPosts`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async publishPost(r,i,a,o){let s=await n.publishPost(r,i,a,o),c=e?.serverIndex??0,l=m[`PostV1alpha1ConsoleApi.publishPost`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)},async recyclePost(r,i){let a=await n.recyclePost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.recyclePost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async revertToSpecifiedSnapshotForPost(r,i,a){let o=await n.revertToSpecifiedSnapshotForPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.revertToSpecifiedSnapshotForPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async unpublishPost(r,i){let a=await n.unpublishPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1ConsoleApi.unpublishPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateDraftPost(r,i,a){let o=await n.updateDraftPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.updateDraftPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updatePostContent(r,i,a){let o=await n.updatePostContent(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1ConsoleApi.updatePostContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Jn=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 Yn=class extends f{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))}};let Xn={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},Zn=function(e){return{queryPostByName:async(t,n={})=>{g(`queryPostByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPostNavigationByName:async(t,n={})=>{g(`queryPostNavigationByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/posts/{name}/navigation`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryPosts:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/posts`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}}}},Qn=function(e){let n=Zn(e);return{async queryPostByName(r,i){let a=await n.queryPostByName(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1PublicApi.queryPostByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPostNavigationByName(r,i){let a=await n.queryPostNavigationByName(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1PublicApi.queryPostNavigationByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryPosts(r,i,a,o,s,c){let l=await n.queryPosts(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`PostV1alpha1PublicApi.queryPosts`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)}}},$n=function(e,t,n){let r=Qn(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 er=class extends f{queryPostByName(e,t){return Qn(this.configuration).queryPostByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPostNavigationByName(e,t){return Qn(this.configuration).queryPostNavigationByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryPosts(e={},t){return Qn(this.configuration).queryPosts(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};let tr=function(e){return{createMyPost:async(t,n={})=>{let r=new URL(`/apis/uc.api.content.halo.run/v1alpha1/posts`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},getMyPost:async(t,n={})=>{g(`getMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getMyPostDraft:async(t,n,r={})=>{g(`getMyPostDraft`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.patched=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},listMyPosts:async(t,n,r,i,a,o,s,c,l={})=>{let u=new URL(`/apis/uc.api.content.halo.run/v1alpha1/posts`,h),d;e&&(d=e.baseOptions);let f={method:`GET`,...d,...l},p={},m={};_(f,e),await v(p,e),t!==void 0&&(m.page=t),n!==void 0&&(m.size=n),r&&(m.labelSelector=r),i&&(m.fieldSelector=i),a&&(m.sort=a),o!==void 0&&(m.publishPhase=o),s!==void 0&&(m.keyword=s),c!==void 0&&(m.categoryWithChildren=c),b(u,m);let g=d&&d.headers?d.headers:{};return f.headers={...p,...g,...l.headers},{url:S(u),options:f}},publishMyPost:async(t,n={})=>{g(`publishMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},recycleMyPost:async(t,n={})=>{g(`recycleMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/recycle`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},unpublishMyPost:async(t,n={})=>{g(`unpublishMyPost`,`name`,t);let r=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/unpublish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateMyPost:async(t,n,r={})=>{g(`updateMyPost`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateMyPostDraft:async(t,n,r={})=>{g(`updateMyPostDraft`,`name`,t);let i=`/apis/uc.api.content.halo.run/v1alpha1/posts/{name}/draft`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Y=function(e){let n=tr(e);return{async createMyPost(r,i){let a=await n.createMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.createMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMyPost(r,i){let a=await n.getMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.getMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getMyPostDraft(r,i,a){let o=await n.getMyPostDraft(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1UcApi.getMyPostDraft`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listMyPosts(r,i,a,o,s,c,l,u,f){let p=await n.listMyPosts(r,i,a,o,s,c,l,u,f),h=e?.serverIndex??0,g=m[`PostV1alpha1UcApi.listMyPosts`]?.[h]?.url;return(n,r)=>C(p,t.default,d,e)(n,g||r)},async publishMyPost(r,i){let a=await n.publishMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.publishMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async recycleMyPost(r,i){let a=await n.recycleMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.recycleMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async unpublishMyPost(r,i){let a=await n.unpublishMyPost(r,i),o=e?.serverIndex??0,s=m[`PostV1alpha1UcApi.unpublishMyPost`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateMyPost(r,i,a){let o=await n.updateMyPost(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1UcApi.updateMyPost`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateMyPostDraft(r,i,a){let o=await n.updateMyPostDraft(r,i,a),s=e?.serverIndex??0,c=m[`PostV1alpha1UcApi.updateMyPostDraft`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},nr=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 rr=class extends f{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))}};let ir={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},ar=function(e){return{createReasonType:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/reasontypes`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReasonType:async(t,n={})=>{g(`deleteReasonType`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReasonType:async(t,n={})=>{g(`getReasonType`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReasonType:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/reasontypes`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReasonType:async(t,n,r={})=>{g(`patchReasonType`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReasonType:async(t,n,r={})=>{g(`updateReasonType`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasontypes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},or=function(e){let n=ar(e);return{async createReasonType(r,i){let a=await n.createReasonType(r,i),o=e?.serverIndex??0,s=m[`ReasonTypeV1alpha1Api.createReasonType`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReasonType(r,i){let a=await n.deleteReasonType(r,i),o=e?.serverIndex??0,s=m[`ReasonTypeV1alpha1Api.deleteReasonType`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReasonType(r,i){let a=await n.getReasonType(r,i),o=e?.serverIndex??0,s=m[`ReasonTypeV1alpha1Api.getReasonType`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReasonType(r,i,a,o,s,c){let l=await n.listReasonType(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReasonTypeV1alpha1Api.listReasonType`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReasonType(r,i,a){let o=await n.patchReasonType(r,i,a),s=e?.serverIndex??0,c=m[`ReasonTypeV1alpha1Api.patchReasonType`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReasonType(r,i,a){let o=await n.updateReasonType(r,i,a),s=e?.serverIndex??0,c=m[`ReasonTypeV1alpha1Api.updateReasonType`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},sr=function(e,t,n){let r=or(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 cr=class extends f{createReasonType(e={},t){return or(this.configuration).createReasonType(e.reasonType,t).then(e=>e(this.axios,this.basePath))}deleteReasonType(e,t){return or(this.configuration).deleteReasonType(e.name,t).then(e=>e(this.axios,this.basePath))}getReasonType(e,t){return or(this.configuration).getReasonType(e.name,t).then(e=>e(this.axios,this.basePath))}listReasonType(e={},t){return or(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 or(this.configuration).patchReasonType(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReasonType(e,t){return or(this.configuration).updateReasonType(e.name,e.reasonType,t).then(e=>e(this.axios,this.basePath))}};let lr=function(e){return{createReason:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/reasons`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReason:async(t,n={})=>{g(`deleteReason`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReason:async(t,n={})=>{g(`getReason`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReason:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/reasons`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReason:async(t,n,r={})=>{g(`patchReason`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReason:async(t,n,r={})=>{g(`updateReason`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/reasons/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ur=function(e){let n=lr(e);return{async createReason(r,i){let a=await n.createReason(r,i),o=e?.serverIndex??0,s=m[`ReasonV1alpha1Api.createReason`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReason(r,i){let a=await n.deleteReason(r,i),o=e?.serverIndex??0,s=m[`ReasonV1alpha1Api.deleteReason`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReason(r,i){let a=await n.getReason(r,i),o=e?.serverIndex??0,s=m[`ReasonV1alpha1Api.getReason`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReason(r,i,a,o,s,c){let l=await n.listReason(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReasonV1alpha1Api.listReason`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReason(r,i,a){let o=await n.patchReason(r,i,a),s=e?.serverIndex??0,c=m[`ReasonV1alpha1Api.patchReason`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReason(r,i,a){let o=await n.updateReason(r,i,a),s=e?.serverIndex??0,c=m[`ReasonV1alpha1Api.updateReason`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},dr=function(e,t,n){let r=ur(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 fr=class extends f{createReason(e={},t){return ur(this.configuration).createReason(e.reason,t).then(e=>e(this.axios,this.basePath))}deleteReason(e,t){return ur(this.configuration).deleteReason(e.name,t).then(e=>e(this.axios,this.basePath))}getReason(e,t){return ur(this.configuration).getReason(e.name,t).then(e=>e(this.axios,this.basePath))}listReason(e={},t){return ur(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 ur(this.configuration).patchReason(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReason(e,t){return ur(this.configuration).updateReason(e.name,e.reason,t).then(e=>e(this.axios,this.basePath))}};let pr=function(e){return{createRememberMeToken:async(t,n={})=>{let r=new URL(`/apis/security.halo.run/v1alpha1/remembermetokens`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteRememberMeToken:async(t,n={})=>{g(`deleteRememberMeToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getRememberMeToken:async(t,n={})=>{g(`getRememberMeToken`,`name`,t);let r=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listRememberMeToken:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/security.halo.run/v1alpha1/remembermetokens`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchRememberMeToken:async(t,n,r={})=>{g(`patchRememberMeToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateRememberMeToken:async(t,n,r={})=>{g(`updateRememberMeToken`,`name`,t);let i=`/apis/security.halo.run/v1alpha1/remembermetokens/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},mr=function(e){let n=pr(e);return{async createRememberMeToken(r,i){let a=await n.createRememberMeToken(r,i),o=e?.serverIndex??0,s=m[`RememberMeTokenV1alpha1Api.createRememberMeToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteRememberMeToken(r,i){let a=await n.deleteRememberMeToken(r,i),o=e?.serverIndex??0,s=m[`RememberMeTokenV1alpha1Api.deleteRememberMeToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getRememberMeToken(r,i){let a=await n.getRememberMeToken(r,i),o=e?.serverIndex??0,s=m[`RememberMeTokenV1alpha1Api.getRememberMeToken`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listRememberMeToken(r,i,a,o,s,c){let l=await n.listRememberMeToken(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`RememberMeTokenV1alpha1Api.listRememberMeToken`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchRememberMeToken(r,i,a){let o=await n.patchRememberMeToken(r,i,a),s=e?.serverIndex??0,c=m[`RememberMeTokenV1alpha1Api.patchRememberMeToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateRememberMeToken(r,i,a){let o=await n.updateRememberMeToken(r,i,a),s=e?.serverIndex??0,c=m[`RememberMeTokenV1alpha1Api.updateRememberMeToken`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},hr=function(e,t,n){let r=mr(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 gr=class extends f{createRememberMeToken(e={},t){return mr(this.configuration).createRememberMeToken(e.rememberMeToken,t).then(e=>e(this.axios,this.basePath))}deleteRememberMeToken(e,t){return mr(this.configuration).deleteRememberMeToken(e.name,t).then(e=>e(this.axios,this.basePath))}getRememberMeToken(e,t){return mr(this.configuration).getRememberMeToken(e.name,t).then(e=>e(this.axios,this.basePath))}listRememberMeToken(e={},t){return mr(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 mr(this.configuration).patchRememberMeToken(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateRememberMeToken(e,t){return mr(this.configuration).updateRememberMeToken(e.name,e.rememberMeToken,t).then(e=>e(this.axios,this.basePath))}};let _r=function(e){return{createReply:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/replies`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReply:async(t,n={})=>{g(`deleteReply`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReply:async(t,n={})=>{g(`getReply`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReply:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/replies`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReply:async(t,n,r={})=>{g(`patchReply`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReply:async(t,n,r={})=>{g(`updateReply`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/replies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},vr=function(e){let n=_r(e);return{async createReply(r,i){let a=await n.createReply(r,i),o=e?.serverIndex??0,s=m[`ReplyV1alpha1Api.createReply`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReply(r,i){let a=await n.deleteReply(r,i),o=e?.serverIndex??0,s=m[`ReplyV1alpha1Api.deleteReply`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReply(r,i){let a=await n.getReply(r,i),o=e?.serverIndex??0,s=m[`ReplyV1alpha1Api.getReply`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReply(r,i,a,o,s,c){let l=await n.listReply(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReplyV1alpha1Api.listReply`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReply(r,i,a){let o=await n.patchReply(r,i,a),s=e?.serverIndex??0,c=m[`ReplyV1alpha1Api.patchReply`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReply(r,i,a){let o=await n.updateReply(r,i,a),s=e?.serverIndex??0,c=m[`ReplyV1alpha1Api.updateReply`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},yr=function(e,t,n){let r=vr(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 br=class extends f{createReply(e={},t){return vr(this.configuration).createReply(e.reply,t).then(e=>e(this.axios,this.basePath))}deleteReply(e,t){return vr(this.configuration).deleteReply(e.name,t).then(e=>e(this.axios,this.basePath))}getReply(e,t){return vr(this.configuration).getReply(e.name,t).then(e=>e(this.axios,this.basePath))}listReply(e={},t){return vr(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 vr(this.configuration).patchReply(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReply(e,t){return vr(this.configuration).updateReply(e.name,e.reply,t).then(e=>e(this.axios,this.basePath))}};let xr=function(e){return{listReplies:async(t,n,r,i,a,o,s={})=>{g(`listReplies`,`commentName`,t);let c=new URL(`/apis/api.console.halo.run/v1alpha1/replies`,h),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...s},d={},f={};_(u,e),await v(d,e),n!==void 0&&(f.page=n),r!==void 0&&(f.size=r),i&&(f.labelSelector=i),a&&(f.fieldSelector=a),o&&(f.sort=o),t!==void 0&&(f.commentName=t),b(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...s.headers},{url:S(c),options:u}}}},Sr=function(e){let n=xr(e);return{async listReplies(r,i,a,o,s,c,l){let u=await n.listReplies(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`ReplyV1alpha1ConsoleApi.listReplies`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)}}},Cr=function(e,t,n){let r=Sr(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 wr=class extends f{listReplies(e,t){return Sr(this.configuration).listReplies(e.commentName,e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};let Tr=function(e){return{createReverseProxy:async(t,n={})=>{let r=new URL(`/apis/plugin.halo.run/v1alpha1/reverseproxies`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteReverseProxy:async(t,n={})=>{g(`deleteReverseProxy`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getReverseProxy:async(t,n={})=>{g(`getReverseProxy`,`name`,t);let r=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listReverseProxy:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/plugin.halo.run/v1alpha1/reverseproxies`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchReverseProxy:async(t,n,r={})=>{g(`patchReverseProxy`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateReverseProxy:async(t,n,r={})=>{g(`updateReverseProxy`,`name`,t);let i=`/apis/plugin.halo.run/v1alpha1/reverseproxies/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Er=function(e){let n=Tr(e);return{async createReverseProxy(r,i){let a=await n.createReverseProxy(r,i),o=e?.serverIndex??0,s=m[`ReverseProxyV1alpha1Api.createReverseProxy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteReverseProxy(r,i){let a=await n.deleteReverseProxy(r,i),o=e?.serverIndex??0,s=m[`ReverseProxyV1alpha1Api.deleteReverseProxy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getReverseProxy(r,i){let a=await n.getReverseProxy(r,i),o=e?.serverIndex??0,s=m[`ReverseProxyV1alpha1Api.getReverseProxy`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listReverseProxy(r,i,a,o,s,c){let l=await n.listReverseProxy(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ReverseProxyV1alpha1Api.listReverseProxy`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchReverseProxy(r,i,a){let o=await n.patchReverseProxy(r,i,a),s=e?.serverIndex??0,c=m[`ReverseProxyV1alpha1Api.patchReverseProxy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateReverseProxy(r,i,a){let o=await n.updateReverseProxy(r,i,a),s=e?.serverIndex??0,c=m[`ReverseProxyV1alpha1Api.updateReverseProxy`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Dr=function(e,t,n){let r=Er(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 Or=class extends f{createReverseProxy(e={},t){return Er(this.configuration).createReverseProxy(e.reverseProxy,t).then(e=>e(this.axios,this.basePath))}deleteReverseProxy(e,t){return Er(this.configuration).deleteReverseProxy(e.name,t).then(e=>e(this.axios,this.basePath))}getReverseProxy(e,t){return Er(this.configuration).getReverseProxy(e.name,t).then(e=>e(this.axios,this.basePath))}listReverseProxy(e={},t){return Er(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 Er(this.configuration).patchReverseProxy(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateReverseProxy(e,t){return Er(this.configuration).updateReverseProxy(e.name,e.reverseProxy,t).then(e=>e(this.axios,this.basePath))}};let kr=function(e){return{createRoleBinding:async(t,n={})=>{let r=new URL(`/api/v1alpha1/rolebindings`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteRoleBinding:async(t,n={})=>{g(`deleteRoleBinding`,`name`,t);let r=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getRoleBinding:async(t,n={})=>{g(`getRoleBinding`,`name`,t);let r=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listRoleBinding:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/rolebindings`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchRoleBinding:async(t,n,r={})=>{g(`patchRoleBinding`,`name`,t);let i=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateRoleBinding:async(t,n,r={})=>{g(`updateRoleBinding`,`name`,t);let i=`/api/v1alpha1/rolebindings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Ar=function(e){let n=kr(e);return{async createRoleBinding(r,i){let a=await n.createRoleBinding(r,i),o=e?.serverIndex??0,s=m[`RoleBindingV1alpha1Api.createRoleBinding`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteRoleBinding(r,i){let a=await n.deleteRoleBinding(r,i),o=e?.serverIndex??0,s=m[`RoleBindingV1alpha1Api.deleteRoleBinding`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getRoleBinding(r,i){let a=await n.getRoleBinding(r,i),o=e?.serverIndex??0,s=m[`RoleBindingV1alpha1Api.getRoleBinding`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listRoleBinding(r,i,a,o,s,c){let l=await n.listRoleBinding(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`RoleBindingV1alpha1Api.listRoleBinding`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchRoleBinding(r,i,a){let o=await n.patchRoleBinding(r,i,a),s=e?.serverIndex??0,c=m[`RoleBindingV1alpha1Api.patchRoleBinding`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateRoleBinding(r,i,a){let o=await n.updateRoleBinding(r,i,a),s=e?.serverIndex??0,c=m[`RoleBindingV1alpha1Api.updateRoleBinding`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},jr=function(e,t,n){let r=Ar(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 Mr=class extends f{createRoleBinding(e={},t){return Ar(this.configuration).createRoleBinding(e.roleBinding,t).then(e=>e(this.axios,this.basePath))}deleteRoleBinding(e,t){return Ar(this.configuration).deleteRoleBinding(e.name,t).then(e=>e(this.axios,this.basePath))}getRoleBinding(e,t){return Ar(this.configuration).getRoleBinding(e.name,t).then(e=>e(this.axios,this.basePath))}listRoleBinding(e={},t){return Ar(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 Ar(this.configuration).patchRoleBinding(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateRoleBinding(e,t){return Ar(this.configuration).updateRoleBinding(e.name,e.roleBinding,t).then(e=>e(this.axios,this.basePath))}};let Nr=function(e){return{createRole:async(t,n={})=>{let r=new URL(`/api/v1alpha1/roles`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteRole:async(t,n={})=>{g(`deleteRole`,`name`,t);let r=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getRole:async(t,n={})=>{g(`getRole`,`name`,t);let r=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listRole:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/roles`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchRole:async(t,n,r={})=>{g(`patchRole`,`name`,t);let i=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateRole:async(t,n,r={})=>{g(`updateRole`,`name`,t);let i=`/api/v1alpha1/roles/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Pr=function(e){let n=Nr(e);return{async createRole(r,i){let a=await n.createRole(r,i),o=e?.serverIndex??0,s=m[`RoleV1alpha1Api.createRole`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteRole(r,i){let a=await n.deleteRole(r,i),o=e?.serverIndex??0,s=m[`RoleV1alpha1Api.deleteRole`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getRole(r,i){let a=await n.getRole(r,i),o=e?.serverIndex??0,s=m[`RoleV1alpha1Api.getRole`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listRole(r,i,a,o,s,c){let l=await n.listRole(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`RoleV1alpha1Api.listRole`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchRole(r,i,a){let o=await n.patchRole(r,i,a),s=e?.serverIndex??0,c=m[`RoleV1alpha1Api.patchRole`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateRole(r,i,a){let o=await n.updateRole(r,i,a),s=e?.serverIndex??0,c=m[`RoleV1alpha1Api.updateRole`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Fr=function(e,t,n){let r=Pr(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 Ir=class extends f{createRole(e={},t){return Pr(this.configuration).createRole(e.role,t).then(e=>e(this.axios,this.basePath))}deleteRole(e,t){return Pr(this.configuration).deleteRole(e.name,t).then(e=>e(this.axios,this.basePath))}getRole(e,t){return Pr(this.configuration).getRole(e.name,t).then(e=>e(this.axios,this.basePath))}listRole(e={},t){return Pr(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 Pr(this.configuration).patchRole(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateRole(e,t){return Pr(this.configuration).updateRole(e.name,e.role,t).then(e=>e(this.axios,this.basePath))}};let Lr=function(e){return{createSecret:async(t,n={})=>{let r=new URL(`/api/v1alpha1/secrets`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSecret:async(t,n={})=>{g(`deleteSecret`,`name`,t);let r=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSecret:async(t,n={})=>{g(`getSecret`,`name`,t);let r=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSecret:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/secrets`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSecret:async(t,n,r={})=>{g(`patchSecret`,`name`,t);let i=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSecret:async(t,n,r={})=>{g(`updateSecret`,`name`,t);let i=`/api/v1alpha1/secrets/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Rr=function(e){let n=Lr(e);return{async createSecret(r,i){let a=await n.createSecret(r,i),o=e?.serverIndex??0,s=m[`SecretV1alpha1Api.createSecret`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSecret(r,i){let a=await n.deleteSecret(r,i),o=e?.serverIndex??0,s=m[`SecretV1alpha1Api.deleteSecret`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSecret(r,i){let a=await n.getSecret(r,i),o=e?.serverIndex??0,s=m[`SecretV1alpha1Api.getSecret`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSecret(r,i,a,o,s,c){let l=await n.listSecret(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SecretV1alpha1Api.listSecret`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSecret(r,i,a){let o=await n.patchSecret(r,i,a),s=e?.serverIndex??0,c=m[`SecretV1alpha1Api.patchSecret`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSecret(r,i,a){let o=await n.updateSecret(r,i,a),s=e?.serverIndex??0,c=m[`SecretV1alpha1Api.updateSecret`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},zr=function(e,t,n){let r=Rr(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 Br=class extends f{createSecret(e={},t){return Rr(this.configuration).createSecret(e.secret,t).then(e=>e(this.axios,this.basePath))}deleteSecret(e,t){return Rr(this.configuration).deleteSecret(e.name,t).then(e=>e(this.axios,this.basePath))}getSecret(e,t){return Rr(this.configuration).getSecret(e.name,t).then(e=>e(this.axios,this.basePath))}listSecret(e={},t){return Rr(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 Rr(this.configuration).patchSecret(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSecret(e,t){return Rr(this.configuration).updateSecret(e.name,e.secret,t).then(e=>e(this.axios,this.basePath))}};let Vr=function(e){return{createSetting:async(t,n={})=>{let r=new URL(`/api/v1alpha1/settings`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSetting:async(t,n={})=>{g(`deleteSetting`,`name`,t);let r=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSetting:async(t,n={})=>{g(`getSetting`,`name`,t);let r=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSetting:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/settings`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSetting:async(t,n,r={})=>{g(`patchSetting`,`name`,t);let i=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSetting:async(t,n,r={})=>{g(`updateSetting`,`name`,t);let i=`/api/v1alpha1/settings/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Hr=function(e){let n=Vr(e);return{async createSetting(r,i){let a=await n.createSetting(r,i),o=e?.serverIndex??0,s=m[`SettingV1alpha1Api.createSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSetting(r,i){let a=await n.deleteSetting(r,i),o=e?.serverIndex??0,s=m[`SettingV1alpha1Api.deleteSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSetting(r,i){let a=await n.getSetting(r,i),o=e?.serverIndex??0,s=m[`SettingV1alpha1Api.getSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSetting(r,i,a,o,s,c){let l=await n.listSetting(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SettingV1alpha1Api.listSetting`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSetting(r,i,a){let o=await n.patchSetting(r,i,a),s=e?.serverIndex??0,c=m[`SettingV1alpha1Api.patchSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSetting(r,i,a){let o=await n.updateSetting(r,i,a),s=e?.serverIndex??0,c=m[`SettingV1alpha1Api.updateSetting`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Ur=function(e,t,n){let r=Hr(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 Wr=class extends f{createSetting(e={},t){return Hr(this.configuration).createSetting(e.setting,t).then(e=>e(this.axios,this.basePath))}deleteSetting(e,t){return Hr(this.configuration).deleteSetting(e.name,t).then(e=>e(this.axios,this.basePath))}getSetting(e,t){return Hr(this.configuration).getSetting(e.name,t).then(e=>e(this.axios,this.basePath))}listSetting(e={},t){return Hr(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 Hr(this.configuration).patchSetting(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSetting(e,t){return Hr(this.configuration).updateSetting(e.name,e.setting,t).then(e=>e(this.axios,this.basePath))}};let Gr=function(e){return{createSinglePage:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/singlepages`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSinglePage:async(t,n={})=>{g(`deleteSinglePage`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSinglePage:async(t,n={})=>{g(`getSinglePage`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSinglePage:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/singlepages`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSinglePage:async(t,n,r={})=>{g(`patchSinglePage`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSinglePage:async(t,n,r={})=>{g(`updateSinglePage`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Kr=function(e){let n=Gr(e);return{async createSinglePage(r,i){let a=await n.createSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1Api.createSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSinglePage(r,i){let a=await n.deleteSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1Api.deleteSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSinglePage(r,i){let a=await n.getSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1Api.getSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSinglePage(r,i,a,o,s,c){let l=await n.listSinglePage(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SinglePageV1alpha1Api.listSinglePage`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSinglePage(r,i,a){let o=await n.patchSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1Api.patchSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSinglePage(r,i,a){let o=await n.updateSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1Api.updateSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},qr=function(e,t,n){let r=Kr(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 Jr=class extends f{createSinglePage(e={},t){return Kr(this.configuration).createSinglePage(e.singlePage,t).then(e=>e(this.axios,this.basePath))}deleteSinglePage(e,t){return Kr(this.configuration).deleteSinglePage(e.name,t).then(e=>e(this.axios,this.basePath))}getSinglePage(e,t){return Kr(this.configuration).getSinglePage(e.name,t).then(e=>e(this.axios,this.basePath))}listSinglePage(e={},t){return Kr(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 Kr(this.configuration).patchSinglePage(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSinglePage(e,t){return Kr(this.configuration).updateSinglePage(e.name,e.singlePage,t).then(e=>e(this.axios,this.basePath))}};let Yr=function(e){return{deleteSinglePageContent:async(t,n,r={})=>{g(`deleteSinglePageContent`,`name`,t),g(`deleteSinglePageContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`DELETE`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},draftSinglePage:async(t,n={})=>{g(`draftSinglePage`,`singlePageRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/singlepages`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},fetchSinglePageContent:async(t,n,r={})=>{g(`fetchSinglePageContent`,`name`,t),g(`fetchSinglePageContent`,`snapshotName`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...r},c={},l={};_(s,e),await v(c,e),n!==void 0&&(l.snapshotName=n),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...r.headers},{url:S(a),options:s}},fetchSinglePageHeadContent:async(t,n={})=>{g(`fetchSinglePageHeadContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/head-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchSinglePageReleaseContent:async(t,n={})=>{g(`fetchSinglePageReleaseContent`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/release-content`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSinglePageSnapshots:async(t,n={})=>{g(`listSinglePageSnapshots`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/snapshot`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSinglePages:async(t,n,r,i,a,o,s,c,l,u={})=>{let d=new URL(`/apis/api.console.halo.run/v1alpha1/singlepages`,h),f;e&&(f=e.baseOptions);let p={method:`GET`,...f,...u},m={},g={};_(p,e),await v(m,e),t!==void 0&&(g.page=t),n!==void 0&&(g.size=n),r&&(g.labelSelector=r),i&&(g.fieldSelector=i),a&&(g.sort=a),o&&(g.contributor=o),s!==void 0&&(g.publishPhase=s),c!==void 0&&(g.visible=c),l!==void 0&&(g.keyword=l),b(d,g);let y=f&&f.headers?f.headers:{};return p.headers={...m,...y,...u.headers},{url:S(d),options:p}},publishSinglePage:async(t,n={})=>{g(`publishSinglePage`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/publish`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},revertToSpecifiedSnapshotForSinglePage:async(t,n,r={})=>{g(`revertToSpecifiedSnapshotForSinglePage`,`name`,t),g(`revertToSpecifiedSnapshotForSinglePage`,`revertSnapshotForSingleParam`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/revert-content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateDraftSinglePage:async(t,n,r={})=>{g(`updateDraftSinglePage`,`name`,t),g(`updateDraftSinglePage`,`singlePageRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSinglePageContent:async(t,n,r={})=>{g(`updateSinglePageContent`,`name`,t),g(`updateSinglePageContent`,`content`,n);let i=`/apis/api.console.halo.run/v1alpha1/singlepages/{name}/content`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},X=function(e){let n=Yr(e);return{async deleteSinglePageContent(r,i,a){let o=await n.deleteSinglePageContent(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.deleteSinglePageContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async draftSinglePage(r,i){let a=await n.draftSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.draftSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchSinglePageContent(r,i,a){let o=await n.fetchSinglePageContent(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.fetchSinglePageContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async fetchSinglePageHeadContent(r,i){let a=await n.fetchSinglePageHeadContent(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.fetchSinglePageHeadContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchSinglePageReleaseContent(r,i){let a=await n.fetchSinglePageReleaseContent(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.fetchSinglePageReleaseContent`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSinglePageSnapshots(r,i){let a=await n.listSinglePageSnapshots(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.listSinglePageSnapshots`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSinglePages(r,i,a,o,s,c,l,u,f,p){let h=await n.listSinglePages(r,i,a,o,s,c,l,u,f,p),g=e?.serverIndex??0,_=m[`SinglePageV1alpha1ConsoleApi.listSinglePages`]?.[g]?.url;return(n,r)=>C(h,t.default,d,e)(n,_||r)},async publishSinglePage(r,i){let a=await n.publishSinglePage(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1ConsoleApi.publishSinglePage`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async revertToSpecifiedSnapshotForSinglePage(r,i,a){let o=await n.revertToSpecifiedSnapshotForSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.revertToSpecifiedSnapshotForSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateDraftSinglePage(r,i,a){let o=await n.updateDraftSinglePage(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.updateDraftSinglePage`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSinglePageContent(r,i,a){let o=await n.updateSinglePageContent(r,i,a),s=e?.serverIndex??0,c=m[`SinglePageV1alpha1ConsoleApi.updateSinglePageContent`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Xr=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 Zr=class extends f{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))}};let Qr={Draft:`DRAFT`,PendingApproval:`PENDING_APPROVAL`,Published:`PUBLISHED`,Failed:`FAILED`},$r={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},ei=function(e){return{querySinglePageByName:async(t,n={})=>{g(`querySinglePageByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/singlepages/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},querySinglePages:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/singlepages`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}}}},ti=function(e){let n=ei(e);return{async querySinglePageByName(r,i){let a=await n.querySinglePageByName(r,i),o=e?.serverIndex??0,s=m[`SinglePageV1alpha1PublicApi.querySinglePageByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async querySinglePages(r,i,a,o,s,c){let l=await n.querySinglePages(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SinglePageV1alpha1PublicApi.querySinglePages`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)}}},ni=function(e,t,n){let r=ti(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 ri=class extends f{querySinglePageByName(e,t){return ti(this.configuration).querySinglePageByName(e.name,t).then(e=>e(this.axios,this.basePath))}querySinglePages(e={},t){return ti(this.configuration).querySinglePages(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};let ii=function(e){return{createSnapshot:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/snapshots`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSnapshot:async(t,n={})=>{g(`deleteSnapshot`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSnapshot:async(t,n={})=>{g(`getSnapshot`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSnapshot:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/snapshots`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSnapshot:async(t,n,r={})=>{g(`patchSnapshot`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSnapshot:async(t,n,r={})=>{g(`updateSnapshot`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ai=function(e){let n=ii(e);return{async createSnapshot(r,i){let a=await n.createSnapshot(r,i),o=e?.serverIndex??0,s=m[`SnapshotV1alpha1Api.createSnapshot`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSnapshot(r,i){let a=await n.deleteSnapshot(r,i),o=e?.serverIndex??0,s=m[`SnapshotV1alpha1Api.deleteSnapshot`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSnapshot(r,i){let a=await n.getSnapshot(r,i),o=e?.serverIndex??0,s=m[`SnapshotV1alpha1Api.getSnapshot`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSnapshot(r,i,a,o,s,c){let l=await n.listSnapshot(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SnapshotV1alpha1Api.listSnapshot`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSnapshot(r,i,a){let o=await n.patchSnapshot(r,i,a),s=e?.serverIndex??0,c=m[`SnapshotV1alpha1Api.patchSnapshot`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSnapshot(r,i,a){let o=await n.updateSnapshot(r,i,a),s=e?.serverIndex??0,c=m[`SnapshotV1alpha1Api.updateSnapshot`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},oi=function(e,t,n){let r=ai(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 si=class extends f{createSnapshot(e={},t){return ai(this.configuration).createSnapshot(e.snapshot,t).then(e=>e(this.axios,this.basePath))}deleteSnapshot(e,t){return ai(this.configuration).deleteSnapshot(e.name,t).then(e=>e(this.axios,this.basePath))}getSnapshot(e,t){return ai(this.configuration).getSnapshot(e.name,t).then(e=>e(this.axios,this.basePath))}listSnapshot(e={},t){return ai(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 ai(this.configuration).patchSnapshot(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSnapshot(e,t){return ai(this.configuration).updateSnapshot(e.name,e.snapshot,t).then(e=>e(this.axios,this.basePath))}};let ci=function(e){return{getSnapshotForPost:async(t,n,r,i={})=>{g(`getSnapshotForPost`,`name`,t),g(`getSnapshotForPost`,`postName`,n);let a=`/apis/uc.api.content.halo.run/v1alpha1/snapshots/{name}`.replace(`{name}`,encodeURIComponent(String(t))),o=new URL(a,h),s;e&&(s=e.baseOptions);let c={method:`GET`,...s,...i},l={},u={};_(c,e),await v(l,e),n!==void 0&&(u.postName=n),r!==void 0&&(u.patched=r),b(o,u);let d=s&&s.headers?s.headers:{};return c.headers={...l,...d,...i.headers},{url:S(o),options:c}}}},li=function(e){let n=ci(e);return{async getSnapshotForPost(r,i,a,o){let s=await n.getSnapshotForPost(r,i,a,o),c=e?.serverIndex??0,l=m[`SnapshotV1alpha1UcApi.getSnapshotForPost`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},ui=function(e,t,n){let r=li(e);return{getSnapshotForPost(e,i){return r.getSnapshotForPost(e.name,e.postName,e.patched,i).then(e=>e(n,t))}}};var di=class extends f{getSnapshotForPost(e,t){return li(this.configuration).getSnapshotForPost(e.name,e.postName,e.patched,t).then(e=>e(this.axios,this.basePath))}};let fi=function(e){return{createSubscription:async(t,n={})=>{let r=new URL(`/apis/notification.halo.run/v1alpha1/subscriptions`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteSubscription:async(t,n={})=>{g(`deleteSubscription`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getSubscription:async(t,n={})=>{g(`getSubscription`,`name`,t);let r=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listSubscription:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/notification.halo.run/v1alpha1/subscriptions`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchSubscription:async(t,n,r={})=>{g(`patchSubscription`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateSubscription:async(t,n,r={})=>{g(`updateSubscription`,`name`,t);let i=`/apis/notification.halo.run/v1alpha1/subscriptions/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},pi=function(e){let n=fi(e);return{async createSubscription(r,i){let a=await n.createSubscription(r,i),o=e?.serverIndex??0,s=m[`SubscriptionV1alpha1Api.createSubscription`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteSubscription(r,i){let a=await n.deleteSubscription(r,i),o=e?.serverIndex??0,s=m[`SubscriptionV1alpha1Api.deleteSubscription`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getSubscription(r,i){let a=await n.getSubscription(r,i),o=e?.serverIndex??0,s=m[`SubscriptionV1alpha1Api.getSubscription`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listSubscription(r,i,a,o,s,c){let l=await n.listSubscription(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`SubscriptionV1alpha1Api.listSubscription`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchSubscription(r,i,a){let o=await n.patchSubscription(r,i,a),s=e?.serverIndex??0,c=m[`SubscriptionV1alpha1Api.patchSubscription`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateSubscription(r,i,a){let o=await n.updateSubscription(r,i,a),s=e?.serverIndex??0,c=m[`SubscriptionV1alpha1Api.updateSubscription`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},mi=function(e,t,n){let r=pi(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 hi=class extends f{createSubscription(e={},t){return pi(this.configuration).createSubscription(e.subscription,t).then(e=>e(this.axios,this.basePath))}deleteSubscription(e,t){return pi(this.configuration).deleteSubscription(e.name,t).then(e=>e(this.axios,this.basePath))}getSubscription(e,t){return pi(this.configuration).getSubscription(e.name,t).then(e=>e(this.axios,this.basePath))}listSubscription(e={},t){return pi(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 pi(this.configuration).patchSubscription(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateSubscription(e,t){return pi(this.configuration).updateSubscription(e.name,e.subscription,t).then(e=>e(this.axios,this.basePath))}};let gi=function(e){return{getSystemConfigByGroup:async(t,n={})=>{g(`getSystemConfigByGroup`,`group`,t);let r=`/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}`.replace(`{group}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateSystemConfigByGroup:async(t,n,r={})=>{g(`updateSystemConfigByGroup`,`group`,t);let i=`/apis/console.api.halo.run/v1alpha1/systemconfigs/{group}`.replace(`{group}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},_i=function(e){let n=gi(e);return{async getSystemConfigByGroup(r,i){let a=await n.getSystemConfigByGroup(r,i),o=e?.serverIndex??0,s=m[`SystemConfigV1alpha1ConsoleApi.getSystemConfigByGroup`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateSystemConfigByGroup(r,i,a){let o=await n.updateSystemConfigByGroup(r,i,a),s=e?.serverIndex??0,c=m[`SystemConfigV1alpha1ConsoleApi.updateSystemConfigByGroup`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},vi=function(e,t,n){let r=_i(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 yi=class extends f{getSystemConfigByGroup(e,t){return _i(this.configuration).getSystemConfigByGroup(e.group,t).then(e=>e(this.axios,this.basePath))}updateSystemConfigByGroup(e,t){return _i(this.configuration).updateSystemConfigByGroup(e.group,e.body,t).then(e=>e(this.axios,this.basePath))}};let bi=function(e){return{getStats:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/stats`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},xi=function(e){let n=bi(e);return{async getStats(r){let i=await n.getStats(r),a=e?.serverIndex??0,o=m[`SystemV1alpha1ConsoleApi.getStats`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},Si=function(e,t,n){let r=xi(e);return{getStats(e){return r.getStats(e).then(e=>e(n,t))}}};var Ci=class extends f{getStats(e){return xi(this.configuration).getStats(e).then(e=>e(this.axios,this.basePath))}};let wi=function(e){return{jumpToSetupPage:async(t={})=>{let n=new URL(`/system/setup`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},queryStats:async(t={})=>{let n=new URL(`/apis/api.halo.run/v1alpha1/stats/-`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},setupSystem:async(t,n={})=>{g(`setupSystem`,`setupRequest`,t);let r=new URL(`/system/setup`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},Ti=function(e){let n=wi(e);return{async jumpToSetupPage(r){let i=await n.jumpToSetupPage(r),a=e?.serverIndex??0,o=m[`SystemV1alpha1PublicApi.jumpToSetupPage`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async queryStats(r){let i=await n.queryStats(r),a=e?.serverIndex??0,o=m[`SystemV1alpha1PublicApi.queryStats`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async setupSystem(r,i){let a=await n.setupSystem(r,i),o=e?.serverIndex??0,s=m[`SystemV1alpha1PublicApi.setupSystem`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},Ei=function(e,t,n){let r=Ti(e);return{jumpToSetupPage(e){return r.jumpToSetupPage(e).then(e=>e(n,t))},queryStats(e){return r.queryStats(e).then(e=>e(n,t))},setupSystem(e,i){return r.setupSystem(e.setupRequest,i).then(e=>e(n,t))}}};var Di=class extends f{jumpToSetupPage(e){return Ti(this.configuration).jumpToSetupPage(e).then(e=>e(this.axios,this.basePath))}queryStats(e){return Ti(this.configuration).queryStats(e).then(e=>e(this.axios,this.basePath))}setupSystem(e,t){return Ti(this.configuration).setupSystem(e.setupRequest,t).then(e=>e(this.axios,this.basePath))}};let Oi=function(e){return{createTag:async(t,n={})=>{let r=new URL(`/apis/content.halo.run/v1alpha1/tags`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteTag:async(t,n={})=>{g(`deleteTag`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getTag:async(t,n={})=>{g(`getTag`,`name`,t);let r=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listTag:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/content.halo.run/v1alpha1/tags`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchTag:async(t,n,r={})=>{g(`patchTag`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateTag:async(t,n,r={})=>{g(`updateTag`,`name`,t);let i=`/apis/content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Z=function(e){let n=Oi(e);return{async createTag(r,i){let a=await n.createTag(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1Api.createTag`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteTag(r,i){let a=await n.deleteTag(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1Api.deleteTag`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getTag(r,i){let a=await n.getTag(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1Api.getTag`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listTag(r,i,a,o,s,c){let l=await n.listTag(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`TagV1alpha1Api.listTag`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchTag(r,i,a){let o=await n.patchTag(r,i,a),s=e?.serverIndex??0,c=m[`TagV1alpha1Api.patchTag`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateTag(r,i,a){let o=await n.updateTag(r,i,a),s=e?.serverIndex??0,c=m[`TagV1alpha1Api.updateTag`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ki=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 Ai=class extends f{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))}};let ji=function(e){return{listPostTags:async(t,n,r,i,a,o,s={})=>{let c=new URL(`/apis/api.console.halo.run/v1alpha1/tags`,h),l;e&&(l=e.baseOptions);let u={method:`GET`,...l,...s},d={},f={};_(u,e),await v(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),o!==void 0&&(f.keyword=o),b(c,f);let p=l&&l.headers?l.headers:{};return u.headers={...d,...p,...s.headers},{url:S(c),options:u}}}},Mi=function(e){let n=ji(e);return{async listPostTags(r,i,a,o,s,c,l){let u=await n.listPostTags(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`TagV1alpha1ConsoleApi.listPostTags`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)}}},Ni=function(e,t,n){let r=Mi(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 Pi=class extends f{listPostTags(e={},t){return Mi(this.configuration).listPostTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,e.keyword,t).then(e=>e(this.axios,this.basePath))}};let Fi=function(e){return{queryPostsByTagName:async(t,n,r,i,a,o,s={})=>{g(`queryPostsByTagName`,`name`,t);let c=`/apis/api.content.halo.run/v1alpha1/tags/{name}/posts`.replace(`{name}`,encodeURIComponent(String(t))),l=new URL(c,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...s},f={},p={};_(d,e),await v(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),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...s.headers},{url:S(l),options:d}},queryTagByName:async(t,n={})=>{g(`queryTagByName`,`name`,t);let r=`/apis/api.content.halo.run/v1alpha1/tags/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},queryTags:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.content.halo.run/v1alpha1/tags`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}}}},Ii=function(e){let n=Fi(e);return{async queryPostsByTagName(r,i,a,o,s,c,l){let u=await n.queryPostsByTagName(r,i,a,o,s,c,l),f=e?.serverIndex??0,p=m[`TagV1alpha1PublicApi.queryPostsByTagName`]?.[f]?.url;return(n,r)=>C(u,t.default,d,e)(n,p||r)},async queryTagByName(r,i){let a=await n.queryTagByName(r,i),o=e?.serverIndex??0,s=m[`TagV1alpha1PublicApi.queryTagByName`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async queryTags(r,i,a,o,s,c){let l=await n.queryTags(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`TagV1alpha1PublicApi.queryTags`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)}}},Li=function(e,t,n){let r=Ii(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 Ri=class extends f{queryPostsByTagName(e,t){return Ii(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 Ii(this.configuration).queryTagByName(e.name,t).then(e=>e(this.axios,this.basePath))}queryTags(e={},t){return Ii(this.configuration).queryTags(e.page,e.size,e.labelSelector,e.fieldSelector,e.sort,t).then(e=>e(this.axios,this.basePath))}};let zi=function(e){return{createTheme:async(t,n={})=>{let r=new URL(`/apis/theme.halo.run/v1alpha1/themes`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteTheme:async(t,n={})=>{g(`deleteTheme`,`name`,t);let r=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getTheme:async(t,n={})=>{g(`getTheme`,`name`,t);let r=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listTheme:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/theme.halo.run/v1alpha1/themes`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchTheme:async(t,n,r={})=>{g(`patchTheme`,`name`,t);let i=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateTheme:async(t,n,r={})=>{g(`updateTheme`,`name`,t);let i=`/apis/theme.halo.run/v1alpha1/themes/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Bi=function(e){let n=zi(e);return{async createTheme(r,i){let a=await n.createTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1Api.createTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteTheme(r,i){let a=await n.deleteTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1Api.deleteTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getTheme(r,i){let a=await n.getTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1Api.getTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listTheme(r,i,a,o,s,c){let l=await n.listTheme(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ThemeV1alpha1Api.listTheme`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchTheme(r,i,a){let o=await n.patchTheme(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1Api.patchTheme`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateTheme(r,i,a){let o=await n.updateTheme(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1Api.updateTheme`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Vi=function(e,t,n){let r=Bi(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 Hi=class extends f{createTheme(e={},t){return Bi(this.configuration).createTheme(e.theme,t).then(e=>e(this.axios,this.basePath))}deleteTheme(e,t){return Bi(this.configuration).deleteTheme(e.name,t).then(e=>e(this.axios,this.basePath))}getTheme(e,t){return Bi(this.configuration).getTheme(e.name,t).then(e=>e(this.axios,this.basePath))}listTheme(e={},t){return Bi(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 Bi(this.configuration).patchTheme(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateTheme(e,t){return Bi(this.configuration).updateTheme(e.name,e.theme,t).then(e=>e(this.axios,this.basePath))}};let Ui=function(e){return{activateTheme:async(t,n={})=>{g(`activateTheme`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/activation`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchActivatedTheme:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/themes/-/activation`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},fetchThemeJsonConfig:async(t,n={})=>{g(`fetchThemeJsonConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},fetchThemeSetting:async(t,n={})=>{g(`fetchThemeSetting`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/setting`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},installTheme:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/themes/install`,h),r;e&&(r=e.baseOptions);let i={method:`POST`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},installThemeFromUri:async(t,n={})=>{g(`installThemeFromUri`,`installFromUriRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/themes/-/install-from-uri`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},invalidateCache:async(t,n={})=>{g(`invalidateCache`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/invalidate-cache`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listThemes:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/api.console.halo.run/v1alpha1/themes`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a!==void 0&&(d.uninstalled=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},reload:async(t,n={})=>{g(`reload`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/reload`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},resetThemeConfig:async(t,n={})=>{g(`resetThemeConfig`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/themes/{name}/reset-config`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateThemeJsonConfig:async(t,n,r={})=>{g(`updateThemeJsonConfig`,`name`,t),g(`updateThemeJsonConfig`,`body`,n);let i=`/apis/api.console.halo.run/v1alpha1/themes/{name}/json-config`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},upgradeTheme:async(t,n,r={})=>{g(`upgradeTheme`,`name`,t),g(`upgradeTheme`,`file`,n);let i=`/apis/api.console.halo.run/v1alpha1/themes/{name}/upgrade`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),n!==void 0&&u.append(`file`,n),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=u,{url:S(a),options:s}},upgradeThemeFromUri:async(t,n,r={})=>{g(`upgradeThemeFromUri`,`name`,t),g(`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,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},Q=function(e){let n=Ui(e);return{async activateTheme(r,i){let a=await n.activateTheme(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.activateTheme`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchActivatedTheme(r){let i=await n.fetchActivatedTheme(r),a=e?.serverIndex??0,o=m[`ThemeV1alpha1ConsoleApi.fetchActivatedTheme`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async fetchThemeJsonConfig(r,i){let a=await n.fetchThemeJsonConfig(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.fetchThemeJsonConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async fetchThemeSetting(r,i){let a=await n.fetchThemeSetting(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.fetchThemeSetting`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async installTheme(r){let i=await n.installTheme(r),a=e?.serverIndex??0,o=m[`ThemeV1alpha1ConsoleApi.installTheme`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async installThemeFromUri(r,i){let a=await n.installThemeFromUri(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.installThemeFromUri`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async invalidateCache(r,i){let a=await n.invalidateCache(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.invalidateCache`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listThemes(r,i,a,o,s,c){let l=await n.listThemes(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ThemeV1alpha1ConsoleApi.listThemes`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async reload(r,i){let a=await n.reload(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.reload`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async resetThemeConfig(r,i){let a=await n.resetThemeConfig(r,i),o=e?.serverIndex??0,s=m[`ThemeV1alpha1ConsoleApi.resetThemeConfig`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateThemeJsonConfig(r,i,a){let o=await n.updateThemeJsonConfig(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1ConsoleApi.updateThemeJsonConfig`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async upgradeTheme(r,i,a){let o=await n.upgradeTheme(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1ConsoleApi.upgradeTheme`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async upgradeThemeFromUri(r,i,a){let o=await n.upgradeThemeFromUri(r,i,a),s=e?.serverIndex??0,c=m[`ThemeV1alpha1ConsoleApi.upgradeThemeFromUri`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Wi=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 Gi=class extends f{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))}};let Ki=function(e){return{createThumbnail:async(t,n={})=>{let r=new URL(`/apis/storage.halo.run/v1alpha1/thumbnails`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteThumbnail:async(t,n={})=>{g(`deleteThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getThumbnail:async(t,n={})=>{g(`getThumbnail`,`name`,t);let r=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listThumbnail:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/storage.halo.run/v1alpha1/thumbnails`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchThumbnail:async(t,n,r={})=>{g(`patchThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateThumbnail:async(t,n,r={})=>{g(`updateThumbnail`,`name`,t);let i=`/apis/storage.halo.run/v1alpha1/thumbnails/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},qi=function(e){let n=Ki(e);return{async createThumbnail(r,i){let a=await n.createThumbnail(r,i),o=e?.serverIndex??0,s=m[`ThumbnailV1alpha1Api.createThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteThumbnail(r,i){let a=await n.deleteThumbnail(r,i),o=e?.serverIndex??0,s=m[`ThumbnailV1alpha1Api.deleteThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getThumbnail(r,i){let a=await n.getThumbnail(r,i),o=e?.serverIndex??0,s=m[`ThumbnailV1alpha1Api.getThumbnail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listThumbnail(r,i,a,o,s,c){let l=await n.listThumbnail(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`ThumbnailV1alpha1Api.listThumbnail`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchThumbnail(r,i,a){let o=await n.patchThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`ThumbnailV1alpha1Api.patchThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateThumbnail(r,i,a){let o=await n.updateThumbnail(r,i,a),s=e?.serverIndex??0,c=m[`ThumbnailV1alpha1Api.updateThumbnail`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},Ji=function(e,t,n){let r=qi(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 Yi=class extends f{createThumbnail(e={},t){return qi(this.configuration).createThumbnail(e.thumbnail,t).then(e=>e(this.axios,this.basePath))}deleteThumbnail(e,t){return qi(this.configuration).deleteThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}getThumbnail(e,t){return qi(this.configuration).getThumbnail(e.name,t).then(e=>e(this.axios,this.basePath))}listThumbnail(e={},t){return qi(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 qi(this.configuration).patchThumbnail(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateThumbnail(e,t){return qi(this.configuration).updateThumbnail(e.name,e.thumbnail,t).then(e=>e(this.axios,this.basePath))}};let Xi=function(e){return{getThumbnailByUri:async(t,n,r,i={})=>{g(`getThumbnailByUri`,`uri`,t),g(`getThumbnailByUri`,`size`,n);let a=new URL(`/apis/api.storage.halo.run/v1alpha1/thumbnails/-/via-uri`,h),o;e&&(o=e.baseOptions);let s={method:`GET`,...o,...i},c={},l={};_(s,e),await v(c,e),t!==void 0&&(l.uri=t),n!==void 0&&(l.size=n),r!==void 0&&(l.width=r),b(a,l);let u=o&&o.headers?o.headers:{};return s.headers={...c,...u,...i.headers},{url:S(a),options:s}}}},Zi=function(e){let n=Xi(e);return{async getThumbnailByUri(r,i,a,o){let s=await n.getThumbnailByUri(r,i,a,o),c=e?.serverIndex??0,l=m[`ThumbnailV1alpha1PublicApi.getThumbnailByUri`]?.[c]?.url;return(n,r)=>C(s,t.default,d,e)(n,l||r)}}},Qi=function(e,t,n){let r=Zi(e);return{getThumbnailByUri(e,i){return r.getThumbnailByUri(e.uri,e.size,e.width,i).then(e=>e(n,t))}}};var $i=class extends f{getThumbnailByUri(e,t){return Zi(this.configuration).getThumbnailByUri(e.uri,e.size,e.width,t).then(e=>e(this.axios,this.basePath))}};let ea={S:`S`,M:`M`,L:`L`,Xl:`XL`},ta={NUMBER_400:400,NUMBER_800:800,NUMBER_1200:1200,NUMBER_1600:1600},na=function(e){return{configurerTotp:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteTotp:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/-`,h),i;e&&(i=e.baseOptions);let a={method:`DELETE`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},disableTwoFactor:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/disabled`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},enableTwoFactor:async(t,n={})=>{let r=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings/enabled`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},getTotpAuthLink:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/totp/auth-link`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},getTwoFactorAuthenticationSettings:async(t={})=>{let n=new URL(`/apis/uc.api.security.halo.run/v1alpha1/authentications/two-factor/settings`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}}}},ra=function(e){let n=na(e);return{async configurerTotp(r,i){let a=await n.configurerTotp(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.configurerTotp`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteTotp(r,i){let a=await n.deleteTotp(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.deleteTotp`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async disableTwoFactor(r,i){let a=await n.disableTwoFactor(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.disableTwoFactor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async enableTwoFactor(r,i){let a=await n.enableTwoFactor(r,i),o=e?.serverIndex??0,s=m[`TwoFactorAuthV1alpha1UcApi.enableTwoFactor`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getTotpAuthLink(r){let i=await n.getTotpAuthLink(r),a=e?.serverIndex??0,o=m[`TwoFactorAuthV1alpha1UcApi.getTotpAuthLink`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async getTwoFactorAuthenticationSettings(r){let i=await n.getTwoFactorAuthenticationSettings(r),a=e?.serverIndex??0,o=m[`TwoFactorAuthV1alpha1UcApi.getTwoFactorAuthenticationSettings`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)}}},ia=function(e,t,n){let r=ra(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 aa=class extends f{configurerTotp(e={},t){return ra(this.configuration).configurerTotp(e.totpRequest,t).then(e=>e(this.axios,this.basePath))}deleteTotp(e={},t){return ra(this.configuration).deleteTotp(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}disableTwoFactor(e={},t){return ra(this.configuration).disableTwoFactor(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}enableTwoFactor(e={},t){return ra(this.configuration).enableTwoFactor(e.passwordRequest,t).then(e=>e(this.axios,this.basePath))}getTotpAuthLink(e){return ra(this.configuration).getTotpAuthLink(e).then(e=>e(this.axios,this.basePath))}getTwoFactorAuthenticationSettings(e){return ra(this.configuration).getTwoFactorAuthenticationSettings(e).then(e=>e(this.axios,this.basePath))}};let oa=function(e){return{createUserConnection:async(t,n={})=>{let r=new URL(`/apis/auth.halo.run/v1alpha1/userconnections`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteUserConnection:async(t,n={})=>{g(`deleteUserConnection`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getUserConnection:async(t,n={})=>{g(`getUserConnection`,`name`,t);let r=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listUserConnection:async(t,n,r,i,a,o={})=>{let s=new URL(`/apis/auth.halo.run/v1alpha1/userconnections`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchUserConnection:async(t,n,r={})=>{g(`patchUserConnection`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateUserConnection:async(t,n,r={})=>{g(`updateUserConnection`,`name`,t);let i=`/apis/auth.halo.run/v1alpha1/userconnections/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},sa=function(e){let n=oa(e);return{async createUserConnection(r,i){let a=await n.createUserConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1Api.createUserConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteUserConnection(r,i){let a=await n.deleteUserConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1Api.deleteUserConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getUserConnection(r,i){let a=await n.getUserConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1Api.getUserConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listUserConnection(r,i,a,o,s,c){let l=await n.listUserConnection(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`UserConnectionV1alpha1Api.listUserConnection`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchUserConnection(r,i,a){let o=await n.patchUserConnection(r,i,a),s=e?.serverIndex??0,c=m[`UserConnectionV1alpha1Api.patchUserConnection`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateUserConnection(r,i,a){let o=await n.updateUserConnection(r,i,a),s=e?.serverIndex??0,c=m[`UserConnectionV1alpha1Api.updateUserConnection`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ca=function(e,t,n){let r=sa(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 la=class extends f{createUserConnection(e={},t){return sa(this.configuration).createUserConnection(e.userConnection,t).then(e=>e(this.axios,this.basePath))}deleteUserConnection(e,t){return sa(this.configuration).deleteUserConnection(e.name,t).then(e=>e(this.axios,this.basePath))}getUserConnection(e,t){return sa(this.configuration).getUserConnection(e.name,t).then(e=>e(this.axios,this.basePath))}listUserConnection(e={},t){return sa(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 sa(this.configuration).patchUserConnection(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateUserConnection(e,t){return sa(this.configuration).updateUserConnection(e.name,e.userConnection,t).then(e=>e(this.axios,this.basePath))}};let ua=function(e){return{disconnectMyConnection:async(t,n={})=>{g(`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,h),a;e&&(a=e.baseOptions);let o={method:`PUT`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}}}},da=function(e){let n=ua(e);return{async disconnectMyConnection(r,i){let a=await n.disconnectMyConnection(r,i),o=e?.serverIndex??0,s=m[`UserConnectionV1alpha1UcApi.disconnectMyConnection`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},fa=function(e,t,n){let r=da(e);return{disconnectMyConnection(e,i){return r.disconnectMyConnection(e.registerId,i).then(e=>e(n,t))}}};var pa=class extends f{disconnectMyConnection(e,t){return da(this.configuration).disconnectMyConnection(e.registerId,t).then(e=>e(this.axios,this.basePath))}};let ma=function(e){return{getMyPreference:async(t,n={})=>{g(`getMyPreference`,`group`,t);let r=`/apis/uc.api.halo.run/v1alpha1/user-preferences/{group}`.replace(`{group}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},updateMyPreference:async(t,n,r={})=>{g(`updateMyPreference`,`group`,t),g(`updateMyPreference`,`body`,n);let i=`/apis/uc.api.halo.run/v1alpha1/user-preferences/{group}`.replace(`{group}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ha=function(e){let n=ma(e);return{async getMyPreference(r,i){let a=await n.getMyPreference(r,i),o=e?.serverIndex??0,s=m[`UserPreferenceV1alpha1UcApi.getMyPreference`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateMyPreference(r,i,a){let o=await n.updateMyPreference(r,i,a),s=e?.serverIndex??0,c=m[`UserPreferenceV1alpha1UcApi.updateMyPreference`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ga=function(e,t,n){let r=ha(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 _a=class extends f{getMyPreference(e,t){return ha(this.configuration).getMyPreference(e.group,t).then(e=>e(this.axios,this.basePath))}updateMyPreference(e,t){return ha(this.configuration).updateMyPreference(e.group,e.body,t).then(e=>e(this.axios,this.basePath))}};let va=function(e){return{createUser:async(t,n={})=>{let r=new URL(`/api/v1alpha1/users`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteUser:async(t,n={})=>{g(`deleteUser`,`name`,t);let r=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getUser:async(t,n={})=>{g(`getUser`,`name`,t);let r=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},listUser:async(t,n,r,i,a,o={})=>{let s=new URL(`/api/v1alpha1/users`,h),c;e&&(c=e.baseOptions);let l={method:`GET`,...c,...o},u={},d={};_(l,e),await v(u,e),t!==void 0&&(d.page=t),n!==void 0&&(d.size=n),r&&(d.labelSelector=r),i&&(d.fieldSelector=i),a&&(d.sort=a),b(s,d);let f=c&&c.headers?c.headers:{};return l.headers={...u,...f,...o.headers},{url:S(s),options:l}},patchUser:async(t,n,r={})=>{g(`patchUser`,`name`,t);let i=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PATCH`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json-patch+json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},updateUser:async(t,n,r={})=>{g(`updateUser`,`name`,t);let i=`/api/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}}}},ya=function(e){let n=va(e);return{async createUser(r,i){let a=await n.createUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1Api.createUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteUser(r,i){let a=await n.deleteUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1Api.deleteUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getUser(r,i){let a=await n.getUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1Api.getUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async listUser(r,i,a,o,s,c){let l=await n.listUser(r,i,a,o,s,c),u=e?.serverIndex??0,f=m[`UserV1alpha1Api.listUser`]?.[u]?.url;return(n,r)=>C(l,t.default,d,e)(n,f||r)},async patchUser(r,i,a){let o=await n.patchUser(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1Api.patchUser`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async updateUser(r,i,a){let o=await n.updateUser(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1Api.updateUser`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)}}},ba=function(e,t,n){let r=ya(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 xa=class extends f{createUser(e={},t){return ya(this.configuration).createUser(e.user,t).then(e=>e(this.axios,this.basePath))}deleteUser(e,t){return ya(this.configuration).deleteUser(e.name,t).then(e=>e(this.axios,this.basePath))}getUser(e,t){return ya(this.configuration).getUser(e.name,t).then(e=>e(this.axios,this.basePath))}listUser(e={},t){return ya(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 ya(this.configuration).patchUser(e.name,e.jsonPatchInner,t).then(e=>e(this.axios,this.basePath))}updateUser(e,t){return ya(this.configuration).updateUser(e.name,e.user,t).then(e=>e(this.axios,this.basePath))}};let Sa=function(e){return{changeAnyonePassword:async(t,n,r={})=>{g(`changeAnyonePassword`,`name`,t),g(`changeAnyonePassword`,`changePasswordRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/password`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`PUT`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},changeOwnPassword:async(t,n={})=>{g(`changeOwnPassword`,`changeOwnPasswordRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-/password`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},createUser:async(t,n={})=>{g(`createUser`,`createUserRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},deleteUserAvatar:async(t,n={})=>{g(`deleteUserAvatar`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`DELETE`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},disableUser:async(t,n={})=>{g(`disableUser`,`username`,t);let r=`/apis/console.api.security.halo.run/v1alpha1/users/{username}/disable`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},enableUser:async(t,n={})=>{g(`enableUser`,`username`,t);let r=`/apis/console.api.security.halo.run/v1alpha1/users/{username}/enable`.replace(`{username}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`POST`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getCurrentUserDetail:async(t={})=>{let n=new URL(`/apis/api.console.halo.run/v1alpha1/users/-`,h),r;e&&(r=e.baseOptions);let i={method:`GET`,...r,...t},a={};_(i,e),await v(a,e),b(n,{});let o=r&&r.headers?r.headers:{};return i.headers={...a,...o,...t.headers},{url:S(n),options:i}},getPermissions:async(t,n={})=>{g(`getPermissions`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},getUserDetail:async(t,n={})=>{g(`getUserDetail`,`name`,t);let r=`/apis/api.console.halo.run/v1alpha1/users/{name}`.replace(`{name}`,encodeURIComponent(String(t))),i=new URL(r,h),a;e&&(a=e.baseOptions);let o={method:`GET`,...a,...n},s={};_(o,e),await v(s,e),b(i,{});let c=a&&a.headers?a.headers:{};return o.headers={...s,...c,...n.headers},{url:S(i),options:o}},grantPermission:async(t,n,r={})=>{g(`grantPermission`,`name`,t),g(`grantPermission`,`grantRequest`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/permissions`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={};_(s,e),await v(c,e),c[`Content-Type`]=`application/json`,b(a,{});let l=o&&o.headers?o.headers:{};return s.headers={...c,...l,...r.headers},s.data=x(n,s,e),{url:S(a),options:s}},listUsers:async(t,n,r,i,a,o,s,c={})=>{let l=new URL(`/apis/api.console.halo.run/v1alpha1/users`,h),u;e&&(u=e.baseOptions);let d={method:`GET`,...u,...c},f={},p={};_(d,e),await v(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),s!==void 0&&(p.role=s),b(l,p);let m=u&&u.headers?u.headers:{};return d.headers={...f,...m,...c.headers},{url:S(l),options:d}},sendEmailVerificationCode:async(t,n={})=>{g(`sendEmailVerificationCode`,`emailVerifyRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-/send-email-verification-code`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},updateCurrentUser:async(t,n={})=>{g(`updateCurrentUser`,`user`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-`,h),i;e&&(i=e.baseOptions);let a={method:`PUT`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}},uploadUserAvatar:async(t,n,r={})=>{g(`uploadUserAvatar`,`name`,t),g(`uploadUserAvatar`,`file`,n);let i=`/apis/api.console.halo.run/v1alpha1/users/{name}/avatar`.replace(`{name}`,encodeURIComponent(String(t))),a=new URL(i,h),o;e&&(o=e.baseOptions);let s={method:`POST`,...o,...r},c={},l={},u=new(e&&e.formDataCtor||FormData);_(s,e),await v(c,e),n!==void 0&&u.append(`file`,n),c[`Content-Type`]=`multipart/form-data`,b(a,l);let d=o&&o.headers?o.headers:{};return s.headers={...c,...d,...r.headers},s.data=u,{url:S(a),options:s}},verifyEmail:async(t,n={})=>{g(`verifyEmail`,`verifyCodeRequest`,t);let r=new URL(`/apis/api.console.halo.run/v1alpha1/users/-/verify-email`,h),i;e&&(i=e.baseOptions);let a={method:`POST`,...i,...n},o={};_(a,e),await v(o,e),o[`Content-Type`]=`application/json`,b(r,{});let s=i&&i.headers?i.headers:{};return a.headers={...o,...s,...n.headers},a.data=x(t,a,e),{url:S(r),options:a}}}},$=function(e){let n=Sa(e);return{async changeAnyonePassword(r,i,a){let o=await n.changeAnyonePassword(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1ConsoleApi.changeAnyonePassword`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async changeOwnPassword(r,i){let a=await n.changeOwnPassword(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.changeOwnPassword`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async createUser(r,i){let a=await n.createUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.createUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async deleteUserAvatar(r,i){let a=await n.deleteUserAvatar(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.deleteUserAvatar`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async disableUser(r,i){let a=await n.disableUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.disableUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async enableUser(r,i){let a=await n.enableUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.enableUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getCurrentUserDetail(r){let i=await n.getCurrentUserDetail(r),a=e?.serverIndex??0,o=m[`UserV1alpha1ConsoleApi.getCurrentUserDetail`]?.[a]?.url;return(n,r)=>C(i,t.default,d,e)(n,o||r)},async getPermissions(r,i){let a=await n.getPermissions(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.getPermissions`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async getUserDetail(r,i){let a=await n.getUserDetail(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.getUserDetail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async grantPermission(r,i,a){let o=await n.grantPermission(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1ConsoleApi.grantPermission`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async listUsers(r,i,a,o,s,c,l,u){let f=await n.listUsers(r,i,a,o,s,c,l,u),p=e?.serverIndex??0,h=m[`UserV1alpha1ConsoleApi.listUsers`]?.[p]?.url;return(n,r)=>C(f,t.default,d,e)(n,h||r)},async sendEmailVerificationCode(r,i){let a=await n.sendEmailVerificationCode(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.sendEmailVerificationCode`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async updateCurrentUser(r,i){let a=await n.updateCurrentUser(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.updateCurrentUser`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)},async uploadUserAvatar(r,i,a){let o=await n.uploadUserAvatar(r,i,a),s=e?.serverIndex??0,c=m[`UserV1alpha1ConsoleApi.uploadUserAvatar`]?.[s]?.url;return(n,r)=>C(o,t.default,d,e)(n,c||r)},async verifyEmail(r,i){let a=await n.verifyEmail(r,i),o=e?.serverIndex??0,s=m[`UserV1alpha1ConsoleApi.verifyEmail`]?.[o]?.url;return(n,r)=>C(a,t.default,d,e)(n,s||r)}}},Ca=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 wa=class extends f{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))}},Ta=class{constructor(e={}){this.apiKey=e.apiKey,this.username=e.username,this.password=e.password,this.accessToken=e.accessToken,this.awsv4=e.awsv4,this.basePath=e.basePath,this.serverIndex=e.serverIndex,this.baseOptions={...e.baseOptions,headers:{...e.baseOptions?.headers}},this.formDataCtor=e.formDataCtor}isJsonMime(e){return e!==null&&(RegExp(`^(application/json|[^;/ ]+/[^;/ ]+[+]json)[ ]*(;.*)?$`,`i`).test(e)||e.toLowerCase()===`application/json-patch+json`)}};let Ea={Add:`add`},Da={Form:`FORM`,Oauth2:`OAUTH2`},Oa={Pending:`PENDING`,Running:`RUNNING`,Succeeded:`SUCCEEDED`,Failed:`FAILED`},ka={True:`TRUE`,False:`FALSE`,Unknown:`UNKNOWN`},Aa={Copy:`copy`},ja={Singleton:`SINGLETON`,MultiInstance:`MULTI_INSTANCE`},Ma={Form:`FORM`,Oauth2:`OAUTH2`},Na={S:`S`,M:`M`,L:`L`,Xl:`XL`},Pa={Pending:`PENDING`,Succeeded:`SUCCEEDED`,Failed:`FAILED`},Fa={Blank:`_blank`,Self:`_self`,Parent:`_parent`,Top:`_top`},Ia={Move:`move`},La={Created:`CREATED`,Disabled:`DISABLED`,Resolved:`RESOLVED`,Started:`STARTED`,Stopped:`STOPPED`,Failed:`FAILED`,Unloaded:`UNLOADED`},Ra={Pending:`PENDING`,Starting:`STARTING`,Created:`CREATED`,Disabling:`DISABLING`,Disabled:`DISABLED`,Resolved:`RESOLVED`,Started:`STARTED`,Stopped:`STOPPED`,Failed:`FAILED`,Unknown:`UNKNOWN`},za={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},Ba={Remove:`remove`},Va={Replace:`replace`},Ha={Public:`PUBLIC`,Internal:`INTERNAL`,Private:`PRIVATE`},Ua={Test:`test`},Wa={Ready:`READY`,Failed:`FAILED`,Unknown:`UNKNOWN`},Ga={S:`S`,M:`M`,L:`L`,Xl:`XL`};var Ka=c(((e,t)=>{t.exports=TypeError})),qa=c((()=>{})),Ja=c(((e,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?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||`symbol`)?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var ee=qa(),P=ee.custom,F=le(P)?P:null,I={__proto__:null,double:`"`,single:`'`},te={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(B(s,`quoteStyle`)&&!B(I,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(B(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=B(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(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(B(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 ye(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return re(t)?`[Array]`:`[Object]`;var g=we(s,r);if(o===void 0)o=[];else if(pe(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return B(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!ae(t)){var x=fe(t),T=Te(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(le(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?xe(D):D}if(ve(t)){for(var P=`<`+b.call(String(t.nodeName)),te=t.attributes||[],R=0;R<te.length;R++)P+=` `+te[R].name+`=`+L(ne(te[R].value),`double`,s);return P+=`>`,t.childNodes&&t.childNodes.length&&(P+=`...`),P+=`</`+b.call(String(t.nodeName))+`>`,P}if(re(t)){if(t.length===0)return`[]`;var de=Te(t,y);return g&&!Ce(de)?`[`+W(de,g)+`]`:`[ `+C.call(de,`, `)+` ]`}if(z(t)){var be=Te(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),be),`, `)+` }`:be.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(be,`, `)+` }`}if(typeof t==`object`&&u){if(F&&typeof t[F]==`function`&&ee)return ee(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(me(t)){var Ee=[];return a&&a.call(t,function(e,n){Ee.push(y(n,t,!0)+` => `+y(e,t))}),Se(`Map`,i.call(t),Ee,g)}if(ge(t)){var De=[];return l&&l.call(t,function(e){De.push(y(e,t))}),Se(`Set`,c.call(t),De,g)}if(H(t))return U(`WeakMap`);if(_e(t))return U(`WeakSet`);if(he(t))return U(`WeakRef`);if(se(t))return xe(y(Number(t)));if(ue(t))return xe(y(E.call(t)));if(ce(t))return xe(p.call(t));if(oe(t))return xe(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!ie(t)&&!ae(t)){var G=Te(t,y),Oe=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,ke=t instanceof Object?``:`null prototype`,Ae=!Oe&&A&&Object(t)===t&&A in t?_.call(V(t),8,-1):ke?`Object`:``,K=(Oe||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Ae||ke?`[`+C.call(S.call([],Ae||[],ke||[]),`: `)+`] `:``);return G.length===0?K+`{}`:g?K+`{`+W(G,g)+`}`:K+`{ `+C.call(G,`, `)+` }`}return String(t)};function L(e,t,n){var r=I[n.quoteStyle||t];return r+e+r}function ne(e){return v.call(String(e),/"/g,`"`)}function R(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function re(e){return V(e)===`[object Array]`&&R(e)}function ie(e){return V(e)===`[object Date]`&&R(e)}function ae(e){return V(e)===`[object RegExp]`&&R(e)}function z(e){return V(e)===`[object Error]`&&R(e)}function oe(e){return V(e)===`[object String]`&&R(e)}function se(e){return V(e)===`[object Number]`&&R(e)}function ce(e){return V(e)===`[object Boolean]`&&R(e)}function le(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function ue(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var de=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return de.call(e,t)}function V(e){return m.call(e)}function fe(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function pe(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 me(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 H(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function he(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function ge(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 _e(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function ve(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function ye(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return ye(_.call(e,0,t.maxStringLength),t)+r}var i=te[t.quoteStyle||`single`];return i.lastIndex=0,L(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,be),`single`,t)}function be(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`:``)+y.call(t.toString(16))}function xe(e){return`Object(`+e+`)`}function U(e){return e+` { ? }`}function Se(e,t,n,r){var i=r?W(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function Ce(e){for(var t=0;t<e.length;t++)if(pe(e[t],`
|
|
2
2
|
`)>=0)return!1;return!0}function we(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function W(e,t){if(e.length===0)return``;var n=`
|
|
3
3
|
`+t.prev+t.base;return n+C.call(e,`,`+n)+`
|
|
4
|
-
`+t.prev}function Te(e,t){var n=re(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=B(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)B(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),Ya=c(((e,t)=>{var n=Ja(),r=Ka(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),Xa=c(((e,t)=>{t.exports=Object})),Za=c(((e,t)=>{t.exports=Error})),Qa=c(((e,t)=>{t.exports=EvalError})),$a=c(((e,t)=>{t.exports=RangeError})),eo=c(((e,t)=>{t.exports=ReferenceError})),to=c(((e,t)=>{t.exports=SyntaxError})),no=c(((e,t)=>{t.exports=URIError})),ro=c(((e,t)=>{t.exports=Math.abs})),io=c(((e,t)=>{t.exports=Math.floor})),ao=c(((e,t)=>{t.exports=Math.max})),oo=c(((e,t)=>{t.exports=Math.min})),so=c(((e,t)=>{t.exports=Math.pow})),co=c(((e,t)=>{t.exports=Math.round})),lo=c(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),uo=c(((e,t)=>{var n=lo();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),fo=c(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),po=c(((e,t)=>{var n=fo();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),mo=c(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),ho=c(((e,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(var i 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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),go=c(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=ho();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),_o=c(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),vo=c(((e,t)=>{t.exports=Xa().getPrototypeOf||null})),yo=c(((e,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}})),bo=c(((e,t)=>{var n=yo();t.exports=Function.prototype.bind||n})),xo=c(((e,t)=>{t.exports=Function.prototype.call})),So=c(((e,t)=>{t.exports=Function.prototype.apply})),Co=c(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),wo=c(((e,t)=>{var n=bo(),r=So(),i=xo();t.exports=Co()||n.call(i,r)})),To=c(((e,t)=>{var n=bo(),r=Ka(),i=xo(),a=wo();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Eo=c(((e,t)=>{var n=To(),r=po(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Do=c(((e,t)=>{var n=_o(),r=vo(),i=Eo();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Oo=c(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=bo().call(n,r)})),ko=c(((e,t)=>{var n,r=Xa(),i=Za(),a=Qa(),o=$a(),s=eo(),c=to(),l=Ka(),u=no(),d=ro(),f=io(),p=ao(),m=oo(),h=so(),g=co(),_=uo(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=po(),x=mo(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=go()(),T=Do(),E=vo(),D=_o(),O=So(),k=xo(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%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%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%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%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__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`]},P=bo(),F=Oo(),I=P.call(k,Array.prototype.concat),te=P.call(O,Array.prototype.splice),L=P.call(k,String.prototype.replace),ne=P.call(k,String.prototype.slice),R=P.call(k,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ie=/\\(\\)?/g,ae=function(e){var t=ne(e,0,1),n=ne(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return L(e,re,function(e,t,n,i){r[r.length]=n?L(i,ie,`$1`):t||e}),r},oe=function(e,t){var n=e,r;if(F(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),F(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(R(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ae(e),r=n.length>0?n[0]:``,i=oe(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],te(n,I([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ne(p,0,1),h=ne(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,F(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=F(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Ao=c(((e,t)=>{var n=ko(),r=To(),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}})),jo=c(((e,t)=>{var n=ko(),r=Ao(),i=Ja(),a=Ka(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Mo=c(((e,t)=>{var n=ko(),r=Ao(),i=Ja(),a=jo(),o=Ka(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),No=c(((e,t)=>{var n=Ka(),r=Ja(),i=Ya(),a=jo(),o=Mo()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),Po=c(((e,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}})),Fo=c(((e,t)=>{var n=Po(),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?{__proto__: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`&&typeof n!=`function`){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;t.exports={arrayToObject:s,assign:l,combine:function(e,t){return[].concat(e,t)},compact: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},decode:u,encode: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},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},maybeMap: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)},merge:c}})),Io=c(((e,t)=>{var n=No(),r=Fo(),i=Po(),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,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,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,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=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))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var ee=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?ee+`[]`:ee;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],te=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&te===null)){var L=y&&h?String(I).replace(/\./g,`%2E`):String(I),ne=s(E)?typeof a==`function`?a(P,L):P:P+(y?`.`+L:`[`+L+`]`);T.set(t,O);var R=n();R.set(m,T),l(j,e(te,ne,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,R))}}return j},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=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`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],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,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 y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}})),Lo=c(((e,t)=>{var n=Fo(),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,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return 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,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var 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,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(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,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},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`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");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`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,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,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__: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)}})),Ro=u(c(((e,t)=>{var n=Io(),r=Lo();t.exports={formats:Po(),parse:r,stringify:n}}))(),1);let zo=t.default.create({baseURL:``,withCredentials:!0,paramsSerializer:e=>Ro.default.stringify(e,{arrayFormat:`repeat`})});zo.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`;function Bo(e){let t=e.defaults.baseURL;return{annotationSetting:new D(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 ke(void 0,t,e),secret:new zr(void 0,t,e),user:new xa(void 0,t,e),role:new Fr(void 0,t,e),roleBinding:new jr(void 0,t,e),content:{category:new pe(void 0,t,e),comment:new be(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 Ai(void 0,t,e)},auth:{authProvider:new ie(void 0,t,e),userConnection:new la(void 0,t,e)},storage:{attachment:new j(void 0,t,e),group:new nt(void 0,t,e),policy:new Vn(void 0,t,e),policyTemplate:new Ln(void 0,t,e),localThumbnail:new pt(void 0,t,e),thumbnail:new Yi(void 0,t,e)},plugin:{extensionDefinition:new Je(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 Me(void 0,t,e)},theme:{theme:new Hi(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 de(void 0,t,e)},security:{personalAccessToken:new fn(void 0,t,e)}}}function Vo(e){let t=e.defaults.baseURL;return{user:new wa(void 0,t,e),system:new Si(void 0,t,e),migration:new Nt(void 0,t,e),storage:{attachment:new P(void 0,t,e),policy:new Nn(void 0,t,e)},auth:{authProvider:new ce(void 0,t,e)},content:{comment:new Ce(void 0,t,e),reply:new Cr(void 0,t,e),indices:new ut(void 0,t,e),post:new Jn(void 0,t,e),singlePage:new Xr(void 0,t,e),tag:new Pi(void 0,t,e)},notification:{notifier:new rn(void 0,t,e)},plugin:{plugin:new Cn(void 0,t,e)},theme:{theme:new Gi(void 0,t,e)},configMap:{system:new vi(void 0,t,e)}}}function Ho(e){let t=e.defaults.baseURL;return{storage:{attachment:new L(void 0,t,e)},content:{post:new nr(void 0,t,e),snapshot:new ui(void 0,t,e)},security:{twoFactor:new aa(void 0,t,e),personalAccessToken:new gn(void 0,t,e),device:new We(void 0,t,e)},notification:{notification:new Yt(void 0,t,e)},user:{preference:new _a(void 0,t,e)}}}function Uo(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 Ee(void 0,t,e)},metrics:{metrics:new kt(void 0,t,e)},notification:new Gt(void 0,t,e)}}let Wo=Bo(zo),Go=Vo(zo),Ko=Ho(zo),qo=Uo(zo);return e.AddOperationOpEnum=Ea,e.AnnotationSettingV1alpha1Api=D,e.AnnotationSettingV1alpha1ApiAxiosParamCreator=w,e.AnnotationSettingV1alpha1ApiFactory=E,e.AnnotationSettingV1alpha1ApiFp=T,e.AttachmentV1alpha1Api=j,e.AttachmentV1alpha1ApiAxiosParamCreator=O,e.AttachmentV1alpha1ApiFactory=A,e.AttachmentV1alpha1ApiFp=k,e.AttachmentV1alpha1ConsoleApi=P,e.AttachmentV1alpha1ConsoleApiAxiosParamCreator=M,e.AttachmentV1alpha1ConsoleApiFactory=ee,e.AttachmentV1alpha1ConsoleApiFp=N,e.AttachmentV1alpha1UcApi=L,e.AttachmentV1alpha1UcApiAxiosParamCreator=F,e.AttachmentV1alpha1UcApiFactory=te,e.AttachmentV1alpha1UcApiFp=I,e.AuthProviderSpecAuthTypeEnum=Da,e.AuthProviderV1alpha1Api=ie,e.AuthProviderV1alpha1ApiAxiosParamCreator=ne,e.AuthProviderV1alpha1ApiFactory=re,e.AuthProviderV1alpha1ApiFp=R,e.AuthProviderV1alpha1ConsoleApi=ce,e.AuthProviderV1alpha1ConsoleApiAxiosParamCreator=ae,e.AuthProviderV1alpha1ConsoleApiFactory=se,e.AuthProviderV1alpha1ConsoleApiFp=oe,e.BackupStatusPhaseEnum=Oa,e.BackupV1alpha1Api=de,e.BackupV1alpha1ApiAxiosParamCreator=le,e.BackupV1alpha1ApiFactory=ue,e.BackupV1alpha1ApiFp=z,e.CategoryV1alpha1Api=pe,e.CategoryV1alpha1ApiAxiosParamCreator=B,e.CategoryV1alpha1ApiFactory=fe,e.CategoryV1alpha1ApiFp=V,e.CategoryV1alpha1PublicApi=_e,e.CategoryV1alpha1PublicApiAxiosParamCreator=me,e.CategoryV1alpha1PublicApiFactory=ge,e.CategoryV1alpha1PublicApiFp=he,e.CommentV1alpha1Api=be,e.CommentV1alpha1ApiAxiosParamCreator=ve,e.CommentV1alpha1ApiFactory=ye,e.CommentV1alpha1ApiFp=H,e.CommentV1alpha1ConsoleApi=Ce,e.CommentV1alpha1ConsoleApiAxiosParamCreator=xe,e.CommentV1alpha1ConsoleApiFactory=Se,e.CommentV1alpha1ConsoleApiFp=U,e.CommentV1alpha1PublicApi=Ee,e.CommentV1alpha1PublicApiAxiosParamCreator=we,e.CommentV1alpha1PublicApiFactory=Te,e.CommentV1alpha1PublicApiFp=W,e.ConditionStatusEnum=ka,e.ConfigMapV1alpha1Api=ke,e.ConfigMapV1alpha1ApiAxiosParamCreator=De,e.ConfigMapV1alpha1ApiFactory=Oe,e.ConfigMapV1alpha1ApiFp=G,e.Configuration=Ta,e.CopyOperationOpEnum=Aa,e.CounterV1alpha1Api=Me,e.CounterV1alpha1ApiAxiosParamCreator=Ae,e.CounterV1alpha1ApiFactory=je,e.CounterV1alpha1ApiFp=K,e.DefaultApi=Ie,e.DefaultApiAxiosParamCreator=Ne,e.DefaultApiFactory=Fe,e.DefaultApiFp=Pe,e.DeviceV1alpha1Api=Be,e.DeviceV1alpha1ApiAxiosParamCreator=Le,e.DeviceV1alpha1ApiFactory=ze,e.DeviceV1alpha1ApiFp=Re,e.DeviceV1alpha1UcApi=We,e.DeviceV1alpha1UcApiAxiosParamCreator=Ve,e.DeviceV1alpha1UcApiFactory=Ue,e.DeviceV1alpha1UcApiFp=He,e.ExtensionDefinitionV1alpha1Api=Je,e.ExtensionDefinitionV1alpha1ApiAxiosParamCreator=Ge,e.ExtensionDefinitionV1alpha1ApiFactory=qe,e.ExtensionDefinitionV1alpha1ApiFp=Ke,e.ExtensionPointDefinitionV1alpha1Api=Qe,e.ExtensionPointDefinitionV1alpha1ApiAxiosParamCreator=Ye,e.ExtensionPointDefinitionV1alpha1ApiFactory=Ze,e.ExtensionPointDefinitionV1alpha1ApiFp=Xe,e.ExtensionPointSpecTypeEnum=ja,e.GetThumbnailByUriSizeEnum=ea,e.GetThumbnailByUriWidthEnum=ta,e.GroupV1alpha1Api=nt,e.GroupV1alpha1ApiAxiosParamCreator=$e,e.GroupV1alpha1ApiFactory=tt,e.GroupV1alpha1ApiFp=et,e.IndexV1alpha1PublicApi=ot,e.IndexV1alpha1PublicApiAxiosParamCreator=rt,e.IndexV1alpha1PublicApiFactory=at,e.IndexV1alpha1PublicApiFp=it,e.IndicesV1alpha1ConsoleApi=ut,e.IndicesV1alpha1ConsoleApiAxiosParamCreator=st,e.IndicesV1alpha1ConsoleApiFactory=lt,e.IndicesV1alpha1ConsoleApiFp=ct,e.InstallPluginSourceEnum=wn,e.ListMyPostsPublishPhaseEnum=rr,e.ListPostsPublishPhaseEnum=Yn,e.ListSinglePagesPublishPhaseEnum=Zr,e.ListSinglePagesVisibleEnum=Qr,e.ListedAuthProviderAuthTypeEnum=Ma,e.LocalThumbnailSpecSizeEnum=Na,e.LocalThumbnailStatusPhaseEnum=Pa,e.LocalThumbnailV1alpha1Api=pt,e.LocalThumbnailV1alpha1ApiAxiosParamCreator=dt,e.LocalThumbnailV1alpha1ApiFactory=ft,e.LocalThumbnailV1alpha1ApiFp=q,e.MenuItemSpecTargetEnum=Fa,e.MenuItemV1alpha1Api=_t,e.MenuItemV1alpha1ApiAxiosParamCreator=mt,e.MenuItemV1alpha1ApiFactory=gt,e.MenuItemV1alpha1ApiFp=ht,e.MenuV1alpha1Api=xt,e.MenuV1alpha1ApiAxiosParamCreator=vt,e.MenuV1alpha1ApiFactory=bt,e.MenuV1alpha1ApiFp=yt,e.MenuV1alpha1PublicApi=Tt,e.MenuV1alpha1PublicApiAxiosParamCreator=St,e.MenuV1alpha1PublicApiFactory=wt,e.MenuV1alpha1PublicApiFp=Ct,e.MetricsV1alpha1PublicApi=kt,e.MetricsV1alpha1PublicApiAxiosParamCreator=Et,e.MetricsV1alpha1PublicApiFactory=Ot,e.MetricsV1alpha1PublicApiFp=Dt,e.MigrationV1alpha1ConsoleApi=Nt,e.MigrationV1alpha1ConsoleApiAxiosParamCreator=At,e.MigrationV1alpha1ConsoleApiFactory=Mt,e.MigrationV1alpha1ConsoleApiFp=jt,e.MoveOperationOpEnum=Ia,e.NotificationTemplateV1alpha1Api=Lt,e.NotificationTemplateV1alpha1ApiAxiosParamCreator=Pt,e.NotificationTemplateV1alpha1ApiFactory=It,e.NotificationTemplateV1alpha1ApiFp=Ft,e.NotificationV1alpha1Api=Vt,e.NotificationV1alpha1ApiAxiosParamCreator=Rt,e.NotificationV1alpha1ApiFactory=Bt,e.NotificationV1alpha1ApiFp=zt,e.NotificationV1alpha1PublicApi=Gt,e.NotificationV1alpha1PublicApiAxiosParamCreator=Ht,e.NotificationV1alpha1PublicApiFactory=Wt,e.NotificationV1alpha1PublicApiFp=Ut,e.NotificationV1alpha1UcApi=Yt,e.NotificationV1alpha1UcApiAxiosParamCreator=Kt,e.NotificationV1alpha1UcApiFactory=Jt,e.NotificationV1alpha1UcApiFp=qt,e.NotifierDescriptorV1alpha1Api=$t,e.NotifierDescriptorV1alpha1ApiAxiosParamCreator=Xt,e.NotifierDescriptorV1alpha1ApiFactory=Qt,e.NotifierDescriptorV1alpha1ApiFp=Zt,e.NotifierV1alpha1ConsoleApi=rn,e.NotifierV1alpha1ConsoleApiAxiosParamCreator=en,e.NotifierV1alpha1ConsoleApiFactory=nn,e.NotifierV1alpha1ConsoleApiFp=tn,e.NotifierV1alpha1UcApi=cn,e.NotifierV1alpha1UcApiAxiosParamCreator=an,e.NotifierV1alpha1UcApiFactory=sn,e.NotifierV1alpha1UcApiFp=on,e.PersonalAccessTokenV1alpha1Api=fn,e.PersonalAccessTokenV1alpha1ApiAxiosParamCreator=ln,e.PersonalAccessTokenV1alpha1ApiFactory=dn,e.PersonalAccessTokenV1alpha1ApiFp=un,e.PersonalAccessTokenV1alpha1UcApi=gn,e.PersonalAccessTokenV1alpha1UcApiAxiosParamCreator=pn,e.PersonalAccessTokenV1alpha1UcApiFactory=hn,e.PersonalAccessTokenV1alpha1UcApiFp=mn,e.PluginStatusLastProbeStateEnum=La,e.PluginStatusPhaseEnum=Ra,e.PluginV1alpha1Api=bn,e.PluginV1alpha1ApiAxiosParamCreator=_n,e.PluginV1alpha1ApiFactory=yn,e.PluginV1alpha1ApiFp=vn,e.PluginV1alpha1ConsoleApi=Cn,e.PluginV1alpha1ConsoleApiAxiosParamCreator=xn,e.PluginV1alpha1ConsoleApiFactory=Sn,e.PluginV1alpha1ConsoleApiFp=J,e.PluginV1alpha1PublicApi=kn,e.PluginV1alpha1PublicApiAxiosParamCreator=En,e.PluginV1alpha1PublicApiFactory=On,e.PluginV1alpha1PublicApiFp=Dn,e.PolicyAlpha1ConsoleApi=Nn,e.PolicyAlpha1ConsoleApiAxiosParamCreator=An,e.PolicyAlpha1ConsoleApiFactory=Mn,e.PolicyAlpha1ConsoleApiFp=jn,e.PolicyTemplateV1alpha1Api=Ln,e.PolicyTemplateV1alpha1ApiAxiosParamCreator=Pn,e.PolicyTemplateV1alpha1ApiFactory=In,e.PolicyTemplateV1alpha1ApiFp=Fn,e.PolicyV1alpha1Api=Vn,e.PolicyV1alpha1ApiAxiosParamCreator=Rn,e.PolicyV1alpha1ApiFactory=Bn,e.PolicyV1alpha1ApiFp=zn,e.PostSpecVisibleEnum=za,e.PostV1alpha1Api=Gn,e.PostV1alpha1ApiAxiosParamCreator=Hn,e.PostV1alpha1ApiFactory=Wn,e.PostV1alpha1ApiFp=Un,e.PostV1alpha1ConsoleApi=Jn,e.PostV1alpha1ConsoleApiAxiosParamCreator=Kn,e.PostV1alpha1ConsoleApiFactory=qn,e.PostV1alpha1ConsoleApiFp=Y,e.PostV1alpha1PublicApi=$n,e.PostV1alpha1PublicApiAxiosParamCreator=Xn,e.PostV1alpha1PublicApiFactory=Qn,e.PostV1alpha1PublicApiFp=Zn,e.PostV1alpha1UcApi=nr,e.PostV1alpha1UcApiAxiosParamCreator=er,e.PostV1alpha1UcApiFactory=tr,e.PostV1alpha1UcApiFp=X,e.ReasonTypeV1alpha1Api=sr,e.ReasonTypeV1alpha1ApiAxiosParamCreator=ir,e.ReasonTypeV1alpha1ApiFactory=or,e.ReasonTypeV1alpha1ApiFp=ar,e.ReasonV1alpha1Api=dr,e.ReasonV1alpha1ApiAxiosParamCreator=cr,e.ReasonV1alpha1ApiFactory=ur,e.ReasonV1alpha1ApiFp=lr,e.RememberMeTokenV1alpha1Api=hr,e.RememberMeTokenV1alpha1ApiAxiosParamCreator=fr,e.RememberMeTokenV1alpha1ApiFactory=mr,e.RememberMeTokenV1alpha1ApiFp=pr,e.RemoveOperationOpEnum=Ba,e.ReplaceOperationOpEnum=Va,e.ReplyV1alpha1Api=yr,e.ReplyV1alpha1ApiAxiosParamCreator=gr,e.ReplyV1alpha1ApiFactory=vr,e.ReplyV1alpha1ApiFp=_r,e.ReplyV1alpha1ConsoleApi=Cr,e.ReplyV1alpha1ConsoleApiAxiosParamCreator=br,e.ReplyV1alpha1ConsoleApiFactory=Sr,e.ReplyV1alpha1ConsoleApiFp=xr,e.ReverseProxyV1alpha1Api=Dr,e.ReverseProxyV1alpha1ApiAxiosParamCreator=wr,e.ReverseProxyV1alpha1ApiFactory=Er,e.ReverseProxyV1alpha1ApiFp=Tr,e.RoleBindingV1alpha1Api=jr,e.RoleBindingV1alpha1ApiAxiosParamCreator=Or,e.RoleBindingV1alpha1ApiFactory=Ar,e.RoleBindingV1alpha1ApiFp=kr,e.RoleV1alpha1Api=Fr,e.RoleV1alpha1ApiAxiosParamCreator=Mr,e.RoleV1alpha1ApiFactory=Pr,e.RoleV1alpha1ApiFp=Nr,e.SecretV1alpha1Api=zr,e.SecretV1alpha1ApiAxiosParamCreator=Ir,e.SecretV1alpha1ApiFactory=Rr,e.SecretV1alpha1ApiFp=Lr,e.SettingV1alpha1Api=Ur,e.SettingV1alpha1ApiAxiosParamCreator=Br,e.SettingV1alpha1ApiFactory=Hr,e.SettingV1alpha1ApiFp=Vr,e.SinglePageSpecVisibleEnum=Ha,e.SinglePageV1alpha1Api=qr,e.SinglePageV1alpha1ApiAxiosParamCreator=Wr,e.SinglePageV1alpha1ApiFactory=Kr,e.SinglePageV1alpha1ApiFp=Gr,e.SinglePageV1alpha1ConsoleApi=Xr,e.SinglePageV1alpha1ConsoleApiAxiosParamCreator=Jr,e.SinglePageV1alpha1ConsoleApiFactory=Yr,e.SinglePageV1alpha1ConsoleApiFp=Z,e.SinglePageV1alpha1PublicApi=ni,e.SinglePageV1alpha1PublicApiAxiosParamCreator=$r,e.SinglePageV1alpha1PublicApiFactory=ti,e.SinglePageV1alpha1PublicApiFp=ei,e.SnapshotV1alpha1Api=oi,e.SnapshotV1alpha1ApiAxiosParamCreator=ri,e.SnapshotV1alpha1ApiFactory=ai,e.SnapshotV1alpha1ApiFp=ii,e.SnapshotV1alpha1UcApi=ui,e.SnapshotV1alpha1UcApiAxiosParamCreator=si,e.SnapshotV1alpha1UcApiFactory=li,e.SnapshotV1alpha1UcApiFp=ci,e.SubscriptionV1alpha1Api=mi,e.SubscriptionV1alpha1ApiAxiosParamCreator=di,e.SubscriptionV1alpha1ApiFactory=pi,e.SubscriptionV1alpha1ApiFp=fi,e.SystemConfigV1alpha1ConsoleApi=vi,e.SystemConfigV1alpha1ConsoleApiAxiosParamCreator=hi,e.SystemConfigV1alpha1ConsoleApiFactory=_i,e.SystemConfigV1alpha1ConsoleApiFp=gi,e.SystemV1alpha1ConsoleApi=Si,e.SystemV1alpha1ConsoleApiAxiosParamCreator=yi,e.SystemV1alpha1ConsoleApiFactory=xi,e.SystemV1alpha1ConsoleApiFp=bi,e.SystemV1alpha1PublicApi=Ei,e.SystemV1alpha1PublicApiAxiosParamCreator=Ci,e.SystemV1alpha1PublicApiFactory=Ti,e.SystemV1alpha1PublicApiFp=wi,e.TagV1alpha1Api=Ai,e.TagV1alpha1ApiAxiosParamCreator=Di,e.TagV1alpha1ApiFactory=ki,e.TagV1alpha1ApiFp=Oi,e.TagV1alpha1ConsoleApi=Pi,e.TagV1alpha1ConsoleApiAxiosParamCreator=ji,e.TagV1alpha1ConsoleApiFactory=Ni,e.TagV1alpha1ConsoleApiFp=Mi,e.TagV1alpha1PublicApi=Ri,e.TagV1alpha1PublicApiAxiosParamCreator=Fi,e.TagV1alpha1PublicApiFactory=Li,e.TagV1alpha1PublicApiFp=Ii,e.TestOperationOpEnum=Ua,e.ThemeStatusPhaseEnum=Wa,e.ThemeV1alpha1Api=Hi,e.ThemeV1alpha1ApiAxiosParamCreator=zi,e.ThemeV1alpha1ApiFactory=Vi,e.ThemeV1alpha1ApiFp=Bi,e.ThemeV1alpha1ConsoleApi=Gi,e.ThemeV1alpha1ConsoleApiAxiosParamCreator=Ui,e.ThemeV1alpha1ConsoleApiFactory=Wi,e.ThemeV1alpha1ConsoleApiFp=Q,e.ThumbnailSpecSizeEnum=Ga,e.ThumbnailV1alpha1Api=Yi,e.ThumbnailV1alpha1ApiAxiosParamCreator=Ki,e.ThumbnailV1alpha1ApiFactory=Ji,e.ThumbnailV1alpha1ApiFp=qi,e.ThumbnailV1alpha1PublicApi=$i,e.ThumbnailV1alpha1PublicApiAxiosParamCreator=Xi,e.ThumbnailV1alpha1PublicApiFactory=Qi,e.ThumbnailV1alpha1PublicApiFp=Zi,e.TwoFactorAuthV1alpha1UcApi=aa,e.TwoFactorAuthV1alpha1UcApiAxiosParamCreator=na,e.TwoFactorAuthV1alpha1UcApiFactory=ia,e.TwoFactorAuthV1alpha1UcApiFp=ra,e.UpgradePluginSourceEnum=Tn,e.UserConnectionV1alpha1Api=la,e.UserConnectionV1alpha1ApiAxiosParamCreator=oa,e.UserConnectionV1alpha1ApiFactory=ca,e.UserConnectionV1alpha1ApiFp=sa,e.UserConnectionV1alpha1UcApi=pa,e.UserConnectionV1alpha1UcApiAxiosParamCreator=ua,e.UserConnectionV1alpha1UcApiFactory=fa,e.UserConnectionV1alpha1UcApiFp=da,e.UserPreferenceV1alpha1UcApi=_a,e.UserPreferenceV1alpha1UcApiAxiosParamCreator=ma,e.UserPreferenceV1alpha1UcApiFactory=ga,e.UserPreferenceV1alpha1UcApiFp=ha,e.UserV1alpha1Api=xa,e.UserV1alpha1ApiAxiosParamCreator=va,e.UserV1alpha1ApiFactory=ba,e.UserV1alpha1ApiFp=ya,e.UserV1alpha1ConsoleApi=wa,e.UserV1alpha1ConsoleApiAxiosParamCreator=Sa,e.UserV1alpha1ConsoleApiFactory=Ca,e.UserV1alpha1ConsoleApiFp=$,e.axiosInstance=zo,e.consoleApiClient=Go,e.coreApiClient=Wo,e.createConsoleApiClient=Vo,e.createCoreApiClient=Bo,e.createPublicApiClient=Uo,e.createUcApiClient=Ho,e.publicApiClient=qo,e.ucApiClient=Ko,e})({},axios);
|
|
4
|
+
`+t.prev}function Te(e,t){var n=re(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=B(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)B(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),Ya=c(((e,t)=>{var n=Ja(),r=Ka(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=e&&e.next,r=c(e,t);return r&&n&&n===r&&(e=void 0),!!r},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),Xa=c(((e,t)=>{t.exports=Object})),Za=c(((e,t)=>{t.exports=Error})),Qa=c(((e,t)=>{t.exports=EvalError})),$a=c(((e,t)=>{t.exports=RangeError})),eo=c(((e,t)=>{t.exports=ReferenceError})),to=c(((e,t)=>{t.exports=SyntaxError})),no=c(((e,t)=>{t.exports=URIError})),ro=c(((e,t)=>{t.exports=Math.abs})),io=c(((e,t)=>{t.exports=Math.floor})),ao=c(((e,t)=>{t.exports=Math.max})),oo=c(((e,t)=>{t.exports=Math.min})),so=c(((e,t)=>{t.exports=Math.pow})),co=c(((e,t)=>{t.exports=Math.round})),lo=c(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),uo=c(((e,t)=>{var n=lo();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),fo=c(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),po=c(((e,t)=>{var n=fo();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),mo=c(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),ho=c(((e,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(var i 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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),go=c(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=ho();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),_o=c(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),vo=c(((e,t)=>{t.exports=Xa().getPrototypeOf||null})),yo=c(((e,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}})),bo=c(((e,t)=>{var n=yo();t.exports=Function.prototype.bind||n})),xo=c(((e,t)=>{t.exports=Function.prototype.call})),So=c(((e,t)=>{t.exports=Function.prototype.apply})),Co=c(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),wo=c(((e,t)=>{var n=bo(),r=So(),i=xo();t.exports=Co()||n.call(i,r)})),To=c(((e,t)=>{var n=bo(),r=Ka(),i=xo(),a=wo();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Eo=c(((e,t)=>{var n=To(),r=po(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Do=c(((e,t)=>{var n=_o(),r=vo(),i=Eo();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Oo=c(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=bo().call(n,r)})),ko=c(((e,t)=>{var n,r=Xa(),i=Za(),a=Qa(),o=$a(),s=eo(),c=to(),l=Ka(),u=no(),d=ro(),f=io(),p=ao(),m=oo(),h=so(),g=co(),_=uo(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=po(),x=mo(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=go()(),T=Do(),E=vo(),D=_o(),O=So(),k=xo(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%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%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%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%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},ee={__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`]},P=bo(),F=Oo(),I=P.call(k,Array.prototype.concat),te=P.call(O,Array.prototype.splice),L=P.call(k,String.prototype.replace),ne=P.call(k,String.prototype.slice),R=P.call(k,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ie=/\\(\\)?/g,ae=function(e){var t=ne(e,0,1),n=ne(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return L(e,re,function(e,t,n,i){r[r.length]=n?L(i,ie,`$1`):t||e}),r},z=function(e,t){var n=e,r;if(F(ee,n)&&(r=ee[n],n=`%`+r[0]+`%`),F(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(R(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ae(e),r=n.length>0?n[0]:``,i=z(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],te(n,I([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=ne(p,0,1),h=ne(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,F(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=F(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Ao=c(((e,t)=>{var n=ko(),r=To(),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}})),jo=c(((e,t)=>{var n=ko(),r=Ao(),i=Ja(),a=Ka(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Mo=c(((e,t)=>{var n=ko(),r=Ao(),i=Ja(),a=jo(),o=Ka(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),No=c(((e,t)=>{var n=Ka(),r=Ja(),i=Ya(),a=jo(),o=Mo()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+r(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),Po=c(((e,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}})),Fo=c(((e,t)=>{var n=Po(),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?{__proto__: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`&&typeof n!=`function`){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;t.exports={arrayToObject:s,assign:l,combine:function(e,t){return[].concat(e,t)},compact: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},decode:u,encode: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},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},maybeMap: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)},merge:c}})),Io=c(((e,t)=>{var n=No(),r=Fo(),i=Po(),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,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,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,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=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))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,g)),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var ee=h?String(i).replace(/\./g,`%2E`):String(i),P=o&&s(E)&&E.length===1?ee+`[]`:ee;if(c&&s(E)&&E.length===0)return P+`[]`;for(var F=0;F<M.length;++F){var I=M[F],te=typeof I==`object`&&I&&I.value!==void 0?I.value:E[I];if(!(d&&te===null)){var L=y&&h?String(I).replace(/\./g,`%2E`):String(I),ne=s(E)?typeof a==`function`?a(P,L):P:P+(y?`.`+L:`[`+L+`]`);T.set(t,O);var R=n();R.set(m,T),l(j,e(te,ne,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,R))}}return j},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=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`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],v=r[_];i.skipNulls&&v===null||l(u,h(v,_,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 y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B&`:b+=`utf8=%E2%9C%93&`),y.length>0?b+y:``}})),Lo=c(((e,t)=>{var n=Fo(),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,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1)return e.split(`,`);if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return 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,t.throwOnLimitExceeded?f+1:f);if(t.throwOnLimitExceeded&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var 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,i(u[b])?u[b].length:0),function(e){return t.decoder(e,a.decoder,g,`value`)})),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(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,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10);!r.parseArrays&&p===``?u={0:c}:!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays&&m<=r.arrayLimit?(u=[],u[m]=c):p!==`__proto__`&&(u[p]=c)}c=u}return c},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`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");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`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,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,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=p(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__: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)}})),Ro=u(c(((e,t)=>{var n=Io(),r=Lo();t.exports={formats:Po(),parse:r,stringify:n}}))(),1);let zo=t.default.create({baseURL:``,withCredentials:!0,paramsSerializer:e=>Ro.default.stringify(e,{arrayFormat:`repeat`})});zo.defaults.headers.common[`X-Requested-With`]=`XMLHttpRequest`;function Bo(e){let t=e.defaults.baseURL;return{annotationSetting:new j(void 0,t,e),menu:new St(void 0,t,e),menuItem:new vt(void 0,t,e),setting:new Wr(void 0,t,e),configMap:new Me(void 0,t,e),secret:new Br(void 0,t,e),user:new xa(void 0,t,e),role:new Ir(void 0,t,e),roleBinding:new Mr(void 0,t,e),content:{category:new ge(void 0,t,e),comment:new Ce(void 0,t,e),post:new Kn(void 0,t,e),reply:new br(void 0,t,e),singlePage:new Jr(void 0,t,e),snapshot:new si(void 0,t,e),tag:new Ai(void 0,t,e)},auth:{authProvider:new se(void 0,t,e),userConnection:new la(void 0,t,e)},storage:{attachment:new P(void 0,t,e),group:new nt(void 0,t,e),policy:new Hn(void 0,t,e),policyTemplate:new Rn(void 0,t,e),localThumbnail:new mt(void 0,t,e),thumbnail:new Yi(void 0,t,e)},plugin:{extensionDefinition:new Je(void 0,t,e),extensionPointDefinition:new Qe(void 0,t,e),plugin:new xn(void 0,t,e),reverseProxy:new Or(void 0,t,e)},metrics:{counter:new Ie(void 0,t,e)},theme:{theme:new Hi(void 0,t,e)},notification:{notification:new Ht(void 0,t,e),notificationTemplate:new Rt(void 0,t,e),notifierDescriptor:new en(void 0,t,e),reason:new fr(void 0,t,e),reasonType:new cr(void 0,t,e),subscription:new hi(void 0,t,e)},migration:{backup:new pe(void 0,t,e)},security:{personalAccessToken:new pn(void 0,t,e)}}}function Vo(e){let t=e.defaults.baseURL;return{user:new wa(void 0,t,e),system:new Ci(void 0,t,e),migration:new Pt(void 0,t,e),storage:{attachment:new L(void 0,t,e),policy:new Pn(void 0,t,e)},auth:{authProvider:new de(void 0,t,e)},content:{comment:new Ee(void 0,t,e),reply:new wr(void 0,t,e),indices:new ut(void 0,t,e),post:new Yn(void 0,t,e),singlePage:new Zr(void 0,t,e),tag:new Pi(void 0,t,e)},notification:{notifier:new an(void 0,t,e)},plugin:{plugin:new wn(void 0,t,e)},theme:{theme:new Gi(void 0,t,e)},configMap:{system:new yi(void 0,t,e)}}}function Ho(e){let t=e.defaults.baseURL;return{storage:{attachment:new ie(void 0,t,e)},content:{post:new rr(void 0,t,e),snapshot:new di(void 0,t,e)},security:{twoFactor:new aa(void 0,t,e),personalAccessToken:new _n(void 0,t,e),device:new We(void 0,t,e)},notification:{notification:new Xt(void 0,t,e)},user:{preference:new _a(void 0,t,e)},core:{annotationSetting:new D(void 0,t,e)}}}function Uo(e){let t=e.defaults.baseURL;return{menu:new Et(void 0,t,e),stats:new Di(void 0,t,e),content:{category:new be(void 0,t,e),tag:new Ri(void 0,t,e),singlePage:new ri(void 0,t,e),post:new er(void 0,t,e),comment:new ke(void 0,t,e)},comment:new ke(void 0,t,e),metrics:{metrics:new At(void 0,t,e)},notification:new Kt(void 0,t,e),index:new ot(void 0,t,e)}}let Wo=Bo(zo),Go=Vo(zo),Ko=Ho(zo),qo=Uo(zo);async function Jo(e,t){let n=[],r=1,i=!0;for(;i;){let{data:a}=await e({...t,page:r});n.push(...a.items),r+=1,i=a.hasNext}return n}return e.AddOperationOpEnum=Ea,e.AnnotationSettingV1AlphaUcApi=D,e.AnnotationSettingV1AlphaUcApiAxiosParamCreator=w,e.AnnotationSettingV1AlphaUcApiFactory=E,e.AnnotationSettingV1AlphaUcApiFp=T,e.AnnotationSettingV1alpha1Api=j,e.AnnotationSettingV1alpha1ApiAxiosParamCreator=O,e.AnnotationSettingV1alpha1ApiFactory=A,e.AnnotationSettingV1alpha1ApiFp=k,e.AttachmentV1alpha1Api=P,e.AttachmentV1alpha1ApiAxiosParamCreator=M,e.AttachmentV1alpha1ApiFactory=ee,e.AttachmentV1alpha1ApiFp=N,e.AttachmentV1alpha1ConsoleApi=L,e.AttachmentV1alpha1ConsoleApiAxiosParamCreator=F,e.AttachmentV1alpha1ConsoleApiFactory=te,e.AttachmentV1alpha1ConsoleApiFp=I,e.AttachmentV1alpha1UcApi=ie,e.AttachmentV1alpha1UcApiAxiosParamCreator=ne,e.AttachmentV1alpha1UcApiFactory=re,e.AttachmentV1alpha1UcApiFp=R,e.AuthProviderSpecAuthTypeEnum=Da,e.AuthProviderV1alpha1Api=se,e.AuthProviderV1alpha1ApiAxiosParamCreator=ae,e.AuthProviderV1alpha1ApiFactory=oe,e.AuthProviderV1alpha1ApiFp=z,e.AuthProviderV1alpha1ConsoleApi=de,e.AuthProviderV1alpha1ConsoleApiAxiosParamCreator=ce,e.AuthProviderV1alpha1ConsoleApiFactory=ue,e.AuthProviderV1alpha1ConsoleApiFp=le,e.BackupStatusPhaseEnum=Oa,e.BackupV1alpha1Api=pe,e.BackupV1alpha1ApiAxiosParamCreator=B,e.BackupV1alpha1ApiFactory=fe,e.BackupV1alpha1ApiFp=V,e.CategoryV1alpha1Api=ge,e.CategoryV1alpha1ApiAxiosParamCreator=me,e.CategoryV1alpha1ApiFactory=he,e.CategoryV1alpha1ApiFp=H,e.CategoryV1alpha1PublicApi=be,e.CategoryV1alpha1PublicApiAxiosParamCreator=_e,e.CategoryV1alpha1PublicApiFactory=ye,e.CategoryV1alpha1PublicApiFp=ve,e.CommentV1alpha1Api=Ce,e.CommentV1alpha1ApiAxiosParamCreator=xe,e.CommentV1alpha1ApiFactory=Se,e.CommentV1alpha1ApiFp=U,e.CommentV1alpha1ConsoleApi=Ee,e.CommentV1alpha1ConsoleApiAxiosParamCreator=we,e.CommentV1alpha1ConsoleApiFactory=Te,e.CommentV1alpha1ConsoleApiFp=W,e.CommentV1alpha1PublicApi=ke,e.CommentV1alpha1PublicApiAxiosParamCreator=De,e.CommentV1alpha1PublicApiFactory=Oe,e.CommentV1alpha1PublicApiFp=G,e.ConditionStatusEnum=ka,e.ConfigMapV1alpha1Api=Me,e.ConfigMapV1alpha1ApiAxiosParamCreator=Ae,e.ConfigMapV1alpha1ApiFactory=je,e.ConfigMapV1alpha1ApiFp=K,e.Configuration=Ta,e.CopyOperationOpEnum=Aa,e.CounterV1alpha1Api=Ie,e.CounterV1alpha1ApiAxiosParamCreator=Ne,e.CounterV1alpha1ApiFactory=Fe,e.CounterV1alpha1ApiFp=Pe,e.DeviceV1alpha1Api=Be,e.DeviceV1alpha1ApiAxiosParamCreator=Le,e.DeviceV1alpha1ApiFactory=ze,e.DeviceV1alpha1ApiFp=Re,e.DeviceV1alpha1UcApi=We,e.DeviceV1alpha1UcApiAxiosParamCreator=Ve,e.DeviceV1alpha1UcApiFactory=Ue,e.DeviceV1alpha1UcApiFp=He,e.ExtensionDefinitionV1alpha1Api=Je,e.ExtensionDefinitionV1alpha1ApiAxiosParamCreator=Ge,e.ExtensionDefinitionV1alpha1ApiFactory=qe,e.ExtensionDefinitionV1alpha1ApiFp=Ke,e.ExtensionPointDefinitionV1alpha1Api=Qe,e.ExtensionPointDefinitionV1alpha1ApiAxiosParamCreator=Ye,e.ExtensionPointDefinitionV1alpha1ApiFactory=Ze,e.ExtensionPointDefinitionV1alpha1ApiFp=Xe,e.ExtensionPointSpecTypeEnum=ja,e.GetThumbnailByUriSizeEnum=ea,e.GetThumbnailByUriWidthEnum=ta,e.GroupV1alpha1Api=nt,e.GroupV1alpha1ApiAxiosParamCreator=$e,e.GroupV1alpha1ApiFactory=tt,e.GroupV1alpha1ApiFp=et,e.IndexV1alpha1PublicApi=ot,e.IndexV1alpha1PublicApiAxiosParamCreator=rt,e.IndexV1alpha1PublicApiFactory=at,e.IndexV1alpha1PublicApiFp=it,e.IndicesV1alpha1ConsoleApi=ut,e.IndicesV1alpha1ConsoleApiAxiosParamCreator=st,e.IndicesV1alpha1ConsoleApiFactory=lt,e.IndicesV1alpha1ConsoleApiFp=ct,e.InstallPluginSourceEnum=Tn,e.ListMyPostsPublishPhaseEnum=ir,e.ListPostsPublishPhaseEnum=Xn,e.ListSinglePagesPublishPhaseEnum=Qr,e.ListSinglePagesVisibleEnum=$r,e.ListedAuthProviderAuthTypeEnum=Ma,e.LocalThumbnailSpecSizeEnum=Na,e.LocalThumbnailStatusPhaseEnum=Pa,e.LocalThumbnailV1alpha1Api=mt,e.LocalThumbnailV1alpha1ApiAxiosParamCreator=dt,e.LocalThumbnailV1alpha1ApiFactory=pt,e.LocalThumbnailV1alpha1ApiFp=ft,e.MenuItemSpecTargetEnum=Fa,e.MenuItemV1alpha1Api=vt,e.MenuItemV1alpha1ApiAxiosParamCreator=ht,e.MenuItemV1alpha1ApiFactory=_t,e.MenuItemV1alpha1ApiFp=gt,e.MenuV1alpha1Api=St,e.MenuV1alpha1ApiAxiosParamCreator=yt,e.MenuV1alpha1ApiFactory=xt,e.MenuV1alpha1ApiFp=bt,e.MenuV1alpha1PublicApi=Et,e.MenuV1alpha1PublicApiAxiosParamCreator=Ct,e.MenuV1alpha1PublicApiFactory=Tt,e.MenuV1alpha1PublicApiFp=wt,e.MetricsV1alpha1PublicApi=At,e.MetricsV1alpha1PublicApiAxiosParamCreator=Dt,e.MetricsV1alpha1PublicApiFactory=kt,e.MetricsV1alpha1PublicApiFp=Ot,e.MigrationV1alpha1ConsoleApi=Pt,e.MigrationV1alpha1ConsoleApiAxiosParamCreator=jt,e.MigrationV1alpha1ConsoleApiFactory=Nt,e.MigrationV1alpha1ConsoleApiFp=Mt,e.MoveOperationOpEnum=Ia,e.NotificationTemplateV1alpha1Api=Rt,e.NotificationTemplateV1alpha1ApiAxiosParamCreator=Ft,e.NotificationTemplateV1alpha1ApiFactory=Lt,e.NotificationTemplateV1alpha1ApiFp=It,e.NotificationV1alpha1Api=Ht,e.NotificationV1alpha1ApiAxiosParamCreator=zt,e.NotificationV1alpha1ApiFactory=Vt,e.NotificationV1alpha1ApiFp=Bt,e.NotificationV1alpha1PublicApi=Kt,e.NotificationV1alpha1PublicApiAxiosParamCreator=Ut,e.NotificationV1alpha1PublicApiFactory=Gt,e.NotificationV1alpha1PublicApiFp=Wt,e.NotificationV1alpha1UcApi=Xt,e.NotificationV1alpha1UcApiAxiosParamCreator=qt,e.NotificationV1alpha1UcApiFactory=Yt,e.NotificationV1alpha1UcApiFp=Jt,e.NotifierDescriptorV1alpha1Api=en,e.NotifierDescriptorV1alpha1ApiAxiosParamCreator=Zt,e.NotifierDescriptorV1alpha1ApiFactory=$t,e.NotifierDescriptorV1alpha1ApiFp=Qt,e.NotifierV1alpha1ConsoleApi=an,e.NotifierV1alpha1ConsoleApiAxiosParamCreator=tn,e.NotifierV1alpha1ConsoleApiFactory=rn,e.NotifierV1alpha1ConsoleApiFp=nn,e.NotifierV1alpha1UcApi=ln,e.NotifierV1alpha1UcApiAxiosParamCreator=on,e.NotifierV1alpha1UcApiFactory=cn,e.NotifierV1alpha1UcApiFp=sn,e.PersonalAccessTokenV1alpha1Api=pn,e.PersonalAccessTokenV1alpha1ApiAxiosParamCreator=un,e.PersonalAccessTokenV1alpha1ApiFactory=fn,e.PersonalAccessTokenV1alpha1ApiFp=dn,e.PersonalAccessTokenV1alpha1UcApi=_n,e.PersonalAccessTokenV1alpha1UcApiAxiosParamCreator=mn,e.PersonalAccessTokenV1alpha1UcApiFactory=gn,e.PersonalAccessTokenV1alpha1UcApiFp=hn,e.PluginStatusLastProbeStateEnum=La,e.PluginStatusPhaseEnum=Ra,e.PluginV1alpha1Api=xn,e.PluginV1alpha1ApiAxiosParamCreator=vn,e.PluginV1alpha1ApiFactory=bn,e.PluginV1alpha1ApiFp=yn,e.PluginV1alpha1ConsoleApi=wn,e.PluginV1alpha1ConsoleApiAxiosParamCreator=Sn,e.PluginV1alpha1ConsoleApiFactory=Cn,e.PluginV1alpha1ConsoleApiFp=q,e.PluginV1alpha1PublicApi=An,e.PluginV1alpha1PublicApiAxiosParamCreator=Dn,e.PluginV1alpha1PublicApiFactory=kn,e.PluginV1alpha1PublicApiFp=On,e.PolicyAlpha1ConsoleApi=Pn,e.PolicyAlpha1ConsoleApiAxiosParamCreator=jn,e.PolicyAlpha1ConsoleApiFactory=Nn,e.PolicyAlpha1ConsoleApiFp=Mn,e.PolicyTemplateV1alpha1Api=Rn,e.PolicyTemplateV1alpha1ApiAxiosParamCreator=Fn,e.PolicyTemplateV1alpha1ApiFactory=Ln,e.PolicyTemplateV1alpha1ApiFp=In,e.PolicyV1alpha1Api=Hn,e.PolicyV1alpha1ApiAxiosParamCreator=zn,e.PolicyV1alpha1ApiFactory=Vn,e.PolicyV1alpha1ApiFp=Bn,e.PostSpecVisibleEnum=za,e.PostV1alpha1Api=Kn,e.PostV1alpha1ApiAxiosParamCreator=Un,e.PostV1alpha1ApiFactory=Gn,e.PostV1alpha1ApiFp=Wn,e.PostV1alpha1ConsoleApi=Yn,e.PostV1alpha1ConsoleApiAxiosParamCreator=qn,e.PostV1alpha1ConsoleApiFactory=Jn,e.PostV1alpha1ConsoleApiFp=J,e.PostV1alpha1PublicApi=er,e.PostV1alpha1PublicApiAxiosParamCreator=Zn,e.PostV1alpha1PublicApiFactory=$n,e.PostV1alpha1PublicApiFp=Qn,e.PostV1alpha1UcApi=rr,e.PostV1alpha1UcApiAxiosParamCreator=tr,e.PostV1alpha1UcApiFactory=nr,e.PostV1alpha1UcApiFp=Y,e.ReasonTypeV1alpha1Api=cr,e.ReasonTypeV1alpha1ApiAxiosParamCreator=ar,e.ReasonTypeV1alpha1ApiFactory=sr,e.ReasonTypeV1alpha1ApiFp=or,e.ReasonV1alpha1Api=fr,e.ReasonV1alpha1ApiAxiosParamCreator=lr,e.ReasonV1alpha1ApiFactory=dr,e.ReasonV1alpha1ApiFp=ur,e.RememberMeTokenV1alpha1Api=gr,e.RememberMeTokenV1alpha1ApiAxiosParamCreator=pr,e.RememberMeTokenV1alpha1ApiFactory=hr,e.RememberMeTokenV1alpha1ApiFp=mr,e.RemoveOperationOpEnum=Ba,e.ReplaceOperationOpEnum=Va,e.ReplyV1alpha1Api=br,e.ReplyV1alpha1ApiAxiosParamCreator=_r,e.ReplyV1alpha1ApiFactory=yr,e.ReplyV1alpha1ApiFp=vr,e.ReplyV1alpha1ConsoleApi=wr,e.ReplyV1alpha1ConsoleApiAxiosParamCreator=xr,e.ReplyV1alpha1ConsoleApiFactory=Cr,e.ReplyV1alpha1ConsoleApiFp=Sr,e.ReverseProxyV1alpha1Api=Or,e.ReverseProxyV1alpha1ApiAxiosParamCreator=Tr,e.ReverseProxyV1alpha1ApiFactory=Dr,e.ReverseProxyV1alpha1ApiFp=Er,e.RoleBindingV1alpha1Api=Mr,e.RoleBindingV1alpha1ApiAxiosParamCreator=kr,e.RoleBindingV1alpha1ApiFactory=jr,e.RoleBindingV1alpha1ApiFp=Ar,e.RoleV1alpha1Api=Ir,e.RoleV1alpha1ApiAxiosParamCreator=Nr,e.RoleV1alpha1ApiFactory=Fr,e.RoleV1alpha1ApiFp=Pr,e.SecretV1alpha1Api=Br,e.SecretV1alpha1ApiAxiosParamCreator=Lr,e.SecretV1alpha1ApiFactory=zr,e.SecretV1alpha1ApiFp=Rr,e.SettingV1alpha1Api=Wr,e.SettingV1alpha1ApiAxiosParamCreator=Vr,e.SettingV1alpha1ApiFactory=Ur,e.SettingV1alpha1ApiFp=Hr,e.SinglePageSpecVisibleEnum=Ha,e.SinglePageV1alpha1Api=Jr,e.SinglePageV1alpha1ApiAxiosParamCreator=Gr,e.SinglePageV1alpha1ApiFactory=qr,e.SinglePageV1alpha1ApiFp=Kr,e.SinglePageV1alpha1ConsoleApi=Zr,e.SinglePageV1alpha1ConsoleApiAxiosParamCreator=Yr,e.SinglePageV1alpha1ConsoleApiFactory=Xr,e.SinglePageV1alpha1ConsoleApiFp=X,e.SinglePageV1alpha1PublicApi=ri,e.SinglePageV1alpha1PublicApiAxiosParamCreator=ei,e.SinglePageV1alpha1PublicApiFactory=ni,e.SinglePageV1alpha1PublicApiFp=ti,e.SnapshotV1alpha1Api=si,e.SnapshotV1alpha1ApiAxiosParamCreator=ii,e.SnapshotV1alpha1ApiFactory=oi,e.SnapshotV1alpha1ApiFp=ai,e.SnapshotV1alpha1UcApi=di,e.SnapshotV1alpha1UcApiAxiosParamCreator=ci,e.SnapshotV1alpha1UcApiFactory=ui,e.SnapshotV1alpha1UcApiFp=li,e.SubscriptionV1alpha1Api=hi,e.SubscriptionV1alpha1ApiAxiosParamCreator=fi,e.SubscriptionV1alpha1ApiFactory=mi,e.SubscriptionV1alpha1ApiFp=pi,e.SystemConfigV1alpha1ConsoleApi=yi,e.SystemConfigV1alpha1ConsoleApiAxiosParamCreator=gi,e.SystemConfigV1alpha1ConsoleApiFactory=vi,e.SystemConfigV1alpha1ConsoleApiFp=_i,e.SystemV1alpha1ConsoleApi=Ci,e.SystemV1alpha1ConsoleApiAxiosParamCreator=bi,e.SystemV1alpha1ConsoleApiFactory=Si,e.SystemV1alpha1ConsoleApiFp=xi,e.SystemV1alpha1PublicApi=Di,e.SystemV1alpha1PublicApiAxiosParamCreator=wi,e.SystemV1alpha1PublicApiFactory=Ei,e.SystemV1alpha1PublicApiFp=Ti,e.TagV1alpha1Api=Ai,e.TagV1alpha1ApiAxiosParamCreator=Oi,e.TagV1alpha1ApiFactory=ki,e.TagV1alpha1ApiFp=Z,e.TagV1alpha1ConsoleApi=Pi,e.TagV1alpha1ConsoleApiAxiosParamCreator=ji,e.TagV1alpha1ConsoleApiFactory=Ni,e.TagV1alpha1ConsoleApiFp=Mi,e.TagV1alpha1PublicApi=Ri,e.TagV1alpha1PublicApiAxiosParamCreator=Fi,e.TagV1alpha1PublicApiFactory=Li,e.TagV1alpha1PublicApiFp=Ii,e.TestOperationOpEnum=Ua,e.ThemeStatusPhaseEnum=Wa,e.ThemeV1alpha1Api=Hi,e.ThemeV1alpha1ApiAxiosParamCreator=zi,e.ThemeV1alpha1ApiFactory=Vi,e.ThemeV1alpha1ApiFp=Bi,e.ThemeV1alpha1ConsoleApi=Gi,e.ThemeV1alpha1ConsoleApiAxiosParamCreator=Ui,e.ThemeV1alpha1ConsoleApiFactory=Wi,e.ThemeV1alpha1ConsoleApiFp=Q,e.ThumbnailSpecSizeEnum=Ga,e.ThumbnailV1alpha1Api=Yi,e.ThumbnailV1alpha1ApiAxiosParamCreator=Ki,e.ThumbnailV1alpha1ApiFactory=Ji,e.ThumbnailV1alpha1ApiFp=qi,e.ThumbnailV1alpha1PublicApi=$i,e.ThumbnailV1alpha1PublicApiAxiosParamCreator=Xi,e.ThumbnailV1alpha1PublicApiFactory=Qi,e.ThumbnailV1alpha1PublicApiFp=Zi,e.TwoFactorAuthV1alpha1UcApi=aa,e.TwoFactorAuthV1alpha1UcApiAxiosParamCreator=na,e.TwoFactorAuthV1alpha1UcApiFactory=ia,e.TwoFactorAuthV1alpha1UcApiFp=ra,e.UpgradePluginSourceEnum=En,e.UserConnectionV1alpha1Api=la,e.UserConnectionV1alpha1ApiAxiosParamCreator=oa,e.UserConnectionV1alpha1ApiFactory=ca,e.UserConnectionV1alpha1ApiFp=sa,e.UserConnectionV1alpha1UcApi=pa,e.UserConnectionV1alpha1UcApiAxiosParamCreator=ua,e.UserConnectionV1alpha1UcApiFactory=fa,e.UserConnectionV1alpha1UcApiFp=da,e.UserPreferenceV1alpha1UcApi=_a,e.UserPreferenceV1alpha1UcApiAxiosParamCreator=ma,e.UserPreferenceV1alpha1UcApiFactory=ga,e.UserPreferenceV1alpha1UcApiFp=ha,e.UserV1alpha1Api=xa,e.UserV1alpha1ApiAxiosParamCreator=va,e.UserV1alpha1ApiFactory=ba,e.UserV1alpha1ApiFp=ya,e.UserV1alpha1ConsoleApi=wa,e.UserV1alpha1ConsoleApiAxiosParamCreator=Sa,e.UserV1alpha1ConsoleApiFactory=Ca,e.UserV1alpha1ConsoleApiFp=$,e.axiosInstance=zo,e.consoleApiClient=Go,e.coreApiClient=Wo,e.createConsoleApiClient=Vo,e.createCoreApiClient=Bo,e.createPublicApiClient=Uo,e.createUcApiClient=Ho,e.paginate=Jo,e.publicApiClient=qo,e.ucApiClient=Ko,e})({},axios);
|