@flyo/nitro-astro 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -13,7 +13,9 @@ export default defineConfig({
13
13
  flyoNitroIntegration({
14
14
  accessToken: 'N0vxfdfd275jSoEvFion7dfdfsdfasdfasd4n95zFroAZ', // switch between dev and prod token depending on the enviroment
15
15
  liveEdit: true, // on dev and preview system this should be enabled, as this allows to reload the application inside the flyo preview frame when things change
16
- components: { // define where the flyo components are located the suffix .astro is no required. Object key is the value from flyo, while object value is the component inside astro components folder
16
+ components: {
17
+ // define where the flyo components are located the suffix .astro is no required. Object key is the value from flyo, while object value is the component inside astro components folder
18
+ // [!] Adding new elements requires the dev process to restart (it seems)
17
19
  "FlyoElementName": "AstroElementName",
18
20
  "AnotherFlyoElement": "subfolder/AnotherFlyoElement"
19
21
  }
@@ -22,20 +24,84 @@ export default defineConfig({
22
24
  });
23
25
  ```
24
26
 
25
- Add a `[...slug].astro` filein pages directory with the following exmaple content:
27
+ Add a `[...slug].astro` file in pages directory with the following exmaple content as a catch all cms handler:
26
28
 
27
29
  ```astro
28
30
  ---
29
31
  import Layout from '../layouts/Layout.astro';
30
32
  import { PagesApi } from '@flyo/nitro-js'
33
+ import FlyoNitroPage from '@flyo/nitro-astro/FlyoNitroPage.astro'
31
34
 
32
35
  const { slug } = Astro.params;
33
36
  const page = await new PagesApi().page({slug: slug === undefined ? '' : slug})
34
37
  ---
35
38
  <Layout title={page.title}>
36
- <h1>{page.title}</h1>
39
+ <FlyoNitroPage page={page} />
37
40
  </Layout>
41
+ ```
42
+
43
+ To recieve the config in the layout:
44
+
45
+ ```astro
46
+ ---
47
+ import { ConfigApi } from '@flyo/nitro-js';
48
+
49
+ const config = await new ConfigApi().config()
50
+ const { title } = Astro.props;
51
+ ---
52
+ <!doctype html>
53
+ <html lang="en">
54
+ <head>
55
+ <title>{title}</title>
56
+ </head>
57
+ <body>
58
+ {config.containers.nav.items.map((item: object) => (
59
+ <a style="background-color: red; color: white" href={item.href}>
60
+ {item.label}<br />
61
+ </a>
62
+ ))}
63
+ <div class="container">
64
+ <slot />
65
+ </div>
66
+ </body>
67
+ </html>
68
+ ```
69
+
70
+ Entity Detail Example
71
+
72
+ ```astro
73
+ ---
74
+ import { EntitiesApi } from '@flyo/nitro-js'
75
+
76
+ const { slug } = Astro.params;
77
+ const entity = await new EntitiesApi().entityBySlug(slug);
78
+ ---
79
+ <h1>{ slug }</h1>
80
+ <img src={ entity.model.image.source } style="width:100%" />
81
+ ```
82
+
83
+ Block Component Example:
84
+
85
+ ```astro
86
+ ---
87
+ import FlyoNitroBlock from '@flyo/nitro-astro/FlyoNitroBlock.astro';
88
+ const { block } = Astro.props
89
+ ---
90
+ <!-- content variable -->
91
+ <div set:html={block.content.content.html} />
92
+
93
+ <!-- handling items -->
94
+ {block.items.map((item: object) => (
95
+ <div>
96
+ { item.title }
97
+ <a href={item.link.routes.detail}>Go to Detail</a>
98
+ </div>
99
+ ))}
38
100
 
101
+ <!-- handling slots -->
102
+ {block.slots.slotcontainername.content.map((block: object) => (
103
+ <FlyoNitroBlock block={block} />
104
+ ))}
39
105
  ```
40
106
 
41
107
  ## Development
@@ -1,10 +1,10 @@
1
- (function(J,H){typeof exports=="object"&&typeof module<"u"?H(exports):typeof define=="function"&&define.amd?define(["exports"],H):(J=typeof globalThis<"u"?globalThis:J||self,H(J.flyoNitroIntegration={}))})(this,function(J){"use strict";function H(i){if(i.__esModule)return i;var u=i.default;if(typeof u=="function"){var y=function l(){return this instanceof l?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};y.prototype=u.prototype}else y={};return Object.defineProperty(y,"__esModule",{value:!0}),Object.keys(i).forEach(function(l){var p=Object.getOwnPropertyDescriptor(i,l);Object.defineProperty(y,l,p.get?p:{enumerable:!0,get:function(){return i[l]}})}),y}var Ue={};function je(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var N={},X={exports:{}},be={exports:{}};(function(i){i.exports=u;function u(l){if(l)return y(l)}function y(l){for(var p in u.prototype)l[p]=u.prototype[p];return l}u.prototype.on=u.prototype.addEventListener=function(l,p){return this._callbacks=this._callbacks||{},(this._callbacks["$"+l]=this._callbacks["$"+l]||[]).push(p),this},u.prototype.once=function(l,p){function v(){this.off(l,v),p.apply(this,arguments)}return v.fn=p,this.on(l,v),this},u.prototype.off=u.prototype.removeListener=u.prototype.removeAllListeners=u.prototype.removeEventListener=function(l,p){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var v=this._callbacks["$"+l];if(!v)return this;if(arguments.length==1)return delete this._callbacks["$"+l],this;for(var b,w=0;w<v.length;w++)if(b=v[w],b===p||b.fn===p){v.splice(w,1);break}return v.length===0&&delete this._callbacks["$"+l],this},u.prototype.emit=function(l){this._callbacks=this._callbacks||{};for(var p=new Array(arguments.length-1),v=this._callbacks["$"+l],b=1;b<arguments.length;b++)p[b-1]=arguments[b];if(v){v=v.slice(0);for(var b=0,w=v.length;b<w;++b)v[b].apply(this,p)}return this},u.prototype.listeners=function(l){return this._callbacks=this._callbacks||{},this._callbacks["$"+l]||[]},u.prototype.hasListeners=function(l){return!!this.listeners(l).length}})(be);var Ke=be.exports,$e=L;L.default=L,L.stable=Oe,L.stableStringify=Oe;var K="[...]",we="[Circular]",M=[],x=[];function Se(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function L(i,u,y,l){typeof l>"u"&&(l=Se()),Q(i,"",0,[],void 0,0,l);var p;try{x.length===0?p=JSON.stringify(i,u,y):p=JSON.stringify(i,Te(u),y)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;M.length!==0;){var v=M.pop();v.length===4?Object.defineProperty(v[0],v[1],v[3]):v[0][v[1]]=v[2]}}return p}function z(i,u,y,l){var p=Object.getOwnPropertyDescriptor(l,y);p.get!==void 0?p.configurable?(Object.defineProperty(l,y,{value:i}),M.push([l,y,u,p])):x.push([u,y,i]):(l[y]=i,M.push([l,y,u]))}function Q(i,u,y,l,p,v,b){v+=1;var w;if(typeof i=="object"&&i!==null){for(w=0;w<l.length;w++)if(l[w]===i){z(we,i,u,p);return}if(typeof b.depthLimit<"u"&&v>b.depthLimit){z(K,i,u,p);return}if(typeof b.edgesLimit<"u"&&y+1>b.edgesLimit){z(K,i,u,p);return}if(l.push(i),Array.isArray(i))for(w=0;w<i.length;w++)Q(i[w],w,w,l,i,v,b);else{var T=Object.keys(i);for(w=0;w<T.length;w++){var S=T[w];Q(i[S],S,w,l,i,v,b)}}l.pop()}}function We(i,u){return i<u?-1:i>u?1:0}function Oe(i,u,y,l){typeof l>"u"&&(l=Se());var p=Y(i,"",0,[],void 0,0,l)||i,v;try{x.length===0?v=JSON.stringify(p,u,y):v=JSON.stringify(p,Te(u),y)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;M.length!==0;){var b=M.pop();b.length===4?Object.defineProperty(b[0],b[1],b[3]):b[0][b[1]]=b[2]}}return v}function Y(i,u,y,l,p,v,b){v+=1;var w;if(typeof i=="object"&&i!==null){for(w=0;w<l.length;w++)if(l[w]===i){z(we,i,u,p);return}try{if(typeof i.toJSON=="function")return}catch{return}if(typeof b.depthLimit<"u"&&v>b.depthLimit){z(K,i,u,p);return}if(typeof b.edgesLimit<"u"&&y+1>b.edgesLimit){z(K,i,u,p);return}if(l.push(i),Array.isArray(i))for(w=0;w<i.length;w++)Y(i[w],w,w,l,i,v,b);else{var T={},S=Object.keys(i).sort(We);for(w=0;w<S.length;w++){var O=S[w];Y(i[O],O,w,l,i,v,b),T[O]=i[O]}if(typeof p<"u")M.push([p,u,i]),p[u]=T;else return T}l.pop()}}function Te(i){return i=typeof i<"u"?i:function(u,y){return y},function(u,y){if(x.length>0)for(var l=0;l<x.length;l++){var p=x[l];if(p[1]===u&&p[0]===y){y=p[2],x.splice(l,1);break}}return i.call(this,u,y)}}function $(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(y){return typeof y}:$=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},$(i)}function Ge(i){return i!==null&&$(i)==="object"}var Pe=Ge;function W(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W=function(y){return typeof y}:W=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},W(i)}var G=Pe,Ve=E;function E(i){if(i)return Xe(i)}function Xe(i){for(var u in E.prototype)Object.prototype.hasOwnProperty.call(E.prototype,u)&&(i[u]=E.prototype[u]);return i}E.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},E.prototype.parse=function(i){return this._parser=i,this},E.prototype.responseType=function(i){return this._responseType=i,this},E.prototype.serialize=function(i){return this._serializer=i,this},E.prototype.timeout=function(i){if(!i||W(i)!=="object")return this._timeout=i,this._responseTimeout=0,this._uploadTimeout=0,this;for(var u in i)if(Object.prototype.hasOwnProperty.call(i,u))switch(u){case"deadline":this._timeout=i.deadline;break;case"response":this._responseTimeout=i.response;break;case"upload":this._uploadTimeout=i.upload;break;default:console.warn("Unknown timeout option",u)}return this},E.prototype.retry=function(i,u){return(arguments.length===0||i===!0)&&(i=1),i<=0&&(i=0),this._maxRetries=i,this._retries=0,this._retryCallback=u,this};var Qe=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];E.prototype._shouldRetry=function(i,u){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var y=this._retryCallback(i,u);if(y===!0)return!0;if(y===!1)return!1}catch(l){console.error(l)}return!!(u&&u.status&&u.status>=500&&u.status!==501||i&&(i.code&&Qe.includes(i.code)||i.timeout&&i.code==="ECONNABORTED"||i.crossDomain))},E.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},E.prototype.then=function(i,u){var y=this;if(!this._fullfilledPromise){var l=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(p,v){l.on("abort",function(){if(!(y._maxRetries&&y._maxRetries>y._retries)){if(y.timedout&&y.timedoutError){v(y.timedoutError);return}var b=new Error("Aborted");b.code="ABORTED",b.status=y.status,b.method=y.method,b.url=y.url,v(b)}}),l.end(function(b,w){b?v(b):p(w)})})}return this._fullfilledPromise.then(i,u)},E.prototype.catch=function(i){return this.then(void 0,i)},E.prototype.use=function(i){return i(this),this},E.prototype.ok=function(i){if(typeof i!="function")throw new Error("Callback required");return this._okCallback=i,this},E.prototype._isResponseOK=function(i){return i?this._okCallback?this._okCallback(i):i.status>=200&&i.status<300:!1},E.prototype.get=function(i){return this._header[i.toLowerCase()]},E.prototype.getHeader=E.prototype.get,E.prototype.set=function(i,u){if(G(i)){for(var y in i)Object.prototype.hasOwnProperty.call(i,y)&&this.set(y,i[y]);return this}return this._header[i.toLowerCase()]=u,this.header[i]=u,this},E.prototype.unset=function(i){return delete this._header[i.toLowerCase()],delete this.header[i],this},E.prototype.field=function(i,u){if(i==null)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(G(i)){for(var y in i)Object.prototype.hasOwnProperty.call(i,y)&&this.field(y,i[y]);return this}if(Array.isArray(u)){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&this.field(i,u[l]);return this}if(u==null)throw new Error(".field(name, val) val can not be empty");return typeof u=="boolean"&&(u=String(u)),this._getFormData().append(i,u),this},E.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},E.prototype._auth=function(i,u,y,l){switch(y.type){case"basic":this.set("Authorization","Basic ".concat(l("".concat(i,":").concat(u))));break;case"auto":this.username=i,this.password=u;break;case"bearer":this.set("Authorization","Bearer ".concat(i));break}return this},E.prototype.withCredentials=function(i){return i===void 0&&(i=!0),this._withCredentials=i,this},E.prototype.redirects=function(i){return this._maxRedirects=i,this},E.prototype.maxResponseSize=function(i){if(typeof i!="number")throw new TypeError("Invalid argument");return this._maxResponseSize=i,this},E.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},E.prototype.send=function(i){var u=G(i),y=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(u&&!this._data)Array.isArray(i)?this._data=[]:this._isHost(i)||(this._data={});else if(i&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(u&&G(this._data))for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(this._data[l]=i[l]);else typeof i=="string"?(y||this.type("form"),y=this._header["content-type"],y==="application/x-www-form-urlencoded"?this._data=this._data?"".concat(this._data,"&").concat(i):i:this._data=(this._data||"")+i):this._data=i;return!u||this._isHost(i)?this:(y||this.type("json"),this)},E.prototype.sortQuery=function(i){return this._sort=typeof i>"u"?!0:i,this},E.prototype._finalizeQueryString=function(){var i=this._query.join("&");if(i&&(this.url+=(this.url.includes("?")?"&":"?")+i),this._query.length=0,this._sort){var u=this.url.indexOf("?");if(u>=0){var y=this.url.slice(u+1).split("&");typeof this._sort=="function"?y.sort(this._sort):y.sort(),this.url=this.url.slice(0,u)+"?"+y.join("&")}}},E.prototype._appendQueryString=function(){console.warn("Unsupported")},E.prototype._timeoutError=function(i,u,y){if(!this._aborted){var l=new Error("".concat(i+u,"ms exceeded"));l.timeout=u,l.code="ECONNABORTED",l.errno=y,this.timedout=!0,this.timedoutError=l,this.abort(),this.callback(l)}},E.prototype._setTimeouts=function(){var i=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){i._timeoutError("Timeout of ",i._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){i._timeoutError("Response timeout of ",i._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var U={};U.type=function(i){return i.split(/ *; */).shift()},U.params=function(i){return i.split(/ *; */).reduce(function(u,y){var l=y.split(/ *= */),p=l.shift(),v=l.shift();return p&&v&&(u[p]=v),u},{})},U.parseLinks=function(i){return i.split(/ *, */).reduce(function(u,y){var l=y.split(/ *; */),p=l[0].slice(1,-1),v=l[1].split(/ *= */)[1].slice(1,-1);return u[v]=p,u},{})},U.cleanHeader=function(i,u){return delete i["content-type"],delete i["content-length"],delete i["transfer-encoding"],delete i.host,u&&(delete i.authorization,delete i.cookie),i};var Z=U,Ye=B;function B(i){if(i)return Ze(i)}function Ze(i){for(var u in B.prototype)Object.prototype.hasOwnProperty.call(B.prototype,u)&&(i[u]=B.prototype[u]);return i}B.prototype.get=function(i){return this.header[i.toLowerCase()]},B.prototype._setHeaderProperties=function(i){var u=i["content-type"]||"";this.type=Z.type(u);var y=Z.params(u);for(var l in y)Object.prototype.hasOwnProperty.call(y,l)&&(this[l]=y[l]);this.links={};try{i.link&&(this.links=Z.parseLinks(i.link))}catch{}},B.prototype._setStatusProperties=function(i){var u=i/100|0;this.statusCode=i,this.status=this.statusCode,this.statusType=u,this.info=u===1,this.ok=u===2,this.redirect=u===3,this.clientError=u===4,this.serverError=u===5,this.error=u===4||u===5?this.toError():!1,this.created=i===201,this.accepted=i===202,this.noContent=i===204,this.badRequest=i===400,this.unauthorized=i===401,this.notAcceptable=i===406,this.forbidden=i===403,this.notFound=i===404,this.unprocessableEntity=i===422};function et(i){return it(i)||nt(i)||rt(i)||tt()}function tt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(i,u){if(i){if(typeof i=="string")return ee(i,u);var y=Object.prototype.toString.call(i).slice(8,-1);if(y==="Object"&&i.constructor&&(y=i.constructor.name),y==="Map"||y==="Set")return Array.from(i);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return ee(i,u)}}function nt(i){if(typeof Symbol<"u"&&Symbol.iterator in Object(i))return Array.from(i)}function it(i){if(Array.isArray(i))return ee(i)}function ee(i,u){(u==null||u>i.length)&&(u=i.length);for(var y=0,l=new Array(u);y<u;y++)l[y]=i[y];return l}function te(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(i){te.prototype[i]=function(){for(var u=arguments.length,y=new Array(u),l=0;l<u;l++)y[l]=arguments[l];return this._defaults.push({fn:i,args:y}),this}}),te.prototype._setDefaults=function(i){this._defaults.forEach(function(u){i[u.fn].apply(i,et(u.args))})};var ot=te;(function(i,u){function y(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(m){return typeof m}:y=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},y(s)}var l;typeof window<"u"?l=window:typeof self>"u"?(console.warn("Using browser-only version of superagent in non-browser environment"),l=void 0):l=self;var p=Ke,v=$e,b=Ve,w=Pe,T=Ye,S=ot;function O(){}i.exports=function(s,d){return typeof d=="function"?new u.Request("GET",s).end(d):arguments.length===1?new u.Request("GET",s):new u.Request(s,d)},u=i.exports;var n=u;u.Request=g,n.getXHR=function(){if(l.XMLHttpRequest&&(!l.location||l.location.protocol!=="file:"||!l.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw new Error("Browser-only version of superagent could not find XHR")};var t="".trim?function(s){return s.trim()}:function(s){return s.replace(/(^\s*|\s*$)/g,"")};function r(s){if(!w(s))return s;var d=[];for(var m in s)Object.prototype.hasOwnProperty.call(s,m)&&e(d,m,s[m]);return d.join("&")}function e(s,d,m){if(m!==void 0){if(m===null){s.push(encodeURI(d));return}if(Array.isArray(m))m.forEach(function(P){e(s,d,P)});else if(w(m))for(var _ in m)Object.prototype.hasOwnProperty.call(m,_)&&e(s,"".concat(d,"[").concat(_,"]"),m[_]);else s.push(encodeURI(d)+"="+encodeURIComponent(m))}}n.serializeObject=r;function o(s){for(var d={},m=s.split("&"),_,P,A=0,C=m.length;A<C;++A)_=m[A],P=_.indexOf("="),P===-1?d[decodeURIComponent(_)]="":d[decodeURIComponent(_.slice(0,P))]=decodeURIComponent(_.slice(P+1));return d}n.parseString=o,n.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},n.serialize={"application/x-www-form-urlencoded":r,"application/json":v},n.parse={"application/x-www-form-urlencoded":o,"application/json":JSON.parse};function f(s){for(var d=s.split(/\r?\n/),m={},_,P,A,C,k=0,I=d.length;k<I;++k)P=d[k],_=P.indexOf(":"),_!==-1&&(A=P.slice(0,_).toLowerCase(),C=t(P.slice(_+1)),m[A]=C);return m}function a(s){return/[/+]json($|[^-\w])/.test(s)}function c(s){this.req=s,this.xhr=this.req.xhr,this.text=this.req.method!=="HEAD"&&(this.xhr.responseType===""||this.xhr.responseType==="text")||typeof this.xhr.responseType>"u"?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var d=this.xhr.status;d===1223&&(d=204),this._setStatusProperties(d),this.headers=f(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.text===null&&s._responseType?this.body=this.xhr.response:this.body=this.req.method==="HEAD"?null:this._parseBody(this.text?this.text:this.xhr.response)}T(c.prototype),c.prototype._parseBody=function(s){var d=n.parse[this.type];return this.req._parser?this.req._parser(this,s):(!d&&a(this.type)&&(d=n.parse["application/json"]),d&&s&&(s.length>0||s instanceof Object)?d(s):null)},c.prototype.toError=function(){var s=this.req,d=s.method,m=s.url,_="cannot ".concat(d," ").concat(m," (").concat(this.status,")"),P=new Error(_);return P.status=this.status,P.method=d,P.url=m,P},n.Response=c;function g(s,d){var m=this;this._query=this._query||[],this.method=s,this.url=d,this.header={},this._header={},this.on("end",function(){var _=null,P=null;try{P=new c(m)}catch(C){return _=new Error("Parser is unable to parse the response"),_.parse=!0,_.original=C,m.xhr?(_.rawResponse=typeof m.xhr.responseType>"u"?m.xhr.responseText:m.xhr.response,_.status=m.xhr.status?m.xhr.status:null,_.statusCode=_.status):(_.rawResponse=null,_.status=null),m.callback(_)}m.emit("response",P);var A;try{m._isResponseOK(P)||(A=new Error(P.statusText||P.text||"Unsuccessful HTTP response"))}catch(C){A=C}A?(A.original=_,A.response=P,A.status=P.status,m.callback(A,P)):m.callback(null,P)})}p(g.prototype),b(g.prototype),g.prototype.type=function(s){return this.set("Content-Type",n.types[s]||s),this},g.prototype.accept=function(s){return this.set("Accept",n.types[s]||s),this},g.prototype.auth=function(s,d,m){arguments.length===1&&(d=""),y(d)==="object"&&d!==null&&(m=d,d=""),m||(m={type:typeof btoa=="function"?"basic":"auto"});var _=function(A){if(typeof btoa=="function")return btoa(A);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(s,d,m,_)},g.prototype.query=function(s){return typeof s!="string"&&(s=r(s)),s&&this._query.push(s),this},g.prototype.attach=function(s,d,m){if(d){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(s,d,m||d.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new l.FormData),this._formData},g.prototype.callback=function(s,d){if(this._shouldRetry(s,d))return this._retry();var m=this._callback;this.clearTimeout(),s&&(this._maxRetries&&(s.retries=this._retries-1),this.emit("error",s)),m(s,d)},g.prototype.crossDomainError=function(){var s=new Error(`Request has been terminated
3
- Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.`);s.crossDomain=!0,s.status=this.status,s.method=this.method,s.url=this.url,this.callback(s)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(s){return s&&y(s)==="object"&&!Array.isArray(s)&&Object.prototype.toString.call(s)!=="[object Object]"},g.prototype.end=function(s){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=s||O,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var s=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){s._timeoutError("Upload timeout of ",s._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var s=this;this.xhr=n.getXHR();var d=this.xhr,m=this._formData||this._data;this._setTimeouts(),d.onreadystatechange=function(){var k=d.readyState;if(k>=2&&s._responseTimeoutTimer&&clearTimeout(s._responseTimeoutTimer),k===4){var I;try{I=d.status}catch{I=0}if(!I)return s.timedout||s._aborted?void 0:s.crossDomainError();s.emit("end")}};var _=function(I,R){R.total>0&&(R.percent=R.loaded/R.total*100,R.percent===100&&clearTimeout(s._uploadTimeoutTimer)),R.direction=I,s.emit("progress",R)};if(this.hasListeners("progress"))try{d.addEventListener("progress",_.bind(null,"download")),d.upload&&d.upload.addEventListener("progress",_.bind(null,"upload"))}catch{}d.upload&&this._setUploadTimeout();try{this.username&&this.password?d.open(this.method,this.url,!0,this.username,this.password):d.open(this.method,this.url,!0)}catch(k){return this.callback(k)}if(this._withCredentials&&(d.withCredentials=!0),!this._formData&&this.method!=="GET"&&this.method!=="HEAD"&&typeof m!="string"&&!this._isHost(m)){var P=this._header["content-type"],A=this._serializer||n.serialize[P?P.split(";")[0]:""];!A&&a(P)&&(A=n.serialize["application/json"]),A&&(m=A(m))}for(var C in this.header)this.header[C]!==null&&Object.prototype.hasOwnProperty.call(this.header,C)&&d.setRequestHeader(C,this.header[C]);this._responseType&&(d.responseType=this._responseType),this.emit("request",this),d.send(typeof m>"u"?null:m)},n.agent=function(){return new S},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(s){S.prototype[s.toLowerCase()]=function(d,m){var _=new n.Request(s,d);return this._setDefaults(_),m&&_.end(m),_}}),S.prototype.del=S.prototype.delete,n.get=function(s,d,m){var _=n("GET",s);return typeof d=="function"&&(m=d,d=null),d&&_.query(d),m&&_.end(m),_},n.head=function(s,d,m){var _=n("HEAD",s);return typeof d=="function"&&(m=d,d=null),d&&_.query(d),m&&_.end(m),_},n.options=function(s,d,m){var _=n("OPTIONS",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_};function h(s,d,m){var _=n("DELETE",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_}n.del=h,n.delete=h,n.patch=function(s,d,m){var _=n("PATCH",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_},n.post=function(s,d,m){var _=n("POST",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_},n.put=function(s,d,m){var _=n("PUT",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_}})(X,X.exports);var ut=X.exports;const Ee=H(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(ut),y=l(Ee);function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"https://api.flyo.cloud/nitro/v1";v(this,t),this.basePath=r.replace(/\/+$/,""),this.authentications={ApiToken:{type:"apiKey",in:"query",name:"token"}},this.defaultHeaders={"User-Agent":"OpenAPI-Generator/1.0.0-beta.153/Javascript"},this.timeout=6e4,this.cache=!0,this.enableCookies=!1,typeof window>"u"&&(this.agent=new u.default.agent),this.requestAgent=null,this.plugins=null}return w(t,[{key:"paramToString",value:function(e){return e==null||e==null?"":e instanceof Date?e.toJSON():t.canBeJsonified(e)?JSON.stringify(e):e.toString()}},{key:"buildUrl",value:function(e,o,f){var a=this;e.match(/^\//)||(e="/"+e);var c=this.basePath+e;return f!=null&&(c=f+e),c=c.replace(/\{([\w-\.]+)\}/g,function(g,h){var s;return o.hasOwnProperty(h)?s=a.paramToString(o[h]):s=g,encodeURIComponent(s)}),c}},{key:"isJsonMime",value:function(e){return!!(e!=null&&e.match(/^application\/json(;.*)?$/i))}},{key:"jsonPreferredMime",value:function(e){for(var o=0;o<e.length;o++)if(this.isJsonMime(e[o]))return e[o];return e[0]}},{key:"isFileParam",value:function(e){if(typeof je=="function"){var o;try{o=Ee}catch{}if(o&&o.ReadStream&&e instanceof o.ReadStream)return!0}return typeof Buffer=="function"&&e instanceof Buffer||typeof Blob=="function"&&e instanceof Blob||typeof File=="function"&&e instanceof File}},{key:"normalizeParams",value:function(e){var o={};for(var f in e)if(e.hasOwnProperty(f)&&e[f]!=null&&e[f]!=null){var a=e[f];this.isFileParam(a)||Array.isArray(a)?o[f]=a:o[f]=this.paramToString(a)}return o}},{key:"buildCollectionParam",value:function(e,o){if(e==null)return null;switch(o){case"csv":return e.map(this.paramToString,this).join(",");case"ssv":return e.map(this.paramToString,this).join(" ");case"tsv":return e.map(this.paramToString,this).join(" ");case"pipes":return e.map(this.paramToString,this).join("|");case"multi":return e.map(this.paramToString,this);case"passthrough":return e;default:throw new Error("Unknown collection format: "+o)}}},{key:"applyAuthToRequest",value:function(e,o){var f=this;o.forEach(function(a){var c=f.authentications[a];switch(c.type){case"basic":(c.username||c.password)&&e.auth(c.username||"",c.password||"");break;case"bearer":if(c.accessToken){var g=typeof c.accessToken=="function"?c.accessToken():c.accessToken;e.set({Authorization:"Bearer "+g})}break;case"apiKey":if(c.apiKey){var h={};c.apiKeyPrefix?h[c.name]=c.apiKeyPrefix+" "+c.apiKey:h[c.name]=c.apiKey,c.in==="header"?e.set(h):e.query(h)}break;case"oauth2":c.accessToken&&e.set({Authorization:"Bearer "+c.accessToken});break;default:throw new Error("Unknown authentication type: "+c.type)}})}},{key:"deserialize",value:function(e,o){if(e==null||o==null||e.status==204)return null;var f=e.body;return(f==null||p(f)==="object"&&typeof f.length>"u"&&!Object.keys(f).length)&&(f=e.text),t.convertToType(f,o)}},{key:"callApi",value:function(e,o,f,a,c,g,h,s,d,m,_,P){var A=this,C=this.buildUrl(e,f,P),k=(0,u.default)(o,C);if(this.plugins!==null)for(var I in this.plugins)this.plugins.hasOwnProperty(I)&&k.use(this.plugins[I]);this.applyAuthToRequest(k,s),o.toUpperCase()==="GET"&&this.cache===!1&&(a._=new Date().getTime()),k.query(this.normalizeParams(a)),k.set(this.defaultHeaders).set(this.normalizeParams(c)),this.requestAgent&&k.agent(this.requestAgent),k.timeout(this.timeout);var R=this.jsonPreferredMime(d);if(R&&R!="multipart/form-data"&&k.type(R),R==="application/x-www-form-urlencoded")k.send(y.default.stringify(this.normalizeParams(g)));else if(R=="multipart/form-data"){var ge=this.normalizeParams(g);for(var j in ge)if(ge.hasOwnProperty(j)){var D=ge[j];this.isFileParam(D)?k.attach(j,D):Array.isArray(D)&&D.length&&this.isFileParam(D[0])?D.forEach(function(_e){return k.attach(j,_e)}):k.field(j,D)}}else h!=null&&(k.header["Content-Type"]||k.type("application/json"),k.send(h));var Fe=this.jsonPreferredMime(m);return Fe&&k.accept(Fe),_==="Blob"?k.responseType("blob"):_==="String"&&k.responseType("text"),this.enableCookies&&(typeof window>"u"?this.agent._attachCookies(k):k.withCredentials()),new Promise(function(_e,He){k.end(function(Le,q){if(Le){var F={};q&&(F.status=q.status,F.statusText=q.statusText,F.body=q.body,F.response=q),F.error=Le,He(F)}else try{var vt=A.deserialize(q,_);A.enableCookies&&typeof window>"u"&&A.agent._saveCookies(q),_e({data:vt,response:q})}catch(gt){He(gt)}})})}},{key:"hostSettings",value:function(){return[{url:"https://api.flyo.cloud/nitro/{version}",description:"Production Server",variables:{version:{description:"The api version currently supported is `v1`",default_value:"v1"}}}]}},{key:"getBasePathFromSettings",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=this.hostSettings();if(e<0||e>=f.length)throw new Error("Invalid index "+e+" when selecting the host settings. Must be less than "+f.length);var a=f[e],c=a.url;for(var g in a.variables)if(g in o){var h=a.variables[g];if(!("enum_values"in h)||h.enum_values.includes(o[g]))c=c.replace("{"+g+"}",o[g]);else throw new Error("The variable `"+g+"` in the host URL has invalid value "+o[g]+". Must be "+a.variables[g].enum_values+".")}else c=c.replace("{"+g+"}",a.variables[g].default_value);return c}}],[{key:"canBeJsonified",value:function(e){if(typeof e!="string"&&p(e)!=="object")return!1;try{var o=e.toString();return o==="[object Object]"||o==="[object Array]"}catch{return!1}}},{key:"parseDate",value:function(e){return isNaN(e)?new Date(e.replace(/(\d)(T)(\d)/i,"$1 $3")):new Date(+e)}},{key:"convertToType",value:function(e,o){if(e==null)return e;switch(o){case"Boolean":return!!e;case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return t.parseDate(String(e));case"Blob":return e;default:if(o===Object)return e;if(typeof o.constructFromObject=="function")return o.constructFromObject(e);if(Array.isArray(o)){var f=o[0];return e.map(function(m){return t.convertToType(m,f)})}else if(p(o)==="object"){var a,c;for(var g in o)if(o.hasOwnProperty(g)){a=g,c=o[g];break}var h={};for(var g in e)if(e.hasOwnProperty(g)){var s=t.convertToType(g,a),d=t.convertToType(e[g],c);h[s]=d}return h}else return e}}},{key:"constructFromObject",value:function(e,o,f){if(Array.isArray(e))for(var a=0;a<e.length;a++)e.hasOwnProperty(a)&&(o[a]=t.convertToType(e[a],f));else for(var c in e)e.hasOwnProperty(c)&&(o[c]=t.convertToType(e[c],f))}}]),t}();O.CollectionFormatEnum={CSV:",",SSV:" ",TSV:" ",PIPES:"|",MULTI:"multi"},O.instance=new O;var n=O;i.default=n})(N);var re={},ne={},Ae;function ke(){return Ae||(Ae=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(ie());function l(o){return o&&o.__esModule?o:{default:o}}function p(o){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},p(o)}function v(o,f){var a=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=b(o))||f&&o&&typeof o.length=="number"){a&&(o=a);var c=0,g=function(){};return{s:g,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(_){throw _},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h=!0,s=!1,d;return{s:function(){a=a.call(o)},n:function(){var _=a.next();return h=_.done,_},e:function(_){s=!0,d=_},f:function(){try{!h&&a.return!=null&&a.return()}finally{if(s)throw d}}}}function b(o,f){if(o){if(typeof o=="string")return w(o,f);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return w(o,f)}}function w(o,f){(f==null||f>o.length)&&(f=o.length);for(var a=0,c=new Array(f);a<f;a++)c[a]=o[a];return c}function T(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")}function S(o,f){for(var a=0;a<f.length;a++){var c=f[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,n(c.key),c)}}function O(o,f,a){return f&&S(o.prototype,f),a&&S(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function n(o){var f=t(o,"string");return p(f)==="symbol"?f:String(f)}function t(o,f){if(p(o)!=="object"||o===null)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var c=a.call(o,f||"default");if(p(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(o)}var r=function(){function o(){T(this,o),o.initialize(this)}return O(o,null,[{key:"initialize",value:function(a){}},{key:"constructFromObject",value:function(a,c){return a&&(c=c||new o,a.hasOwnProperty("identifier")&&(c.identifier=u.default.convertToType(a.identifier,"String")),a.hasOwnProperty("content")&&(c.content=u.default.convertToType(a.content,[y.default]))),c}},{key:"validateJSON",value:function(a){if(a.identifier&&!(typeof a.identifier=="string"||a.identifier instanceof String))throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got "+a.identifier);if(a.content){if(!Array.isArray(a.content))throw new Error("Expected the field `content` to be an array in the JSON data but got "+a.content);var c=v(a.content),g;try{for(c.s();!(g=c.n()).done;){var h=g.value;y.default.validateJsonObject(h)}}catch(s){c.e(s)}finally{c.f()}}return!0}}]),o}();r.prototype.identifier=void 0,r.prototype.content=void 0;var e=r;i.default=e}(ne)),ne}var Ce;function ie(){return Ce||(Ce=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(ke());function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){v(this,t),t.initialize(this)}return w(t,null,[{key:"initialize",value:function(e){}},{key:"constructFromObject",value:function(e,o){return e&&(o=o||new t,e.hasOwnProperty("items")&&(o.items=u.default.convertToType(e.items,[Object])),e.hasOwnProperty("content")&&(o.content=u.default.convertToType(e.content,Object)),e.hasOwnProperty("config")&&(o.config=u.default.convertToType(e.config,Object)),e.hasOwnProperty("identifier")&&(o.identifier=u.default.convertToType(e.identifier,"String")),e.hasOwnProperty("uid")&&(o.uid=u.default.convertToType(e.uid,"String")),e.hasOwnProperty("component")&&(o.component=u.default.convertToType(e.component,"String")),e.hasOwnProperty("slots")&&(o.slots=u.default.convertToType(e.slots,{String:y.default}))),o}},{key:"validateJSON",value:function(e){if(!Array.isArray(e.items))throw new Error("Expected the field `items` to be an array in the JSON data but got "+e.items);if(e.identifier&&!(typeof e.identifier=="string"||e.identifier instanceof String))throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got "+e.identifier);if(e.uid&&!(typeof e.uid=="string"||e.uid instanceof String))throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got "+e.uid);if(e.component&&!(typeof e.component=="string"||e.component instanceof String))throw new Error("Expected the field `component` to be a primitive type in the JSON string but got "+e.component);return!0}}]),t}();O.prototype.items=void 0,O.prototype.content=void 0,O.prototype.config=void 0,O.prototype.identifier=void 0,O.prototype.uid=void 0,O.prototype.component=void 0,O.prototype.slots=void 0;var n=O;i.default=n}(re)),re}var oe={},ue={},fe={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(e){return e&&e.__esModule?e:{default:e}}function l(e){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},l(e)}function p(e,o){var f=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!f){if(Array.isArray(e)||(f=v(e))||o&&e&&typeof e.length=="number"){f&&(e=f);var a=0,c=function(){};return{s:c,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(m){throw m},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,h=!1,s;return{s:function(){f=f.call(e)},n:function(){var m=f.next();return g=m.done,m},e:function(m){h=!0,s=m},f:function(){try{!g&&f.return!=null&&f.return()}finally{if(h)throw s}}}}function v(e,o){if(e){if(typeof e=="string")return b(e,o);var f=Object.prototype.toString.call(e).slice(8,-1);if(f==="Object"&&e.constructor&&(f=e.constructor.name),f==="Map"||f==="Set")return Array.from(e);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return b(e,o)}}function b(e,o){(o==null||o>e.length)&&(o=e.length);for(var f=0,a=new Array(o);f<o;f++)a[f]=e[f];return a}function w(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function T(e,o){for(var f=0;f<o.length;f++){var a=o[f];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,O(a.key),a)}}function S(e,o,f){return o&&T(e.prototype,o),f&&T(e,f),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e){var o=n(e,"string");return l(o)==="symbol"?o:String(o)}function n(e,o){if(l(e)!=="object"||e===null)return e;var f=e[Symbol.toPrimitive];if(f!==void 0){var a=f.call(e,o||"default");if(l(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}var t=function(){function e(){w(this,e),e.initialize(this)}return S(e,null,[{key:"initialize",value:function(f){}},{key:"constructFromObject",value:function(f,a){return f&&(a=a||new e,f.hasOwnProperty("type")&&(a.type=u.default.convertToType(f.type,"String")),f.hasOwnProperty("target")&&(a.target=u.default.convertToType(f.target,"String")),f.hasOwnProperty("label")&&(a.label=u.default.convertToType(f.label,"String")),f.hasOwnProperty("href")&&(a.href=u.default.convertToType(f.href,"String")),f.hasOwnProperty("slug")&&(a.slug=u.default.convertToType(f.slug,"String")),f.hasOwnProperty("properties")&&(a.properties=u.default.convertToType(f.properties,{String:Object})),f.hasOwnProperty("children")&&(a.children=u.default.convertToType(f.children,[e]))),a}},{key:"validateJSON",value:function(f){if(f.type&&!(typeof f.type=="string"||f.type instanceof String))throw new Error("Expected the field `type` to be a primitive type in the JSON string but got "+f.type);if(f.target&&!(typeof f.target=="string"||f.target instanceof String))throw new Error("Expected the field `target` to be a primitive type in the JSON string but got "+f.target);if(f.label&&!(typeof f.label=="string"||f.label instanceof String))throw new Error("Expected the field `label` to be a primitive type in the JSON string but got "+f.label);if(f.href&&!(typeof f.href=="string"||f.href instanceof String))throw new Error("Expected the field `href` to be a primitive type in the JSON string but got "+f.href);if(f.slug&&!(typeof f.slug=="string"||f.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+f.slug);if(f.children){if(!Array.isArray(f.children))throw new Error("Expected the field `children` to be an array in the JSON data but got "+f.children);var a=p(f.children),c;try{for(a.s();!(c=a.n()).done;){var g=c.value;e.validateJsonObject(g)}}catch(h){a.e(h)}finally{a.f()}}return!0}}]),e}();t.prototype.type=void 0,t.prototype.target=void 0,t.prototype.label=void 0,t.prototype.href=void 0,t.prototype.slug=void 0,t.prototype.properties=void 0,t.prototype.children=void 0;var r=t;i.default=r})(fe),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(fe);function l(o){return o&&o.__esModule?o:{default:o}}function p(o){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},p(o)}function v(o,f){var a=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=b(o))||f&&o&&typeof o.length=="number"){a&&(o=a);var c=0,g=function(){};return{s:g,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(_){throw _},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h=!0,s=!1,d;return{s:function(){a=a.call(o)},n:function(){var _=a.next();return h=_.done,_},e:function(_){s=!0,d=_},f:function(){try{!h&&a.return!=null&&a.return()}finally{if(s)throw d}}}}function b(o,f){if(o){if(typeof o=="string")return w(o,f);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return w(o,f)}}function w(o,f){(f==null||f>o.length)&&(f=o.length);for(var a=0,c=new Array(f);a<f;a++)c[a]=o[a];return c}function T(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")}function S(o,f){for(var a=0;a<f.length;a++){var c=f[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,n(c.key),c)}}function O(o,f,a){return f&&S(o.prototype,f),a&&S(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function n(o){var f=t(o,"string");return p(f)==="symbol"?f:String(f)}function t(o,f){if(p(o)!=="object"||o===null)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var c=a.call(o,f||"default");if(p(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(o)}var r=function(){function o(){T(this,o),o.initialize(this)}return O(o,null,[{key:"initialize",value:function(a){}},{key:"constructFromObject",value:function(a,c){return a&&(c=c||new o,a.hasOwnProperty("items")&&(c.items=u.default.convertToType(a.items,[y.default])),a.hasOwnProperty("uid")&&(c.uid=u.default.convertToType(a.uid,"String")),a.hasOwnProperty("identifier")&&(c.identifier=u.default.convertToType(a.identifier,"String")),a.hasOwnProperty("label")&&(c.label=u.default.convertToType(a.label,"String"))),c}},{key:"validateJSON",value:function(a){if(a.items){if(!Array.isArray(a.items))throw new Error("Expected the field `items` to be an array in the JSON data but got "+a.items);var c=v(a.items),g;try{for(c.s();!(g=c.n()).done;){var h=g.value;y.default.validateJsonObject(h)}}catch(s){c.e(s)}finally{c.f()}}if(a.uid&&!(typeof a.uid=="string"||a.uid instanceof String))throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got "+a.uid);if(a.identifier&&!(typeof a.identifier=="string"||a.identifier instanceof String))throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got "+a.identifier);if(a.label&&!(typeof a.label=="string"||a.label instanceof String))throw new Error("Expected the field `label` to be a primitive type in the JSON string but got "+a.label);return!0}}]),o}();r.prototype.items=void 0,r.prototype.uid=void 0,r.prototype.identifier=void 0,r.prototype.label=void 0;var e=r;i.default=e}(ue);var le={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("domain")&&(e.domain=u.default.convertToType(r.domain,"String")),r.hasOwnProperty("slug")&&(e.slug=u.default.convertToType(r.slug,"String")),r.hasOwnProperty("version")&&(e.version=u.default.convertToType(r.version,"Number")),r.hasOwnProperty("updated_at")&&(e.updated_at=u.default.convertToType(r.updated_at,"Number")),r.hasOwnProperty("language")&&(e.language=u.default.convertToType(r.language,"String"))),e}},{key:"validateJSON",value:function(r){if(r.domain&&!(typeof r.domain=="string"||r.domain instanceof String))throw new Error("Expected the field `domain` to be a primitive type in the JSON string but got "+r.domain);if(r.slug&&!(typeof r.slug=="string"||r.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+r.slug);if(r.language&&!(typeof r.language=="string"||r.language instanceof String))throw new Error("Expected the field `language` to be a primitive type in the JSON string but got "+r.language);return!0}}]),n}();S.prototype.domain=void 0,S.prototype.slug=void 0,S.prototype.version=void 0,S.prototype.updated_at=void 0,S.prototype.language=void 0;var O=S;i.default=O})(le),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=p(N),y=p(ue),l=p(le);function p(r){return r&&r.__esModule?r:{default:r}}function v(r){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(r)}function b(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function w(r,e){for(var o=0;o<e.length;o++){var f=e[o];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,S(f.key),f)}}function T(r,e,o){return e&&w(r.prototype,e),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}function S(r){var e=O(r,"string");return v(e)==="symbol"?e:String(e)}function O(r,e){if(v(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var f=o.call(r,e||"default");if(v(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var n=function(){function r(){b(this,r),r.initialize(this)}return T(r,null,[{key:"initialize",value:function(o){}},{key:"constructFromObject",value:function(o,f){return o&&(f=f||new r,o.hasOwnProperty("nitro")&&(f.nitro=l.default.constructFromObject(o.nitro)),o.hasOwnProperty("pages")&&(f.pages=u.default.convertToType(o.pages,["String"])),o.hasOwnProperty("containers")&&(f.containers=u.default.convertToType(o.containers,{String:y.default})),o.hasOwnProperty("globals")&&(f.globals=u.default.convertToType(o.globals,Object))),f}},{key:"validateJSON",value:function(o){if(o.nitro&&l.default.validateJSON(o.nitro),!Array.isArray(o.pages))throw new Error("Expected the field `pages` to be an array in the JSON data but got "+o.pages);return!0}}]),r}();n.prototype.nitro=void 0,n.prototype.pages=void 0,n.prototype.containers=void 0,n.prototype.globals=void 0;var t=n;i.default=t}(oe);var ae={},se={},ce={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("api")&&(e.api=u.default.convertToType(r.api,"String")),r.hasOwnProperty("image")&&(e.image=u.default.convertToType(r.image,"String"))),e}},{key:"validateJSON",value:function(r){if(r.api&&!(typeof r.api=="string"||r.api instanceof String))throw new Error("Expected the field `api` to be a primitive type in the JSON string but got "+r.api);if(r.image&&!(typeof r.image=="string"||r.image instanceof String))throw new Error("Expected the field `image` to be a primitive type in the JSON string but got "+r.image);return!0}}]),n}();S.prototype.api=void 0,S.prototype.image=void 0;var O=S;i.default=O})(ce),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(ce);function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){v(this,t),t.initialize(this)}return w(t,null,[{key:"initialize",value:function(e){}},{key:"constructFromObject",value:function(e,o){return e&&(o=o||new t,e.hasOwnProperty("_version")&&(o._version=u.default.convertToType(e._version,"Number")),e.hasOwnProperty("entity_metric")&&(o.entity_metric=y.default.constructFromObject(e.entity_metric)),e.hasOwnProperty("entity_unique_id")&&(o.entity_unique_id=u.default.convertToType(e.entity_unique_id,"String")),e.hasOwnProperty("entity_id")&&(o.entity_id=u.default.convertToType(e.entity_id,"String")),e.hasOwnProperty("entity_image")&&(o.entity_image=u.default.convertToType(e.entity_image,"String")),e.hasOwnProperty("entity_slug")&&(o.entity_slug=u.default.convertToType(e.entity_slug,"String")),e.hasOwnProperty("entity_teaser")&&(o.entity_teaser=u.default.convertToType(e.entity_teaser,"String")),e.hasOwnProperty("entity_time_end")&&(o.entity_time_end=u.default.convertToType(e.entity_time_end,"String")),e.hasOwnProperty("entity_time_start")&&(o.entity_time_start=u.default.convertToType(e.entity_time_start,"String")),e.hasOwnProperty("entity_title")&&(o.entity_title=u.default.convertToType(e.entity_title,"String")),e.hasOwnProperty("entity_type")&&(o.entity_type=u.default.convertToType(e.entity_type,"String")),e.hasOwnProperty("entity_type_id")&&(o.entity_type_id=u.default.convertToType(e.entity_type_id,"Number")),e.hasOwnProperty("updated_at")&&(o.updated_at=u.default.convertToType(e.updated_at,"String")),e.hasOwnProperty("routes")&&(o.routes=u.default.convertToType(e.routes,{String:"String"}))),o}},{key:"validateJSON",value:function(e){if(e.entity_metric&&y.default.validateJSON(e.entity_metric),e.entity_unique_id&&!(typeof e.entity_unique_id=="string"||e.entity_unique_id instanceof String))throw new Error("Expected the field `entity_unique_id` to be a primitive type in the JSON string but got "+e.entity_unique_id);if(e.entity_id&&!(typeof e.entity_id=="string"||e.entity_id instanceof String))throw new Error("Expected the field `entity_id` to be a primitive type in the JSON string but got "+e.entity_id);if(e.entity_image&&!(typeof e.entity_image=="string"||e.entity_image instanceof String))throw new Error("Expected the field `entity_image` to be a primitive type in the JSON string but got "+e.entity_image);if(e.entity_slug&&!(typeof e.entity_slug=="string"||e.entity_slug instanceof String))throw new Error("Expected the field `entity_slug` to be a primitive type in the JSON string but got "+e.entity_slug);if(e.entity_teaser&&!(typeof e.entity_teaser=="string"||e.entity_teaser instanceof String))throw new Error("Expected the field `entity_teaser` to be a primitive type in the JSON string but got "+e.entity_teaser);if(e.entity_time_end&&!(typeof e.entity_time_end=="string"||e.entity_time_end instanceof String))throw new Error("Expected the field `entity_time_end` to be a primitive type in the JSON string but got "+e.entity_time_end);if(e.entity_time_start&&!(typeof e.entity_time_start=="string"||e.entity_time_start instanceof String))throw new Error("Expected the field `entity_time_start` to be a primitive type in the JSON string but got "+e.entity_time_start);if(e.entity_title&&!(typeof e.entity_title=="string"||e.entity_title instanceof String))throw new Error("Expected the field `entity_title` to be a primitive type in the JSON string but got "+e.entity_title);if(e.entity_type&&!(typeof e.entity_type=="string"||e.entity_type instanceof String))throw new Error("Expected the field `entity_type` to be a primitive type in the JSON string but got "+e.entity_type);if(e.updated_at&&!(typeof e.updated_at=="string"||e.updated_at instanceof String))throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got "+e.updated_at);return!0}}]),t}();O.prototype._version=void 0,O.prototype.entity_metric=void 0,O.prototype.entity_unique_id=void 0,O.prototype.entity_id=void 0,O.prototype.entity_image=void 0,O.prototype.entity_slug=void 0,O.prototype.entity_teaser=void 0,O.prototype.entity_time_end=void 0,O.prototype.entity_time_start=void 0,O.prototype.entity_title=void 0,O.prototype.entity_type=void 0,O.prototype.entity_type_id=void 0,O.prototype.updated_at=void 0,O.prototype.routes=void 0;var n=O;i.default=n}(se),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(se);function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){v(this,t),t.initialize(this)}return w(t,null,[{key:"initialize",value:function(e){}},{key:"constructFromObject",value:function(e,o){return e&&(o=o||new t,e.hasOwnProperty("entity")&&(o.entity=y.default.constructFromObject(e.entity)),e.hasOwnProperty("model")&&(o.model=u.default.convertToType(e.model,Object)),e.hasOwnProperty("language")&&(o.language=u.default.convertToType(e.language,"String"))),o}},{key:"validateJSON",value:function(e){if(e.entity&&y.default.validateJSON(e.entity),e.language&&!(typeof e.language=="string"||e.language instanceof String))throw new Error("Expected the field `language` to be a primitive type in the JSON string but got "+e.language);return!0}}]),t}();O.prototype.entity=void 0,O.prototype.model=void 0,O.prototype.language=void 0;var n=O;i.default=n}(ae);var V={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("entity_unique_id")&&(e.entity_unique_id=u.default.convertToType(r.entity_unique_id,"String")),r.hasOwnProperty("entity_title")&&(e.entity_title=u.default.convertToType(r.entity_title,"String")),r.hasOwnProperty("entity_teaser")&&(e.entity_teaser=u.default.convertToType(r.entity_teaser,"String")),r.hasOwnProperty("entity_slug")&&(e.entity_slug=u.default.convertToType(r.entity_slug,"String")),r.hasOwnProperty("entity_type")&&(e.entity_type=u.default.convertToType(r.entity_type,"String")),r.hasOwnProperty("entity_type_id")&&(e.entity_type_id=u.default.convertToType(r.entity_type_id,"Number")),r.hasOwnProperty("entity_time_start")&&(e.entity_time_start=u.default.convertToType(r.entity_time_start,"String")),r.hasOwnProperty("entity_image")&&(e.entity_image=u.default.convertToType(r.entity_image,"String")),r.hasOwnProperty("routes")&&(e.routes=u.default.convertToType(r.routes,{String:"String"}))),e}},{key:"validateJSON",value:function(r){if(r.entity_unique_id&&!(typeof r.entity_unique_id=="string"||r.entity_unique_id instanceof String))throw new Error("Expected the field `entity_unique_id` to be a primitive type in the JSON string but got "+r.entity_unique_id);if(r.entity_title&&!(typeof r.entity_title=="string"||r.entity_title instanceof String))throw new Error("Expected the field `entity_title` to be a primitive type in the JSON string but got "+r.entity_title);if(r.entity_teaser&&!(typeof r.entity_teaser=="string"||r.entity_teaser instanceof String))throw new Error("Expected the field `entity_teaser` to be a primitive type in the JSON string but got "+r.entity_teaser);if(r.entity_slug&&!(typeof r.entity_slug=="string"||r.entity_slug instanceof String))throw new Error("Expected the field `entity_slug` to be a primitive type in the JSON string but got "+r.entity_slug);if(r.entity_type&&!(typeof r.entity_type=="string"||r.entity_type instanceof String))throw new Error("Expected the field `entity_type` to be a primitive type in the JSON string but got "+r.entity_type);if(r.entity_time_start&&!(typeof r.entity_time_start=="string"||r.entity_time_start instanceof String))throw new Error("Expected the field `entity_time_start` to be a primitive type in the JSON string but got "+r.entity_time_start);if(r.entity_image&&!(typeof r.entity_image=="string"||r.entity_image instanceof String))throw new Error("Expected the field `entity_image` to be a primitive type in the JSON string but got "+r.entity_image);return!0}}]),n}();S.prototype.entity_unique_id=void 0,S.prototype.entity_title=void 0,S.prototype.entity_teaser=void 0,S.prototype.entity_slug=void 0,S.prototype.entity_type=void 0,S.prototype.entity_type_id=void 0,S.prototype.entity_time_start=void 0,S.prototype.entity_image=void 0,S.prototype.routes=void 0;var O=S;i.default=O})(V);var ye={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("description")&&(e.description=u.default.convertToType(r.description,"String")),r.hasOwnProperty("image")&&(e.image=u.default.convertToType(r.image,"String")),r.hasOwnProperty("title")&&(e.title=u.default.convertToType(r.title,"String"))),e}},{key:"validateJSON",value:function(r){if(r.description&&!(typeof r.description=="string"||r.description instanceof String))throw new Error("Expected the field `description` to be a primitive type in the JSON string but got "+r.description);if(r.image&&!(typeof r.image=="string"||r.image instanceof String))throw new Error("Expected the field `image` to be a primitive type in the JSON string but got "+r.image);if(r.title&&!(typeof r.title=="string"||r.title instanceof String))throw new Error("Expected the field `title` to be a primitive type in the JSON string but got "+r.title);return!0}}]),n}();S.prototype.description=void 0,S.prototype.image=void 0,S.prototype.title=void 0;var O=S;i.default=O})(ye);var pe={},he={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("slug")&&(e.slug=u.default.convertToType(r.slug,"String")),r.hasOwnProperty("title")&&(e.title=u.default.convertToType(r.title,"String"))),e}},{key:"validateJSON",value:function(r){if(r.slug&&!(typeof r.slug=="string"||r.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+r.slug);if(r.title&&!(typeof r.title=="string"||r.title instanceof String))throw new Error("Expected the field `title` to be a primitive type in the JSON string but got "+r.title);return!0}}]),n}();S.prototype.slug=void 0,S.prototype.title=void 0;var O=S;i.default=O})(he);var me={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("value")&&(e.value=u.default.convertToType(r.value,Object)),r.hasOwnProperty("navigation")&&(e.navigation=u.default.convertToType(r.navigation,"Boolean")),r.hasOwnProperty("propagate")&&(e.propagate=u.default.convertToType(r.propagate,"Boolean"))),e}},{key:"validateJSON",value:function(r){return!0}}]),n}();S.prototype.value=void 0,S.prototype.navigation=void 0,S.prototype.propagate=void 0;var O=S;i.default=O})(me),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=b(N),y=b(ie()),l=b(ye),p=b(he),v=b(me);function b(c){return c&&c.__esModule?c:{default:c}}function w(c){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},w(c)}function T(c,g){var h=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!h){if(Array.isArray(c)||(h=S(c))||g&&c&&typeof c.length=="number"){h&&(c=h);var s=0,d=function(){};return{s:d,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(C){throw C},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
7
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,_=!1,P;return{s:function(){h=h.call(c)},n:function(){var C=h.next();return m=C.done,C},e:function(C){_=!0,P=C},f:function(){try{!m&&h.return!=null&&h.return()}finally{if(_)throw P}}}}function S(c,g){if(c){if(typeof c=="string")return O(c,g);var h=Object.prototype.toString.call(c).slice(8,-1);if(h==="Object"&&c.constructor&&(h=c.constructor.name),h==="Map"||h==="Set")return Array.from(c);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return O(c,g)}}function O(c,g){(g==null||g>c.length)&&(g=c.length);for(var h=0,s=new Array(g);h<g;h++)s[h]=c[h];return s}function n(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function t(c,g){for(var h=0;h<g.length;h++){var s=g[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,e(s.key),s)}}function r(c,g,h){return g&&t(c.prototype,g),h&&t(c,h),Object.defineProperty(c,"prototype",{writable:!1}),c}function e(c){var g=o(c,"string");return w(g)==="symbol"?g:String(g)}function o(c,g){if(w(c)!=="object"||c===null)return c;var h=c[Symbol.toPrimitive];if(h!==void 0){var s=h.call(c,g||"default");if(w(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(c)}var f=function(){function c(){n(this,c),c.initialize(this)}return r(c,null,[{key:"initialize",value:function(h){}},{key:"constructFromObject",value:function(h,s){return h&&(s=s||new c,h.hasOwnProperty("id")&&(s.id=u.default.convertToType(h.id,"Number")),h.hasOwnProperty("title")&&(s.title=u.default.convertToType(h.title,"String")),h.hasOwnProperty("href")&&(s.href=u.default.convertToType(h.href,"String")),h.hasOwnProperty("slug")&&(s.slug=u.default.convertToType(h.slug,"String")),h.hasOwnProperty("json")&&(s.json=u.default.convertToType(h.json,[y.default])),h.hasOwnProperty("depth")&&(s.depth=u.default.convertToType(h.depth,"Number")),h.hasOwnProperty("is_home")&&(s.is_home=u.default.convertToType(h.is_home,"Number")),h.hasOwnProperty("created_at")&&(s.created_at=u.default.convertToType(h.created_at,"Number")),h.hasOwnProperty("updated_at")&&(s.updated_at=u.default.convertToType(h.updated_at,"Number")),h.hasOwnProperty("is_visible")&&(s.is_visible=u.default.convertToType(h.is_visible,"Number")),h.hasOwnProperty("meta_json")&&(s.meta_json=l.default.constructFromObject(h.meta_json)),h.hasOwnProperty("properties")&&(s.properties=u.default.convertToType(h.properties,{String:v.default})),h.hasOwnProperty("uid")&&(s.uid=u.default.convertToType(h.uid,"String")),h.hasOwnProperty("type")&&(s.type=u.default.convertToType(h.type,"String")),h.hasOwnProperty("target")&&(s.target=u.default.convertToType(h.target,"String")),h.hasOwnProperty("container")&&(s.container=u.default.convertToType(h.container,"String")),h.hasOwnProperty("breadcrumb")&&(s.breadcrumb=u.default.convertToType(h.breadcrumb,[p.default]))),s}},{key:"validateJSON",value:function(h){if(h.title&&!(typeof h.title=="string"||h.title instanceof String))throw new Error("Expected the field `title` to be a primitive type in the JSON string but got "+h.title);if(h.href&&!(typeof h.href=="string"||h.href instanceof String))throw new Error("Expected the field `href` to be a primitive type in the JSON string but got "+h.href);if(h.slug&&!(typeof h.slug=="string"||h.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+h.slug);if(h.json){if(!Array.isArray(h.json))throw new Error("Expected the field `json` to be an array in the JSON data but got "+h.json);var s=T(h.json),d;try{for(s.s();!(d=s.n()).done;){var m=d.value;y.default.validateJsonObject(m)}}catch(C){s.e(C)}finally{s.f()}}if(h.meta_json&&l.default.validateJSON(h.meta_json),h.uid&&!(typeof h.uid=="string"||h.uid instanceof String))throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got "+h.uid);if(h.type&&!(typeof h.type=="string"||h.type instanceof String))throw new Error("Expected the field `type` to be a primitive type in the JSON string but got "+h.type);if(h.target&&!(typeof h.target=="string"||h.target instanceof String))throw new Error("Expected the field `target` to be a primitive type in the JSON string but got "+h.target);if(h.container&&!(typeof h.container=="string"||h.container instanceof String))throw new Error("Expected the field `container` to be a primitive type in the JSON string but got "+h.container);if(h.breadcrumb){if(!Array.isArray(h.breadcrumb))throw new Error("Expected the field `breadcrumb` to be an array in the JSON data but got "+h.breadcrumb);var _=T(h.breadcrumb),P;try{for(_.s();!(P=_.n()).done;){var A=P.value;p.default.validateJsonObject(A)}}catch(C){_.e(C)}finally{_.f()}}return!0}}]),c}();f.prototype.id=void 0,f.prototype.title=void 0,f.prototype.href=void 0,f.prototype.slug=void 0,f.prototype.json=void 0,f.prototype.depth=void 0,f.prototype.is_home=void 0,f.prototype.created_at=void 0,f.prototype.updated_at=void 0,f.prototype.is_visible=void 0,f.prototype.meta_json=void 0,f.prototype.properties=void 0,f.prototype.uid=void 0,f.prototype.type=void 0,f.prototype.target=void 0,f.prototype.container=void 0,f.prototype.breadcrumb=void 0;var a=f;i.default=a}(pe);var de={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(N);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("version")&&(e.version=u.default.convertToType(r.version,"Number")),r.hasOwnProperty("updated_at")&&(e.updated_at=u.default.convertToType(r.updated_at,"Number"))),e}},{key:"validateJSON",value:function(r){return!0}}]),n}();S.prototype.version=void 0,S.prototype.updated_at=void 0;var O=S;i.default=O})(de);var Ne={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(oe);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"configWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=y.default;return this.apiClient.callApi("/config","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"config",value:function(){return this.configWithHttpInfo().then(function(r){return r.data})}}]),n}();i.default=O})(Ne);var Re={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(ae);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"entityBySlugWithHttpInfo",value:function(r,e){e=e||{};var o=null;if(r==null)throw new Error("Missing the required parameter 'slug' when calling entityBySlug");var f={slug:r},a={typeId:e.typeId},c={},g={},h=["ApiToken"],s=[],d=["application/json"],m=y.default;return this.apiClient.callApi("/entities/slug/{slug}","GET",f,a,c,g,o,h,s,d,m,null)}},{key:"entityBySlug",value:function(r,e){return this.entityBySlugWithHttpInfo(r,e).then(function(o){return o.data})}},{key:"entityByUniqueidWithHttpInfo",value:function(r){var e=null;if(r==null)throw new Error("Missing the required parameter 'uniqueid' when calling entityByUniqueid");var o={uniqueid:r},f={},a={},c={},g=["ApiToken"],h=[],s=["application/json"],d=y.default;return this.apiClient.callApi("/entities/uniqueid/{uniqueid}","GET",o,f,a,c,e,g,h,s,d,null)}},{key:"entityByUniqueid",value:function(r){return this.entityByUniqueidWithHttpInfo(r).then(function(e){return e.data})}}]),n}();i.default=O})(Re);var Ie={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(pe);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"homeWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=y.default;return this.apiClient.callApi("/pages/home","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"home",value:function(){return this.homeWithHttpInfo().then(function(r){return r.data})}},{key:"pageWithHttpInfo",value:function(r){r=r||{};var e=null,o={},f={slug:r.slug},a={},c={},g=["ApiToken"],h=[],s=["application/json"],d=y.default;return this.apiClient.callApi("/pages","GET",o,f,a,c,e,g,h,s,d,null)}},{key:"page",value:function(r){return this.pageWithHttpInfo(r).then(function(e){return e.data})}}]),n}();i.default=O})(Ie);var qe={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(V);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"searchWithHttpInfo",value:function(r){var e=null;if(r==null)throw new Error("Missing the required parameter 'query' when calling search");var o={},f={query:r},a={},c={},g=["ApiToken"],h=[],s=["application/json"],d=[y.default];return this.apiClient.callApi("/search","GET",o,f,a,c,e,g,h,s,d,null)}},{key:"search",value:function(r){return this.searchWithHttpInfo(r).then(function(e){return e.data})}}]),n}();i.default=O})(qe);var Je={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(V);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"sitemapWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=[y.default];return this.apiClient.callApi("/sitemap","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"sitemap",value:function(){return this.sitemapWithHttpInfo().then(function(r){return r.data})}}]),n}();i.default=O})(Je);var Me={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(N),y=l(de);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"versionWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=y.default;return this.apiClient.callApi("/version","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"version",value:function(){return this.versionWithHttpInfo().then(function(r){return r.data})}}]),n}();i.default=O})(Me),function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ApiClient",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"Block",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(i,"BlockSlots",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"ConfigApi",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"ConfigResponse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(i,"ConfigResponseContainersValue",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(i,"ConfigResponseNitro",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(i,"EntitiesApi",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(i,"Entity",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(i,"EntityInterface",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(i,"EntityMetric",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(i,"EntityinterfaceInner",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(i,"Meta",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(i,"Page",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(i,"PageBreadcrumbInner",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(i,"PageProperty",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(i,"PagesApi",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(i,"PagesInner",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"SearchApi",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(i,"SitemapApi",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"VersionApi",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(i,"VersionResponse",{enumerable:!0,get:function(){return f.default}});var u=m(N),y=m(ie()),l=m(ke()),p=m(oe),v=m(ue),b=m(le),w=m(ae),T=m(se),S=m(ce),O=m(V),n=m(ye),t=m(pe),r=m(he),e=m(me),o=m(fe),f=m(de),a=m(Ne),c=m(Re),g=m(Ie),h=m(qe),s=m(Je),d=m(Me);function m(_){return _&&_.__esModule?_:{default:_}}}(Ue);const ft=/[\p{Lu}]/u,lt=/[\p{Ll}]/u,xe=/^[\p{Lu}](?![\p{Lu}])/gu,Be=/([\p{Alpha}\p{N}_]|$)/u,ve=/[_.\- ]+/,at=new RegExp("^"+ve.source),De=new RegExp(ve.source+Be.source,"gu"),ze=new RegExp("\\d+"+Be.source,"gu"),st=(i,u,y,l)=>{let p=!1,v=!1,b=!1,w=!1;for(let T=0;T<i.length;T++){const S=i[T];w=T>2?i[T-3]==="-":!0,p&&ft.test(S)?(i=i.slice(0,T)+"-"+i.slice(T),p=!1,b=v,v=!0,T++):v&&b&&lt.test(S)&&(!w||l)?(i=i.slice(0,T-1)+"-"+i.slice(T-1),b=v,v=!1,p=!0):(p=u(S)===S&&y(S)!==S,b=v,v=y(S)===S&&u(S)!==S)}return i},ct=(i,u)=>(xe.lastIndex=0,i.replace(xe,y=>u(y))),yt=(i,u)=>(De.lastIndex=0,ze.lastIndex=0,i.replace(De,(y,l)=>u(l)).replace(ze,y=>u(y)));function pt(i,u){if(!(typeof i=="string"||Array.isArray(i)))throw new TypeError("Expected the input to be `string | string[]`");if(u={pascalCase:!1,preserveConsecutiveUppercase:!1,...u},Array.isArray(i)?i=i.map(v=>v.trim()).filter(v=>v.length).join("-"):i=i.trim(),i.length===0)return"";const y=u.locale===!1?v=>v.toLowerCase():v=>v.toLocaleLowerCase(u.locale),l=u.locale===!1?v=>v.toUpperCase():v=>v.toLocaleUpperCase(u.locale);return i.length===1?ve.test(i)?"":u.pascalCase?l(i):y(i):(i!==y(i)&&(i=st(i,y,l,u.preserveConsecutiveUppercase)),i=i.replace(at,""),i=u.preserveConsecutiveUppercase?ct(i,y):y(i),u.pascalCase&&(i=l(i.charAt(0))+i.slice(1)),yt(i,l))}function ht(i,u,y){const l="virtual:flyo-components",p="\0"+l;return{name:"vite-plugin-flyo-components",async resolveId(v){if(v===l)return p},async load(v){if(v===p){const b=[];for(const[T,S]of Object.entries(u)){const O=await this.resolve("/"+i+"/"+S+".astro");O&&b.push(`export { default as ${pt(T)} } from "${O.id}"`)}let w=null;return y&&(w=await this.resolve("/"+i+"/"+y+".astro")),w?b.push(`export { default as fallback } from "${w.id}"`):b.push('export { default as fallback } from "@flyo/nitro-astro/FallbackComponent.astro"'),b.join(";")}}}}function mt(){return globalThis.flyoNitroInstance||console.error("flyoNitroInstance has not been initialized correctly"),globalThis.flyoNitroInstance}function dt(i){const u={accessToken:!1,liveEdit:!1,fallbackComponent:null,...i};return{name:"@flyo/nitro-astro",hooks:{"astro:config:setup":({injectScript:y,updateConfig:l})=>{l({vite:{plugins:[ht(i.componentsDir,i.components,i.fallbackComponent)]}}),y("page-ssr",`
1
+ (function(J,H){typeof exports=="object"&&typeof module<"u"?H(exports):typeof define=="function"&&define.amd?define(["exports"],H):(J=typeof globalThis<"u"?globalThis:J||self,H(J.flyoNitroIntegration={}))})(this,function(J){"use strict";function H(i){if(i.__esModule)return i;var u=i.default;if(typeof u=="function"){var y=function l(){return this instanceof l?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};y.prototype=u.prototype}else y={};return Object.defineProperty(y,"__esModule",{value:!0}),Object.keys(i).forEach(function(l){var p=Object.getOwnPropertyDescriptor(i,l);Object.defineProperty(y,l,p.get?p:{enumerable:!0,get:function(){return i[l]}})}),y}var Ue={};function Ke(i){throw new Error('Could not dynamically require "'+i+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var C={},X={exports:{}},be={exports:{}};(function(i){i.exports=u;function u(l){if(l)return y(l)}function y(l){for(var p in u.prototype)l[p]=u.prototype[p];return l}u.prototype.on=u.prototype.addEventListener=function(l,p){return this._callbacks=this._callbacks||{},(this._callbacks["$"+l]=this._callbacks["$"+l]||[]).push(p),this},u.prototype.once=function(l,p){function v(){this.off(l,v),p.apply(this,arguments)}return v.fn=p,this.on(l,v),this},u.prototype.off=u.prototype.removeListener=u.prototype.removeAllListeners=u.prototype.removeEventListener=function(l,p){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var v=this._callbacks["$"+l];if(!v)return this;if(arguments.length==1)return delete this._callbacks["$"+l],this;for(var b,w=0;w<v.length;w++)if(b=v[w],b===p||b.fn===p){v.splice(w,1);break}return v.length===0&&delete this._callbacks["$"+l],this},u.prototype.emit=function(l){this._callbacks=this._callbacks||{};for(var p=new Array(arguments.length-1),v=this._callbacks["$"+l],b=1;b<arguments.length;b++)p[b-1]=arguments[b];if(v){v=v.slice(0);for(var b=0,w=v.length;b<w;++b)v[b].apply(this,p)}return this},u.prototype.listeners=function(l){return this._callbacks=this._callbacks||{},this._callbacks["$"+l]||[]},u.prototype.hasListeners=function(l){return!!this.listeners(l).length}})(be);var je=be.exports,$e=L;L.default=L,L.stable=Oe,L.stableStringify=Oe;var j="[...]",we="[Circular]",M=[],x=[];function Se(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function L(i,u,y,l){typeof l>"u"&&(l=Se()),Q(i,"",0,[],void 0,0,l);var p;try{x.length===0?p=JSON.stringify(i,u,y):p=JSON.stringify(i,Te(u),y)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;M.length!==0;){var v=M.pop();v.length===4?Object.defineProperty(v[0],v[1],v[3]):v[0][v[1]]=v[2]}}return p}function z(i,u,y,l){var p=Object.getOwnPropertyDescriptor(l,y);p.get!==void 0?p.configurable?(Object.defineProperty(l,y,{value:i}),M.push([l,y,u,p])):x.push([u,y,i]):(l[y]=i,M.push([l,y,u]))}function Q(i,u,y,l,p,v,b){v+=1;var w;if(typeof i=="object"&&i!==null){for(w=0;w<l.length;w++)if(l[w]===i){z(we,i,u,p);return}if(typeof b.depthLimit<"u"&&v>b.depthLimit){z(j,i,u,p);return}if(typeof b.edgesLimit<"u"&&y+1>b.edgesLimit){z(j,i,u,p);return}if(l.push(i),Array.isArray(i))for(w=0;w<i.length;w++)Q(i[w],w,w,l,i,v,b);else{var T=Object.keys(i);for(w=0;w<T.length;w++){var S=T[w];Q(i[S],S,w,l,i,v,b)}}l.pop()}}function We(i,u){return i<u?-1:i>u?1:0}function Oe(i,u,y,l){typeof l>"u"&&(l=Se());var p=Y(i,"",0,[],void 0,0,l)||i,v;try{x.length===0?v=JSON.stringify(p,u,y):v=JSON.stringify(p,Te(u),y)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;M.length!==0;){var b=M.pop();b.length===4?Object.defineProperty(b[0],b[1],b[3]):b[0][b[1]]=b[2]}}return v}function Y(i,u,y,l,p,v,b){v+=1;var w;if(typeof i=="object"&&i!==null){for(w=0;w<l.length;w++)if(l[w]===i){z(we,i,u,p);return}try{if(typeof i.toJSON=="function")return}catch{return}if(typeof b.depthLimit<"u"&&v>b.depthLimit){z(j,i,u,p);return}if(typeof b.edgesLimit<"u"&&y+1>b.edgesLimit){z(j,i,u,p);return}if(l.push(i),Array.isArray(i))for(w=0;w<i.length;w++)Y(i[w],w,w,l,i,v,b);else{var T={},S=Object.keys(i).sort(We);for(w=0;w<S.length;w++){var O=S[w];Y(i[O],O,w,l,i,v,b),T[O]=i[O]}if(typeof p<"u")M.push([p,u,i]),p[u]=T;else return T}l.pop()}}function Te(i){return i=typeof i<"u"?i:function(u,y){return y},function(u,y){if(x.length>0)for(var l=0;l<x.length;l++){var p=x[l];if(p[1]===u&&p[0]===y){y=p[2],x.splice(l,1);break}}return i.call(this,u,y)}}function $(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(y){return typeof y}:$=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},$(i)}function Ge(i){return i!==null&&$(i)==="object"}var Pe=Ge;function W(i){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?W=function(y){return typeof y}:W=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},W(i)}var G=Pe,Ve=E;function E(i){if(i)return Xe(i)}function Xe(i){for(var u in E.prototype)Object.prototype.hasOwnProperty.call(E.prototype,u)&&(i[u]=E.prototype[u]);return i}E.prototype.clearTimeout=function(){return clearTimeout(this._timer),clearTimeout(this._responseTimeoutTimer),clearTimeout(this._uploadTimeoutTimer),delete this._timer,delete this._responseTimeoutTimer,delete this._uploadTimeoutTimer,this},E.prototype.parse=function(i){return this._parser=i,this},E.prototype.responseType=function(i){return this._responseType=i,this},E.prototype.serialize=function(i){return this._serializer=i,this},E.prototype.timeout=function(i){if(!i||W(i)!=="object")return this._timeout=i,this._responseTimeout=0,this._uploadTimeout=0,this;for(var u in i)if(Object.prototype.hasOwnProperty.call(i,u))switch(u){case"deadline":this._timeout=i.deadline;break;case"response":this._responseTimeout=i.response;break;case"upload":this._uploadTimeout=i.upload;break;default:console.warn("Unknown timeout option",u)}return this},E.prototype.retry=function(i,u){return(arguments.length===0||i===!0)&&(i=1),i<=0&&(i=0),this._maxRetries=i,this._retries=0,this._retryCallback=u,this};var Qe=["ECONNRESET","ETIMEDOUT","EADDRINFO","ESOCKETTIMEDOUT"];E.prototype._shouldRetry=function(i,u){if(!this._maxRetries||this._retries++>=this._maxRetries)return!1;if(this._retryCallback)try{var y=this._retryCallback(i,u);if(y===!0)return!0;if(y===!1)return!1}catch(l){console.error(l)}return!!(u&&u.status&&u.status>=500&&u.status!==501||i&&(i.code&&Qe.includes(i.code)||i.timeout&&i.code==="ECONNABORTED"||i.crossDomain))},E.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this.timedoutError=null,this._end()},E.prototype.then=function(i,u){var y=this;if(!this._fullfilledPromise){var l=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(p,v){l.on("abort",function(){if(!(y._maxRetries&&y._maxRetries>y._retries)){if(y.timedout&&y.timedoutError){v(y.timedoutError);return}var b=new Error("Aborted");b.code="ABORTED",b.status=y.status,b.method=y.method,b.url=y.url,v(b)}}),l.end(function(b,w){b?v(b):p(w)})})}return this._fullfilledPromise.then(i,u)},E.prototype.catch=function(i){return this.then(void 0,i)},E.prototype.use=function(i){return i(this),this},E.prototype.ok=function(i){if(typeof i!="function")throw new Error("Callback required");return this._okCallback=i,this},E.prototype._isResponseOK=function(i){return i?this._okCallback?this._okCallback(i):i.status>=200&&i.status<300:!1},E.prototype.get=function(i){return this._header[i.toLowerCase()]},E.prototype.getHeader=E.prototype.get,E.prototype.set=function(i,u){if(G(i)){for(var y in i)Object.prototype.hasOwnProperty.call(i,y)&&this.set(y,i[y]);return this}return this._header[i.toLowerCase()]=u,this.header[i]=u,this},E.prototype.unset=function(i){return delete this._header[i.toLowerCase()],delete this.header[i],this},E.prototype.field=function(i,u){if(i==null)throw new Error(".field(name, val) name can not be empty");if(this._data)throw new Error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()");if(G(i)){for(var y in i)Object.prototype.hasOwnProperty.call(i,y)&&this.field(y,i[y]);return this}if(Array.isArray(u)){for(var l in u)Object.prototype.hasOwnProperty.call(u,l)&&this.field(i,u[l]);return this}if(u==null)throw new Error(".field(name, val) val can not be empty");return typeof u=="boolean"&&(u=String(u)),this._getFormData().append(i,u),this},E.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},E.prototype._auth=function(i,u,y,l){switch(y.type){case"basic":this.set("Authorization","Basic ".concat(l("".concat(i,":").concat(u))));break;case"auto":this.username=i,this.password=u;break;case"bearer":this.set("Authorization","Bearer ".concat(i));break}return this},E.prototype.withCredentials=function(i){return i===void 0&&(i=!0),this._withCredentials=i,this},E.prototype.redirects=function(i){return this._maxRedirects=i,this},E.prototype.maxResponseSize=function(i){if(typeof i!="number")throw new TypeError("Invalid argument");return this._maxResponseSize=i,this},E.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},E.prototype.send=function(i){var u=G(i),y=this._header["content-type"];if(this._formData)throw new Error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()");if(u&&!this._data)Array.isArray(i)?this._data=[]:this._isHost(i)||(this._data={});else if(i&&this._data&&this._isHost(this._data))throw new Error("Can't merge these send calls");if(u&&G(this._data))for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(this._data[l]=i[l]);else typeof i=="string"?(y||this.type("form"),y=this._header["content-type"],y==="application/x-www-form-urlencoded"?this._data=this._data?"".concat(this._data,"&").concat(i):i:this._data=(this._data||"")+i):this._data=i;return!u||this._isHost(i)?this:(y||this.type("json"),this)},E.prototype.sortQuery=function(i){return this._sort=typeof i>"u"?!0:i,this},E.prototype._finalizeQueryString=function(){var i=this._query.join("&");if(i&&(this.url+=(this.url.includes("?")?"&":"?")+i),this._query.length=0,this._sort){var u=this.url.indexOf("?");if(u>=0){var y=this.url.slice(u+1).split("&");typeof this._sort=="function"?y.sort(this._sort):y.sort(),this.url=this.url.slice(0,u)+"?"+y.join("&")}}},E.prototype._appendQueryString=function(){console.warn("Unsupported")},E.prototype._timeoutError=function(i,u,y){if(!this._aborted){var l=new Error("".concat(i+u,"ms exceeded"));l.timeout=u,l.code="ECONNABORTED",l.errno=y,this.timedout=!0,this.timedoutError=l,this.abort(),this.callback(l)}},E.prototype._setTimeouts=function(){var i=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){i._timeoutError("Timeout of ",i._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){i._timeoutError("Response timeout of ",i._responseTimeout,"ETIMEDOUT")},this._responseTimeout))};var U={};U.type=function(i){return i.split(/ *; */).shift()},U.params=function(i){return i.split(/ *; */).reduce(function(u,y){var l=y.split(/ *= */),p=l.shift(),v=l.shift();return p&&v&&(u[p]=v),u},{})},U.parseLinks=function(i){return i.split(/ *, */).reduce(function(u,y){var l=y.split(/ *; */),p=l[0].slice(1,-1),v=l[1].split(/ *= */)[1].slice(1,-1);return u[v]=p,u},{})},U.cleanHeader=function(i,u){return delete i["content-type"],delete i["content-length"],delete i["transfer-encoding"],delete i.host,u&&(delete i.authorization,delete i.cookie),i};var Z=U,Ye=B;function B(i){if(i)return Ze(i)}function Ze(i){for(var u in B.prototype)Object.prototype.hasOwnProperty.call(B.prototype,u)&&(i[u]=B.prototype[u]);return i}B.prototype.get=function(i){return this.header[i.toLowerCase()]},B.prototype._setHeaderProperties=function(i){var u=i["content-type"]||"";this.type=Z.type(u);var y=Z.params(u);for(var l in y)Object.prototype.hasOwnProperty.call(y,l)&&(this[l]=y[l]);this.links={};try{i.link&&(this.links=Z.parseLinks(i.link))}catch{}},B.prototype._setStatusProperties=function(i){var u=i/100|0;this.statusCode=i,this.status=this.statusCode,this.statusType=u,this.info=u===1,this.ok=u===2,this.redirect=u===3,this.clientError=u===4,this.serverError=u===5,this.error=u===4||u===5?this.toError():!1,this.created=i===201,this.accepted=i===202,this.noContent=i===204,this.badRequest=i===400,this.unauthorized=i===401,this.notAcceptable=i===406,this.forbidden=i===403,this.notFound=i===404,this.unprocessableEntity=i===422};function et(i){return it(i)||nt(i)||rt(i)||tt()}function tt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(i,u){if(i){if(typeof i=="string")return ee(i,u);var y=Object.prototype.toString.call(i).slice(8,-1);if(y==="Object"&&i.constructor&&(y=i.constructor.name),y==="Map"||y==="Set")return Array.from(i);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return ee(i,u)}}function nt(i){if(typeof Symbol<"u"&&Symbol.iterator in Object(i))return Array.from(i)}function it(i){if(Array.isArray(i))return ee(i)}function ee(i,u){(u==null||u>i.length)&&(u=i.length);for(var y=0,l=new Array(u);y<u;y++)l[y]=i[y];return l}function te(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert","disableTLSCerts"].forEach(function(i){te.prototype[i]=function(){for(var u=arguments.length,y=new Array(u),l=0;l<u;l++)y[l]=arguments[l];return this._defaults.push({fn:i,args:y}),this}}),te.prototype._setDefaults=function(i){this._defaults.forEach(function(u){i[u.fn].apply(i,et(u.args))})};var ot=te;(function(i,u){function y(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(m){return typeof m}:y=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},y(s)}var l;typeof window<"u"?l=window:typeof self>"u"?(console.warn("Using browser-only version of superagent in non-browser environment"),l=void 0):l=self;var p=je,v=$e,b=Ve,w=Pe,T=Ye,S=ot;function O(){}i.exports=function(s,d){return typeof d=="function"?new u.Request("GET",s).end(d):arguments.length===1?new u.Request("GET",s):new u.Request(s,d)},u=i.exports;var n=u;u.Request=g,n.getXHR=function(){if(l.XMLHttpRequest&&(!l.location||l.location.protocol!=="file:"||!l.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch{}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch{}throw new Error("Browser-only version of superagent could not find XHR")};var t="".trim?function(s){return s.trim()}:function(s){return s.replace(/(^\s*|\s*$)/g,"")};function r(s){if(!w(s))return s;var d=[];for(var m in s)Object.prototype.hasOwnProperty.call(s,m)&&e(d,m,s[m]);return d.join("&")}function e(s,d,m){if(m!==void 0){if(m===null){s.push(encodeURI(d));return}if(Array.isArray(m))m.forEach(function(P){e(s,d,P)});else if(w(m))for(var _ in m)Object.prototype.hasOwnProperty.call(m,_)&&e(s,"".concat(d,"[").concat(_,"]"),m[_]);else s.push(encodeURI(d)+"="+encodeURIComponent(m))}}n.serializeObject=r;function o(s){for(var d={},m=s.split("&"),_,P,A=0,N=m.length;A<N;++A)_=m[A],P=_.indexOf("="),P===-1?d[decodeURIComponent(_)]="":d[decodeURIComponent(_.slice(0,P))]=decodeURIComponent(_.slice(P+1));return d}n.parseString=o,n.types={html:"text/html",json:"application/json",xml:"text/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},n.serialize={"application/x-www-form-urlencoded":r,"application/json":v},n.parse={"application/x-www-form-urlencoded":o,"application/json":JSON.parse};function f(s){for(var d=s.split(/\r?\n/),m={},_,P,A,N,k=0,I=d.length;k<I;++k)P=d[k],_=P.indexOf(":"),_!==-1&&(A=P.slice(0,_).toLowerCase(),N=t(P.slice(_+1)),m[A]=N);return m}function a(s){return/[/+]json($|[^-\w])/.test(s)}function c(s){this.req=s,this.xhr=this.req.xhr,this.text=this.req.method!=="HEAD"&&(this.xhr.responseType===""||this.xhr.responseType==="text")||typeof this.xhr.responseType>"u"?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText;var d=this.xhr.status;d===1223&&(d=204),this._setStatusProperties(d),this.headers=f(this.xhr.getAllResponseHeaders()),this.header=this.headers,this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.text===null&&s._responseType?this.body=this.xhr.response:this.body=this.req.method==="HEAD"?null:this._parseBody(this.text?this.text:this.xhr.response)}T(c.prototype),c.prototype._parseBody=function(s){var d=n.parse[this.type];return this.req._parser?this.req._parser(this,s):(!d&&a(this.type)&&(d=n.parse["application/json"]),d&&s&&(s.length>0||s instanceof Object)?d(s):null)},c.prototype.toError=function(){var s=this.req,d=s.method,m=s.url,_="cannot ".concat(d," ").concat(m," (").concat(this.status,")"),P=new Error(_);return P.status=this.status,P.method=d,P.url=m,P},n.Response=c;function g(s,d){var m=this;this._query=this._query||[],this.method=s,this.url=d,this.header={},this._header={},this.on("end",function(){var _=null,P=null;try{P=new c(m)}catch(N){return _=new Error("Parser is unable to parse the response"),_.parse=!0,_.original=N,m.xhr?(_.rawResponse=typeof m.xhr.responseType>"u"?m.xhr.responseText:m.xhr.response,_.status=m.xhr.status?m.xhr.status:null,_.statusCode=_.status):(_.rawResponse=null,_.status=null),m.callback(_)}m.emit("response",P);var A;try{m._isResponseOK(P)||(A=new Error(P.statusText||P.text||"Unsuccessful HTTP response"))}catch(N){A=N}A?(A.original=_,A.response=P,A.status=P.status,m.callback(A,P)):m.callback(null,P)})}p(g.prototype),b(g.prototype),g.prototype.type=function(s){return this.set("Content-Type",n.types[s]||s),this},g.prototype.accept=function(s){return this.set("Accept",n.types[s]||s),this},g.prototype.auth=function(s,d,m){arguments.length===1&&(d=""),y(d)==="object"&&d!==null&&(m=d,d=""),m||(m={type:typeof btoa=="function"?"basic":"auto"});var _=function(A){if(typeof btoa=="function")return btoa(A);throw new Error("Cannot use basic auth, btoa is not a function")};return this._auth(s,d,m,_)},g.prototype.query=function(s){return typeof s!="string"&&(s=r(s)),s&&this._query.push(s),this},g.prototype.attach=function(s,d,m){if(d){if(this._data)throw new Error("superagent can't mix .send() and .attach()");this._getFormData().append(s,d,m||d.name)}return this},g.prototype._getFormData=function(){return this._formData||(this._formData=new l.FormData),this._formData},g.prototype.callback=function(s,d){if(this._shouldRetry(s,d))return this._retry();var m=this._callback;this.clearTimeout(),s&&(this._maxRetries&&(s.retries=this._retries-1),this.emit("error",s)),m(s,d)},g.prototype.crossDomainError=function(){var s=new Error(`Request has been terminated
3
+ Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.`);s.crossDomain=!0,s.status=this.status,s.method=this.method,s.url=this.url,this.callback(s)},g.prototype.agent=function(){return console.warn("This is not supported in browser version of superagent"),this},g.prototype.ca=g.prototype.agent,g.prototype.buffer=g.prototype.ca,g.prototype.write=function(){throw new Error("Streaming is not supported in browser version of superagent")},g.prototype.pipe=g.prototype.write,g.prototype._isHost=function(s){return s&&y(s)==="object"&&!Array.isArray(s)&&Object.prototype.toString.call(s)!=="[object Object]"},g.prototype.end=function(s){this._endCalled&&console.warn("Warning: .end() was called twice. This is not supported in superagent"),this._endCalled=!0,this._callback=s||O,this._finalizeQueryString(),this._end()},g.prototype._setUploadTimeout=function(){var s=this;this._uploadTimeout&&!this._uploadTimeoutTimer&&(this._uploadTimeoutTimer=setTimeout(function(){s._timeoutError("Upload timeout of ",s._uploadTimeout,"ETIMEDOUT")},this._uploadTimeout))},g.prototype._end=function(){if(this._aborted)return this.callback(new Error("The request has been aborted even before .end() was called"));var s=this;this.xhr=n.getXHR();var d=this.xhr,m=this._formData||this._data;this._setTimeouts(),d.onreadystatechange=function(){var k=d.readyState;if(k>=2&&s._responseTimeoutTimer&&clearTimeout(s._responseTimeoutTimer),k===4){var I;try{I=d.status}catch{I=0}if(!I)return s.timedout||s._aborted?void 0:s.crossDomainError();s.emit("end")}};var _=function(I,R){R.total>0&&(R.percent=R.loaded/R.total*100,R.percent===100&&clearTimeout(s._uploadTimeoutTimer)),R.direction=I,s.emit("progress",R)};if(this.hasListeners("progress"))try{d.addEventListener("progress",_.bind(null,"download")),d.upload&&d.upload.addEventListener("progress",_.bind(null,"upload"))}catch{}d.upload&&this._setUploadTimeout();try{this.username&&this.password?d.open(this.method,this.url,!0,this.username,this.password):d.open(this.method,this.url,!0)}catch(k){return this.callback(k)}if(this._withCredentials&&(d.withCredentials=!0),!this._formData&&this.method!=="GET"&&this.method!=="HEAD"&&typeof m!="string"&&!this._isHost(m)){var P=this._header["content-type"],A=this._serializer||n.serialize[P?P.split(";")[0]:""];!A&&a(P)&&(A=n.serialize["application/json"]),A&&(m=A(m))}for(var N in this.header)this.header[N]!==null&&Object.prototype.hasOwnProperty.call(this.header,N)&&d.setRequestHeader(N,this.header[N]);this._responseType&&(d.responseType=this._responseType),this.emit("request",this),d.send(typeof m>"u"?null:m)},n.agent=function(){return new S},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(s){S.prototype[s.toLowerCase()]=function(d,m){var _=new n.Request(s,d);return this._setDefaults(_),m&&_.end(m),_}}),S.prototype.del=S.prototype.delete,n.get=function(s,d,m){var _=n("GET",s);return typeof d=="function"&&(m=d,d=null),d&&_.query(d),m&&_.end(m),_},n.head=function(s,d,m){var _=n("HEAD",s);return typeof d=="function"&&(m=d,d=null),d&&_.query(d),m&&_.end(m),_},n.options=function(s,d,m){var _=n("OPTIONS",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_};function h(s,d,m){var _=n("DELETE",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_}n.del=h,n.delete=h,n.patch=function(s,d,m){var _=n("PATCH",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_},n.post=function(s,d,m){var _=n("POST",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_},n.put=function(s,d,m){var _=n("PUT",s);return typeof d=="function"&&(m=d,d=null),d&&_.send(d),m&&_.end(m),_}})(X,X.exports);var ut=X.exports;const Ee=H(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(ut),y=l(Ee);function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"https://api.flyo.cloud/nitro/v1";v(this,t),this.basePath=r.replace(/\/+$/,""),this.authentications={ApiToken:{type:"apiKey",in:"query",name:"token"}},this.defaultHeaders={"User-Agent":"OpenAPI-Generator/1.0.0-beta.160/Javascript"},this.timeout=6e4,this.cache=!0,this.enableCookies=!1,typeof window>"u"&&(this.agent=new u.default.agent),this.requestAgent=null,this.plugins=null}return w(t,[{key:"paramToString",value:function(e){return e==null||e==null?"":e instanceof Date?e.toJSON():t.canBeJsonified(e)?JSON.stringify(e):e.toString()}},{key:"buildUrl",value:function(e,o,f){var a=this;e.match(/^\//)||(e="/"+e);var c=this.basePath+e;return f!=null&&(c=f+e),c=c.replace(/\{([\w-\.]+)\}/g,function(g,h){var s;return o.hasOwnProperty(h)?s=a.paramToString(o[h]):s=g,encodeURIComponent(s)}),c}},{key:"isJsonMime",value:function(e){return!!(e!=null&&e.match(/^application\/json(;.*)?$/i))}},{key:"jsonPreferredMime",value:function(e){for(var o=0;o<e.length;o++)if(this.isJsonMime(e[o]))return e[o];return e[0]}},{key:"isFileParam",value:function(e){if(typeof Ke=="function"){var o;try{o=Ee}catch{}if(o&&o.ReadStream&&e instanceof o.ReadStream)return!0}return typeof Buffer=="function"&&e instanceof Buffer||typeof Blob=="function"&&e instanceof Blob||typeof File=="function"&&e instanceof File}},{key:"normalizeParams",value:function(e){var o={};for(var f in e)if(e.hasOwnProperty(f)&&e[f]!=null&&e[f]!=null){var a=e[f];this.isFileParam(a)||Array.isArray(a)?o[f]=a:o[f]=this.paramToString(a)}return o}},{key:"buildCollectionParam",value:function(e,o){if(e==null)return null;switch(o){case"csv":return e.map(this.paramToString,this).join(",");case"ssv":return e.map(this.paramToString,this).join(" ");case"tsv":return e.map(this.paramToString,this).join(" ");case"pipes":return e.map(this.paramToString,this).join("|");case"multi":return e.map(this.paramToString,this);case"passthrough":return e;default:throw new Error("Unknown collection format: "+o)}}},{key:"applyAuthToRequest",value:function(e,o){var f=this;o.forEach(function(a){var c=f.authentications[a];switch(c.type){case"basic":(c.username||c.password)&&e.auth(c.username||"",c.password||"");break;case"bearer":if(c.accessToken){var g=typeof c.accessToken=="function"?c.accessToken():c.accessToken;e.set({Authorization:"Bearer "+g})}break;case"apiKey":if(c.apiKey){var h={};c.apiKeyPrefix?h[c.name]=c.apiKeyPrefix+" "+c.apiKey:h[c.name]=c.apiKey,c.in==="header"?e.set(h):e.query(h)}break;case"oauth2":c.accessToken&&e.set({Authorization:"Bearer "+c.accessToken});break;default:throw new Error("Unknown authentication type: "+c.type)}})}},{key:"deserialize",value:function(e,o){if(e==null||o==null||e.status==204)return null;var f=e.body;return(f==null||p(f)==="object"&&typeof f.length>"u"&&!Object.keys(f).length)&&(f=e.text),t.convertToType(f,o)}},{key:"callApi",value:function(e,o,f,a,c,g,h,s,d,m,_,P){var A=this,N=this.buildUrl(e,f,P),k=(0,u.default)(o,N);if(this.plugins!==null)for(var I in this.plugins)this.plugins.hasOwnProperty(I)&&k.use(this.plugins[I]);this.applyAuthToRequest(k,s),o.toUpperCase()==="GET"&&this.cache===!1&&(a._=new Date().getTime()),k.query(this.normalizeParams(a)),k.set(this.defaultHeaders).set(this.normalizeParams(c)),this.requestAgent&&k.agent(this.requestAgent),k.timeout(this.timeout);var R=this.jsonPreferredMime(d);if(R&&R!="multipart/form-data"&&k.type(R),R==="application/x-www-form-urlencoded")k.send(y.default.stringify(this.normalizeParams(g)));else if(R=="multipart/form-data"){var ge=this.normalizeParams(g);for(var K in ge)if(ge.hasOwnProperty(K)){var D=ge[K];this.isFileParam(D)?k.attach(K,D):Array.isArray(D)&&D.length&&this.isFileParam(D[0])?D.forEach(function(_e){return k.attach(K,_e)}):k.field(K,D)}}else h!=null&&(k.header["Content-Type"]||k.type("application/json"),k.send(h));var Fe=this.jsonPreferredMime(m);return Fe&&k.accept(Fe),_==="Blob"?k.responseType("blob"):_==="String"&&k.responseType("text"),this.enableCookies&&(typeof window>"u"?this.agent._attachCookies(k):k.withCredentials()),new Promise(function(_e,He){k.end(function(Le,q){if(Le){var F={};q&&(F.status=q.status,F.statusText=q.statusText,F.body=q.body,F.response=q),F.error=Le,He(F)}else try{var vt=A.deserialize(q,_);A.enableCookies&&typeof window>"u"&&A.agent._saveCookies(q),_e({data:vt,response:q})}catch(gt){He(gt)}})})}},{key:"hostSettings",value:function(){return[{url:"https://api.flyo.cloud/nitro/{version}",description:"Production Server",variables:{version:{description:"The api version currently supported is `v1`",default_value:"v1"}}}]}},{key:"getBasePathFromSettings",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=this.hostSettings();if(e<0||e>=f.length)throw new Error("Invalid index "+e+" when selecting the host settings. Must be less than "+f.length);var a=f[e],c=a.url;for(var g in a.variables)if(g in o){var h=a.variables[g];if(!("enum_values"in h)||h.enum_values.includes(o[g]))c=c.replace("{"+g+"}",o[g]);else throw new Error("The variable `"+g+"` in the host URL has invalid value "+o[g]+". Must be "+a.variables[g].enum_values+".")}else c=c.replace("{"+g+"}",a.variables[g].default_value);return c}}],[{key:"canBeJsonified",value:function(e){if(typeof e!="string"&&p(e)!=="object")return!1;try{var o=e.toString();return o==="[object Object]"||o==="[object Array]"}catch{return!1}}},{key:"parseDate",value:function(e){return isNaN(e)?new Date(e.replace(/(\d)(T)(\d)/i,"$1 $3")):new Date(+e)}},{key:"convertToType",value:function(e,o){if(e==null)return e;switch(o){case"Boolean":return!!e;case"Integer":return parseInt(e,10);case"Number":return parseFloat(e);case"String":return String(e);case"Date":return t.parseDate(String(e));case"Blob":return e;default:if(o===Object)return e;if(typeof o.constructFromObject=="function")return o.constructFromObject(e);if(Array.isArray(o)){var f=o[0];return e.map(function(m){return t.convertToType(m,f)})}else if(p(o)==="object"){var a,c;for(var g in o)if(o.hasOwnProperty(g)){a=g,c=o[g];break}var h={};for(var g in e)if(e.hasOwnProperty(g)){var s=t.convertToType(g,a),d=t.convertToType(e[g],c);h[s]=d}return h}else return e}}},{key:"constructFromObject",value:function(e,o,f){if(Array.isArray(e))for(var a=0;a<e.length;a++)e.hasOwnProperty(a)&&(o[a]=t.convertToType(e[a],f));else for(var c in e)e.hasOwnProperty(c)&&(o[c]=t.convertToType(e[c],f))}}]),t}();O.CollectionFormatEnum={CSV:",",SSV:" ",TSV:" ",PIPES:"|",MULTI:"multi"},O.instance=new O;var n=O;i.default=n})(C);var re={},ne={},Ae;function ke(){return Ae||(Ae=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(ie());function l(o){return o&&o.__esModule?o:{default:o}}function p(o){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},p(o)}function v(o,f){var a=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=b(o))||f&&o&&typeof o.length=="number"){a&&(o=a);var c=0,g=function(){};return{s:g,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(_){throw _},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h=!0,s=!1,d;return{s:function(){a=a.call(o)},n:function(){var _=a.next();return h=_.done,_},e:function(_){s=!0,d=_},f:function(){try{!h&&a.return!=null&&a.return()}finally{if(s)throw d}}}}function b(o,f){if(o){if(typeof o=="string")return w(o,f);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return w(o,f)}}function w(o,f){(f==null||f>o.length)&&(f=o.length);for(var a=0,c=new Array(f);a<f;a++)c[a]=o[a];return c}function T(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")}function S(o,f){for(var a=0;a<f.length;a++){var c=f[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,n(c.key),c)}}function O(o,f,a){return f&&S(o.prototype,f),a&&S(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function n(o){var f=t(o,"string");return p(f)==="symbol"?f:String(f)}function t(o,f){if(p(o)!=="object"||o===null)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var c=a.call(o,f||"default");if(p(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(o)}var r=function(){function o(){T(this,o),o.initialize(this)}return O(o,null,[{key:"initialize",value:function(a){}},{key:"constructFromObject",value:function(a,c){return a&&(c=c||new o,a.hasOwnProperty("identifier")&&(c.identifier=u.default.convertToType(a.identifier,"String")),a.hasOwnProperty("content")&&(c.content=u.default.convertToType(a.content,[y.default]))),c}},{key:"validateJSON",value:function(a){if(a.identifier&&!(typeof a.identifier=="string"||a.identifier instanceof String))throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got "+a.identifier);if(a.content){if(!Array.isArray(a.content))throw new Error("Expected the field `content` to be an array in the JSON data but got "+a.content);var c=v(a.content),g;try{for(c.s();!(g=c.n()).done;){var h=g.value;y.default.validateJSON(h)}}catch(s){c.e(s)}finally{c.f()}}return!0}}]),o}();r.prototype.identifier=void 0,r.prototype.content=void 0;var e=r;i.default=e}(ne)),ne}var Ne;function ie(){return Ne||(Ne=1,function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(ke());function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){v(this,t),t.initialize(this)}return w(t,null,[{key:"initialize",value:function(e){}},{key:"constructFromObject",value:function(e,o){return e&&(o=o||new t,e.hasOwnProperty("items")&&(o.items=u.default.convertToType(e.items,[Object])),e.hasOwnProperty("content")&&(o.content=u.default.convertToType(e.content,Object)),e.hasOwnProperty("config")&&(o.config=u.default.convertToType(e.config,Object)),e.hasOwnProperty("identifier")&&(o.identifier=u.default.convertToType(e.identifier,"String")),e.hasOwnProperty("uid")&&(o.uid=u.default.convertToType(e.uid,"String")),e.hasOwnProperty("component")&&(o.component=u.default.convertToType(e.component,"String")),e.hasOwnProperty("slots")&&(o.slots=u.default.convertToType(e.slots,{String:y.default}))),o}},{key:"validateJSON",value:function(e){if(!Array.isArray(e.items))throw new Error("Expected the field `items` to be an array in the JSON data but got "+e.items);if(e.identifier&&!(typeof e.identifier=="string"||e.identifier instanceof String))throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got "+e.identifier);if(e.uid&&!(typeof e.uid=="string"||e.uid instanceof String))throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got "+e.uid);if(e.component&&!(typeof e.component=="string"||e.component instanceof String))throw new Error("Expected the field `component` to be a primitive type in the JSON string but got "+e.component);return!0}}]),t}();O.prototype.items=void 0,O.prototype.content=void 0,O.prototype.config=void 0,O.prototype.identifier=void 0,O.prototype.uid=void 0,O.prototype.component=void 0,O.prototype.slots=void 0;var n=O;i.default=n}(re)),re}var oe={},ue={},fe={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(e){return e&&e.__esModule?e:{default:e}}function l(e){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},l(e)}function p(e,o){var f=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!f){if(Array.isArray(e)||(f=v(e))||o&&e&&typeof e.length=="number"){f&&(e=f);var a=0,c=function(){};return{s:c,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(m){throw m},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,h=!1,s;return{s:function(){f=f.call(e)},n:function(){var m=f.next();return g=m.done,m},e:function(m){h=!0,s=m},f:function(){try{!g&&f.return!=null&&f.return()}finally{if(h)throw s}}}}function v(e,o){if(e){if(typeof e=="string")return b(e,o);var f=Object.prototype.toString.call(e).slice(8,-1);if(f==="Object"&&e.constructor&&(f=e.constructor.name),f==="Map"||f==="Set")return Array.from(e);if(f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f))return b(e,o)}}function b(e,o){(o==null||o>e.length)&&(o=e.length);for(var f=0,a=new Array(o);f<o;f++)a[f]=e[f];return a}function w(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function T(e,o){for(var f=0;f<o.length;f++){var a=o[f];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,O(a.key),a)}}function S(e,o,f){return o&&T(e.prototype,o),f&&T(e,f),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(e){var o=n(e,"string");return l(o)==="symbol"?o:String(o)}function n(e,o){if(l(e)!=="object"||e===null)return e;var f=e[Symbol.toPrimitive];if(f!==void 0){var a=f.call(e,o||"default");if(l(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(e)}var t=function(){function e(){w(this,e),e.initialize(this)}return S(e,null,[{key:"initialize",value:function(f){}},{key:"constructFromObject",value:function(f,a){return f&&(a=a||new e,f.hasOwnProperty("type")&&(a.type=u.default.convertToType(f.type,"String")),f.hasOwnProperty("target")&&(a.target=u.default.convertToType(f.target,"String")),f.hasOwnProperty("label")&&(a.label=u.default.convertToType(f.label,"String")),f.hasOwnProperty("href")&&(a.href=u.default.convertToType(f.href,"String")),f.hasOwnProperty("slug")&&(a.slug=u.default.convertToType(f.slug,"String")),f.hasOwnProperty("properties")&&(a.properties=u.default.convertToType(f.properties,{String:Object})),f.hasOwnProperty("children")&&(a.children=u.default.convertToType(f.children,[e]))),a}},{key:"validateJSON",value:function(f){if(f.type&&!(typeof f.type=="string"||f.type instanceof String))throw new Error("Expected the field `type` to be a primitive type in the JSON string but got "+f.type);if(f.target&&!(typeof f.target=="string"||f.target instanceof String))throw new Error("Expected the field `target` to be a primitive type in the JSON string but got "+f.target);if(f.label&&!(typeof f.label=="string"||f.label instanceof String))throw new Error("Expected the field `label` to be a primitive type in the JSON string but got "+f.label);if(f.href&&!(typeof f.href=="string"||f.href instanceof String))throw new Error("Expected the field `href` to be a primitive type in the JSON string but got "+f.href);if(f.slug&&!(typeof f.slug=="string"||f.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+f.slug);if(f.children){if(!Array.isArray(f.children))throw new Error("Expected the field `children` to be an array in the JSON data but got "+f.children);var a=p(f.children),c;try{for(a.s();!(c=a.n()).done;){var g=c.value;e.validateJSON(g)}}catch(h){a.e(h)}finally{a.f()}}return!0}}]),e}();t.prototype.type=void 0,t.prototype.target=void 0,t.prototype.label=void 0,t.prototype.href=void 0,t.prototype.slug=void 0,t.prototype.properties=void 0,t.prototype.children=void 0;var r=t;i.default=r})(fe),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(fe);function l(o){return o&&o.__esModule?o:{default:o}}function p(o){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},p(o)}function v(o,f){var a=typeof Symbol<"u"&&o[Symbol.iterator]||o["@@iterator"];if(!a){if(Array.isArray(o)||(a=b(o))||f&&o&&typeof o.length=="number"){a&&(o=a);var c=0,g=function(){};return{s:g,n:function(){return c>=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(_){throw _},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var h=!0,s=!1,d;return{s:function(){a=a.call(o)},n:function(){var _=a.next();return h=_.done,_},e:function(_){s=!0,d=_},f:function(){try{!h&&a.return!=null&&a.return()}finally{if(s)throw d}}}}function b(o,f){if(o){if(typeof o=="string")return w(o,f);var a=Object.prototype.toString.call(o).slice(8,-1);if(a==="Object"&&o.constructor&&(a=o.constructor.name),a==="Map"||a==="Set")return Array.from(o);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return w(o,f)}}function w(o,f){(f==null||f>o.length)&&(f=o.length);for(var a=0,c=new Array(f);a<f;a++)c[a]=o[a];return c}function T(o,f){if(!(o instanceof f))throw new TypeError("Cannot call a class as a function")}function S(o,f){for(var a=0;a<f.length;a++){var c=f[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,n(c.key),c)}}function O(o,f,a){return f&&S(o.prototype,f),a&&S(o,a),Object.defineProperty(o,"prototype",{writable:!1}),o}function n(o){var f=t(o,"string");return p(f)==="symbol"?f:String(f)}function t(o,f){if(p(o)!=="object"||o===null)return o;var a=o[Symbol.toPrimitive];if(a!==void 0){var c=a.call(o,f||"default");if(p(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(o)}var r=function(){function o(){T(this,o),o.initialize(this)}return O(o,null,[{key:"initialize",value:function(a){}},{key:"constructFromObject",value:function(a,c){return a&&(c=c||new o,a.hasOwnProperty("items")&&(c.items=u.default.convertToType(a.items,[y.default])),a.hasOwnProperty("uid")&&(c.uid=u.default.convertToType(a.uid,"String")),a.hasOwnProperty("identifier")&&(c.identifier=u.default.convertToType(a.identifier,"String")),a.hasOwnProperty("label")&&(c.label=u.default.convertToType(a.label,"String"))),c}},{key:"validateJSON",value:function(a){if(a.items){if(!Array.isArray(a.items))throw new Error("Expected the field `items` to be an array in the JSON data but got "+a.items);var c=v(a.items),g;try{for(c.s();!(g=c.n()).done;){var h=g.value;y.default.validateJSON(h)}}catch(s){c.e(s)}finally{c.f()}}if(a.uid&&!(typeof a.uid=="string"||a.uid instanceof String))throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got "+a.uid);if(a.identifier&&!(typeof a.identifier=="string"||a.identifier instanceof String))throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got "+a.identifier);if(a.label&&!(typeof a.label=="string"||a.label instanceof String))throw new Error("Expected the field `label` to be a primitive type in the JSON string but got "+a.label);return!0}}]),o}();r.prototype.items=void 0,r.prototype.uid=void 0,r.prototype.identifier=void 0,r.prototype.label=void 0;var e=r;i.default=e}(ue);var le={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("domain")&&(e.domain=u.default.convertToType(r.domain,"String")),r.hasOwnProperty("slug")&&(e.slug=u.default.convertToType(r.slug,"String")),r.hasOwnProperty("version")&&(e.version=u.default.convertToType(r.version,"Number")),r.hasOwnProperty("updated_at")&&(e.updated_at=u.default.convertToType(r.updated_at,"Number")),r.hasOwnProperty("language")&&(e.language=u.default.convertToType(r.language,"String"))),e}},{key:"validateJSON",value:function(r){if(r.domain&&!(typeof r.domain=="string"||r.domain instanceof String))throw new Error("Expected the field `domain` to be a primitive type in the JSON string but got "+r.domain);if(r.slug&&!(typeof r.slug=="string"||r.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+r.slug);if(r.language&&!(typeof r.language=="string"||r.language instanceof String))throw new Error("Expected the field `language` to be a primitive type in the JSON string but got "+r.language);return!0}}]),n}();S.prototype.domain=void 0,S.prototype.slug=void 0,S.prototype.version=void 0,S.prototype.updated_at=void 0,S.prototype.language=void 0;var O=S;i.default=O})(le),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=p(C),y=p(ue),l=p(le);function p(r){return r&&r.__esModule?r:{default:r}}function v(r){"@babel/helpers - typeof";return v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(r)}function b(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function w(r,e){for(var o=0;o<e.length;o++){var f=e[o];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(r,S(f.key),f)}}function T(r,e,o){return e&&w(r.prototype,e),o&&w(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r}function S(r){var e=O(r,"string");return v(e)==="symbol"?e:String(e)}function O(r,e){if(v(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var f=o.call(r,e||"default");if(v(f)!=="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var n=function(){function r(){b(this,r),r.initialize(this)}return T(r,null,[{key:"initialize",value:function(o){}},{key:"constructFromObject",value:function(o,f){return o&&(f=f||new r,o.hasOwnProperty("nitro")&&(f.nitro=l.default.constructFromObject(o.nitro)),o.hasOwnProperty("pages")&&(f.pages=u.default.convertToType(o.pages,["String"])),o.hasOwnProperty("containers")&&(f.containers=u.default.convertToType(o.containers,{String:y.default})),o.hasOwnProperty("globals")&&(f.globals=u.default.convertToType(o.globals,Object))),f}},{key:"validateJSON",value:function(o){if(o.nitro&&l.default.validateJSON(o.nitro),!Array.isArray(o.pages))throw new Error("Expected the field `pages` to be an array in the JSON data but got "+o.pages);return!0}}]),r}();n.prototype.nitro=void 0,n.prototype.pages=void 0,n.prototype.containers=void 0,n.prototype.globals=void 0;var t=n;i.default=t}(oe);var ae={},se={},ce={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("api")&&(e.api=u.default.convertToType(r.api,"String")),r.hasOwnProperty("image")&&(e.image=u.default.convertToType(r.image,"String"))),e}},{key:"validateJSON",value:function(r){if(r.api&&!(typeof r.api=="string"||r.api instanceof String))throw new Error("Expected the field `api` to be a primitive type in the JSON string but got "+r.api);if(r.image&&!(typeof r.image=="string"||r.image instanceof String))throw new Error("Expected the field `image` to be a primitive type in the JSON string but got "+r.image);return!0}}]),n}();S.prototype.api=void 0,S.prototype.image=void 0;var O=S;i.default=O})(ce),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(ce);function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){v(this,t),t.initialize(this)}return w(t,null,[{key:"initialize",value:function(e){}},{key:"constructFromObject",value:function(e,o){return e&&(o=o||new t,e.hasOwnProperty("_version")&&(o._version=u.default.convertToType(e._version,"Number")),e.hasOwnProperty("entity_metric")&&(o.entity_metric=y.default.constructFromObject(e.entity_metric)),e.hasOwnProperty("entity_unique_id")&&(o.entity_unique_id=u.default.convertToType(e.entity_unique_id,"String")),e.hasOwnProperty("entity_id")&&(o.entity_id=u.default.convertToType(e.entity_id,"String")),e.hasOwnProperty("entity_image")&&(o.entity_image=u.default.convertToType(e.entity_image,"String")),e.hasOwnProperty("entity_slug")&&(o.entity_slug=u.default.convertToType(e.entity_slug,"String")),e.hasOwnProperty("entity_teaser")&&(o.entity_teaser=u.default.convertToType(e.entity_teaser,"String")),e.hasOwnProperty("entity_time_end")&&(o.entity_time_end=u.default.convertToType(e.entity_time_end,"String")),e.hasOwnProperty("entity_time_start")&&(o.entity_time_start=u.default.convertToType(e.entity_time_start,"String")),e.hasOwnProperty("entity_title")&&(o.entity_title=u.default.convertToType(e.entity_title,"String")),e.hasOwnProperty("entity_type")&&(o.entity_type=u.default.convertToType(e.entity_type,"String")),e.hasOwnProperty("entity_type_id")&&(o.entity_type_id=u.default.convertToType(e.entity_type_id,"Number")),e.hasOwnProperty("updated_at")&&(o.updated_at=u.default.convertToType(e.updated_at,"String")),e.hasOwnProperty("routes")&&(o.routes=u.default.convertToType(e.routes,{String:"String"}))),o}},{key:"validateJSON",value:function(e){if(e.entity_metric&&y.default.validateJSON(e.entity_metric),e.entity_unique_id&&!(typeof e.entity_unique_id=="string"||e.entity_unique_id instanceof String))throw new Error("Expected the field `entity_unique_id` to be a primitive type in the JSON string but got "+e.entity_unique_id);if(e.entity_id&&!(typeof e.entity_id=="string"||e.entity_id instanceof String))throw new Error("Expected the field `entity_id` to be a primitive type in the JSON string but got "+e.entity_id);if(e.entity_image&&!(typeof e.entity_image=="string"||e.entity_image instanceof String))throw new Error("Expected the field `entity_image` to be a primitive type in the JSON string but got "+e.entity_image);if(e.entity_slug&&!(typeof e.entity_slug=="string"||e.entity_slug instanceof String))throw new Error("Expected the field `entity_slug` to be a primitive type in the JSON string but got "+e.entity_slug);if(e.entity_teaser&&!(typeof e.entity_teaser=="string"||e.entity_teaser instanceof String))throw new Error("Expected the field `entity_teaser` to be a primitive type in the JSON string but got "+e.entity_teaser);if(e.entity_time_end&&!(typeof e.entity_time_end=="string"||e.entity_time_end instanceof String))throw new Error("Expected the field `entity_time_end` to be a primitive type in the JSON string but got "+e.entity_time_end);if(e.entity_time_start&&!(typeof e.entity_time_start=="string"||e.entity_time_start instanceof String))throw new Error("Expected the field `entity_time_start` to be a primitive type in the JSON string but got "+e.entity_time_start);if(e.entity_title&&!(typeof e.entity_title=="string"||e.entity_title instanceof String))throw new Error("Expected the field `entity_title` to be a primitive type in the JSON string but got "+e.entity_title);if(e.entity_type&&!(typeof e.entity_type=="string"||e.entity_type instanceof String))throw new Error("Expected the field `entity_type` to be a primitive type in the JSON string but got "+e.entity_type);if(e.updated_at&&!(typeof e.updated_at=="string"||e.updated_at instanceof String))throw new Error("Expected the field `updated_at` to be a primitive type in the JSON string but got "+e.updated_at);return!0}}]),t}();O.prototype._version=void 0,O.prototype.entity_metric=void 0,O.prototype.entity_unique_id=void 0,O.prototype.entity_id=void 0,O.prototype.entity_image=void 0,O.prototype.entity_slug=void 0,O.prototype.entity_teaser=void 0,O.prototype.entity_time_end=void 0,O.prototype.entity_time_start=void 0,O.prototype.entity_title=void 0,O.prototype.entity_type=void 0,O.prototype.entity_type_id=void 0,O.prototype.updated_at=void 0,O.prototype.routes=void 0;var n=O;i.default=n}(se),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(se);function l(t){return t&&t.__esModule?t:{default:t}}function p(t){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},p(t)}function v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function b(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,T(o.key),o)}}function w(t,r,e){return r&&b(t.prototype,r),e&&b(t,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var r=S(t,"string");return p(r)==="symbol"?r:String(r)}function S(t,r){if(p(t)!=="object"||t===null)return t;var e=t[Symbol.toPrimitive];if(e!==void 0){var o=e.call(t,r||"default");if(p(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var O=function(){function t(){v(this,t),t.initialize(this)}return w(t,null,[{key:"initialize",value:function(e){}},{key:"constructFromObject",value:function(e,o){return e&&(o=o||new t,e.hasOwnProperty("entity")&&(o.entity=y.default.constructFromObject(e.entity)),e.hasOwnProperty("model")&&(o.model=u.default.convertToType(e.model,Object)),e.hasOwnProperty("language")&&(o.language=u.default.convertToType(e.language,"String"))),o}},{key:"validateJSON",value:function(e){if(e.entity&&y.default.validateJSON(e.entity),e.language&&!(typeof e.language=="string"||e.language instanceof String))throw new Error("Expected the field `language` to be a primitive type in the JSON string but got "+e.language);return!0}}]),t}();O.prototype.entity=void 0,O.prototype.model=void 0,O.prototype.language=void 0;var n=O;i.default=n}(ae);var V={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("entity_unique_id")&&(e.entity_unique_id=u.default.convertToType(r.entity_unique_id,"String")),r.hasOwnProperty("entity_title")&&(e.entity_title=u.default.convertToType(r.entity_title,"String")),r.hasOwnProperty("entity_teaser")&&(e.entity_teaser=u.default.convertToType(r.entity_teaser,"String")),r.hasOwnProperty("entity_slug")&&(e.entity_slug=u.default.convertToType(r.entity_slug,"String")),r.hasOwnProperty("entity_type")&&(e.entity_type=u.default.convertToType(r.entity_type,"String")),r.hasOwnProperty("entity_type_id")&&(e.entity_type_id=u.default.convertToType(r.entity_type_id,"Number")),r.hasOwnProperty("entity_time_start")&&(e.entity_time_start=u.default.convertToType(r.entity_time_start,"String")),r.hasOwnProperty("entity_image")&&(e.entity_image=u.default.convertToType(r.entity_image,"String")),r.hasOwnProperty("routes")&&(e.routes=u.default.convertToType(r.routes,{String:"String"}))),e}},{key:"validateJSON",value:function(r){if(r.entity_unique_id&&!(typeof r.entity_unique_id=="string"||r.entity_unique_id instanceof String))throw new Error("Expected the field `entity_unique_id` to be a primitive type in the JSON string but got "+r.entity_unique_id);if(r.entity_title&&!(typeof r.entity_title=="string"||r.entity_title instanceof String))throw new Error("Expected the field `entity_title` to be a primitive type in the JSON string but got "+r.entity_title);if(r.entity_teaser&&!(typeof r.entity_teaser=="string"||r.entity_teaser instanceof String))throw new Error("Expected the field `entity_teaser` to be a primitive type in the JSON string but got "+r.entity_teaser);if(r.entity_slug&&!(typeof r.entity_slug=="string"||r.entity_slug instanceof String))throw new Error("Expected the field `entity_slug` to be a primitive type in the JSON string but got "+r.entity_slug);if(r.entity_type&&!(typeof r.entity_type=="string"||r.entity_type instanceof String))throw new Error("Expected the field `entity_type` to be a primitive type in the JSON string but got "+r.entity_type);if(r.entity_time_start&&!(typeof r.entity_time_start=="string"||r.entity_time_start instanceof String))throw new Error("Expected the field `entity_time_start` to be a primitive type in the JSON string but got "+r.entity_time_start);if(r.entity_image&&!(typeof r.entity_image=="string"||r.entity_image instanceof String))throw new Error("Expected the field `entity_image` to be a primitive type in the JSON string but got "+r.entity_image);return!0}}]),n}();S.prototype.entity_unique_id=void 0,S.prototype.entity_title=void 0,S.prototype.entity_teaser=void 0,S.prototype.entity_slug=void 0,S.prototype.entity_type=void 0,S.prototype.entity_type_id=void 0,S.prototype.entity_time_start=void 0,S.prototype.entity_image=void 0,S.prototype.routes=void 0;var O=S;i.default=O})(V);var ye={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("description")&&(e.description=u.default.convertToType(r.description,"String")),r.hasOwnProperty("image")&&(e.image=u.default.convertToType(r.image,"String")),r.hasOwnProperty("title")&&(e.title=u.default.convertToType(r.title,"String"))),e}},{key:"validateJSON",value:function(r){if(r.description&&!(typeof r.description=="string"||r.description instanceof String))throw new Error("Expected the field `description` to be a primitive type in the JSON string but got "+r.description);if(r.image&&!(typeof r.image=="string"||r.image instanceof String))throw new Error("Expected the field `image` to be a primitive type in the JSON string but got "+r.image);if(r.title&&!(typeof r.title=="string"||r.title instanceof String))throw new Error("Expected the field `title` to be a primitive type in the JSON string but got "+r.title);return!0}}]),n}();S.prototype.description=void 0,S.prototype.image=void 0,S.prototype.title=void 0;var O=S;i.default=O})(ye);var pe={},he={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("slug")&&(e.slug=u.default.convertToType(r.slug,"String")),r.hasOwnProperty("title")&&(e.title=u.default.convertToType(r.title,"String"))),e}},{key:"validateJSON",value:function(r){if(r.slug&&!(typeof r.slug=="string"||r.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+r.slug);if(r.title&&!(typeof r.title=="string"||r.title instanceof String))throw new Error("Expected the field `title` to be a primitive type in the JSON string but got "+r.title);return!0}}]),n}();S.prototype.slug=void 0,S.prototype.title=void 0;var O=S;i.default=O})(he);var me={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("value")&&(e.value=u.default.convertToType(r.value,Object)),r.hasOwnProperty("navigation")&&(e.navigation=u.default.convertToType(r.navigation,"Boolean")),r.hasOwnProperty("propagate")&&(e.propagate=u.default.convertToType(r.propagate,"Boolean"))),e}},{key:"validateJSON",value:function(r){return!0}}]),n}();S.prototype.value=void 0,S.prototype.navigation=void 0,S.prototype.propagate=void 0;var O=S;i.default=O})(me),function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=b(C),y=b(ie()),l=b(ye),p=b(he),v=b(me);function b(c){return c&&c.__esModule?c:{default:c}}function w(c){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},w(c)}function T(c,g){var h=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!h){if(Array.isArray(c)||(h=S(c))||g&&c&&typeof c.length=="number"){h&&(c=h);var s=0,d=function(){};return{s:d,n:function(){return s>=c.length?{done:!0}:{done:!1,value:c[s++]}},e:function(N){throw N},f:d}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
7
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=!0,_=!1,P;return{s:function(){h=h.call(c)},n:function(){var N=h.next();return m=N.done,N},e:function(N){_=!0,P=N},f:function(){try{!m&&h.return!=null&&h.return()}finally{if(_)throw P}}}}function S(c,g){if(c){if(typeof c=="string")return O(c,g);var h=Object.prototype.toString.call(c).slice(8,-1);if(h==="Object"&&c.constructor&&(h=c.constructor.name),h==="Map"||h==="Set")return Array.from(c);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return O(c,g)}}function O(c,g){(g==null||g>c.length)&&(g=c.length);for(var h=0,s=new Array(g);h<g;h++)s[h]=c[h];return s}function n(c,g){if(!(c instanceof g))throw new TypeError("Cannot call a class as a function")}function t(c,g){for(var h=0;h<g.length;h++){var s=g[h];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,e(s.key),s)}}function r(c,g,h){return g&&t(c.prototype,g),h&&t(c,h),Object.defineProperty(c,"prototype",{writable:!1}),c}function e(c){var g=o(c,"string");return w(g)==="symbol"?g:String(g)}function o(c,g){if(w(c)!=="object"||c===null)return c;var h=c[Symbol.toPrimitive];if(h!==void 0){var s=h.call(c,g||"default");if(w(s)!=="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(c)}var f=function(){function c(){n(this,c),c.initialize(this)}return r(c,null,[{key:"initialize",value:function(h){}},{key:"constructFromObject",value:function(h,s){return h&&(s=s||new c,h.hasOwnProperty("id")&&(s.id=u.default.convertToType(h.id,"Number")),h.hasOwnProperty("title")&&(s.title=u.default.convertToType(h.title,"String")),h.hasOwnProperty("href")&&(s.href=u.default.convertToType(h.href,"String")),h.hasOwnProperty("slug")&&(s.slug=u.default.convertToType(h.slug,"String")),h.hasOwnProperty("json")&&(s.json=u.default.convertToType(h.json,[y.default])),h.hasOwnProperty("depth")&&(s.depth=u.default.convertToType(h.depth,"Number")),h.hasOwnProperty("is_home")&&(s.is_home=u.default.convertToType(h.is_home,"Number")),h.hasOwnProperty("created_at")&&(s.created_at=u.default.convertToType(h.created_at,"Number")),h.hasOwnProperty("updated_at")&&(s.updated_at=u.default.convertToType(h.updated_at,"Number")),h.hasOwnProperty("is_visible")&&(s.is_visible=u.default.convertToType(h.is_visible,"Number")),h.hasOwnProperty("meta_json")&&(s.meta_json=l.default.constructFromObject(h.meta_json)),h.hasOwnProperty("properties")&&(s.properties=u.default.convertToType(h.properties,{String:v.default})),h.hasOwnProperty("uid")&&(s.uid=u.default.convertToType(h.uid,"String")),h.hasOwnProperty("type")&&(s.type=u.default.convertToType(h.type,"String")),h.hasOwnProperty("target")&&(s.target=u.default.convertToType(h.target,"String")),h.hasOwnProperty("container")&&(s.container=u.default.convertToType(h.container,"String")),h.hasOwnProperty("breadcrumb")&&(s.breadcrumb=u.default.convertToType(h.breadcrumb,[p.default]))),s}},{key:"validateJSON",value:function(h){if(h.title&&!(typeof h.title=="string"||h.title instanceof String))throw new Error("Expected the field `title` to be a primitive type in the JSON string but got "+h.title);if(h.href&&!(typeof h.href=="string"||h.href instanceof String))throw new Error("Expected the field `href` to be a primitive type in the JSON string but got "+h.href);if(h.slug&&!(typeof h.slug=="string"||h.slug instanceof String))throw new Error("Expected the field `slug` to be a primitive type in the JSON string but got "+h.slug);if(h.json){if(!Array.isArray(h.json))throw new Error("Expected the field `json` to be an array in the JSON data but got "+h.json);var s=T(h.json),d;try{for(s.s();!(d=s.n()).done;){var m=d.value;y.default.validateJSON(m)}}catch(N){s.e(N)}finally{s.f()}}if(h.meta_json&&l.default.validateJSON(h.meta_json),h.uid&&!(typeof h.uid=="string"||h.uid instanceof String))throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got "+h.uid);if(h.type&&!(typeof h.type=="string"||h.type instanceof String))throw new Error("Expected the field `type` to be a primitive type in the JSON string but got "+h.type);if(h.target&&!(typeof h.target=="string"||h.target instanceof String))throw new Error("Expected the field `target` to be a primitive type in the JSON string but got "+h.target);if(h.container&&!(typeof h.container=="string"||h.container instanceof String))throw new Error("Expected the field `container` to be a primitive type in the JSON string but got "+h.container);if(h.breadcrumb){if(!Array.isArray(h.breadcrumb))throw new Error("Expected the field `breadcrumb` to be an array in the JSON data but got "+h.breadcrumb);var _=T(h.breadcrumb),P;try{for(_.s();!(P=_.n()).done;){var A=P.value;p.default.validateJSON(A)}}catch(N){_.e(N)}finally{_.f()}}return!0}}]),c}();f.prototype.id=void 0,f.prototype.title=void 0,f.prototype.href=void 0,f.prototype.slug=void 0,f.prototype.json=void 0,f.prototype.depth=void 0,f.prototype.is_home=void 0,f.prototype.created_at=void 0,f.prototype.updated_at=void 0,f.prototype.is_visible=void 0,f.prototype.meta_json=void 0,f.prototype.properties=void 0,f.prototype.uid=void 0,f.prototype.type=void 0,f.prototype.target=void 0,f.prototype.container=void 0,f.prototype.breadcrumb=void 0;var a=f;i.default=a}(pe);var de={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=y(C);function y(n){return n&&n.__esModule?n:{default:n}}function l(n){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(n)}function p(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function v(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,w(e.key),e)}}function b(n,t,r){return t&&v(n.prototype,t),r&&v(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function w(n){var t=T(n,"string");return l(t)==="symbol"?t:String(t)}function T(n,t){if(l(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(l(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var S=function(){function n(){p(this,n),n.initialize(this)}return b(n,null,[{key:"initialize",value:function(r){}},{key:"constructFromObject",value:function(r,e){return r&&(e=e||new n,r.hasOwnProperty("version")&&(e.version=u.default.convertToType(r.version,"Number")),r.hasOwnProperty("updated_at")&&(e.updated_at=u.default.convertToType(r.updated_at,"Number"))),e}},{key:"validateJSON",value:function(r){return!0}}]),n}();S.prototype.version=void 0,S.prototype.updated_at=void 0;var O=S;i.default=O})(de);var Ce={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(oe);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"configWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=y.default;return this.apiClient.callApi("/config","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"config",value:function(){return this.configWithHttpInfo().then(function(r){return r.data})}}]),n}();i.default=O})(Ce);var Re={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(ae);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"entityBySlugWithHttpInfo",value:function(r,e){e=e||{};var o=null;if(r==null)throw new Error("Missing the required parameter 'slug' when calling entityBySlug");var f={slug:r},a={typeId:e.typeId},c={},g={},h=["ApiToken"],s=[],d=["application/json"],m=y.default;return this.apiClient.callApi("/entities/slug/{slug}","GET",f,a,c,g,o,h,s,d,m,null)}},{key:"entityBySlug",value:function(r,e){return this.entityBySlugWithHttpInfo(r,e).then(function(o){return o.data})}},{key:"entityByUniqueidWithHttpInfo",value:function(r){var e=null;if(r==null)throw new Error("Missing the required parameter 'uniqueid' when calling entityByUniqueid");var o={uniqueid:r},f={},a={},c={},g=["ApiToken"],h=[],s=["application/json"],d=y.default;return this.apiClient.callApi("/entities/uniqueid/{uniqueid}","GET",o,f,a,c,e,g,h,s,d,null)}},{key:"entityByUniqueid",value:function(r){return this.entityByUniqueidWithHttpInfo(r).then(function(e){return e.data})}}]),n}();i.default=O})(Re);var Ie={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(pe);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"homeWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=y.default;return this.apiClient.callApi("/pages/home","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"home",value:function(){return this.homeWithHttpInfo().then(function(r){return r.data})}},{key:"pageWithHttpInfo",value:function(r){r=r||{};var e=null,o={},f={slug:r.slug},a={},c={},g=["ApiToken"],h=[],s=["application/json"],d=y.default;return this.apiClient.callApi("/pages","GET",o,f,a,c,e,g,h,s,d,null)}},{key:"page",value:function(r){return this.pageWithHttpInfo(r).then(function(e){return e.data})}}]),n}();i.default=O})(Ie);var qe={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(V);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"searchWithHttpInfo",value:function(r){var e=null;if(r==null)throw new Error("Missing the required parameter 'query' when calling search");var o={},f={query:r},a={},c={},g=["ApiToken"],h=[],s=["application/json"],d=[y.default];return this.apiClient.callApi("/search","GET",o,f,a,c,e,g,h,s,d,null)}},{key:"search",value:function(r){return this.searchWithHttpInfo(r).then(function(e){return e.data})}}]),n}();i.default=O})(qe);var Je={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(V);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"sitemapWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=[y.default];return this.apiClient.callApi("/sitemap","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"sitemap",value:function(){return this.sitemapWithHttpInfo().then(function(r){return r.data})}}]),n}();i.default=O})(Je);var Me={};(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var u=l(C),y=l(de);function l(n){return n&&n.__esModule?n:{default:n}}function p(n){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(n)}function v(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function b(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,T(e.key),e)}}function w(n,t,r){return t&&b(n.prototype,t),r&&b(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}function T(n){var t=S(n,"string");return p(t)==="symbol"?t:String(t)}function S(n,t){if(p(n)!=="object"||n===null)return n;var r=n[Symbol.toPrimitive];if(r!==void 0){var e=r.call(n,t||"default");if(p(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(n)}var O=function(){function n(t){v(this,n),this.apiClient=t||u.default.instance}return w(n,[{key:"versionWithHttpInfo",value:function(){var r=null,e={},o={},f={},a={},c=["ApiToken"],g=[],h=["application/json"],s=y.default;return this.apiClient.callApi("/version","GET",e,o,f,a,r,c,g,h,s,null)}},{key:"version",value:function(){return this.versionWithHttpInfo().then(function(r){return r.data})}}]),n}();i.default=O})(Me),function(i){Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ApiClient",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(i,"Block",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(i,"BlockSlots",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(i,"ConfigApi",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(i,"ConfigResponse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(i,"ConfigResponseContainersValue",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(i,"ConfigResponseNitro",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(i,"EntitiesApi",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(i,"Entity",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(i,"EntityInterface",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(i,"EntityMetric",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(i,"EntityinterfaceInner",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(i,"Meta",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(i,"Page",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(i,"PageBreadcrumbInner",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(i,"PageProperty",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(i,"PagesApi",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(i,"PagesInner",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(i,"SearchApi",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(i,"SitemapApi",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(i,"VersionApi",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(i,"VersionResponse",{enumerable:!0,get:function(){return f.default}});var u=m(C),y=m(ie()),l=m(ke()),p=m(oe),v=m(ue),b=m(le),w=m(ae),T=m(se),S=m(ce),O=m(V),n=m(ye),t=m(pe),r=m(he),e=m(me),o=m(fe),f=m(de),a=m(Ce),c=m(Re),g=m(Ie),h=m(qe),s=m(Je),d=m(Me);function m(_){return _&&_.__esModule?_:{default:_}}}(Ue);const ft=/[\p{Lu}]/u,lt=/[\p{Ll}]/u,xe=/^[\p{Lu}](?![\p{Lu}])/gu,Be=/([\p{Alpha}\p{N}_]|$)/u,ve=/[_.\- ]+/,at=new RegExp("^"+ve.source),De=new RegExp(ve.source+Be.source,"gu"),ze=new RegExp("\\d+"+Be.source,"gu"),st=(i,u,y,l)=>{let p=!1,v=!1,b=!1,w=!1;for(let T=0;T<i.length;T++){const S=i[T];w=T>2?i[T-3]==="-":!0,p&&ft.test(S)?(i=i.slice(0,T)+"-"+i.slice(T),p=!1,b=v,v=!0,T++):v&&b&&lt.test(S)&&(!w||l)?(i=i.slice(0,T-1)+"-"+i.slice(T-1),b=v,v=!1,p=!0):(p=u(S)===S&&y(S)!==S,b=v,v=y(S)===S&&u(S)!==S)}return i},ct=(i,u)=>(xe.lastIndex=0,i.replace(xe,y=>u(y))),yt=(i,u)=>(De.lastIndex=0,ze.lastIndex=0,i.replace(De,(y,l)=>u(l)).replace(ze,y=>u(y)));function pt(i,u){if(!(typeof i=="string"||Array.isArray(i)))throw new TypeError("Expected the input to be `string | string[]`");if(u={pascalCase:!1,preserveConsecutiveUppercase:!1,...u},Array.isArray(i)?i=i.map(v=>v.trim()).filter(v=>v.length).join("-"):i=i.trim(),i.length===0)return"";const y=u.locale===!1?v=>v.toLowerCase():v=>v.toLocaleLowerCase(u.locale),l=u.locale===!1?v=>v.toUpperCase():v=>v.toLocaleUpperCase(u.locale);return i.length===1?ve.test(i)?"":u.pascalCase?l(i):y(i):(i!==y(i)&&(i=st(i,y,l,u.preserveConsecutiveUppercase)),i=i.replace(at,""),i=u.preserveConsecutiveUppercase?ct(i,y):y(i),u.pascalCase&&(i=l(i.charAt(0))+i.slice(1)),yt(i,l))}function ht(i,u,y){const l="virtual:flyo-components",p="\0"+l;return{name:"vite-plugin-flyo-components",async resolveId(v){if(v===l)return p},async load(v){if(v===p){const b=[];for(const[T,S]of Object.entries(u)){const O=await this.resolve("/"+i+"/"+S+".astro");O&&b.push(`export { default as ${pt(T)} } from "${O.id}"`)}let w=null;return y&&(w=await this.resolve("/"+i+"/"+y+".astro")),w?b.push(`export { default as fallback } from "${w.id}"`):b.push('export { default as fallback } from "@flyo/nitro-astro/src/components/FallbackComponent.astro"'),b.join(";")}}}}function mt(){return globalThis.flyoNitroInstance||console.error("flyoNitroInstance has not been initialized correctly"),globalThis.flyoNitroInstance}function dt(i){const u={accessToken:!1,liveEdit:!1,fallbackComponent:null,...i};return{name:"@flyo/nitro-astro",hooks:{"astro:config:setup":({injectScript:y,updateConfig:l})=>{l({vite:{plugins:[ht(i.componentsDir,i.components,i.fallbackComponent)]}}),y("page-ssr",`
8
8
  import { ApiClient } from '@flyo/nitro-js'
9
9
  var defaultClient = ApiClient.instance;
10
10
  defaultClient.defaultHeaders = {}
@@ -28,8 +28,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
28
28
  }
29
29
  return window;
30
30
  }
31
-
32
- function openBlockInFlyo(blockUid) {
31
+
32
+ window.openBlockInFlyo = function(blockUid) {
33
33
  getActualWindow().postMessage({
34
34
  action: 'openEdit',
35
35
  data: JSON.parse(JSON.stringify({item:{uid: blockUid}}))
@@ -19,8 +19,8 @@ function Ue(i) {
19
19
  });
20
20
  }), y;
21
21
  }
22
- var je = {};
23
- function Ke(i) {
22
+ var Ke = {};
23
+ function je(i) {
24
24
  throw new Error('Could not dynamically require "' + i + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
25
25
  }
26
26
  var N = {}, Z = { exports: {} }, Ae = { exports: {} };
@@ -76,7 +76,7 @@ var We = Ae.exports, $e = H;
76
76
  H.default = H;
77
77
  H.stable = Ne;
78
78
  H.stableStringify = Ne;
79
- var K = "[...]", ke = "[Circular]", B = [], M = [];
79
+ var j = "[...]", ke = "[Circular]", B = [], M = [];
80
80
  function Ce() {
81
81
  return {
82
82
  depthLimit: Number.MAX_SAFE_INTEGER,
@@ -112,11 +112,11 @@ function ee(i, u, y, l, p, d, b) {
112
112
  return;
113
113
  }
114
114
  if (typeof b.depthLimit < "u" && d > b.depthLimit) {
115
- z(K, i, u, p);
115
+ z(j, i, u, p);
116
116
  return;
117
117
  }
118
118
  if (typeof b.edgesLimit < "u" && y + 1 > b.edgesLimit) {
119
- z(K, i, u, p);
119
+ z(j, i, u, p);
120
120
  return;
121
121
  }
122
122
  if (l.push(i), Array.isArray(i))
@@ -166,11 +166,11 @@ function te(i, u, y, l, p, d, b) {
166
166
  return;
167
167
  }
168
168
  if (typeof b.depthLimit < "u" && d > b.depthLimit) {
169
- z(K, i, u, p);
169
+ z(j, i, u, p);
170
170
  return;
171
171
  }
172
172
  if (typeof b.edgesLimit < "u" && y + 1 > b.edgesLimit) {
173
- z(K, i, u, p);
173
+ z(j, i, u, p);
174
174
  return;
175
175
  }
176
176
  if (l.push(i), Array.isArray(i))
@@ -217,13 +217,13 @@ function Ve(i) {
217
217
  return i !== null && U(i) === "object";
218
218
  }
219
219
  var Ie = Ve;
220
- function j(i) {
220
+ function K(i) {
221
221
  "@babel/helpers - typeof";
222
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? j = function(y) {
222
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? K = function(y) {
223
223
  return typeof y;
224
- } : j = function(y) {
224
+ } : K = function(y) {
225
225
  return y && typeof Symbol == "function" && y.constructor === Symbol && y !== Symbol.prototype ? "symbol" : typeof y;
226
- }, j(i);
226
+ }, K(i);
227
227
  }
228
228
  var W = Ie, Xe = E;
229
229
  function E(i) {
@@ -248,7 +248,7 @@ E.prototype.serialize = function(i) {
248
248
  return this._serializer = i, this;
249
249
  };
250
250
  E.prototype.timeout = function(i) {
251
- if (!i || j(i) !== "object")
251
+ if (!i || K(i) !== "object")
252
252
  return this._timeout = i, this._responseTimeout = 0, this._uploadTimeout = 0, this;
253
253
  for (var u in i)
254
254
  if (Object.prototype.hasOwnProperty.call(i, u))
@@ -846,7 +846,7 @@ const lt = {}, at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
846
846
  name: "token"
847
847
  }
848
848
  }, this.defaultHeaders = {
849
- "User-Agent": "OpenAPI-Generator/1.0.0-beta.153/Javascript"
849
+ "User-Agent": "OpenAPI-Generator/1.0.0-beta.160/Javascript"
850
850
  }, this.timeout = 6e4, this.cache = !0, this.enableCookies = !1, typeof window > "u" && (this.agent = new u.default.agent()), this.requestAgent = null, this.plugins = null;
851
851
  }
852
852
  return w(t, [{
@@ -917,7 +917,7 @@ const lt = {}, at = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
917
917
  }, {
918
918
  key: "isFileParam",
919
919
  value: function(e) {
920
- if (typeof Ke == "function") {
920
+ if (typeof je == "function") {
921
921
  var o;
922
922
  try {
923
923
  o = we;
@@ -1388,7 +1388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1388
1388
  try {
1389
1389
  for (c.s(); !(g = c.n()).done; ) {
1390
1390
  var h = g.value;
1391
- y.default.validateJsonObject(h);
1391
+ y.default.validateJSON(h);
1392
1392
  }
1393
1393
  } catch (s) {
1394
1394
  c.e(s);
@@ -1642,7 +1642,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1642
1642
  try {
1643
1643
  for (a.s(); !(c = a.n()).done; ) {
1644
1644
  var g = c.value;
1645
- e.validateJsonObject(g);
1645
+ e.validateJSON(g);
1646
1646
  }
1647
1647
  } catch (h) {
1648
1648
  a.e(h);
@@ -1788,7 +1788,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1788
1788
  try {
1789
1789
  for (c.s(); !(g = c.n()).done; ) {
1790
1790
  var h = g.value;
1791
- y.default.validateJsonObject(h);
1791
+ y.default.validateJSON(h);
1792
1792
  }
1793
1793
  } catch (s) {
1794
1794
  c.e(s);
@@ -2747,7 +2747,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2747
2747
  try {
2748
2748
  for (s.s(); !(v = s.n()).done; ) {
2749
2749
  var m = v.value;
2750
- y.default.validateJsonObject(m);
2750
+ y.default.validateJSON(m);
2751
2751
  }
2752
2752
  } catch (C) {
2753
2753
  s.e(C);
@@ -2770,7 +2770,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2770
2770
  try {
2771
2771
  for (_.s(); !(P = _.n()).done; ) {
2772
2772
  var A = P.value;
2773
- p.default.validateJsonObject(A);
2773
+ p.default.validateJSON(A);
2774
2774
  }
2775
2775
  } catch (C) {
2776
2776
  _.e(C);
@@ -3125,7 +3125,7 @@ var xe = {};
3125
3125
  * Get Page by slug
3126
3126
  * This endpoint retrieves comprehensive information from a specified page using either a slug or a path. The slug refers to a unique identifier for the page, while the path is the slug with a leading slash. By providing either the slug or the path as input, the function will gather all the relevant details associated with the page.
3127
3127
  * @param {Object} opts Optional parameters
3128
- * @param {String} opts.slug The function retrieves a specific page by its slug. If no slug is provided, it automatically returns the homepage. Moreover, it seamlessly handles paths with subpages, allowing for nested URLs like \"testpage/subpage\". In this way, a forward slash (\"/\") within the path is recognized as a valid character and processed accordingly.
3128
+ * @param {String} [slug] The function retrieves a specific page by its slug. If no slug is provided, it automatically returns the homepage. Moreover, it seamlessly handles paths with subpages, allowing for nested URLs like \"testpage/subpage\". In this way, a forward slash (\"/\") within the path is recognized as a valid character and processed accordingly.
3129
3129
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Page} and HTTP response
3130
3130
  */
3131
3131
  }, {
@@ -3495,7 +3495,7 @@ var ze = {};
3495
3495
  function m(_) {
3496
3496
  return _ && _.__esModule ? _ : { default: _ };
3497
3497
  }
3498
- })(je);
3498
+ })(Ke);
3499
3499
  const st = /[\p{Lu}]/u, ct = /[\p{Ll}]/u, Te = /^[\p{Lu}](?![\p{Lu}])/gu, Fe = /([\p{Alpha}\p{N}_]|$)/u, de = /[_.\- ]+/, yt = new RegExp("^" + de.source), Pe = new RegExp(de.source + Fe.source, "gu"), Ee = new RegExp("\\d+" + Fe.source, "gu"), pt = (i, u, y, l) => {
3500
3500
  let p = !1, d = !1, b = !1, w = !1;
3501
3501
  for (let T = 0; T < i.length; T++) {
@@ -3536,7 +3536,7 @@ function dt(i, u, y) {
3536
3536
  let w = null;
3537
3537
  return y && (w = await this.resolve(
3538
3538
  "/" + i + "/" + y + ".astro"
3539
- )), w ? b.push(`export { default as fallback } from "${w.id}"`) : b.push('export { default as fallback } from "@flyo/nitro-astro/FallbackComponent.astro"'), b.join(";");
3539
+ )), w ? b.push(`export { default as fallback } from "${w.id}"`) : b.push('export { default as fallback } from "@flyo/nitro-astro/src/components/FallbackComponent.astro"'), b.join(";");
3540
3540
  }
3541
3541
  }
3542
3542
  };
@@ -3594,8 +3594,8 @@ function _t(i) {
3594
3594
  }
3595
3595
  return window;
3596
3596
  }
3597
-
3598
- function openBlockInFlyo(blockUid) {
3597
+
3598
+ window.openBlockInFlyo = function(blockUid) {
3599
3599
  getActualWindow().postMessage({
3600
3600
  action: 'openEdit',
3601
3601
  data: JSON.parse(JSON.stringify({item:{uid: blockUid}}))
package/package.json CHANGED
@@ -1,33 +1,13 @@
1
1
  {
2
2
  "name": "@flyo/nitro-astro",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Astro Framework",
5
5
  "main": "./dist/nitro-astro.js",
6
6
  "module": "./dist/nitro-astro.mjs",
7
7
  "files": [
8
- "dist"
8
+ "dist",
9
+ "src/components"
9
10
  ],
10
- "exports": {
11
- ".": {
12
- "import": "./dist/nitro-astro.mjs",
13
- "require": "./dist/nitro-astro.js"
14
- },
15
- "./FlyoNitroBlock.astro": {
16
- "types": "./src/components/FlyoNitroBlock.ts",
17
- "import": "./src/components/FlyoNitroBlock.ts",
18
- "require": "./src/components/FlyoNitroBlock.ts"
19
- },
20
- "./FlyoNitroPage.astro": {
21
- "types": "./src/components/FlyoNitroPage.ts",
22
- "import": "./src/components/FlyoNitroPage.ts",
23
- "require": "./src/components/FlyoNitroPage.ts"
24
- },
25
- "./FallbackComponent.astro": {
26
- "types": "./src/components/FallbackComponent.ts",
27
- "import": "./src/components/FallbackComponent.ts",
28
- "require": "./src/components/FallbackComponent.ts"
29
- }
30
- },
31
11
  "author": "Basil Suter <git@nadar.io>",
32
12
  "license": "MIT",
33
13
  "scripts": {
@@ -45,6 +25,6 @@
45
25
  "url": "https://github.com/flyocloud/nitro-astro"
46
26
  },
47
27
  "dependencies": {
48
- "@flyo/nitro-js": "^1.0.5"
28
+ "@flyo/nitro-js": "^1.0.6"
49
29
  }
50
30
  }
@@ -0,0 +1,11 @@
1
+ ---
2
+ interface Props {
3
+ block: object
4
+ }
5
+
6
+ const { block } = Astro.props
7
+ ---
8
+
9
+ <div style="margin: 20px 0; padding: 10px; border-radius: 5px; background-color: #DC143C; color: white;">
10
+ Can't find <strong>{block.component}</strong> in the Projects component folder.
11
+ </div>
@@ -0,0 +1,2 @@
1
+ import FallbackComponent from "./FallbackComponent.astro"
2
+ export default FallbackComponent
@@ -0,0 +1,29 @@
1
+ ---
2
+ import * as components from 'virtual:flyo-components'
3
+ import type { AstroComponentFactory } from "astro/dist/runtime/server"
4
+ import camelcase from "camelcase"
5
+
6
+ interface Props {
7
+ block: object;
8
+ [prop: string]: unknown;
9
+ }
10
+
11
+ const { block, ...props } = Astro.props;
12
+
13
+ /* @vite-ignore */
14
+ let Component: AstroComponentFactory | null = null
15
+
16
+ const key : string = camelcase(block.component)
17
+ const componentFound : boolean = key in components
18
+
19
+ if (componentFound) {
20
+ Component = components[key]
21
+ } else {
22
+ Component = components.fallback
23
+ }
24
+
25
+ ---
26
+
27
+ <div onclick={`openBlockInFlyo('${block.uid}')`}>
28
+ {Component && <Component block={block} {...props} />}
29
+ </div>
@@ -0,0 +1,2 @@
1
+ import FlyoNitroBlock from "./FlyoNitroBlock.astro";
2
+ export default FlyoNitroBlock;
@@ -0,0 +1,14 @@
1
+ ---
2
+ import FlyoNitroBlock from './FlyoNitroBlock.astro';
3
+
4
+ interface Props {
5
+ page: object;
6
+ }
7
+
8
+ const { page } = Astro.props
9
+
10
+ ---
11
+
12
+ {page.json.map((block: object) => (
13
+ <FlyoNitroBlock block={block} />
14
+ ))}
@@ -0,0 +1,2 @@
1
+ import FlyoNitroPage from "./FlyoNitroPage.astro";
2
+ export default FlyoNitroPage;