slice-machine-ui 1.26.1-beta.12 → 1.26.1-beta.13
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/out/404.html +1 -1
- package/out/_next/static/chunks/127-5f39b7de8178c2e4.js +1 -0
- package/out/_next/static/chunks/453-4e2d00a3515202f4.js +1 -0
- package/out/_next/static/chunks/46-bd45510ac2a839b5.js +10 -0
- package/out/_next/static/chunks/{91-1c3665ce38e58792.js → 91-aa2369249805fb5a.js} +1 -1
- package/out/_next/static/chunks/96-24fed6adc069e313.js +1 -0
- package/out/_next/static/chunks/pages/{_app-01bcd29a595cec3a.js → _app-2e45ed74db68cb0a.js} +2 -2
- package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-8bcc4d88f470d3f7.js → [customTypeId]-5b08515fec5e6668.js} +1 -1
- package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-8461ab4fcfaf0755.js → [pageTypeId]-41fc6d4f726fdfb9.js} +1 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-8c8d4de562fca8ac.js +1 -0
- package/out/_next/static/{svF8JPCb25QlsmymuzIiN → umd9mjV29cCbZplewdOPw}/_buildManifest.js +1 -1
- package/out/changelog.html +1 -1
- package/out/changes.html +1 -1
- package/out/custom-types/[customTypeId].html +1 -1
- package/out/custom-types.html +1 -1
- package/out/index.html +1 -1
- package/out/labs.html +1 -1
- package/out/page-types/[pageTypeId].html +1 -1
- package/out/settings.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation]/simulator.html +1 -1
- package/out/slices/[lib]/[sliceName]/[variation].html +1 -1
- package/out/slices.html +1 -1
- package/package.json +6 -6
- package/src/domain/__tests__/customType.test.ts +0 -184
- package/src/domain/__tests__/group.test.ts +161 -0
- package/src/domain/customType.ts +0 -191
- package/src/domain/group.ts +89 -0
- package/src/domain/slice.ts +24 -11
- package/src/legacy/lib/builders/CustomTypeBuilder/TabZone/index.tsx +4 -7
- package/src/legacy/lib/builders/SliceBuilder/FieldZones/index.tsx +27 -35
- package/src/legacy/lib/builders/common/Zone/Card/index.jsx +3 -0
- package/src/legacy/lib/builders/common/Zone/index.jsx +4 -7
- package/src/legacy/lib/models/common/Slice.ts +17 -3
- package/src/legacy/lib/models/common/widgets/Group/ListItem/index.jsx +51 -60
- package/src/legacy/lib/models/common/widgets/groupBuilderArray.ts +18 -0
- package/src/legacy/lib/models/common/widgets/sliceBuilderArray.ts +16 -28
- package/src/legacy/lib/models/common/widgets/withGroup.ts +1 -18
- package/src/utils/getContentTypeForTracking.ts +21 -0
- package/out/_next/static/chunks/207-f71df53ed0b0ac4d.js +0 -1
- package/out/_next/static/chunks/453-1a14e86de385fe7c.js +0 -1
- package/out/_next/static/chunks/46-d22d7a121254e31d.js +0 -8
- package/out/_next/static/chunks/96-33e38032f1e55366.js +0 -1
- package/out/_next/static/chunks/pages/slices/[lib]/[sliceName]/[variation]-217d0b0469d4320e.js +0 -1
- /package/out/_next/static/{svF8JPCb25QlsmymuzIiN → umd9mjV29cCbZplewdOPw}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[46],{15952:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(74982),o=n(23535),u=n(73985),a=n(79687),c=n(81542),f=r.__importDefault(n(3758)),l=/(\w+)\[\d+]/;function p(e){let t={id:e.id,type:e.typ,lang:e.language};return e.uid?{...t,uid:e.uid}:t}function d(e){return(t,n)=>{var r;if(!(0,i.isEmptyContent)(t))return(0,i.isUIDContent)(t)?c.UIDRenderer.renderV1(t):(r=t,((0,i.isGroupContent)(r)||(0,i.isNestableContent)(r))&&!i.EmptyContent.is(t))?(0,c.StaticWidgetRenderer)(e).renderV1(t,u.Fetch.extractGroupOrFieldIfAny(n)):(0,f.default)(e).renderV1(t,u.Fetch.extractSliceFetchIfAny(n))}}function s(e){return(t,n,r)=>(0,i.isSlicesContent)(n)&&"Slices"===t.type?(0,f.default)(e).renderV2(t,n,u.Fetch.extractSliceFetchIfAny(r)):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):(0,i.isUIDContent)(n)&&"UID"===t.type?c.UIDRenderer.renderV2(t,n):(0,i.isNestableContent)(n)&&o.NestableWidget.is(t)?(0,c.StaticWidgetRenderer)(e).renderV2(t,n,u.Fetch.extractGroupOrFieldIfAny(r)):h(e)(t)}function h(e){return t=>{switch(t.type){case"Choice":case"Slices":return(0,f.default)(e).renderDefault(t);case"UID":return;default:return(0,c.StaticWidgetRenderer)(e).renderDefault(t)}}}let m=e=>{var t,n,r;return{renderV1(t,n,r,o,u,c,f,s,h){var m,v,y;let _=(u[t.groupLangId]||[]).filter(e=>e.id!==t.id).map(e=>p(e)),b=((t,n,r)=>{let o={};for(let[u,a]of n)if(!(0,i.isUIDContent)(a)){let c=u.match(l),f=c&&c[1],p=f?c[1]:u,s=f?o[p]:void 0;if(void 0!==r){let h=r.fields[u];void 0!==h&&(f?o[p]=Array.isArray(s)?[...s,d(e)(a,h)]:[d(e)(a,h)]:o[p]=d(e)(a,h))}else f?o[p]=Array.isArray(s)?[...s,d(e)(a,void 0)]:[d(e)(a,void 0)]:o[p]=d(e)(a,void 0)}return{[t.type]:o}})(t,n,h);return{id:t.id,uid:null!==(m=t.data.uid)&&void 0!==m?m:null,url:null!==(v=e.LinkResolver.buildUrl({linkResolver:s,pageType:t.type,masterLang:r,brokenRoute:f,doc:t}))&&void 0!==v?v:null,type:t.type,href:e.urlRewriter.enforceCDN(o),tags:t.tags,first_publication_date:t.first_publication_date?(0,a.formatDateTime)(t.first_publication_date):null,last_publication_date:t.last_publication_date?(0,a.formatDateTime)(t.last_publication_date):null,slugs:t.data.slugs,linked_documents:[],lang:t.language,alternate_languages:_,data:b,...c?t.metadata:{}}},renderWidgetV1:d(e),renderWidgetV2:s(e),renderV2(t,n,r,o,u,c,f,d,m,v){var y,_;let b=Object.entries(t.fields).map(([t,n])=>{if("UID"===n.type)return;let r=o.find(([e])=>e===t),u=null==v?void 0:v.fields[t],a=t.match(l),c=Boolean(a&&a[1]),f=c?a[1]:t;if(r){let[,p]=r;return(0,i.isUIDContent)(p)?void 0:void 0===v||void 0!==u?[f,s(e)(n,p,u),c]:void 0}return void 0===v||void 0!==u?[f,h(e)(n),c]:void 0}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let o=e[n];if(o){if(Array.isArray(o))return{...e,[n]:[...o,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(o)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{}),S=(c[n.groupLangId]||[]).filter(e=>e.id!==n.id).map(e=>p(e));return{id:n.id,uid:null!==(y=n.data.uid)&&void 0!==y?y:null,url:null!==(_=e.LinkResolver.buildUrl({linkResolver:m,pageType:n.type,masterLang:r,brokenRoute:d,doc:n}))&&void 0!==_?_:null,type:n.type,href:e.urlRewriter.enforceCDN(u),tags:n.tags,first_publication_date:n.first_publication_date?(0,a.formatDateTime)(n.first_publication_date):null,last_publication_date:n.last_publication_date?(0,a.formatDateTime)(n.last_publication_date):null,slugs:n.data.slugs,linked_documents:[],lang:n.language,alternate_languages:S,data:b,...f?n.metadata:{}}},renderMocks(t,n){let r=n.reduce((e,[,t])=>{if(i.UIDContent.is(t))return t.value},void 0),u=Object.entries(t.fields).map(([t,r])=>{var u,a,p;if("UID"===r.type)return;let d=n.find(([e])=>e===t),s=t.match(l),m=Boolean(s&&s[1]),v=m?s[1]:t;if(!d)return[v,h(e)(r),m];return[v,(a=r,p=d[1],"SliceContentType"===p.__TYPE__&&"Slices"===a.type?(0,f.default)(e).renderMocks(a,p):(0,i.isGroupContent)(p)&&"Group"===a.type?(0,c.StaticWidgetRenderer)(e).renderMocks(a,p):(0,i.isNestableContent)(p)&&o.NestableWidget.is(a)?(0,c.StaticWidgetRenderer)(e).renderMocks(a,p):h(e)(a)),m]}).reduce((e,t)=>{if(t){let[n,r,i]=t;if(i){let o=e[n];if(o){if(Array.isArray(o))return{...e,[n]:[...o,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(o)} should be an Array`)}return{...e,[n]:[r]}}return{...e,[n]:r}}return e},{});return{id:"mock-doc-id",uid:r,url:r?`/${r}`:null,type:t.customTypeId,href:null,tags:[],first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T00:00:01+0000",slugs:[],linked_documents:[],lang:"en-us",alternate_languages:[],data:u}},renderDefaultWidget:h(e)}};t.default=m},88985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Models=t.DocumentRenderer=void 0;let r=n(87783);var i=n(15952);Object.defineProperty(t,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),t.Models=r.__importStar(n(73985)),t.Utils=r.__importStar(n(79687)),r.__exportStar(n(81542),t)},59527:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentContent=void 0;let r=n(74982),i=n(74982),o=n(23535),u=n(87412);t.DocumentContent=class{constructor(e,t){Object.defineProperty(this,"fieldTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"slugs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"customType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parsed",{enumerable:!0,configurable:!0,writable:!0,value:{}});let{widgets:n,types:r,slugs:o,uid:u}=i.DocumentLegacy.extractMetadata(e);this.fieldTypes=r,this.slugs=o,this.uid=u,this.widgets=n,this.customType=t}getWidget(e){let t=this.parsed[e];if(t)return t;let n=this.widgets[e],i=(()=>{let t=(0,r.WidgetLegacy)((0,r.defaultCtx)(e,this.fieldTypes)).decode(n);if(!t||(0,u.isLeft)(t))return;if(!this.customType)return t.right;let i=this.customType.fields[e];return(0,r.isSlicesContent)(t.right)&&o.StaticSlices.is(i)?(0,r.traverseSlices)({path:[{key:this.customType.customTypeId,type:"CustomType"},{key:e,type:"Widget"},],key:e,model:i,content:t.right})({transformSlice:r.migrateSliceItem}):t.right})();if(i)return this.parsed[e]=i,i}parseAll(){let e=i.DocumentLegacy._codec(this.fieldTypes).decode(this.widgets),t=(0,u.isRight)(e)?e.right:{},n=this.customType?(0,r.migrateDocument)(t,this.customType):t;return this.parsed=n,n}}},53264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMetadata=void 0;let r=n(87783),i=n(35002),o=r.__importStar(n(87830)),u=o.exact(o.intersection([o.type({title:o.string,description:o.string}),o.partial({imageURL:(0,i.nullable)(o.string)}),]));t.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:u}},72375:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=void 0;let r=n(87783),i=r.__importStar(n(87830));t.RelatedDocument=i.exact(i.intersection([i.type({typ:i.string,id:i.string,language:i.string,groupLangId:i.string}),i.partial({uid:i.union([i.string,i.null,i.undefined])}),]))},27380:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=t.DocumentMetadata=t.DocumentContent=t.ApiDocumentCodec=t.GroupLangId=void 0;let r=n(87783),i=n(8597),o=n(9554),u=n(42275),a=r.__importStar(n(87830)),c=n(23284),f=n(2932),l=n(59527),p=n(53264);t.GroupLangId=a.string;let d=a.exact(a.intersection([a.type({id:a.string,version:a.string,type:a.string,groupLangId:t.GroupLangId,tags:a.array(a.string),data:a.UnknownRecord,language:a.string}),a.partial({first_publication_date:i.Function.nullable(i.DateFromStringOrNumber),last_publication_date:i.Function.nullable(i.DateFromStringOrNumber),metadata:(0,c.withFallback)(i.Function.nullable(p.DocumentMetadata.codec),p.DocumentMetadata.empty)}),])),s=e=>(0,f.mapOutput)(d,t=>({id:t.id,version:t.version,type:t.type,groupLangId:t.groupLangId,tags:t.tags,data:new l.DocumentContent(t.data,e),language:t.language,first_publication_date:t.first_publication_date,last_publication_date:t.last_publication_date,metadata:t.metadata})),h=e=>new a.Type("DocCodec",e=>s().is(e),(t,n)=>(0,u.pipe)(d.validate(t,n),o.either.chain(t=>{let n=e&&e.find(e=>e.customTypeId===t.type);return a.success(s(n).encode(t))})),e=>e);t.ApiDocumentCodec=h;var m=n(59527);Object.defineProperty(t,"DocumentContent",{enumerable:!0,get:function(){return m.DocumentContent}});var v=n(53264);Object.defineProperty(t,"DocumentMetadata",{enumerable:!0,get:function(){return v.DocumentMetadata}});var y=n(72375);Object.defineProperty(t,"RelatedDocument",{enumerable:!0,get:function(){return y.RelatedDocument}})},15087:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiVersion=void 0,(n=t.ApiVersion||(t.ApiVersion={})).v1="v1",n.v2="v2",n.mocks="mocks"},43134:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.customParam=t.langParam=t.uidParam=t.staticParam=t.LinkResolver=t.Rule=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=i.type({isOptional:i.boolean,name:i.string,type:i.literal("custom")}),u=i.type({isOptional:i.boolean,type:i.literal("uid")}),a=i.type({isOptional:i.boolean,type:i.literal("lang")}),c=i.union([o,u,a]),f=i.type({value:i.string,type:i.literal("static")}),l=i.union([f,c]),p=i.type({trailingSlash:i.boolean,params:i.array(l)}),d=i.type({customTypeID:i.string,relationName:i.string,targetCustomTypeID:i.string}),s=i.record(i.string,i.array(d));t.Rule=i.type({pattern:p,resolvers:s}),t.LinkResolver=i.record(i.string,i.record(i.string,i.record(i.string,t.Rule))),t.staticParam=function(e){return{value:e,type:"static"}},t.uidParam=function(e){return{isOptional:e,type:"uid"}},t.langParam=function(e){return{isOptional:e,type:"lang"}},t.customParam=function(e,t){return{name:e,isOptional:t,type:"custom"}}},44273:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomTypeDef=void 0;let r=n(87783),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=n(78771),c=u.strict({id:u.string,definitions:u.array(a.WidgetDef)});t.CustomTypeDef=new u.Type("CustomTypeDef",e=>"object"==typeof e&&null!==e&&"customTypeId"in e,e=>(0,o.pipe)(c.decode(e),i.either.map(({id:e,definitions:t})=>({customTypeId:e,fields:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e)},52908:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(66106),l=a.strict({name:a.string,fields:a.array(f.NestableDef)});t.GroupDef=new a.Type("GroupDef",e=>(0,c.isFieldDef)(e)&&i.Group.is(e.def),e=>(0,u.pipe)(l.decode(e),o.either.map(({name:e,fields:t})=>({key:e,def:{type:"Group",config:{fields:t.reduce((e,t)=>({...e,[t.key]:t.def}),{})}}}))),e=>e)},52144:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({uid:a.string});t.UIDDef=new a.Type("UID",e=>(0,c.isFieldDef)(e)&&i.UID.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({uid:e})=>({key:e,def:{type:"UID"}}))),e=>e)},78771:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(52908),u=n(40646),a=n(68126),c=n(52144);t.WidgetDef=i.union([a.SlicesDef,o.GroupDef,c.UIDDef,u.NestableDef])},88476:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(52908),t),r.__exportStar(n(40646),t),r.__exportStar(n(68126),t),r.__exportStar(n(52144),t),r.__exportStar(n(78771),t)},63868:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({booleanField:a.string,config:a.strict({default_value:a.boolean})});t.BooleanDef=new a.Type("BooleanDef",e=>(0,c.isFieldDef)(e)&&i.BooleanField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({booleanField:e,config:t})=>({key:e,def:{type:"Boolean",config:t}}))),e=>e)},68294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({color:a.string});t.ColorDef=new a.Type("ColorDef",e=>(0,c.isFieldDef)(e)&&i.Color.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({color:e})=>({key:e,def:{type:"Color"}}))),e=>e)},43499:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({date:a.string});t.DateDef=new a.Type("DateDef",e=>(0,c.isFieldDef)(e)&&i.Date.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({date:e})=>({key:e,def:{type:"Date"}}))),e=>e)},56301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({embed:a.string});t.EmbedDef=new a.Type("EmbedDef",e=>(0,c.isFieldDef)(e)&&i.Embed.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({embed:e})=>({key:e,def:{type:"Embed"}}))),e=>e)},24256:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({geopoint:a.string});t.GeoPointDef=new a.Type("GeoPointDef",e=>(0,c.isFieldDef)(e)&&i.GeoPoint.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({geopoint:e})=>({key:e,def:{type:"GeoPoint"}}))),e=>e)},30245:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({image:a.string,config:a.strict({thumbnails:a.array(a.string)})});t.ImageDef=new a.Type("ImageDef",e=>(0,c.isFieldDef)(e)&&i.Image.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({image:e,config:t})=>({key:e,def:{type:"Image",config:{thumbnails:t.thumbnails.map(e=>({name:e}))}}}))),e=>e)},30923:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({integrationFields:a.string});t.IntegrationFieldDef=new a.Type("IntegrationFieldDef",e=>(0,c.isFieldDef)(e)&&i.IntegrationField.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({integrationFields:e})=>({key:e,def:{type:"IntegrationFields"}}))),e=>e)},17914:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultAnyLinkDef=t.AnyLinkDef=void 0;let r=n(87783),i=n(9554),o=n(14632),u=r.__importStar(n(87830)),a=u.partial({select:u.union([u.literal("any"),u.null,u.undefined])});t.AnyLinkDef=new u.Type("AnyLinkDef",e=>"any"===e.select,e=>(0,o.pipe)(a.decode(e),i.either.map(()=>({select:null}))),e=>e),t.defaultAnyLinkDef=function(){return{select:null}}},64049:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDocumentLinkDef=t.DocumentLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.DocumentLinkDef=i.strict({select:i.literal("document"),customtypes:i.readonlyArray(i.string)}),t.defaultDocumentLinkDef=function(){return{select:"document",customtypes:[]}}},10599:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaLinkDef=t.MediaLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.MediaLinkDef=i.strict({select:i.literal("media")}),t.defaultMediaLinkDef=function(){return{select:"media"}}},49612:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultWebLinkDef=t.WebLinkDef=void 0;let r=n(87783),i=r.__importStar(n(87830));t.WebLinkDef=i.strict({select:i.literal("web")}),t.defaultWebLinkDef=function(){return{select:"web"}}},38207:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isWebLinkDef=t.isDocumentLinkDef=t.isAnyLinkDef=t.isMediaLinkDef=t.defaultLink=t.LinkDef=void 0;let r=n(87783),i=n(44613),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(17914),l=n(64049),p=n(10599),d=n(49612),s=a.union([p.MediaLinkDef,l.DocumentLinkDef,d.WebLinkDef,f.AnyLinkDef]),h=a.strict({link:a.string,config:s});t.LinkDef=new a.Type("LinkDef",e=>(0,c.isFieldDef)(e)&&i.Link.is(e.def),e=>(0,u.pipe)(h.decode(e),o.either.map(({link:e,config:t})=>({key:e,def:{type:"Link",config:t}}))),e=>e),t.defaultLink=function(e){let t=(()=>{switch(e){case"document":return(0,l.defaultDocumentLinkDef)();case"media":return(0,p.defaultMediaLinkDef)();case"web":return(0,d.defaultWebLinkDef)();case null:return(0,f.defaultAnyLinkDef)()}})();return{type:"Link",config:t}},t.isMediaLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="media"},t.isAnyLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)===null},t.isDocumentLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="document"},t.isWebLinkDef=function(e){var t;return"Link"===e.type&&(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.select)==="web"},r.__exportStar(n(17914),t),r.__exportStar(n(64049),t),r.__exportStar(n(10599),t),r.__exportStar(n(49612),t)},66106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(63868),u=n(68294),a=n(43499),c=n(56301),f=n(24256),l=n(30245),p=n(30923),d=n(38207),s=n(56156),h=n(44135),m=n(36116),v=n(53335),y=n(8871),_=n(24698),b=n(49437);t.NestableDef=i.union([o.BooleanDef,u.ColorDef,a.DateDef,c.EmbedDef,f.GeoPointDef,l.ImageDef,p.IntegrationFieldDef,s.NumberDef,h.RangeDef,m.RichTextDef,v.SelectDef,y.SeparatorDef,_.TextDef,b.TimestampDef,d.LinkDef,])},56156:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({number:a.string});t.NumberDef=new a.Type("NumberDef",e=>(0,c.isFieldDef)(e)&&i.Number.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({number:e})=>({key:e,def:{type:"Number"}}))),e=>e)},44135:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({range:a.string});t.RangeDef=new a.Type("RangeDef",e=>(0,c.isFieldDef)(e)&&i.Range.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({range:e})=>({key:e,def:{type:"Range"}}))),e=>e)},36116:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({structuredtext:a.string});t.RichTextDef=new a.Type("RichTextDef",e=>(0,c.isFieldDef)(e)&&i.RichText.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({structuredtext:e})=>({key:e,def:{type:"StructuredText"}}))),e=>e)},53335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({select:a.string,config:a.strict({options:a.readonlyArray(a.string)})});t.SelectDef=new a.Type("SelectDef",e=>(0,c.isFieldDef)(e)&&i.Select.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({select:e,config:t})=>({key:e,def:{type:"Select",config:t}}))),e=>e)},8871:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({separator:a.string});t.SeparatorDef=new a.Type("SeparatorDef",e=>(0,c.isFieldDef)(e)&&i.Separator.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({separator:e})=>({key:e,def:{type:"Separator"}}))),e=>e)},24698:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({text:a.string});t.TextDef=new a.Type("TextDef",e=>(0,c.isFieldDef)(e)&&i.Text.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({text:e})=>({key:e,def:{type:"Text"}}))),e=>e)},49437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=a.strict({timestamp:a.string});t.TimestampDef=new a.Type("TimestampDef",e=>(0,c.isFieldDef)(e)&&i.Timestamp.is(e.def),e=>(0,u.pipe)(f.decode(e),o.either.map(({timestamp:e})=>({key:e,def:{type:"Timestamp"}}))),e=>e)},40646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(63868),t),r.__exportStar(n(68294),t),r.__exportStar(n(43499),t),r.__exportStar(n(56301),t),r.__exportStar(n(24256),t),r.__exportStar(n(30245),t),r.__exportStar(n(30923),t),r.__exportStar(n(38207),t),r.__exportStar(n(66106),t),r.__exportStar(n(56156),t),r.__exportStar(n(44135),t),r.__exportStar(n(36116),t),r.__exportStar(n(53335),t),r.__exportStar(n(8871),t),r.__exportStar(n(24698),t),r.__exportStar(n(49437),t)},3094:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(66106),p=a.strict({name:a.string,primary:a.array(l.NestableDef),items:f.GroupDef});t.CompositeSliceDef=new a.Type("CompositeSliceDef",e=>(0,c.isFieldDef)(e)&&i.CompositeSlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,primary:t,items:n})=>{var r;return{key:e,def:{type:"Slice","non-repeat":t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),repeat:null===(r=n.def.config)||void 0===r?void 0:r.fields}}})),e=>e)},58294:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySliceDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(40646),p=a.type({name:a.string,widget:a.union([f.GroupDef,l.NestableDef])});t.LegacySliceDef=new a.Type("LegacySliceDef",e=>(0,c.isFieldDef)(e)&&i.LegacySlice.is(e.def),e=>(0,u.pipe)(p.decode(e),o.either.map(({name:e,widget:t})=>({key:e,def:t.def}))),e=>e)},26669:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceDef=t.VariationDef=t.VariationPrimaryDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(52908),l=n(66106);t.VariationPrimaryDef=a.union([f.GroupDef,l.NestableDef]);let p=a.strict({id:a.string,primary:a.array(t.VariationPrimaryDef),items:a.array(l.NestableDef),version:a.string});t.VariationDef=new a.Type("VariationDef",e=>(0,c.hasType)(e)&&i.Variation.is(e),e=>(0,u.pipe)(p.decode(e),o.either.map(e=>({id:e.id,name:e.id,description:e.id,imageUrl:"",docURL:"",version:e.version,primary:e.primary.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{}),items:e.items.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}))),e=>e);let d=a.string,s=a.string,h=a.intersection([a.strict({name:a.string,variations:a.array(t.VariationDef)}),a.partial({legacyPaths:a.record(d,s)}),]);t.SharedSliceDef=new a.Type("SharedSliceDef",e=>(0,c.isFieldDef)(e)&&i.SharedSlice.is(e.def),e=>(0,u.pipe)(h.decode(e),o.either.map(({name:e,variations:t,legacyPaths:n})=>({key:e,def:{id:e,name:e,type:"SharedSlice",variations:t,...n?{legacyPaths:n}:{}}}))),e=>e)},53531:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceDef=void 0;let r=n(87783),i=r.__importStar(n(87830)),o=n(3094),u=n(58294),a=n(26669);t.SliceDef=i.union([a.SharedSliceDef,o.CompositeSliceDef,u.LegacySliceDef])},19183:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesDef=void 0;let r=n(87783),i=n(23535),o=n(9554),u=n(14632),a=r.__importStar(n(87830)),c=n(87956),f=n(53531),l=a.strict({name:a.string,slices:a.array(f.SliceDef)});t.SlicesDef=new a.Type("SlicesDef",e=>(0,c.isFieldDef)(e)&&i.StaticSlices.is(e.def),e=>(0,u.pipe)(l.decode(e),o.either.map(({name:e,slices:t})=>({key:e,def:{type:"Slices",config:{choices:t.reduce((e,{key:t,def:n})=>({...e,[t]:n}),{})}}}))),e=>e)},68126:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(3094),t),r.__exportStar(n(58294),t),r.__exportStar(n(26669),t),r.__exportStar(n(53531),t),r.__exportStar(n(19183),t)},32548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783);r.__exportStar(n(44273),t),r.__exportStar(n(88476),t),r.__exportStar(n(87956),t)},87956:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasType=t.isFieldDef=void 0,t.isFieldDef=function(e){return"object"==typeof e&&null!==e&&"key"in e&&"def"in e},t.hasType=function(e){return"object"==typeof e&&null!==e&&"type"in e}},35280:function(e,t,n){var r=n(48834).lW;function i(e){return{encode(t){let n=t.length;if(3>=r.byteLength(n.toString(),"utf8")){let i=`${n}`.padStart(3,"0");return e+i+t}throw Error(`ID is too long. Its size is ${n} and should be inferior to 1000`)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.IDEncoders=t.IDEncoder=t.decodeDocId=t.encodeDocId=void 0,t.encodeDocId=function(e,t){return`${e}%%${null!=t?t:""}`},t.decodeDocId=function(e,t){let[n,r]=e.split("%%");if(n&&r)return[n,r];if(n)return[n];throw Error(`Unable to read from for extension ${t} with encoded api key ${e}`)},t.IDEncoder=i,t.IDEncoders={documentLinks:i("=&="),documentUrls:i(">&<"),integrationFields:i("%!%")}},71659:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.extractSliceFetchIfAny=t.extractGroupOrFieldIfAny=t.DocRelationType=t.Docs=t.Doc=t.DocType=t.Simple=t.DocRelationC=t.GroupType=t.Slice=t.SharedSlice=t.SharedSliceType=t.CompositeSlice=t.CompositeSliceType=t.VariationC=t.SliceZone=t.SliceZoneType=t.FieldC=t.GroupOrFieldC=t.Group=t.SimpleField=t.SimpleFieldType=void 0;let r=n(87783),i=r.__importStar(n(87830));t.SimpleFieldType="SimpleField",t.SimpleField=i.strict({TYPE:i.literal(t.SimpleFieldType),name:i.string,legacy:i.boolean}),t.Group=i.recursion("Group",()=>i.strict({TYPE:i.literal(t.GroupType),name:i.string,fields:i.record(i.string,t.FieldC)})),t.GroupOrFieldC=i.recursion("GroupOrField",()=>i.union([t.Simple,t.Group])),t.FieldC=i.recursion("Field",()=>i.union([t.GroupOrFieldC,t.SliceZone])),t.SliceZoneType="SliceZone",t.SliceZone=i.recursion("SliceZone",()=>i.strict({TYPE:i.literal(t.SliceZoneType),name:i.string,slices:i.record(i.string,i.union([t.GroupOrFieldC,t.Slice]))})),t.VariationC=i.recursion("Variation",()=>i.strict({TYPE:i.literal("Variation"),nonRepeat:i.strict({fields:i.record(i.string,t.GroupOrFieldC)}),repeat:i.strict({fields:i.record(i.string,t.FieldC)})})),t.CompositeSliceType="CompositeSlice",t.CompositeSlice=i.strict({TYPE:i.literal(t.CompositeSliceType),nonRepeat:i.strict({fields:i.record(i.string,t.FieldC),TYPE:i.literal("NonRepeat")}),repeat:i.strict({fields:i.record(i.string,t.FieldC),TYPE:i.literal("Repeat")})}),t.SharedSliceType="SharedSlice",t.SharedSlice=i.strict({TYPE:i.literal(t.SharedSliceType),variations:i.record(i.string,t.VariationC)}),t.Slice=i.union([t.SharedSlice,t.CompositeSlice]),t.GroupType="Group",t.DocRelationC=i.recursion("DocRelation",()=>i.strict({TYPE:i.literal(t.DocRelationType),name:i.string,uuid:i.string,fields:i.record(i.string,i.record(i.string,t.FieldC))})),t.Simple=i.union([t.DocRelationC,t.SimpleField]),t.DocType="Doc",t.Doc=i.recursion("Field",()=>i.strict({TYPE:i.literal("Doc"),typ:i.string,fields:i.record(i.string,t.FieldC)})),t.Docs=i.recursion("Field",()=>i.strict({docs:i.record(i.string,i.union([t.DocRelationC,t.SimpleField,t.Group,t.SliceZone])),docRelationsMap:i.record(i.string,t.DocRelationC)})),t.DocRelationType="DocRelation",t.extractGroupOrFieldIfAny=function(e){return void 0!==e&&(e.TYPE===t.SimpleFieldType||e.TYPE===t.DocRelationType||e.TYPE===t.GroupType)?e:void 0},t.extractSliceFetchIfAny=function(e){if(void 0!==e&&e.TYPE===t.SliceZoneType)return e}},73985:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkResolver=t.Fetch=t.Extensions=t.ApiVersion=void 0;let r=n(87783);r.__exportStar(n(27380),t);var i=n(15087);Object.defineProperty(t,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),r.__exportStar(n(32548),t),t.Extensions=r.__importStar(n(35280)),t.Fetch=r.__importStar(n(71659));var o=n(43134);Object.defineProperty(t,"LinkResolver",{enumerable:!0,get:function(){return o.LinkResolver}})},79687:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatDate=t.formatDateTime=t.filterDouble=t.writeEmptyStringOrNull=t.renderIfNoFetchOrFetchDefined=void 0;let r=n(87783),i=r.__importStar(n(72720));t.renderIfNoFetchOrFetchDefined=function(e,t,n){if(void 0===e)return n(void 0);{let r=e[t];return void 0===r?i.none:n(r)}},t.writeEmptyStringOrNull=function(e,t){return null==e?t?"":null:e},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.isEmpty=function(e){for(let t in e)return!1;return!0}},937:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(65082)),o=e=>({renderV1:(t,n)=>({type:"Group",value:t.value.map(t=>(0,i.default)(e).renderObjectOfSimpleWidgetV1(t.value,null==n?void 0:n.fields))}),renderV2:(t,n,r)=>n.value.map(n=>{var o;return(0,i.default)(e).renderObjectOfSimpleWidgetV2(n.value,null==r?void 0:r.fields,(null===(o=t.config)||void 0===o?void 0:o.fields)||{},{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})}),renderDefault:e=>[],renderMocks:(t,n)=>n.value.map(n=>{var r,o;return(null===(r=t.config)||void 0===r?void 0:r.fields)?(0,i.default)(e).renderObjectOfSimpleWidgetMocks(n.value,null===(o=t.config)||void 0===o?void 0:o.fields):{}})});t.default=o},65082:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(74982),o=n(92425),u=r.__importStar(n(72720)),a=n(71659),c=n(79687),f=n(26041),l=r.__importDefault(n(32955));function p(e){return void 0!==e&&e.TYPE===a.SimpleFieldType?e:void 0}function d(e){return void 0!==e&&e.TYPE===a.DocRelationType?e:void 0}let s=e=>({renderV1(t,n){if((0,i.isRichTextContent)(t))return(0,f.StructuredTextRenderer)(e).renderV1(t,p(n));if((0,i.isImageContent)(t))return(0,f.ImageRenderer)(e).renderV1(t);if((0,i.isRangeContent)(t)||(0,i.isNumberContent)(t)||(0,i.isTimestampContent)(t)||(0,i.isDateContent)(t)||(0,i.isTextContent)(t)||(0,i.isColorContent)(t)||(0,i.isSelectContent)(t))return f.FieldRenderer.renderV1(t);if((0,i.isLinkContent)(t))return(0,f.LinkRenderer)(e).renderV1(t,d(n));if((0,i.isEmbedContent)(t))return f.EmbedRenderer.renderV1(t);else if((0,i.isGeoPointContent)(t))return f.GeoPointRenderer.renderV1(t);else if((0,i.isUIDContent)(t))return l.default.renderV1(t);else if((0,i.isIntegrationFieldContent)(t))return(0,f.IntegrationFieldsRenderer)(e).renderV1(t);else if((0,i.isSeparatorContent)(t))return f.SeparatorRenderer.renderV1(t);else if((0,i.isBooleanContent)(t))return f.BooleanRenderer.renderV1(t);else return null},renderV2(t,n,r){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,f.StructuredTextRenderer)(e).renderV2(t,n,p(r));if("Image"===t.type&&(0,i.isImageContent)(n))return(0,f.ImageRenderer)(e).renderV2(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,f.LinkRenderer)(e).renderV2(t,n,d(r));if("Embed"===t.type&&(0,i.isEmbedContent)(n))return f.EmbedRenderer.renderV2(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return f.GeoPointRenderer.renderV2(t,n);else if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,f.IntegrationFieldsRenderer)(e).renderV2(t,n);else if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return f.SeparatorRenderer.renderV2(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return f.BooleanRenderer.renderV2(t,n);else if((0,i.isRangeContent)(n)||(0,i.isNumberContent)(n)||(0,i.isTimestampContent)(n)||(0,i.isDateContent)(n)||(0,i.isTextContent)(n)||(0,i.isColorContent)(n)||(0,i.isSelectContent)(n))return f.FieldRenderer.renderV2(t,n);else return null},renderDefault(t){if("Link"===t.type)return(0,f.LinkRenderer)(e).renderDefault(t);if("Embed"===t.type)return f.EmbedRenderer.renderDefault(t);if("GeoPoint"===t.type)return f.GeoPointRenderer.renderDefault(t);if("StructuredText"===t.type)return(0,f.StructuredTextRenderer)(e).renderDefault(t);if("Image"===t.type)return(0,f.ImageRenderer)(e).renderDefault(t);else if("Separator"===t.type)return f.SeparatorRenderer.renderDefault(t);else if("Boolean"===t.type)return f.BooleanRenderer.renderDefault(t);else if("IntegrationFields"===t.type)return(0,f.IntegrationFieldsRenderer)(e).renderDefault(t);else return f.FieldRenderer.renderDefault(t)},renderMocks(t,n){if("StructuredText"===t.type&&(0,i.isRichTextContent)(n))return(0,f.StructuredTextRenderer)(e).renderMocks(t,n);if("Image"===t.type&&(0,i.isImageContent)(n))return(0,f.ImageRenderer)(e).renderMocks(t,n);if("Link"===t.type&&(0,i.isLinkContent)(n))return(0,f.LinkRenderer)(e).renderMocks(t,n);if("Embed"===t.type&&(0,i.isEmbedContent)(n))return f.EmbedRenderer.renderMocks(t,n);if("GeoPoint"===t.type&&(0,i.isGeoPointContent)(n))return f.GeoPointRenderer.renderMocks(t,n);else if("IntegrationFields"===t.type&&(0,i.isIntegrationFieldContent)(n))return(0,f.IntegrationFieldsRenderer)(e).renderMocks(t,n);else if("Separator"===t.type&&(0,i.isSeparatorContent)(n))return f.SeparatorRenderer.renderMocks(t,n);else if("Boolean"===t.type&&(0,i.isBooleanContent)(n))return f.BooleanRenderer.renderMocks(t,n);else if((0,i.isRangeContent)(n)&&"Range"===t.type||(0,i.isNumberContent)(n)&&"Number"===t.type||(0,i.isTimestampContent)(n)&&"Timestamp"===t.type||(0,i.isDateContent)(n)&&"Date"===t.type||(0,i.isTextContent)(n)&&"Text"===t.type||(0,i.isColorContent)(n)&&"Color"===t.type||(0,i.isSelectContent)(n)&&"Select"===t.type)return f.FieldRenderer.renderMocks(t,n);else return null},renderObjectOfSimpleWidgetV1(e,t){let n=e instanceof Array?e:Object.entries(e);return Object.fromEntries((0,o.compact)(n.map(([e,n])=>i.EmptyContent.is(n)?u.none:(0,c.renderIfNoFetchOrFetchDefined)(t,e,t=>u.some([e,this.renderV1(n,t)])))))},renderObjectOfSimpleWidgetV2(e,t,n,r,o){let a=e instanceof Array?Object.fromEntries(e):e,f={};return Object.entries(n).forEach(([e,n])=>{let l=a[e];if(void 0===l)t&&e in t||!t?f[e]=this.renderDefault(n):t&&"default"===r.withFetch&&(f[e]=this.renderDefault(n));else if(i.EmptyContent.is(l))t&&e in t?"default"===o.withFetchField?f[e]=this.renderDefault(n):"render"===o.withFetchField&&(f[e]=this.renderV2(n,l,t[e])):t?"default"===o.withFetch&&(f[e]=this.renderDefault(n)):"default"===o.default?f[e]=this.renderDefault(n):"render"===o.default&&(f[e]=this.renderV2(n,l));else{let p=(0,c.renderIfNoFetchOrFetchDefined)(t,e,e=>u.some(this.renderV2(n,l,e)));u.isSome(p)&&(f[e]=p.value)}}),f},renderObjectOfSimpleWidgetMocks(e,t){let n=e instanceof Array?Object.fromEntries(e):e,r={};return Object.entries(t).forEach(([e,t])=>{let o=n[e];if(void 0===o)r[e]=this.renderDefault(t);else if(i.EmptyContent.is(o))r[e]=this.renderDefault(t);else{let a=(0,c.renderIfNoFetchOrFetchDefined)(void 0,e,()=>u.some(this.renderMocks(t,o)));u.isSome(a)&&(r[e]=a.value)}}),r}});t.default=s},12706:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(74982),o=n(92425),u=r.__importStar(n(72720)),a=n(71659),c=n(79687),f=r.__importDefault(n(937)),l=r.__importDefault(n(65082));function p(e){return void 0!==e&&e.TYPE===a.GroupType?e:void 0}function d(e){return void 0!==e&&e.TYPE!==a.GroupType?e:void 0}let s=e=>({renderV1:(t,n)=>(0,i.isGroupContent)(t)?(0,f.default)(e).renderV1(t,p(n)):(0,l.default)(e).renderV1(t,d(n)),renderV2(t,n,r){return"Group"!==t.type&&(0,i.isNestableContent)(n)?(0,l.default)(e).renderV2(t,n,d(r)):"Group"===t.type&&(0,i.isGroupContent)(n)?(0,f.default)(e).renderV2(t,n,p(r)):this.renderDefault(t)},renderDefault:t=>"Group"===t.type?(0,f.default)(e).renderDefault(t):(0,l.default)(e).renderDefault(t),renderMocks(t,n){return(0,i.isNestableContent)(n)&&"Group"!==t.type?(0,l.default)(e).renderMocks(t,n):(0,i.isGroupContent)(n)&&"Group"===t.type?(0,f.default)(e).renderMocks(t,n):this.renderDefault(t)},renderObjectOfStaticWidgetV1(e,t){let n=e instanceof Array?e:Object.entries(e);return Object.fromEntries((0,o.compact)(n.map(([e,n])=>i.EmptyContent.is(n)?u.none:(0,c.renderIfNoFetchOrFetchDefined)(t,e,t=>u.some([e,this.renderV1(n,t)])))))},renderObjectOfStaticWidgetV2(e,t,n,r,o){let a=e instanceof Array?Object.fromEntries(e):e,f={};return Object.entries(n).forEach(([e,n])=>{let l=a[e];if(void 0===l)t&&e in t||!t?f[e]=this.renderDefault(n):t&&"default"===r.withFetch&&(f[e]=this.renderDefault(n));else if(i.EmptyContent.is(l))t&&e in t?"default"===o.withFetchField?f[e]=this.renderDefault(n):"render"===o.withFetchField&&(f[e]=this.renderV2(n,l,t[e])):t?"default"===o.withFetch&&(f[e]=this.renderDefault(n)):"default"===o.default?f[e]=this.renderDefault(n):"render"===o.default&&(f[e]=this.renderV2(n,l));else{let p=(0,c.renderIfNoFetchOrFetchDefined)(t,e,e=>u.some(this.renderV2(n,l,e)));u.isSome(p)&&(f[e]=p.value)}}),f},renderObjectOfStaticWidgetMocks(e,t){let n=e instanceof Array?Object.fromEntries(e):e,r={};return Object.entries(t).forEach(([e,t])=>{let o=n[e];if(void 0===o)r[e]=this.renderDefault(t);else if(i.EmptyContent.is(o))r[e]=this.renderDefault(t);else{let a=(0,c.renderIfNoFetchOrFetchDefined)(void 0,e,()=>u.some(this.renderMocks(t,o)));u.isSome(a)&&(r[e]=a.value)}}),r}});t.default=s},32955:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks:(e,t)=>t.value}},81542:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDRenderer=t.StaticWidgetRenderer=t.SimpleWidgetRenderer=t.GroupRenderer=void 0;let r=n(87783);var i=n(937);Object.defineProperty(t,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(n(26041),t);var o=n(65082);Object.defineProperty(t,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),r.__exportStar(n(94814),t);var u=n(12706);Object.defineProperty(t,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var a=n(32955);Object.defineProperty(t,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Boolean",value:e.value}),renderV2:(e,t)=>t.value,renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},89591:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Embed",value:{oembed:e.all}}),renderV2:(e,t)=>t.all,renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},49357:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(79687),i=/^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(?:(?:[+-]{1}[0-9]{2}:?[0-9]{2})|Z)$/,o=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function u(e){let[t,n,r]=[e[1],e[2],e[3]];return`${t.padStart(4,"0")}-${n.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}t.default={renderV1(e){let t={type:e.type,value:null};switch(e.type){case"Number":{let n=(0,r.filterDouble)(e.value);return{...t,value:n}}case"Date":try{let a=o.exec(e.value);if(a){let c=new Date(u(a));return{...t,value:(0,r.formatDate)(c)}}return t}catch(f){return console.warn(`Unable to render Date value with ${e.value}: ${f.toString()}`),t}case"Timestamp":try{if(i.test(e.value)){let l=new Date(e.value);return{...t,value:(0,r.formatDateTime)(l)}}return t}catch(p){return console.warn(`Unable to render Timestamp value with ${e.value}: ${p.toString()}`),t}default:return{...t,value:e.value}}},renderV2(e,t){switch(t.type){case"Number":return(0,r.filterDouble)(t.value);case"Date":try{let n=o.exec(t.value);if(n){let a=new Date(u(n));return(0,r.formatDate)(a)}return null}catch(c){return console.warn(`Unable to render Date value with ${t.value}: ${c.toString()}`),null}case"Timestamp":try{if(i.test(t.value)){let f=new Date(t.value);return(0,r.formatDateTime)(f)}return null}catch(l){return console.warn(`Unable to render Timestamp value with ${t.value}: ${l.toString()}`),null}default:return t.value}},renderDefault:e=>null,renderMocks(e,t){return this.renderV2(e,t)}}},42715:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"GeoPoint",value:{latitude:e.position.lat,longitude:e.position.lng}}),renderV2:(e,t)=>({latitude:t.position.lat,longitude:t.position.lng}),renderDefault:e=>({}),renderMocks(e,t){return this.renderV2(e,t)}}},6637:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(73985),i=n(79687);function o(e,t,n){let r="v2"===n?{id:e.origin.id,edit:{x:e.edit.crop.x,y:e.edit.crop.y,zoom:e.edit.zoom,background:e.edit.background}}:{};return{dimensions:{width:e.width,height:e.height},alt:(0,i.writeEmptyStringOrNull)(e.alt,t.emptyStringInsteadOfNull),copyright:(0,i.writeEmptyStringOrNull)(e.credits,t.emptyStringInsteadOfNull),url:t.urlRewriter.rewriteImageUrl(e),...r}}let u=e=>({renderV1(t){if(t.thumbnails){let n=Object.entries(t.thumbnails).reduce((t,[n,i])=>({...t,[n.toLowerCase()]:o(i,e,r.ApiVersion.v1)}),{});return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:n}}}return{type:"Image",value:{main:o(t,e,r.ApiVersion.v1),views:[]}}},renderV2(t,n){let i=o(n,e,r.ApiVersion.v2);if(n.thumbnails&&n.thumbnails){let u=Object.entries(n.thumbnails).reduce((t,[n,i])=>Object.assign(t,{[n]:o(i,e,r.ApiVersion.v2)}),{});return Object.assign(i,u)}return i},renderDefault(e){var t;return((null===(t=e.config)||void 0===t?void 0:t.thumbnails)||[]).reduce((e,{name:t})=>({...e,[t]:{}}),{})},renderMocks(e,t){return this.renderV2(e,t)}});t.default=u},6413:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1(t){try{return{type:"IntegrationFields",value:e.Extension.encoders.integrationFields.encode(t.value)}}catch(n){return{value:{}}}},renderV2(t,n){try{return e.Extension.encoders.integrationFields.encode(n.value)}catch(r){return{}}},renderDefault:e=>null,renderMocks(e){return this.renderDefault(e)}});t.default=n},50335:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BROKEN_CUSTOM_TYPE=void 0;let r=n(73985);function i(e){return{id:e,type:t.BROKEN_CUSTOM_TYPE,tags:[],isBroken:!0}}t.BROKEN_CUSTOM_TYPE="broken_type";let o=e=>({renderV1(t,n){try{let r=e.Extension.DocEncoder.encodeDocId(t.id,null==n?void 0:n.uuid);return{type:"Link.document",value:e.Extension.encoders.documentLinks.encode(r)}}catch(u){var o;return{value:i(o=t.id)}}},renderV2(t,n,r){try{let o=e.Extension.DocEncoder.encodeDocId(n.id,null==r?void 0:r.uuid);return e.Extension.encoders.documentLinks.encode(o)}catch(u){return i(n.id)}},renderMocks(e,t){let n=r.DocumentLinkDef.is(e)&&e.customtypes[0]||"mock";return{id:t.id,link_type:"Document",type:n,tags:[],lang:"en-us",slug:null,first_publication_date:"1970-01-01T00:00:01+0000",last_publication_date:"1970-01-01T01:00:00+0000"}}});t.default=o},15802:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1(e){let t="string"==typeof e.target?{target:e.target}:{};return{type:"Link.web",value:{url:e.url,...t}}},renderV2(e,t){let n={link_type:"Web",url:t.url};return Object.assign(n,"string"==typeof t.target?{target:t.target}:{})},renderMocks(e,t){return this.renderV2(e,t)}}},50632:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1:t=>({type:"Link.file",value:{file:{name:t.name,kind:t.kind,url:e.urlRewriter.rewriteFileUrl(t.url),size:t.size}}}),renderV2:(t,n)=>({link_type:"Media",id:n.id,name:n.name,kind:n.kind,url:e.urlRewriter.rewriteFileUrl(n.url),size:n.size}),renderMocks:(e,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB"})});t.default=n},83434:function(e,t){Object.defineProperty(t,"__esModule",{value:!0});let n=e=>({renderV1:t=>({type:"Link.image",value:{image:{name:t.name,kind:t.kind,url:e.urlRewriter.optimizeImageUrl(t.url),size:t.size,height:t.height,width:t.width}}}),renderV2:(t,n)=>({id:n.id,link_type:"Media",name:n.name,kind:n.kind,url:e.urlRewriter.optimizeImageUrl(n.url),size:n.size,height:n.height,width:n.width}),renderMocks:(e,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB",height:"1920px",width:"1080px"})});t.default=n},57777:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=n(87783),i=n(73985),o=r.__importDefault(n(50335));t.DocumentLinkRenderer=o.default;let u=r.__importDefault(n(15802));t.ExternalLinkRenderer=u.default;let a=r.__importDefault(n(50632));t.FileLinkRenderer=a.default;let c=r.__importDefault(n(83434));t.ImageLinkRenderer=c.default;let f=e=>({renderV1(t,n){if("ImageLink"===t.value.__TYPE__)return(0,c.default)(e).renderV1(t.value);if("DocumentLink"===t.value.__TYPE__)return(0,o.default)(e).renderV1(t.value,n);if("FileLink"===t.value.__TYPE__)return(0,a.default)(e).renderV1(t.value);if("ExternalLink"===t.value.__TYPE__)return u.default.renderV1(t.value);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,n,r){return"ImageLink"===n.value.__TYPE__&&((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))?(0,c.default)(e).renderV2(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,o.default)(e).renderV2(t.config,n.value,r):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,a.default)(e).renderV2(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?u.default.renderV2(t.config,n.value):this.renderDefault(t)},renderDefault(e){var t;switch(null===(t=e.config)||void 0===t?void 0:t.select){case"media":return{link_type:"Media"};case"document":return{link_type:"Document"};case"web":return{link_type:"Web"};default:return{link_type:"Any"}}},renderMocks(t,n){return"ImageLink"===n.value.__TYPE__&&((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))?(0,c.default)(e).renderMocks(t.config,n.value):((0,i.isDocumentLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"DocumentLink"===n.value.__TYPE__?(0,o.default)(e).renderMocks(t.config,n.value):((0,i.isMediaLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"FileLink"===n.value.__TYPE__?(0,a.default)(e).renderMocks(t.config,n.value):((0,i.isWebLinkDef)(t)||(0,i.isAnyLinkDef)(t))&&"ExternalLink"===n.value.__TYPE__?u.default.renderMocks(t.config,n.value):this.renderDefault(t)}});t.default=f},97562:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:e=>({type:"Separator"}),renderV2:(e,t)=>!0,renderDefault:e=>!0,renderMocks(e,t){return this.renderV2(e,t)}}},83775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(74982),o=r.__importStar(n(87412)),u=n(73985),a=n(73985),c=n(79687),f=r.__importDefault(n(57777));function l(e){if((0,i.isLinkContent)(e))switch(e.value.__TYPE__){case"DocumentLink":return"document";case"ExternalLink":return"web";case"FileLink":case"ImageLink":return"media";default:return null}throw Error(`[UNREACHABLE] unknown Link type for ${JSON.stringify(e)}`)}function p(e,t,n){return t===u.ApiVersion.v1?(0,f.default)(n).renderV1(e,void 0):t===u.ApiVersion.v2?(0,f.default)(n).renderV2((0,a.defaultLink)(l(e)),e,void 0):t===u.ApiVersion.mocks?(0,f.default)(n).renderMocks((0,a.defaultLink)(l(e)),e):void 0}let d=e=>({renderBlock:t=>n=>{if((0,i.checkImageBlock)(t)){let r=(()=>{if(t.data.linkTo){let r={__TYPE__:"LinkContent",value:t.data.linkTo};return{linkTo:p(r,n,e)}}return{}})(),a=t.label?{label:t.label}:{},f=t.direction?{direction:t.direction}:{},l=n===u.ApiVersion.v2?{id:t.data.origin.id,edit:{x:t.data.edit.crop.x,y:t.data.edit.crop.y,zoom:t.data.edit.zoom,background:t.data.edit.background}}:{};return{type:"image",url:e.urlRewriter.rewriteImageUrl(t.data),alt:(0,c.writeEmptyStringOrNull)(t.data.alt,e.emptyStringInsteadOfNull),copyright:(0,c.writeEmptyStringOrNull)(t.data.credits,e.emptyStringInsteadOfNull),dimensions:{width:t.data.width,height:t.data.height},...l,...r,...a,...f}}if((0,i.checkEmbedBlock)(t)){let d=t.label?{label:t.label}:{},s=t.direction?{direction:t.direction}:{};return{type:"embed",oembed:t.data.all,...d,...s}}{let h=t.label?{label:t.label}:{},m=t.direction?{direction:t.direction}:{},v=(t.content.spans||[]).map(t=>{let r={start:t.start,end:t.end,type:t.type};if("hyperlink"===t.type){let u=i.Link.decode(t.data),a=(()=>{if(o.isRight(u)){let t={__TYPE__:"LinkContent",value:u.right};return p(t,n,e)}return{}})();return{...r,data:a}}return"label"===t.type?{...r,data:{label:"string"==typeof t.data?t.data:""}}:r});return{type:t.type,text:t.content.text,...h,spans:v,...m}}}});t.default=d},558:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(14632),o=r.__importStar(n(72720)),u=n(73985),a=r.__importDefault(n(83775));function c(e,t){let n=(0,i.pipe)(o.fromNullable(e.value.find(e=>e.type.startsWith("heading"))),o.alt(()=>o.fromNullable(e.value.find(e=>"embed"!==e.type&&"image"!==e.type))),o.map(e=>[e]),o.getOrElse(()=>[]));return t({__TYPE__:"StructuredTextContent",value:n})}let f=e=>({renderV1(t,n){let r=t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1));return void 0!==n&&n.legacy?c(t,t=>t.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(t,n,r){return void 0!=r&&r.legacy?c(n,e=>this.renderV2(t,e,void 0)):n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.v2))},renderDefault:e=>[],renderMocks:(t,n)=>n.value.map(t=>(0,a.default)(e).renderBlock(t)(u.ApiVersion.mocks))});t.default=f},26041:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.StructuredTextRenderer=t.SeparatorRenderer=t.LinkRenderer=t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=t.IntegrationFieldsRenderer=t.ImageRenderer=t.GeoPointRenderer=t.FieldRenderer=t.EmbedRenderer=t.BooleanRenderer=void 0;var i=n(7796);Object.defineProperty(t,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(89591);Object.defineProperty(t,"EmbedRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(49357);Object.defineProperty(t,"FieldRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(42715);Object.defineProperty(t,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6637);Object.defineProperty(t,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=n(6413);Object.defineProperty(t,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=n(57777);Object.defineProperty(t,"DocumentLinkRenderer",{enumerable:!0,get:function(){return l.DocumentLinkRenderer}}),Object.defineProperty(t,"ExternalLinkRenderer",{enumerable:!0,get:function(){return l.ExternalLinkRenderer}}),Object.defineProperty(t,"FileLinkRenderer",{enumerable:!0,get:function(){return l.FileLinkRenderer}}),Object.defineProperty(t,"ImageLinkRenderer",{enumerable:!0,get:function(){return l.ImageLinkRenderer}}),Object.defineProperty(t,"LinkRenderer",{enumerable:!0,get:function(){return r(l).default}});var p=n(97562);Object.defineProperty(t,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=n(558);Object.defineProperty(t,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}})},24485:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(71659),o=n(79687),u=r.__importDefault(n(65082)),a=e=>({renderV1(t,n){var r,i;let a=null===(r=null==n?void 0:n.repeat)||void 0===r?void 0:r.fields,c=null===(i=null==n?void 0:n.nonRepeat)||void 0===i?void 0:i.fields,f=t.repeat.flatMap(t=>{let n=(0,u.default)(e).renderObjectOfSimpleWidgetV1(t.value,a);return(0,o.isEmpty)(n)?[]:[n]}),l=(0,u.default)(e).renderObjectOfSimpleWidgetV1(t.nonRepeat,c);return{"non-repeat":l,repeat:f}},renderV2(t,n,r){var o;let a=void 0===r?void 0:{TYPE:i.GroupType,name:t.type,fields:r.repeat.fields},c=null===(o=null==r?void 0:r.nonRepeat)||void 0===o?void 0:o.fields,f=n.repeat.map(n=>(0,u.default)(e).renderObjectOfSimpleWidgetV2(n.value,null==a?void 0:a.fields,t.repeat||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"})),l=(0,u.default)(e).renderObjectOfSimpleWidgetV2(n.nonRepeat,c,t["non-repeat"]||{},{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"});return{primary:l,items:f}},renderDefault:e=>({}),renderMocks(t,n){let r=n.repeat.map(n=>(0,u.default)(e).renderObjectOfSimpleWidgetMocks(n.value,t.repeat||{})),i=(0,u.default)(e).renderObjectOfSimpleWidgetMocks(n.nonRepeat,t["non-repeat"]||{});return{primary:i,items:r}}});t.default=a},68422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=r.__importDefault(n(65082)),o=r.__importDefault(n(12706));function u(e,t,n){var r,i,o;return null===(o=null===(i=null===(r=null==n?void 0:n.variations)||void 0===r?void 0:r[e])||void 0===i?void 0:i[t])||void 0===o?void 0:o.fields}let a=e=>({renderV1(t,n){let r=t.items.map(r=>(0,i.default)(e).renderObjectOfSimpleWidgetV1(r.value,u(t.variation,"repeat",n))),a=(0,o.default)(e).renderObjectOfStaticWidgetV1(t.primary,u(t.variation,"nonRepeat",n));return{variation:t.variation,items:r,primary:a}},renderV2(t,n,r){let a=t.variations.find(e=>e.id===n.variation);if(void 0===a)return this.renderDefault(t);let c=n.items.map(t=>(0,i.default)(e).renderObjectOfSimpleWidgetV2(t.value,u(n.variation,"repeat",r),a.items||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),f=(0,o.default)(e).renderObjectOfStaticWidgetV2(n.primary,u(n.variation,"nonRepeat",r),a.primary||{},{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:n.variation,version:a.version,items:c,primary:f}},renderDefault:e=>({}),renderMocks(t,n){let r=t.variations.find(e=>e.id===n.variation);if(void 0===r)return this.renderDefault(t);let u=n.items.map(t=>(0,i.default)(e).renderObjectOfSimpleWidgetMocks(t.value,r.items||{})),a=(0,o.default)(e).renderObjectOfStaticWidgetMocks(n.primary,r.primary||{});return{variation:n.variation,version:r.version,items:u,primary:a}}});t.default=a},57962:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(74982),o=r.__importStar(n(72720)),u=r.__importDefault(n(12706)),a=e=>({renderV1:(t,n)=>t.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV1(t,n)}),renderV2:(t,n,r)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderV2(t,n,r)}),renderDefault:e=>({}),renderMocks:(t,n)=>n.__TYPE__===i.EmptyContentType?o.none:o.some({value:(0,u.default)(e).renderMocks(t,n)})});t.default=a},6324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(74982),o=n(23535),u=r.__importStar(n(72720)),a=n(71659),c=r.__importDefault(n(24485)),f=r.__importDefault(n(68422)),l=r.__importDefault(n(57962)),p={extractCompositeSlice(e){if(void 0!==e&&e.TYPE===a.CompositeSliceType)return e},extractSharedSlice(e){if(void 0!==e&&e.TYPE===a.SharedSliceType)return e},extractGroupOrField(e){if(void 0!==e&&e.TYPE!==a.CompositeSliceType&&e.TYPE!==a.SharedSliceType)return e}},d=e=>({renderV1:(t,n)=>(0,i.isCompositeSliceContent)(t)?u.some((0,c.default)(e).renderV1(t,p.extractCompositeSlice(n))):(0,i.isSharedSliceContent)(t)?u.some((0,f.default)(e).renderV1(t,p.extractSharedSlice(n))):(0,l.default)(e).renderV1(t,p.extractGroupOrField(n)),renderV2(t,n,r){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderV2(t,n,p.extractCompositeSlice(r))):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderV2(t,n,p.extractSharedSlice(r))):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderV2(t,n,p.extractGroupOrField(r)):u.some(this.renderDefault(t))},renderDefault:e=>({}),renderMocks(t,n){return(0,i.isCompositeSliceContent)(n)&&o.CompositeSlice.is(t)?u.some((0,c.default)(e).renderMocks(t,n)):(0,i.isSharedSliceContent)(n)&&o.SharedSlice.is(t)?u.some((0,f.default)(e).renderMocks(t,n)):(0,i.isSimpleSliceContent)(n)&&o.LegacySlice.is(t)?(0,l.default)(e).renderMocks(t,n):u.some(this.renderDefault(t))}});t.default=d},3758:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(87783),i=n(74982),o=n(42275),u=n(92425),a=r.__importStar(n(20492)),c=n(60130),f=n(79687),l=r.__importDefault(n(6324));function p(e,t){let n=RegExp(`^(${t})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return e.match(n)?e:`${t}$${(0,c.v4)()}`}let d=e=>({renderV1:(t,n)=>({type:"SliceZone",value:(function(e,t,n){let r=null==t?void 0:t.slices;return(0,u.compact)(e.value.map(e=>(0,o.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,e.key,t=>(0,l.default)(n).renderV1(e.widget,t)),a.map(t=>[e,t]))))})(t,n,e).map(([e,t])=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null,type:"Slice"}})}),renderV2(t,n,r){var c;let d=Object.fromEntries(Object.entries((null===(c=t.config)||void 0===c?void 0:c.choices)||{}).map(([e,t])=>[e,t])),s=null==r?void 0:r.slices;return(0,u.compact)(n.value.map(t=>(0,f.renderIfNoFetchOrFetchDefined)(s,t.name,n=>(function(e,t,n,r){if("__TYPE__"in e.widget&&e.widget.__TYPE__===i.EmptyContentType||!(e.name in r))return a.none;{let u=r[e.name];return u?(0,o.pipe)((0,l.default)(n).renderV2(u,e.widget,t),a.map(t=>{var n;return{...t,id:p(e.key,e.name),slice_type:e.name,slice_label:null!==(n=e.maybeLabel)&&void 0!==n?n:null}})):a.none}})(t,n,e,d))))},renderDefault:e=>[],renderMocks(e,t){return this.renderV2(e,t)}});t.default=d},94814:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetRenderer=t.SlicesRenderer=t.SimpleSliceRenderer=t.SharedSliceRenderer=t.CompositeSliceRenderer=void 0;var i=n(24485);Object.defineProperty(t,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var o=n(68422);Object.defineProperty(t,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var u=n(57962);Object.defineProperty(t,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var a=n(3758);Object.defineProperty(t,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=n(6324);Object.defineProperty(t,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},53429:function(e,t,n){n.d(t,{N:function(){return f}});var r,i,o=n(2784),u={},a={get exports(){return u},set exports(g){u=g}},c={};function f(e,t){return Array(e).fill("").map((e,n)=>u.jsx(o.Fragment,{children:t},n))}(i=a).exports=function(){if(r)return c;r=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function a(t,r,o){var a,c={},f=null,l=null;for(a in void 0!==o&&(f=""+o),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(l=r.ref),r)n.call(r,a)&&!u.hasOwnProperty(a)&&(c[a]=r[a]);if(t&&t.defaultProps)for(a in r=t.defaultProps)void 0===c[a]&&(c[a]=r[a]);return{$$typeof:e,type:t,key:f,ref:l,props:c,_owner:i.current}}return c.Fragment=t,c.jsx=a,c.jsxs=a,c}()},1611:function(e,t,n){n.d(t,{WY:function(){return i},xb:function(){return a}});var r=n(86579);async function i(e,t){let{okType:n,signal:i,headers:a,body:c,timeout:f=15e3,...l}=t,p=new Headers(a);p.has("Content-Type")||p.set("Content-Type","application/json"),"multipart/form-data"===p.get("Content-Type")&&p.delete("Content-Type");let d=u();d&&p.set("Authorization",`Bearer ${d}`);let s="application/json"===p.get("Content-Type")?JSON.stringify(c):c,h=!1;try{let m=t.method&&"GET"!==t.method?void 0:new AbortController,v=function(e){let t=new AbortController;function n(){for(let r of(t.abort(),e))r.removeEventListener("abort",n)}for(let r of e){if(r.aborted){n();break}r.addEventListener("abort",n)}return t.signal}([null==m?void 0:m.signal,i].filter(r.$));m&&setTimeout(()=>{h=!0,m.abort()},f);let y=await fetch(e,{...l,body:s,headers:p,signal:v}),{status:_}=y,b=y.clone(),S=await y.json().catch(e=>b.text());if(y.ok){let T=n.safeParse(S);if(!T.success)throw new o({type:"validation",status:_,cause:T.error});return T.data}throw new o({type:"http",status:_,body:S})}catch(w){var I,x;throw(I=w,I instanceof o)?w:new o((x=w,x instanceof DOMException&&"AbortError"===x.name)?{type:h?"timeout":"abort"}:{type:"unknown",cause:w})}}class o extends Error{constructor(e){super(JSON.stringify(e,null,2)),this.detail=e,this.name="RequestError"}}let u=()=>"";function a(e){return"dev"===e?"same-origin":"include"}},16247:function(e,t,n){n.d(t,{u:function(){return i}});var r=n(77252);function i(e){let{documentId:t,versionId:n,env:i,status:o,releaseId:u}=e,a=(0,r.aO)({params:{s:o,v:n,r:u}}),c=new URLSearchParams(a).toString();return`${"dev"===i?"":"/builder"}/pages/${t}?${c}`??0}},661:function(e,t,n){n.d(t,{fW:function(){return tv},EK:function(){return ty},Ag:function(){return tT},JY:function(){return tR},Mi:function(){return tx},W7:function(){return tm},Vu:function(){return tg}}),(e9=tn||(tn={})).assertEqual=e=>e,e9.assertIs=function(e){},e9.assertNever=function(e){throw Error()},e9.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e9.getValidEnumValues=e=>{let t=e9.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),n={};for(let r of t)n[r]=e[r];return e9.objectValues(n)},e9.objectValues=e=>e9.objectKeys(e).map(function(t){return e[t]}),e9.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e9.find=(e,t)=>{for(let n of e)if(t(n))return n},e9.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e9.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e9.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t,(e6=tr||(tr={})).mergeShapes=(e,t)=>({...e,...t});let r=tn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set",]),i=e=>{switch(typeof e){case"undefined":return r.undefined;case"string":return r.string;case"number":return isNaN(e)?r.nan:r.number;case"boolean":return r.boolean;case"function":return r.function;case"bigint":return r.bigint;case"symbol":return r.symbol;case"object":if(Array.isArray(e))return r.array;if(null===e)return r.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return r.promise;if("undefined"!=typeof Map&&e instanceof Map)return r.map;if("undefined"!=typeof Set&&e instanceof Set)return r.set;if("undefined"!=typeof Date&&e instanceof Date)return r.date;return r.object;default:return r.unknown}},o=tn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite",]),u=e=>{let t=JSON.stringify(e,null,2);return t.replace(/"([^"]+)":/g,"$1:")};class a extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(r);else if("invalid_return_type"===i.code)r(i.returnTypeError);else if("invalid_arguments"===i.code)r(i.argumentsError);else if(0===i.path.length)n._errors.push(t(i));else{let o=n,u=0;for(;u<i.path.length;){let a=i.path[u],c=u===i.path.length-1;c?(o[a]=o[a]||{_errors:[]},o[a]._errors.push(t(i))):o[a]=o[a]||{_errors:[]},o=o[a],u++}}};return r(this),n}toString(){return this.message}get message(){return JSON.stringify(this.issues,tn.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}}a.create=e=>{let t=new a(e);return t};let c=(e,t)=>{let n;switch(e.code){case o.invalid_type:n=e.received===r.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,tn.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:n=`Unrecognized key(s) in object: ${tn.joinValues(e.keys,", ")}`;break;case o.invalid_union:n="Invalid input";break;case o.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${tn.joinValues(e.options)}`;break;case o.invalid_enum_value:n=`Invalid enum value. Expected ${tn.joinValues(e.options)}, received '${e.received}'`;break;case o.invalid_arguments:n="Invalid function arguments";break;case o.invalid_return_type:n="Invalid function return type";break;case o.invalid_date:n="Invalid date";break;case o.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:tn.assertNever(e.validation):n="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.too_small:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.too_big:n="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.custom:n="Invalid input";break;case o.invalid_intersection_types:n="Intersection results could not be merged";break;case o.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case o.not_finite:n="Number must be finite";break;default:n=t.defaultError,tn.assertNever(e)}return{message:n}},f=c;function l(e){f=e}function p(){return f}let d=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,o=[...n,...i.path||[]],u={...i,path:o},a="",c=r.filter(e=>!!e).slice().reverse();for(let f of c)a=f(u,{data:t,defaultError:a}).message;return{...i,path:o,message:i.message||a}};function s(e,t){let n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,f,c].filter(e=>!!e)});e.common.issues.push(n)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let r of t){if("aborted"===r.status)return m;"dirty"===r.status&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let r of t)n.push({key:await r.key,value:await r.value});return h.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:i,value:o}=r;if("aborted"===i.status||"aborted"===o.status)return m;"dirty"===i.status&&e.dirty(),"dirty"===o.status&&e.dirty(),(void 0!==o.value||r.alwaysSet)&&(n[i.value]=o.value)}return{status:e.value,value:n}}}let m=Object.freeze({status:"aborted"}),v=e=>({status:"dirty",value:e}),y=e=>({status:"valid",value:e}),_=e=>"aborted"===e.status,b=e=>"dirty"===e.status,S=e=>"valid"===e.status,T=e=>"undefined"!=typeof Promise&&e instanceof Promise;(te=ti||(ti={})).errToObj=e=>"string"==typeof e?{message:e}:e||{},te.toString=e=>"string"==typeof e?e:null==e?void 0:e.message;class I{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if(S(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new a(e.common.issues);return this._error=n,this._error}}};function w(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(t)return{errorMap:t,description:i};let o=(e,t)=>"invalid_type"!==e.code?{message:t.defaultError}:void 0===t.data?{message:null!=r?r:t.defaultError}:{message:null!=n?n:t.defaultError};return{errorMap:o,description:i}}class O{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return i(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:i(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(T(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let r={common:{issues:[],async:null!==(n=null==t?void 0:t.async)&&void 0!==n&&n,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},o=this._parseSync({data:e,path:r.path,parent:r});return x(r,o)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:i(e)},r=this._parse({data:e,path:n.path,parent:n}),o=await (T(r)?r:Promise.resolve(r));return x(n,o)}refine(e,t){let n=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,r)=>{let i=e(t),u=()=>r.addIssue({code:o.custom,...n(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(u(),!1)):!!i||(u(),!1)})}refinement(e,t){return this._refinement((n,r)=>!!e(n)||(r.addIssue("function"==typeof t?t(n,r):t),!1))}_refinement(e){return new es({schema:this,typeName:to.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return eh.create(this,this._def)}nullable(){return em.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return $.create(this,this._def)}promise(){return ed.create(this,this._def)}or(e){return J.create([this,e],this._def)}and(e){return et.create(this,e,this._def)}transform(e){return new es({...w(this._def),schema:this,typeName:to.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ev({...w(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:to.ZodDefault})}brand(){return new eb({typeName:to.ZodBranded,type:this,...w(this._def)})}catch(e){return new ey({...w(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:to.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return eS.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let R=/^c[^\s-]{8,}$/i,C=/^[a-z][a-z0-9]*$/,M=/[0-9A-HJKMNP-TV-Z]{26}/,E=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,k=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,P=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,F=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,W=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,D=e=>e.precision?e.offset?RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${e.precision}}Z$`):0===e.precision?e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):e.offset?RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function N(e,t){return!!(("v4"===t||!t)&&F.test(e)||("v6"===t||!t)&&W.test(e))}class L extends O{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(t=>e.test(t),{validation:t,code:o.invalid_string,...ti.errToObj(n)}),this.nonempty=e=>this.min(1,ti.errToObj(e)),this.trim=()=>new L({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new L({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new L({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){this._def.coerce&&(e.data=String(e.data));let t=this._getType(e);if(t!==r.string){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.string,received:n.parsedType}),m}let i=new h,u;for(let a of this._def.checks)if("min"===a.kind)e.data.length<a.value&&(s(u=this._getOrReturnCtx(e,u),{code:o.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if("max"===a.kind)e.data.length>a.value&&(s(u=this._getOrReturnCtx(e,u),{code:o.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),i.dirty());else if("length"===a.kind){let c=e.data.length>a.value,f=e.data.length<a.value;(c||f)&&(u=this._getOrReturnCtx(e,u),c?s(u,{code:o.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):f&&s(u,{code:o.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),i.dirty())}else if("email"===a.kind)k.test(e.data)||(s(u=this._getOrReturnCtx(e,u),{validation:"email",code:o.invalid_string,message:a.message}),i.dirty());else if("emoji"===a.kind)P.test(e.data)||(s(u=this._getOrReturnCtx(e,u),{validation:"emoji",code:o.invalid_string,message:a.message}),i.dirty());else if("uuid"===a.kind)E.test(e.data)||(s(u=this._getOrReturnCtx(e,u),{validation:"uuid",code:o.invalid_string,message:a.message}),i.dirty());else if("cuid"===a.kind)R.test(e.data)||(s(u=this._getOrReturnCtx(e,u),{validation:"cuid",code:o.invalid_string,message:a.message}),i.dirty());else if("cuid2"===a.kind)C.test(e.data)||(s(u=this._getOrReturnCtx(e,u),{validation:"cuid2",code:o.invalid_string,message:a.message}),i.dirty());else if("ulid"===a.kind)M.test(e.data)||(s(u=this._getOrReturnCtx(e,u),{validation:"ulid",code:o.invalid_string,message:a.message}),i.dirty());else if("url"===a.kind)try{new URL(e.data)}catch(l){s(u=this._getOrReturnCtx(e,u),{validation:"url",code:o.invalid_string,message:a.message}),i.dirty()}else if("regex"===a.kind){a.regex.lastIndex=0;let p=a.regex.test(e.data);p||(s(u=this._getOrReturnCtx(e,u),{validation:"regex",code:o.invalid_string,message:a.message}),i.dirty())}else if("trim"===a.kind)e.data=e.data.trim();else if("includes"===a.kind)e.data.includes(a.value,a.position)||(s(u=this._getOrReturnCtx(e,u),{code:o.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),i.dirty());else if("toLowerCase"===a.kind)e.data=e.data.toLowerCase();else if("toUpperCase"===a.kind)e.data=e.data.toUpperCase();else if("startsWith"===a.kind)e.data.startsWith(a.value)||(s(u=this._getOrReturnCtx(e,u),{code:o.invalid_string,validation:{startsWith:a.value},message:a.message}),i.dirty());else if("endsWith"===a.kind)e.data.endsWith(a.value)||(s(u=this._getOrReturnCtx(e,u),{code:o.invalid_string,validation:{endsWith:a.value},message:a.message}),i.dirty());else if("datetime"===a.kind){let d=D(a);d.test(e.data)||(s(u=this._getOrReturnCtx(e,u),{code:o.invalid_string,validation:"datetime",message:a.message}),i.dirty())}else"ip"===a.kind?N(e.data,a.version)||(s(u=this._getOrReturnCtx(e,u),{validation:"ip",code:o.invalid_string,message:a.message}),i.dirty()):tn.assertNever(a);return{status:i.value,value:e.data}}_addCheck(e){return new L({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ti.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ti.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ti.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ti.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ti.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ti.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ti.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ti.errToObj(e)})}datetime(e){var t;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,...ti.errToObj(null==e?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ti.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...ti.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ti.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ti.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ti.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ti.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ti.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}function A(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=parseInt(e.toFixed(i).replace(".","")),u=parseInt(t.toFixed(i).replace(".",""));return o%u/Math.pow(10,i)}L.create=e=>{var t;return new L({checks:[],typeName:to.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...w(e)})};class j extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){this._def.coerce&&(e.data=Number(e.data));let t=this._getType(e);if(t!==r.number){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.number,received:n.parsedType}),m}let i,u=new h;for(let a of this._def.checks)if("int"===a.kind)tn.isInteger(e.data)||(s(i=this._getOrReturnCtx(e,i),{code:o.invalid_type,expected:"integer",received:"float",message:a.message}),u.dirty());else if("min"===a.kind){let c=a.inclusive?e.data<a.value:e.data<=a.value;c&&(s(i=this._getOrReturnCtx(e,i),{code:o.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),u.dirty())}else if("max"===a.kind){let f=a.inclusive?e.data>a.value:e.data>=a.value;f&&(s(i=this._getOrReturnCtx(e,i),{code:o.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),u.dirty())}else"multipleOf"===a.kind?0!==A(e.data,a.value)&&(s(i=this._getOrReturnCtx(e,i),{code:o.not_multiple_of,multipleOf:a.value,message:a.message}),u.dirty()):"finite"===a.kind?Number.isFinite(e.data)||(s(i=this._getOrReturnCtx(e,i),{code:o.not_finite,message:a.message}),u.dirty()):tn.assertNever(a);return{status:u.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ti.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ti.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ti.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ti.toString(t))}setLimit(e,t,n,r){return new j({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:ti.toString(r)},]})}_addCheck(e){return new j({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ti.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ti.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ti.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ti.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ti.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ti.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ti.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ti.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ti.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===t||n.value>t)&&(t=n.value):"max"===n.kind&&(null===e||n.value<e)&&(e=n.value)}return Number.isFinite(t)&&Number.isFinite(e)}}j.create=e=>new j({checks:[],typeName:to.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...w(e)});class U extends O{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){this._def.coerce&&(e.data=BigInt(e.data));let t=this._getType(e);if(t!==r.bigint){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.bigint,received:n.parsedType}),m}let i,u=new h;for(let a of this._def.checks)if("min"===a.kind){let c=a.inclusive?e.data<a.value:e.data<=a.value;c&&(s(i=this._getOrReturnCtx(e,i),{code:o.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),u.dirty())}else if("max"===a.kind){let f=a.inclusive?e.data>a.value:e.data>=a.value;f&&(s(i=this._getOrReturnCtx(e,i),{code:o.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),u.dirty())}else"multipleOf"===a.kind?e.data%a.value!==BigInt(0)&&(s(i=this._getOrReturnCtx(e,i),{code:o.not_multiple_of,multipleOf:a.value,message:a.message}),u.dirty()):tn.assertNever(a);return{status:u.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ti.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ti.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ti.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ti.toString(t))}setLimit(e,t,n,r){return new U({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:ti.toString(r)},]})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ti.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ti.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ti.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ti.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ti.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}U.create=e=>{var t;return new U({checks:[],typeName:to.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...w(e)})};class q extends O{_parse(e){this._def.coerce&&(e.data=Boolean(e.data));let t=this._getType(e);if(t!==r.boolean){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.boolean,received:n.parsedType}),m}return y(e.data)}}q.create=e=>new q({typeName:to.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...w(e)});class G extends O{_parse(e){this._def.coerce&&(e.data=new Date(e.data));let t=this._getType(e);if(t!==r.date){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.date,received:n.parsedType}),m}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return s(i,{code:o.invalid_date}),m}let u=new h,a;for(let c of this._def.checks)"min"===c.kind?e.data.getTime()<c.value&&(s(a=this._getOrReturnCtx(e,a),{code:o.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),u.dirty()):"max"===c.kind?e.data.getTime()>c.value&&(s(a=this._getOrReturnCtx(e,a),{code:o.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),u.dirty()):tn.assertNever(c);return{status:u.value,value:new Date(e.data.getTime())}}_addCheck(e){return new G({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ti.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ti.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}G.create=e=>new G({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:to.ZodDate,...w(e)});class B extends O{_parse(e){let t=this._getType(e);if(t!==r.symbol){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.symbol,received:n.parsedType}),m}return y(e.data)}}B.create=e=>new B({typeName:to.ZodSymbol,...w(e)});class Y extends O{_parse(e){let t=this._getType(e);if(t!==r.undefined){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.undefined,received:n.parsedType}),m}return y(e.data)}}Y.create=e=>new Y({typeName:to.ZodUndefined,...w(e)});class V extends O{_parse(e){let t=this._getType(e);if(t!==r.null){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.null,received:n.parsedType}),m}return y(e.data)}}V.create=e=>new V({typeName:to.ZodNull,...w(e)});class K extends O{constructor(){super(...arguments),this._any=!0}_parse(e){return y(e.data)}}K.create=e=>new K({typeName:to.ZodAny,...w(e)});class z extends O{constructor(){super(...arguments),this._unknown=!0}_parse(e){return y(e.data)}}z.create=e=>new z({typeName:to.ZodUnknown,...w(e)});class H extends O{_parse(e){let t=this._getOrReturnCtx(e);return s(t,{code:o.invalid_type,expected:r.never,received:t.parsedType}),m}}H.create=e=>new H({typeName:to.ZodNever,...w(e)});class Z extends O{_parse(e){let t=this._getType(e);if(t!==r.undefined){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.void,received:n.parsedType}),m}return y(e.data)}}Z.create=e=>new Z({typeName:to.ZodVoid,...w(e)});class $ extends O{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),i=this._def;if(t.parsedType!==r.array)return s(t,{code:o.invalid_type,expected:r.array,received:t.parsedType}),m;if(null!==i.exactLength){let u=t.data.length>i.exactLength.value,a=t.data.length<i.exactLength.value;(u||a)&&(s(t,{code:u?o.too_big:o.too_small,minimum:a?i.exactLength.value:void 0,maximum:u?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),n.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(s(t,{code:o.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),n.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(s(t,{code:o.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>i.type._parseAsync(new I(t,e,t.path,n)))).then(e=>h.mergeArray(n,e));let c=[...t.data].map((e,n)=>i.type._parseSync(new I(t,e,t.path,n)));return h.mergeArray(n,c)}get element(){return this._def.type}min(e,t){return new $({...this._def,minLength:{value:e,message:ti.toString(t)}})}max(e,t){return new $({...this._def,maxLength:{value:e,message:ti.toString(t)}})}length(e,t){return new $({...this._def,exactLength:{value:e,message:ti.toString(t)}})}nonempty(e){return this.min(1,e)}}$.create=(e,t)=>new $({type:e,minLength:null,maxLength:null,exactLength:null,typeName:to.ZodArray,...w(t)});class X extends O{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){let t=this._getType(e);if(t!==r.object){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.object,received:n.parsedType}),m}let{status:i,ctx:u}=this._processInputParams(e),{shape:a,keys:c}=this._getCached(),f=[];if(!(this._def.catchall instanceof H&&"strip"===this._def.unknownKeys))for(let l in u.data)c.includes(l)||f.push(l);let p=[];for(let d of c){let v=a[d],y=u.data[d];p.push({key:{status:"valid",value:d},value:v._parse(new I(u,y,u.path,d)),alwaysSet:d in u.data})}if(this._def.catchall instanceof H){let _=this._def.unknownKeys;if("passthrough"===_)for(let b of f)p.push({key:{status:"valid",value:b},value:{status:"valid",value:u.data[b]}});else if("strict"===_)f.length>0&&(s(u,{code:o.unrecognized_keys,keys:f}),i.dirty());else if("strip"===_);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let S=this._def.catchall;for(let T of f){let x=u.data[T];p.push({key:{status:"valid",value:T},value:S._parse(new I(u,x,u.path,T)),alwaysSet:T in u.data})}}return u.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of p){let n=await t.key;e.push({key:n,value:await t.value,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(i,e)):h.mergeObjectSync(i,p)}get shape(){return this._def.shape()}strict(e){return ti.errToObj,new X({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,n)=>{var r,i,o,u;let a=null!==(o=null===(i=(r=this._def).errorMap)||void 0===i?void 0:i.call(r,t,n).message)&&void 0!==o?o:n.defaultError;return"unrecognized_keys"===t.code?{message:null!==(u=ti.errToObj(e).message)&&void 0!==u?u:a}:{message:a}}}:{}})}strip(){return new X({...this._def,unknownKeys:"strip"})}passthrough(){return new X({...this._def,unknownKeys:"passthrough"})}extend(e){return new X({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){let t=new X({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:to.ZodObject});return t}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new X({...this._def,catchall:e})}pick(e){let t={};return tn.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new X({...this._def,shape:()=>t})}omit(e){let t={};return tn.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new X({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof X){let n={};for(let r in t.shape){let i=t.shape[r];n[r]=eh.create(e(i))}return new X({...t._def,shape:()=>n})}if(t instanceof $)return new $({...t._def,type:e(t.element)});if(t instanceof eh)return eh.create(e(t.unwrap()));if(t instanceof em)return em.create(e(t.unwrap()));if(t instanceof en)return en.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return tn.objectKeys(this.shape).forEach(n=>{let r=this.shape[n];e&&!e[n]?t[n]=r:t[n]=r.optional()}),new X({...this._def,shape:()=>t})}required(e){let t={};return tn.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let r=this.shape[n],i=r;for(;i instanceof eh;)i=i._def.innerType;t[n]=i}}),new X({...this._def,shape:()=>t})}keyof(){return ef(tn.objectKeys(this.shape))}}X.create=(e,t)=>new X({shape:()=>e,unknownKeys:"strip",catchall:H.create(),typeName:to.ZodObject,...w(t)}),X.strictCreate=(e,t)=>new X({shape:()=>e,unknownKeys:"strict",catchall:H.create(),typeName:to.ZodObject,...w(t)}),X.lazycreate=(e,t)=>new X({shape:e,unknownKeys:"strip",catchall:H.create(),typeName:to.ZodObject,...w(t)});class J extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(function(e){for(let n of e)if("valid"===n.result.status)return n.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let i=e.map(e=>new a(e.ctx.common.issues));return s(t,{code:o.invalid_union,unionErrors:i}),m});{let r,i=[];for(let u of n){let c={...t,common:{...t.common,issues:[]},parent:null},f=u._parseSync({data:t.data,path:t.path,parent:c});if("valid"===f.status)return f;"dirty"!==f.status||r||(r={result:f,ctx:c}),c.common.issues.length&&i.push(c.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;let l=i.map(e=>new a(e));return s(t,{code:o.invalid_union,unionErrors:l}),m}}get options(){return this._def.options}}J.create=(e,t)=>new J({options:e,typeName:to.ZodUnion,...w(t)});let Q=e=>{if(e instanceof ea)return Q(e.schema);if(e instanceof es)return Q(e.innerType());if(e instanceof ec)return[e.value];if(e instanceof el)return e.options;if(e instanceof ep)return Object.keys(e.enum);else if(e instanceof ev)return Q(e._def.innerType);else if(e instanceof Y)return[void 0];else if(e instanceof V)return[null];else return null};class ee extends O{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.object)return s(t,{code:o.invalid_type,expected:r.object,received:t.parsedType}),m;let n=this.discriminator,i=t.data[n],u=this.optionsMap.get(i);return u?t.common.async?u._parseAsync({data:t.data,path:t.path,parent:t}):u._parseSync({data:t.data,path:t.path,parent:t}):(s(t,{code:o.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),m)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let r=new Map;for(let i of t){let o=Q(i.shape[e]);if(!o)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let u of o){if(r.has(u))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(u)}`);r.set(u,i)}}return new ee({typeName:to.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:r,...w(n)})}}class et extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e),u=(e,u)=>{if(_(e)||_(u))return m;let a=function e(t,n){let o=i(t),u=i(n);if(t===n)return{valid:!0,data:t};if(o===r.object&&u===r.object){let a=tn.objectKeys(n),c=tn.objectKeys(t).filter(e=>-1!==a.indexOf(e)),f={...t,...n};for(let l of c){let p=e(t[l],n[l]);if(!p.valid)return{valid:!1};f[l]=p.data}return{valid:!0,data:f}}if(o===r.array&&u===r.array){if(t.length!==n.length)return{valid:!1};let d=[];for(let s=0;s<t.length;s++){let h=t[s],m=n[s],v=e(h,m);if(!v.valid)return{valid:!1};d.push(v.data)}return{valid:!0,data:d}}if(o===r.date&&u===r.date&&+t==+n)return{valid:!0,data:t};return{valid:!1}}(e.value,u.value);return a.valid?((b(e)||b(u))&&t.dirty(),{status:t.value,value:a.data}):(s(n,{code:o.invalid_intersection_types}),m)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n}),]).then(([e,t])=>u(e,t)):u(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}et.create=(e,t,n)=>new et({left:e,right:t,typeName:to.ZodIntersection,...w(n)});class en extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.array)return s(n,{code:o.invalid_type,expected:r.array,received:n.parsedType}),m;if(n.data.length<this._def.items.length)return s(n,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),m;let i=this._def.rest;!i&&n.data.length>this._def.items.length&&(s(n,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let u=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new I(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(u).then(e=>h.mergeArray(t,e)):h.mergeArray(t,u)}get items(){return this._def.items}rest(e){return new en({...this._def,rest:e})}}en.create=(e,t)=>{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new en({items:e,typeName:to.ZodTuple,rest:null,...w(t)})};class er extends O{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.object)return s(n,{code:o.invalid_type,expected:r.object,received:n.parsedType}),m;let i=[],u=this._def.keyType,a=this._def.valueType;for(let c in n.data)i.push({key:u._parse(new I(n,c,n.path,c)),value:a._parse(new I(n,n.data[c],n.path,c))});return n.common.async?h.mergeObjectAsync(t,i):h.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,n){return new er(t instanceof O?{keyType:e,valueType:t,typeName:to.ZodRecord,...w(n)}:{keyType:L.create(),valueType:e,typeName:to.ZodRecord,...w(t)})}}class ei extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.map)return s(n,{code:o.invalid_type,expected:r.map,received:n.parsedType}),m;let i=this._def.keyType,u=this._def.valueType,a=[...n.data.entries()].map(([e,t],r)=>({key:i._parse(new I(n,e,n.path,[r,"key"])),value:u._parse(new I(n,t,n.path,[r,"value"]))}));if(n.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let e of a){let n=await e.key,r=await e.value;if("aborted"===n.status||"aborted"===r.status)return m;("dirty"===n.status||"dirty"===r.status)&&t.dirty(),c.set(n.value,r.value)}return{status:t.value,value:c}})}{let f=new Map;for(let l of a){let p=l.key,d=l.value;if("aborted"===p.status||"aborted"===d.status)return m;("dirty"===p.status||"dirty"===d.status)&&t.dirty(),f.set(p.value,d.value)}return{status:t.value,value:f}}}}ei.create=(e,t,n)=>new ei({valueType:t,keyType:e,typeName:to.ZodMap,...w(n)});class eo extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==r.set)return s(n,{code:o.invalid_type,expected:r.set,received:n.parsedType}),m;let i=this._def;null!==i.minSize&&n.data.size<i.minSize.value&&(s(n,{code:o.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&n.data.size>i.maxSize.value&&(s(n,{code:o.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let u=this._def.valueType;function a(e){let n=new Set;for(let r of e){if("aborted"===r.status)return m;"dirty"===r.status&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let c=[...n.data.values()].map((e,t)=>u._parse(new I(n,e,n.path,t)));return n.common.async?Promise.all(c).then(e=>a(e)):a(c)}min(e,t){return new eo({...this._def,minSize:{value:e,message:ti.toString(t)}})}max(e,t){return new eo({...this._def,maxSize:{value:e,message:ti.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}eo.create=(e,t)=>new eo({valueType:e,minSize:null,maxSize:null,typeName:to.ZodSet,...w(t)});class eu extends O{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.function)return s(t,{code:o.invalid_type,expected:r.function,received:t.parsedType}),m;function n(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,f,c,].filter(e=>!!e),issueData:{code:o.invalid_arguments,argumentsError:n}})}function i(e,n){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,f,c,].filter(e=>!!e),issueData:{code:o.invalid_return_type,returnTypeError:n}})}let u={errorMap:t.common.contextualErrorMap},l=t.data;return this._def.returns instanceof ed?y(async(...e)=>{let t=new a([]),r=await this._def.args.parseAsync(e,u).catch(r=>{throw t.addIssue(n(e,r)),t}),o=await l(...r),c=await this._def.returns._def.type.parseAsync(o,u).catch(e=>{throw t.addIssue(i(o,e)),t});return c}):y((...e)=>{let t=this._def.args.safeParse(e,u);if(!t.success)throw new a([n(e,t.error)]);let r=l(...t.data),o=this._def.returns.safeParse(r,u);if(!o.success)throw new a([i(r,o.error)]);return o.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:en.create(e).rest(z.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){let t=this.parse(e);return t}strictImplement(e){let t=this.parse(e);return t}static create(e,t,n){return new eu({args:e||en.create([]).rest(z.create()),returns:t||z.create(),typeName:to.ZodFunction,...w(n)})}}class ea extends O{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.getter();return n._parse({data:t.data,path:t.path,parent:t})}}ea.create=(e,t)=>new ea({getter:e,typeName:to.ZodLazy,...w(t)});class ec extends O{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return s(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),m}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ef(e,t){return new el({values:e,typeName:to.ZodEnum,...w(t)})}ec.create=(e,t)=>new ec({value:e,typeName:to.ZodLiteral,...w(t)});class el extends O{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),n=this._def.values;return s(t,{expected:tn.joinValues(n),received:t.parsedType,code:o.invalid_type}),m}if(-1===this._def.values.indexOf(e.data)){let r=this._getOrReturnCtx(e),i=this._def.values;return s(r,{received:r.data,code:o.invalid_enum_value,options:i}),m}return y(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return el.create(e)}exclude(e){return el.create(this.options.filter(t=>!e.includes(t)))}}el.create=ef;class ep extends O{_parse(e){let t=tn.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==r.string&&n.parsedType!==r.number){let i=tn.objectValues(t);return s(n,{expected:tn.joinValues(i),received:n.parsedType,code:o.invalid_type}),m}if(-1===t.indexOf(e.data)){let u=tn.objectValues(t);return s(n,{received:n.data,code:o.invalid_enum_value,options:u}),m}return y(e.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:to.ZodNativeEnum,...w(t)});class ed extends O{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==r.promise&&!1===t.common.async)return s(t,{code:o.invalid_type,expected:r.promise,received:t.parsedType}),m;let n=t.parsedType===r.promise?t.data:Promise.resolve(t.data);return y(n.then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ed.create=(e,t)=>new ed({type:e,typeName:to.ZodPromise,...w(t)});class es extends O{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===to.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null;if("preprocess"===r.type){let i=r.transform(n.data);return n.common.async?Promise.resolve(i).then(e=>this._def.schema._parseAsync({data:e,path:n.path,parent:n})):this._def.schema._parseSync({data:i,path:n.path,parent:n})}let o={addIssue(e){s(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(o.addIssue=o.addIssue.bind(o),"refinement"===r.type){let u=e=>{let t=r.refinement(e,o);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>"aborted"===e.status?m:("dirty"===e.status&&t.dirty(),u(e.value).then(()=>({status:t.value,value:e.value}))));{let a=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===a.status?m:("dirty"===a.status&&t.dirty(),u(a.value),{status:t.value,value:a.value})}}if("transform"===r.type){if(!1!==n.common.async)return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>S(e)?Promise.resolve(r.transform(e.value,o)).then(e=>({status:t.value,value:e})):e);{let c=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!S(c))return c;let f=r.transform(c.value,o);if(f instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:f}}}tn.assertNever(r)}}es.create=(e,t,n)=>new es({schema:e,typeName:to.ZodEffects,effect:t,...w(n)}),es.createWithPreprocess=(e,t,n)=>new es({schema:t,effect:{type:"preprocess",transform:e},typeName:to.ZodEffects,...w(n)});class eh extends O{_parse(e){let t=this._getType(e);return t===r.undefined?y(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eh.create=(e,t)=>new eh({innerType:e,typeName:to.ZodOptional,...w(t)});class em extends O{_parse(e){let t=this._getType(e);return t===r.null?y(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}em.create=(e,t)=>new em({innerType:e,typeName:to.ZodNullable,...w(t)});class ev extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===r.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:to.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...w(t)});class ey extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return T(r)?r.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new a(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new a(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ey.create=(e,t)=>new ey({innerType:e,typeName:to.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...w(t)});class eg extends O{_parse(e){let t=this._getType(e);if(t!==r.nan){let n=this._getOrReturnCtx(e);return s(n,{code:o.invalid_type,expected:r.nan,received:n.parsedType}),m}return{status:"valid",value:e.data}}}eg.create=e=>new eg({typeName:to.ZodNaN,...w(e)});let e_=Symbol("zod_brand");class eb extends O{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}}class eS extends O{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async){let r=async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===e.status?m:"dirty"===e.status?(t.dirty(),v(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})};return r()}{let i=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===i.status?m:"dirty"===i.status?(t.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:n.path,parent:n})}}static create(e,t){return new eS({in:e,out:t,typeName:to.ZodPipeline})}}let eT=(e,t={},n)=>e?K.create().superRefine((r,i)=>{var o,u;if(!e(r)){let a="function"==typeof t?t(r):"string"==typeof t?{message:t}:t,c=null===(u=null!==(o=a.fatal)&&void 0!==o?o:n)||void 0===u||u;i.addIssue({code:"custom",..."string"==typeof a?{message:a}:a,fatal:c})}}):K.create(),eI={object:X.lazycreate};(tt=to||(to={})).ZodString="ZodString",tt.ZodNumber="ZodNumber",tt.ZodNaN="ZodNaN",tt.ZodBigInt="ZodBigInt",tt.ZodBoolean="ZodBoolean",tt.ZodDate="ZodDate",tt.ZodSymbol="ZodSymbol",tt.ZodUndefined="ZodUndefined",tt.ZodNull="ZodNull",tt.ZodAny="ZodAny",tt.ZodUnknown="ZodUnknown",tt.ZodNever="ZodNever",tt.ZodVoid="ZodVoid",tt.ZodArray="ZodArray",tt.ZodObject="ZodObject",tt.ZodUnion="ZodUnion",tt.ZodDiscriminatedUnion="ZodDiscriminatedUnion",tt.ZodIntersection="ZodIntersection",tt.ZodTuple="ZodTuple",tt.ZodRecord="ZodRecord",tt.ZodMap="ZodMap",tt.ZodSet="ZodSet",tt.ZodFunction="ZodFunction",tt.ZodLazy="ZodLazy",tt.ZodLiteral="ZodLiteral",tt.ZodEnum="ZodEnum",tt.ZodEffects="ZodEffects",tt.ZodNativeEnum="ZodNativeEnum",tt.ZodOptional="ZodOptional",tt.ZodNullable="ZodNullable",tt.ZodDefault="ZodDefault",tt.ZodCatch="ZodCatch",tt.ZodPromise="ZodPromise",tt.ZodBranded="ZodBranded",tt.ZodPipeline="ZodPipeline";let ex=(e,t={message:`Input not instance of ${e.name}`})=>eT(t=>t instanceof e,t),ew=L.create,eO=j.create,eR=eg.create,eC=U.create,eM=q.create,eE=G.create,ek=B.create,eP=Y.create,eF=V.create,eW=K.create,eD=z.create,eN=H.create,eL=Z.create,eA=$.create,ej=X.create,eU=X.strictCreate,eq=J.create,eG=ee.create,eB=et.create,eY=en.create,eV=er.create,eK=ei.create,ez=eo.create,eH=eu.create,eZ=ea.create,e$=ec.create,eX=el.create,eJ=ep.create,eQ=ed.create,e0=es.create,e1=eh.create,e2=em.create,e8=es.createWithPreprocess,e4=eS.create,e3=()=>ew().optional(),e5=()=>eO().optional(),e7=()=>eM().optional();var e9,e6,te,tt,tn,tr,ti,to,tu=Object.freeze({__proto__:null,defaultErrorMap:c,setErrorMap:l,getErrorMap:p,makeIssue:d,EMPTY_PATH:[],addIssueToContext:s,ParseStatus:h,INVALID:m,DIRTY:v,OK:y,isAborted:_,isDirty:b,isValid:S,isAsync:T,get util(){return tn},get objectUtil(){return tr},ZodParsedType:r,getParsedType:i,ZodType:O,ZodString:L,ZodNumber:j,ZodBigInt:U,ZodBoolean:q,ZodDate:G,ZodSymbol:B,ZodUndefined:Y,ZodNull:V,ZodAny:K,ZodUnknown:z,ZodNever:H,ZodVoid:Z,ZodArray:$,ZodObject:X,ZodUnion:J,ZodDiscriminatedUnion:ee,ZodIntersection:et,ZodTuple:en,ZodRecord:er,ZodMap:ei,ZodSet:eo,ZodFunction:eu,ZodLazy:ea,ZodLiteral:ec,ZodEnum:el,ZodNativeEnum:ep,ZodPromise:ed,ZodEffects:es,ZodTransformer:es,ZodOptional:eh,ZodNullable:em,ZodDefault:ev,ZodCatch:ey,ZodNaN:eg,BRAND:e_,ZodBranded:eb,ZodPipeline:eS,custom:eT,Schema:O,ZodSchema:O,late:eI,get ZodFirstPartyTypeKind(){return to},coerce:{string:e=>L.create({...e,coerce:!0}),number:e=>j.create({...e,coerce:!0}),boolean:e=>q.create({...e,coerce:!0}),bigint:e=>U.create({...e,coerce:!0}),date:e=>G.create({...e,coerce:!0})},any:eW,array:eA,bigint:eC,boolean:eM,date:eE,discriminatedUnion:eG,effect:e0,enum:eX,function:eH,instanceof:ex,intersection:eB,lazy:eZ,literal:e$,map:eK,nan:eR,nativeEnum:eJ,never:eN,null:eF,nullable:e2,number:eO,object:ej,oboolean:e7,onumber:e5,optional:e1,ostring:e3,pipeline:e4,preprocess:e8,promise:eQ,record:eV,set:ez,strictObject:eU,string:ew,symbol:ek,transformer:e0,tuple:eY,undefined:eP,union:eq,unknown:eD,void:eL,NEVER:m,ZodIssueCode:o,quotelessJson:u,ZodError:a}),ta=n(87322),tc=n(1611),tf=n(77252);let tl=ej({first_name:ew().optional(),last_name:ew().optional(),email:ew().email().optional()}),tp=ej({id:ew(),name:ew(),is_master:eM().optional()}),td=eG("status",[ej({status:e$("unclassified")}),ej({status:e$("published")}),ej({status:e$("release"),release_id:ew()}),ej({status:e$("archived")})]).and(ej({version_id:ew(),tags:eA(ew()),custom_type_label:ew(),preview_summary:ew().optional(),preview_image:ew().optional(),last_modified_date:tu.coerce.date(),author:tl,uid:ew().optional()})),ts=ej({id:ew(),title:ew().nullish().transform(e=>e??"Untitled"),custom_type_id:ew(),group_lang_id:ew(),language:tp,versions:eA(td)}),th=ej({total:eO(),cursor:ew().optional(),results:eA(ts)});function tm(e,t,n,r,i){let o=new URLSearchParams({...r&&{limit:r.toString()},...i&&{cursor:i}});return(0,tc.WY)(`${e}/documents?${o.toString()}&${n}`,{credentials:(0,tc.xb)(t),okType:th})}function tv(e){return e.reduce((e,t)=>{if(t.values.every(e=>""===e))return e;let n=t.values.map(e=>[t.name,e]);return e.concat(n)},[])}function ty(e,t,n){return(0,tc.WY)(`${e}/documents/${n}`,{credentials:(0,tc.xb)(t),okType:ts})}let tg={unclassified:["unclassified","published"],archived:["unclassified","published"],release:["release","published"],published:["published"]},t_=tu.object({id:tu.string(),firstname:tu.string().optional(),lastname:tu.string().optional(),email:tu.string()}),tb=tu.array(t_),tS=ej({simulator_url:ew().url().nullish(),languages:eA(tp).transform(e=>(0,ta.DY)(e,e=>e.name)),authors:tb.optional().default([])}).transform(({simulator_url:e,...t})=>{let n=e&&function(e){let t=(0,tf.ju)(e);return!!t&&t.pathname.endsWith("/slice-simulator")}(e)?e:void 0;return{...t,simulatorUrl:n}});function tT(e,t){return(0,tc.WY)(e,{credentials:(0,tc.xb)(t),okType:tS})}let tI=ej({results:eA(ew())});function tx(e,t){return(0,tc.WY)(`${e}/tags`,{credentials:(0,tc.xb)(t),okType:tI})}let tw=tu.object({id:tu.string(),label:tu.string(),repeatable:tu.boolean(),status:tu.boolean()}),tO=tu.array(tw);function tR(e,t,n){return(0,tc.WY)(`${e}/customtypes`,{headers:{repository:t},credentials:(0,tc.xb)(n),okType:tO})}},47124:function(e,t,n){function r(e){return e.charAt(0).toUpperCase()+e.slice(1)}function i(e,t){return e.length<=t?e:`${null==e?void 0:e.slice(0,t).trim()}...`}function o(e){if(0===e)return"0 Bytes";let t=Math.floor(Math.log(e)/Math.log(1024)),n=["Bytes","KB","MB","GB","TB"][t];return n?`${(e/Math.pow(1024,t)).toFixed(2)} ${n}`:`${e} Bytes`}n.d(t,{kC:function(){return r},td:function(){return o},tx:function(){return i}})},77252:function(e,t,n){n.d(t,{S$:function(){return o},aO:function(){return u},ju:function(){return i}});var r=n(47124);function i(e){try{return new URL(e)}catch{return}}function o(e){try{return e.host.split(".").slice(0,-1).filter(e=>"www"!==e).map(r.kC)[0]??""}catch{return""}}function u(e){let{params:t}=e;return Object.entries(t).reduce((e,[t,n])=>void 0!==n?{...e,[t]:n}:e,{})}},24662:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMock=void 0;let r=n(93784),i=n(73605),o=n(32361);t.DocumentMock={generate(e,t={},n){var u,a,c;return(0,r.flattenWidgets)(e).map(([e,r])=>{let u=(null==n?void 0:n.value)&&n.value[e],a=function(e,t,n){switch(e.type){case"Choice":case"Slices":return o.SliceZoneMock.generate(e,t,n);case"Group":return i.GroupMock.generate(e,n);case"UID":return i.UIDMock.generate(e,n);default:return i.NestableWidgetMock.generate(e,n)}}(r,t,u);return[e,a]}).reduce((e,[t,n])=>({...e,[t]:n}),{})}}},73605:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(24662),t),(0,r.__exportStar)(n(93103),t)},15801:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.randomInt=t.slug=void 0;var i=n(91249);Object.defineProperty(t,"slug",{enumerable:!0,get:function(){return r(i).default}}),t.randomInt=function(e=0,t=100){return Math.floor(Math.random()*(t-e+1)+e)}},91249:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importDefault)(n(93953)),o=n(15801);t.default=function(e){return function t(){let n=function(e){let t=e[(0,o.randomInt)(0,e.length-1)];if(!t)throw Error("Error while generating a slug.");return t}(i.default);return e&&(e.exactly&&n.length!=e.exactly||e.min&&n.length<e.min||e.max&&n.length>e.max)?t():n}()}},44609:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupMock=void 0;let r=n(29585),i=n(93103);t.GroupMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t=1,n={}){return e.config&&e.config.fields?Array(t).fill(null).map(()=>{var t;let r=Object.entries((null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.fields)||{}),o=r.map(([e,t])=>{let r=n[e];return[e,i.NestableWidgetMock.generate(t,r)]});return o}):[]}(e,null==t?void 0:t.nbBlocks,null==t?void 0:t.fields);return{__TYPE__:r.GroupContentType,value:n.map(e=>({__TYPE__:r.GroupItemContentType,value:e}))}}}},73042:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceMock=void 0;let r=n(42793),i=n(42793),o=n(18784),u=n(93103);function a(e,t){return function(e,t){var n,o;let a=(null==t?void 0:t.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:e.id,primary:e.primary?(n=Object.entries(e.primary),o=null==t?void 0:t.primaryFields,n.map(([e,t])=>{let n=o&&o[e];return"Group"===t.type?[e,u.GroupMock.generate(t,n)]:[e,u.NestableWidgetMock.generate(t,n),]})).reduce((e,[t,n])=>({...e,[t]:n}),{}):{},items:e.items?Array(a).fill(null).map(()=>{var n,r;return n=Object.entries(e.items||{}),r=null==t?void 0:t.itemFields,n.map(([e,t])=>{let n=r&&r[e];return[e,u.NestableWidgetMock.generate(t,n)]})}).map(e=>({__TYPE__:r.GroupItemContentType,value:e})):[]}}(e,t)}function c(e,t,n){let i=Object.entries(e).reduce((e,[i,o])=>{var a;let c=null===(a=t.find(([e])=>e===i))||void 0===a?void 0:a[1],f=null==n?void 0:n[i],l;return(0,r.isGroupContent)(c)||(null==f?void 0:f.type)==="Group"||(l=u.NestableWidgetMock.patch(o,c,f)),{...e,...l?{[i]:l}:{}}},{}),o=t.reduce((t,[n,r])=>{let o=e[n]?i[n]:r;return o?{...t,[n]:o}:t},{});return{...o,...i}}t.SharedSliceMock={generate(e,t){var n;if(null==t?void 0:t.value)return{__TYPE__:i.SharedSliceContentType,...t.value};let r=null!==(n=e.variations.find(e=>e.id===(null==t?void 0:t.variation)))&&void 0!==n?n:e.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${e.id}.`);let o=(null==t?void 0:t.variations)&&t.variations[r.id];return a(r,o)},patch(e,t,n){var i,u;switch(e.op){case o.DiffOperation.Removed:if(!(null==n?void 0:n.variation)||n.variation===(null==t?void 0:t.variation))return{ok:!0,result:void 0};return{ok:!1,error:Error(`Content doesn't match the config for variation ${n.variation}`)};case o.DiffOperation.Added:if(t)return{ok:!1,error:Error(`Content already exists for slice ${e.value.id}.`)};if(!(null==n?void 0:n.variation)||e.value.variations.find(e=>e.id===n.variation))return{ok:!0,result:this.generate(e.value,n)};return{ok:!1,error:Error(`Configured variation ${n.variation} not found in slice ${e.value.id} definition.`)};case o.DiffOperation.Updated:{let f=null!=t&&t.variation?(null==n?void 0:n.variation)&&t.variation!==(null==n?void 0:n.variation)?{ok:!1,error:Error(`Variation ${t.variation} from the content doesn't match the config ${null==n?void 0:n.variation}.`)}:{ok:!0,result:t.variation}:(null==n?void 0:n.variation)?{ok:!0,result:n.variation}:{ok:!1,error:Error("No variation provided. You must either provide some content or a config.")};if(!f.ok)return f;let l=f.result,p=null===(i=e.value.variations)||void 0===i?void 0:i[l];if(!p)return{ok:!1,error:Error(`The model of the content with variation ${l} has not changed.`)};return function(e,t,n,i){switch(t.op){case o.DiffOperation.Removed:return{ok:!0,result:void 0};case o.DiffOperation.Added:if(!n)return{ok:!0,result:a(t.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${n.variation}.`)};case o.DiffOperation.Updated:{let u=t.value.primary&&(null==n?void 0:n.primary)?c(t.value.primary,Object.entries(null==n?void 0:n.primary),null==i?void 0:i.primaryFields):(null==n?void 0:n.primary)||{},f=(()=>{if(!t.value.items||null==n||!n.items)return(null==n?void 0:n.items)||[];{let e=t.value.items;return n.items.map(t=>({__TYPE__:r.GroupItemContentType,value:Object.entries(c(e,t.value,null==i?void 0:i.itemFields))}))}})();return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:e,primary:u,items:f}}}}}(l,p,t,p.op!==o.DiffOperation.Removed?null===(u=null==n?void 0:n.variations)||void 0===u?void 0:u[l]:void 0)}}}}},32361:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceZoneMock=void 0;let r=n(42793),i=n(73207),o=n(93103),u=n(92947);t.SliceZoneMock={generate(e,t={},n){var a;if(!(null===(a=e.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(e.config.choices).reduce((e,[r,a])=>{let c=(null==n?void 0:n.value)&&n.value[r],f=(()=>{switch(a.type){case"SharedSlice":{let e=t[r];if(!e){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);return}return o.SharedSliceMock.generate(e,c)}case"Slice":return;case"Group":return o.GroupMock.generate(a);default:return u.NestableWidgetMock.generate(a)}})();return f?e.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):e},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDMock=void 0;let r=n(42793),i=n(15801);t.UIDMock={generate(e,t){let n=(null==t?void 0:t.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:n}}}},93103:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(44609),t),(0,r.__exportStar)(n(92947),t),(0,r.__exportStar)(n(73042),t),(0,r.__exportStar)(n(32033),t)},42386:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanMock=void 0;let r=n(42793),i=n(18784);t.BooleanMock={generate(e,t){let n="boolean"==typeof(null==t?void 0:t.value)?t.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:n}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Boolean"===e.diff.value.type){let n=this.patch(e.diff,e.content&&e.content.__TYPE__!==r.BooleanContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Boolean"?e.config:void 0);return{result:n}}}}},77859:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMock=void 0;let r=n(42793),i=n(42793),o=n(18784);t.ColorMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e="#";for(let t=0;t<6;t++)e+="0123456789abcdef"[Math.floor(16*Math.random())];return e}();return{__TYPE__:i.FieldContentType,value:n,type:"Color"}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Color"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isColorContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Color"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},21276:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateMock=void 0;let r=n(42793),i=n(18784);function o(e){let t=e.toISOString().split("T")[0];if(!t)throw Error("Something happened during Date generation.");return t}function u(e=new Date(2012,0,1),t=new Date){let n=new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()));return o(n)}t.DateMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Date"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isDateContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Date"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},60300:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedMock=void 0;let r=n(78948),i=n(42793),o=n(18784),u=(0,r.__importDefault)(n(19108));t.EmbedMock={generate:(e,t)=>(function(e){var t;let n=e||(null===(t=u.default[Math.floor(Math.random()*u.default.length)])||void 0===t?void 0:t.oembed);if(!n)throw Error("Something happened during Embed generation.");return{...n,all:n,__TYPE__:i.EmbedContentType}})(null==t?void 0:t.value),applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Embed"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isEmbedContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Embed"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},95441:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointMock=void 0;let r=n(78948),i=n(42793),o=n(18784),u=(0,r.__importDefault)(n(88416));t.GeoPointMock={generate(e,t){let n=(null==t?void 0:t.value)||function(){let e=u.default[Math.floor(Math.random()*u.default.length)];if(!e)throw Error("Something happened during GeoPoint generation.");return{latitude:e.points.latitude,longitude:e.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:n.latitude,lng:n.longitude}}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("GeoPoint"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isGeoPointContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="GeoPoint"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value,n)}}}},66947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageMock=t.random=void 0;let r=n(78948),i=n(42793),o=n(18784),u=(0,r.__importDefault)(n(15542)),a=n(15801),c=u.default,f=(e,t)=>{let[n,r]=(()=>{let{width:n,height:r}=null!=t?t:{};return n&&r?[n,r]:n?[n,Math.round(e.height*(n/e.width))]:r?[Math.round(e.width*(r/e.height)),r]:[e.width,e.height]})(),i=Math.max(n/e.width,r/e.height),o=Math.round((e.width-n/i)/2),u=Math.round((e.height-r/i)/2);return{width:n,height:r,rect:{x:o,y:u,width:Math.round(n/i),height:Math.round(r/i)}}},l=(e,t,n)=>{let r=new URL(e),{x:i,y:o,width:u,height:a}=t;return r.searchParams.set("rect",[i,o,u,a].join(",")),r.searchParams.set("w",n.width.toString()),r.searchParams.set("h",n.height.toString()),r.toString()};function p(e){var t,n;let[r,i,o]=(()=>{let t=e.images[(0,a.randomInt)(0,e.images.length-1)],n=null==t?void 0:t.url.split("?")[0];if(!n)throw Error("Something happened during Image generation.");return[n,t.width,t.height]})(),{width:u,height:c,rect:p}=f({width:i,height:o},e.constraints),d=Boolean((null===(t=e.constraints)||void 0===t?void 0:t.width)||(null===(n=e.constraints)||void 0===n?void 0:n.height)),s=d?l(r,p,{width:u,height:c}):r;return{origin:{id:e.id,url:r,width:i,height:o},url:s,width:u,height:c,edit:{zoom:1,crop:{x:p.x,y:p.y},background:"transparent"}}}function d(e,t=c){var n,r,o;let u=p({id:"main",constraints:null===(n=e.config)||void 0===n?void 0:n.constraint,images:t}),a=null===(o=null===(r=e.config)||void 0===r?void 0:r.thumbnails)||void 0===o?void 0:o.map(e=>[e.name,p({id:e.name,constraints:{width:e.width,height:e.height},images:t}),]),f=a?{thumbnails:a.reduce((e,[t,n])=>({...e,[t]:n}),{})}:{};return{__TYPE__:i.ImageContentType,...u,...f}}t.random=d,t.ImageMock={generate:(e,t)=>d(e,(null==t?void 0:t.value)&&[t.value]),applyPatch(e){if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Image"===e.diff.value.type){let t=this.patch(e.diff,(0,i.isImageContent)(e.content)?e.content:void 0);return{result:t}}},patch(e,t){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(e.value)}}}},54595:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldMock=void 0;let r=n(42793),i=n(18784);t.IntegrationFieldMock={generate(e,t){let n=(null==t?void 0:t.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("IntegrationFields"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isIntegrationFieldContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="IntegrationFields"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},50107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkMock=void 0;let r=n(42793);t.DocumentLinkMock={generate:e=>r.DocumentLinkContent.encode({__TYPE__:r.DocumentLinkType,id:"mock_document_id"})}},79241:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=n(78948),i=n(42793),o=(0,r.__importDefault)(n(83777));t.ExternalLinkMock={generate(e,t){let n=(null==t?void 0:t.value)&&{__TYPE__:i.ExternalLinkType,url:t.value}||function(){let e=o.default,t=Math.floor(Math.random()*e.length),n=e[t];if(!n)throw Error("Something happened during Web link generation.");return{__TYPE__:i.ExternalLinkType,url:n}}();return i.ExternalLinkContent.encode(n)}}},25891:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=n(42793);t.MediaLinkMock={generate(e,t){let n=(null==t?void 0:t.value)||{__TYPE__:r.FileLinkType,id:"mock_Media_link",kind:"image/jpeg",name:"mock_name",url:"https://source.unsplash.com/daily",size:"0"};return r.FileLinkContent.encode(n)}}},33610:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=n(78948),i=n(42793),o=n(18784),u=n(50107),a=n(79241),c=n(25891);t.LinkMock={generate(e,t){let n=(()=>{var n;switch(null===(n=e.config)||void 0===n?void 0:n.select){case"document":return u.DocumentLinkMock.generate(e);case"web":default:return a.ExternalLinkMock.generate(e,(null==t?void 0:t.value)&&t.value);case"media":return c.MediaLinkMock.generate(e,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:i.LinkContentType,value:n}},applyPatch(e){var t;if(e.diff.op===o.DiffOperation.Removed)return{result:void 0};if("Link"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isLinkContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Link"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Added:case o.DiffOperation.Updated:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(50107),t),(0,r.__exportStar)(n(79241),t),(0,r.__exportStar)(n(25891),t)},628:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberMock=void 0;let r=n(42793),i=n(18784);t.NumberMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Number"===e.diff.value.type){let n=this.patch(e.diff,e.content&&e.content.__TYPE__!==r.FieldContentType?void 0:e.content,(null===(t=e.config)||void 0===t?void 0:t.type)==="Number"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},38206:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeMock=void 0;let r=n(42793),i=n(18784);t.RangeMock={generate(e,t){var n,i,o;let u=(null===(n=e.config)||void 0===n?void 0:n.min)?(null==t?void 0:t.min)&&t.min>e.config.min?t.min:e.config.min:0,a=(null===(i=e.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<e.config.max?t.max:e.config.max:100,c=(null===(o=e.config)||void 0===o?void 0:o.step)?(null==t?void 0:t.step)&&t.step>e.config.step?t.step:e.config.step:1,f=((null==t?void 0:t.value)?t.value:function(e,t,n){let r=Math.floor(Math.random()*(t-e))+e;return r%n==0?r:Math.min(r+(n-r%n),t)}(u,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Range"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isRangeContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Range"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},13319:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=t.LoremDefaultConfig=void 0;let r=n(93784),i=n(72788),o=n(15801);t.LoremDefaultConfig={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}},t.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:e=>e.some(e=>e===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words."},HEADING:{title:"Section Title",test:e=>e.some(t.RichTextMockConfig.isHeading),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,],description:"A single heading (h1 to h6) with a variant number of words."},STORY:{title:"Story",test:e=>e.some(t.RichTextMockConfig.isHeading)&&e.some(e=>e===r.RichTextNodeType.paragraph),value:e=>[e.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...t.RichTextMockConfig.optionalType(e,r.RichTextNodeType.image),r.RichTextNodeType.paragraph,],description:"Content with headings, texts and optional images"}},t.RichTextMockConfig={INITIAL_CONFIG:{pattern:t.Patterns.PARAGRAPH,blocks:1},isHeading:e=>0===e.indexOf("heading"),isText:e=>e===r.RichTextNodeType.paragraph||t.RichTextMockConfig.isHeading(e),isImage:e=>e===r.RichTextNodeType.image,optionalType:(e,t)=>e.find(e=>e===t)&&Math.random()>.5?[t]:[],findMatchingPattern(e){let n=Object.entries(t.Patterns).find(([,t])=>t.test(e));return n&&n.length?n[1]:t.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText(e,n){let r=new i.LoremIpsum(n);if(t.RichTextMockConfig.isHeading(e)){let u=(0,o.slug)({min:5,max:10});return[u[0]&&u[0].toUpperCase(),...u.slice(1)].join("")}return r.generateParagraphs(1)}}},35650:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=n(78948),i=n(42793),o=n(93784),u=n(18784),a=n(66947),c=n(13319);t.RichTextMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e,t){var n,r;let i=((null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.multi)||(null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.single)||`${o.RichTextNodeType.paragraph}`).split(",").map(e=>e),u=(null==t?void 0:t.pattern)&&c.Patterns[t.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=u.value(i),l=Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(e=>{if(c.RichTextMockConfig.isText(e))return{type:e,content:{text:c.RichTextMockConfig.generateText(e,c.LoremDefaultConfig)}};let t=(0,a.random)({type:"Image"});return{type:o.RichTextNodeType.image,data:t}}));return l.flat()}(e,t);return{__TYPE__:i.RichTextContentType,value:n}},applyPatch(e){var t;if(e.diff.op===u.DiffOperation.Removed)return{result:void 0};if("StructuredText"===e.diff.value.type){let n=this.patch(e.diff,(0,i.isRichTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="StructuredText"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(e.value,n)}}},(0,r.__exportStar)(n(13319),t)},20999:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMock=void 0;let r=n(42793),i=n(18784),o="mock_option";t.SelectMock={generate(e,t){let n=(null==t?void 0:t.value)||function(e){if(!e.config)return o;if(e.config.default_value&&.5>Math.random())return e.config.default_value;if(!e.config.options)return o;let t=Math.floor(Math.random()*e.config.options.length);return e.config.options[t]||o}(e);return{__TYPE__:r.FieldContentType,value:n,type:"Select"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Select"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isSelectContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Select"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},14259:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorMock=void 0;let r=n(42793),i=n(18784);t.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(e){if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Separator"===e.diff.value.type){let t=this.patch(e.diff,(0,r.isSeparatorContent)(e.content)?e.content:void 0);return{result:t}}},patch(e,t){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value)}}}},44395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=n(42793),i=n(18784),o=n(15801);t.TextMock={generate(e,t){var n,i;let u=(null==t?void 0:t.value)||(n=null==t?void 0:t.minChar,i=null==t?void 0:t.maxChar,(0,o.slug)({...n?{min:n}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:u,type:"Text"}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Text"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isTextContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Text"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},4424:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampMock=void 0;let r=n(42793),i=n(18784);function o(e){return e.toISOString().slice(0,19)+"Z"}function u(e=new Date(2012,0,1),t=new Date){let n=new Date(e.getTime()+Math.random()*(t.getTime()-e.getTime()));return o(n)}t.TimestampMock={generate(e,t){let n=(null==t?void 0:t.value)?o(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?u(t.start,t.end):u(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:n}},applyPatch(e){var t;if(e.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Timestamp"===e.diff.value.type){let n=this.patch(e.diff,(0,r.isTimestampContent)(e.content)?e.content:void 0,(null===(t=e.config)||void 0===t?void 0:t.type)==="Timestamp"?e.config:void 0);return{result:n}}},patch(e,t,n){switch(e.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(e.value,n)}}}},92947:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidgetMock=void 0;let r=n(78948),i=n(18784),o=n(42386),u=n(77859),a=n(21276),c=n(60300),f=n(95441),l=n(66947),p=n(54595),d=n(33610),s=n(628),h=n(38206),m=n(35650),v=n(20999),y=n(14259),_=n(44395),b=n(4424);(0,r.__exportStar)(n(42386),t),(0,r.__exportStar)(n(77859),t),(0,r.__exportStar)(n(21276),t),(0,r.__exportStar)(n(60300),t),(0,r.__exportStar)(n(95441),t),(0,r.__exportStar)(n(66947),t),(0,r.__exportStar)(n(54595),t),(0,r.__exportStar)(n(33610),t),(0,r.__exportStar)(n(628),t),(0,r.__exportStar)(n(38206),t),(0,r.__exportStar)(n(35650),t),(0,r.__exportStar)(n(20999),t),(0,r.__exportStar)(n(14259),t),(0,r.__exportStar)(n(44395),t),(0,r.__exportStar)(n(4424),t),t.NestableWidgetMock={generate(e,t){switch(e.type){case"Boolean":return o.BooleanMock.generate(e,(null==t?void 0:t.type)==="Boolean"?t:void 0);case"Color":return u.ColorMock.generate(e,(null==t?void 0:t.type)==="Color"?t:void 0);case"Link":return d.LinkMock.generate(e,(null==t?void 0:t.type)==="Link"?t:void 0);case"Date":return a.DateMock.generate(e,(null==t?void 0:t.type)==="Date"?t:void 0);case"Embed":return c.EmbedMock.generate(e,(null==t?void 0:t.type)==="Embed"?t:void 0);case"GeoPoint":return f.GeoPointMock.generate(e,(null==t?void 0:t.type)==="GeoPoint"?t:void 0);case"Image":return l.ImageMock.generate(e);case"IntegrationFields":return p.IntegrationFieldMock.generate(e,(null==t?void 0:t.type)==="IntegrationFields"?t:void 0);case"Number":return s.NumberMock.generate(e,(null==t?void 0:t.type)==="Number"?t:void 0);case"Range":return h.RangeMock.generate(e,(null==t?void 0:t.type)==="Range"?t:void 0);case"StructuredText":return m.RichTextMock.generate(e,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return v.SelectMock.generate(e,(null==t?void 0:t.type)==="Select"?t:void 0);case"Text":return _.TextMock.generate(e,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return b.TimestampMock.generate(e,(null==t?void 0:t.type)==="Timestamp"?t:void 0);case"Separator":return y.SeparatorMock.generate(e)}},patch(e,t,n){if(e.op===i.DiffOperation.Removed)return;let r={diff:e,content:t,config:n},S=u.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||b.TimestampMock.applyPatch(r)||v.SelectMock.applyPatch(r)||h.RangeMock.applyPatch(r)||_.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||o.BooleanMock.applyPatch(r)||m.RichTextMock.applyPatch(r)||d.LinkMock.applyPatch(r)||c.EmbedMock.applyPatch(r)||f.GeoPointMock.applyPatch(r)||l.ImageMock.applyPatch(r)||p.IntegrationFieldMock.applyPatch(r)||y.SeparatorMock.applyPatch(r);return null==S?void 0:S.result}}},25242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=n(78948),i=n(73605);t.generateDocumentMock=function(e,t,n){let r=i.DocumentMock.generate(e,t,n);return n=>n?n(e,t,r):r},t.generateSliceMock=function(e,t){let n=i.SharedSliceMock.generate(e,t);return t=>t?t(e,n):n},(0,r.__exportStar)(n(73605),t),(0,r.__exportStar)(n(86449),t)},54775:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(73985),i={urlRewriter:{optimizeImageUrl:e=>e,rewriteImageUrl:e=>e.url||"/mockURL",rewriteFileUrl:e=>e,rewriteS3Bucket:e=>e,enforceCDN:e=>e},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:r.Extensions.encodeDocId},encoders:r.Extensions.IDEncoders},LinkResolver:{buildUrl:e=>"/"}};t.default=i},86449:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.renderSliceMock=t.renderDocumentMock=void 0;let r=n(78948),i=n(88985),o=n(93784),u=n(73207),a=(0,r.__importDefault)(n(54775));t.renderDocumentMock=function(e,t,n){let r=Object.entries(t).filter(e=>Boolean(e[1])),u=Object.entries(n).filter(e=>Boolean(e[1])),c=(0,o.toStatic)(e,new Map(r)),f={customTypeId:e.id,fields:Object.fromEntries((0,o.flattenSections)(c))};return(0,i.DocumentRenderer)(a.default).renderMocks(f,u)},t.renderSliceMock=function(e,t){return{...(0,i.SharedSliceRenderer)(a.default).renderMocks(e,t),id:`${e.id}$${(0,u.v4)()}`,slice_type:e.id}}},52057:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},13496:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n};t.getAssetOrThrow=n},64433:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n};t.getEmbedOrThrow=n},42250:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},43830:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(55242),u=RegExp("^[^<>]+$");t.WidgetKey=(0,o.refineType)(i.string,"WidgetKey",e=>0===e.length||u.test(e))},88966:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(13496),t),(0,r.__exportStar)(n(64433),t),(0,r.__exportStar)(n(43830),t)},60716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(78948),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(52057),f=n(88966),l=n(93784),p=n(29585),d=n(63750);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),h=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function m(e){let t=Object.entries(e),{types:n,widgets:r}=t.reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),i=e.slugs_INTERNAL||[],u=e.uid;return{widgets:r,types:n,uid:u,slugs:i}}function v(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function y({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"},]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)!=="Group"&&(null==a?void 0:a.type)!=="Slices"&&(null==a?void 0:a.type)!=="Choice"?a:void 0,content:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function _(e,t){let n=l.StaticCustomType.is(t)?v(t):t,r=Object.values((0,l.collectSharedSlices)(n)).some(e=>Boolean(e.legacyPaths));return r?y({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:h,extractMetadata:m,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=m(e);return h(t).decode(n)}));return(0,o.isLeft)(n)?void 0:_(n.right,t)},encode:function(e){let t=h().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?v(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(i)?(0,p.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,p.isSlicesContent)(i)?(0,p.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&l.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):i}})();return o?{...e,[n]:o}:e},t)},t.traverseDocument=y,t.collectWidgets=function(e,t){let n={};return y({document:e})({transformWidget({content:e,path:r}){let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=_},63750:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(75493);t.FieldOrSliceType=i.union([o.FieldType,o.SlicesTypes]);class u{constructor(e,t,n){Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=e,this.fieldPath=t||[],this.allTypes=n||new Map;let r=Array.of(this.fieldPath,[this.fieldKey]).flat().join(".");this.prefixedKey=r,this.keyOfType=`${r}_TYPE`,this.fieldType=this.allTypes.get(this.prefixedKey)}}t.LegacyContentCtx=u,t.getFieldCtx=function(e,t,n){return new u(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new u(e,[],t)}},84774:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.EmptyContentType="EmptyContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;t.isEmptyContent=c;let f=u.union([u.null,u.type({value:u.null}),]),l=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(f.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null);t.EmptyLegacy=l,t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},28844:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroupItemsContent=t.traverseGroupContent=t.groupContentWithDefaultValues=t.GroupContentDefaultValue=t.GroupContent=t.isGroupContent=t.GroupContentType=t.GroupLegacy=t.GroupItemLegacy=t.GroupItemContent=t.GroupItemContentType=void 0;let r=n(78948),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(63750),f=n(93906),l=n(74912),p=n(69220);t.GroupItemContentType="GroupItemContent",t.GroupItemContent=a.strict({__TYPE__:a.literal(t.GroupItemContentType),value:a.array(a.tuple([a.string,l.NestableContent]))});let d=a.record(a.string,a.unknown),s=e=>new a.Type("GroupItemLegacy",e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>{let r=(0,u.pipe)(d.decode(n),i.either.map(n=>{let r=Object.entries(n).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),u=(0,l.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:[...t,[n,u.right]]},[]);return{value:r,__TYPE__:t.GroupItemContentType}}));return r},t=>t.value.reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),o=(0,l.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));t.GroupItemLegacy=s;let h=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Group"})}})};t.GroupLegacy=h,t.GroupContentType="GroupContentType";let m=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.GroupContentType;function v({path:e,model:t,content:n}){return r=>n.map((n,i)=>{let o=e.concat([{key:i.toString(),type:"GroupItem"},]),u=n.value.reduce((e,[n,i])=>{let u=null==t?void 0:t[n],a=r({path:o.concat([{key:n,type:"Widget"}]),key:n,apiId:n,model:u,content:i});return a&&(0,l.isNestableContent)(a)?e.concat([[n,a]]):e},[]);return{__TYPE__:n.__TYPE__,value:u}})}t.isGroupContent=m,t.GroupContent=a.strict({__TYPE__:a.literal(t.GroupContentType),value:a.array(t.GroupItemContent)}),t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]},t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,p.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=v({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}},t.traverseGroupItemsContent=v},33437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.UIDContentType="UIDContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType;t.isUIDContent=c;let f=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}}));t.UIDLegacy=f,t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},51357:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(28844),u=n(74912),a=n(47828),c=n(33437);t.WidgetContent=i.union([o.GroupContent,u.NestableContent,c.UIDContent,a.SlicesContent,]);let f=e=>(0,o.isGroupContent)(e)||(0,u.isNestableContent)(e)||(0,c.isUIDContent)(e)||(0,a.isSlicesContent)(e);t.isWidgetContent=f;let l=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,c.UIDLegacy)(e);case"Group":return(0,o.GroupLegacy)(e);case"Choice":case"Slices":return(0,a.SlicesLegacy)(e);default:return(0,u.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(e).encode(t);case o.GroupContentType:return(0,o.GroupLegacy)(e).encode(t);case a.SlicesContentType:return(0,a.SlicesLegacy)(e).encode(t);default:return(0,u.NestableLegacy)(e).encode(t)}}});t.WidgetLegacy=l},29585:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(84774),t),(0,r.__exportStar)(n(28844),t),(0,r.__exportStar)(n(74912),t),(0,r.__exportStar)(n(47828),t),(0,r.__exportStar)(n(33437),t),(0,r.__exportStar)(n(51357),t)},55211:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.BooleanContentType="BooleanContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType;t.isBooleanContent=c;let f=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}}));t.BooleanLegacy=f,t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean});let l=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0};t.BooleanContentDefaultValue=l},44390:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(49664),c=n(93906);t.EmbedContentType="EmbedContent";let f=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType;t.isEmbedContent=f,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}}));t.EmbedLegacy=l,t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown}),])},82622:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type;t.isColorContent=p;let d=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}}));t.ColorLegacy=d,t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},95066:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type;t.isDateContent=p;let d=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}}));t.DateLegacy=d,t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},77512:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type;t.isNumberContent=p;let d=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}}));t.NumberLegacy=d,t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},28107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type;t.isRangeContent=p;let d=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}}));t.RangeLegacy=d,t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},5805:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type;t.isSelectContent=p;let d=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}}));t.SelectLegacy=d,t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)});let s=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0};t.SelectContentDefaultValue=s},19522:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type;t.isTextContent=p;let d=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}}));t.TextLegacy=d,t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},53033:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(75493),c=(0,r.__importDefault)(n(55746)),f=n(93906),l=n(51243),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type;t.isTimestampContent=p;let d=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}}));t.TimestampLegacy=d,t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},51243:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},14898:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(82622),u=n(95066),a=n(77512),c=n(28107),f=n(5805),l=n(19522),p=n(53033);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent,]),(0,r.__exportStar)(n(82622),t),(0,r.__exportStar)(n(51243),t),(0,r.__exportStar)(n(95066),t),(0,r.__exportStar)(n(77512),t),(0,r.__exportStar)(n(28107),t),(0,r.__exportStar)(n(5805),t),(0,r.__exportStar)(n(19522),t),(0,r.__exportStar)(n(53033),t)},66450:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(78948),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(93906);t.GeoPointContentType="GeoPointContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;t.isGeoPointContent=c;let f=u.strict({position:u.strict({lat:u.number,lng:u.number})}),l=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(f.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}}));t.GeoPointLegacy=l,t.GeoPointContent=u.intersection([f,u.strict({__TYPE__:u.literal(t.GeoPointContentType)}),])},80286:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(73147),c=n(49664),f=n(93906);t.ImageContentType="ImageContent";let l=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;t.isImageContent=l;let p=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:p,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let d=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)}),]),s=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(d.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__TYPE__:t.ImageContentType}))),t=>({content:(0,a.withOptionals)({edit:t.edit,height:t.height,origin:t.origin,width:t.width},[["alt",t.alt],["credits",t.credits],["provider",t.provider],["thumbnails",t.thumbnails],["url",t.url],]),types:{[e.keyOfType]:"Image"}}));t.ImageLegacy=s,t.ImageContent=u.intersection([d,u.strict({__TYPE__:u.literal(t.ImageContentType)}),])},53304:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906);t.IntegrationFieldContentType="IntegrationFieldsContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType;t.isIntegrationFieldContent=c;let f=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}}));t.IntegrationFieldLegacy=f,t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},89138:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.ExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.DocumentLinkType=t.FileLinkContent=t.FileLinkType=t.ImageLinkContent=t.ImageLinkType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(49664),f=n(55242),l=n(93906);t.ImageLinkType="ImageLink";let p=u.exact(u.intersection([u.type({id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string,kind:u.string}),u.partial({date:c.StringOrNull}),])),d=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p,]),t.FileLinkType="FileLink";let s=u.exact(u.intersection([u.type({id:u.string,url:u.string,name:u.string,kind:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:(0,f.nullable)(u.string)}),])),h=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>s.encode(e));t.FileLinkContent=u.intersection([s,u.exact(u.intersection([u.type({__TYPE__:u.literal(t.FileLinkType)}),u.partial({size:(0,a.withFallback)(u.string,"0")}),])),]),t.DocumentLinkType="DocumentLink";let m=u.strict({id:c.NonEmptyString}),v=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(m.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>m.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),m,]),t.ExternalLinkType="ExternalLink";let y=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))}),])),_=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(y.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>y.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),y,]),t.LinkContentType="LinkContent";let b=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType;t.isLinkContent=b,t.LinkLegacy=u.union([d,h,v,_,]);let S=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}}));t.LinkContentLegacy=S,t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,]),t.LinkContent=u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})},69506:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(78948),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(84774),a=n(55211),c=n(44390),f=n(14898),l=n(51243),p=n(66450),d=n(80286),s=n(53304),h=n(89138),m=n(18638),v=n(72372);t.NestableContent=o.union([u.EmptyContent,a.BooleanContent,c.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,h.LinkContent,m.RichTextContent,v.SeparatorContent,]);let y=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}};t.NestableContentDefaultValue=y;let _=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,m.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,h.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,u.isEmptyContent)(e);t.isNestableContent=_;let b=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,m.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,h.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case m.RichTextContentType:return(0,m.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case h.LinkContentType:return(0,h.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);default:return}}});t.NestableLegacy=b},92546:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=n(78948),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(82250),l=n(49664),p=n(55242),d=n(44390),s=n(80286),h=n(89138),m=e=>a.strict({data:e,start:a.number,end:a.number,type:a.literal(f.RichTextNodeType.hyperlink)}),v=a.strict({data:(0,c.withFallback)(a.string,""),start:a.number,end:a.number,type:a.literal("label")}),y=a.strict({start:a.number,end:a.number,type:a.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});t.Span=a.union([m(h.Link),v,y]),t.SpanLegacy=a.union([m(h.LinkLegacy),v,y]);let _=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let r=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(r)}},t=>t.reduce((t,n)=>{let r=e.encode(n);return[...t,r]},[]));t.ValidatedSpans=_;let b=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)}),])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),]));t.ImageBlock=b(h.Link);let S=b(h.LinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let T=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),I=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(T.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...T.encode(e),data:d.EmbedContentLegacy.encode(e.data)}));t.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),t.checkEmbedBlock=function(e){return e.type===f.RichTextNodeType.embed};let x=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)}),])}),a.partial({label:a.string,direction:a.string}),]));t.TextBlock=x(t.Span);let w=x(t.SpanLegacy),O=a.union([I,S,w,]);t.BlockLegacy=new a.Type("BlockLegacy",e=>I.is(e)||S.is(e)||w.is(e),e=>O.decode(e),e=>t.ImageBlock.is(e)?S.encode(e):t.EmbedBlock.is(e)?I.encode(e):w.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},18638:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(93906),c=n(92546);t.RichTextContentType="StructuredTextContent";let f=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType;t.isRichTextContent=f;let l=u.array(c.BlockLegacy);t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(92546),t);let p=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(l.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:l.encode(t.value),types:{[e.keyOfType]:"StructuredText"}}));t.RichTextLegacy=p},72372:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(93906);t.SeparatorContentType="SeparatorContent";let u=e=>(0,o.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType;t.isSeparatorContent=u;let a=e=>new i.Type("SeparatorLegacy",t.isSeparatorContent,()=>i.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}}));t.SeparatorLegacy=a,t.SeparatorContent=i.strict({__TYPE__:i.literal(t.SeparatorContentType)})},74912:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(55211),t),(0,r.__exportStar)(n(44390),t),(0,r.__exportStar)(n(14898),t),(0,r.__exportStar)(n(66450),t),(0,r.__exportStar)(n(80286),t),(0,r.__exportStar)(n(53304),t),(0,r.__exportStar)(n(89138),t),(0,r.__exportStar)(n(69506),t),(0,r.__exportStar)(n(18638),t),(0,r.__exportStar)(n(72372),t)},80975:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(78948),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(63750),f=n(93906),l=n(28844),p=n(74912),d=n(69220),s=n(95887);t.CompositeSliceContentType="CompositeSliceContent";let h=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;t.isCompositeSliceContent=h;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),v=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,s.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e),r=(0,s.RepeatableWidgetsLegacy)(n).encode(t.repeat);return r})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.CompositeSliceLegacy=v,t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,p.NestableContent),repeat:s.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,d.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===f?void 0:f[u]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:d,content:a});return s?(0,p.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,l.traverseGroupItemsContent)({path:e.concat([{key:"repeat",type:"items"}]),model:(null==r?void 0:r.type)==="SharedSlice"?null==r?void 0:r.fields.items:null==r?void 0:r.repeat,content:i.widget.repeat})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},95887:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(28844),u=n(74912),a=e=>i.array((0,o.GroupItemLegacy)(e));t.RepeatableWidgetsLegacy=a;let c=i.tuple([i.string,u.NestableContent]),f=i.strict({__TYPE__:i.literal(o.GroupItemContentType),value:i.array(c)});t.RepeatableWidgets=i.array(f)},61467:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(78948),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(93784),l=n(63750),p=n(93906),d=n(28844),s=n(74912),h=n(69220),m=n(95887),v=n(72967);t.SharedSliceContentType="SharedSliceContent";let y=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;t.isSharedSliceContent=y;let _=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),b=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(_.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation,]),r=(0,m.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary",]),a=(0,v.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary",]),u=(0,v.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation,]),r=(0,m.RepeatableWidgetsLegacy)(n).encode(t.items);return r})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.SharedSliceLegacy=b,t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:m.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,h.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,h.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,a])=>{var c,l;let p=null===(l=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===l?void 0:l[u];if((0,d.isGroupContent)(a)&&(null==p?void 0:p.type)===f.GroupFieldType){let h=(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,content:a,model:p})(o);return h?{...i,[u]:h}:i}let m=o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:p,content:a});return m?(0,s.isNestableContent)(m)?{...i,[u]:m}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),i):i},{}),c=(0,d.traverseGroupItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},44979:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(28844),u=n(74912);t.SimpleSliceContent=i.union([u.NestableContent,o.GroupContent]);let a=e=>(0,u.isNestableContent)(e)||(0,o.isGroupContent)(e);t.isSimpleSliceContent=a;let c=e=>({decode:"Group"===e.fieldType?(0,o.GroupLegacy)(e).decode.bind(null):(0,u.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,o.GroupLegacy)(e).encode(t):(0,u.NestableLegacy)(e).encode(t)});t.SimpleSliceLegacy=c,t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(u,a)=>{var c;if((0,o.isGroupContent)(i.widget)){let f=(0,o.traverseGroupContent)({path:e,key:i.key,apiId:i.name,model:(null==r?void 0:r.type)==="Group"?r:(null==r?void 0:r.type)==="SharedSlice"?{type:"Group",config:{fields:r.fields.items||{}}}:void 0,content:i.widget})(u);return f&&a({key:i.key,apiId:i.name,path:e,model:r,content:{...i,widget:f}})}let l=u({key:i.key,apiId:i.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return l&&a({key:t,apiId:n,path:e,model:r,content:{...i,widget:l}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},72967:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(93784),u=n(28844),a=n(74912);t.SlicePrimaryContent=i.union([a.NestableContent,u.GroupContent]);let c=e=>{let t=(0,u.GroupLegacy)(e),n=(0,a.NestableLegacy)(e);return{decode:r=>e.fieldType===o.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,u.isGroupContent)(e)?t.encode(e):n.encode(e)}};t.SlicePrimaryLegacy=c},54672:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(80975),u=n(61467),a=n(44979),c=e=>({decode(t){let n=(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})();return n.decode(t)},encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}});t.SliceLegacy=c,t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent,]),(0,r.__exportStar)(n(80975),t),(0,r.__exportStar)(n(61467),t),(0,r.__exportStar)(n(44979),t)},78005:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(78948),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(55242),f=n(63750),l=n(28844),p=n(74912),d=n(69220),s=n(54672),h=n(80975),m=n(61467),v=n(44979);function y(e){return(0,h.isCompositeSliceContent)(e.widget)}function _(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,m.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=y,t.isSimpleSliceItemContent=_,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,m.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,h.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let r=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:r}}return t};let b=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),S=e=>new a.Type("SlicesItemLegacy",e=>((0,m.isSharedSliceContent)(e.widget),(0,h.isCompositeSliceContent)(e.widget),(0,v.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(b.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).encode(t.widget);return{content:{key:t.key,label:t.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}});t.SlicesItemLegacy=S;let T=({model:e,content:t})=>y(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,h.migrateCompositeSlice)(e,t):_(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(e,t):t;t.migrateSliceItem=T},25230:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(52057),c=n(93784),f=n(93906),l=n(80975),p=n(61467),d=n(44979),s=n(78005);t.SlicesContentType="SliceContentType";let h=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType;t.isSlicesContent=h;let m=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})};t.SlicesLegacy=m,t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},47828:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(54672),t),(0,r.__exportStar)(n(78005),t),(0,r.__exportStar)(n(25230),t)},69220:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(93784),i=n(28844),o=n(74912);t.withDefaultSlicePrimaryContentValues=function(e,t){let n=t;for(let[u,a]of Object.entries(e)){let c=t[u];if(void 0===c){if(a.type===r.GroupFieldType)n[u]=(0,i.groupContentWithDefaultValues)(a,i.GroupContentDefaultValue);else{let f=(0,o.NestableContentDefaultValue)(a);f&&(n[u]=f)}continue}a.type===r.GroupFieldType&&(0,i.isGroupContent)(c)&&(n[u]=(0,i.groupContentWithDefaultValues)(a,c))}return n},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let i=(0,o.NestableContentDefaultValue)(r);return void 0!==i?{...e,[n]:i}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{if(!e.value.find(([e])=>e===n)){let i=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...i?[[n,i]]:[],]}}return t},e))}},42793:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(60716),t),(0,r.__exportStar)(n(29585),t),(0,r.__exportStar)(n(63750),t)},93906:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(29585);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},70090:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.collectSharedSlices=t.flattenCustomTypeFields=t.filterMissingSharedSlices=t.collectWidgets=t.validateSlices=t.toStatic=t.flattenSections=t.flattenWidgets=t.CustomType=t.StaticCustomType=t.CustomTypeFormat=void 0;let r=n(78948),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(49664),c=n(56668);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){super(),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"message",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.slices=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
|
|
2
|
+
${t.join("\n")}
|
|
3
|
+
`}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({hash:o.string,format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")}),]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=function(e){let t=p(e).filter(([,e])=>"Slices"===e.type),n=t.reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return n}(e);return function(e){return t.map(e)}})(e)(e=>{let n=t.get(e);if(!n)return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),i={...n.config,choices:r};return{...n,config:i}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},56668:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(88966),u=n(35264);function a(e){return i.record(o.WidgetKey,e)}t.sectionReader=a,t.StaticSection=a(u.StaticWidget),t.DynamicSection=a(u.DynamicWidget),t.Sections={toStatic(e,t){let n=Object.entries(e).reduce((e,[n,r])=>({...e,[n]:u.Widgets.toStatic(r,t)}),{});return n}}},88082:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},73106:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(68396),i=n(88082),o=n(17398);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id)),a=Object.entries(u).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),c={...n,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},17398:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(68396),i=n(88082);function o(e,t){let n=r.Objects.zipObjects(e,t),o=Object.entries(n).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{if((null==n?void 0:n.left)||(null==n?void 0:n.right))return(null==n?void 0:n.left)&&!n.right?{op:i.DiffOperation.Removed}:!(null==n?void 0:n.left)&&(null==n?void 0:n.right)?{op:i.DiffOperation.Added,value:n.right}:{op:i.DiffOperation.Updated,value:n.right}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(o)?o:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:i.DiffOperation.Removed};if(!e&&t)return{op:i.DiffOperation.Added,value:t};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=o(null==e?void 0:e.primary,null==t?void 0:t.primary),a=o(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...u?{primary:u}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},18784:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(88082),t),(0,r.__exportStar)(n(73106),t),(0,r.__exportStar)(n(17398),t)},93784:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(70090),t),(0,r.__exportStar)(n(18784),t),(0,r.__exportStar)(n(56668),t),(0,r.__exportStar)(n(75493),t)},82051:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.GroupFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(88966),u=n(49664),a=n(56966);t.GroupFieldType="Group",t.GroupConfig=i.exact(i.partial({label:u.StringOrNull,repeat:i.boolean,fields:i.record(o.WidgetKey,a.NestableWidget)})),t.Group=i.exact(i.intersection([i.type({type:i.literal(t.GroupFieldType)}),i.partial({fieldset:u.StringOrNull,icon:i.string,description:i.string,config:t.GroupConfig}),]))},29218:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.UIDFieldType="UID",t.UIDConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.UID=i.exact(i.intersection([i.type({type:i.literal(t.UIDFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.UIDConfig}),]))},35264:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(82051),u=n(82250),a=n(56966),c=n(14149),f=n(29218);function l(e){return i.union([f.UID,a.NestableWidget,o.Group,e])}t.widgetReader=l,t.StaticWidget=l(c.StaticSlices),t.DynamicWidget=l(c.DynamicSlices),t.FieldType=i.keyof({[u.ColorFieldType]:null,[u.BooleanFieldType]:null,[u.NumberFieldType]:null,[u.EmbedFieldType]:null,[u.GeoPointFieldType]:null,[u.DateFieldType]:null,[u.RangeFieldType]:null,[u.RichTextFieldType]:null,[u.SelectFieldType]:null,[u.SeparatorFieldType]:null,[u.TextFieldType]:null,[u.TimestampFieldType]:null,[u.LinkFieldType]:null,[u.ImageFieldType]:null,[u.IntegrationFieldType]:null,[f.UIDFieldType]:null,[o.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return c.Slices.toStatic(e,t);default:return e}}}},75493:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(82051),t),(0,r.__exportStar)(n(82250),t),(0,r.__exportStar)(n(25852),t),(0,r.__exportStar)(n(27035),t),(0,r.__exportStar)(n(29218),t),(0,r.__exportStar)(n(35264),t)},50541:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.BooleanFieldType="Boolean",t.BooleanConfig=i.exact(i.partial({label:o.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),t.BooleanField=i.exact(i.intersection([i.type({type:i.literal(t.BooleanFieldType)}),i.partial({config:t.BooleanConfig}),]))},247:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.ColorFieldType="Color",t.ColorConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string})),t.Color=i.exact(i.intersection([i.type({type:i.literal(t.ColorFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ColorConfig}),]))},33006:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.DateFieldType="Date",t.DateConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Date=i.exact(i.intersection([i.type({type:i.literal(t.DateFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.DateConfig}),]))},26493:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.EmbedFieldType="Embed",t.EmbedConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),t.Embed=i.exact(i.intersection([i.type({type:i.literal(t.EmbedFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.EmbedConfig}),]))},91301:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=i.exact(i.partial({label:o.StringOrNull})),t.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(t.GeoPointFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.GeoPointConfig}),]))},2507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664),u=(0,r.__importDefault)(n(14419));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default,])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig}),]))},22262:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,catalog:i.string})),t.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(t.IntegrationFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.IntegrationFieldConfig}),]))},45576:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(78948),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(49664),c=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return o.success(e)}},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null,]),null),customtypes:o.readonlyArray(o.string),masks:l,tags:l,allowTargetBlank:o.boolean})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig}),]))},56966:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(50541),u=n(247),a=n(33006),c=n(26493),f=n(91301),l=n(2507),p=n(22262),d=n(45576),s=n(99336),h=n(86422),m=n(9591),v=n(64753),y=n(3448),_=n(69809),b=n(82135);t.NestableWidget=i.union([u.Color,o.BooleanField,c.Embed,f.GeoPoint,a.Date,s.Number,h.Range,m.RichText,v.Select,y.Separator,_.Text,b.Timestamp,d.Link,l.Image,p.IntegrationField,])},99336:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(49664);t.NumberFieldType="Number",t.NumberConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Number=i.exact(i.intersection([i.type({type:i.literal(t.NumberFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.NumberConfig}),]))},86422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(49664);t.RangeFieldType="Range",t.RangeConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Range=i.exact(i.intersection([i.type({type:i.literal(t.RangeFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.RangeConfig}),]))},9591:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(78948),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(49664),f=(0,r.__importDefault)(n(14419));t.RichTextFieldType="StructuredText",t.DEFAULT_OPTION="paragraph",t.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",strong:"strong",em:"em",preformatted:"preformatted",hyperlink:"hyperlink",image:"image",embed:"embed",list:"list-item",orderedList:"o-list-item",rtl:"rtl"},t.RichTextNodeTypeCodec=a.keyof({[t.RichTextNodeType.heading1]:null,[t.RichTextNodeType.heading2]:null,[t.RichTextNodeType.heading3]:null,[t.RichTextNodeType.heading4]:null,[t.RichTextNodeType.heading5]:null,[t.RichTextNodeType.heading6]:null,[t.RichTextNodeType.paragraph]:null,[t.RichTextNodeType.strong]:null,[t.RichTextNodeType.em]:null,[t.RichTextNodeType.preformatted]:null,[t.RichTextNodeType.hyperlink]:null,[t.RichTextNodeType.image]:null,[t.RichTextNodeType.embed]:null,[t.RichTextNodeType.list]:null,[t.RichTextNodeType.orderedList]:null,[t.RichTextNodeType.rtl]:null});let l=new a.Type("RichTextOptions",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()),r=n.filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return r.length?r.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return a.success(e)}},h=e=>{if("string"==typeof e)return a.success([e])},m=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||h(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig}),]))},64753:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.SelectFieldType="Select",t.SelectConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,o.StringFromNumber,o.StringFromBoolean]))})),t.Select=i.exact(i.intersection([i.type({type:i.literal(t.SelectFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.SelectConfig}),]))},3448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.SeparatorFieldType="Separator",t.SeparatorConfig=i.exact(i.partial({label:o.StringOrNull})),t.Separator=i.exact(i.intersection([i.type({type:i.literal(t.SeparatorFieldType)}),i.partial({config:t.SeparatorConfig}),]))},69809:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.TextFieldType="Text",t.TextConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.Text=i.exact(i.intersection([i.type({type:i.literal(t.TextFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TextConfig}),]))},82135:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(49664);t.TimestampFieldType="Timestamp",t.TimestampConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Timestamp=i.exact(i.intersection([i.type({type:i.literal(t.TimestampFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TimestampConfig}),]))},82250:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(50541),t),(0,r.__exportStar)(n(247),t),(0,r.__exportStar)(n(33006),t),(0,r.__exportStar)(n(26493),t),(0,r.__exportStar)(n(91301),t),(0,r.__exportStar)(n(2507),t),(0,r.__exportStar)(n(22262),t),(0,r.__exportStar)(n(45576),t),(0,r.__exportStar)(n(56966),t),(0,r.__exportStar)(n(99336),t),(0,r.__exportStar)(n(86422),t),(0,r.__exportStar)(n(9591),t),(0,r.__exportStar)(n(64753),t),(0,r.__exportStar)(n(3448),t),(0,r.__exportStar)(n(69809),t),(0,r.__exportStar)(n(82135),t)},14419:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(49664),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null,]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},25852:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(14419);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},87190:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(88966),u=n(49664),a=n(56966);t.CompositeSliceType="Slice",t.CompositeSliceConfig=i.exact(i.partial({label:u.StringOrNull})),t.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(t.CompositeSliceType)}),i.partial({fieldset:u.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(o.WidgetKey,a.NestableWidget),repeat:i.record(o.WidgetKey,a.NestableWidget),config:t.CompositeSliceConfig}),])),t.isCompositeSlice=function(e){return"Slice"===e.type}},41379:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(82051),u=n(56966);t.LegacySlice=i.union([u.NestableWidget,o.Group]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},14881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(69624),u=n(88966),a=n(56966),c=n(60782);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,o.withFallback)(i.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:i.string,version:i.string}),i.partial({display:i.string,primary:i.record(u.WidgetKey,c.SlicePrimaryWidget),items:i.record(u.WidgetKey,a.NestableWidget)}),])),t.SharedSliceType="SharedSlice";let f=i.string,l=i.string;t.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(t.SharedSliceType),name:i.string,variations:i.readonlyArray(t.Variation)}),i.partial({description:i.string,legacyPaths:i.record(f,l)}),])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},15669:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(14881);t.SharedSliceRef=i.exact(i.type({type:i.literal(o.SharedSliceType)}))},304:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},60782:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicePrimaryWidget=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(82051),u=n(82250);t.SlicePrimaryWidget=i.union([u.NestableWidget,o.Group])},14149:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Slices=t.DynamicSlices=t.StaticSlices=t.slicesReader=t.DynamicSlicesConfig=t.StaticSlicesConfig=t.slicesConfigReader=t.SlicesLabels=t.SlicesFieldType=t.LegacySlicesFieldType=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(88966),u=n(49664),a=n(87190),c=n(41379),f=n(14881),l=n(15669);function p(e){return i.exact(i.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:i.record(o.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,e]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=i.union([i.record(i.string,i.readonlyArray(i.exact(i.intersection([i.type({name:i.string}),i.partial({display:i.string}),])))),i.null,]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let i=t.get(n);return i?{...e,[n]:i}:e}},{});return{...e,choices:n}}};function s(e){return i.exact(i.intersection([i.type({type:i.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),i.partial({fieldset:u.StringOrNull,config:e}),]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:d.toStatic(e.config,t)}:e}},73961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(87190),u=n(14881);t.SlicesTypes=i.keyof({[o.CompositeSliceType]:null,[u.SharedSliceType]:null})},27035:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948);(0,r.__exportStar)(n(87190),t),(0,r.__exportStar)(n(41379),t),(0,r.__exportStar)(n(14881),t),(0,r.__exportStar)(n(15669),t),(0,r.__exportStar)(n(304),t),(0,r.__exportStar)(n(60782),t),(0,r.__exportStar)(n(14149),t),(0,r.__exportStar)(n(73961),t)},71551:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},73147:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(78948),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){let n=[...new Set(Object.keys(e||{}).concat(Object.keys(t||{}))),];return n.reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return Boolean(Object.keys(e).length)},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},68396:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(78948);t.HexaColorCode=(0,r.__importStar)(n(42250)),t.Arrays=(0,r.__importStar)(n(71551)),t.Objects=(0,r.__importStar)(n(73147))},67836:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(78948),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(55242);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},76088:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(49664);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},49848:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},99451:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},49614:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(78948),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(67836),a=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0);t.DefaultOrElse=a;let c=e=>(0,t.DefaultOrElse)(o.null)(e);t.NullOrElse=c;let f=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e);t.EmptyObjectOrElse=f;let l=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e);t.EmptyArrayOrElse=l},79107:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},71112:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},4898:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(55242);t.default=(0,o.withCustomError)((0,o.refineType)(i.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},28881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(82395));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},46567:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(55242);t.default=(0,o.nullable)(i.number)},35048:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(67836);t.default=(e,t,n)=>o.Number.pipe(new i.Type("numberInRange",e=>o.Number.is(e),(r,o)=>r>t||r<e?i.failure(r,o,`${n} must be a number between ${e} and ${t}`):i.success(r),i.identity))},23517:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},65259:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},82395:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=(0,r.__importStar)(n(87830)),o=n(55242);t.default=(0,o.nullable)(i.string)},55746:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(78948),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},55242:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withCustomError=t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=n(78948),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n},])(e.validate(n,r)))}},49664:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberRange=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=n(78948);(0,r.__exportStar)(n(67836),t);var i=n(76088);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(49848);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(99451);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(49614),t),t.Function=(0,r.__importStar)(n(55242));var a=n(79107);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(71112);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(4898);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(28881);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(46567);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(35048);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(23517);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var h=n(65259);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=n(82395);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},73207:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=d(n(99324)),i=d(n(37776)),o=d(n(60588)),u=d(n(88434)),a=d(n(20669)),c=d(n(36058)),f=d(n(41252)),l=d(n(71400)),p=d(n(80169));function d(e){return e&&e.__esModule?e:{default:e}}},96902:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a,c;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let o=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(u)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let d=0;d<e.length;d+=16){let s=i,h=f,m=l,v=p;i=o(i,f,l,p,e[d],7,-680876936),p=o(p,i,f,l,e[d+1],12,-389564586),l=o(l,p,i,f,e[d+2],17,606105819),f=o(f,l,p,i,e[d+3],22,-1044525330),i=o(i,f,l,p,e[d+4],7,-176418897),p=o(p,i,f,l,e[d+5],12,1200080426),l=o(l,p,i,f,e[d+6],17,-1473231341),f=o(f,l,p,i,e[d+7],22,-45705983),i=o(i,f,l,p,e[d+8],7,1770035416),p=o(p,i,f,l,e[d+9],12,-1958414417),l=o(l,p,i,f,e[d+10],17,-42063),f=o(f,l,p,i,e[d+11],22,-1990404162),i=o(i,f,l,p,e[d+12],7,1804603682),p=o(p,i,f,l,e[d+13],12,-40341101),l=o(l,p,i,f,e[d+14],17,-1502002290),f=o(f,l,p,i,e[d+15],22,1236535329),i=u(i,f,l,p,e[d+1],5,-165796510),p=u(p,i,f,l,e[d+6],9,-1069501632),l=u(l,p,i,f,e[d+11],14,643717713),f=u(f,l,p,i,e[d],20,-373897302),i=u(i,f,l,p,e[d+5],5,-701558691),p=u(p,i,f,l,e[d+10],9,38016083),l=u(l,p,i,f,e[d+15],14,-660478335),f=u(f,l,p,i,e[d+4],20,-405537848),i=u(i,f,l,p,e[d+9],5,568446438),p=u(p,i,f,l,e[d+14],9,-1019803690),l=u(l,p,i,f,e[d+3],14,-187363961),f=u(f,l,p,i,e[d+8],20,1163531501),i=u(i,f,l,p,e[d+13],5,-1444681467),p=u(p,i,f,l,e[d+2],9,-51403784),l=u(l,p,i,f,e[d+7],14,1735328473),f=u(f,l,p,i,e[d+12],20,-1926607734),i=a(i,f,l,p,e[d+5],4,-378558),p=a(p,i,f,l,e[d+8],11,-2022574463),l=a(l,p,i,f,e[d+11],16,1839030562),f=a(f,l,p,i,e[d+14],23,-35309556),i=a(i,f,l,p,e[d+1],4,-1530992060),p=a(p,i,f,l,e[d+4],11,1272893353),l=a(l,p,i,f,e[d+7],16,-155497632),f=a(f,l,p,i,e[d+10],23,-1094730640),i=a(i,f,l,p,e[d+13],4,681279174),p=a(p,i,f,l,e[d],11,-358537222),l=a(l,p,i,f,e[d+3],16,-722521979),f=a(f,l,p,i,e[d+6],23,76029189),i=a(i,f,l,p,e[d+9],4,-640364487),p=a(p,i,f,l,e[d+12],11,-421815835),l=a(l,p,i,f,e[d+15],16,530742520),f=a(f,l,p,i,e[d+2],23,-995338651),i=c(i,f,l,p,e[d],6,-198630844),p=c(p,i,f,l,e[d+7],10,1126891415),l=c(l,p,i,f,e[d+14],15,-1416354905),f=c(f,l,p,i,e[d+5],21,-57434055),i=c(i,f,l,p,e[d+12],6,1700485571),p=c(p,i,f,l,e[d+3],10,-1894986606),l=c(l,p,i,f,e[d+10],15,-1051523),f=c(f,l,p,i,e[d+1],21,-2054922799),i=c(i,f,l,p,e[d+8],6,1873313359),p=c(p,i,f,l,e[d+15],10,-30611744),l=c(l,p,i,f,e[d+6],15,-1560198380),f=c(f,l,p,i,e[d+13],21,1309151649),i=c(i,f,l,p,e[d+4],6,-145523070),p=c(p,i,f,l,e[d+11],10,-1120210379),l=c(l,p,i,f,e[d+2],15,718787259),f=c(f,l,p,i,e[d+9],21,-343485551),i=r(i,s),f=r(f,h),l=r(l,m),p=r(p,v)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))};t.default=f},45691:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},20669:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},80169:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(41252),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=o},42143:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},90371:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};let n,r=new Uint8Array(16)},63639:function(e,t){function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){let t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let o=unescape(encodeURIComponent(e));e=[];for(let u=0;u<o.length;++u)e.push(o.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let a=e.length/4+2,c=Math.ceil(a/16),f=Array(c);for(let l=0;l<c;++l){let p=new Uint32Array(16);for(let d=0;d<16;++d)p[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];f[l]=p}f[c-1][14]=(e.length-1)*8/4294967296,f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<c;++s){let h=new Uint32Array(80);for(let m=0;m<16;++m)h[m]=f[s][m];for(let v=16;v<80;++v)h[v]=r(h[v-3]^h[v-8]^h[v-14]^h[v-16],1);let y=i[0],_=i[1],b=i[2],S=i[3],T=i[4];for(let I=0;I<80;++I){let x=Math.floor(I/20),w=r(y,5)+n(x,_,b,S)+T+t[x]+h[I]>>>0;T=S,S=b,b=r(_,30)>>>0,_=y,y=w}i[0]=i[0]+y>>>0,i[1]=i[1]+_>>>0,i[2]=i[2]+b>>>0,i[3]=i[3]+S>>>0,i[4]=i[4]+T>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},71400:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,i=(r=n(41252),r&&r.__esModule?r:{default:r});let o=[];for(let u=0;u<256;++u)o.push((u+256).toString(16).slice(1));function a(e,t=0){return o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}var c=function(e,t=0){let n=a(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};t.default=c},99324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(90371),r&&r.__esModule?r:{default:r}),o=n(71400);let u,a,c=0,f=0;var l=function(e,t,n){let r=t&&n||0,l=t||Array(16),p=(e=e||{}).node||u,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){let s=e.random||(e.rng||i.default)();null==p&&(p=u=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==d&&(d=a=(s[6]<<8|s[7])&16383)}let h=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,v=h-c+(m-f)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||h>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,f=m,a=d,h+=122192928e5;let y=((268435455&h)*1e4+m)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;let _=h/4294967296*1e4&268435455;l[r++]=_>>>8&255,l[r++]=255&_,l[r++]=_>>>24&15|16,l[r++]=_>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let b=0;b<6;++b)l[r+b]=p[b];return t||(0,o.unsafeStringify)(l)};t.default=l},37776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(90619)),i=o(n(96902));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},90619:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let l=0;l<16;++l)u[a+l]=f[l];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(c){}return r.DNS=u,r.URL=a,r};var r,i=n(71400),o=(r=n(80169),r&&r.__esModule?r:{default:r});let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},60588:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(45691)),i=u(n(90371)),o=n(71400);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();e=e||{};let u=e.random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=u[a];return t}return(0,o.unsafeStringify)(u)};t.default=a},88434:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(90619)),i=o(n(63639));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},41252:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(42143),r&&r.__esModule?r:{default:r}),o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},36058:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(41252),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},32387:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ContentPath=void 0,t.ContentPath={serialize:e=>e.map(e=>e.key).join("::"),current:e=>e[e.length-1],append:(e,t)=>e+"::"+t,make:e=>e.reduce((e,{key:t,type:n})=>t?e.concat({key:t,type:n}):e,[])}},9085:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getAssetOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing asset with id '${t}'!`);return n};t.getAssetOrThrow=n},97381:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getEmbedOrThrow=void 0;let n=e=>t=>{let n=e[t];if(!n)throw Error(`Missing embed with url '${t}'`);return n};t.getEmbedOrThrow=n},55962:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.HexaColor=void 0;let n=/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;t.HexaColor={is:e=>n.test(e)}},70402:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002),u=RegExp("^[^<>]+$");t.WidgetKey=(0,o.refineType)(i.string,"WidgetKey",e=>0===e.length||u.test(e))},31289:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(9085),t),(0,r.__exportStar)(n(97381),t),(0,r.__exportStar)(n(70402),t)},20168:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateDocument=t.collectWidgets=t.traverseDocument=t.fillDocumentWithDefaultValues=t.DocumentLegacy=t.Document=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(32387),f=n(31289),l=n(23535),p=n(33832),d=n(3845);t.Document=a.record(f.WidgetKey,p.WidgetContent);let s=a.record(f.WidgetKey,a.unknown),h=e=>new a.Type("Document",e=>!!e&&"object"==typeof e,t=>(0,u.pipe)(s.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),u=(0,p.WidgetLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{}))),t=>Object.entries(t).reduce((t,[n,r])=>{let i=(0,d.defaultCtx)(n,e),o=(0,p.WidgetLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));function m(e){let t=Object.entries(e),{types:n,widgets:r}=t.reduce((e,[t,n])=>{if(t.endsWith("_TYPE")){let r=d.FieldOrSliceType.decode(n);if((0,o.isRight)(r))return{...e,types:e.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?e:{...e,widgets:{...e.widgets,[t]:n}}},{types:new Map,widgets:{}}),i=e.slugs_INTERNAL||[],u=e.uid;return{widgets:r,types:n,uid:u,slugs:i}}function v(e){return{customTypeId:null==e?void 0:e.id,fields:Object.fromEntries((0,l.flattenSections)(e))}}function y({document:e,customType:t}){let n=t&&l.StaticCustomType.is(t)?v(t):t;return({transformWidget:t=({content:e})=>e,transformSlice:r=({content:e})=>e})=>{let i=n&&Object.entries(n.fields).reduce((e,[t,n])=>({...e,[t]:n}),{});return Object.entries(e).reduce((e,[o,u])=>{let a=i&&i[o],f=c.ContentPath.make([{key:null==n?void 0:n.customTypeId,type:"CustomType"},{key:o,type:"Widget"},]),l=(()=>{switch(u.__TYPE__){case"SliceContentType":return(0,p.traverseSlices)({path:f,key:o,model:(null==a?void 0:a.type)==="Slices"||(null==a?void 0:a.type)==="Choice"?a:void 0,content:u})({transformWidget:t,transformSlice:r});case"GroupContentType":return(0,p.traverseGroupContent)({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)==="Group"?a:void 0,content:u})(t);default:return t({path:f,key:o,apiId:o,model:(null==a?void 0:a.type)!=="Group"&&(null==a?void 0:a.type)!=="Slices"&&(null==a?void 0:a.type)!=="Choice"?a:void 0,content:u})}})();return{...e,...l?{[o]:l}:{}}},{})}}function _(e,t){let n=l.StaticCustomType.is(t)?v(t):t,r=Object.values((0,l.collectSharedSlices)(n)).some(e=>Boolean(e.legacyPaths));return r?y({document:e,customType:t})({transformSlice:p.migrateSliceItem}):e}t.DocumentLegacy={_codec:h,extractMetadata:m,parse:function(e,t){let n=(0,u.pipe)(a.record(f.WidgetKey,a.unknown).decode(e),i.either.chain(e=>{let{types:t,widgets:n}=m(e);return h(t).decode(n)}));return(0,o.isLeft)(n)?void 0:_(n.right,t)},encode:function(e){let t=h().encode(e);return{...t.content,...t.types}}},t.fillDocumentWithDefaultValues=function(e,t){let{fields:n}=e&&l.StaticCustomType.is(e)?v(e):e;return Object.entries(n).reduce((e,[n,r])=>{let i=t[n],o=(()=>{switch(r.type){case"Group":return(0,p.isGroupContent)(i)?(0,p.groupContentWithDefaultValues)(r,i):i;case"Choice":case"Slices":return(0,p.isSlicesContent)(i)?(0,p.slicesContentWithDefaultValues)(r,i):i;default:return void 0===i&&l.NestableWidget.is(r)?(0,p.NestableContentDefaultValue)(r):i}})();return o?{...e,[n]:o}:e},t)},t.traverseDocument=y,t.collectWidgets=function(e,t){let n={};return y({document:e})({transformWidget({content:e,path:r}){let i=c.ContentPath.serialize(r);return t(e,r)&&(n[i]=e),e}}),n},t.migrateDocument=_},3845:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(99814);t.FieldOrSliceType=i.union([o.FieldType,o.SlicesTypes]);class u{constructor(e,t,n){Object.defineProperty(this,"fieldKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"prefixedKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"keyOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"allTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fieldKey=e,this.fieldPath=t||[],this.allTypes=n||new Map;let r=Array.of(this.fieldPath,[this.fieldKey]).flat().join(".");this.prefixedKey=r,this.keyOfType=`${r}_TYPE`,this.fieldType=this.allTypes.get(this.prefixedKey)}}t.LegacyContentCtx=u,t.getFieldCtx=function(e,t,n){return new u(e,[...t.fieldPath,t.fieldKey,...n||[]],t.allTypes)},t.defaultCtx=function(e,t=new Map){return new u(e,[],t)}},82646:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.EmptyContentType="EmptyContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.EmptyContentType;t.isEmptyContent=c;let f=u.union([u.null,u.type({value:u.null}),]),l=e=>new u.Type("EmptyLegacy",t.isEmptyContent,n=>(0,o.pipe)(f.decode(n),i.either.map(()=>({type:e,__TYPE__:t.EmptyContentType}))),()=>null);t.EmptyLegacy=l,t.EmptyContent=u.strict({type:u.string,__TYPE__:u.literal(t.EmptyContentType)})},22443:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseGroupItemsContent=t.traverseGroupContent=t.groupContentWithDefaultValues=t.GroupContentDefaultValue=t.GroupContent=t.isGroupContent=t.GroupContentType=t.GroupLegacy=t.GroupItemLegacy=t.GroupItemContent=t.GroupItemContentType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(3845),f=n(58237),l=n(91366),p=n(22583);t.GroupItemContentType="GroupItemContent",t.GroupItemContent=a.strict({__TYPE__:a.literal(t.GroupItemContentType),value:a.array(a.tuple([a.string,l.NestableContent]))});let d=a.record(a.string,a.unknown),s=e=>new a.Type("GroupItemLegacy",e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.GroupItemContentType,n=>{let r=(0,u.pipe)(d.decode(n),i.either.map(n=>{let r=Object.entries(n).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),u=(0,l.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:[...t,[n,u.right]]},[]);return{value:r,__TYPE__:t.GroupItemContentType}}));return r},t=>t.value.reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e),o=(0,l.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}));t.GroupItemLegacy=s;let h=e=>{let n=a.array(a.union([a.null,(0,t.GroupItemLegacy)(e)])),r=a.array((0,t.GroupItemLegacy)(e));return new a.Type("GroupLegacy",t.isGroupContent,e=>(0,u.pipe)(n.decode(e),i.either.map(e=>({value:e.map(e=>null===e?{__TYPE__:t.GroupItemContentType,value:[]}:e),__TYPE__:t.GroupContentType}))),t=>{let n=r.encode(t.value);return{content:n.map(e=>e.content),types:n.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Group"})}})};t.GroupLegacy=h,t.GroupContentType="GroupContentType";let m=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.GroupContentType;function v({path:e,model:t,content:n}){return r=>n.map((n,i)=>{let o=e.concat([{key:i.toString(),type:"GroupItem"},]),u=n.value.reduce((e,[n,i])=>{let u=null==t?void 0:t[n],a=r({path:o.concat([{key:n,type:"Widget"}]),key:n,apiId:n,model:u,content:i});return a&&(0,l.isNestableContent)(a)?e.concat([[n,a]]):e},[]);return{__TYPE__:n.__TYPE__,value:u}})}t.isGroupContent=m,t.GroupContent=a.strict({__TYPE__:a.literal(t.GroupContentType),value:a.array(t.GroupItemContent)}),t.GroupContentDefaultValue={__TYPE__:t.GroupContentType,value:[]},t.groupContentWithDefaultValues=function(e,t){var n;let r=null===(n=e.config)||void 0===n?void 0:n.fields;return r?{...t,value:(0,p.repeatableContentWithDefaultNestableContentValues)(r,t.value)}:t},t.traverseGroupContent=function({path:e,key:t,apiId:n,model:r,content:i}){return o=>{var u;let a=v({path:e,model:null===(u=null==r?void 0:r.config)||void 0===u?void 0:u.fields,content:i.value})(o);return o({path:e,key:t,apiId:n,model:r,content:{__TYPE__:i.__TYPE__,value:a}})}},t.traverseGroupItemsContent=v},40174:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.UIDContentType="UIDContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.UIDContentType;t.isUIDContent=c;let f=e=>new u.Type("UIDLegacy",t.isUIDContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.UIDContent.encode({value:e,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"UID"}}));t.UIDLegacy=f,t.UIDContent=u.type({__TYPE__:u.literal(t.UIDContentType),value:u.string})},93057:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(22443),u=n(91366),a=n(83592),c=n(40174);t.WidgetContent=i.union([o.GroupContent,u.NestableContent,c.UIDContent,a.SlicesContent,]);let f=e=>(0,o.isGroupContent)(e)||(0,u.isNestableContent)(e)||(0,c.isUIDContent)(e)||(0,a.isSlicesContent)(e);t.isWidgetContent=f;let l=e=>({decode(t){if(!e.fieldType)return;let n=(()=>{switch(e.fieldType){case"UID":return(0,c.UIDLegacy)(e);case"Group":return(0,o.GroupLegacy)(e);case"Choice":case"Slices":return(0,a.SlicesLegacy)(e);default:return(0,u.NestableLegacy)(e)}})();if(n)return n.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(e).encode(t);case o.GroupContentType:return(0,o.GroupLegacy)(e).encode(t);case a.SlicesContentType:return(0,a.SlicesLegacy)(e).encode(t);default:return(0,u.NestableLegacy)(e).encode(t)}}});t.WidgetLegacy=l},33832:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(82646),t),(0,r.__exportStar)(n(22443),t),(0,r.__exportStar)(n(91366),t),(0,r.__exportStar)(n(83592),t),(0,r.__exportStar)(n(40174),t),(0,r.__exportStar)(n(93057),t)},47451:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentDefaultValue=t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.BooleanContentType="BooleanContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.BooleanContentType;t.isBooleanContent=c;let f=e=>new u.Type("BooleanLegacy",t.isBooleanContent,e=>(0,o.pipe)(u.boolean.decode(e),i.either.map(e=>t.BooleanContent.encode({value:e,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"Boolean"}}));t.BooleanLegacy=f,t.BooleanContent=u.strict({__TYPE__:u.literal(t.BooleanContentType),value:u.boolean});let l=e=>{var n;return(null===(n=e.config)||void 0===n?void 0:n.default_value)!==void 0?{__TYPE__:t.BooleanContentType,value:e.config.default_value||!1}:void 0};t.BooleanContentDefaultValue=l},11836:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(8597),c=n(58237);t.EmbedContentType="EmbedContent";let f=e=>(0,c.hasContentType)(e)&&e.__TYPE__===t.EmbedContentType;t.isEmbedContent=f,t.EmbedContentLegacy=u.exact(u.intersection([u.type({embed_url:u.string,type:u.string}),u.partial({version:u.union([u.string,u.number,u.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:u.union([u.string,u.number,u.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=e=>new u.Type("EmbedLegacy",t.isEmbedContent,e=>(0,o.pipe)(t.EmbedContentLegacy.decode(e),i.either.map(n=>({...n,all:e,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[e.keyOfType]:"Embed"}}));t.EmbedLegacy=l,t.EmbedContent=u.intersection([t.EmbedContentLegacy,u.strict({__TYPE__:u.literal(t.EmbedContentType),all:u.unknown}),])},77124:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Color"===e.type;t.isColorContent=p;let d=e=>new u.Type("ColorLegacy",t.isColorContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.ColorContent.encode({value:e,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.ColorFieldType}}));t.ColorLegacy=d,t.ColorContent=u.strict({type:u.literal(a.ColorFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},62544:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Date"===e.type;t.isDateContent=p;let d=e=>new u.Type("DateLegacy",t.isDateContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.DateContent.encode({value:e,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.DateFieldType}}));t.DateLegacy=d,t.DateContent=u.strict({type:u.literal(a.DateFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},83768:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Number"===e.type;t.isNumberContent=p;let d=e=>new u.Type("NumberLegacy",t.isNumberContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.NumberContent.encode({value:e,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.NumberFieldType}}));t.NumberLegacy=d,t.NumberContent=u.strict({type:u.literal(a.NumberFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},8944:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Range"===e.type;t.isRangeContent=p;let d=e=>new u.Type("RangeLegacy",t.isRangeContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.RangeContent.encode({value:e,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.RangeFieldType}}));t.RangeLegacy=d,t.RangeContent=u.strict({type:u.literal(a.RangeFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},13221:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContentDefaultValue=t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Select"===e.type;t.isSelectContent=p;let d=e=>new u.Type("SelectLegacy",t.isSelectContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.SelectContent.encode({value:e,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.SelectFieldType}}));t.SelectLegacy=d,t.SelectContent=u.strict({type:u.literal(a.SelectFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)});let s=e=>{var t;return(null===(t=e.config)||void 0===t?void 0:t.default_value)?{__TYPE__:l.FieldContentType,type:a.SelectFieldType,value:e.config.default_value||""}:void 0};t.SelectContentDefaultValue=s},38295:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Text"===e.type;t.isTextContent=p;let d=e=>new u.Type("TextLegacy",t.isTextContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TextContent.encode({value:e,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TextFieldType}}));t.TextLegacy=d,t.TextContent=u.strict({type:u.literal(a.TextFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},79137:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(99814),c=(0,r.__importDefault)(n(38729)),f=n(58237),l=n(84929),p=e=>(0,f.hasContentType)(e)&&e.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(e)&&"Timestamp"===e.type;t.isTimestampContent=p;let d=e=>new u.Type("TimestampLegacy",t.isTimestampContent,e=>(0,o.pipe)(c.default.decode(e),i.either.map(e=>t.TimestampContent.encode({value:e,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:a.TimestampFieldType}}));t.TimestampLegacy=d,t.TimestampContent=u.strict({type:u.literal(a.TimestampFieldType),value:c.default,__TYPE__:u.literal(l.FieldContentType)})},84929:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},86649:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(77124),u=n(62544),a=n(83768),c=n(8944),f=n(13221),l=n(38295),p=n(79137);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([u.DateContent,o.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent,]),(0,r.__exportStar)(n(77124),t),(0,r.__exportStar)(n(84929),t),(0,r.__exportStar)(n(62544),t),(0,r.__exportStar)(n(83768),t),(0,r.__exportStar)(n(8944),t),(0,r.__exportStar)(n(13221),t),(0,r.__exportStar)(n(38295),t),(0,r.__exportStar)(n(79137),t)},48896:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=n(98227),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(58237);t.GeoPointContentType="GeoPointContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.GeoPointContentType;t.isGeoPointContent=c;let f=u.strict({position:u.strict({lat:u.number,lng:u.number})}),l=e=>new u.Type("GeoPointLegacy",t.isGeoPointContent,e=>(0,o.pipe)(f.decode(e),i.either.map(e=>t.GeoPointContent.encode({...e,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[e.keyOfType]:"GeoPoint"}}));t.GeoPointLegacy=l,t.GeoPointContent=u.intersection([f,u.strict({__TYPE__:u.literal(t.GeoPointContentType)}),])},15764:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(17160),c=n(8597),f=n(58237);t.ImageContentType="ImageContent";let l=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.ImageContentType;t.isImageContent=l;let p=u.exact(u.type({id:u.string,url:u.string,width:u.number,height:u.number}));t.ImageContentView=u.exact(u.intersection([u.type({origin:p,width:u.number,height:u.number,edit:u.type({zoom:u.number,crop:u.type({x:u.number,y:u.number}),background:u.string})}),u.partial({url:u.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let d=u.intersection([t.ImageContentView,u.partial({thumbnails:u.record(u.string,t.ImageContentView)}),]),s=e=>new u.Type("ImageLegacy",t.isImageContent,e=>(0,o.pipe)(d.decode(e),i.either.map(e=>t.ImageContent.encode({...e,__TYPE__:t.ImageContentType}))),t=>({content:(0,a.withOptionals)({edit:t.edit,height:t.height,origin:t.origin,width:t.width},[["alt",t.alt],["credits",t.credits],["provider",t.provider],["thumbnails",t.thumbnails],["url",t.url],]),types:{[e.keyOfType]:"Image"}}));t.ImageLegacy=s,t.ImageContent=u.intersection([d,u.strict({__TYPE__:u.literal(t.ImageContentType)}),])},9583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237);t.IntegrationFieldContentType="IntegrationFieldsContent";let c=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.IntegrationFieldContentType;t.isIntegrationFieldContent=c;let f=e=>new u.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,e=>(0,o.pipe)(u.string.decode(e),i.either.map(e=>t.IntegrationFieldContent.encode({value:e,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[e.keyOfType]:"IntegrationFields"}}));t.IntegrationFieldLegacy=f,t.IntegrationFieldContent=u.strict({__TYPE__:u.literal(t.IntegrationFieldContentType),value:u.string})},72202:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkContent=t.Link=t.LinkContentLegacy=t.LinkLegacy=t.isLinkContent=t.LinkContentType=t.ExternalLinkContent=t.ExternalLinkType=t.DocumentLinkContent=t.DocumentLinkType=t.FileLinkContent=t.FileLinkType=t.ImageLinkContent=t.ImageLinkType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(8597),f=n(35002),l=n(58237);t.ImageLinkType="ImageLink";let p=u.exact(u.intersection([u.type({id:u.string,url:u.string,height:u.string,width:u.string,size:u.string,name:u.string,kind:u.string}),u.partial({date:c.StringOrNull}),])),d=new u.Type("ImageLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ImageLinkType,e=>(0,o.pipe)(p.decode(e),i.either.map(e=>t.ImageLinkContent.encode({...e,__TYPE__:t.ImageLinkType}))),e=>p.encode(e));t.ImageLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ImageLinkType)}),p,]),t.FileLinkType="FileLink";let s=u.exact(u.intersection([u.type({id:u.string,url:u.string,name:u.string,kind:u.string,size:(0,a.withFallback)(u.string,"0")}),u.partial({date:(0,f.nullable)(u.string)}),])),h=new u.Type("FileLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.FileLinkType,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>t.FileLinkContent.encode({...e,__TYPE__:t.FileLinkType}))),e=>s.encode(e));t.FileLinkContent=u.intersection([s,u.exact(u.intersection([u.type({__TYPE__:u.literal(t.FileLinkType)}),u.partial({size:(0,a.withFallback)(u.string,"0")}),])),]),t.DocumentLinkType="DocumentLink";let m=u.strict({id:c.NonEmptyString}),v=new u.Type("DocumentLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.DocumentLinkType,e=>(0,o.pipe)(m.decode(e),i.either.map(e=>t.DocumentLinkContent.encode({...e,__TYPE__:t.DocumentLinkType}))),e=>m.encode(e));t.DocumentLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.DocumentLinkType)}),m,]),t.ExternalLinkType="ExternalLink";let y=u.exact(u.intersection([u.type({url:u.string}),u.partial({kind:u.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(u.partial({title:u.string}))}),])),_=new u.Type("ExternalLink",e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.ExternalLinkType,e=>(0,o.pipe)(y.decode(e),i.either.map(e=>t.ExternalLinkContent.encode({...e,__TYPE__:t.ExternalLinkType}))),e=>y.encode(e));t.ExternalLinkContent=u.intersection([u.strict({__TYPE__:u.literal(t.ExternalLinkType)}),y,]),t.LinkContentType="LinkContent";let b=e=>(0,l.hasContentType)(e)&&e.__TYPE__===t.LinkContentType;t.isLinkContent=b,t.LinkLegacy=u.union([d,h,v,_,]);let S=e=>new u.Type("LinkLegacy",t.isLinkContent,e=>(0,o.pipe)(t.LinkLegacy.decode(e),i.either.map(e=>t.LinkContent.encode({value:e,__TYPE__:t.LinkContentType}))),n=>({content:t.LinkLegacy.encode(n.value),types:{[e.keyOfType]:"Link"}}));t.LinkContentLegacy=S,t.Link=u.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,]),t.LinkContent=u.strict({__TYPE__:u.literal(t.LinkContentType),value:t.Link})},65090:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContentDefaultValue=t.NestableContent=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(82646),a=n(47451),c=n(11836),f=n(86649),l=n(84929),p=n(48896),d=n(15764),s=n(9583),h=n(72202),m=n(89040),v=n(68507);t.NestableContent=o.union([u.EmptyContent,a.BooleanContent,c.EmbedContent,f.TextContent,f.TimestampContent,f.SelectContent,f.RangeContent,f.NumberContent,f.DateContent,f.ColorContent,p.GeoPointContent,d.ImageContent,s.IntegrationFieldContent,h.LinkContent,m.RichTextContent,v.SeparatorContent,]);let y=e=>{switch(e.type){case"Boolean":return(0,a.BooleanContentDefaultValue)(e);case"Select":return(0,f.SelectContentDefaultValue)(e);default:return}};t.NestableContentDefaultValue=y;let _=e=>(0,f.isTextContent)(e)||(0,f.isColorContent)(e)||(0,f.isDateContent)(e)||(0,f.isTimestampContent)(e)||(0,f.isNumberContent)(e)||(0,f.isRangeContent)(e)||(0,f.isSelectContent)(e)||(0,p.isGeoPointContent)(e)||(0,m.isRichTextContent)(e)||(0,a.isBooleanContent)(e)||(0,c.isEmbedContent)(e)||(0,d.isImageContent)(e)||(0,s.isIntegrationFieldContent)(e)||(0,h.isLinkContent)(e)||(0,v.isSeparatorContent)(e)||(0,u.isEmptyContent)(e);t.isNestableContent=_;let b=e=>({decode(t){if(!e.fieldType)return;let n=(0,u.EmptyLegacy)(e.fieldType).decode(t);if((0,i.isRight)(n))return n;let r=(()=>{switch(e.fieldType){case"Text":return(0,f.TextLegacy)(e);case"Color":return(0,f.ColorLegacy)(e);case"Date":return(0,f.DateLegacy)(e);case"Timestamp":return(0,f.TimestampLegacy)(e);case"Number":return(0,f.NumberLegacy)(e);case"Range":return(0,f.RangeLegacy)(e);case"Select":return(0,f.SelectLegacy)(e);case"GeoPoint":return(0,p.GeoPointLegacy)(e);case"StructuredText":return(0,m.RichTextLegacy)(e);case"Boolean":return(0,a.BooleanLegacy)(e);case"Embed":return(0,c.EmbedLegacy)(e);case"Image":return(0,d.ImageLegacy)(e);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(e);case"Link":return(0,h.LinkContentLegacy)(e);case"Separator":return(0,v.SeparatorLegacy)(e);default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(e).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(e).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(e).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(e).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(e).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(e).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(e).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(e).encode(t);case m.RichTextContentType:return(0,m.RichTextLegacy)(e).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(e).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(e).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(e).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(e).encode(t);case h.LinkContentType:return(0,h.LinkContentLegacy)(e).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(e).encode(t);default:return}}});t.NestableLegacy=b},71741:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedSpans=t.SpanLegacy=t.Span=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(44613),l=n(8597),p=n(35002),d=n(11836),s=n(15764),h=n(72202),m=e=>a.strict({data:e,start:a.number,end:a.number,type:a.literal(f.RichTextNodeType.hyperlink)}),v=a.strict({data:(0,c.withFallback)(a.string,""),start:a.number,end:a.number,type:a.literal("label")}),y=a.strict({start:a.number,end:a.number,type:a.keyof({[f.RichTextNodeType.strong]:null,[f.RichTextNodeType.em]:null,"list-item":null})});t.Span=a.union([m(h.Link),v,y]),t.SpanLegacy=a.union([m(h.LinkLegacy),v,y]);let _=e=>new a.Type("ValidatedSpans",t=>Array.isArray(t)&&t.every(e.is),(t,n)=>{if(!Array.isArray(t))return a.failure(t,n);{let r=t.reduce((t,n)=>{let r=e.decode(n);return(0,o.isLeft)(r)?t:[...t,r.right]},[]).sort((e,t)=>e.start-t.start);return a.success(r)}},t=>t.reduce((t,n)=>{let r=e.encode(n);return[...t,r]},[]));t.ValidatedSpans=_;let b=e=>a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.image),data:a.intersection([s.ImageContentView,a.partial({linkTo:(0,p.nullable)(e)}),])}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),]));t.ImageBlock=b(h.Link);let S=b(h.LinkLegacy);t.checkImageBlock=function(e){return e.type===f.RichTextNodeType.image};let T=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:a.unknown}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),I=new a.Type("EmbedBlockLegacy",e=>"embed"===e.type,e=>(0,u.pipe)(T.decode(e),i.either.chain(e=>i.either.map(t=>[e,t])(d.EmbedContentLegacy.decode(e.data))),i.either.map(([e,n])=>t.EmbedBlock.encode({...e,data:{...n,__TYPE__:d.EmbedContentType,all:e.data}}))),e=>({...T.encode(e),data:d.EmbedContentLegacy.encode(e.data)}));t.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(f.RichTextNodeType.embed),data:d.EmbedContent}),a.partial({label:l.StringOrNull,direction:l.StringOrNull}),])),t.checkEmbedBlock=function(e){return e.type===f.RichTextNodeType.embed};let x=e=>a.exact(a.intersection([a.type({type:(0,p.refineType)(f.RichTextNodeTypeCodec,`string which isn't ${f.RichTextNodeType.image} ${f.RichTextNodeType.embed}`,e=>e!==f.RichTextNodeType.image&&e!==f.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedSpans)(e)}),])}),a.partial({label:a.string,direction:a.string}),]));t.TextBlock=x(t.Span);let w=x(t.SpanLegacy),O=a.union([I,S,w,]);t.BlockLegacy=new a.Type("BlockLegacy",e=>I.is(e)||S.is(e)||w.is(e),e=>O.decode(e),e=>t.ImageBlock.is(e)?S.encode(e):t.EmbedBlock.is(e)?I.encode(e):w.encode(e)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},89040:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(58237),c=n(71741);t.RichTextContentType="StructuredTextContent";let f=e=>(0,a.hasContentType)(e)&&e.__TYPE__===t.RichTextContentType;t.isRichTextContent=f;let l=u.array(c.BlockLegacy);t.RichTextContent=u.strict({__TYPE__:u.literal(t.RichTextContentType),value:u.array(c.Block)}),(0,r.__exportStar)(n(71741),t);let p=e=>new u.Type("RichTextLegacy",t.isRichTextContent,e=>(0,o.pipe)(l.decode(e),i.either.map(e=>({value:e,__TYPE__:t.RichTextContentType}))),t=>({content:l.encode(t.value),types:{[e.keyOfType]:"StructuredText"}}));t.RichTextLegacy=p},68507:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(58237);t.SeparatorContentType="SeparatorContent";let u=e=>(0,o.hasContentType)(e)&&e.__TYPE__===t.SeparatorContentType;t.isSeparatorContent=u;let a=e=>new i.Type("SeparatorLegacy",t.isSeparatorContent,()=>i.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[e.keyOfType]:"Separator"}}));t.SeparatorLegacy=a,t.SeparatorContent=i.strict({__TYPE__:i.literal(t.SeparatorContentType)})},91366:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(47451),t),(0,r.__exportStar)(n(11836),t),(0,r.__exportStar)(n(86649),t),(0,r.__exportStar)(n(48896),t),(0,r.__exportStar)(n(15764),t),(0,r.__exportStar)(n(9583),t),(0,r.__exportStar)(n(72202),t),(0,r.__exportStar)(n(65090),t),(0,r.__exportStar)(n(89040),t),(0,r.__exportStar)(n(68507),t)},53422:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateCompositeSlice=t.traverseCompositeSliceContent=t.compositeSliceContentWithDefaultValues=t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(3845),f=n(58237),l=n(22443),p=n(91366),d=n(22583),s=n(53034);t.CompositeSliceContentType="CompositeSliceContent";let h=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.CompositeSliceContentType;t.isCompositeSliceContent=h;let m=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),v=e=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,n=>(0,u.pipe)(m.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",e),r=(0,s.RepeatableWidgetsLegacy)(t).decode(n.repeat);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n["non-repeat"]||{}).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]);if(!i)return t;let u=(0,p.NestableLegacy)(i).decode(r);return!u||(0,o.isLeft)(u)?t:{...t,[n]:u.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let n=Object.entries(t.nonRepeat).reduce((t,[n,r])=>{let i=(0,c.getFieldCtx)(n,e,["non-repeat"]),o=(0,p.NestableLegacy)(i).encode(r);return o?{content:{...t.content,[n]:o.content},types:{...t.types,...o.types}}:t},{content:{},types:{}}),r=(()=>{let n=(0,c.getFieldCtx)("repeat",e),r=(0,s.RepeatableWidgetsLegacy)(n).encode(t.repeat);return r})()||[];return{content:{"non-repeat":n.content,repeat:r.map(e=>e.content)},types:{[e.keyOfType]:"Slice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.CompositeSliceLegacy=v,t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,p.NestableContent),repeat:s.RepeatableWidgets}),t.compositeSliceContentWithDefaultValues=function(e,t){var n,r;let i=(0,d.withDefaultNestableContentValues)(null!==(n=e["non-repeat"])&&void 0!==n?n:{},t.nonRepeat),o=(0,d.repeatableContentWithDefaultNestableContentValues)(null!==(r=e.repeat)&&void 0!==r?r:{},t.repeat);return{...t,nonRepeat:i,repeat:o}},t.traverseCompositeSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.nonRepeat).reduce((i,[u,a])=>{var c,f,l;let d=(null==r?void 0:r.type)==="SharedSlice"?null===(f=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===f?void 0:f[u]:null===(l=null==r?void 0:r["non-repeat"])||void 0===l?void 0:l[u],s=o({path:e.concat([{key:"non-repeat",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:d,content:a});return s?(0,p.isNestableContent)(s)?{...i,[u]:s}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a composite slice [${n}] with key [${t}]`),i):i},{}),c=(0,l.traverseGroupItemsContent)({path:e.concat([{key:"repeat",type:"items"}]),model:(null==r?void 0:r.type)==="SharedSlice"?null==r?void 0:r.fields.items:null==r?void 0:r.repeat,content:i.widget.repeat})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"CompositeSliceContent",repeat:c,nonRepeat:a}}})}},t.migrateCompositeSlice=function(e,t){let[,n]=t.key.split("$");return{key:`${e.sliceName}$${n}`,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:Object.entries(t.widget.nonRepeat).reduce((n,[r,i])=>{var o;return(null===(o=e.fields.primary)||void 0===o?void 0:o[r])?{...n,[r]:i}:(console.warn(`The widget ${r} in the non-repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},{}),items:t.widget.repeat.map(n=>({__TYPE__:"GroupItemContent",value:n.value.reduce((n,[r,i])=>{var o;return(null===(o=e.fields.items)||void 0===o?void 0:o[r])?n.concat([[r,i]]):(console.warn(`The widget ${r} in the repeat zone of the composite slice [${e.sliceName}] with key [${t.key}] doesn't exist in the model.`),n)},[])}),[])}}}},53034:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(22443),u=n(91366),a=e=>i.array((0,o.GroupItemLegacy)(e));t.RepeatableWidgetsLegacy=a;let c=i.tuple([i.string,u.NestableContent]),f=i.strict({__TYPE__:i.literal(o.GroupItemContentType),value:i.array(c)});t.RepeatableWidgets=i.array(f)},74951:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSharedSliceContent=t.sharedSliceContentWithDefaultValues=t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(23284),f=n(23535),l=n(3845),p=n(58237),d=n(22443),s=n(91366),h=n(22583),m=n(53034),v=n(12238);t.SharedSliceContentType="SharedSliceContent";let y=e=>(0,p.hasContentType)(e)&&e.__TYPE__===t.SharedSliceContentType;t.isSharedSliceContent=y;let _=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),b=e=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,n=>(0,u.pipe)(_.decode(n),i.either.map(n=>{let r=(()=>{let t=(0,l.getFieldCtx)("items",e,["variations",n.variation,]),r=(0,m.RepeatableWidgetsLegacy)(t).decode(n.items);if(!(!r||(0,o.isLeft)(r)))return r.right})()||[],i=Object.entries(n.primary).reduce((t,[r,i])=>{let u=(0,l.getFieldCtx)(r,e,["variations",n.variation,"primary",]),a=(0,v.SlicePrimaryLegacy)(u).decode(i);return!a||(0,o.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:n.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let n=Object.entries(t.primary).reduce((n,[r,i])=>{let o=(0,l.getFieldCtx)(r,e,["variations",t.variation,"primary",]),u=(0,v.SlicePrimaryLegacy)(o).encode(i);return u?{content:{...n.content,[r]:u.content},types:{...n.types,...u.types}}:n},{content:{},types:{}}),r=(()=>{let n=(0,l.getFieldCtx)("items",e,["variations",t.variation,]),r=(0,m.RepeatableWidgetsLegacy)(n).encode(t.items);return r})()||[];return{content:{primary:n.content,items:r.map(e=>e.content),variation:t.variation},types:{[e.keyOfType]:"SharedSlice",...n.types,...r.reduce((e,t)=>({...e,...t.types}),{})}}});t.SharedSliceLegacy=b,t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,v.SlicePrimaryContent),items:m.RepeatableWidgets}),t.sharedSliceContentWithDefaultValues=function(e,t){var n,r;let i=e.variations.find(e=>e.id===t.variation),o=null!==(n=null==i?void 0:i.primary)&&void 0!==n?n:{},u=null!==(r=null==i?void 0:i.items)&&void 0!==r?r:{},a=(0,h.withDefaultSlicePrimaryContentValues)(o,t.primary),c=(0,h.repeatableContentWithDefaultNestableContentValues)(u,t.items);return{...t,primary:a,items:c}},t.traverseSharedSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(o,u)=>{let a=Object.entries(i.widget.primary).reduce((i,[u,a])=>{var c,l;let p=null===(l=null===(c=null==r?void 0:r.fields)||void 0===c?void 0:c.primary)||void 0===l?void 0:l[u];if((0,d.isGroupContent)(a)&&(null==p?void 0:p.type)===f.GroupFieldType){let h=(0,d.traverseGroupContent)({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,content:a,model:p})(o);return h?{...i,[u]:h}:i}let m=o({path:e.concat([{key:"primary",type:"primary"},{key:u,type:"Widget"},]),key:u,apiId:n,model:p,content:a});return m?(0,s.isNestableContent)(m)?{...i,[u]:m}:(console.warn(`Warn: Non nestable content with key [${u}] detected in a shared slice [${n}] with key [${t}]`),i):i},{}),c=(0,d.traverseGroupItemsContent)({path:e.concat([{key:"items",type:"items"}]),model:null==r?void 0:r.fields.items,content:i.widget.items})(o);return u({key:t,apiId:n,path:e,model:r,content:{...i,widget:{__TYPE__:"SharedSliceContent",variation:i.widget.variation,primary:a,items:c}}})}}},27835:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSimpleSlice=t.traverseSimpleSliceContent=t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(22443),u=n(91366);t.SimpleSliceContent=i.union([u.NestableContent,o.GroupContent]);let a=e=>(0,u.isNestableContent)(e)||(0,o.isGroupContent)(e);t.isSimpleSliceContent=a;let c=e=>({decode:"Group"===e.fieldType?(0,o.GroupLegacy)(e).decode.bind(null):(0,u.NestableLegacy)(e).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,o.GroupLegacy)(e).encode(t):(0,u.NestableLegacy)(e).encode(t)});t.SimpleSliceLegacy=c,t.traverseSimpleSliceContent=function({path:e,sliceKey:t,sliceName:n,model:r,content:i}){return(u,a)=>{var c;if((0,o.isGroupContent)(i.widget)){let f=(0,o.traverseGroupContent)({path:e,key:i.key,apiId:i.name,model:(null==r?void 0:r.type)==="Group"?r:(null==r?void 0:r.type)==="SharedSlice"?{type:"Group",config:{fields:r.fields.items||{}}}:void 0,content:i.widget})(u);return f&&a({key:i.key,apiId:i.name,path:e,model:r,content:{...i,widget:f}})}let l=u({key:i.key,apiId:i.name,path:e,model:(null==r?void 0:r.type)==="SharedSlice"?null===(c=r.fields.primary)||void 0===c?void 0:c[i.name]:(null==r?void 0:r.type)!=="Group"?r:void 0,content:i.widget});return l&&a({key:t,apiId:n,path:e,model:r,content:{...i,widget:l}})}},t.migrateSimpleSlice=function(e,t){var n;let[,r]=t.key.split("$"),i=`${e.sliceName}$${r}`;return"GroupContentType"===t.widget.__TYPE__?{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:{},items:t.widget.value.map(t=>({__TYPE__:"GroupItemContent",value:t.value.reduce((t,[n,r])=>{var i;return(null===(i=e.fields.items)||void 0===i?void 0:i[n])?t.concat([[n,r]]):t},[])}),[])}}:{key:i,name:e.sliceName,maybeLabel:t.maybeLabel,widget:{__TYPE__:"SharedSliceContent",variation:e.variationId,primary:(null===(n=e.fields.primary)||void 0===n?void 0:n[t.name])?{[t.name]:t.widget}:{},items:[]}}}},12238:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicePrimaryLegacy=t.SlicePrimaryContent=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(23535),u=n(22443),a=n(91366);t.SlicePrimaryContent=i.union([a.NestableContent,u.GroupContent]);let c=e=>{let t=(0,u.GroupLegacy)(e),n=(0,a.NestableLegacy)(e);return{decode:r=>e.fieldType===o.GroupFieldType?t.decode(r):n.decode(r),encode:e=>(0,u.isGroupContent)(e)?t.encode(e):n.encode(e)}};t.SlicePrimaryLegacy=c},21925:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(53422),u=n(74951),a=n(27835),c=e=>({decode(t){let n=(()=>{switch(e.fieldType){case"Slice":return(0,o.CompositeSliceLegacy)(e);case"SharedSlice":return(0,u.SharedSliceLegacy)(e);default:return(0,a.SimpleSliceLegacy)(e)}})();return n.decode(t)},encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,u.SharedSliceLegacy)(e).encode(t);case"CompositeSliceContent":return(0,o.CompositeSliceLegacy)(e).encode(t);default:return(0,a.SimpleSliceLegacy)(e).encode(t)}}});t.SliceLegacy=c,t.SliceContent=i.union([o.CompositeSliceContent,u.SharedSliceContent,a.SimpleSliceContent,]),(0,r.__exportStar)(n(53422),t),(0,r.__exportStar)(n(74951),t),(0,r.__exportStar)(n(27835),t)},57495:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.migrateSliceItem=t.SlicesItemLegacy=t.sliceItemContentWithDefaultValues=t.isSimpleSliceItemContent=t.isCompositeSliceItemContent=t.isSharedSliceItemContent=t.SliceItemContent=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(35002),f=n(3845),l=n(22443),p=n(91366),d=n(22583),s=n(21925),h=n(53422),m=n(74951),v=n(27835);function y(e){return(0,h.isCompositeSliceContent)(e.widget)}function _(e){return(0,l.isGroupContent)(e.widget)||(0,p.isNestableContent)(e.widget)}t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:s.SliceContent}),t.isSharedSliceItemContent=function(e){return(0,m.isSharedSliceContent)(e.widget)},t.isCompositeSliceItemContent=y,t.isSimpleSliceItemContent=_,t.sliceItemContentWithDefaultValues=function(e,t){var n;if("SharedSlice"===e.type&&(0,m.isSharedSliceContent)(t))return(0,s.sharedSliceContentWithDefaultValues)(e,t);if("Slice"===e.type&&(0,h.isCompositeSliceContent)(t))return(0,s.compositeSliceContentWithDefaultValues)(e,t);if("Group"===e.type&&(0,l.isGroupContent)(t)&&(null===(n=e.config)||void 0===n?void 0:n.fields)){let r=(0,d.repeatableContentWithDefaultNestableContentValues)(e.config.fields,t.value);return{...t,value:r}}return t};let b=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),S=e=>new a.Type("SlicesItemLegacy",e=>((0,m.isSharedSliceContent)(e.widget),(0,h.isCompositeSliceContent)(e.widget),(0,v.isSimpleSliceContent)(e.widget)),(t,n)=>(0,u.pipe)(b.decode(t),i.either.chain(r=>{var i;let u=r.key.indexOf("$"),c=r.key.substring(0,u>0?u:void 0),l=(0,f.getFieldCtx)(c,e),p=(0,s.SliceLegacy)(l).decode(r.value);return!p||(0,o.isLeft)(p)?a.failure(t,n):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:p.right})})),t=>{let n=(0,f.getFieldCtx)(t.name,e),r=(0,s.SliceLegacy)(n).encode(t.widget);return{content:{key:t.key,label:t.maybeLabel,value:(null==r?void 0:r.content)||{}},types:(null==r?void 0:r.types)||{}}});t.SlicesItemLegacy=S;let T=({model:e,content:t})=>y(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,h.migrateCompositeSlice)(e,t):_(t)&&(null==e?void 0:e.type)==="SharedSlice"?(0,v.migrateSimpleSlice)(e,t):t;t.migrateSliceItem=T},8059:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.traverseSlices=t.slicesContentWithDefaultValues=t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(32387),c=n(23535),f=n(58237),l=n(53422),p=n(74951),d=n(27835),s=n(57495);t.SlicesContentType="SliceContentType";let h=e=>(0,f.hasContentType)(e)&&e.__TYPE__===t.SlicesContentType;t.isSlicesContent=h;let m=e=>{let n=u.array((0,s.SlicesItemLegacy)(e));return new u.Type("SlicesLegacy",t.isSlicesContent,e=>(0,o.pipe)(n.decode(e),i.either.map(e=>({__TYPE__:t.SlicesContentType,value:e}))),t=>{let r=n.encode(t.value);return{content:r.map(e=>e.content),types:r.reduce((e,t)=>({...e,...t.types}),{[e.keyOfType]:"Slices"})}})};t.SlicesLegacy=m,t.SlicesContent=u.type({__TYPE__:u.literal(t.SlicesContentType),value:u.array(s.SliceItemContent)}),t.slicesContentWithDefaultValues=function(e,t){var n;let r=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.choices;if(void 0===r)return t;let i=t.value.map(e=>{let t=r[e.name];if(t){let n=(0,s.sliceItemContentWithDefaultValues)(t,e.widget);return{...e,widget:n}}return e});return{...t,value:i}},t.traverseSlices=function({path:e,key:t,model:n,content:r}){return({transformWidget:i=({content:e})=>e,transformSlice:o=({content:e})=>e})=>{let u=r.value.reduce((t,r)=>{let u=n&&function(e,t,n){var r,i;let o=null===(i=null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||void 0===i?void 0:i[n.name];return(()=>{if((0,s.isSharedSliceItemContent)(n)&&o&&(0,c.isStaticSharedSlice)(o)){let e=o.variations.find(e=>e.id===n.widget.variation);return e?{type:"SharedSlice",sliceName:o.id,variationId:e.id,fields:{primary:e.primary||{},items:e.items||{}}}:void 0}})()||(()=>{var r;let i=a.ContentPath.append(a.ContentPath.serialize(e),n.name),o=Object.values((null===(r=null==t?void 0:t.config)||void 0===r?void 0:r.choices)||{}).find(e=>{var t;return!!(0,c.isStaticSharedSlice)(e)&&!!(null===(t=e.legacyPaths)||void 0===t?void 0:t[i])});if(!o)return;let u=null==o?void 0:o.variations.find(e=>{var t;return e.id===(null===(t=o.legacyPaths)||void 0===t?void 0:t[i])});if(u)return{type:"SharedSlice",sliceName:o.id,variationId:u.id,fields:{primary:u.primary||{},items:u.items||{}}}})()||(()=>{if(o){if((0,c.isCompositeSlice)(o))return{type:"Slice","non-repeat":o["non-repeat"]||{},repeat:o.repeat||{}};if((0,c.isLegacySlice)(o))return o}})()}(e,n,r),f=(0,s.isSharedSliceItemContent)(r)?(0,p.traverseSharedSliceContent)({path:e.concat({key:r.key,type:"SharedSlice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isCompositeSliceItemContent)(r)?(0,l.traverseCompositeSliceContent)({path:e.concat({key:r.key,type:"Slice"}),sliceKey:r.key,sliceName:r.name,model:(null==u?void 0:u.type)==="Slice"||(null==u?void 0:u.type)==="SharedSlice"?u:void 0,content:r})(i,o):(0,s.isSimpleSliceItemContent)(r)?(0,d.traverseSimpleSliceContent)({path:e.concat({key:r.key,type:"LegacySlice"}),sliceKey:r.key,sliceName:r.name,model:u&&(null==u?void 0:u.type)!=="Slice"?u:void 0,content:r})(i,o):void 0;return f?t.concat(f):t},[]);return i({path:e,key:t,apiId:t,model:n,content:{__TYPE__:r.__TYPE__,value:u}})}}},83592:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(21925),t),(0,r.__exportStar)(n(57495),t),(0,r.__exportStar)(n(8059),t)},22583:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.repeatableContentWithDefaultNestableContentValues=t.withDefaultNestableContentValues=t.withDefaultSlicePrimaryContentValues=void 0;let r=n(23535),i=n(22443),o=n(91366);t.withDefaultSlicePrimaryContentValues=function(e,t){let n=t;for(let[u,a]of Object.entries(e)){let c=t[u];if(void 0===c){if(a.type===r.GroupFieldType)n[u]=(0,i.groupContentWithDefaultValues)(a,i.GroupContentDefaultValue);else{let f=(0,o.NestableContentDefaultValue)(a);f&&(n[u]=f)}continue}a.type===r.GroupFieldType&&(0,i.isGroupContent)(c)&&(n[u]=(0,i.groupContentWithDefaultValues)(a,c))}return n},t.withDefaultNestableContentValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>{if(void 0===t[n]){let i=(0,o.NestableContentDefaultValue)(r);return void 0!==i?{...e,[n]:i}:e}return e},t)},t.repeatableContentWithDefaultNestableContentValues=function(e,t){let n=Object.entries(e);return t.map(e=>n.reduce((t,[n,r])=>{if(!e.value.find(([e])=>e===n)){let i=(0,o.NestableContentDefaultValue)(r);return{...t,value:[...t.value,...i?[[n,i]]:[],]}}return t},e))}},74982:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(20168),t),(0,r.__exportStar)(n(33832),t),(0,r.__exportStar)(n(3845),t)},58237:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=n(87412),i=n(33832);function o(e){return"object"==typeof e&&null!==e&&"__TYPE__"in e}t.hasFieldContentType=function(e){return o(e)&&e.__TYPE__===i.FieldContentType&&(null==e?void 0:e.type)!==void 0&&"string"==typeof e.type&&(0,r.isRight)(i.FieldType.decode(e.type))},t.hasContentType=o},17896:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.collectSharedSlices=t.flattenCustomTypeFields=t.filterMissingSharedSlices=t.collectWidgets=t.validateSlices=t.toStatic=t.flattenSections=t.flattenWidgets=t.CustomType=t.StaticCustomType=t.CustomTypeFormat=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),c=n(22453);t.CustomTypeFormat={page:"page",custom:"custom"};class f extends Error{constructor(e){super(),Object.defineProperty(this,"slices",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"message",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.slices=e,this.message=this._formatError(e)}_formatError(e){let t=e.map(e=>` - ${e}`);return`The following slices doesn't exists in your Prismic repository:
|
|
4
|
+
${t.join("\n")}
|
|
5
|
+
`}}function l(e){return o.exact(o.intersection([o.type({id:o.string,label:a.StringOrNull,repeatable:(0,u.withFallback)(o.boolean,!0),json:o.record(o.string,e),status:(0,u.withFallback)(o.boolean,!0)}),o.partial({hash:o.string,format:(0,u.withFallback)(o.keyof(t.CustomTypeFormat),"custom")}),]))}function p(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])}function d(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>{let i=Object.entries(r).reduce((e,[n,r])=>{let i=t(n,r);return i?{...e,[n]:i}:e},{});return{...e,[n]:i}},{});return{...e,json:n}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.flattenSections=function(e){return Object.entries(e.json).reduce((e,[,t])=>{let n=Object.entries(t);return e.concat(n)},[])},t.toStatic=function(e,t){let n=Object.entries(e.json).reduce((e,[n,r])=>({...e,[n]:c.Sections.toStatic(r,t)}),{});return{...e,json:n}},t.validateSlices=function(e,t){let n=(function(e){let t=function(e){let t=p(e).filter(([,e])=>"Slices"===e.type),n=t.reduce((e,[,t])=>{let n=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,e])=>"SharedSlice"===e.type).map(([e])=>e);return e.concat(n)},[]);return n}(e);return function(e){return t.map(e)}})(e)(e=>{let n=t.get(e);if(!n)return e}).filter(Boolean);return n.length>0?(0,i.left)(new f(n)):(0,i.right)(e)},t.collectWidgets=d,t.filterMissingSharedSlices=function(e,t){return d(e,(e,n)=>{if("Slices"===n.type){if(!n.config||!n.config.choices)return n;let r=Object.entries(n.config.choices).reduce((e,[n,r])=>"SharedSlice"!==r.type||t.get(n)?{...e,[n]:r}:e,{}),i={...n.config,choices:r};return{...n,config:i}}return n})},t.flattenCustomTypeFields=function(e){return Object.values(e.json).reduce((e,t)=>({...e,...t}),{})},t.collectSharedSlices=function(e){return Object.entries(e.fields).reduce((e,[,t])=>{var n;return"Slices"===t.type||"Choice"===t.type?{...e,...Object.entries((null===(n=t.config)||void 0===n?void 0:n.choices)||{}).reduce((e,[t,n])=>"SharedSlice"===n.type?{...e,[t]:n}:e,{})}:e},{})}},22453:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(53039);function a(e){return i.record(o.WidgetKey,e)}t.sectionReader=a,t.StaticSection=a(u.StaticWidget),t.DynamicSection=a(u.DynamicWidget),t.Sections={toStatic(e,t){let n=Object.entries(e).reduce((e,[n,r])=>({...e,[n]:u.Widgets.toStatic(r,t)}),{});return n}}},5480:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(n=t.DiffOperation||(t.DiffOperation={})).Added="added",n.Removed="removed",n.Updated="updated"},89408:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=n(35566),i=n(5480),o=n(62961);t.SliceComparator={compare(e,t){if(!e&&t)return{op:i.DiffOperation.Added,value:t};if(e&&!t)return{op:i.DiffOperation.Removed};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"variations"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=r.Objects.zipObjects(e&&r.Arrays.toRecord(e.variations,e=>e.id),t&&r.Arrays.toRecord(t.variations,e=>e.id)),a=Object.entries(u).reduce((e,[t,n])=>{if(!n)return e;let r=o.VariationComparator.compare(n.left,n.right);return r?{...e,[t]:r}:e},{}),c={...n,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},62961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=n(35566),i=n(5480);function o(e,t){let n=r.Objects.zipObjects(e,t),o=Object.entries(n).reduce((e,[t,n])=>{if(JSON.stringify(null==n?void 0:n.left)===JSON.stringify(null==n?void 0:n.right))return e;let r=(()=>{if((null==n?void 0:n.left)||(null==n?void 0:n.right))return(null==n?void 0:n.left)&&!n.right?{op:i.DiffOperation.Removed}:!(null==n?void 0:n.left)&&(null==n?void 0:n.right)?{op:i.DiffOperation.Added,value:n.right}:{op:i.DiffOperation.Updated,value:n.right}})();return r?{...e,[t]:r}:e},{});return r.Objects.isNotEmpty(o)?o:void 0}t.VariationComparator={compare(e,t){if(e&&!t)return{op:i.DiffOperation.Removed};if(!e&&t)return{op:i.DiffOperation.Added,value:t};let n=function(e,t){let n=r.Objects.zipObjects(e,t);return Object.entries(n).reduce((e,[t,n])=>"primary"===t||"items"===t||(null==n?void 0:n.left)===(null==n?void 0:n.right)?e:{...e,[t]:null==n?void 0:n.right},{})}(e,t),u=o(null==e?void 0:e.primary,null==t?void 0:t.primary),a=o(null==e?void 0:e.items,null==t?void 0:t.items),c={...n,...u?{primary:u}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},74702:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(5480),t),(0,r.__exportStar)(n(89408),t),(0,r.__exportStar)(n(62961),t)},23535:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(17896),t),(0,r.__exportStar)(n(74702),t),(0,r.__exportStar)(n(22453),t),(0,r.__exportStar)(n(99814),t)},10673:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.GroupFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(30961);t.GroupFieldType="Group",t.GroupConfig=i.exact(i.partial({label:u.StringOrNull,repeat:i.boolean,fields:i.record(o.WidgetKey,a.NestableWidget)})),t.Group=i.exact(i.intersection([i.type({type:i.literal(t.GroupFieldType)}),i.partial({fieldset:u.StringOrNull,icon:i.string,description:i.string,config:t.GroupConfig}),]))},63437:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.UIDFieldType="UID",t.UIDConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.UID=i.exact(i.intersection([i.type({type:i.literal(t.UIDFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.UIDConfig}),]))},53039:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(44613),a=n(30961),c=n(78110),f=n(63437);function l(e){return i.union([f.UID,a.NestableWidget,o.Group,e])}t.widgetReader=l,t.StaticWidget=l(c.StaticSlices),t.DynamicWidget=l(c.DynamicSlices),t.FieldType=i.keyof({[u.ColorFieldType]:null,[u.BooleanFieldType]:null,[u.NumberFieldType]:null,[u.EmbedFieldType]:null,[u.GeoPointFieldType]:null,[u.DateFieldType]:null,[u.RangeFieldType]:null,[u.RichTextFieldType]:null,[u.SelectFieldType]:null,[u.SeparatorFieldType]:null,[u.TextFieldType]:null,[u.TimestampFieldType]:null,[u.LinkFieldType]:null,[u.ImageFieldType]:null,[u.IntegrationFieldType]:null,[f.UIDFieldType]:null,[o.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(e,t){switch(e.type){case"Choice":case"Slices":return c.Slices.toStatic(e,t);default:return e}}}},99814:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(10673),t),(0,r.__exportStar)(n(44613),t),(0,r.__exportStar)(n(77666),t),(0,r.__exportStar)(n(30324),t),(0,r.__exportStar)(n(63437),t),(0,r.__exportStar)(n(53039),t)},66014:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.BooleanFieldType="Boolean",t.BooleanConfig=i.exact(i.partial({label:o.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),t.BooleanField=i.exact(i.intersection([i.type({type:i.literal(t.BooleanFieldType)}),i.partial({config:t.BooleanConfig}),]))},2330:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.ColorFieldType="Color",t.ColorConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string})),t.Color=i.exact(i.intersection([i.type({type:i.literal(t.ColorFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ColorConfig}),]))},77352:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.DateFieldType="Date",t.DateConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Date=i.exact(i.intersection([i.type({type:i.literal(t.DateFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.DateConfig}),]))},53142:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.EmbedFieldType="Embed",t.EmbedConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),t.Embed=i.exact(i.intersection([i.type({type:i.literal(t.EmbedFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.EmbedConfig}),]))},46068:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=i.exact(i.partial({label:o.StringOrNull})),t.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(t.GeoPointFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.GeoPointConfig}),]))},65694:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597),u=(0,r.__importDefault)(n(71747));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),u.default,])),t.ImageConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,constraint:u.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.ImageConfig}),]))},60337:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,catalog:i.string})),t.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(t.IntegrationFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.IntegrationFieldConfig}),]))},64907:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(69624),a=n(8597),c=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return o.success(e)}},f=e=>{if("string"==typeof e)return o.success([e])},l=new o.Type("MasksArrayString",e=>e instanceof Array,(e,t)=>i.either.chain(o.union([o.array(o.string),o.string]).validate(e,t),n=>c(n)||f(n)||o.failure(e,t)),e=>e);t.LinkFieldType="Link",t.LinkConfig=o.exact(o.partial({label:a.StringOrNull,useAsTitle:o.boolean,placeholder:o.string,select:(0,u.withFallback)(o.union([o.literal("media"),o.literal("document"),o.literal("web"),o.null,]),null),customtypes:o.readonlyArray(o.string),masks:l,tags:l,allowTargetBlank:o.boolean})),t.Link=o.exact(o.intersection([o.type({type:o.literal(t.LinkFieldType)}),o.partial({fieldset:a.StringOrNull,config:t.LinkConfig}),]))},30961:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(66014),u=n(2330),a=n(77352),c=n(53142),f=n(46068),l=n(65694),p=n(60337),d=n(64907),s=n(16879),h=n(61490),m=n(48483),v=n(44284),y=n(29881),_=n(36732),b=n(48903);t.NestableWidget=i.union([u.Color,o.BooleanField,c.Embed,f.GeoPoint,a.Date,s.Number,h.Range,m.RichText,v.Select,y.Separator,_.Text,b.Timestamp,d.Link,l.Image,p.IntegrationField,])},16879:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(8597);t.NumberFieldType="Number",t.NumberConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Number=i.exact(i.intersection([i.type({type:i.literal(t.NumberFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.NumberConfig}),]))},61490:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(59054),u=n(8597);t.RangeFieldType="Range",t.RangeConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,min:i.union([i.number,o.NumberFromString]),max:i.union([i.number,o.NumberFromString]),step:i.union([i.number,o.NumberFromString])})),t.Range=i.exact(i.intersection([i.type({type:i.literal(t.RangeFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.RangeConfig}),]))},48483:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=n(98227),i=n(9554),o=n(87412),u=n(14632),a=(0,r.__importStar)(n(87830)),c=n(8597),f=(0,r.__importDefault)(n(71747));t.RichTextFieldType="StructuredText",t.DEFAULT_OPTION="paragraph",t.RichTextNodeType={heading1:"heading1",heading2:"heading2",heading3:"heading3",heading4:"heading4",heading5:"heading5",heading6:"heading6",paragraph:"paragraph",strong:"strong",em:"em",preformatted:"preformatted",hyperlink:"hyperlink",image:"image",embed:"embed",list:"list-item",orderedList:"o-list-item",rtl:"rtl"},t.RichTextNodeTypeCodec=a.keyof({[t.RichTextNodeType.heading1]:null,[t.RichTextNodeType.heading2]:null,[t.RichTextNodeType.heading3]:null,[t.RichTextNodeType.heading4]:null,[t.RichTextNodeType.heading5]:null,[t.RichTextNodeType.heading6]:null,[t.RichTextNodeType.paragraph]:null,[t.RichTextNodeType.strong]:null,[t.RichTextNodeType.em]:null,[t.RichTextNodeType.preformatted]:null,[t.RichTextNodeType.hyperlink]:null,[t.RichTextNodeType.image]:null,[t.RichTextNodeType.embed]:null,[t.RichTextNodeType.list]:null,[t.RichTextNodeType.orderedList]:null,[t.RichTextNodeType.rtl]:null});let l=new a.Type("RichTextOptions",e=>"string"==typeof e,e=>(0,u.pipe)(a.union([a.string,a.null]).decode(e),i.either.map(e=>{if(!e)return t.DEFAULT_OPTION;let n=e.split(",").map(e=>e.trim()),r=n.filter(e=>(0,o.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(e)));return r.length?r.join(","):t.DEFAULT_OPTION})),e=>e),p=e=>{if(!e)return a.success([])},d=e=>{if(e instanceof Object){if(!Object.entries(e).length)return a.success([]);if(e[""])return a.success(e[""].map(e=>e.name));let t=Object.entries(e).reduce((e,[,t])=>e.concat(t.map(e=>e.name)),[]).filter(Boolean);return a.success(t)}},s=e=>{if(e instanceof Array){let t=e.reduce((e,t)=>e&&"string"==typeof t,!0);if(t)return a.success(e)}},h=e=>{if("string"==typeof e)return a.success([e])},m=new a.Type("RichTextLabels",e=>e instanceof Array,(e,t)=>{let n=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,u.pipe)(a.union([n,r,a.string,a.null]).decode(e),i.either.chain(n=>p(n)||s(n)||d(n)||h(n)||a.failure(e,t)))},e=>e);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:m,allowTargetBlank:a.boolean})),t.RichText=a.exact(a.intersection([a.type({type:a.literal(t.RichTextFieldType)}),a.partial({fieldset:c.StringOrNull,config:t.RichTextConfig}),]))},44284:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.SelectFieldType="Select",t.SelectConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,o.StringFromNumber,o.StringFromBoolean]))})),t.Select=i.exact(i.intersection([i.type({type:i.literal(t.SelectFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.SelectConfig}),]))},29881:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.SeparatorFieldType="Separator",t.SeparatorConfig=i.exact(i.partial({label:o.StringOrNull})),t.Separator=i.exact(i.intersection([i.type({type:i.literal(t.SeparatorFieldType)}),i.partial({config:t.SeparatorConfig}),]))},36732:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.TextFieldType="Text",t.TextConfig=i.exact(i.partial({label:o.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.Text=i.exact(i.intersection([i.type({type:i.literal(t.TextFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TextConfig}),]))},48903:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(8597);t.TimestampFieldType="Timestamp",t.TimestampConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,default:i.string})),t.Timestamp=i.exact(i.intersection([i.type({type:i.literal(t.TimestampFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.TimestampConfig}),]))},44613:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(66014),t),(0,r.__exportStar)(n(2330),t),(0,r.__exportStar)(n(77352),t),(0,r.__exportStar)(n(53142),t),(0,r.__exportStar)(n(46068),t),(0,r.__exportStar)(n(65694),t),(0,r.__exportStar)(n(60337),t),(0,r.__exportStar)(n(64907),t),(0,r.__exportStar)(n(30961),t),(0,r.__exportStar)(n(16879),t),(0,r.__exportStar)(n(61490),t),(0,r.__exportStar)(n(48483),t),(0,r.__exportStar)(n(44284),t),(0,r.__exportStar)(n(29881),t),(0,r.__exportStar)(n(36732),t),(0,r.__exportStar)(n(48903),t)},71747:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(11621),a=n(8597),c=new o.Type("SideConstraints",e=>!e||"number"==typeof e,(e,t)=>i.either.chain(o.union([o.literal("auto"),o.literal(""),o.Int,u.IntFromString,a.IntFromNumber,a.IntFromPixels,o.null,]).validate(e,t),e=>"auto"===e||""===e?o.success(null):o.success(e)),e=>e),f=o.partial({width:c,height:c});t.default=f},77666:function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=n(71747);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},26417:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isCompositeSlice=t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(30961);t.CompositeSliceType="Slice",t.CompositeSliceConfig=i.exact(i.partial({label:u.StringOrNull})),t.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(t.CompositeSliceType)}),i.partial({fieldset:u.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(o.WidgetKey,a.NestableWidget),repeat:i.record(o.WidgetKey,a.NestableWidget),config:t.CompositeSliceConfig}),])),t.isCompositeSlice=function(e){return"Slice"===e.type}},97442:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isLegacySlice=t.LegacySlice=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(30961);t.LegacySlice=i.union([u.NestableWidget,o.Group]),t.isLegacySlice=function(e){return"Slice"!==e.type&&"SharedSlice"!==e.type}},32233:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicSharedSlice=t.isStaticSharedSlice=t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(69624),u=n(31289),a=n(30961),c=n(19288);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,o.withFallback)(i.string,"https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"),docURL:i.string,version:i.string}),i.partial({display:i.string,primary:i.record(u.WidgetKey,c.SlicePrimaryWidget),items:i.record(u.WidgetKey,a.NestableWidget)}),])),t.SharedSliceType="SharedSlice";let f=i.string,l=i.string;t.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(t.SharedSliceType),name:i.string,variations:i.readonlyArray(t.Variation)}),i.partial({description:i.string,legacyPaths:i.record(f,l)}),])),t.isStaticSharedSlice=function(e){return"SharedSlice"===e.type},t.isDynamicSharedSlice=function(e){return"SharedSlice"===e.type}},73194:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(32233);t.SharedSliceRef=i.exact(i.type({type:i.literal(o.SharedSliceType)}))},42738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},19288:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicePrimaryWidget=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(10673),u=n(44613);t.SlicePrimaryWidget=i.union([u.NestableWidget,o.Group])},78110:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Slices=t.DynamicSlices=t.StaticSlices=t.slicesReader=t.DynamicSlicesConfig=t.StaticSlicesConfig=t.slicesConfigReader=t.SlicesLabels=t.SlicesFieldType=t.LegacySlicesFieldType=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(31289),u=n(8597),a=n(26417),c=n(97442),f=n(32233),l=n(73194);function p(e){return i.exact(i.partial({label:u.StringOrNull,labels:t.SlicesLabels,choices:i.record(o.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,e]))}))}t.LegacySlicesFieldType="Choice",t.SlicesFieldType="Slices",t.SlicesLabels=i.union([i.record(i.string,i.readonlyArray(i.exact(i.intersection([i.type({name:i.string}),i.partial({display:i.string}),])))),i.null,]),t.slicesConfigReader=p,t.StaticSlicesConfig=p(f.SharedSlice),t.DynamicSlicesConfig=p(l.SharedSliceRef);let d={toStatic(e,t){let n=Object.entries(e.choices||{}).reduce((e,[n,r])=>{if("SharedSlice"!==r.type)return{...e,[n]:r};{let i=t.get(n);return i?{...e,[n]:i}:e}},{});return{...e,choices:n}}};function s(e){return i.exact(i.intersection([i.type({type:i.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),i.partial({fieldset:u.StringOrNull,config:e}),]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(e,t)=>e.config?{...e,config:d.toStatic(e.config,t)}:e}},51945:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(26417),u=n(32233);t.SlicesTypes=i.keyof({[o.CompositeSliceType]:null,[u.SharedSliceType]:null})},30324:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227);(0,r.__exportStar)(n(26417),t),(0,r.__exportStar)(n(97442),t),(0,r.__exportStar)(n(32233),t),(0,r.__exportStar)(n(73194),t),(0,r.__exportStar)(n(42738),t),(0,r.__exportStar)(n(19288),t),(0,r.__exportStar)(n(78110),t),(0,r.__exportStar)(n(51945),t)},18949:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(e,t){return e.reduce((e,n)=>{let r=t(n);return{...e,[r]:n}},{})}},17160:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mapValues=t.isObject=t.withOptionals=t.isNotEmpty=t.zipObjects=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830));t.zipObjects=function(e,t){let n=[...new Set(Object.keys(e||{}).concat(Object.keys(t||{}))),];return n.reduce((n,r)=>{let i=null==e?void 0:e[r],o=null==t?void 0:t[r];return{...n,[r]:{left:i,right:o}}},{})},t.isNotEmpty=function(e){return Boolean(Object.keys(e).length)},t.withOptionals=function(e,t){return{...e,...t.reduce((e,[t,n])=>n?{...e,[t]:n}:e,{})}};let u=o.record(o.string,o.unknown);t.isObject=function(e){return(0,i.isRight)(u.decode(e))},t.mapValues=function(e,t){return Object.entries(e).reduce((e,[n,r])=>({...e,[n]:t(r,n)}),{})}},35566:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=t.HexaColorCode=void 0;let r=n(98227);t.HexaColorCode=(0,r.__importStar)(n(55962)),t.Arrays=(0,r.__importStar)(n(18949)),t.Objects=(0,r.__importStar)(n(17160))},19841:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArray=t.EmptyObject=t.Boolean=t.NumberOrNull=t.Number=t.StringOrNull=t.String=void 0;let r=n(98227),i=n(9554),o=n(14632),u=(0,r.__importStar)(n(87830)),a=n(35002);t.String=(0,a.withCustomError)(u.string,()=>"The value must be a string"),t.StringOrNull=(0,a.withCustomError)(u.union([u.string,u.null]),()=>"The value must be a string or null"),t.Number=(0,a.withCustomError)(u.number,()=>"The value must be a number"),t.NumberOrNull=(0,a.withCustomError)(u.union([u.number,u.null]),()=>"The value must be a number or null"),t.Boolean=(0,a.withCustomError)(u.boolean,()=>"The value must be a boolean"),t.EmptyObject=u.UnknownRecord.pipe(new u.Type("emptyObject",e=>u.UnknownRecord.is(e),(e,t)=>Object.keys(e).length>0?u.failure(e,t,"The object is not empty."):u.success({}),u.identity)),t.EmptyArray=new u.Type("emptyArray",e=>u.UnknownArray.is(e)&&0===e.length,(e,t)=>(0,o.pipe)(u.UnknownArray.decode(e),i.either.chain(n=>n.length>0?u.failure(e,t,"The array is not empty."):u.success([]))),()=>[])},89394:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(8597);t.default=new u.Type("dateFromString",e=>e instanceof Date,(e,t)=>(0,o.pipe)(a.String.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.toISOString())},23954:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromStringOrNumber",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.union([u.number,u.string]).validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e)},72113:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("dateFromTsMs",e=>e instanceof Date,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(n=>{let r=new Date(n);return isNaN(r.getTime())?u.failure(e,t):u.success(r)})),e=>e.getTime())},35541:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyArrayOrElse=t.EmptyObjectOrElse=t.NullOrElse=t.DefaultOrElse=void 0;let r=n(98227),i=n(87412),o=(0,r.__importStar)(n(87830)),u=n(19841),a=e=>t=>new o.Type(`DefaultOrElse<${e.name}, ${t.name}>`,e=>null===e||t.is(e),(n,r)=>(0,i.isRight)(e.validate(n,r))?o.success(null):t.validate(n,r),e=>e?t.encode(e):void 0);t.DefaultOrElse=a;let c=e=>(0,t.DefaultOrElse)(o.null)(e);t.NullOrElse=c;let f=e=>(0,t.DefaultOrElse)(u.EmptyObject)(e);t.EmptyObjectOrElse=f;let l=e=>(0,t.DefaultOrElse)(u.EmptyArray)(e);t.EmptyArrayOrElse=l},62990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("IntFromNumber",u.Int.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.Int.is(e)?u.success(e):u.success(Math.round(e)))),u.Int.encode)},64678:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830)),a=/^([0-9]+)px$/;t.default=new u.Type("IntFromPixels",u.Int.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(n=>{try{let r=n.match(a);if(!r)return u.failure(e,t);let i=parseInt(r[1]);return u.success(i)}catch{return u.failure(e,t)}})),String)},19528:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.withCustomError)((0,o.refineType)(i.string,"nonEmptyString",e=>e.trim().length>0),()=>"The value must be a non-empty string")},89448:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=n(87830),a=(0,r.__importDefault)(n(89793));t.default=new u.Type("nonEmptyStringOrNull",e=>"string"==typeof e||null===e,(e,t)=>(0,o.pipe)(a.default.validate(e,t),(0,i.chain)(e=>"string"==typeof e&&e.length>0?(0,u.success)(e):(0,u.success)(null))),e=>e)},33805:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.nullable)(i.number)},13670:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(19841);t.default=(e,t,n)=>o.Number.pipe(new i.Type("numberInRange",e=>o.Number.is(e),(r,o)=>r>t||r<e?i.failure(r,o,`${n} must be a number between ${e} and ${t}`):i.success(r),i.identity))},32047:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.boolean.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},80990:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("StringFromInt",u.string.is,(e,t)=>(0,o.pipe)(u.number.validate(e,t),(0,i.chain)(e=>u.success(e.toString()))),e=>e)},89793:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=(0,r.__importStar)(n(87830)),o=n(35002);t.default=(0,o.nullable)(i.string)},38729:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});let r=n(98227),i=n(81878),o=n(42275),u=(0,r.__importStar)(n(87830));t.default=new u.Type("TrimmedString",u.string.is,(e,t)=>(0,o.pipe)(u.string.validate(e,t),(0,i.chain)(e=>u.success(function(e){let t=0;for(;t<e.length&&e[t]<=" ";)t++;let n=e.length;for(;t<n&&e[n-1]<=" ";)n--;return e.substring(t,n)}(e)))),e=>e)},35002:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.withCustomError=t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=n(98227),i=n(9554),o=n(42275),u=(0,r.__importStar)(n(87830)),a=n(23284),c=n(47361);t.nullable=function(e){return u.union([e,u.null,u.undefined])},t.refineType=function(e,t,n){return new u.Type(t,e.is,(t,r)=>(0,o.pipe)(e.validate(t,r),i.either.chain(e=>n(e)?u.success(e):u.failure(t,r))),e.encode)},t.filterDouble=function(e){if(""===e)return null;let t=Number(e);return Number.isNaN(t)?null:t},t.formatDateTime=function(e){return e.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(e){return e.toISOString().replace(/T.*/,"")},t.grouped=function(e,t){return e.reduce((e,n,r)=>(r%t==0?e.push([n]):e[Math.floor(r/t)].push(n),e),[])},t.objectToMap=function(e){return new Map(Object.entries(e))},t.isEmpty=function(e){for(let t in e)return!1;return!0},t.addType=function(e,t){return(0,c.mapOutput)(e,e=>({...e,__TYPE__:t}))},t.withCustomError=function(e,t){return(0,a.withValidate)(e,(n,r)=>i.either.mapLeft(e=>e.find(e=>e.message)?e:[{value:n,context:r,message:t(n,r),actual:n},])(e.validate(n,r)))}},8597:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberRange=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=n(98227);(0,r.__exportStar)(n(19841),t);var i=n(89394);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var o=n(23954);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var u=n(72113);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(n(35541),t),t.Function=(0,r.__importStar)(n(35002));var a=n(62990);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=n(64678);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=n(19528);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=n(89448);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=n(33805);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=n(13670);Object.defineProperty(t,"NumberRange",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=n(32047);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var h=n(80990);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var m=n(89793);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},46111:function(e,t,n){n.r(t),n.d(t,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return u}});var r=n(42925),i=n(42275),o=n(67560);function u(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function a(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},42925:function(e,t,n){n.r(t),n.d(t,{ap:function(){return o},apFirst:function(){return u},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=n(42275),i=n(97963);function o(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}}function u(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}}function a(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}}function c(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}}function f(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}}function l(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):l(e,t-1,i)}}var p={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};function d(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var o,u=t.length,a=(i.e$.call(p,u)||(p[u]=l(r.tuple,u-1,[])),p[u]),c=e.map(t[0],a),f=1;f<u;f++)c=e.ap(c,t[f]);return c}}function s(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return l(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},1358:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tV},Alternative:function(){return tH},Applicative:function(){return tU},Apply:function(){return tL},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t6},ChainRecDepthFirst:function(){return t7},Compactable:function(){return t$},Do:function(){return nl},Extend:function(){return tZ},Filterable:function(){return tX},FilterableWithIndex:function(){return tJ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return nt},Functor:function(){return tF},FunctorWithIndex:function(){return tN},Monad:function(){return tB},Pointed:function(){return tD},Traversable:function(){return t1},TraversableWithIndex:function(){return t2},URI:function(){return tI},Unfoldable:function(){return tY},Witherable:function(){return t3},Zero:function(){return tK},alt:function(){return ta},altW:function(){return tu},ap:function(){return e8},apFirst:function(){return tA},apS:function(){return nh},apSecond:function(){return tj},append:function(){return _},appendW:function(){return b},array:function(){return nS},bind:function(){return ns},bindTo:function(){return np},chain:function(){return nm},chainFirst:function(){return tG},chainRecBreadthFirst:function(){return t9},chainRecDepthFirst:function(){return t5},chainWithIndex:function(){return W},chop:function(){return eS},chunksOf:function(){return eI},compact:function(){return e6},comprehension:function(){return ew},concat:function(){return eR},concatW:function(){return eO},cons:function(){return ng},copy:function(){return ei},deleteAt:function(){return ea},difference:function(){return eE},dropLeft:function(){return Z},dropLeftWhile:function(){return X},dropRight:function(){return $},duplicate:function(){return tl},elem:function(){return eg},empty:function(){return ny},every:function(){return nu},exists:function(){return nc},extend:function(){return tf},filter:function(){return tt},filterE:function(){return ne},filterMap:function(){return e9},filterMapWithIndex:function(){return e7},filterWithIndex:function(){return tc},findFirst:function(){return Q},findFirstMap:function(){return ee},findIndex:function(){return J},findLast:function(){return et},findLastIndex:function(){return er},findLastMap:function(){return en},flap:function(){return tW},flatMap:function(){return e4},flatten:function(){return e3},foldLeft:function(){return E},foldMap:function(){return tp},foldMapWithIndex:function(){return td},foldRight:function(){return F},fromEither:function(){return w},fromEitherK:function(){return nn},fromOption:function(){return x},fromOptionK:function(){return ex},fromPredicate:function(){return I},getDifferenceMagma:function(){return tP},getEq:function(){return tR},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tO},getOrd:function(){return tC},getSemigroup:function(){return tw},getShow:function(){return tx},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tM},guard:function(){return tz},head:function(){return U},init:function(){return B},insertAt:function(){return eo},intercalate:function(){return nf},intersection:function(){return eM},intersperse:function(){return ev},isEmpty:function(){return h},isNonEmpty:function(){return m},isOutOfBound:function(){return A},last:function(){return q},lefts:function(){return ep},let:function(){return nd},lookup:function(){return j},makeBy:function(){return S},map:function(){return e2},mapWithIndex:function(){return e5},match:function(){return R},matchLeft:function(){return M},matchLeftW:function(){return C},matchRight:function(){return P},matchRightW:function(){return k},matchW:function(){return O},modifyAt:function(){return ec},of:function(){return e0},partition:function(){return tn},partitionMap:function(){return ti},partitionMapWithIndex:function(){return to},partitionWithIndex:function(){return tr},prepend:function(){return v},prependAll:function(){return em},prependToAll:function(){return nb},prependW:function(){return y},range:function(){return nv},reduce:function(){return ts},reduceRight:function(){return tm},reduceRightWithIndex:function(){return tv},reduceWithIndex:function(){return th},replicate:function(){return T},reverse:function(){return ef},rights:function(){return el},rotate:function(){return ey},scanLeft:function(){return D},scanRight:function(){return N},separate:function(){return te},sequence:function(){return tg},size:function(){return L},snoc:function(){return n_},some:function(){return na},sort:function(){return ed},sortBy:function(){return eb},spanLeft:function(){return H},splitAt:function(){return eT},tail:function(){return G},takeLeft:function(){return Y},takeLeftWhile:function(){return K},takeRight:function(){return V},traverse:function(){return ty},traverseWithIndex:function(){return t_},unfold:function(){return tT},union:function(){return eC},uniq:function(){return e_},unsafeDeleteAt:function(){return no},unsafeInsertAt:function(){return nr},unsafeUpdateAt:function(){return ni},unzip:function(){return eh},updateAt:function(){return eu},wilt:function(){return tS},wither:function(){return tb},zero:function(){return e1},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:es(t,n,function(e,t){return[e,t]})}},zipWith:function(){return es}});var r=n(42925),i=n(88543),o=n(25162),u=n(42275),a=n(67560),c=n(97963),f=n(43586),l=n(31583),p=n(34219),d=n(76511),s=n(28957),h=function(e){return 0===e.length},m=f.isNonEmpty,v=f.prepend,y=f.prependW,_=f.append,b=f.appendW,S=function(e,t){return e<=0?[]:f.makeBy(t)(e)},T=function(e,t){return S(e,function(){return t})};function I(e){return function(t){return e(t)?[t]:[]}}var x=function(e){return c.Wi(e)?[]:[e.value]},w=function(e){return c.nM(e)?[]:[e.right]},O=function(e,t){return function(n){return m(n)?t(n):e()}},R=O,C=function(e,t){return function(n){return m(n)?t(f.head(n),f.tail(n)):e()}},M=C,E=M,k=function(e,t){return function(n){return m(n)?t(f.init(n),f.last(n)):e()}},P=k,F=P,W=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},D=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},N=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},L=function(e){return e.length},A=f.isOutOfBound,j=l.lookup,U=l.head,q=l.last,G=function(e){return m(e)?c.G(f.tail(e)):c.YP},B=function(e){return m(e)?c.G(f.init(e)):c.YP},Y=function(e){return function(t){return A(e,t)?ei(t):t.slice(0,e)}},V=function(e){return function(t){return A(e,t)?ei(t):0===e?[]:t.slice(-e)}};function K(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}}var z=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function H(e){return function(t){var n,r=eT(z(t,e))(t);return{init:r[0],rest:r[1]}}}var Z=function(e){return function(t){return e<=0||h(t)?ei(t):e>=t.length?[]:t.slice(e,t.length)}},$=function(e){return function(t){return e<=0||h(t)?ei(t):e>=t.length?[]:t.slice(0,t.length-e)}};function X(e){return function(t){return t.slice(z(t,e))}}var J=l.findIndex;function Q(e){return l.findFirst(e)}var ee=l.findFirstMap;function et(e){return l.findLast(e)}var en=l.findLastMap,er=l.findLastIndex,ei=function(e){return e.slice()},eo=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(nr(e,t,n))}},eu=function(e,t){return ec(e,function(){return t})},ea=function(e){return function(t){return A(e,t)?c.YP:c.G(no(e,t))}},ec=function(e,t){return function(n){return A(e,n)?c.YP:c.G(ni(e,t(n[e]),n))}},ef=function(e){return h(e)?[]:e.slice().reverse()},el=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},ep=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},ed=function(e){return function(t){return t.length<=1?ei(t):t.slice().sort(e.compare)}},es=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},eh=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},em=function(e){var t=f.prependAll(e);return function(e){return m(e)?t(e):[]}},ev=function(e){var t=f.intersperse(e);return function(e){return m(e)?t(e):ei(e)}},ey=function(e){var t=f.rotate(e);return function(e){return m(e)?t(e):ei(e)}},eg=l.elem,e_=function(e){var t=f.uniq(e);return function(e){return m(e)?t(e):ei(e)}},eb=function(e){var t=f.sortBy(e);return function(e){return m(e)?t(e):ei(e)}},eS=function(e){var t=f.chop(e);return function(e){return m(e)?t(e):[]}},eT=function(e){return function(t){return e>=1&&m(t)?f.splitAt(e)(t):h(t)?[ei(t),[]]:[[],ei(t)]}},eI=function(e){var t=f.chunksOf(e);return function(e){return m(e)?t(e):[]}},ex=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return x(e.apply(void 0,t))}};function ew(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return m(i)?e4(f.head(i),function(t){return r((0,u.pipe)(e,_(t)),f.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:[]};return r([],e)}var eO=function(e){return function(t){return h(t)?ei(e):h(e)?ei(t):t.concat(e)}},eR=eO;function eC(e){var t=f.union(e);return function(n,r){if(void 0===r){var i=eC(e);return function(e){return i(e,n)}}return m(n)&&m(r)?t(r)(n):m(n)?ei(n):ei(r)}}function eM(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function eE(e){var t=eg(e);return function(n,r){if(void 0===r){var i=eE(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var ek=function(e,t){return(0,u.pipe)(e,e2(t))},eP=function(e,t){return(0,u.pipe)(e,e5(t))},eF=function(e,t){return(0,u.pipe)(e,e8(t))},eW=function(e,t){return(0,u.pipe)(e,tt(t))},eD=function(e,t){return(0,u.pipe)(e,e9(t))},eN=function(e,t){return(0,u.pipe)(e,tn(t))},eL=function(e,t){return(0,u.pipe)(e,ti(t))},eA=function(e,t){return(0,u.pipe)(e,tr(t))},ej=function(e,t){return(0,u.pipe)(e,to(t))},eU=function(e,t){return(0,u.pipe)(e,ta(t))},eq=function(e,t,n){return(0,u.pipe)(e,ts(t,n))},eG=function(e){var t=tp(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eB=function(e,t,n){return(0,u.pipe)(e,tm(t,n))},eY=function(e,t,n){return(0,u.pipe)(e,th(t,n))},eV=function(e){var t=td(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eK=function(e,t,n){return(0,u.pipe)(e,tv(t,n))},ez=function(e,t){return(0,u.pipe)(e,e7(t))},eH=function(e,t){return(0,u.pipe)(e,tc(t))},eZ=function(e,t){return(0,u.pipe)(e,tf(t))},e$=function(e){var t=ty(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eX=function(e){var t=t_(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eJ=l._chainRecDepthFirst,eQ=l._chainRecBreadthFirst,e0=f.of,e1=function(){return[]},e2=function(e){return function(t){return t.map(function(t){return e(t)})}},e8=function(e){return e4(function(t){return(0,u.pipe)(e,e2(t))})},e4=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,W(function(e,n){return t(n,e)}))}),e3=e4(u.identity),e5=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},e7=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);c.pC(i)&&n.push(i.value)}return n}},e9=function(e){return e7(function(t,n){return e(n)})},e6=e9(u.identity),te=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,p.separated)(t,n)},tt=function(e){return function(t){return t.filter(e)}},tn=function(e){return tr(function(t,n){return e(n)})},tr=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,p.separated)(n,r)}},ti=function(e){return to(function(t,n){return e(n)})},to=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,p.separated)(n,r)}},tu=function(e){return function(t){return t.concat(e())}},ta=tu,tc=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tf=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tl=tf(u.identity),tp=l.foldMap,td=l.foldMapWithIndex,ts=l.reduce,th=l.reduceWithIndex,tm=l.reduceRight,tv=l.reduceRightWithIndex,ty=function(e){var t=t_(e);return function(e){return t(function(t,n){return e(n)})}},tg=function(e){return function(t){return eq(t,e.of(e1()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,u.pipe)(e,_(t))}}),n)})}},t_=function(e){return function(t){return th(e.of(e1()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,_(t))}}),t(n,i))})}},tb=function(e){var t=t8(e);return function(e){return function(n){return t(n,e)}}},tS=function(e){var t=t4(e);return function(e){return function(n){return t(n,e)}}},tT=function(e,t){for(var n=[],r=e;;){var i=t(r);if(c.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tI="Array",tx=l.getShow,tw=function(){return{concat:function(e,t){return e.concat(t)}}},tO=function(){return{concat:tw().concat,empty:[]}},tR=l.getEq,tC=l.getOrd,tM=function(e){var t=eC(e);return{concat:function(e,n){return t(n)(e)}}},tE=function(e){return{concat:tM(e).concat,empty:[]}},tk=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tP=function(e){var t=eE(e);return{concat:function(e,n){return t(n)(e)}}},tF={URI:tI,map:ek},tW=(0,a.flap)(tF),tD={URI:tI,of:e0},tN={URI:tI,map:ek,mapWithIndex:eP},tL={URI:tI,map:ek,ap:eF},tA=(0,r.apFirst)(tL),tj=(0,r.apSecond)(tL),tU={URI:tI,map:ek,ap:eF,of:e0},tq={URI:tI,map:ek,ap:eF,chain:e4},tG=(0,i.chainFirst)(tq),tB={URI:tI,map:ek,ap:eF,of:e0,chain:e4},tY={URI:tI,unfold:tT},tV={URI:tI,map:ek,alt:eU},tK={URI:tI,zero:e1},tz=(0,s.guard)(tK,tD),tH={URI:tI,map:ek,ap:eF,of:e0,alt:eU,zero:e1},tZ={URI:tI,map:ek,extend:eZ},t$={URI:tI,compact:e6,separate:te},tX={URI:tI,map:ek,compact:e6,separate:te,filter:eW,filterMap:eD,partition:eN,partitionMap:eL},tJ={URI:tI,map:ek,mapWithIndex:eP,compact:e6,separate:te,filter:eW,filterMap:eD,partition:eN,partitionMap:eL,partitionMapWithIndex:ej,partitionWithIndex:eA,filterMapWithIndex:ez,filterWithIndex:eH},tQ={URI:tI,reduce:eq,foldMap:eG,reduceRight:eB},t0={URI:tI,reduce:eq,foldMap:eG,reduceRight:eB,reduceWithIndex:eY,foldMapWithIndex:eV,reduceRightWithIndex:eK},t1={URI:tI,map:ek,reduce:eq,foldMap:eG,reduceRight:eB,traverse:e$,sequence:tg},t2={URI:tI,map:ek,mapWithIndex:eP,reduce:eq,foldMap:eG,reduceRight:eB,reduceWithIndex:eY,foldMapWithIndex:eV,reduceRightWithIndex:eK,traverse:e$,sequence:tg,traverseWithIndex:eX},t8=(0,d.witherDefault)(t1,t$),t4=(0,d.wiltDefault)(t1,t$),t3={URI:tI,map:ek,compact:e6,separate:te,filter:eW,filterMap:eD,partition:eN,partitionMap:eL,reduce:eq,foldMap:eG,reduceRight:eB,traverse:e$,sequence:tg,wither:t8,wilt:t4},t5=l.chainRecDepthFirst,t7={URI:tI,map:ek,ap:eF,chain:e4,chainRec:eJ},t9=l.chainRecBreadthFirst,t6={URI:tI,map:ek,ap:eF,chain:e4,chainRec:eQ},ne=(0,d.filterE)(t3),nt={URI:tI,fromEither:w},nn=(0,o.fromEitherK)(nt),nr=f.unsafeInsertAt,ni=function(e,t,n){return m(n)?f.unsafeUpdateAt(e,t,n):[]},no=function(e,t){var n=t.slice();return n.splice(e,1),n},nu=l.every,na=function(e){return function(t){return t.some(e)}},nc=na,nf=l.intercalate,nl=e0(c.F4),np=(0,a.bindTo)(tF),nd=(0,a.let)(tF),ns=(0,i.bind)(tq),nh=(0,r.apS)(tL),nm=e4,nv=f.range,ny=[],ng=f.cons,n_=f.snoc,nb=em,nS={URI:tI,compact:e6,separate:te,map:ek,ap:eF,of:e0,chain:e4,filter:eW,filterMap:eD,partition:eN,partitionMap:eL,mapWithIndex:eP,partitionMapWithIndex:ej,partitionWithIndex:eA,filterMapWithIndex:ez,filterWithIndex:eH,alt:eU,zero:e1,unfold:tT,reduce:eq,foldMap:eG,reduceRight:eB,traverse:e$,sequence:tg,reduceWithIndex:eY,foldMapWithIndex:eV,reduceRightWithIndex:eK,traverseWithIndex:eX,extend:eZ,wither:t8,wilt:t4}},88543:function(e,t,n){function r(e){var t=i(e);return function(e){return function(n){return t(n,e)}}}function i(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}function o(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}n.r(t),n.d(t,{bind:function(){return o},chainFirst:function(){return r},tap:function(){return i}})},56661:function(e,t,n){n.r(t),n.d(t,{tailRec:function(){return r}});var r=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right}},90817:function(e,t,n){n.r(t),n.d(t,{Bifunctor:function(){return k},Contravariant:function(){return E},Functor:function(){return C},URI:function(){return R},bimap:function(){return w},const_:function(){return P},contramap:function(){return I},flap:function(){return M},getApplicative:function(){return y},getApply:function(){return v},getBooleanAlgebra:function(){return m},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return h},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return u},make:function(){return o},map:function(){return x},mapLeft:function(){return O}});var r=n(42275),i=n(67560),o=r.unsafeCoerce;function u(e){return{show:function(t){return"make(".concat(e.show(t),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,h=r.identity,m=r.identity;function v(e){return{URI:R,_E:void 0,map:b,ap:function(t,n){return o(e.concat(t,n))}}}function y(e){var t=v(e);return{URI:R,_E:void 0,map:t.map,ap:t.ap,of:function(){return o(e.empty)}}}var _=function(e,t){return(0,r.pipe)(e,I(t))},b=function(e,t){return(0,r.pipe)(e,x(t))},S=function(e,t,n){return(0,r.pipe)(e,w(t,n))},T=function(e,t){return(0,r.pipe)(e,O(t))},I=function(){return r.unsafeCoerce},x=function(){return r.unsafeCoerce},w=function(e){return function(t){return o(e(t))}},O=function(e){return function(t){return o(e(t))}},R="Const",C={URI:R,map:b},M=(0,i.flap)(C),E={URI:R,contramap:_},k={URI:R,bimap:S,mapLeft:T},P={URI:R,map:b,contramap:_,bimap:S,mapLeft:T}},81878:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return ea},ApT:function(){return e9},Applicative:function(){return K},Apply:function(){return V},Bifunctor:function(){return ei},Chain:function(){return z},ChainRec:function(){return el},Do:function(){return e1},Extend:function(){return ef},Foldable:function(){return J},FromEither:function(){return es},Functor:function(){return A},Monad:function(){return H},MonadThrow:function(){return ed},Pointed:function(){return G},Traversable:function(){return et},URI:function(){return C},alt:function(){return eu},altW:function(){return eo},ap:function(){return Y},apFirst:function(){return ew},apFirstW:function(){return eO},apS:function(){return e5},apSW:function(){return e7},apSecond:function(){return eR},apSecondW:function(){return eC},apW:function(){return B},as:function(){return j},asUnit:function(){return U},bimap:function(){return en},bind:function(){return e4},bindTo:function(){return e2},bindW:function(){return e3},chain:function(){return to},chainFirst:function(){return tu},chainFirstW:function(){return ta},chainNullableK:function(){return eX},chainOptionK:function(){return eW},chainOptionKW:function(){return eD},chainW:function(){return ti},duplicate:function(){return eP},either:function(){return tl},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!ev(r)&&t.equals(n,r.right)}}},exists:function(){return e0},extend:function(){return ec},filterOrElse:function(){return eG},filterOrElseW:function(){return eB},flap:function(){return ex},flatMap:function(){return m},flatMapNullable:function(){return eU},flatMapOption:function(){return eq},flatten:function(){return ek},flattenW:function(){return eE},fold:function(){return eS},foldMap:function(){return $},foldW:function(){return e_},fromNullable:function(){return ez},fromNullableK:function(){return e$},fromOption:function(){return em},fromOptionK:function(){return eF},fromPredicate:function(){return eh},getAltValidation:function(){return N},getApplicativeValidation:function(){return D},getApplyMonoid:function(){return td},getApplySemigroup:function(){return tp},getCompactable:function(){return P},getEq:function(){return E},getFilterable:function(){return F},getOrElse:function(){return eI},getOrElseW:function(){return eT},getSemigroup:function(){return k},getShow:function(){return M},getValidation:function(){return tm},getValidationMonoid:function(){return th},getValidationSemigroup:function(){return ts},getWitherable:function(){return W},isLeft:function(){return ev},isRight:function(){return ey},left:function(){return s},let:function(){return e8},liftNullable:function(){return eL},liftOption:function(){return eA},map:function(){return L},mapLeft:function(){return er},match:function(){return eb},matchW:function(){return eg},of:function(){return q},orElse:function(){return eK},orElseW:function(){return eV},parseJSON:function(){return tc},reduce:function(){return Z},reduceRight:function(){return X},right:function(){return h},sequence:function(){return ee},sequenceArray:function(){return tr},stringifyJSON:function(){return tf},swap:function(){return eY},tap:function(){return eM},throwError:function(){return ep},toError:function(){return eQ},toUnion:function(){return eJ},traverse:function(){return Q},traverseArray:function(){return tn},traverseArrayWithIndex:function(){return tt},traverseReadonlyArrayWithIndex:function(){return te},traverseReadonlyNonEmptyArrayWithIndex:function(){return e6},tryCatch:function(){return eH},tryCatchK:function(){return eZ}});var r=n(46111),i=n(42925),o=n(88543),u=n(56661),a=n(25162),c=n(42275),f=n(67560),l=n(97963),p=n(34219),d=n(76511),s=l.t$,h=l.F2,m=(0,c.dual)(2,function(e,t){return ev(e)?e:t(e.right)}),v=function(e,t){return(0,c.pipe)(e,L(t))},y=function(e,t){return(0,c.pipe)(e,Y(t))},_=function(e,t,n){return(0,c.pipe)(e,Z(t,n))},b=function(e){return function(t,n){var r=$(e);return(0,c.pipe)(t,r(n))}},S=function(e,t,n){return(0,c.pipe)(e,X(t,n))},T=function(e){var t=Q(e);return function(e,n){return(0,c.pipe)(e,t(n))}},I=function(e,t,n){return(0,c.pipe)(e,en(t,n))},x=function(e,t){return(0,c.pipe)(e,er(t))},w=function(e,t){return(0,c.pipe)(e,eu(t))},O=function(e,t){return(0,c.pipe)(e,ec(t))},R=function(e,t){return(0,u.tailRec)(t(e),function(e){return ev(e)?h(s(e.left)):ev(e.right)?s(t(e.right.left)):h(h(e.right.right))})},C="Either",M=function(e,t){return{show:function(n){return ev(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},E=function(e,t){return{equals:function(n,r){return n===r||(ev(n)?ev(r)&&e.equals(n.left,r.left):ey(r)&&t.equals(n.right,r.right))}}},k=function(e){return{concat:function(t,n){return ev(n)?t:ev(t)?n:h(e.concat(t.right,n.right))}}},P=function(e){var t=s(e.empty);return{URI:C,_E:void 0,compact:function(e){return ev(e)?e:"None"===e.right._tag?t:h(e.right.value)},separate:function(e){return ev(e)?(0,p.separated)(e,e):ev(e.right)?(0,p.separated)(h(e.right.left),t):(0,p.separated)(t,h(e.right.right))}}},F=function(e){var t,n=s(e.empty),r=P(e),i=r.compact;return{URI:C,_E:void 0,map:v,compact:i,separate:r.separate,filter:function(e,t){return ev(e)?e:t(e.right)?e:n},filterMap:function(e,t){if(ev(e))return e;var r=t(e.right);return"None"===r._tag?n:h(r.value)},partition:function(e,t){return ev(e)?(0,p.separated)(e,e):t(e.right)?(0,p.separated)(n,h(e.right)):(0,p.separated)(h(e.right),n)},partitionMap:function(e,t){if(ev(e))return(0,p.separated)(e,e);var r=t(e.right);return ev(r)?(0,p.separated)(h(r.left),n):(0,p.separated)(n,h(r.right))}}},W=function(e){var t=F(e),n=P(e);return{URI:C,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:T,sequence:ee,reduce:_,foldMap:b,reduceRight:S,wither:(0,d.witherDefault)(et,n),wilt:(0,d.wiltDefault)(et,n)}},D=function(e){return{URI:C,_E:void 0,map:v,ap:function(t,n){return ev(t)?ev(n)?s(e.concat(t.left,n.left)):t:ev(n)?n:h(t.right(n.right))},of:q}},N=function(e){return{URI:C,_E:void 0,map:v,alt:function(t,n){if(ey(t))return t;var r=n();return ev(r)?s(e.concat(t.left,r.left)):r}}},L=function(e){return function(t){return ev(t)?t:h(e(t.right))}},A={URI:C,map:v},j=(0,c.dual)(2,(0,f.as)(A)),U=(0,f.asUnit)(A),q=h,G={URI:C,of:q},B=function(e){return function(t){return ev(t)?t:ev(e)?e:h(t.right(e.right))}},Y=B,V={URI:C,map:v,ap:y},K={URI:C,map:v,ap:y,of:q},z={URI:C,map:v,ap:y,chain:m},H={URI:C,map:v,ap:y,of:q,chain:m},Z=function(e,t){return function(n){return ev(n)?e:t(e,n.right)}},$=function(e){return function(t){return function(n){return ev(n)?e.empty:t(n.right)}}},X=function(e,t){return function(n){return ev(n)?e:t(n.right,e)}},J={URI:C,reduce:_,foldMap:b,reduceRight:S},Q=function(e){return function(t){return function(n){return ev(n)?e.of(s(n.left)):e.map(t(n.right),h)}}},ee=function(e){return function(t){return ev(t)?e.of(s(t.left)):e.map(t.right,h)}},et={URI:C,map:v,reduce:_,foldMap:b,reduceRight:S,traverse:T,sequence:ee},en=function(e,t){return function(n){return ev(n)?s(e(n.left)):h(t(n.right))}},er=function(e){return function(t){return ev(t)?s(e(t.left)):t}},ei={URI:C,bimap:I,mapLeft:x},eo=function(e){return function(t){return ev(t)?e():t}},eu=eo,ea={URI:C,map:v,alt:w},ec=function(e){return function(t){return ev(t)?t:h(e(t))}},ef={URI:C,map:v,extend:O},el={URI:C,map:v,ap:y,chain:m,chainRec:R},ep=s,ed={URI:C,map:v,ap:y,of:q,chain:m,throwError:ep},es={URI:C,fromEither:c.identity},eh=(0,a.fromPredicate)(es),em=(0,a.fromOption)(es),ev=l.nM,ey=l.tO,eg=function(e,t){return function(n){return ev(n)?e(n.left):t(n.right)}},e_=eg,eb=eg,eS=eb,eT=function(e){return function(t){return ev(t)?e(t.left):t.right}},eI=eT,ex=(0,f.flap)(A),ew=(0,i.apFirst)(V),eO=ew,eR=(0,i.apSecond)(V),eC=eR,eM=(0,c.dual)(2,o.tap(z)),eE=m(c.identity),ek=eE,eP=ec(c.identity),eF=(0,a.fromOptionK)(es),eW=(0,a.chainOptionK)(es,z),eD=eW,eN={fromEither:es.fromEither},eL=l.uL(eN),eA=l.WE(eN),ej={flatMap:m},eU=l.ny(eN,ej),eq=l.hU(eN,ej),eG=(0,a.filterOrElse)(es,z),eB=eG,eY=function(e){return ev(e)?h(e.left):s(e.right)},eV=function(e){return function(t){return ev(t)?e(t.left):t}},eK=eV,ez=function(e){return function(t){return null==t?s(e):h(t)}},eH=function(e,t){try{return h(e())}catch(n){return s(t(n))}},eZ=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return eH(function(){return e.apply(void 0,n)},t)}},e$=function(e){var t=ez(e);return function(e){return(0,c.flow)(e,t)}},eX=function(e){var t=e$(e);return function(e){return m(t(e))}},eJ=e_(c.identity,c.identity);function eQ(e){return e instanceof Error?e:Error(String(e))}var e0=function(e){return function(t){return!ev(t)&&e(t.right)}},e1=q(l.F4),e2=(0,f.bindTo)(A),e8=(0,f.let)(A),e4=o.bind(z),e3=e4,e5=(0,i.apS)(V),e7=e5,e9=q(l.Xl),e6=function(e){return function(t){var n=e(0,l.YM(t));if(ev(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i]);if(ev(o))return o;r.push(o.right)}return h(r)}},te=function(e){var t=e6(e);return function(e){return l.Od(e)?t(e):e9}},tt=te,tn=function(e){return te(function(t,n){return e(n)})},tr=tn(c.identity),ti=m,to=m,tu=eM,ta=eM;function tc(e,t){return eH(function(){return JSON.parse(e)},t)}var tf=function(e,t){return eH(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tl={URI:C,map:v,of:q,ap:y,chain:m,reduce:_,foldMap:b,reduceRight:S,traverse:T,sequence:ee,bimap:I,mapLeft:x,alt:w,extend:O,chainRec:R,throwError:ep},tp=(0,i.getApplySemigroup)(V),td=(0,r.getApplicativeMonoid)(K),ts=function(e,t){return(0,i.getApplySemigroup)(D(e))(t)},th=function(e,t){return(0,r.getApplicativeMonoid)(D(e))(t)};function tm(e){var t=D(e).ap,n=N(e).alt;return{URI:C,_E:void 0,map:v,of:q,chain:m,bimap:I,mapLeft:x,reduce:_,foldMap:b,reduceRight:S,extend:O,traverse:T,sequence:ee,chainRec:R,throwError:ep,ap:t,alt:n}}},47797:function(e,t,n){n.r(t),n.d(t,{URI:function(){return i},getMonoid:function(){return u},getSemigroup:function(){return o}});var r=n(42275),i="Endomorphism",o=function(){return{concat:function(e,t){return(0,r.flow)(e,t)}}},u=function(){return{concat:o().concat,empty:r.identity}}},65191:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return y},eqBoolean:function(){return _},eqDate:function(){return T},eqNumber:function(){return S},eqStrict:function(){return f},eqString:function(){return b},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return m},getTupleEq:function(){return h},strictEqual:function(){return v},struct:function(){return o},tuple:function(){return u}});var r=n(42275),i=function(e){return{equals:function(t,n){return t===n||e(t,n)}}},o=function(e){return i(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})},u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})},a=function(e){return function(t){return i(function(n,r){return t.equals(e(n),e(r))})}},c="Eq",f={equals:function(e,t){return e===t}},l={equals:function(){return!0}},p=function(){return{concat:function(e,t){return i(function(n,r){return e.equals(n,r)&&t.equals(n,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(e,t){return(0,r.pipe)(e,a(t))}},h=u,m=o,v=f.equals,y=s,_=f,b=f,S=f,T={equals:function(e,t){return e.valueOf()===t.valueOf()}}},25162:function(e,t,n){n.r(t),n.d(t,{chainEitherK:function(){return p},chainFirstEitherK:function(){return d},chainOptionK:function(){return f},filterOrElse:function(){return s},fromEitherK:function(){return l},fromOption:function(){return u},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return h}});var r=n(88543),i=n(42275),o=n(97963);function u(e){return function(t){return function(n){return e.fromEither(o.Wi(n)?o.t$(t()):o.F2(n.value))}}}function a(e){return function(t,n){return function(r){return e.fromEither(t(r)?o.F2(r):o.t$(n(r)))}}}function c(e){var t=u(e);return function(e){var n=t(e);return function(e){return(0,i.flow)(e,n)}}}function f(e,t){var n=c(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}}function l(e){return function(t){return(0,i.flow)(t,e.fromEither)}}function p(e,t){var n=l(e);return function(e){return function(r){return t.chain(r,n(e))}}}function d(e,t){var n=h(e,t);return function(e){return function(t){return n(t,e)}}}function s(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?o.F2(t):o.t$(r(t)))})}}}function h(e,t){var n=l(e),i=(0,r.tap)(t);return function(e,t){return i(e,n(t))}}},67560:function(e,t,n){n.r(t),n.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return u},flap:function(){return o},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=n(42275);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}}function u(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}}function a(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}}function c(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}}function f(e){return function(t,n){return e.map(t,function(){return n})}}function l(e){var t=f(e);return function(e){return t(e,void 0)}}},76113:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return a},endo:function(){return u},filterFirst:function(){return i},filterSecond:function(){return o},reverse:function(){return r}});var r=function(e){return{concat:function(t,n){return e.concat(n,t)}}},i=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}},o=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}},u=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}},a=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}}},55116:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return eb},Filterable:function(){return eS},Functor:function(){return eg},URI:function(){return en},collect:function(){return _},compact:function(){return H},deleteAt:function(){return I},difference:function(){return ew},elem:function(){return m},empty:function(){return eO},filter:function(){return Z},filterMap:function(){return $},filterMapWithIndex:function(){return L},filterWithIndex:function(){return A},flap:function(){return e_},foldMap:function(){return el},foldMapWithIndex:function(){return eh},fromFoldable:function(){return F},getDifferenceMagma:function(){return eu},getEq:function(){return E},getFilterableWithIndex:function(){return ea},getFoldable:function(){return ed},getFoldableWithIndex:function(){return ev},getIntersectionSemigroup:function(){return eo},getMonoid:function(){return k},getShow:function(){return p},getTraversableWithIndex:function(){return ey},getUnionMonoid:function(){return ei},getUnionSemigroup:function(){return er},getWitherable:function(){return ec},insertAt:function(){return eR},intersection:function(){return ex},isEmpty:function(){return s},isSubmap:function(){return M},keys:function(){return v},lookup:function(){return C},lookupWithKey:function(){return R},map:function(){return X},mapWithIndex:function(){return J},map_:function(){return eC},member:function(){return h},modifyAt:function(){return w},partition:function(){return Q},partitionMap:function(){return ee},partitionMapWithIndex:function(){return D},partitionWithIndex:function(){return N},pop:function(){return O},reduce:function(){return ef},reduceRight:function(){return ep},reduceRightWithIndex:function(){return em},reduceWithIndex:function(){return es},separate:function(){return et},singleton:function(){return P},size:function(){return d},toArray:function(){return b},toUnfoldable:function(){return S},union:function(){return eI},updateAt:function(){return x},upsertAt:function(){return T},values:function(){return y}});var r=n(42275),i=n(67560),o=n(97963),u=n(20492),a=n(13512),c=n(34219),f=n(76511),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,h=a.member,m=a.elem,v=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},y=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function _(e){var t=v(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}function b(e){return _(e)(function(e,t){return[e,t]})}function S(e,t){var n=b(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?o.G([r[e],e+1]):o.YP})}}var T=function(e){var t=R(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(o.Wi(i)){var u=new Map(t);return u.set(e,n),u}if(i.value[1]!==n){var u=new Map(t);return u.set(i.value[0],n),u}return t}}},I=function(e){var t=R(e);return function(e){return function(n){var r=t(e,n);if(o.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},x=function(e){var t=w(e);return function(e,n){return t(e,function(){return n})}},w=function(e){var t=R(e);return function(e,n){return function(r){var i=t(e,r);if(o.Wi(i))return o.YP;var u=new Map(r);return u.set(i.value[0],n(i.value[1])),o.G(u)}}};function O(e){var t=C(e),n=I(e);return function(e){var i=n(e);return function(n){return(0,r.pipe)(t(e,n),u.map(function(e){return[e,i(n)]}))}}}function R(e){return function(t,n){if(void 0===n){var r,i=R(e);return function(e){return i(t,e)}}for(var u=n.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return o.G([c,f])}return o.YP}}var C=a.lookup,M=a.isSubmap,E=a.getEq;function k(e,t){var n=R(e);return{concat:function(e,r){if(s(e))return r;if(s(r))return e;for(var i,u=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);o.pC(p)?u.set(p.value[0],t.concat(p.value[1],l)):u.set(f,l)}return u},empty:new Map}}var P=function(e,t){return new Map([[e,t]])};function F(e,t,n){return function(r){var i=R(e);return n.reduce(r,new Map,function(e,n){var r=n[0],u=n[1],a=i(r,e);return o.pC(a)?e.set(a.value[0],t.concat(a.value[1],u)):e.set(r,u),e})}}var W=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},D=function(e){return function(t){for(var n,r=new Map,i=new Map,u=t.entries();!(n=u.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function N(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var L=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var u=n.value,a=u[0],c=e(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function A(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var j=function(e,t){return W(e,function(e,n){return t(n)})},U=function(e,t){return Y(e,function(e,n){return t(n)})},q=function(e,t){return V(e,function(e,n){return t(n)})},G=function(e,t){return K(e,function(e,n){return t(n)})},B=function(e,t){return z(e,function(e,n){return t(n)})},Y=function(e,t){return(0,r.pipe)(e,A(t))},V=function(e,t){return(0,r.pipe)(e,L(t))},K=function(e,t){return(0,r.pipe)(e,N(t))},z=function(e,t){return(0,r.pipe)(e,D(t))},H=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,u=i[0],a=i[1];o.pC(a)&&n.set(u,a.value)}return n},Z=function(e){return function(t){return U(t,e)}},$=function(e){return function(t){return q(t,e)}},X=function(e){return function(t){return j(t,e)}},J=function(e){return function(t){return W(t,e)}},Q=function(e){return function(t){return G(t,e)}},ee=function(e){return function(t){return B(t,e)}},et=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var u=t.value,a=u[0],f=u[1];o.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},en="Map",er=function(e,t){var n=eI(e,t);return{concat:function(e,t){return n(t)(e)}}},ei=function(e,t){return{concat:er(e,t).concat,empty:new Map}},eo=function(e,t){var n=ex(e,t);return{concat:function(e,t){return n(t)(e)}}},eu=function(e){return function(){var t=ew(e);return{concat:function(e,n){return t(n)(e)}}}};function ea(){return{URI:en,_E:void 0,map:j,mapWithIndex:W,compact:H,separate:et,filter:U,filterMap:q,partition:G,partitionMap:B,partitionMapWithIndex:z,partitionWithIndex:K,filterMapWithIndex:V,filterWithIndex:Y}}function ec(e){var t=ey(e);return{URI:en,_E:void 0,map:j,compact:H,separate:et,filter:U,filterMap:q,partition:G,partitionMap:B,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:W,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,eb),wither:(0,f.witherDefault)(t,eb)}}var ef=a.reduce,el=a.foldMap,ep=a.reduceRight,ed=function(e){return l(l({},a.getFoldable(e)),{URI:en})},es=a.reduceWithIndex,eh=a.foldMapWithIndex,em=a.reduceRightWithIndex,ev=function(e){return l(l({},a.getFoldableWithIndex(e)),{URI:en})},ey=function(e){var t=ev(e),n=v(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}},i=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},o=function(e){var t=r(e);return function(e){return t(e,function(e,t){return t})}};return{URI:en,_E:void 0,map:j,mapWithIndex:W,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:o,traverseWithIndex:r}},eg={URI:en,map:j},e_=(0,i.flap)(eg),eb={URI:en,compact:H,separate:et},eS={URI:en,map:j,compact:H,separate:et,filter:U,filterMap:q,partition:G,partitionMap:B},eT=function(e){return new Map(e)},eI=function(e,t){var n=a.union(e,t);return function(e){return function(t){return s(t)?eT(e):s(e)?eT(t):n(e)(t)}}},ex=function(e,t){var n=a.intersection(e,t);return function(e){return function(t){return s(t)||s(e)?new Map:n(e)(t)}}},ew=function(e){var t=a.difference(e);return function(e){return function(n){return s(n)?eT(e):s(e)?eT(n):t(e)(n)}}},eO=new Map,eR=T,eC=eS},96576:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return d},fold:function(){return b},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return x},getFunctionMonoid:function(){return I},getJoinMonoid:function(){return y},getMeetMonoid:function(){return _},getStructMonoid:function(){return m},getTupleMonoid:function(){return h},max:function(){return c},min:function(){return a},monoidAll:function(){return S},monoidAny:function(){return T},monoidProduct:function(){return R},monoidString:function(){return w},monoidSum:function(){return O},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=n(47797),i=n(42275),o=n(97963),u=n(3291),a=function(e){return{concat:u.min(e).concat,empty:e.top}},c=function(e){return{concat:u.max(e).concat,empty:e.bottom}},f=function(e){return{concat:u.reverse(e).concat,empty:e.empty}},l=function(e){var t={};for(var n in e)o.e$.call(e,n)&&(t[n]=e[n].empty);return{concat:u.struct(e).concat,empty:t}},p=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:u.tuple.apply(u,e).concat,empty:e.map(function(e){return e.empty})}},d=function(e){return u.concatAll(e)(e.empty)},s={concat:u.semigroupVoid.concat,empty:void 0},h=p,m=l,v=f,y=c,_=a,b=d,S={concat:u.semigroupAll.concat,empty:!0},T={concat:u.semigroupAny.concat,empty:!1},I=i.getMonoid,x=function(){return f((0,r.getMonoid)())},w={concat:u.semigroupString.concat,empty:""},O={concat:u.semigroupSum.concat,empty:0},R={concat:u.semigroupProduct.concat,empty:1}},43586:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eH},Applicative:function(){return eU},Apply:function(){return eL},Chain:function(){return eq},Comonad:function(){return eZ},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eV},Functor:function(){return eF},FunctorWithIndex:function(){return eN},Monad:function(){return eB},Pointed:function(){return eD},Traversable:function(){return eK},TraversableWithIndex:function(){return ez},URI:function(){return eC},alt:function(){return ed},altW:function(){return ep},ap:function(){return es},apFirst:function(){return eA},apS:function(){return e0},apSecond:function(){return ej},append:function(){return v},appendW:function(){return m},bind:function(){return eQ},bindTo:function(){return eX},chain:function(){return to},chainFirst:function(){return eG},chainWithIndex:function(){return H},chop:function(){return Z},chunksOf:function(){return X},concat:function(){return P},concatAll:function(){return e7},concatW:function(){return k},cons:function(){return tp},copy:function(){return U},duplicate:function(){return ev},extend:function(){return em},extract:function(){return eR},filter:function(){return ta},filterWithIndex:function(){return tc},flap:function(){return eW},flatMap:function(){return eh},flatten:function(){return ey},fold:function(){return th},foldMap:function(){return z},foldMapWithIndex:function(){return K},fromArray:function(){return w},fromReadonlyNonEmptyArray:function(){return x},getEq:function(){return ek},getSemigroup:function(){return eE},getShow:function(){return eM},getUnionSemigroup:function(){return eP},group:function(){return W},groupBy:function(){return D},groupSort:function(){return tu},head:function(){return e1},init:function(){return e4},insertAt:function(){return L},intercalate:function(){return ti},intersperse:function(){return V},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return e8},let:function(){return eJ},makeBy:function(){return O},map:function(){return eg},mapWithIndex:function(){return e_},matchLeft:function(){return e9},matchRight:function(){return e6},max:function(){return e5},min:function(){return e3},modifyAt:function(){return j},modifyHead:function(){return te},modifyLast:function(){return tn},nonEmptyArray:function(){return tm},of:function(){return q},prepend:function(){return h},prependAll:function(){return Y},prependToAll:function(){return ts},prependW:function(){return s},range:function(){return C},reduce:function(){return eb},reduceRight:function(){return eT},reduceRightWithIndex:function(){return eI},reduceWithIndex:function(){return eS},replicate:function(){return R},reverse:function(){return F},rotate:function(){return I},sequence:function(){return ew},snoc:function(){return td},sort:function(){return N},sortBy:function(){return S},splitAt:function(){return $},tail:function(){return e2},traverse:function(){return ex},traverseWithIndex:function(){return eO},unappend:function(){return E},uncons:function(){return tf},union:function(){return T},uniq:function(){return b},unprepend:function(){return M},unsafeInsertAt:function(){return y},unsafeUpdateAt:function(){return _},unsnoc:function(){return tl},unzip:function(){return B},updateAt:function(){return A},updateHead:function(){return tt},updateLast:function(){return tr},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:G(t,n,function(e,t){return[e,t]})}},zipWith:function(){return G}});var r=n(42925),i=n(88543),o=n(42275),u=n(67560),a=n(97963),c=n(5586),f=n(28350),l=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},p=function(e){return e.length>0},d=function(e,t){return e<0||e>=t.length},s=function(e){return function(t){return l([e],t,!0)}},h=s,m=function(e){return function(t){return l(l([],t,!0),[e],!1)}},v=m,y=function(e,t,n){if(p(n)){var r=x(n);return r.splice(e,0,t),r}return[t]},_=function(e,t,n){var r=x(n);return r[e]=t,r},b=function(e){return function(t){if(1===t.length)return U(t);for(var n=[e1(t)],r=e2(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},S=function(e){if(p(e)){var t=(0,c.getMonoid)();return N(e.reduce(t.concat,t.empty))}return U},T=function(e){var t=b(e);return function(e){return function(n){return t((0,o.pipe)(n,P(e)))}}},I=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(d(Math.abs(r),t)||0===r)return U(t);if(!(r<0))return I(r-n)(t);var i=$(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,P(u))}},x=a.r1,w=function(e){return p(e)?a.G(e):a.YP},O=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},R=function(e){return O(function(){return e})},C=function(e,t){return e<=t?O(function(t){return e+t})(t-e+1):[e]},M=function(e){return[e1(e),e2(e)]},E=function(e){return[e4(e),e8(e)]};function k(e){return function(t){return t.concat(e)}}function P(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var F=function(e){return l([e8(e)],e.slice(0,-1).reverse(),!0)};function W(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var D=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);a.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},N=function(e){return function(t){return t.slice().sort(e.compare)}},L=function(e,t){return function(n){return e<0||e>n.length?a.YP:a.G(y(e,t,n))}},A=function(e,t){return j(e,function(){return t})},j=function(e,t){return function(n){return d(e,n)?a.YP:a.G(_(e,t(n[e]),n))}},U=x,q=function(e){return[e]},G=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},B=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},Y=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},V=function(e){return function(t){var n=e2(t);return p(n)?(0,o.pipe)(n,Y(e),h(e1(t))):U(t)}},K=f.foldMapWithIndex,z=f.foldMap,H=function(e){return function(t){for(var n=x(e(0,e1(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},Z=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;p(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},$=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[U(t),[]]:[(0,o.pipe)(t.slice(1,n),h(e1(t))),t.slice(n)]}},X=function(e){return Z($(e))},J=function(e,t){return(0,o.pipe)(e,eg(t))},Q=function(e,t){return(0,o.pipe)(e,e_(t))},ee=function(e,t){return(0,o.pipe)(e,es(t))},et=function(e,t){return(0,o.pipe)(e,em(t))},en=function(e,t,n){return(0,o.pipe)(e,eb(t,n))},er=function(e){var t=z(e);return function(e,n){return(0,o.pipe)(e,t(n))}},ei=function(e,t,n){return(0,o.pipe)(e,eT(t,n))},eo=function(e){var t=ex(e);return function(e,n){return(0,o.pipe)(e,t(n))}},eu=function(e,t){return(0,o.pipe)(e,ed(t))},ea=function(e,t,n){return(0,o.pipe)(e,eS(t,n))},ec=function(e){var t=K(e);return function(e,n){return(0,o.pipe)(e,t(n))}},ef=function(e,t,n){return(0,o.pipe)(e,eI(t,n))},el=function(e){var t=eO(e);return function(e,n){return(0,o.pipe)(e,t(n))}},ep=function(e){return function(t){return(0,o.pipe)(t,k(e()))}},ed=ep,es=function(e){return eh(function(t){return(0,o.pipe)(e,eg(t))})},eh=(0,o.dual)(2,function(e,t){return(0,o.pipe)(e,H(function(e,n){return t(n,e)}))}),em=function(e){return function(t){for(var n=e2(t),r=[e(t)];p(n);)r.push(e(n)),n=e2(n);return r}},ev=em(o.identity),ey=eh(o.identity),eg=function(e){return e_(function(t,n){return e(n)})},e_=function(e){return function(t){for(var n=[e(0,e1(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},eb=f.reduce,eS=f.reduceWithIndex,eT=f.reduceRight,eI=f.reduceRightWithIndex,ex=function(e){var t=eO(e);return function(e){return t(function(t,n){return e(n)})}},ew=function(e){return eO(e)(function(e,t){return t})},eO=function(e){return function(t){return function(n){for(var r=e.map(t(0,e1(n)),q),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,o.pipe)(e,v(t))}}),t(i,n[i]));return r}}},eR=f.head,eC="NonEmptyArray",eM=f.getShow,eE=function(){return{concat:P}},ek=f.getEq,eP=function(e){var t=T(e);return{concat:function(e,n){return t(n)(e)}}},eF={URI:eC,map:J},eW=(0,u.flap)(eF),eD={URI:eC,of:q},eN={URI:eC,map:J,mapWithIndex:Q},eL={URI:eC,map:J,ap:ee},eA=(0,r.apFirst)(eL),ej=(0,r.apSecond)(eL),eU={URI:eC,map:J,ap:ee,of:q},eq={URI:eC,map:J,ap:ee,chain:eh},eG=(0,i.chainFirst)(eq),eB={URI:eC,map:J,ap:ee,of:q,chain:eh},eY={URI:eC,reduce:en,foldMap:er,reduceRight:ei},eV={URI:eC,reduce:en,foldMap:er,reduceRight:ei,reduceWithIndex:ea,foldMapWithIndex:ec,reduceRightWithIndex:ef},eK={URI:eC,map:J,reduce:en,foldMap:er,reduceRight:ei,traverse:eo,sequence:ew},ez={URI:eC,map:J,mapWithIndex:Q,reduce:en,foldMap:er,reduceRight:ei,traverse:eo,sequence:ew,reduceWithIndex:ea,foldMapWithIndex:ec,reduceRightWithIndex:ef,traverseWithIndex:el},eH={URI:eC,map:J,alt:eu},eZ={URI:eC,map:J,extend:et,extract:eR},e$=q(a.F4),eX=(0,u.bindTo)(eF),eJ=(0,u.let)(eF),eQ=(0,i.bind)(eq),e0=(0,r.apS)(eL),e1=f.head,e2=function(e){return e.slice(1)},e8=f.last,e4=function(e){return e.slice(0,-1)},e3=f.min,e5=f.max,e7=function(e){return function(t){return t.reduce(e.concat)}},e9=function(e){return function(t){return e(e1(t),e2(t))}},e6=function(e){return function(t){return e(e4(t),e8(t))}},te=function(e){return function(t){return l([e(e1(t))],e2(t),!0)}},tt=function(e){return te(function(){return e})},tn=function(e){return function(t){return(0,o.pipe)(e4(t),v(e(e8(t))))}},tr=function(e){return tn(function(){return e})},ti=f.intercalate,to=eh;function tu(e){var t=N(e),n=W(e);return function(e){return p(e)?n(t(e)):[]}}function ta(e){return tc(function(t,n){return e(n)})}var tc=function(e){return function(t){return w(t.filter(function(t,n){return e(n,t)}))}},tf=M,tl=E;function tp(e,t){return void 0===t?h(e):(0,o.pipe)(t,h(e))}var td=function(e,t){return(0,o.pipe)(e,v(t))},ts=Y,th=f.concatAll,tm={URI:eC,of:q,map:J,mapWithIndex:Q,ap:ee,chain:eh,extend:et,extract:eR,reduce:en,foldMap:er,reduceRight:ei,traverse:eo,sequence:ew,reduceWithIndex:ea,foldMapWithIndex:ec,reduceRightWithIndex:ef,traverseWithIndex:el,alt:eu}},20492:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return er},Alternative:function(){return ea},ApT:function(){return e9},Applicative:function(){return K},Apply:function(){return V},Chain:function(){return H},Compactable:function(){return es},Do:function(){return e8},Extend:function(){return ef},Filterable:function(){return eg},Foldable:function(){return Q},FromEither:function(){return eE},Functor:function(){return j},Monad:function(){return Z},MonadThrow:function(){return eC},Pointed:function(){return B},Traversable:function(){return eS},URI:function(){return F},Witherable:function(){return eO},Zero:function(){return eo},alt:function(){return en},altW:function(){return et},ap:function(){return Y},apFirst:function(){return eU},apS:function(){return e7},apSecond:function(){return eq},as:function(){return U},asUnit:function(){return q},bind:function(){return e5},bindTo:function(){return e4},chain:function(){return ti},chainEitherK:function(){return ez},chainFirst:function(){return to},chainFirstEitherK:function(){return eH},chainNullableK:function(){return eQ},compact:function(){return el},duplicate:function(){return eV},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}return!eP(r)&&t.equals(n,r.value)}}},exists:function(){return e2},extend:function(){return ec},filter:function(){return eh},filterMap:function(){return em},flap:function(){return ej},flatMap:function(){return z},flatten:function(){return eG},fold:function(){return eN},foldMap:function(){return X},foldW:function(){return eW},fromEither:function(){return eM},fromEitherK:function(){return eK},fromNullable:function(){return eZ},fromNullableK:function(){return eJ},fromPredicate:function(){return y},getApplyMonoid:function(){return tl},getApplySemigroup:function(){return tf},getEq:function(){return D},getFirstMonoid:function(){return tp},getLastMonoid:function(){return td},getLeft:function(){return _},getMonoid:function(){return L},getOrElse:function(){return eA},getOrElseW:function(){return eL},getOrd:function(){return N},getRefinement:function(){return tu},getRight:function(){return b},getShow:function(){return W},guard:function(){return eu},isNone:function(){return eP},isSome:function(){return ek},let:function(){return e3},map:function(){return A},mapNullable:function(){return ta},match:function(){return eD},matchW:function(){return eF},none:function(){return m},of:function(){return G},option:function(){return tc},orElse:function(){return ee},partition:function(){return ev},partitionMap:function(){return ey},reduce:function(){return $},reduceRight:function(){return J},separate:function(){return ed},sequence:function(){return eb},sequenceArray:function(){return tr},some:function(){return v},tap:function(){return eB},tapEither:function(){return eY},throwError:function(){return eR},toNullable:function(){return e0},toUndefined:function(){return e1},traverse:function(){return e_},traverseArray:function(){return tn},traverseArrayWithIndex:function(){return tt},traverseReadonlyArrayWithIndex:function(){return te},traverseReadonlyNonEmptyArrayWithIndex:function(){return e6},tryCatch:function(){return e$},tryCatchK:function(){return eX},wilt:function(){return ew},wither:function(){return ex},zero:function(){return ei}});var r=n(46111),i=n(42925),o=n(88543),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(88491),p=n(3291),d=n(34219),s=n(76511),h=n(28957),m=f.YP,v=f.G;function y(e){return function(t){return e(t)?v(t):m}}var _=function(e){return"Right"===e._tag?m:v(e.left)},b=function(e){return"Left"===e._tag?m:v(e.right)},S=function(e,t){return(0,a.pipe)(e,A(t))},T=function(e,t){return(0,a.pipe)(e,Y(t))},I=function(e,t,n){return(0,a.pipe)(e,$(t,n))},x=function(e){var t=X(e);return function(e,n){return(0,a.pipe)(e,t(n))}},w=function(e,t,n){return(0,a.pipe)(e,J(t,n))},O=function(e){var t=e_(e);return function(e,n){return(0,a.pipe)(e,t(n))}},R=function(e,t){return(0,a.pipe)(e,en(t))},C=function(e,t){return(0,a.pipe)(e,eh(t))},M=function(e,t){return(0,a.pipe)(e,em(t))},E=function(e,t){return(0,a.pipe)(e,ec(t))},k=function(e,t){return(0,a.pipe)(e,ev(t))},P=function(e,t){return(0,a.pipe)(e,ey(t))},F="Option",W=function(e){return{show:function(t){return eP(t)?"none":"some(".concat(e.show(t.value),")")}}},D=function(e){return{equals:function(t,n){return t===n||(eP(t)?eP(n):!eP(n)&&e.equals(t.value,n.value))}}},N=function(e){return{equals:D(e).equals,compare:function(t,n){return t===n?0:ek(t)?ek(n)?e.compare(t.value,n.value):1:-1}}},L=function(e){return{concat:function(t,n){return eP(t)?n:eP(n)?t:v(e.concat(t.value,n.value))},empty:m}},A=function(e){return function(t){return eP(t)?m:v(e(t.value))}},j={URI:F,map:S},U=(0,a.dual)(2,(0,c.as)(j)),q=(0,c.asUnit)(j),G=v,B={URI:F,of:G},Y=function(e){return function(t){return eP(t)?m:eP(e)?m:v(t.value(e.value))}},V={URI:F,map:S,ap:T},K={URI:F,map:S,ap:T,of:G},z=(0,a.dual)(2,function(e,t){return eP(e)?m:t(e.value)}),H={URI:F,map:S,ap:T,chain:z},Z={URI:F,map:S,ap:T,of:G,chain:z},$=function(e,t){return function(n){return eP(n)?e:t(e,n.value)}},X=function(e){return function(t){return function(n){return eP(n)?e.empty:t(n.value)}}},J=function(e,t){return function(n){return eP(n)?e:t(n.value,e)}},Q={URI:F,reduce:I,foldMap:x,reduceRight:w},ee=(0,a.dual)(2,function(e,t){return eP(e)?t():e}),et=ee,en=ee,er={URI:F,map:S,alt:R},ei=function(){return m},eo={URI:F,zero:ei},eu=(0,h.guard)(eo,B),ea={URI:F,map:S,ap:T,of:G,alt:R,zero:ei},ec=function(e){return function(t){return eP(t)?m:v(e(t))}},ef={URI:F,map:S,extend:E},el=z(a.identity),ep=(0,d.separated)(m,m),ed=function(e){return eP(e)?ep:(0,d.separated)(_(e.value),b(e.value))},es={URI:F,compact:el,separate:ed},eh=function(e){return function(t){return eP(t)?m:e(t.value)?t:m}},em=function(e){return function(t){return eP(t)?m:e(t.value)}},ev=function(e){return function(t){return(0,d.separated)(C(t,(0,l.not)(e)),C(t,e))}},ey=function(e){return(0,a.flow)(A(e),ed)},eg={URI:F,map:S,compact:el,separate:ed,filter:C,filterMap:M,partition:k,partitionMap:P},e_=function(e){return function(t){return function(n){return eP(n)?e.of(m):e.map(t(n.value),v)}}},eb=function(e){return function(t){return eP(t)?e.of(m):e.map(t.value,v)}},eS={URI:F,map:S,reduce:I,foldMap:x,reduceRight:w,traverse:O,sequence:eb},eT=(0,s.witherDefault)(eS,es),eI=(0,s.wiltDefault)(eS,es),ex=function(e){var t=eT(e);return function(e){return function(n){return t(n,e)}}},ew=function(e){var t=eI(e);return function(e){return function(n){return t(n,e)}}},eO={URI:F,map:S,reduce:I,foldMap:x,reduceRight:w,traverse:O,sequence:eb,compact:el,separate:ed,filter:C,filterMap:M,partition:k,partitionMap:P,wither:eT,wilt:eI},eR=function(){return m},eC={URI:F,map:S,ap:T,of:G,chain:z,throwError:eR},eM=b,eE={URI:F,fromEither:eM},ek=f.pC,eP=function(e){return"None"===e._tag},eF=function(e,t){return function(n){return eP(n)?e():t(n.value)}},eW=eF,eD=eF,eN=eD,eL=function(e){return function(t){return eP(t)?e():t.value}},eA=eL,ej=(0,c.flap)(j),eU=(0,i.apFirst)(V),eq=(0,i.apSecond)(V),eG=el,eB=(0,a.dual)(2,o.tap(H)),eY=(0,a.dual)(2,(0,u.tapEither)(eE,H)),eV=ec(a.identity),eK=(0,u.fromEitherK)(eE),ez=(0,u.chainEitherK)(eE,H),eH=eY,eZ=function(e){return null==e?m:v(e)},e$=function(e){try{return v(e())}catch(t){return m}},eX=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e$(function(){return e.apply(void 0,t)})}},eJ=function(e){return(0,a.flow)(e,eZ)},eQ=function(e){return function(t){return eP(t)?m:eZ(e(t.value))}},e0=eD(a.constNull,a.identity),e1=eD(a.constUndefined,a.identity),e2=function(e){return function(t){return!eP(t)&&e(t.value)}},e8=G(f.F4),e4=(0,c.bindTo)(j),e3=(0,c.let)(j),e5=o.bind(H),e7=(0,i.apS)(V),e9=G(f.Xl),e6=function(e){return function(t){var n=e(0,f.YM(t));if(eP(n))return m;for(var r=[n.value],i=1;i<t.length;i++){var o=e(i,t[i]);if(eP(o))return m;r.push(o.value)}return v(r)}},te=function(e){var t=e6(e);return function(e){return f.Od(e)?t(e):e9}},tt=te,tn=function(e){return te(function(t,n){return e(n)})},tr=tn(a.identity),ti=z,to=eB;function tu(e){return function(t){return ek(e(t))}}var ta=eQ,tc={URI:F,map:S,of:G,ap:T,chain:z,reduce:I,foldMap:x,reduceRight:w,traverse:O,sequence:eb,zero:ei,alt:R,extend:E,compact:el,separate:ed,filter:C,filterMap:M,partition:k,partitionMap:P,wither:eT,wilt:eI,throwError:eR},tf=(0,i.getApplySemigroup)(V),tl=(0,r.getApplicativeMonoid)(K),tp=function(){return L((0,p.first)())},td=function(){return L((0,p.last)())}},5586:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return x},clamp:function(){return I},contramap:function(){return f},equals:function(){return m},equalsDefault:function(){return o},fromCompare:function(){return u},geq:function(){return b},getDualOrd:function(){return O},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return w},gt:function(){return y},leq:function(){return _},lt:function(){return v},max:function(){return T},min:function(){return S},ord:function(){return R},ordBoolean:function(){return M},ordDate:function(){return P},ordNumber:function(){return k},ordString:function(){return E},reverse:function(){return c},trivial:function(){return h},tuple:function(){return a}});var r=n(65191),i=n(42275),o=function(e){return function(t,n){return t===n||0===e(t,n)}},u=function(e){return{equals:o(e),compare:function(t,n){return t===n?0:e(t,n)}}},a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})},c=function(e){return u(function(t,n){return e.compare(n,t)})},f=function(e){return function(t){return u(function(n,r){return t.compare(e(n),e(r))})}},l="Ord",p=function(){return{concat:function(e,t){return u(function(n,r){var i=e.compare(n,r);return 0!==i?i:t.compare(n,r)})}}},d=function(){return{concat:p().concat,empty:u(function(){return 0})}},s={URI:l,contramap:function(e,t){return(0,i.pipe)(e,f(t))}},h={equals:i.constTrue,compare:(0,i.constant)(0)},m=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}},v=function(e){return function(t,n){return -1===e.compare(t,n)}},y=function(e){return function(t,n){return 1===e.compare(t,n)}},_=function(e){return function(t,n){return 1!==e.compare(t,n)}},b=function(e){return function(t,n){return -1!==e.compare(t,n)}},S=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}},T=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}},I=function(e){var t=S(e),n=T(e);return function(e,r){return function(i){return n(t(i,r),e)}}},x=function(e){var t=v(e),n=y(e);return function(e,r){return function(i){return!(t(i,e)||n(i,r))}}},w=a,O=c,R=s,C={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},M=C,E=C,k=C,P=(0,i.pipe)(k,f(function(e){return e.valueOf()}))},88491:function(e,t,n){n.r(t),n.d(t,{Contravariant:function(){return l},URI:function(){return o},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return u},not:function(){return p},or:function(){return d}});var r=n(42275),i=function(e){return function(t){return(0,r.flow)(e,t)}},o="Predicate",u=function(){return{concat:function(e,t){return(0,r.pipe)(e,d(t))}}},a=function(){return{concat:u().concat,empty:r.constFalse}},c=function(){return{concat:function(e,t){return(0,r.pipe)(e,s(t))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:o,contramap:function(e,t){return(0,r.pipe)(e,i(t))}},p=function(e){return function(t){return!e(t)}},d=function(e){return function(t){return function(n){return t(n)||e(n)}}},s=function(e){return function(t){return function(n){return t(n)&&e(n)}}}},31583:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return tK},Alternative:function(){return tZ},Applicative:function(){return tq},Apply:function(){return tA},Chain:function(){return tG},ChainRecBreadthFirst:function(){return t7},ChainRecDepthFirst:function(){return t3},Compactable:function(){return tX},Do:function(){return nh},Extend:function(){return t$},Filterable:function(){return tJ},FilterableWithIndex:function(){return tQ},Foldable:function(){return t0},FoldableWithIndex:function(){return t1},FromEither:function(){return nn},Functor:function(){return tW},FunctorWithIndex:function(){return tL},Monad:function(){return tB},Pointed:function(){return tN},Traversable:function(){return t2},TraversableWithIndex:function(){return t8},URI:function(){return tx},Unfoldable:function(){return tV},Witherable:function(){return ne},Zero:function(){return tz},_chainRecBreadthFirst:function(){return e0},_chainRecDepthFirst:function(){return eQ},alt:function(){return e4},altW:function(){return e8},ap:function(){return e3},apFirst:function(){return tj},apS:function(){return ng},apSecond:function(){return tU},append:function(){return T},appendW:function(){return I},bind:function(){return ny},bindTo:function(){return nm},chain:function(){return n_},chainFirst:function(){return tY},chainRecBreadthFirst:function(){return t5},chainRecDepthFirst:function(){return t4},chainWithIndex:function(){return L},chop:function(){return eT},chunksOf:function(){return ex},compact:function(){return ti},comprehension:function(){return eO},concat:function(){return eC},concatW:function(){return eR},cons:function(){return nS},deleteAt:function(){return ec},difference:function(){return ek},dropLeft:function(){return X},dropLeftWhile:function(){return Q},dropRight:function(){return J},duplicate:function(){return tp},elem:function(){return e_},empty:function(){return nf},every:function(){return nl},exists:function(){return nd},extend:function(){return tl},filter:function(){return tt},filterE:function(){return nt},filterMap:function(){return tr},filterMapWithIndex:function(){return tn},filterWithIndex:function(){return tf},findFirst:function(){return et},findFirstMap:function(){return en},findIndex:function(){return ee},findLast:function(){return er},findLastIndex:function(){return eo},findLastMap:function(){return ei},flap:function(){return tD},flatMap:function(){return e5},flatten:function(){return e7},foldLeft:function(){return F},foldMap:function(){return th},foldMapWithIndex:function(){return td},foldRight:function(){return N},fromArray:function(){return nc},fromEither:function(){return C},fromEitherK:function(){return nr},fromOption:function(){return R},fromOptionK:function(){return ew},fromPredicate:function(){return O},getDifferenceMagma:function(){return tF},getEq:function(){return tC},getIntersectionSemigroup:function(){return tP},getMonoid:function(){return tR},getOrd:function(){return tM},getSemigroup:function(){return tO},getShow:function(){return tw},getUnionMonoid:function(){return tk},getUnionSemigroup:function(){return tE},guard:function(){return tH},head:function(){return G},init:function(){return V},insertAt:function(){return eu},intercalate:function(){return ns},intersection:function(){return eE},intersperse:function(){return ey},isEmpty:function(){return y},isNonEmpty:function(){return _},isOutOfBound:function(){return q},last:function(){return B},lefts:function(){return ed},let:function(){return nv},lookup:function(){return function e(t,n){return void 0===n?function(n){return e(t,n)}:q(t,n)?f.YP:f.G(n[t])}},makeBy:function(){return x},map:function(){return e9},mapWithIndex:function(){return e6},match:function(){return E},matchLeft:function(){return P},matchLeftW:function(){return k},matchRight:function(){return D},matchRightW:function(){return W},matchW:function(){return M},modifyAt:function(){return ef},of:function(){return e1},partition:function(){return to},partitionMap:function(){return ta},partitionMapWithIndex:function(){return tc},partitionWithIndex:function(){return tu},prepend:function(){return b},prependAll:function(){return ev},prependToAll:function(){return nI},prependW:function(){return S},range:function(){return nb},readonlyArray:function(){return nx},reduce:function(){return ts},reduceRight:function(){return tv},reduceRightWithIndex:function(){return ty},reduceWithIndex:function(){return tm},replicate:function(){return w},reverse:function(){return el},rights:function(){return ep},rotate:function(){return eg},scanLeft:function(){return A},scanRight:function(){return j},separate:function(){return te},sequence:function(){return t_},size:function(){return U},snoc:function(){return nT},some:function(){return np},sort:function(){return es},sortBy:function(){return eS},spanLeft:function(){return $},splitAt:function(){return eI},tail:function(){return Y},takeLeft:function(){return K},takeLeftWhile:function(){return H},takeRight:function(){return z},toArray:function(){return na},traverse:function(){return tg},traverseWithIndex:function(){return tb},unfold:function(){return tI},union:function(){return eM},uniq:function(){return eb},unsafeDeleteAt:function(){return nu},unsafeInsertAt:function(){return ni},unsafeUpdateAt:function(){return no},unzip:function(){return em},updateAt:function(){return ea},wilt:function(){return tT},wither:function(){return tS},zero:function(){return e2},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:eh(t,n,function(e,t){return[e,t]})}},zipWith:function(){return eh}});var r=n(42925),i=n(88543),o=n(65191),u=n(25162),a=n(42275),c=n(67560),f=n(97963),l=n(76627),p=n(5586),d=n(28350),s=n(34219),h=n(76511),m=n(28957),v=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},y=function(e){return 0===e.length},_=d.isNonEmpty,b=d.prepend,S=d.prependW,T=d.append,I=d.appendW,x=function(e,t){return e<=0?nf:d.makeBy(t)(e)},w=function(e,t){return x(e,function(){return t})};function O(e){return function(t){return e(t)?[t]:nf}}var R=function(e){return f.Wi(e)?nf:[e.value]},C=function(e){return f.nM(e)?nf:[e.right]},M=function(e,t){return function(n){return _(n)?t(n):e()}},E=M,k=function(e,t){return function(n){return _(n)?t(d.head(n),d.tail(n)):e()}},P=k,F=P,W=function(e,t){return function(n){return _(n)?t(d.init(n),d.last(n)):e()}},D=W,N=D,L=function(e){return function(t){if(y(t))return nf;for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},A=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}},j=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}},U=function(e){return e.length},q=d.isOutOfBound,G=function(e){return _(e)?f.G(d.head(e)):f.YP},B=function(e){return _(e)?f.G(d.last(e)):f.YP},Y=function(e){return _(e)?f.G(d.tail(e)):f.YP},V=function(e){return _(e)?f.G(d.init(e)):f.YP},K=function(e){return function(t){return q(e,t)?t:0===e?nf:t.slice(0,e)}},z=function(e){return function(t){return q(e,t)?t:0===e?nf:t.slice(-e)}};function H(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}var o=n.length;return o===t.length?t:0===o?nf:n}}var Z=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};function $(e){return function(t){var n,r=eI(Z(t,e))(t);return{init:r[0],rest:r[1]}}}var X=function(e){return function(t){return e<=0||y(t)?t:e>=t.length?nf:t.slice(e,t.length)}},J=function(e){return function(t){return e<=0||y(t)?t:e>=t.length?nf:t.slice(0,t.length-e)}};function Q(e){return function(t){var n=Z(t,e);return 0===n?t:n===t.length?nf:t.slice(n)}}var ee=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(n);return f.YP}};function et(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return f.G(t[n]);return f.YP}}var en=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(f.pC(r))return r}return f.YP}};function er(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(t[n]);return f.YP}}var ei=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(f.pC(r))return r}return f.YP}},eo=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return f.G(n);return f.YP}},eu=function(e,t){return function(n){return e<0||e>n.length?f.YP:f.G(d.unsafeInsertAt(e,t,n))}},ea=function(e,t){return ef(e,function(){return t})},ec=function(e){return function(t){return q(e,t)?f.YP:f.G(nu(e,t))}},ef=function(e,t){return function(n){return q(e,n)?f.YP:f.G(no(e,t(n[e]),n))}},el=function(e){return e.length<=1?e:e.slice().reverse()},ep=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t},ed=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t},es=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}},eh=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r},em=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},ev=function(e){var t=d.prependAll(e);return function(e){return _(e)?t(e):e}},ey=function(e){var t=d.intersperse(e);return function(e){return _(e)?t(e):e}},eg=function(e){var t=d.rotate(e);return function(e){return _(e)?t(e):e}};function e_(e){return function(t,n){if(void 0===n){var r,i=e_(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}var eb=function(e){var t=d.uniq(e);return function(e){return _(e)?t(e):e}},eS=function(e){var t=d.sortBy(e);return function(e){return _(e)?t(e):e}},eT=function(e){var t=d.chop(e);return function(e){return _(e)?t(e):nf}},eI=function(e){return function(t){return e>=1&&_(t)?d.splitAt(e)(t):y(t)?[t,nf]:[nf,t]}},ex=function(e){var t=d.chunksOf(e);return function(e){return _(e)?t(e):nf}},ew=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return R(e.apply(void 0,t))}};function eO(e,t,n){void 0===n&&(n=function(){return!0});var r=function(e,i){return _(i)?e5(d.head(i),function(t){return r((0,a.pipe)(e,T(t)),d.tail(i))}):n.apply(void 0,e)?[t.apply(void 0,e)]:nf};return r(nf,e)}var eR=function(e){return function(t){return y(t)?e:y(e)?t:t.concat(e)}},eC=eR;function eM(e){var t=d.union(e);return function(n,r){if(void 0===r){var i=eM(e);return function(e){return i(e,n)}}return _(n)&&_(r)?t(r)(n):_(n)?n:r}}function eE(e){var t=e_(e);return function(n,r){if(void 0===r){var i=eE(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function ek(e){var t=e_(e);return function(n,r){if(void 0===r){var i=ek(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}var eP=function(e,t){return(0,a.pipe)(e,e9(t))},eF=function(e,t){return(0,a.pipe)(e,e6(t))},eW=function(e,t){return(0,a.pipe)(e,e3(t))},eD=function(e,t){return(0,a.pipe)(e,tt(t))},eN=function(e,t){return(0,a.pipe)(e,tr(t))},eL=function(e,t){return(0,a.pipe)(e,to(t))},eA=function(e,t){return(0,a.pipe)(e,ta(t))},ej=function(e,t){return(0,a.pipe)(e,tu(t))},eU=function(e,t){return(0,a.pipe)(e,tc(t))},eq=function(e,t){return(0,a.pipe)(e,e4(t))},eG=function(e,t,n){return(0,a.pipe)(e,ts(t,n))},eB=function(e){var t=th(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eY=function(e,t,n){return(0,a.pipe)(e,tv(t,n))},eV=function(e,t,n){return(0,a.pipe)(e,tm(t,n))},eK=function(e){var t=td(e);return function(e,n){return(0,a.pipe)(e,t(n))}},ez=function(e,t,n){return(0,a.pipe)(e,ty(t,n))},eH=function(e,t){return(0,a.pipe)(e,tn(t))},eZ=function(e,t){return(0,a.pipe)(e,tf(t))},e$=function(e,t){return(0,a.pipe)(e,tl(t))},eX=function(e){var t=tg(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eJ=function(e){var t=tb(e);return function(e,n){return(0,a.pipe)(e,t(n))}},eQ=function(e,t){return(0,a.pipe)(e,t4(t))},e0=function(e,t){return(0,a.pipe)(e,t5(t))},e1=d.of,e2=function(){return nf},e8=function(e){return function(t){return t.concat(e())}},e4=e8,e3=function(e){return e5(function(t){return(0,a.pipe)(e,e9(t))})},e5=(0,a.dual)(2,function(e,t){return(0,a.pipe)(e,L(function(e,n){return t(n,e)}))}),e7=e5(a.identity),e9=function(e){return function(t){return t.map(function(t){return e(t)})}},e6=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}},te=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,s.separated)(t,n)},tt=function(e){return function(t){return t.filter(e)}},tn=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);f.pC(i)&&n.push(i.value)}return n}},tr=function(e){return tn(function(t,n){return e(n)})},ti=tr(a.identity),to=function(e){return tu(function(t,n){return e(n)})},tu=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,s.separated)(n,r)}},ta=function(e){return tc(function(t,n){return e(n)})},tc=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,s.separated)(n,r)}},tf=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}},tl=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}},tp=tl(a.identity),td=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}},ts=function(e,t){return tm(e,function(e,n,r){return t(n,r)})},th=function(e){var t=td(e);return function(e){return t(function(t,n){return e(n)})}},tm=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}},tv=function(e,t){return ty(e,function(e,n,r){return t(n,r)})},ty=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},tg=function(e){var t=tb(e);return function(e){return t(function(t,n){return e(n)})}},t_=function(e){return function(t){return eG(t,e.of(e2()),function(t,n){return e.ap(e.map(t,function(e){return function(t){return(0,a.pipe)(e,T(t))}}),n)})}},tb=function(e){return function(t){return tm(e.of(e2()),function(n,r,i){return e.ap(e.map(r,function(e){return function(t){return(0,a.pipe)(e,T(t))}}),t(n,i))})}},tS=function(e){var t=t9(e);return function(e){return function(n){return t(n,e)}}},tT=function(e){var t=t6(e);return function(e){return function(n){return t(n,e)}}},tI=function(e,t){for(var n=[],r=e;;){var i=t(r);if(f.pC(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n},tx="ReadonlyArray",tw=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},tO=function(){return{concat:function(e,t){return y(e)?t:y(t)?e:e.concat(t)}}},tR=function(){return{concat:tO().concat,empty:nf}},tC=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},tM=function(e){return(0,p.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return l.Ord.compare(r,i)})},tE=function(e){var t=eM(e);return{concat:function(e,n){return t(n)(e)}}},tk=function(e){return{concat:tE(e).concat,empty:nf}},tP=function(e){var t=eE(e);return{concat:function(e,n){return t(n)(e)}}},tF=function(e){var t=ek(e);return{concat:function(e,n){return t(n)(e)}}},tW={URI:tx,map:eP},tD=(0,c.flap)(tW),tN={URI:tx,of:e1},tL={URI:tx,map:eP,mapWithIndex:eF},tA={URI:tx,map:eP,ap:eW},tj=(0,r.apFirst)(tA),tU=(0,r.apSecond)(tA),tq={URI:tx,map:eP,ap:eW,of:e1},tG={URI:tx,map:eP,ap:eW,chain:e5},tB={URI:tx,map:eP,ap:eW,of:e1,chain:e5},tY=(0,i.chainFirst)(tG),tV={URI:tx,unfold:tI},tK={URI:tx,map:eP,alt:eq},tz={URI:tx,zero:e2},tH=(0,m.guard)(tz,tN),tZ={URI:tx,map:eP,ap:eW,of:e1,alt:eq,zero:e2},t$={URI:tx,map:eP,extend:e$},tX={URI:tx,compact:ti,separate:te},tJ={URI:tx,map:eP,compact:ti,separate:te,filter:eD,filterMap:eN,partition:eL,partitionMap:eA},tQ={URI:tx,map:eP,mapWithIndex:eF,compact:ti,separate:te,filter:eD,filterMap:eN,partition:eL,partitionMap:eA,partitionMapWithIndex:eU,partitionWithIndex:ej,filterMapWithIndex:eH,filterWithIndex:eZ},t0={URI:tx,reduce:eG,foldMap:eB,reduceRight:eY},t1={URI:tx,reduce:eG,foldMap:eB,reduceRight:eY,reduceWithIndex:eV,foldMapWithIndex:eK,reduceRightWithIndex:ez},t2={URI:tx,map:eP,reduce:eG,foldMap:eB,reduceRight:eY,traverse:eX,sequence:t_},t8={URI:tx,map:eP,mapWithIndex:eF,reduce:eG,foldMap:eB,reduceRight:eY,reduceWithIndex:eV,foldMapWithIndex:eK,reduceRightWithIndex:ez,traverse:eX,sequence:t_,traverseWithIndex:eJ},t4=function(e){return function(t){for(var n=v([],e(t),!0),r=[];n.length>0;){var i=n.shift();f.nM(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}},t3={URI:tx,map:eP,ap:eW,chain:e5,chainRec:eQ},t5=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){f.nM(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}},t7={URI:tx,map:eP,ap:eW,chain:e5,chainRec:e0},t9=(0,h.witherDefault)(t2,tX),t6=(0,h.wiltDefault)(t2,tX),ne={URI:tx,map:eP,compact:ti,separate:te,filter:eD,filterMap:eN,partition:eL,partitionMap:eA,reduce:eG,foldMap:eB,reduceRight:eY,traverse:eX,sequence:t_,wither:t9,wilt:t6},nt=(0,h.filterE)(ne),nn={URI:tx,fromEither:C},nr=(0,u.fromEitherK)(nn),ni=d.unsafeInsertAt,no=function(e,t,n){return _(n)?d.unsafeUpdateAt(e,t,n):n},nu=function(e,t){var n=t.slice();return n.splice(e,1),n},na=function(e){return e.slice()},nc=function(e){return y(e)?nf:e.slice()},nf=d.empty;function nl(e){return function(t){return t.every(e)}}var np=function(e){return function(t){return t.some(e)}},nd=np,ns=function(e){var t=d.intercalate(e);return function(n){return E(function(){return e.empty},t(n))}},nh=e1(f.F4),nm=(0,c.bindTo)(tW),nv=(0,c.let)(tW),ny=(0,i.bind)(tG),ng=(0,r.apS)(tA),n_=e5,nb=d.range,nS=d.cons,nT=d.snoc,nI=ev,nx={URI:tx,compact:ti,separate:te,map:eP,ap:eW,of:e1,chain:e5,filter:eD,filterMap:eN,partition:eL,partitionMap:eA,mapWithIndex:eF,partitionMapWithIndex:eU,partitionWithIndex:ej,filterMapWithIndex:eH,filterWithIndex:eZ,alt:eq,zero:e2,unfold:tI,reduce:eG,foldMap:eB,reduceRight:eY,traverse:eX,sequence:t_,reduceWithIndex:eV,foldMapWithIndex:eK,reduceRightWithIndex:ez,traverseWithIndex:eJ,extend:e$,wither:t9,wilt:t6}},13512:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return ed},Filterable:function(){return es},Functor:function(){return ef},URI:function(){return er},collect:function(){return _},compact:function(){return Z},deleteAt:function(){return I},difference:function(){return eR},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i,o=e(t);return function(e){return o(n,e)}}for(var u=r.values();!(i=u.next()).done;){var a=i.value;if(t.equals(n,a))return!0}return!1}}},empty:function(){return E},filter:function(){return $},filterMap:function(){return X},filterMapWithIndex:function(){return A},filterWithIndex:function(){return j},flap:function(){return el},foldMap:function(){return em},foldMapWithIndex:function(){return e_},fromFoldable:function(){return W},fromMap:function(){return l},getDifferenceMagma:function(){return ea},getEq:function(){return k},getFilterableWithIndex:function(){return ec},getFoldable:function(){return ey},getFoldableWithIndex:function(){return eS},getFunctorWithIndex:function(){return ep},getIntersectionSemigroup:function(){return eu},getMonoid:function(){return P},getShow:function(){return d},getTraversable:function(){return eT},getTraversableWithIndex:function(){return eI},getUnionMonoid:function(){return eo},getUnionSemigroup:function(){return ei},getWitherable:function(){return ex},insertAt:function(){return eC},intersection:function(){return eO},isEmpty:function(){return h},isSubmap:function(){return M},keys:function(){return v},lookup:function(){return C},lookupWithKey:function(){return R},map:function(){return J},mapWithIndex:function(){return Q},member:function(){return m},modifyAt:function(){return w},partition:function(){return ee},partitionMap:function(){return et},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return L},pop:function(){return O},readonlyMap:function(){return eM},reduce:function(){return eh},reduceRight:function(){return ev},reduceRightWithIndex:function(){return eb},reduceWithIndex:function(){return eg},separate:function(){return en},singleton:function(){return F},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return b},toUnfoldable:function(){return S},union:function(){return ew},updateAt:function(){return x},upsertAt:function(){return T},values:function(){return y}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(20492),c=n(34219),f=n(76511),l=function(e){return new Map(e)};function p(e){return new Map(e)}function d(e,t){return{show:function(n){var r=[];return n.forEach(function(n,i){r.push("[".concat(e.show(i),", ").concat(t.show(n),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(e){return e.size},h=function(e){return 0===e.size};function m(e){var t=C(e);return function(n,r){if(void 0===r){var i=m(e);return function(e){return i(n,e)}}return u.pC(t(n,r))}}var v=function(e){return function(t){return Array.from(t.keys()).sort(e.compare)}},y=function(e){return function(t){return Array.from(t.values()).sort(e.compare)}};function _(e){var t=v(e);return function(e){return function(n){for(var r=[],i=t(n),o=0;o<i.length;o++){var u=i[o];r.push(e(u,n.get(u)))}return r}}}var b=function(e){return _(e)(function(e,t){return[e,t]})};function S(e,t){var n=b(e);return function(e){var r=n(e),i=r.length;return t.unfold(0,function(e){return e<i?u.G([r[e],e+1]):u.YP})}}var T=function(e){var t=R(e);return function(e,n){var r=t(e);return function(t){var i=r(t);if(u.Wi(i)){var o=new Map(t);return o.set(e,n),o}if(i.value[1]!==n){var o=new Map(t);return o.set(i.value[0],n),o}return t}}},I=function(e){var t=R(e);return function(e){return function(n){var r=t(e,n);if(u.pC(r)){var i=new Map(n);return i.delete(r.value[0]),i}return n}}},x=function(e){var t=w(e);return function(e,n){return t(e,function(){return n})}},w=function(e){var t=R(e);return function(e,n){return function(r){var i=t(e,r);if(u.Wi(i))return u.YP;var o=i.value,a=o[0],c=o[1],f=n(c);if(f===c)return u.G(r);var l=new Map(r);return l.set(a,f),u.G(l)}}};function O(e){var t=C(e),n=I(e);return function(e){var r=n(e);return function(n){return(0,i.pipe)(t(e,n),a.map(function(e){return[e,r(n)]}))}}}function R(e){return function(t,n){if(void 0===n){var r,i=R(e);return function(e){return i(t,e)}}for(var o=n.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(e.equals(c,t))return u.G([c,f])}return u.YP}}function C(e){var t=R(e);return function(n,r){if(void 0===r){var o=C(e);return function(e){return o(n,e)}}return(0,i.pipe)(t(n,r),a.map(function(e){return e[0],e[1]}))}}function M(e,t){var n=R(e);return function(r,i){if(void 0===i){var o,a=M(e,t);return function(e){return a(e,r)}}for(var c=r.entries();!(o=c.next()).done;){var f=o.value,l=f[0],p=f[1],d=n(l,i);if(u.Wi(d)||!e.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var E=new Map;function k(e,t){var n=M(e,t);return(0,r.fromEquals)(function(e,t){return n(e,t)&&n(t,e)})}function P(e,t){var n=R(e);return{concat:function(e,r){if(h(e))return r;if(h(r))return e;for(var i,o=new Map(e),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f,e);u.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:E}}var F=function(e,t){return new Map([[e,t]])};function W(e,t,n){return function(r){var i=R(e);return n.reduce(r,new Map,function(e,n){var r=n[0],o=n[1],a=i(r,e);return u.pC(a)?e.set(a.value[0],t.concat(a.value[1],o)):e.set(r,o),e})}}var D=function(e,t){for(var n,r=new Map,i=e.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];r.set(u,t(u,a))}return r},N=function(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var a=n.value,f=a[0],l=e(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function L(e){return function(t){for(var n,r=new Map,i=new Map,o=t.entries();!(n=o.next()).done;){var u=n.value,a=u[0],f=u[1];e(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var A=function(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,a=o[0],c=e(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function j(e){return function(t){for(var n,r=new Map,i=t.entries();!(n=i.next()).done;){var o=n.value,u=o[0],a=o[1];e(u,a)&&r.set(u,a)}return r}}var U=function(e,t){return D(e,function(e,n){return t(n)})},q=function(e,t){return V(e,function(e,n){return t(n)})},G=function(e,t){return K(e,function(e,n){return t(n)})},B=function(e,t){return z(e,function(e,n){return t(n)})},Y=function(e,t){return H(e,function(e,n){return t(n)})},V=function(e,t){return(0,i.pipe)(e,j(t))},K=function(e,t){return(0,i.pipe)(e,A(t))},z=function(e,t){return(0,i.pipe)(e,L(t))},H=function(e,t){return(0,i.pipe)(e,N(t))},Z=function(e){for(var t,n=new Map,r=e.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];u.pC(a)&&n.set(o,a.value)}return n},$=function(e){return function(t){return q(t,e)}},X=function(e){return function(t){return G(t,e)}},J=function(e){return function(t){return U(t,e)}},Q=function(e){return function(t){return D(t,e)}},ee=function(e){return function(t){return B(t,e)}},et=function(e){return function(t){return Y(t,e)}},en=function(e){for(var t,n=new Map,r=new Map,i=e.entries();!(t=i.next()).done;){var o=t.value,a=o[0],f=o[1];u.nM(f)?n.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(n,r)},er="ReadonlyMap",ei=function(e,t){var n=ew(e,t);return{concat:function(e,t){return n(t)(e)}}},eo=function(e,t){return{concat:ei(e,t).concat,empty:E}},eu=function(e,t){var n=eO(e,t);return{concat:function(e,t){return n(t)(e)}}},ea=function(e){return function(){var t=eR(e);return{concat:function(e,n){return t(n)(e)}}}};function ec(){return{URI:er,_E:void 0,map:U,mapWithIndex:D,compact:Z,separate:en,filter:q,filterMap:G,partition:B,partitionMap:Y,partitionMapWithIndex:H,partitionWithIndex:z,filterMapWithIndex:K,filterWithIndex:V}}var ef={URI:er,map:U},el=(0,o.flap)(ef),ep=function(){return{URI:er,_E:void 0,map:U,mapWithIndex:D}},ed={URI:er,compact:Z,separate:en},es={URI:er,map:U,compact:Z,separate:en,filter:q,filterMap:G,partition:B,partitionMap:Y},eh=function(e){var t=eg(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},em=function(e){var t=e_(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}},ev=function(e){var t=eb(e);return function(e,n){return t(e,function(e,t,r){return n(t,r)})}},ey=function(e){var t=eh(e),n=em(e),r=ev(e);return{URI:er,_E:void 0,reduce:function(e,n,r){return(0,i.pipe)(e,t(n,r))},foldMap:function(e){var t=n(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,i.pipe)(e,r(t,n))}}},eg=function(e){var t=v(e);return function(e,n){return function(r){for(var i=e,o=0,u=t(r);o<u.length;o++){var a=u[o];i=n(a,i,r.get(a))}return i}}},e_=function(e){var t=v(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=0,u=t(r);o<u.length;o++){var a=u[o];i=e.concat(i,n(a,r.get(a)))}return i}}}},eb=function(e){var t=v(e);return function(e,n){return function(r){for(var i=e,o=t(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=n(c,r.get(c),i)}return i}}},eS=function(e){var t=ey(e),n=eg(e),r=e_(e),o=eb(e);return{URI:er,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(e,t,r){return(0,i.pipe)(e,n(t,r))},foldMapWithIndex:function(e){var t=r(e);return function(e,n){return(0,i.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,i.pipe)(e,o(t,n))}}},eT=function(e){var t=eI(e),n=ey(e);return{URI:er,_E:void 0,map:U,reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,traverse:t.traverse,sequence:t.sequence}},eI=function(e){var t=eS(e),n=v(e),r=function(e){return function(t,r){for(var i=e.of(new Map),o=n(t),u=o.length,a=0;a<u;a++)!function(n){var u=o[n],a=t.get(u);i=e.ap(e.map(i,function(e){return function(t){return e.set(u,t)}}),r(u,a))}(a);return i}},o=function(e){var t=r(e);return function(e,n){return t(e,function(e,t){return n(t)})}},u=function(e){var t=r(e);return function(e){return t(e,i.SK)}};return{URI:er,_E:void 0,map:U,mapWithIndex:D,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:o,sequence:u,traverseWithIndex:r}};function ex(e){var t=eI(e);return{URI:er,_E:void 0,map:U,compact:Z,separate:en,filter:q,filterMap:G,partition:B,partitionMap:Y,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:D,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,ed),wither:(0,f.witherDefault)(t,ed)}}var ew=function(e,t){var n=C(e);return function(e){return function(r){if(h(r))return e;if(h(e))return r;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)?o.set(f,t.concat(l,p.value)):o.set(f,l)}for(var d=e.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=n(f)(o);u.Wi(p)&&o.set(f,l)}return o}}},eO=function(e,t){var n=C(e);return function(e){return function(r){if(h(r)||h(e))return E;for(var i,o=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=n(f)(e);u.pC(p)&&o.set(f,t.concat(l,p.value))}return o}}},eR=function(e){var t=m(e);return function(e){return function(n){if(h(n))return e;if(h(e))return n;for(var r,i=new Map,o=n.entries();!(r=o.next()).done;){var u=r.value,a=u[0],c=u[1];t(a)(e)||i.set(a,c)}for(var f=e.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];t(a)(n)||i.set(a,c)}return i}}},eC=T,eM={URI:er,map:U,compact:Z,separate:en,filter:q,filterMap:G,partition:B,partitionMap:Y}},28350:function(e,t,n){n.r(t),n.d(t,{Alt:function(){return eH},Applicative:function(){return eU},Apply:function(){return eL},Chain:function(){return eq},Comonad:function(){return eZ},Do:function(){return e$},Foldable:function(){return eY},FoldableWithIndex:function(){return eV},Functor:function(){return eF},FunctorWithIndex:function(){return eN},Monad:function(){return eB},Pointed:function(){return eD},Traversable:function(){return eK},TraversableWithIndex:function(){return ez},URI:function(){return eC},alt:function(){return el},altW:function(){return ef},ap:function(){return ep},apFirst:function(){return eA},apS:function(){return e0},apSecond:function(){return ej},append:function(){return _},appendW:function(){return y},bind:function(){return eQ},bindTo:function(){return eX},chain:function(){return to},chainFirst:function(){return eG},chainWithIndex:function(){return V},chop:function(){return K},chunksOf:function(){return H},concat:function(){return W},concatAll:function(){return e7},concatW:function(){return F},cons:function(){return tp},duplicate:function(){return eh},empty:function(){return d},extend:function(){return es},extract:function(){return eR},filter:function(){return ta},filterWithIndex:function(){return tc},flap:function(){return eW},flatMap:function(){return ed},flatten:function(){return em},fold:function(){return tm},foldMap:function(){return e_},foldMapWithIndex:function(){return eT},fromArray:function(){return P},fromReadonlyArray:function(){return O},getEq:function(){return ek},getSemigroup:function(){return eE},getShow:function(){return eM},getUnionSemigroup:function(){return eP},group:function(){return N},groupBy:function(){return L},groupSort:function(){return tu},head:function(){return e1},init:function(){return e4},insertAt:function(){return ts},intercalate:function(){return ti},intersperse:function(){return Y},isNonEmpty:function(){return s},isOutOfBound:function(){return h},last:function(){return e8},let:function(){return eJ},makeBy:function(){return R},map:function(){return ev},mapWithIndex:function(){return ey},matchLeft:function(){return e9},matchRight:function(){return e6},max:function(){return e5},min:function(){return e3},modifyAt:function(){return U},modifyHead:function(){return te},modifyLast:function(){return tn},of:function(){return ec},prepend:function(){return v},prependAll:function(){return B},prependToAll:function(){return th},prependW:function(){return m},range:function(){return M},readonlyNonEmptyArray:function(){return tv},reduce:function(){return eg},reduceRight:function(){return eb},reduceRightWithIndex:function(){return eI},reduceWithIndex:function(){return eS},replicate:function(){return C},reverse:function(){return D},rotate:function(){return w},sequence:function(){return ew},snoc:function(){return td},sort:function(){return A},sortBy:function(){return I},splitAt:function(){return z},tail:function(){return e2},traverse:function(){return ex},traverseWithIndex:function(){return eO},unappend:function(){return k},uncons:function(){return tf},union:function(){return x},uniq:function(){return T},unprepend:function(){return E},unsafeInsertAt:function(){return b},unsafeUpdateAt:function(){return S},unsnoc:function(){return tl},unzip:function(){return G},updateAt:function(){return j},updateHead:function(){return tt},updateLast:function(){return tr},zip:function(){return function e(t,n){return void 0===n?function(n){return e(n,t)}:q(t,n,function(e,t){return[e,t]})}},zipWith:function(){return q}});var r=n(42925),i=n(88543),o=n(65191),u=n(42275),a=n(67560),c=n(97963),f=n(5586),l=n(3291),p=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},d=c.Xl,s=c.Od,h=function(e,t){return e<0||e>=t.length},m=function(e){return function(t){return p([e],t,!0)}},v=m,y=function(e){return function(t){return p(p([],t,!0),[e],!1)}},_=y,b=function(e,t,n){if(s(n)){var r=c.r1(n);return r.splice(e,0,t),r}return[t]},S=function(e,t,n){if(n[e]===t)return n;var r=c.r1(n);return r[e]=t,r},T=function(e){return function(t){if(1===t.length)return t;for(var n=[e1(t)],r=e2(t),i=function(t){n.every(function(n){return!e.equals(n,t)})&&n.push(t)},o=0;o<r.length;o++)i(r[o]);return n}},I=function(e){if(s(e)){var t=(0,f.getMonoid)();return A(e.reduce(t.concat,t.empty))}return u.identity},x=function(e){var t=T(e);return function(e){return function(n){return t((0,u.pipe)(n,W(e)))}}},w=function(e){return function(t){var n=t.length,r=Math.round(e)%n;if(h(Math.abs(r),t)||0===r)return t;if(!(r<0))return w(r-n)(t);var i=z(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,W(o))}},O=function(e){return s(e)?c.G(e):c.YP},R=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}},C=function(e){return R(function(){return e})},M=function(e,t){return e<=t?R(function(t){return e+t})(t-e+1):[e]},E=function(e){return[e1(e),e2(e)]},k=function(e){return[e4(e),e8(e)]},P=function(e){return O(e.slice())};function F(e){return function(t){return t.concat(e)}}function W(e,t){return t?e.concat(t):function(t){return t.concat(e)}}var D=function(e){return 1===e.length?e:p([e8(e)],e.slice(0,-1).reverse(),!0)};function N(e){return function(t){var n=t.length;if(0===n)return d;for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}var L=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);c.e$.call(n,o)?n[o].push(i):n[o]=[i]}return n}},A=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}},j=function(e,t){return U(e,function(){return t})},U=function(e,t){return function(n){return h(e,n)?c.YP:c.G(S(e,t(n[e]),n))}},q=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r},G=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]},B=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}},Y=function(e){return function(t){var n=e2(t);return s(n)?(0,u.pipe)(n,B(e),v(e1(t))):t}},V=function(e){return function(t){for(var n=c.r1(e(0,e1(t))),r=1;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}},K=function(e){return function(t){for(var n=e(t),r=n[0],i=n[1],o=[r],u=i;s(u);){var a=e(u),c=a[0],f=a[1];o.push(c),u=f}return o}},z=function(e){return function(t){var n=Math.max(1,e);return n>=t.length?[t,d]:[(0,u.pipe)(t.slice(1,n),v(e1(t))),t.slice(n)]}},H=function(e){return K(z(e))},Z=function(e,t){return(0,u.pipe)(e,ev(t))},$=function(e,t){return(0,u.pipe)(e,ey(t))},X=function(e,t){return(0,u.pipe)(e,ep(t))},J=function(e,t){return(0,u.pipe)(e,es(t))},Q=function(e,t,n){return(0,u.pipe)(e,eg(t,n))},ee=function(e){var t=e_(e);return function(e,n){return(0,u.pipe)(e,t(n))}},et=function(e,t,n){return(0,u.pipe)(e,eb(t,n))},en=function(e){var t=ex(e);return function(e,n){return(0,u.pipe)(e,t(n))}},er=function(e,t){return(0,u.pipe)(e,el(t))},ei=function(e,t,n){return(0,u.pipe)(e,eS(t,n))},eo=function(e){var t=eT(e);return function(e,n){return(0,u.pipe)(e,t(n))}},eu=function(e,t,n){return(0,u.pipe)(e,eI(t,n))},ea=function(e){var t=eO(e);return function(e,n){return(0,u.pipe)(e,t(n))}},ec=c.ri,ef=function(e){return function(t){return(0,u.pipe)(t,F(e()))}},el=ef,ep=function(e){return ed(function(t){return(0,u.pipe)(e,ev(t))})},ed=(0,u.dual)(2,function(e,t){return(0,u.pipe)(e,V(function(e,n){return t(n,e)}))}),es=function(e){return function(t){for(var n=e2(t),r=[e(t)];s(n);)r.push(e(n)),n=e2(n);return r}},eh=es(u.identity),em=ed(u.identity),ev=function(e){return ey(function(t,n){return e(n)})},ey=function(e){return function(t){for(var n=[e(0,e1(t))],r=1;r<t.length;r++)n.push(e(r,t[r]));return n}},eg=function(e,t){return eS(e,function(e,n,r){return t(n,r)})},e_=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}},eb=function(e,t){return eI(e,function(e,n,r){return t(n,r)})},eS=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}},eT=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}},eI=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}},ex=function(e){var t=eO(e);return function(e){return t(function(t,n){return e(n)})}},ew=function(e){return eO(e)(u.SK)},eO=function(e){return function(t){return function(n){for(var r=e.map(t(0,e1(n)),ec),i=1;i<n.length;i++)r=e.ap(e.map(r,function(e){return function(t){return(0,u.pipe)(e,_(t))}}),t(i,n[i]));return r}}},eR=c.YM,eC="ReadonlyNonEmptyArray",eM=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}},eE=function(){return{concat:W}},ek=function(e){return(0,o.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})},eP=function(e){var t=x(e);return{concat:function(e,n){return t(n)(e)}}},eF={URI:eC,map:Z},eW=(0,a.flap)(eF),eD={URI:eC,of:ec},eN={URI:eC,map:Z,mapWithIndex:$},eL={URI:eC,map:Z,ap:X},eA=(0,r.apFirst)(eL),ej=(0,r.apSecond)(eL),eU={URI:eC,map:Z,ap:X,of:ec},eq={URI:eC,map:Z,ap:X,chain:ed},eG=(0,i.chainFirst)(eq),eB={URI:eC,map:Z,ap:X,of:ec,chain:ed},eY={URI:eC,reduce:Q,foldMap:ee,reduceRight:et},eV={URI:eC,reduce:Q,foldMap:ee,reduceRight:et,reduceWithIndex:ei,foldMapWithIndex:eo,reduceRightWithIndex:eu},eK={URI:eC,map:Z,reduce:Q,foldMap:ee,reduceRight:et,traverse:en,sequence:ew},ez={URI:eC,map:Z,mapWithIndex:$,reduce:Q,foldMap:ee,reduceRight:et,traverse:en,sequence:ew,reduceWithIndex:ei,foldMapWithIndex:eo,reduceRightWithIndex:eu,traverseWithIndex:ea},eH={URI:eC,map:Z,alt:er},eZ={URI:eC,map:Z,extend:J,extract:eR},e$=ec(c.F4),eX=(0,a.bindTo)(eF),eJ=(0,a.let)(eF),eQ=(0,i.bind)(eq),e0=(0,r.apS)(eL),e1=eR,e2=c.Gb,e8=function(e){return e[e.length-1]},e4=function(e){return e.slice(0,-1)},e3=function(e){var t=l.min(e);return function(e){return e.reduce(t.concat)}},e5=function(e){var t=l.max(e);return function(e){return e.reduce(t.concat)}},e7=function(e){return function(t){return t.reduce(e.concat)}},e9=function(e){return function(t){return e(e1(t),e2(t))}},e6=function(e){return function(t){return e(e4(t),e8(t))}},te=function(e){return function(t){return p([e(e1(t))],e2(t),!0)}},tt=function(e){return te(function(){return e})},tn=function(e){return function(t){return(0,u.pipe)(e4(t),_(e(e8(t))))}},tr=function(e){return tn(function(){return e})},ti=function(e){var t=e7(e);return function(e){return(0,u.flow)(Y(e),t)}},to=ed;function tu(e){var t=A(e),n=N(e);return function(e){return s(e)?n(t(e)):d}}function ta(e){return tc(function(t,n){return e(n)})}var tc=function(e){return function(t){return O(t.filter(function(t,n){return e(n,t)}))}},tf=E,tl=k;function tp(e,t){return void 0===t?v(e):(0,u.pipe)(t,v(e))}var td=function(e,t){return(0,u.pipe)(e,W([t]))},ts=function(e,t){return function(n){return e<0||e>n.length?c.YP:c.G(b(e,t,n))}},th=B,tm=e7,tv={URI:eC,of:ec,map:Z,mapWithIndex:$,ap:X,chain:ed,extend:J,extract:eR,reduce:Q,foldMap:ee,reduceRight:et,traverse:en,sequence:ew,reduceWithIndex:ei,foldMapWithIndex:eo,reduceRightWithIndex:eu,traverseWithIndex:ea,alt:er}},97054:function(e,t,n){n.r(t),n.d(t,{Compactable:function(){return eD},Filterable:function(){return eN},FilterableWithIndex:function(){return eL},Foldable:function(){return eV},FoldableWithIndex:function(){return eK},Functor:function(){return eE},FunctorWithIndex:function(){return eP},Traversable:function(){return ez},TraversableWithIndex:function(){return eH},URI:function(){return eR},Witherable:function(){return eX},_filter:function(){return ei},_filterMap:function(){return eo},_filterMapWithIndex:function(){return es},_filterWithIndex:function(){return eh},_foldMap:function(){return en},_foldMapWithIndex:function(){return ef},_map:function(){return Q},_mapWithIndex:function(){return ee},_partition:function(){return eu},_partitionMap:function(){return ea},_partitionMapWithIndex:function(){return ep},_partitionWithIndex:function(){return ed},_reduce:function(){return et},_reduceRight:function(){return er},_reduceRightWithIndex:function(){return el},_reduceWithIndex:function(){return ec},_sequence:function(){return ev},_traverse:function(){return em},collect:function(){return v},compact:function(){return ew},deleteAt:function(){return T},difference:function(){return J},elem:function(){return function e(t){return function(n,r){if(void 0===r){var i=e(t);return function(e){return i(n,e)}}for(var o in r)if(t.equals(r[o],n))return!0;return!1}}},empty:function(){return C},every:function(){return H},filter:function(){return eg},filterMap:function(){return e_},filterMapWithIndex:function(){return G},filterWithIndex:function(){return B},flap:function(){return ek},foldMap:function(){return eI},foldMapWithIndex:function(){return P},fromEntries:function(){return z},fromFoldable:function(){return Y},fromFoldableMap:function(){return V},fromRecord:function(){return l},getDifferenceMagma:function(){return eY},getEq:function(){return eC},getFoldable:function(){return eF},getFoldableWithIndex:function(){return eW},getIntersectionSemigroup:function(){return eB},getMonoid:function(){return eM},getShow:function(){return function e(t){return"compare"in t?function(e){return{show:function(n){var r=v(t)(function(t,n){return"".concat(JSON.stringify(t),": ").concat(e.show(n))})(n).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:e(c.Ord)(t)}},getTraversable:function(){return eA},getTraversableWithIndex:function(){return ej},getUnionMonoid:function(){return eG},getUnionSemigroup:function(){return eq},getWitherable:function(){return eU},has:function(){return S},hasOwnProperty:function(){return eQ},insertAt:function(){return eJ},intersection:function(){return X},isEmpty:function(){return s},isSubrecord:function(){return O},keys:function(){return m},lookup:function(){return R},map:function(){return E},mapWithIndex:function(){return M},modifyAt:function(){return x},partition:function(){return eb},partitionMap:function(){return eS},partitionMapWithIndex:function(){return U},partitionWithIndex:function(){return q},pop:function(){return w},readonlyRecord:function(){return e0},reduce:function(){return eT},reduceRight:function(){return ex},reduceRightWithIndex:function(){return F},reduceWithIndex:function(){return k},separate:function(){return eO},sequence:function(){return L},singleton:function(){return W},size:function(){return d},some:function(){return Z},toEntries:function(){return K},toReadonlyArray:function(){return y},toRecord:function(){return p},toUnfoldable:function(){return _},traverse:function(){return N},traverseWithIndex:function(){return D},union:function(){return $},updateAt:function(){return I},upsertAt:function(){return b},wilt:function(){return j},wither:function(){return A}});var r=n(65191),i=n(42275),o=n(67560),u=n(97963),a=n(34219),c=n(57029),f=n(76511),l=function(e){return Object.assign({},e)},p=function(e){return Object.assign({},e)},d=function(e){return Object.keys(e).length},s=function(e){for(var t in e)if(u.e$.call(e,t))return!1;return!0},h=function(e){return function(t){return Object.keys(t).sort(e.compare)}},m=h(c.Ord);function v(e){if("function"==typeof e)return v(c.Ord)(e);var t=h(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var y=v(c.Ord)(function(e,t){return[e,t]});function _(e){return function(t){var n=y(t),r=n.length;return e.unfold(0,function(e){return e<r?u.G([n[e],e+1]):u.YP})}}var b=function(e,t){return function(n){if(u.e$.call(n,e)&&n[e]===t)return n;var r=Object.assign({},n);return r[e]=t,r}},S=function(e,t){return u.e$.call(t,e)};function T(e){return function(t){if(!u.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var I=function(e,t){return function(n){if(!S(e,n))return u.YP;if(n[e]===t)return u.G(n);var r=Object.assign({},n);return r[e]=t,u.G(r)}},x=function(e,t){return function(n){if(!S(e,n))return u.YP;var r=t(n[e]);if(r===n[e])return u.G(n);var i=Object.assign({},n);return i[e]=r,u.G(i)}};function w(e){var t=T(e);return function(n){var r=R(e,n);return u.Wi(r)?u.YP:u.G([r.value,t(n)])}}function O(e){return function(t,n){if(void 0===n){var r=O(e);return function(e){return r(e,t)}}for(var i in t)if(!u.e$.call(n,i)||!e.equals(t[i],n[i]))return!1;return!0}}function R(e,t){return void 0===t?function(t){return R(e,t)}:u.e$.call(t,e)?u.G(t[e]):u.YP}var C={};function M(e){return function(t){var n={};for(var r in t)u.e$.call(t,r)&&(n[r]=e(r,t[r]));return n}}function E(e){return M(function(t,n){return e(n)})}function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return k(c.Ord).apply(void 0,e);var n=h(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=0;a<u;a++){var c=o[a];i=t(c,i,r[c])}return i}}}function P(e){if("compare"in e){var t=h(e);return function(e){return function(n){return function(r){for(var i=e.empty,o=t(r),u=o.length,a=0;a<u;a++){var c=o[a];i=e.concat(i,n(c,r[c]))}return i}}}}return P(c.Ord)(e)}function F(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(2===e.length)return F(c.Ord).apply(void 0,e);var n=h(e[0]);return function(e,t){return function(r){for(var i=e,o=n(r),u=o.length,a=u-1;a>=0;a--){var c=o[a];i=t(c,r[c],i)}return i}}}var W=function(e,t){var n;return(n={})[e]=t,n};function D(e){var t=ey(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function N(e){var t=em(c.Ord)(e);return function(e){return function(n){return t(n,e)}}}function L(e){return ev(c.Ord)(e)}var A=function(e){var t=N(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),ew)}}},j=function(e){var t=N(e);return function(n){return function(r){return e.map((0,i.pipe)(r,t(n)),eO)}}};function U(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=e(i,t[i]);switch(o._tag){case"Left":n[i]=o.left;break;case"Right":r[i]=o.right}}return(0,a.separated)(n,r)}}function q(e){return function(t){var n={},r={};for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?r[i]=o:n[i]=o}return(0,a.separated)(n,r)}}function G(e){return function(t){var n={};for(var r in t)if(u.e$.call(t,r)){var i=e(r,t[r]);u.pC(i)&&(n[r]=i.value)}return n}}function B(e){return function(t){var n={},r=!1;for(var i in t)if(u.e$.call(t,i)){var o=t[i];e(i,o)?n[i]=o:r=!0}return r?n:t}}function Y(e,t){var n=V(e,t);return function(e){return n(e,i.identity)}}function V(e,t){return function(n,r){return t.reduce(n,{},function(t,n){var i=r(n),o=i[0],a=i[1];return t[o]=u.e$.call(t,o)?e.concat(t[o],a):a,t})}}var K=y,z=function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t};function H(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function Z(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}var $=function(e){return function(t){return function(n){if(s(n))return t;if(s(t))return n;var r={};for(var i in n)S(i,t)?r[i]=e.concat(n[i],t[i]):r[i]=n[i];for(var i in t)S(i,r)||(r[i]=t[i]);return r}}},X=function(e){return function(t){return function(n){if(s(n)||s(t))return C;var r={};for(var i in n)S(i,t)&&(r[i]=e.concat(n[i],t[i]));return r}}},J=function(e){return function(t){if(s(t))return e;if(s(e))return t;var n={};for(var r in t)S(r,e)||(n[r]=t[r]);for(var r in e)S(r,t)||(n[r]=e[r]);return n}},Q=function(e,t){return(0,i.pipe)(e,E(t))},ee=function(e,t){return(0,i.pipe)(e,M(t))},et=function(e){var t=eT(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},en=function(e){return function(t){var n=eI(e)(t);return function(e,t){return(0,i.pipe)(e,n(t))}}},er=function(e){var t=ex(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},ei=function(e,t){return(0,i.pipe)(e,eg(t))},eo=function(e,t){return(0,i.pipe)(e,e_(t))},eu=function(e,t){return(0,i.pipe)(e,eb(t))},ea=function(e,t){return(0,i.pipe)(e,eS(t))},ec=function(e){var t=k(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},ef=function(e){var t=P(e);return function(e){var n=t(e);return function(e,t){return(0,i.pipe)(e,n(t))}}},el=function(e){var t=F(e);return function(e,n,r){return(0,i.pipe)(e,t(n,r))}},ep=function(e,t){return(0,i.pipe)(e,U(t))},ed=function(e,t){return(0,i.pipe)(e,q(t))},es=function(e,t){return(0,i.pipe)(e,G(t))},eh=function(e,t){return(0,i.pipe)(e,B(t))},em=function(e){var t=ey(e);return function(e){var n=t(e);return function(e,t){return n(e,(0,i.flow)(i.SK,t))}}},ev=function(e){var t=em(e);return function(e){var n=t(e);return function(e){return n(e,i.identity)}}},ey=function(e){return function(t){var n=h(e);return function(e,r){var i=n(e);if(0===i.length)return t.of(C);for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){var r;return Object.assign({},e,((r={})[n]=t,r))}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},eg=function(e){return B(function(t,n){return e(n)})},e_=function(e){return G(function(t,n){return e(n)})},eb=function(e){return q(function(t,n){return e(n)})},eS=function(e){return U(function(t,n){return e(n)})};function eT(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=k(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return eT(c.Ord).apply(void 0,e)}function eI(e){if("compare"in e){var t=P(e);return function(e){var n=t(e);return function(e){return n(function(t,n){return e(n)})}}}return eI(c.Ord)(e)}function ex(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=F(e[0]);return function(e,t){return n(e,function(e,n,r){return t(n,r)})}}return ex(c.Ord).apply(void 0,e)}var ew=function(e){var t={};for(var n in e)if(u.e$.call(e,n)){var r=e[n];u.pC(r)&&(t[n]=r.value)}return t},eO=function(e){var t={},n={};for(var r in e)if(u.e$.call(e,r)){var i=e[r];u.nM(i)?t[r]=i.left:n[r]=i.right}return(0,a.separated)(t,n)},eR="ReadonlyRecord";function eC(e){var t=O(e);return(0,r.fromEquals)(function(e,n){return t(e)(n)&&t(n)(e)})}function eM(e){return{concat:function(t,n){if(s(t))return n;if(s(n))return t;var r=Object.assign({},t);for(var i in n)u.e$.call(n,i)&&(r[i]=u.e$.call(t,i)?e.concat(t[i],n[i]):n[i]);return r},empty:C}}var eE={URI:eR,map:Q},ek=(0,o.flap)(eE),eP={URI:eR,map:Q,mapWithIndex:ee},eF=function(e){return{URI:eR,reduce:et(e),foldMap:en(e),reduceRight:er(e)}},eW=function(e){return{URI:eR,reduce:et(e),foldMap:en(e),reduceRight:er(e),reduceWithIndex:ec(e),foldMapWithIndex:ef(e),reduceRightWithIndex:el(e)}},eD={URI:eR,compact:ew,separate:eO},eN={URI:eR,map:Q,compact:ew,separate:eO,filter:ei,filterMap:eo,partition:eu,partitionMap:ea},eL={URI:eR,map:Q,mapWithIndex:ee,compact:ew,separate:eO,filter:ei,filterMap:eo,partition:eu,partitionMap:ea,filterMapWithIndex:es,filterWithIndex:eh,partitionMapWithIndex:ep,partitionWithIndex:ed},eA=function(e){return{URI:eR,map:Q,reduce:et(e),foldMap:en(e),reduceRight:er(e),traverse:em(e),sequence:ev(e)}},ej=function(e){return{URI:eR,map:Q,mapWithIndex:ee,reduce:et(e),foldMap:en(e),reduceRight:er(e),reduceWithIndex:ec(e),foldMapWithIndex:ef(e),reduceRightWithIndex:el(e),traverse:em(e),sequence:ev(e),traverseWithIndex:ey(e)}},eU=function(e){var t=eA(e);return{URI:eR,map:Q,reduce:et(e),foldMap:en(e),reduceRight:er(e),traverse:t.traverse,sequence:t.sequence,compact:ew,separate:eO,filter:ei,filterMap:eo,partition:eu,partitionMap:ea,wither:(0,f.witherDefault)(t,eD),wilt:(0,f.wiltDefault)(t,eD)}},eq=function(e){var t=$(e);return{concat:function(e,n){return t(n)(e)}}},eG=function(e){return{concat:eq(e).concat,empty:C}},eB=function(e){var t=X(e);return{concat:function(e,n){return t(n)(e)}}},eY=function(){return{concat:function(e,t){return J(t)(e)}}},eV={URI:eR,reduce:et(c.Ord),foldMap:en(c.Ord),reduceRight:er(c.Ord)},eK={URI:eR,reduce:et(c.Ord),foldMap:en(c.Ord),reduceRight:er(c.Ord),reduceWithIndex:ec(c.Ord),foldMapWithIndex:ef(c.Ord),reduceRightWithIndex:el(c.Ord)},ez={URI:eR,map:Q,reduce:et(c.Ord),foldMap:en(c.Ord),reduceRight:er(c.Ord),traverse:em(c.Ord),sequence:L},eH={URI:eR,map:Q,mapWithIndex:ee,reduce:et(c.Ord),foldMap:en(c.Ord),reduceRight:er(c.Ord),reduceWithIndex:ec(c.Ord),foldMapWithIndex:ef(c.Ord),reduceRightWithIndex:el(c.Ord),traverse:em(c.Ord),sequence:L,traverseWithIndex:ey(c.Ord)},eZ=(0,f.witherDefault)(ez,eD),e$=(0,f.wiltDefault)(ez,eD),eX={URI:eR,map:Q,reduce:et(c.Ord),foldMap:en(c.Ord),reduceRight:er(c.Ord),traverse:em(c.Ord),sequence:L,compact:ew,separate:eO,filter:ei,filterMap:eo,partition:eu,partitionMap:ea,wither:eZ,wilt:e$},eJ=b;function eQ(e,t){return u.e$.call(void 0===t?this:t,e)}var e0={URI:eR,map:Q,reduce:et(c.Ord),foldMap:en(c.Ord),reduceRight:er(c.Ord),traverse:em(c.Ord),sequence:L,compact:ew,separate:eO,filter:ei,filterMap:eo,partition:eu,partitionMap:ea,mapWithIndex:ee,reduceWithIndex:ec(c.Ord),foldMapWithIndex:ef(c.Ord),reduceRightWithIndex:el(c.Ord),filterMapWithIndex:es,filterWithIndex:eh,partitionMapWithIndex:ep,partitionWithIndex:ed,traverseWithIndex:ey(c.Ord),wither:eZ,wilt:e$}},99156:function(e,t,n){n.r(t),n.d(t,{URI:function(){return L},chain:function(){return d},compact:function(){return O},difference:function(){return _},elem:function(){return D},empty:function(){return M},every:function(){return F},filter:function(){return s},filterMap:function(){return C},foldMap:function(){return S},fromArray:function(){return Y},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return B},getEq:function(){return j},getIntersectionSemigroup:function(){return G},getShow:function(){return A},getUnionMonoid:function(){return q},getUnionSemigroup:function(){return U},insert:function(){return I},intersection:function(){return v},isEmpty:function(){return E},isSubset:function(){return W},map:function(){return p},partition:function(){return h},partitionMap:function(){return y},reduce:function(){return b},reduceRight:function(){return T},remove:function(){return x},separate:function(){return R},singleton:function(){return c},size:function(){return k},some:function(){return P},toReadonlyArray:function(){return N},toSet:function(){return l},toggle:function(){return w},union:function(){return m}});var r=n(65191),i=n(42275),o=n(88491),u=n(34219),a=function(e){return new Set(e)},c=function(e){return new Set([e])},f=function(e){return function(t){for(var n=t.length,r=new Set,i=D(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}};function l(e){return new Set(e)}function p(e){var t=D(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function d(e){var t=D(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function s(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function h(e){return function(t){for(var n,r=t.values(),i=new Set,o=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function m(e){var t=D(e);return function(n,r){if(void 0===r){var i=m(e);return function(e){return i(n,e)}}if(E(n))return r;if(E(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function v(e){var t=D(e);return function(n,r){if(void 0===r){var i=v(e);return function(e){return i(e,n)}}if(E(n)||E(r))return M;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function y(e,t){return function(n){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=D(e),l=D(t);!(i=o.next()).done;){var p=n(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,u.separated)(a,c)}}}function _(e){var t=D(e);return function(n,r){if(void 0===r){var i=_(e);return function(e){return i(e,n)}}return s(function(e){return!t(e,r)})(n)}}function b(e){var t=N(e);return function(e,n){return function(r){return t(r).reduce(n,e)}}}function S(e,t){var n=N(e);return function(e){return function(r){return n(r).reduce(function(n,r){return t.concat(n,e(r))},t.empty)}}}var T=function(e){var t=N(e);return function(e,n){return function(r){return t(r).reduceRight(function(e,t){return n(t,e)},e)}}};function I(e){var t=D(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var x=function(e){return function(t){return function(n){return s(function(n){return!e.equals(t,n)})(n)}}},w=function(e){var t=D(e),n=x(e),r=I(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},O=function(e){return C(e)(i.identity)};function R(e,t){return function(n){var r=D(e),i=D(t),o=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,o)||o.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,u.separated)(o,a)}}function C(e){var t=D(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var M=new Set,E=function(e){return 0===e.size},k=function(e){return e.size},P=function(e){return function(t){for(var n,r=t.values(),i=!1;!i&&!(n=r.next()).done;)i=e(n.value);return i}};function F(e){return(0,o.not)(P((0,o.not)(e)))}function W(e){var t=D(e);return function(n,r){if(void 0===r){var i=W(e);return function(e){return i(e,n)}}return F(function(e){return t(e,r)})(n)}}function D(e){return function(t,n){if(void 0===n){var r,i=D(e);return function(e){return i(t,e)}}for(var o=n.values(),u=!1;!u&&!(r=o.next()).done;)u=e.equals(t,r.value);return u}}var N=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},L="ReadonlySet";function A(e){return{show:function(t){var n=[];return t.forEach(function(t){n.push(e.show(t))}),"new Set([".concat(n.sort().join(", "),"])")}}}function j(e){var t=W(e);return(0,r.fromEquals)(function(e,n){return t(e,n)&&t(n,e)})}var U=function(e){return{concat:m(e)}},q=function(e){return{concat:U(e).concat,empty:M}},G=function(e){return{concat:v(e)}},B=function(e){return{concat:_(e)}},Y=f},3291:function(e,t,n){n.r(t),n.d(t,{concatAll:function(){return v},constant:function(){return f},first:function(){return h},fold:function(){return C},getDualSemigroup:function(){return x},getFirstSemigroup:function(){return S},getFunctionSemigroup:function(){return k},getIntercalateSemigroup:function(){return R},getJoinSemigroup:function(){return w},getLastSemigroup:function(){return b},getMeetSemigroup:function(){return O},getObjectSemigroup:function(){return _},getStructSemigroup:function(){return I},getTupleSemigroup:function(){return T},intercalate:function(){return s},last:function(){return m},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return M},semigroupAny:function(){return E},semigroupProduct:function(){return W},semigroupString:function(){return P},semigroupSum:function(){return F},semigroupVoid:function(){return y},struct:function(){return p},tuple:function(){return d}});var r=n(42275),i=n(97963),o=n(76113),u=n(5586),a=function(e){return{concat:u.min(e)}},c=function(e){return{concat:u.max(e)}},f=function(e){return{concat:function(){return e}}},l=o.reverse,p=function(e){return{concat:function(t,n){var r={};for(var o in e)i.e$.call(e,o)&&(r[o]=e[o].concat(t[o],n[o]));return r}}},d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}},s=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}},h=function(){return{concat:r.identity}},m=function(){return{concat:function(e,t){return t}}},v=o.concatAll,y=f(void 0),_=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},b=m,S=h,T=d,I=p,x=l,w=c,O=a,R=s;function C(e){var t=v(e);return function(e,n){return void 0===n?t(e):t(e)(n)}}var M={concat:function(e,t){return e&&t}},E={concat:function(e,t){return e||t}},k=r.getSemigroup,P={concat:function(e,t){return e+t}},F={concat:function(e,t){return e+t}},W={concat:function(e,t){return e*t}}},34219:function(e,t,n){n.r(t),n.d(t,{Bifunctor:function(){return l},Functor:function(){return p},URI:function(){return f},bimap:function(){return c},flap:function(){return d},left:function(){return s},map:function(){return u},mapLeft:function(){return a},right:function(){return h},separated:function(){return o}});var r=n(42275),i=n(67560),o=function(e,t){return{left:e,right:t}},u=function(e){return function(t){return o(s(t),e(h(t)))}},a=function(e){return function(t){return o(e(s(t)),h(t))}},c=function(e,t){return function(n){return o(e(s(n)),t(h(n)))}},f="Separated",l={URI:f,mapLeft:function(e,t){return(0,r.pipe)(e,a(t))},bimap:function(e,t,n){return(0,r.pipe)(e,c(t,n))}},p={URI:f,map:function(e,t){return(0,r.pipe)(e,u(t))}},d=(0,i.flap)(p),s=function(e){return e.left},h=function(e){return e.right}},1214:function(e,t,n){n.r(t),n.d(t,{chain:function(){return f},compact:function(){return M},difference:function(){return m},elem:function(){return A},empty:function(){return P},every:function(){return N},filter:function(){return l},filterMap:function(){return k},foldMap:function(){return T},fromArray:function(){return C},getDifferenceMagma:function(){return b},getEq:function(){return a},getIntersectionSemigroup:function(){return _},getShow:function(){return u},getUnionMonoid:function(){return y},getUnionSemigroup:function(){return v},insert:function(){return w},intersection:function(){return s},isEmpty:function(){return F},isSubset:function(){return L},map:function(){return c},partition:function(){return p},partitionMap:function(){return h},reduce:function(){return S},reduceRight:function(){return I},remove:function(){return O},separate:function(){return E},singleton:function(){return x},size:function(){return W},some:function(){return D},subset:function(){return U},toArray:function(){return j},toggle:function(){return R},union:function(){return d}});var r=n(42275),i=n(99156),o=n(34219),u=i.getShow,a=i.getEq;function c(e){var t=A(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);t(i,r)||r.add(i)}),r}}}function f(e){var t=A(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){e(n).forEach(function(e){t(e,r)||r.add(e)})}),r}}}function l(e){return function(t){for(var n,r=t.values(),i=new Set;!(n=r.next()).done;){var o=n.value;e(o)&&i.add(o)}return i}}function p(e){return function(t){for(var n,r=t.values(),i=new Set,u=new Set;!(n=r.next()).done;){var a=n.value;e(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function d(e){var t=A(e);return function(n,r){if(void 0===r){var i=d(e);return function(e){return i(n,e)}}if(F(n))return r;if(F(r))return n;var o=new Set(n);return r.forEach(function(e){t(e,o)||o.add(e)}),o}}function s(e){var t=A(e);return function(n,r){if(void 0===r){var i=s(e);return function(e){return i(e,n)}}if(F(n)||F(r))return new Set;var o=new Set;return n.forEach(function(e){t(e,r)&&o.add(e)}),o}}function h(e,t){return function(n){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=A(e),l=A(t);!(i=u.next()).done;){var p=n(i.value);switch(p._tag){case"Left":f(p.left,a)||a.add(p.left);break;case"Right":l(p.right,c)||c.add(p.right)}}return(0,o.separated)(a,c)}}}function m(e){var t=A(e);return function(n,r){if(void 0===r){var i=m(e);return function(e){return i(e,n)}}return l(function(e){return!t(e,r)})(n)}}var v=function(e){return{concat:d(e)}},y=function(e){return{concat:v(e).concat,empty:new Set}},_=function(e){return{concat:s(e)}},b=function(e){return{concat:m(e)}},S=i.reduce,T=i.foldMap,I=i.reduceRight,x=function(e){return new Set([e])};function w(e){var t=A(e);return function(e){return function(n){if(t(e)(n))return n;var r=new Set(n);return r.add(e),r}}}var O=function(e){return function(t){return function(n){return l(function(n){return!e.equals(t,n)})(n)}}},R=function(e){var t=A(e),n=O(e),r=w(e);return function(e){return function(i){return(t(e,i)?n:r)(e)(i)}}},C=function(e){return function(t){for(var n=t.length,r=new Set,i=A(e),o=0;o<n;o++){var u=t[o];i(u,r)||r.add(u)}return r}},M=function(e){return k(e)(r.identity)};function E(e,t){return function(n){var r=A(e),i=A(t),u=new Set,a=new Set;return n.forEach(function(e){switch(e._tag){case"Left":r(e.left,u)||u.add(e.left);break;case"Right":i(e.right,a)||a.add(e.right)}}),(0,o.separated)(u,a)}}function k(e){var t=A(e);return function(e){return function(n){var r=new Set;return n.forEach(function(n){var i=e(n);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var P=new Set,F=function(e){return 0===e.size},W=function(e){return e.size},D=i.some,N=i.every,L=i.isSubset,A=i.elem,j=function(e){return function(t){var n=[];return t.forEach(function(e){return n.push(e)}),n.sort(e.compare)}},U=i.isSubset},76511:function(e,t,n){n.r(t),n.d(t,{filterE:function(){return u},wiltDefault:function(){return i},witherDefault:function(){return o}});var r=n(97963);function i(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}}function o(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}}function u(e){return function(t){var n=e.wither(t);return function(e){return function(i){return n(i,function(n){return t.map(e(n),function(e){return e?r.G(n):r.YP})})}}}}},28957:function(e,t,n){function r(e,t){return function(n){return n?t.of(void 0):e.zero()}}n.r(t),n.d(t,{guard:function(){return r}})},42275:function(e,t,n){n.r(t),n.d(t,{SK:function(){return M},absurd:function(){return x},apply:function(){return f},constFalse:function(){return h},constNull:function(){return m},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return y},constant:function(){return d},decrement:function(){return I},dual:function(){return P},flip:function(){return _},flow:function(){return b},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return k},getMonoid:function(){return u},getRing:function(){return c},getSemigroup:function(){return o},getSemiring:function(){return a},hole:function(){return C},identity:function(){return l},increment:function(){return T},not:function(){return E},pipe:function(){return R},tuple:function(){return S},tupled:function(){return w},unsafeCoerce:function(){return p},untupled:function(){return O}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},i=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}},o=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}},u=function(e){var t=o(e);return function(){return{concat:t().concat,empty:function(){return e.empty}}}},a=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}},c=function(e){var t=a(e);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}},f=function(e){return function(t){return t(e)}};function l(e){return e}var p=l;function d(e){return function(){return e}}var s=d(!0),h=d(!1),m=d(null),v=d(void 0),y=v;function _(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}}function b(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function S(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}function T(e){return e+1}function I(e){return e-1}function x(e){throw Error("Called `absurd` function which should be uncallable")}function w(e){return function(t){return e.apply(void 0,t)}}function O(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}}function R(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var C=x,M=function(e,t){return t};function E(e){return function(t){return!e(t)}}var k=function(){return{concat:function(e,t){return b(e,t)},empty:l}},P=function(e,t){var n="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return n(arguments)?t.apply(this,e):function(n){return t.apply(void 0,r([n],e,!1))}}}},9554:function(e,t,n){n.r(t),n.d(t,{alt:function(){return r},alternative:function(){return i},applicative:function(){return eB},apply:function(){return eU},array:function(){return eY},bifunctor:function(){return o},boolean:function(){return u},booleanAlgebra:function(){return a},bounded:function(){return c},boundedDistributiveLattice:function(){return l},boundedJoinSemilattice:function(){return p},boundedLattice:function(){return d},boundedMeetSemilattice:function(){return s},category:function(){return h},chain:function(){return tu},chainRec:function(){return ta},choice:function(){return m},comonad:function(){return v},compactable:function(){return y},console:function(){return _},const:function(){return tT},contravariant:function(){return b},date:function(){return S},distributiveLattice:function(){return f},either:function(){return tk},eitherT:function(){return T},endomorphism:function(){return t3},eq:function(){return t5},extend:function(){return I},field:function(){return x},filterable:function(){return w},filterableWithIndex:function(){return O},foldable:function(){return R},foldableWithIndex:function(){return C},fromEither:function(){return nb},fromIO:function(){return M},fromReader:function(){return k},fromState:function(){return F},fromTask:function(){return W},fromThese:function(){return D},function:function(){return e4},functor:function(){return td},functorWithIndex:function(){return N},group:function(){return L},heytingAlgebra:function(){return A},hkt:function(){return j},identity:function(){return U},invariant:function(){return q},io:function(){return G},ioEither:function(){return B},ioOption:function(){return V},ioRef:function(){return K},joinSemilattice:function(){return z},json:function(){return H},lattice:function(){return Z},magma:function(){return fx},map:function(){return fw},meetSemilattice:function(){return $},monad:function(){return X},monadIO:function(){return J},monadTask:function(){return Q},monadThrow:function(){return ee},monoid:function(){return fO},naturalTransformation:function(){return et},nonEmptyArray:function(){return fR},number:function(){return tI},option:function(){return ts},optionT:function(){return Y},ord:function(){return te},ordering:function(){return en},pipeable:function(){return fj},pointed:function(){return er},predicate:function(){return ne},profunctor:function(){return ei},random:function(){return eo},reader:function(){return E},readerEither:function(){return eu},readerIO:function(){return ec},readerT:function(){return ea},readerTask:function(){return el},readerTaskEither:function(){return ed},readonlyArray:function(){return bw},readonlyMap:function(){return bO},readonlyNonEmptyArray:function(){return bR},readonlyRecord:function(){return bC},readonlySet:function(){return bM},readonlyTuple:function(){return es},record:function(){return eh},refinement:function(){return em},ring:function(){return ev},semigroup:function(){return Sa},semigroupoid:function(){return ey},semiring:function(){return eg},separated:function(){return th},set:function(){return T4},show:function(){return e_},state:function(){return P},stateReaderTaskEither:function(){return eS},stateT:function(){return eb},store:function(){return eT},string:function(){return Sc},strong:function(){return eI},struct:function(){return ex},task:function(){return ef},taskEither:function(){return ep},taskOption:function(){return ew},taskThese:function(){return eC},these:function(){return eO},theseT:function(){return eR},traced:function(){return eM},traversable:function(){return eE},traversableWithIndex:function(){return ek},tree:function(){return eP},tuple:function(){return eF},unfoldable:function(){return eW},validationT:function(){return eD},void:function(){return eN},witherable:function(){return Sf},writer:function(){return eL},writerT:function(){return eA},zero:function(){return a3}});var r={};n.r(r),n.d(r,{altAll:function(){return ej}});var i={};n.r(i),n.d(i,{altAll:function(){return eq},getAlternativeMonoid:function(){return eG}});var o={};n.r(o);var u={};n.r(u),n.d(u,{BooleanAlgebra:function(){return eX},Eq:function(){return e$},MonoidAll:function(){return e0},MonoidAny:function(){return e1},Ord:function(){return e2},SemigroupAll:function(){return eJ},SemigroupAny:function(){return eQ},Show:function(){return e8},fold:function(){return eZ},foldW:function(){return ez},isBoolean:function(){return eV},match:function(){return eH},matchW:function(){return eK}});var a={};n.r(a),n.d(a,{booleanAlgebraBoolean:function(){return e9},booleanAlgebraVoid:function(){return e5},getDualBooleanAlgebra:function(){return e7},getFunctionBooleanAlgebra:function(){return e6},reverse:function(){return e3}});var c={};n.r(c),n.d(c,{boundedNumber:function(){return tr},clamp:function(){return tt},reverse:function(){return tn}});var f={};n.r(f),n.d(f,{getMinMaxDistributiveLattice:function(){return ti}});var l={};n.r(l),n.d(l,{getMinMaxBoundedDistributiveLattice:function(){return to}});var p={};n.r(p);var d={};n.r(d);var s={};n.r(s);var h={};n.r(h);var m={};n.r(m),n.d(m,{fanIn:function(){return tf},fanin:function(){return tp},split:function(){return tc},splitChoice:function(){return tl}});var v={};n.r(v);var y={};n.r(y),n.d(y,{compact:function(){return tm},getCompactableComposition:function(){return ty},separate:function(){return tv}});var _={};n.r(_),n.d(_,{error:function(){return tb},info:function(){return tS},log:function(){return tg},warn:function(){return t_}});var b={};n.r(b);var S={};n.r(S),n.d(S,{Eq:function(){return tx},Ord:function(){return tC},create:function(){return tM},eqDate:function(){return tw},eqMonth:function(){return tO},eqYear:function(){return tR},now:function(){return tE}});var T={};n.r(T),n.d(T,{alt:function(){return tB},altValidation:function(){return tH},ap:function(){return tU},bimap:function(){return tY},chain:function(){return tq},chainNullableK:function(){return tA},flatMap:function(){return tG},fromNullable:function(){return tN},fromNullableK:function(){return tL},getEitherM:function(){return t4},getOrElse:function(){return tX},left:function(){return tF},leftF:function(){return tD},map:function(){return tj},mapBoth:function(){return tV},mapError:function(){return tz},mapLeft:function(){return tK},match:function(){return tZ},matchE:function(){return t$},orElse:function(){return tJ},orElseFirst:function(){return tQ},orLeft:function(){return t1},right:function(){return tP},rightF:function(){return tW},swap:function(){return t2},tapError:function(){return t0},toUnion:function(){return t8}});var I={};n.r(I);var x={};n.r(x),n.d(x,{fieldNumber:function(){return t6},gcd:function(){return t7},lcm:function(){return t9}});var w={};n.r(w),n.d(w,{filter:function(){return nt},filterMap:function(){return nn},getFilterableComposition:function(){return no},partition:function(){return nr},partitionMap:function(){return ni}});var O={};n.r(O);var R={};n.r(R),n.d(R,{foldM:function(){return ns},foldMap:function(){return na},getFoldableComposition:function(){return nm},intercalate:function(){return nl},reduce:function(){return nu},reduceM:function(){return nf},reduceRight:function(){return nc},toArray:function(){return nh},toReadonlyArray:function(){return np},traverse_:function(){return nd}});var C={};n.r(C),n.d(C,{foldMapWithIndex:function(){return ny},getFoldableWithIndexComposition:function(){return n_},reduceRightWithIndex:function(){return ng},reduceWithIndex:function(){return nv}});var M={};n.r(M),n.d(M,{chainFirstIOK:function(){return nI},chainIOK:function(){return nT},fromIOK:function(){return nS},tapIO:function(){return nx}});var E={};n.r(E),n.d(E,{ApT:function(){return rf},Applicative:function(){return n4},Apply:function(){return nQ},Category:function(){return n6},Chain:function(){return n3},Choice:function(){return rt},Do:function(){return ru},Functor:function(){return n$},Monad:function(){return n5},Pointed:function(){return nJ},Profunctor:function(){return n9},Strong:function(){return re},URI:function(){return nZ},ap:function(){return nL},apFirst:function(){return n0},apFirstW:function(){return n1},apS:function(){return ra},apSW:function(){return rc},apSecond:function(){return n2},apSecondW:function(){return n8},apW:function(){return nN},ask:function(){return nO},asks:function(){return nR},asksReader:function(){return nE},asksReaderW:function(){return nM},bind:function(){return ri},bindTo:function(){return rn},bindW:function(){return ro},chain:function(){return rv},chainFirst:function(){return ry},chainFirstW:function(){return rg},chainW:function(){return rm},compose:function(){return nG},first:function(){return nV},flap:function(){return nX},flatMap:function(){return nj},flatten:function(){return nq},flattenW:function(){return nU},getMonoid:function(){return rS},getSemigroup:function(){return rb},id:function(){return nY},left:function(){return nz},let:function(){return rr},local:function(){return nC},map:function(){return nD},of:function(){return nA},promap:function(){return nB},reader:function(){return r_},right:function(){return nH},second:function(){return nK},sequenceArray:function(){return rh},tap:function(){return n7},traverseArray:function(){return rs},traverseArrayWithIndex:function(){return rd},traverseReadonlyArrayWithIndex:function(){return rp},traverseReadonlyNonEmptyArrayWithIndex:function(){return rl}});var k={};n.r(k),n.d(k,{ask:function(){return rT},asks:function(){return rI},chainFirstReaderK:function(){return rO},chainReaderK:function(){return rw},fromReaderK:function(){return rx},tapReader:function(){return rR}});var P={};n.r(P),n.d(P,{Applicative:function(){return rK},Apply:function(){return rB},Chain:function(){return rz},FromState:function(){return r$},Functor:function(){return rU},Monad:function(){return rH},Pointed:function(){return rG},URI:function(){return rj},ap:function(){return rD},apFirst:function(){return rY},apS:function(){return r2},apSecond:function(){return rV},bind:function(){return r1},bindTo:function(){return rQ},chain:function(){return r9},chainFirst:function(){return r6},evalState:function(){return ie},evaluate:function(){return rX},execState:function(){return it},execute:function(){return rJ},flap:function(){return rq},flatMap:function(){return rL},flatten:function(){return rA},get:function(){return rC},gets:function(){return rk},let:function(){return r0},map:function(){return rW},modify:function(){return rE},of:function(){return rN},put:function(){return rM},sequenceArray:function(){return r7},state:function(){return ir},tap:function(){return rZ},traverseArray:function(){return r5},traverseArrayWithIndex:function(){return r3},traverseReadonlyArrayWithIndex:function(){return r4},traverseReadonlyNonEmptyArrayWithIndex:function(){return r8}});var F={};n.r(F),n.d(F,{chainStateK:function(){return il},fromStateK:function(){return ic},get:function(){return ii},gets:function(){return ia},modify:function(){return iu},put:function(){return io}});var W={};n.r(W),n.d(W,{chainFirstTaskK:function(){return is},chainTaskK:function(){return id},fromTaskK:function(){return ip},tapTask:function(){return ih}});var D={};n.r(D),n.d(D,{fromTheseK:function(){return im}});var N={};n.r(N),n.d(N,{getFunctorWithIndexComposition:function(){return iy},mapWithIndex:function(){return iv}});var L={};n.r(L);var A={};n.r(A);var j={};n.r(j);var U={};n.r(U),n.d(U,{Alt:function(){return i8},Applicative:function(){return iX},Apply:function(){return iH},Chain:function(){return iJ},ChainRec:function(){return i3},Comonad:function(){return i4},Do:function(){return i5},Foldable:function(){return i1},Functor:function(){return iV},Monad:function(){return iQ},Pointed:function(){return iz},Traversable:function(){return i2},URI:function(){return iG},alt:function(){return iq},altW:function(){return iU},ap:function(){return iC},apFirst:function(){return iZ},apS:function(){return oe},apSecond:function(){return i$},bind:function(){return i6},bindTo:function(){return i7},chain:function(){return ot},chainFirst:function(){return i0},duplicate:function(){return iF},extend:function(){return ik},extract:function(){return iP},flap:function(){return iK},flatMap:function(){return iE},flatten:function(){return iW},foldMap:function(){return iN},getEq:function(){return iY},getShow:function(){return iB},identity:function(){return on},let:function(){return i9},map:function(){return iR},of:function(){return iM},reduce:function(){return iD},reduceRight:function(){return iL},sequence:function(){return ij},traverse:function(){return iA}});var q={};n.r(q);var G={};n.r(G),n.d(G,{ApT:function(){return oF},Applicative:function(){return ob},Apply:function(){return oy},Chain:function(){return oS},ChainRec:function(){return oO},Do:function(){return oC},FromIO:function(){return oR},Functor:function(){return od},Monad:function(){return oT},MonadIO:function(){return ow},Pointed:function(){return ov},URI:function(){return op},ap:function(){return oa},apFirst:function(){return og},apS:function(){return oP},apSecond:function(){return o_},as:function(){return os},asUnit:function(){return oh},bind:function(){return ok},bindTo:function(){return oM},chain:function(){return oj},chainFirst:function(){return oU},flap:function(){return om},flatMap:function(){return of},flatten:function(){return ol},fromIO:function(){return ox},getMonoid:function(){return oB},getSemigroup:function(){return oG},io:function(){return oq},let:function(){return oE},map:function(){return ou},of:function(){return oc},sequenceArray:function(){return oA},tap:function(){return oI},traverseArray:function(){return oL},traverseArrayWithIndex:function(){return oN},traverseReadonlyArrayWithIndex:function(){return oD},traverseReadonlyNonEmptyArrayWithIndex:function(){return oW}});var B={};n.r(B),n.d(B,{Alt:function(){return uK},ApT:function(){return ay},Applicative:function(){return aC},ApplicativePar:function(){return uL},ApplicativeSeq:function(){return uA},ApplyPar:function(){return uP},Bifunctor:function(){return uk},Chain:function(){return uj},Do:function(){return al},FromEither:function(){return uq},FromIO:function(){return uG},Functor:function(){return uO},Monad:function(){return uU},MonadIO:function(){return uz},MonadThrow:function(){return uH},Pointed:function(){return uE},URI:function(){return uS},alt:function(){return ug},altW:function(){return u_},ap:function(){return ud},apFirst:function(){return uF},apFirstW:function(){return uW},apS:function(){return am},apSW:function(){return av},apSecond:function(){return uD},apSecondW:function(){return uN},apW:function(){return us},as:function(){return uR},asUnit:function(){return uC},bimap:function(){return uf},bind:function(){return as},bindTo:function(){return ap},bindW:function(){return ah},bracket:function(){return ac},bracketW:function(){return af},chain:function(){return aM},chainEitherK:function(){return ae},chainEitherKW:function(){return at},chainFirst:function(){return ak},chainFirstEitherK:function(){return an},chainFirstEitherKW:function(){return ar},chainFirstIOK:function(){return u$},chainFirstW:function(){return aP},chainIOK:function(){return u6},chainOptionK:function(){return uQ},chainOptionKW:function(){return u0},chainW:function(){return aE},filterOrElse:function(){return ao},filterOrElseW:function(){return au},flap:function(){return uM},flatMap:function(){return um},flatMapEither:function(){return u7},flatMapIO:function(){return u9},flatMapNullable:function(){return u3},flatMapOption:function(){return u5},flatten:function(){return uy},flattenW:function(){return uv},fold:function(){return oQ},foldW:function(){return o1},fromEither:function(){return oH},fromEitherK:function(){return aa},fromIO:function(){return oZ},fromIOK:function(){return uZ},fromOption:function(){return uX},fromOptionK:function(){return uJ},fromPredicate:function(){return ai},getAltIOValidation:function(){return uI},getApplicativeIOValidation:function(){return uT},getApplyMonoid:function(){return aL},getApplySemigroup:function(){return aN},getCompactable:function(){return ux},getFilterable:function(){return uw},getIOValidation:function(){return aj},getOrElse:function(){return o2},getOrElseW:function(){return o8},getSemigroup:function(){return aA},ioEither:function(){return aD},left:function(){return oY},leftIO:function(){return oz},let:function(){return ad},liftNullable:function(){return u2},liftOption:function(){return u8},map:function(){return ua},mapBoth:function(){return uc},mapError:function(){return ul},mapLeft:function(){return up},match:function(){return o$},matchE:function(){return oJ},matchEW:function(){return o0},matchW:function(){return oX},of:function(){return uh},orElse:function(){return o7},orElseFirst:function(){return aF},orElseFirstIOK:function(){return ue},orElseFirstW:function(){return aW},orElseW:function(){return o9},orLeft:function(){return ut},right:function(){return oV},rightIO:function(){return oK},sequenceArray:function(){return ax},sequenceSeqArray:function(){return aR},swap:function(){return un},tap:function(){return uB},tapEither:function(){return uY},tapError:function(){return o6},tapIO:function(){return uV},throwError:function(){return ub},toUnion:function(){return o5},traverseArray:function(){return aI},traverseArrayWithIndex:function(){return aT},traverseReadonlyArrayWithIndex:function(){return a_},traverseReadonlyArrayWithIndexSeq:function(){return aS},traverseReadonlyNonEmptyArrayWithIndex:function(){return ag},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return ab},traverseSeqArray:function(){return aO},traverseSeqArrayWithIndex:function(){return aw},tryCatch:function(){return o4},tryCatchK:function(){return o3}});var Y={};n.r(Y),n.d(Y,{alt:function(){return a8},ap:function(){return a0},chain:function(){return a1},chainNullableK:function(){return aV},chainOptionK:function(){return az},flatMap:function(){return a2},fromEither:function(){return aZ},fromF:function(){return aG},fromNullable:function(){return aB},fromNullableK:function(){return aY},fromOptionK:function(){return aK},fromPredicate:function(){return aH},getOptionM:function(){return a4},getOrElse:function(){return aJ},map:function(){return aQ},match:function(){return a$},matchE:function(){return aX},some:function(){return aU},zero:function(){return aq}});var V={};n.r(V),n.d(V,{Alt:function(){return cQ},Alternative:function(){return c2},ApT:function(){return fm},Applicative:function(){return cK},Apply:function(){return cB},Chain:function(){return cz},Compactable:function(){return c3},Do:function(){return fl},Filterable:function(){return c5},FromEither:function(){return cH},FromIO:function(){return cZ},Functor:function(){return cA},Monad:function(){return c8},MonadIO:function(){return c4},Pointed:function(){return cG},URI:function(){return cL},Zero:function(){return c0},alt:function(){return cb},altW:function(){return cS},ap:function(){return cv},apFirst:function(){return cY},apS:function(){return fh},apSecond:function(){return cV},as:function(){return cj},asUnit:function(){return cU},bind:function(){return fs},bindTo:function(){return fp},chain:function(){return fg},chainEitherK:function(){return fa},chainFirst:function(){return f_},chainFirstEitherK:function(){return fc},chainFirstIOK:function(){return fo},chainIOK:function(){return fi},chainNullableK:function(){return cs},chainOptionK:function(){return ff},compact:function(){return cx},filter:function(){return cO},filterMap:function(){return cR},flap:function(){return cq},flatMap:function(){return cg},flatMapEither:function(){return ft},flatMapIO:function(){return c6},flatMapNullable:function(){return fn},flatMapOption:function(){return fe},flatten:function(){return c_},fold:function(){return co},fromEither:function(){return a6},fromEitherK:function(){return fu},fromIO:function(){return ce},fromIOEither:function(){return ct},fromIOK:function(){return fr},fromNullable:function(){return cp},fromNullableK:function(){return cd},fromOption:function(){return a9},fromOptionK:function(){return ch},fromPredicate:function(){return a7},getOrElse:function(){return ca},getOrElseW:function(){return cc},guard:function(){return c1},let:function(){return fd},map:function(){return cm},match:function(){return cn},matchE:function(){return ci},matchEW:function(){return cu},matchW:function(){return cr},none:function(){return cI},of:function(){return cy},partition:function(){return cC},partitionMap:function(){return cM},separate:function(){return cw},some:function(){return a5},tap:function(){return c$},tapEither:function(){return cX},tapIO:function(){return cJ},toNullable:function(){return cl},toUndefined:function(){return cf},traverseReadonlyArrayWithIndex:function(){return fy},traverseReadonlyNonEmptyArrayWithIndex:function(){return fv},zero:function(){return cT}});var K={};n.r(K),n.d(K,{IORef:function(){return fb},newIORef:function(){return fS}});var z={};n.r(z);var H={};n.r(H),n.d(H,{parse:function(){return fT},stringify:function(){return fI}});var Z={};n.r(Z);var $={};n.r($);var X={};n.r(X);var J={};n.r(J);var Q={};n.r(Q);var ee={};n.r(ee);var et={};n.r(et);var en={};n.r(en),n.d(en,{Eq:function(){return fk},Monoid:function(){return fF},Semigroup:function(){return fP},eqOrdering:function(){return fL},invert:function(){return fD},match:function(){return fM},matchW:function(){return fC},monoidOrdering:function(){return fA},reverse:function(){return fE},semigroupOrdering:function(){return fN},sign:function(){return fW}});var er={};n.r(er);var ei={};n.r(ei);var eo={};n.r(eo),n.d(eo,{random:function(){return fU},randomBool:function(){return fB},randomElem:function(){return fY},randomInt:function(){return fq},randomRange:function(){return fG}});var eu={};n.r(eu),n.d(eu,{Alt:function(){return lV},ApT:function(){return pg},Applicative:function(){return lN},Apply:function(){return lk},Bifunctor:function(){return lY},Chain:function(){return lL},Do:function(){return pp},FromEither:function(){return lj},FromReader:function(){return lU},Functor:function(){return lO},Monad:function(){return lA},MonadThrow:function(){return lX},Pointed:function(){return lE},URI:function(){return lS},alt:function(){return lg},altW:function(){return l_},ap:function(){return ld},apFirst:function(){return lP},apFirstW:function(){return lF},apS:function(){return pv},apSW:function(){return py},apSecond:function(){return lW},apSecondW:function(){return lD},apW:function(){return ls},as:function(){return lR},asUnit:function(){return lC},ask:function(){return lK},asks:function(){return lz},asksReaderEither:function(){return f9},asksReaderEitherW:function(){return f7},bimap:function(){return lf},bind:function(){return ph},bindTo:function(){return pd},bindW:function(){return pm},chain:function(){return px},chainEitherK:function(){return pt},chainEitherKW:function(){return pn},chainFirst:function(){return pO},chainFirstEitherK:function(){return pr},chainFirstEitherKW:function(){return pi},chainFirstReaderK:function(){return lZ},chainFirstReaderKW:function(){return l$},chainFirstW:function(){return pR},chainOptionK:function(){return l0},chainOptionKW:function(){return l1},chainReaderK:function(){return po},chainReaderKW:function(){return pu},chainW:function(){return pw},filterOrElse:function(){return pc},filterOrElseW:function(){return pf},flap:function(){return lM},flatMap:function(){return lm},flatMapEither:function(){return l6},flatMapNullable:function(){return l7},flatMapOption:function(){return l9},flatMapReader:function(){return pe},flatten:function(){return ly},flattenW:function(){return lv},fold:function(){return f0},foldW:function(){return f2},fromEither:function(){return fZ},fromEitherK:function(){return pl},fromOption:function(){return lJ},fromOptionK:function(){return lQ},fromPredicate:function(){return pa},fromReader:function(){return f$},fromReaderK:function(){return lH},getAltReaderValidation:function(){return lw},getApplicativeReaderValidation:function(){return lx},getApplyMonoid:function(){return pP},getApplySemigroup:function(){return pk},getCompactable:function(){return lT},getFilterable:function(){return lI},getOrElse:function(){return f8},getOrElseW:function(){return f4},getReaderValidation:function(){return pW},getSemigroup:function(){return pF},left:function(){return fV},leftReader:function(){return fH},let:function(){return ps},liftNullable:function(){return l4},liftOption:function(){return l3},local:function(){return f5},map:function(){return la},mapBoth:function(){return lc},mapError:function(){return ll},mapLeft:function(){return lp},match:function(){return fX},matchE:function(){return fQ},matchEW:function(){return f1},matchW:function(){return fJ},of:function(){return lh},orElse:function(){return f6},orElseFirst:function(){return pC},orElseFirstW:function(){return pM},orElseW:function(){return le},orLeft:function(){return ln},readerEither:function(){return pE},right:function(){return fK},rightReader:function(){return fz},sequenceArray:function(){return pI},swap:function(){return lr},tap:function(){return lq},tapEither:function(){return lG},tapError:function(){return lt},tapReader:function(){return lB},throwError:function(){return lb},toUnion:function(){return f3},traverseArray:function(){return pT},traverseArrayWithIndex:function(){return pS},traverseReadonlyArrayWithIndex:function(){return pb},traverseReadonlyNonEmptyArrayWithIndex:function(){return p_}});var ea={};n.r(ea),n.d(ea,{ap:function(){return pL},chain:function(){return pA},flatMap:function(){return pj},fromNaturalTransformation:function(){return pq},fromReader:function(){return pU},getReaderM:function(){return pG},map:function(){return pN},of:function(){return pD}});var ec={};n.r(ec),n.d(ec,{ApT:function(){return dP},Applicative:function(){return dn},Apply:function(){return p6},Chain:function(){return dr},Do:function(){return dO},FromIO:function(){return da},FromReader:function(){return dc},Functor:function(){return p4},Monad:function(){return di},MonadIO:function(){return du},Pointed:function(){return p9},URI:function(){return p8},ap:function(){return pX},apFirst:function(){return de},apS:function(){return dE},apSW:function(){return dk},apSecond:function(){return dt},apW:function(){return pJ},as:function(){return p3},asUnit:function(){return p5},ask:function(){return d_},asks:function(){return db},asksReaderIO:function(){return pz},asksReaderIOW:function(){return pK},bind:function(){return dC},bindTo:function(){return dR},bindW:function(){return dM},chain:function(){return dA},chainFirst:function(){return dU},chainFirstIOK:function(){return dg},chainFirstReaderK:function(){return dx},chainFirstReaderKW:function(){return dw},chainFirstW:function(){return dq},chainIOK:function(){return dy},chainReaderK:function(){return dT},chainReaderKW:function(){return dI},chainW:function(){return dj},flap:function(){return p7},flatMap:function(){return p0},flatMapIO:function(){return dp},flatMapReader:function(){return dd},flatten:function(){return p2},flattenW:function(){return p1},fromIO:function(){return pY},fromIOK:function(){return dv},fromReader:function(){return pB},fromReaderK:function(){return dS},local:function(){return pV},map:function(){return p$},of:function(){return pQ},sequenceArray:function(){return dL},tap:function(){return ds},tapIO:function(){return dh},tapReader:function(){return dm},traverseArray:function(){return dN},traverseArrayWithIndex:function(){return dD},traverseReadonlyArrayWithIndex:function(){return dW},traverseReadonlyNonEmptyArrayWithIndex:function(){return dF}});var ef={};n.r(ef),n.d(ef,{ApT:function(){return sS},ApplicativePar:function(){return d9},ApplicativeSeq:function(){return se},ApplyPar:function(){return d3},ApplySeq:function(){return d6},Chain:function(){return st},Do:function(){return sv},FromIO:function(){return su},FromTask:function(){return sh},Functor:function(){return d0},Monad:function(){return sn},MonadIO:function(){return sr},MonadTask:function(){return so},Pointed:function(){return d4},URI:function(){return dJ},ap:function(){return dH},apFirst:function(){return d5},apS:function(){return sb},apSecond:function(){return d7},as:function(){return d1},asUnit:function(){return d2},bind:function(){return s_},bindTo:function(){return sy},chain:function(){return sP},chainFirst:function(){return sF},chainFirstIOK:function(){return ss},chainIOK:function(){return sd},delay:function(){return dB},flap:function(){return d8},flatMap:function(){return d$},flatMapIO:function(){return sc},flatten:function(){return dX},fromIO:function(){return dG},fromIOK:function(){return sp},fromTask:function(){return si},getMonoid:function(){return sL},getRaceMonoid:function(){return dQ},getSemigroup:function(){return sN},let:function(){return sg},map:function(){return dz},never:function(){return sm},of:function(){return dZ},sequenceArray:function(){return sC},sequenceSeqArray:function(){return sk},tap:function(){return sf},tapIO:function(){return sl},task:function(){return sW},taskSeq:function(){return sD},traverseArray:function(){return sR},traverseArrayWithIndex:function(){return sO},traverseReadonlyArrayWithIndex:function(){return sI},traverseReadonlyArrayWithIndexSeq:function(){return sw},traverseReadonlyNonEmptyArrayWithIndex:function(){return sT},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sx},traverseSeqArray:function(){return sE},traverseSeqArrayWithIndex:function(){return sM}});var el={};n.r(el),n.d(el,{ApT:function(){return hK},ApplicativePar:function(){return he},ApplicativeSeq:function(){return hn},ApplyPar:function(){return s7},ApplySeq:function(){return ht},Chain:function(){return hr},Do:function(){return hj},FromIO:function(){return ha},FromReader:function(){return hf},FromTask:function(){return hc},Functor:function(){return s2},Monad:function(){return hi},MonadIO:function(){return ho},MonadTask:function(){return hu},Pointed:function(){return s5},URI:function(){return s1},ap:function(){return sZ},apFirst:function(){return s9},apS:function(){return hY},apSW:function(){return hV},apSecond:function(){return s6},apW:function(){return s$},as:function(){return s8},asUnit:function(){return s4},ask:function(){return hx},asks:function(){return hw},asksReaderTask:function(){return sY},asksReaderTaskW:function(){return sB},bind:function(){return hG},bindTo:function(){return hU},bindW:function(){return hB},chain:function(){return h2},chainFirst:function(){return h4},chainFirstIOK:function(){return hI},chainFirstReaderIOK:function(){return hD},chainFirstReaderIOKW:function(){return hW},chainFirstReaderK:function(){return hM},chainFirstReaderKW:function(){return hE},chainFirstTaskK:function(){return hA},chainFirstW:function(){return h3},chainIOK:function(){return hT},chainReaderIOK:function(){return hF},chainReaderIOKW:function(){return hP},chainReaderK:function(){return hR},chainReaderKW:function(){return hC},chainTaskK:function(){return hL},chainW:function(){return h8},flap:function(){return s3},flatMap:function(){return sJ},flatMapIO:function(){return hd},flatMapReader:function(){return hh},flatMapReaderIO:function(){return hm},flatMapTask:function(){return hs},flatten:function(){return s0},flattenW:function(){return sQ},fromIO:function(){return sU},fromIOK:function(){return hS},fromReader:function(){return sA},fromReaderIO:function(){return sq},fromReaderIOK:function(){return hk},fromReaderK:function(){return hO},fromTask:function(){return sj},fromTaskK:function(){return hN},getMonoid:function(){return me},getSemigroup:function(){return h6},let:function(){return hq},local:function(){return sG},map:function(){return sH},of:function(){return sX},readerTask:function(){return h7},readerTaskSeq:function(){return h9},run:function(){return mt},sequenceArray:function(){return hQ},sequenceSeqArray:function(){return h5},tap:function(){return hv},tapIO:function(){return hy},tapReader:function(){return hg},tapReaderIO:function(){return hb},tapTask:function(){return h_},traverseArray:function(){return hJ},traverseArrayWithIndex:function(){return hX},traverseReadonlyArrayWithIndex:function(){return hH},traverseReadonlyArrayWithIndexSeq:function(){return h$},traverseReadonlyNonEmptyArrayWithIndex:function(){return hz},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return hZ},traverseSeqArray:function(){return h1},traverseSeqArrayWithIndex:function(){return h0}});var ep={};n.r(ep),n.d(ep,{Alt:function(){return vx},ApT:function(){return yr},ApplicativePar:function(){return vc},ApplicativeSeq:function(){return vl},ApplyPar:function(){return vr},ApplySeq:function(){return vf},Bifunctor:function(){return vI},Chain:function(){return vp},Do:function(){return v5},FromEither:function(){return vv},FromIO:function(){return vy},FromTask:function(){return vg},Functor:function(){return m9},Monad:function(){return vd},MonadIO:function(){return vs},MonadTask:function(){return vh},MonadThrow:function(){return vm},Pointed:function(){return vn},URI:function(){return m8},alt:function(){return mQ},altW:function(){return m0},ap:function(){return mH},apFirst:function(){return vi},apFirstW:function(){return vo},apS:function(){return yt},apSW:function(){return yn},apSecond:function(){return vu},apSecondW:function(){return va},apW:function(){return mZ},as:function(){return m6},asUnit:function(){return ve},bimap:function(){return mV},bind:function(){return v6},bindTo:function(){return v7},bindW:function(){return ye},bracket:function(){return v4},bracketW:function(){return v3},chain:function(){return yh},chainEitherK:function(){return vq},chainEitherKW:function(){return vG},chainFirst:function(){return yv},chainFirstEitherK:function(){return vB},chainFirstEitherKW:function(){return vY},chainFirstIOK:function(){return vX},chainFirstTaskK:function(){return v0},chainFirstW:function(){return yy},chainIOEitherK:function(){return v2},chainIOEitherKW:function(){return v1},chainIOK:function(){return v$},chainNullableK:function(){return mR},chainOptionK:function(){return vR},chainOptionKW:function(){return vC},chainTaskK:function(){return vQ},chainTaskOptionK:function(){return mL},chainTaskOptionKW:function(){return mN},chainW:function(){return ym},filterOrElse:function(){return vK},filterOrElseW:function(){return vz},flap:function(){return vt},flatMap:function(){return m$},flatMapEither:function(){return vN},flatMapIO:function(){return vL},flatMapIOEither:function(){return vj},flatMapNullable:function(){return vW},flatMapOption:function(){return vD},flatMapTask:function(){return vA},flatMapTaskOption:function(){return vU},flatten:function(){return mJ},flattenW:function(){return mX},fold:function(){return my},foldW:function(){return m_},fromEither:function(){return mp},fromEitherK:function(){return vH},fromIO:function(){return mf},fromIOEither:function(){return md},fromIOEitherK:function(){return mA},fromIOK:function(){return vZ},fromNullable:function(){return mw},fromNullableK:function(){return mO},fromOption:function(){return vw},fromOptionK:function(){return vO},fromPredicate:function(){return vV},fromTask:function(){return ml},fromTaskK:function(){return vJ},fromTaskOption:function(){return ms},fromTaskOptionK:function(){return mD},getAltTaskValidation:function(){return m3},getApplicativeTaskValidation:function(){return m4},getApplyMonoid:function(){return yI},getApplySemigroup:function(){return yT},getCompactable:function(){return m5},getFilterable:function(){return m7},getOrElse:function(){return mb},getOrElseW:function(){return mS},getSemigroup:function(){return yx},getTaskValidation:function(){return yw},left:function(){return mr},leftIO:function(){return mc},leftTask:function(){return mu},let:function(){return v9},liftNullable:function(){return vE},liftOption:function(){return vk},map:function(){return mB},mapBoth:function(){return mY},mapError:function(){return mK},mapLeft:function(){return mz},match:function(){return mh},matchE:function(){return mv},matchEW:function(){return mg},matchW:function(){return mm},of:function(){return m1},orElse:function(){return mC},orElseFirst:function(){return yg},orElseFirstIOK:function(){return mk},orElseFirstTaskK:function(){return mP},orElseFirstW:function(){return y_},orElseW:function(){return mM},orLeft:function(){return mF},right:function(){return mi},rightIO:function(){return ma},rightTask:function(){return mo},sequenceArray:function(){return yl},sequenceSeqArray:function(){return ys},swap:function(){return mW},tap:function(){return v_},tapEither:function(){return vb},tapError:function(){return mE},tapIO:function(){return vS},tapTask:function(){return vT},taskEither:function(){return yb},taskEitherSeq:function(){return yS},taskify:function(){return v8},throwError:function(){return m2},toUnion:function(){return mx},traverseArray:function(){return yf},traverseArrayWithIndex:function(){return yc},traverseReadonlyArrayWithIndex:function(){return yo},traverseReadonlyArrayWithIndexSeq:function(){return ya},traverseReadonlyNonEmptyArrayWithIndex:function(){return yi},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return yu},traverseSeqArray:function(){return yd},traverseSeqArrayWithIndex:function(){return yp},tryCatch:function(){return mT},tryCatchK:function(){return mI}});var ed={};n.r(ed),n.d(ed,{Alt:function(){return g3},ApT:function(){return bt},ApplicativePar:function(){return gL},ApplicativeSeq:function(){return gj},ApplyPar:function(){return gP},ApplySeq:function(){return gA},Bifunctor:function(){return g4},Chain:function(){return gU},Do:function(){return _4},FromEither:function(){return gV},FromIO:function(){return gK},FromReader:function(){return gH},FromTask:function(){return gz},Functor:function(){return gR},Monad:function(){return gq},MonadIO:function(){return gG},MonadTask:function(){return gB},MonadThrow:function(){return gY},Pointed:function(){return gk},URI:function(){return gT},alt:function(){return g_},altW:function(){return gb},ap:function(){return gs},apFirst:function(){return gF},apFirstW:function(){return gW},apS:function(){return _6},apSW:function(){return be},apSecond:function(){return gD},apSecondW:function(){return gN},apW:function(){return gh},as:function(){return gC},asUnit:function(){return gM},ask:function(){return g5},asks:function(){return g7},asksReaderTaskEither:function(){return y3},asksReaderTaskEitherW:function(){return y4},bimap:function(){return gl},bind:function(){return _7},bindTo:function(){return _3},bindW:function(){return _9},bracket:function(){return _2},bracketW:function(){return _8},chain:function(){return bd},chainEitherK:function(){return _E},chainEitherKW:function(){return _k},chainFirst:function(){return bh},chainFirstEitherK:function(){return _P},chainFirstEitherKW:function(){return _F},chainFirstIOK:function(){return _Y},chainFirstReaderEitherK:function(){return _n},chainFirstReaderEitherKW:function(){return _t},chainFirstReaderIOK:function(){return _l},chainFirstReaderIOKW:function(){return _f},chainFirstReaderK:function(){return g6},chainFirstReaderKW:function(){return _e},chainFirstReaderTaskK:function(){return _a},chainFirstReaderTaskKW:function(){return _u},chainFirstTaskEitherK:function(){return _i},chainFirstTaskEitherKW:function(){return _r},chainFirstTaskK:function(){return _z},chainFirstW:function(){return bm},chainIOEitherK:function(){return _Q},chainIOEitherKW:function(){return _J},chainIOK:function(){return _B},chainNullableK:function(){return y2},chainOptionK:function(){return _s},chainOptionKW:function(){return _h},chainReaderEitherK:function(){return _1},chainReaderEitherKW:function(){return _0},chainReaderIOK:function(){return _X},chainReaderIOKW:function(){return _$},chainReaderK:function(){return _H},chainReaderKW:function(){return _Z},chainReaderTaskK:function(){return _L},chainReaderTaskKW:function(){return _N},chainTaskEitherK:function(){return _D},chainTaskEitherKW:function(){return _W},chainTaskK:function(){return _K},chainW:function(){return bs},filterOrElse:function(){return _j},filterOrElseW:function(){return _U},flap:function(){return gE},flatMap:function(){return gv},flatMapEither:function(){return _S},flatMapIO:function(){return _x},flatMapIOEither:function(){return _C},flatMapNullable:function(){return __},flatMapOption:function(){return _b},flatMapReader:function(){return _O},flatMapReaderEither:function(){return _M},flatMapReaderIO:function(){return _R},flatMapReaderTask:function(){return _I},flatMapTask:function(){return _w},flatMapTaskEither:function(){return _T},flatten:function(){return gg},flattenW:function(){return gy},fold:function(){return yH},foldW:function(){return y$},fromEither:function(){return yj},fromEitherK:function(){return _q},fromIO:function(){return yq},fromIOEither:function(){return yB},fromIOEitherK:function(){return gt},fromIOK:function(){return _G},fromNullable:function(){return y0},fromNullableK:function(){return y1},fromOption:function(){return _p},fromOptionK:function(){return _d},fromPredicate:function(){return _A},fromReader:function(){return yU},fromReaderEither:function(){return yY},fromReaderEitherK:function(){return gr},fromReaderIOK:function(){return _c},fromReaderK:function(){return g9},fromReaderTaskK:function(){return _o},fromTask:function(){return yG},fromTaskEither:function(){return yO},fromTaskEitherK:function(){return gn},fromTaskK:function(){return _V},getAltReaderTaskValidation:function(){return gO},getApplicativeReaderTaskValidation:function(){return gw},getApplyMonoid:function(){return bS},getApplySemigroup:function(){return bb},getCompactable:function(){return gI},getFilterable:function(){return gx},getOrElse:function(){return yX},getOrElseW:function(){return yJ},getReaderTaskValidation:function(){return bI},getSemigroup:function(){return bT},left:function(){return yR},leftIO:function(){return yN},leftReader:function(){return yP},leftReaderIO:function(){return yA},leftReaderTask:function(){return yW},leftTask:function(){return yE},let:function(){return _5},liftNullable:function(){return _v},liftOption:function(){return _y},local:function(){return y8},map:function(){return gc},mapBoth:function(){return gf},mapError:function(){return gp},mapLeft:function(){return gd},match:function(){return yV},matchE:function(){return yz},matchEW:function(){return yZ},matchW:function(){return yK},of:function(){return gm},orElse:function(){return y5},orElseFirst:function(){return bv},orElseFirstW:function(){return by},orElseW:function(){return y7},orLeft:function(){return y6},readerTaskEither:function(){return bg},readerTaskEitherSeq:function(){return b_},right:function(){return yC},rightIO:function(){return yD},rightReader:function(){return yk},rightReaderIO:function(){return yL},rightReaderTask:function(){return yF},rightTask:function(){return yM},run:function(){return bx},sequenceArray:function(){return bc},sequenceSeqArray:function(){return bp},swap:function(){return ge},tap:function(){return gZ},tapEither:function(){return g$},tapError:function(){return y9},tapIO:function(){return gX},tapReader:function(){return gQ},tapReaderEither:function(){return g0},tapReaderIO:function(){return g8},tapReaderTask:function(){return g2},tapTask:function(){return gJ},tapTaskEither:function(){return g1},throwError:function(){return gS},toUnion:function(){return yQ},traverseArray:function(){return ba},traverseArrayWithIndex:function(){return bu},traverseReadonlyArrayWithIndex:function(){return br},traverseReadonlyArrayWithIndexSeq:function(){return bo},traverseReadonlyNonEmptyArrayWithIndex:function(){return bn},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return bi},traverseSeqArray:function(){return bl},traverseSeqArrayWithIndex:function(){return bf}});var es={};n.r(es),n.d(es,{Bifunctor:function(){return St},Comonad:function(){return Sr},Foldable:function(){return Si},Functor:function(){return b7},Semigroupoid:function(){return Sn},Traversable:function(){return So},URI:function(){return b5},bimap:function(){return bH},compose:function(){return bX},duplicate:function(){return b0},extend:function(){return bJ},extract:function(){return bQ},flap:function(){return b9},foldMap:function(){return b2},fst:function(){return bE},getApplicative:function(){return bD},getApply:function(){return bF},getChain:function(){return bN},getChainRec:function(){return bA},getMonad:function(){return bL},map:function(){return b6},mapFst:function(){return bZ},mapLeft:function(){return Se},mapSnd:function(){return b$},readonlyTuple:function(){return Su},reduce:function(){return b1},reduceRight:function(){return b8},sequence:function(){return b3},snd:function(){return bk},swap:function(){return bP},traverse:function(){return b4}});var eh={};n.r(eh),n.d(eh,{Compactable:function(){return Tx},Filterable:function(){return Tw},FilterableWithIndex:function(){return TO},Foldable:function(){return TW},FoldableWithIndex:function(){return TD},Functor:function(){return T_},FunctorWithIndex:function(){return TS},Traversable:function(){return TN},TraversableWithIndex:function(){return TL},URI:function(){return Tm},Witherable:function(){return TU},collect:function(){return Sm},compact:function(){return Ts},deleteAt:function(){return Sb},difference:function(){return S$},elem:function(){return Sz},empty:function(){return Tq},every:function(){return SV},filter:function(){return Tu},filterMap:function(){return Ta},filterMapWithIndex:function(){return Sj},filterWithIndex:function(){return SU},flap:function(){return Tb},foldMap:function(){return Tp},foldMapWithIndex:function(){return SM},fromEntries:function(){return SB},fromFoldable:function(){return Sq},fromFoldableMap:function(){return SY},getDifferenceMagma:function(){return TF},getEq:function(){return Ty},getFoldable:function(){return TT},getFoldableWithIndex:function(){return TI},getIntersectionSemigroup:function(){return TP},getMonoid:function(){return Tg},getShow:function(){return Tv},getTraversable:function(){return TR},getTraversableWithIndex:function(){return TC},getUnionMonoid:function(){return Tk},getUnionSemigroup:function(){return TE},getWitherable:function(){return TM},has:function(){return S_},hasOwnProperty:function(){return TB},insertAt:function(){return TG},intersection:function(){return SZ},isEmpty:function(){return Sd},isSubrecord:function(){return Sx},keys:function(){return Sh},lookup:function(){return Sw},map:function(){return SR},mapWithIndex:function(){return SO},modifyAt:function(){return ST},partition:function(){return Tc},partitionMap:function(){return Tf},partitionMapWithIndex:function(){return SL},partitionWithIndex:function(){return SA},pop:function(){return SI},record:function(){return TY},reduce:function(){return Tl},reduceRight:function(){return Td},reduceRightWithIndex:function(){return SE},reduceWithIndex:function(){return SC},separate:function(){return Th},sequence:function(){return SW},singleton:function(){return Sk},size:function(){return Sp},some:function(){return SK},toArray:function(){return Sv},toEntries:function(){return SG},toUnfoldable:function(){return Sy},traverse:function(){return SF},traverseWithIndex:function(){return SP},union:function(){return SH},updateAt:function(){return SS},upsertAt:function(){return Sg},wilt:function(){return SN},wither:function(){return SD}});var em={};n.r(em),n.d(em,{and:function(){return T$},compose:function(){return TJ},fromEitherK:function(){return TK},fromOptionK:function(){return TV},id:function(){return Tz},not:function(){return TH},or:function(){return TZ},zero:function(){return TX}});var ev={};n.r(ev),n.d(ev,{getFunctionRing:function(){return T2},getTupleRing:function(){return T1},negate:function(){return T0},tuple:function(){return TQ}});var ey={};n.r(ey);var eg={};n.r(eg),n.d(eg,{getFunctionSemiring:function(){return T8}});var e_={};n.r(e_),n.d(e_,{getStructShow:function(){return T9},getTupleShow:function(){return T7},showBoolean:function(){return T6},showNumber:function(){return It},showString:function(){return Ie},struct:function(){return T3},tuple:function(){return T5}});var eb={};n.r(eb),n.d(eb,{ap:function(){return Ii},chain:function(){return Io},evaluate:function(){return If},execute:function(){return Il},flatMap:function(){return Iu},fromF:function(){return Ic},fromState:function(){return Ia},getStateM:function(){return Ip},map:function(){return Ir},of:function(){return In}});var eS={};n.r(eS),n.d(eS,{Alt:function(){return xL},Applicative:function(){return xh},Apply:function(){return xf},Bifunctor:function(){return xN},Chain:function(){return xm},FromEither:function(){return xR},FromIO:function(){return xC},FromReader:function(){return xE},FromState:function(){return xv},FromTask:function(){return xM},Functor:function(){return xi},Monad:function(){return xI},MonadIO:function(){return xx},MonadTask:function(){return xw},MonadThrow:function(){return xO},Pointed:function(){return xc},URI:function(){return xr},alt:function(){return xt},altW:function(){return xe},ap:function(){return Iz},apFirst:function(){return xl},apFirstW:function(){return xp},apS:function(){return wf},apSW:function(){return wl},apSecond:function(){return xd},apSecondW:function(){return xs},apW:function(){return IH},as:function(){return xo},asUnit:function(){return xu},ask:function(){return xA},asks:function(){return xj},asksStateReaderTaskEither:function(){return IF},asksStateReaderTaskEitherW:function(){return IP},bimap:function(){return IV},bind:function(){return wa},bindTo:function(){return wo},bindW:function(){return wc},chain:function(){return wv},chainEitherK:function(){return xZ},chainEitherKW:function(){return x$},chainFirst:function(){return wg},chainFirstEitherK:function(){return xX},chainFirstEitherKW:function(){return xJ},chainFirstIOK:function(){return x3},chainFirstReaderK:function(){return xB},chainFirstReaderKW:function(){return xY},chainFirstTaskK:function(){return wn},chainFirstW:function(){return w_},chainIOEitherK:function(){return x6},chainIOEitherKW:function(){return x9},chainIOK:function(){return x4},chainOptionK:function(){return xz},chainOptionKW:function(){return xH},chainReaderK:function(){return xq},chainReaderKW:function(){return xG},chainReaderTaskEitherK:function(){return IA},chainReaderTaskEitherKW:function(){return IL},chainStateK:function(){return xT},chainTaskEitherK:function(){return x7},chainTaskEitherKW:function(){return x5},chainTaskK:function(){return wt},chainW:function(){return wy},evalState:function(){return wT},evaluate:function(){return wr},execState:function(){return wI},execute:function(){return wi},filterOrElse:function(){return x0},filterOrElseW:function(){return x1},flap:function(){return xa},flatMap:function(){return IX},flatMapEither:function(){return I4},flatMapIO:function(){return I0},flatMapIOEither:function(){return I8},flatMapOption:function(){return I3},flatMapReader:function(){return I2},flatMapReaderTaskEither:function(){return I5},flatMapState:function(){return I7},flatMapTask:function(){return I1},flatMapTaskEither:function(){return IQ},flatten:function(){return I6},flattenW:function(){return I9},fromEither:function(){return IT},fromEitherK:function(){return x2},fromIO:function(){return Ix},fromIOEither:function(){return IC},fromIOEitherK:function(){return IW},fromIOK:function(){return x8},fromOption:function(){return xV},fromOptionK:function(){return xK},fromPredicate:function(){return xQ},fromReader:function(){return II},fromReaderEither:function(){return IM},fromReaderK:function(){return xU},fromReaderTaskEither:function(){return IE},fromReaderTaskEitherK:function(){return IN},fromState:function(){return IO},fromStateK:function(){return xS},fromTask:function(){return Iw},fromTaskEither:function(){return IR},fromTaskEitherK:function(){return ID},fromTaskK:function(){return we},get:function(){return xy},gets:function(){return xb},left:function(){return Id},leftIO:function(){return I_},leftReader:function(){return Iy},leftState:function(){return IS},leftTask:function(){return Im},let:function(){return wu},local:function(){return Ik},map:function(){return IY},mapLeft:function(){return IK},modify:function(){return x_},of:function(){return IZ},put:function(){return xg},right:function(){return Is},rightIO:function(){return Ig},rightReader:function(){return Iv},rightState:function(){return Ib},rightTask:function(){return Ih},run:function(){return wx},sequenceArray:function(){return wm},stateReaderTaskEither:function(){return wb},stateReaderTaskEitherSeq:function(){return wS},tap:function(){return xk},tapEither:function(){return xP},tapIO:function(){return xF},tapReader:function(){return xD},tapTask:function(){return xW},throwError:function(){return xn},traverseArray:function(){return wh},traverseArrayWithIndex:function(){return ws},traverseReadonlyArrayWithIndex:function(){return wd},traverseReadonlyNonEmptyArrayWithIndex:function(){return wp}});var eT={};n.r(eT),n.d(eT,{Comonad:function(){return wA},Functor:function(){return wN},URI:function(){return wD},duplicate:function(){return wF},experiment:function(){return wC},extend:function(){return wk},extract:function(){return wP},flap:function(){return wL},map:function(){return wW},peeks:function(){return wR},seek:function(){return ww},seeks:function(){return wO},store:function(){return wj}});var eI={};n.r(eI),n.d(eI,{fanOut:function(){return wq},fanout:function(){return wB},split:function(){return wU},splitStrong:function(){return wG}});var ex={};n.r(ex),n.d(ex,{evolve:function(){return wV},getAssignSemigroup:function(){return wY}});var ew={};n.r(ew),n.d(ew,{Alt:function(){return OX},Alternative:function(){return O0},ApT:function(){return Rl},ApplicativePar:function(){return Oj},ApplicativeSeq:function(){return OG},ApplyPar:function(){return ON},ApplySeq:function(){return Oq},Chain:function(){return OB},Compactable:function(){return O4},Do:function(){return Ro},Filterable:function(){return O3},FromEither:function(){return OY},FromIO:function(){return OV},FromTask:function(){return OK},Functor:function(){return Ok},Monad:function(){return O1},MonadIO:function(){return O2},MonadTask:function(){return O8},Pointed:function(){return OD},URI:function(){return OE},Zero:function(){return OJ},alt:function(){return Os},altW:function(){return Oh},ap:function(){return Ou},apFirst:function(){return OL},apS:function(){return Rf},apSecond:function(){return OA},as:function(){return OP},asUnit:function(){return OF},bind:function(){return Rc},bindTo:function(){return Ru},chain:function(){return RS},chainEitherK:function(){return Re},chainFirst:function(){return RT},chainFirstEitherK:function(){return Rt},chainFirstIOK:function(){return O9},chainFirstTaskK:function(){return Ri},chainIOK:function(){return O7},chainNullableK:function(){return On},chainOptionK:function(){return Oi},chainTaskK:function(){return Rr},compact:function(){return Oy},filter:function(){return O_},filterMap:function(){return Ob},flap:function(){return OW},flatMap:function(){return Oc},flatMapIO:function(){return Ol},flatMapTask:function(){return Op},flatten:function(){return Od},fold:function(){return w8},foldW:function(){return w3},fromEither:function(){return w$},fromEitherK:function(){return O6},fromIO:function(){return wX},fromIOK:function(){return O5},fromNullable:function(){return w9},fromNullableK:function(){return Ot},fromOption:function(){return wZ},fromOptionK:function(){return Or},fromPredicate:function(){return wH},fromTask:function(){return wJ},fromTaskEither:function(){return wQ},fromTaskK:function(){return Rn},getOrElse:function(){return w5},getOrElseW:function(){return w7},guard:function(){return OQ},let:function(){return Ra},map:function(){return Oo},match:function(){return w0},matchE:function(){return w2},matchEW:function(){return w4},matchW:function(){return w1},none:function(){return Ov},of:function(){return Oa},partition:function(){return OS},partitionMap:function(){return OT},separate:function(){return Og},sequenceArray:function(){return Ry},sequenceSeqArray:function(){return Rb},some:function(){return wz},tap:function(){return Oz},tapEither:function(){return OH},tapIO:function(){return OZ},tapTask:function(){return O$},traverseArray:function(){return Rv},traverseArrayWithIndex:function(){return Rm},traverseReadonlyArrayWithIndex:function(){return Rd},traverseReadonlyArrayWithIndexSeq:function(){return Rh},traverseReadonlyNonEmptyArrayWithIndex:function(){return Rp},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Rs},traverseSeqArray:function(){return R_},traverseSeqArrayWithIndex:function(){return Rg},tryCatch:function(){return w6},tryCatchK:function(){return Oe},zero:function(){return Om}});var eO={};n.r(eO),n.d(eO,{ApT:function(){return Cv},Bifunctor:function(){return Ci},Foldable:function(){return Cu},FromEither:function(){return Cc},FromThese:function(){return Co},Functor:function(){return Ct},Pointed:function(){return Cr},Traversable:function(){return Ca},URI:function(){return Ce},bimap:function(){return R1},both:function(){return RC},elem:function(){return Cd},exists:function(){return Cs},flap:function(){return Cn},fold:function(){return RP},foldMap:function(){return R3},foldW:function(){return RE},fromOption:function(){return Cl},fromOptionK:function(){return Cp},fromOptions:function(){return Rz},fromPredicate:function(){return Cf},getApplicative:function(){return RA},getApply:function(){return RL},getChain:function(){return Rj},getEq:function(){return RD},getLeft:function(){return Rq},getLeftOnly:function(){return RV},getMonad:function(){return RU},getRight:function(){return RG},getRightOnly:function(){return RK},getSemigroup:function(){return RN},getShow:function(){return RW},isBoth:function(){return Rw},isLeft:function(){return RI},isRight:function(){return Rx},left:function(){return RO},leftOrBoth:function(){return RB},map:function(){return R8},mapLeft:function(){return R2},match:function(){return Rk},matchW:function(){return RM},of:function(){return R6},reduce:function(){return R4},reduceRight:function(){return R5},right:function(){return RR},rightOrBoth:function(){return RY},sequence:function(){return R9},swap:function(){return RF},these:function(){return C_},toTuple:function(){return Cm},toTuple2:function(){return Ch},traverse:function(){return R7},traverseReadonlyArrayWithIndex:function(){return Cg},traverseReadonlyNonEmptyArrayWithIndex:function(){return Cy}});var eR={};n.r(eR),n.d(eR,{ap:function(){return CO},bimap:function(){return CC},both:function(){return CT},chain:function(){return CR},getTheseM:function(){return CW},left:function(){return CS},leftF:function(){return Cx},map:function(){return Cw},mapLeft:function(){return CM},match:function(){return CE},matchE:function(){return Ck},right:function(){return Cb},rightF:function(){return CI},swap:function(){return CP},toTuple2:function(){return CF}});var eC={};n.r(eC),n.d(eC,{ApT:function(){return My},Bifunctor:function(){return Mo},FromEither:function(){return Mu},FromIO:function(){return Md},FromTask:function(){return Mh},FromThese:function(){return Ml},Functor:function(){return Mn},Pointed:function(){return Mi},URI:function(){return C7},bifunctorTaskThese:function(){return MI},bimap:function(){return C4},both:function(){return CL},flap:function(){return Mr},fold:function(){return C$},foldW:function(){return CJ},fromEither:function(){return CG},fromIO:function(){return CY},fromIOEither:function(){return CV},fromIOK:function(){return Ms},fromOption:function(){return Ma},fromOptionK:function(){return Mc},fromPredicate:function(){return Mf},fromTask:function(){return CK},fromTaskK:function(){return Mm},fromThese:function(){return CB},fromTheseK:function(){return Mp},functorTaskThese:function(){return MT},getApplicative:function(){return C6},getApply:function(){return C9},getChain:function(){return Me},getMonad:function(){return Mt},getSemigroup:function(){return MO},left:function(){return CD},leftIO:function(){return Cq},leftTask:function(){return Cj},map:function(){return C8},mapLeft:function(){return C3},match:function(){return Cz},matchE:function(){return CZ},matchEW:function(){return CX},matchW:function(){return CH},of:function(){return C5},right:function(){return CN},rightIO:function(){return CU},rightTask:function(){return CA},swap:function(){return CQ},taskThese:function(){return Mw},toTuple:function(){return Mx},toTuple2:function(){return Mv},traverseReadonlyArrayWithIndex:function(){return M_},traverseReadonlyArrayWithIndexSeq:function(){return MS},traverseReadonlyNonEmptyArrayWithIndex:function(){return Mg},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return Mb}});var eM={};n.r(eM),n.d(eM,{Functor:function(){return MD},URI:function(){return MW},censor:function(){return ME},flap:function(){return MN},getComonad:function(){return Mk},listen:function(){return MC},listens:function(){return MM},map:function(){return MF},traced:function(){return ML},tracks:function(){return MR}});var eE={};n.r(eE),n.d(eE,{getTraversableComposition:function(){return MU},sequence:function(){return Mj},traverse:function(){return MA}});var ek={};n.r(ek);var eP={};n.r(eP),n.d(eP,{Applicative:function(){return Em},Apply:function(){return Ed},Chain:function(){return Ev},Comonad:function(){return ES},Do:function(){return ET},Foldable:function(){return E_},Functor:function(){return Ef},Monad:function(){return Ey},Pointed:function(){return Ep},Traversable:function(){return Eb},URI:function(){return Ec},ap:function(){return M3},apFirst:function(){return Es},apS:function(){return EO},apSecond:function(){return Eh},bind:function(){return Ew},bindTo:function(){return EI},chain:function(){return EM},chainFirst:function(){return Eg},drawForest:function(){return MV},drawTree:function(){return MK},duplicate:function(){return M9},elem:function(){return ER},exists:function(){return EC},extend:function(){return M7},extract:function(){return Ei},flap:function(){return El},flatMap:function(){return M5},flatten:function(){return M6},fold:function(){return MX},foldMap:function(){return En},getEq:function(){return MB},getShow:function(){return MG},let:function(){return Ex},make:function(){return Mq},map:function(){return Ee},of:function(){return Ea},reduce:function(){return Et},reduceRight:function(){return Er},sequence:function(){return Eu},traverse:function(){return Eo},tree:function(){return EE},unfoldForest:function(){return MH},unfoldForestM:function(){return M$},unfoldTree:function(){return Mz},unfoldTreeM:function(){return MZ}});var eF={};n.r(eF),n.d(eF,{Bifunctor:function(){return ke},Comonad:function(){return kn},Foldable:function(){return kr},Functor:function(){return E9},Semigroupoid:function(){return kt},Traversable:function(){return ki},URI:function(){return E7},bimap:function(){return EZ},compose:function(){return EJ},duplicate:function(){return E0},extend:function(){return EQ},extract:function(){return E1},flap:function(){return E6},foldMap:function(){return E2},fst:function(){return Ek},getApplicative:function(){return EN},getApply:function(){return EW},getChain:function(){return EL},getChainRec:function(){return Ej},getMonad:function(){return EA},map:function(){return ko},mapFst:function(){return E$},mapLeft:function(){return ku},mapSnd:function(){return EX},reduce:function(){return E8},reduceRight:function(){return E4},sequence:function(){return E5},snd:function(){return EP},swap:function(){return EF},traverse:function(){return E3},tuple:function(){return ka}});var eW={};n.r(eW);var eD={};n.r(eD),n.d(eD,{getValidationM:function(){return kc}});var eN={};n.r(eN),n.d(eN,{Monoid:function(){return kl},Semigroup:function(){return kf}});var eL={};n.r(eL),n.d(eL,{Functor:function(){return kx},URI:function(){return kg},censor:function(){return km},evalWriter:function(){return kC},evaluate:function(){return kO},execWriter:function(){return kM},execute:function(){return kR},flap:function(){return kw},getApplicative:function(){return kS},getApply:function(){return kb},getChain:function(){return kT},getMonad:function(){return kI},getPointed:function(){return k_},listen:function(){return kd},listens:function(){return kh},map:function(){return ky},pass:function(){return ks},tell:function(){return kp},writer:function(){return kE}});var eA={};function ej(e){return function(t){return function(n){return n.reduce(function(t,n){return e.alt(t,function(){return n})},t)}}}n.r(eA),n.d(eA,{getWriterM:function(){return kk}});var eU=n(42925);function eq(e){return ej(e)(e.zero())}function eG(e){var t=(0,eU.getApplySemigroup)(e);return function(n){var r=t(n);return{concat:function(t,n){return e.alt(r.concat(t,n),function(){return e.alt(t,function(){return n})})},empty:e.zero()}}}var eB=n(46111),eY=n(1358),eV=function(e){return"boolean"==typeof e},eK=function(e,t){return function(n){return n?t():e()}},ez=eK,eH=ez,eZ=eH,e$={equals:function(e,t){return e===t}},eX={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},eJ={concat:function(e,t){return e&&t}},eQ={concat:function(e,t){return e||t}},e0={concat:eJ.concat,empty:!0},e1={concat:eQ.concat,empty:!1},e2={equals:e$.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},e8={show:function(e){return JSON.stringify(e)}},e4=n(42275),e3=function(e){return{meet:function(t,n){return e.join(t,n)},join:function(t,n){return e.meet(t,n)},zero:e.one,one:e.zero,implies:function(t,n){return e.join(e.not(t),n)},not:e.not}},e5={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},e7=e3,e9={meet:function(e,t){return e&&t},join:function(e,t){return e||t},zero:!1,one:!0,implies:function(e,t){return!e||t},not:function(e){return!e}},e6=e4.getBooleanAlgebra,te=n(5586),tt=function(e){return te.clamp(e)(e.bottom,e.top)},tn=function(e){var t=te.reverse(e);return{equals:t.equals,compare:t.compare,top:e.bottom,bottom:e.top}},tr={equals:te.ordNumber.equals,compare:te.ordNumber.compare,top:1/0,bottom:-1/0};function ti(e){return{meet:(0,te.min)(e),join:(0,te.max)(e)}}function to(e){var t=ti(e);return function(e,n){return{join:t.join,meet:t.meet,zero:e,one:n}}}var tu=n(88543),ta=n(56661);function tc(e,t){return function(n,r){return t.compose(e.right(r),e.left(n))}}function tf(e,t){var n=tc(e,t);return function(r,i){return t.compose(e.promap(t.id(),function(e){return"Left"===e._tag?e.left:e.right},e4.identity),n(r,i))}}function tl(e){return tc(e,e)}function tp(e){return tf(e,e)}var td=n(67560),ts=n(20492),th=n(34219);function tm(e,t){return function(n){return e.map(n,t.compact)}}function tv(e,t,n){var r=tm(e,t),i=(0,td.map)(e,n);return function(e){return th.separated(r((0,e4.pipe)(e,i(ts.getLeft))),r((0,e4.pipe)(e,i(ts.getRight))))}}function ty(e,t){return{map:(0,td.getFunctorComposition)(e,t).map,compact:tm(e,t),separate:tv(e,t,t)}}var tg=function(e){return function(){return console.log(e)}},t_=function(e){return function(){return console.warn(e)}},tb=function(e){return function(){return console.error(e)}},tS=function(e){return function(){return console.info(e)}},tT=n(90817),tI=n(76627),tx={equals:function(e,t){return e.valueOf()===t.valueOf()}},tw={equals:function(e,t){return e.getDate()===t.getDate()}},tO={equals:function(e,t){return e.getMonth()===t.getMonth()}},tR={equals:function(e,t){return e.getFullYear()===t.getFullYear()}},tC=(0,e4.pipe)(tI.Ord,te.contramap(function(e){return e.valueOf()})),tM=function(){return new Date},tE=function(){return new Date().getTime()},tk=n(81878);function tP(e){return(0,e4.flow)(tk.right,e.of)}function tF(e){return(0,e4.flow)(tk.left,e.of)}function tW(e){return function(t){return e.map(t,tk.right)}}function tD(e){return function(t){return e.map(t,tk.left)}}function tN(e){return function(t){return(0,e4.flow)(tk.fromNullable(t),e.of)}}function tL(e){var t=tN(e);return function(e){var n=t(e);return function(e){return(0,e4.flow)(e,n)}}}function tA(e){var t=tq(e),n=tL(e);return function(e){var r=n(e);return function(e){return t(r(e))}}}function tj(e){return(0,td.map)(e,tk.Functor)}function tU(e){return(0,eU.ap)(e,tk.Apply)}function tq(e){var t=tG(e);return function(e){return function(n){return t(n,e)}}}function tG(e){return function(t,n){return e.chain(t,function(t){return tk.isLeft(t)?e.of(t):n(t.right)})}}function tB(e){return function(t){return function(n){return e.chain(n,function(n){return tk.isLeft(n)?t():e.of(n)})}}}function tY(e){var t=tV(e);return function(e,n){return function(r){return t(r,e,n)}}}function tV(e){return function(t,n,r){return e.map(t,tk.bimap(n,r))}}function tK(e){var t=tz(e);return function(e){return function(n){return t(n,e)}}}function tz(e){return function(t,n){return e.map(t,tk.mapLeft(n))}}function tH(e,t){return function(n){return function(r){return e.chain(r,tk.match(function(r){return e.map(n(),tk.mapLeft(function(e){return t.concat(r,e)}))},tP(e)))}}}function tZ(e){return function(t,n){return function(r){return e.map(r,tk.match(t,n))}}}function t$(e){return function(t,n){return function(r){return e.chain(r,tk.match(t,n))}}}function tX(e){return function(t){return function(n){return e.chain(n,tk.match(t,e.of))}}}function tJ(e){return function(t){return function(n){return e.chain(n,function(n){return tk.isLeft(n)?t(n.left):e.of(n)})}}}function tQ(e){var t=t0(e);return function(e){return function(n){return t(n,e)}}}function t0(e){var t=tJ(e);return function(n,r){return(0,e4.pipe)(n,t(function(t){return e.map(r(t),function(e){return tk.isLeft(e)?e:tk.left(t)})}))}}function t1(e){return function(t){return function(n){return e.chain(n,tk.match(function(n){return e.map(t(n),tk.left)},function(t){return e.of(tk.right(t))}))}}}function t2(e){return function(t){return e.map(t,tk.swap)}}function t8(e){return function(t){return e.map(t,tk.toUnion)}}function t4(e){var t=tU(e),n=tj(e),r=tq(e),i=tB(e),o=tY(e),u=tK(e),a=t$(e),c=tX(e),f=tJ(e);return{map:function(e,t){return(0,e4.pipe)(e,n(t))},ap:function(e,n){return(0,e4.pipe)(e,t(n))},of:tP(e),chain:function(e,t){return(0,e4.pipe)(e,r(t))},alt:function(e,t){return(0,e4.pipe)(e,i(t))},bimap:function(e,t,n){return(0,e4.pipe)(e,o(t,n))},mapLeft:function(e,t){return(0,e4.pipe)(e,u(t))},fold:function(e,t,n){return(0,e4.pipe)(e,a(t,n))},getOrElse:function(e,t){return(0,e4.pipe)(e,c(t))},orElse:function(e,t){return(0,e4.pipe)(e,f(t))},swap:t2(e),rightM:tW(e),leftM:tD(e),left:tF(e)}}var t3=n(47797),t5=n(65191);function t7(e,t){var n=t.zero,r=function(i,o){return e.equals(o,n)?i:r(o,t.mod(i,o))};return r}function t9(e,t){var n=t.zero,r=t7(e,t);return function(i,o){return e.equals(i,n)||e.equals(o,n)?n:t.div(t.mul(i,o),r(i,o))}}var t6={add:function(e,t){return e+t},zero:0,mul:function(e,t){return e*t},one:1,sub:function(e,t){return e-t},degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}},ne=n(88491);function nt(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filter(e,n)})}}}function nn(e,t){return function(n){return function(r){return e.map(r,function(e){return t.filterMap(e,n)})}}}function nr(e,t){var n=nt(e,t);return function(e){var t=n((0,ne.not)(e)),r=n(e);return function(e){return(0,th.separated)(t(e),r(e))}}}function ni(e,t){var n=nn(e,t);return function(e){return function(t){return(0,th.separated)((0,e4.pipe)(t,n(function(t){return(0,ts.getLeft)(e(t))})),(0,e4.pipe)(t,n(function(t){return(0,ts.getRight)(e(t))})))}}}function no(e,t){var n=(0,td.getFunctorComposition)(e,t).map,r=tm(e,t),i=tv(e,t,t),o=nt(e,t),u=nn(e,t),a=nr(e,t),c=ni(e,t);return{map:n,compact:r,separate:i,filter:function(e,t){return(0,e4.pipe)(e,o(t))},filterMap:function(e,t){return(0,e4.pipe)(e,u(t))},partition:function(e,t){return(0,e4.pipe)(e,a(t))},partitionMap:function(e,t){return(0,e4.pipe)(e,c(t))}}}function nu(e,t){return function(n,r){return function(i){return e.reduce(i,n,function(e,n){return t.reduce(n,e,r)})}}}function na(e,t){return function(n){var r=e.foldMap(n),i=t.foldMap(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function nc(e,t){return function(n,r){return function(i){return e.reduceRight(i,n,function(e,n){return t.reduceRight(e,n,r)})}}}function nf(e,t){return function(n,r){return function(i){return t.reduce(i,e.of(n),function(t,n){return e.chain(t,function(e){return r(e,n)})})}}}function nl(e,t){return function(n,r){var i=function(t,r){var i=t.init,o=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:e.concat(e.concat(o,n),r)}};return t.reduce(r,{init:!0,acc:e.empty},i).acc}}function np(e){return function(t){return e.reduce(t,[],function(e,t){return e.push(t),e})}}function nd(e,t){var n=e.of(void 0);return function(r,i){return t.reduce(r,n,function(t,n){var r,o;return o=i(n),e.ap(e.map(t,e4.constant),o)})}}function ns(e,t){return function(n,r,i){return t.reduce(n,e.of(r),function(t,n){return e.chain(t,function(e){return i(e,n)})})}}var nh=np;function nm(e,t){var n=nu(e,t),r=na(e,t),i=nc(e,t);return{reduce:function(e,t,r){return(0,e4.pipe)(e,n(t,r))},foldMap:function(e){var t=r(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},reduceRight:function(e,t,n){return(0,e4.pipe)(e,i(t,n))}}}function nv(e,t){return function(n,r){return function(i){return e.reduceWithIndex(i,n,function(e,n,i){return t.reduceWithIndex(i,n,function(t,n,i){return r([e,t],n,i)})})}}}function ny(e,t){return function(n){var r=e.foldMapWithIndex(n),i=t.foldMapWithIndex(n);return function(e){return function(t){return r(t,function(t,n){return i(n,function(n,r){return e([t,n],r)})})}}}}function ng(e,t){return function(n,r){return function(i){return e.reduceRightWithIndex(i,n,function(e,n,i){return t.reduceRightWithIndex(n,i,function(t,n,i){return r([e,t],n,i)})})}}}function n_(e,t){var n=nm(e,t),r=nv(e,t),i=ny(e,t),o=ng(e,t);return{reduce:n.reduce,foldMap:n.foldMap,reduceRight:n.reduceRight,reduceWithIndex:function(e,t,n){return(0,e4.pipe)(e,r(t,n))},foldMapWithIndex:function(e){var t=i(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},reduceRightWithIndex:function(e,t,n){return(0,e4.pipe)(e,o(t,n))}}}var nb=n(25162);function nS(e){return function(t){return(0,e4.flow)(t,e.fromIO)}}function nT(e,t){return function(n){var r=(0,e4.flow)(n,e.fromIO);return function(e){return t.chain(e,r)}}}function nI(e,t){var n=nx(e,t);return function(e){return function(t){return n(t,e)}}}function nx(e,t){var n=(0,tu.tap)(t);return function(t,r){return n(t,(0,e4.flow)(r,e.fromIO))}}var nw=n(97963),nO=function(){return e4.identity},nR=e4.identity,nC=function(e){return function(t){return function(n){return t(e(n))}}},nM=function(e){return function(t){return e(t)(t)}},nE=nM,nk=function(e,t){return(0,e4.pipe)(e,nD(t))},nP=function(e,t){return(0,e4.pipe)(e,nL(t))},nF=function(e,t){return(0,e4.pipe)(e,nG(t))},nW=function(e,t,n){return(0,e4.pipe)(e,nB(t,n))},nD=function(e){return function(t){return function(n){return e(t(n))}}},nN=function(e){return function(t){return function(n){return t(n)(e(n))}}},nL=nN,nA=e4.constant,nj=(0,e4.dual)(2,function(e,t){return function(n){return t(e(n))(n)}}),nU=nj(e4.identity),nq=nU,nG=function(e){return function(t){return(0,e4.flow)(e,t)}},nB=function(e,t){return function(n){return function(r){return t(n(e(r)))}}},nY=function(){return e4.identity},nV=function(e){return function(t){var n=t[0],r=t[1];return[e(n),r]}},nK=function(e){return function(t){var n;return[t[0],e(t[1])]}},nz=function(e){return tk.fold(function(t){return nw.t$(e(t))},tk.right)},nH=function(e){return tk.fold(tk.left,function(t){return nw.F2(e(t))})},nZ="Reader",n$={URI:nZ,map:nk},nX=(0,td.flap)(n$),nJ={URI:nZ,of:nA},nQ={URI:nZ,map:nk,ap:nP},n0=(0,eU.apFirst)(nQ),n1=n0,n2=(0,eU.apSecond)(nQ),n8=n2,n4={URI:nZ,map:nk,ap:nP,of:nA},n3={URI:nZ,map:nk,ap:nP,chain:nj},n5={URI:nZ,map:nk,of:nA,ap:nP,chain:nj},n7=(0,e4.dual)(2,tu.tap(n3)),n9={URI:nZ,map:nk,promap:nW},n6={URI:nZ,compose:nF,id:nY},re={URI:nZ,map:nk,promap:nW,first:nV,second:nK},rt={URI:nZ,map:nk,promap:nW,left:nz,right:nH},rn=(0,td.bindTo)(n$),rr=(0,td.let)(n$),ri=tu.bind(n3),ro=ri,ru=nA(nw.F4),ra=(0,eU.apS)(nQ),rc=ra,rf=nA(nw.Xl),rl=function(e){return function(t){return function(n){for(var r=[e(0,nw.YM(t))(n)],i=1;i<t.length;i++)r.push(e(i,t[i])(n));return r}}},rp=function(e){var t=rl(e);return function(e){return nw.Od(e)?t(e):rf}},rd=rp,rs=function(e){return rp(function(t,n){return e(n)})},rh=rs(e4.identity),rm=nj,rv=nj,ry=n7,rg=n7,r_={URI:nZ,map:nk,of:nA,ap:nP,chain:nj,promap:nW,compose:nF,id:nY,first:nV,second:nK,left:nz,right:nH},rb=(0,eU.getApplySemigroup)(nQ),rS=(0,eB.getApplicativeMonoid)(n4);function rT(e){return function(){return e.fromReader(nO())}}function rI(e){return e.fromReader}function rx(e){return function(t){return(0,e4.flow)(t,e.fromReader)}}function rw(e,t){var n=rx(e);return function(e){return function(r){return t.chain(r,n(e))}}}function rO(e,t){var n=rR(e,t);return function(e){return function(t){return n(t,e)}}}function rR(e,t){var n=(0,tu.tap)(t);return function(t,r){return n(t,(0,e4.flow)(r,e.fromReader))}}var rC=function(){return function(e){return[e,e]}},rM=function(e){return function(){return[void 0,e]}},rE=function(e){return function(t){return[void 0,e(t)]}},rk=function(e){return function(t){return[e(t),t]}},rP=function(e,t){return(0,e4.pipe)(e,rW(t))},rF=function(e,t){return(0,e4.pipe)(e,rD(t))},rW=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=r[1];return[e(i),o]}}},rD=function(e){return function(t){return function(n){var r=t(n),i=r[0],o=e(r[1]),u=o[0],a=o[1];return[i(u),a]}}},rN=function(e){return function(t){return[e,t]}},rL=(0,e4.dual)(2,function(e,t){return function(n){var r=e(n),i=r[0],o=r[1];return t(i)(o)}}),rA=rL(e4.identity),rj="State",rU={URI:rj,map:rP},rq=(0,td.flap)(rU),rG={URI:rj,of:rN},rB={URI:rj,map:rP,ap:rF},rY=(0,eU.apFirst)(rB),rV=(0,eU.apSecond)(rB),rK={URI:rj,map:rP,ap:rF,of:rN},rz={URI:rj,map:rP,ap:rF,chain:rL},rH={URI:rj,map:rP,ap:rF,of:rN,chain:rL},rZ=(0,e4.dual)(2,tu.tap(rz)),r$={URI:rj,fromState:e4.identity},rX=function(e){return function(t){return t(e)[0]}},rJ=function(e){return function(t){return t(e)[1]}},rQ=(0,td.bindTo)(rU),r0=(0,td.let)(rU),r1=tu.bind(rz),r2=(0,eU.apS)(rB),r8=function(e){return function(t){return function(n){for(var r=e(0,nw.YM(t))(n),i=r[0],o=r[1],u=[i],a=o,c=1;c<t.length;c++){var f=e(c,t[c])(a),l=f[0],p=f[1];u.push(l),a=p}return[u,a]}}},r4=function(e){var t=r8(e);return function(e){return nw.Od(e)?t(e):rN(nw.Xl)}},r3=r4,r5=function(e){return r4(function(t,n){return e(n)})},r7=r5(e4.identity),r9=rL,r6=rZ,ie=function(e,t){return e(t)[0]},it=function(e,t){return e(t)[1]},ir=rH;function ii(e){return function(){return e.fromState(rC())}}function io(e){return function(t){return e.fromState(rM(t))}}function iu(e){return(0,e4.flow)(rE,e.fromState)}function ia(e){return(0,e4.flow)(rk,e.fromState)}function ic(e){return function(t){return(0,e4.flow)(t,e.fromState)}}function il(e,t){var n=ic(e);return function(e){return function(r){return t.chain(r,n(e))}}}function ip(e){return function(t){return(0,e4.flow)(t,e.fromTask)}}function id(e,t){return function(n){var r=(0,e4.flow)(n,e.fromTask);return function(e){return t.chain(e,r)}}}function is(e,t){var n=ih(e,t);return function(e){return function(t){return n(t,e)}}}function ih(e,t){var n=(0,tu.tap)(t);return function(t,r){return n(t,(0,e4.flow)(r,e.fromTask))}}function im(e){return function(t){return(0,e4.flow)(t,e.fromThese)}}function iv(e,t){return function(n){return function(r){return e.mapWithIndex(r,function(e,r){return t.mapWithIndex(r,function(t,r){return n([e,t],r)})})}}}function iy(e,t){var n=(0,td.getFunctorComposition)(e,t).map,r=iv(e,t);return{map:n,mapWithIndex:function(e,t){return(0,e4.pipe)(e,r(t))}}}var ig=function(e,t){return(0,e4.pipe)(e,iR(t))},i_=function(e,t){return(0,e4.pipe)(e,iC(t))},ib=function(e,t,n){return(0,e4.pipe)(e,iD(t,n))},iS=function(e){return function(t,n){return(0,e4.pipe)(t,iN(e)(n))}},iT=function(e,t,n){return(0,e4.pipe)(e,iL(t,n))},iI=function(e,t){return(0,e4.pipe)(e,iq(t))},ix=function(e,t){return(0,e4.pipe)(e,ik(t))},iw=function(e){var t=iA(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},iO=ta.tailRec,iR=function(e){return function(t){return e(t)}},iC=function(e){return function(t){return t(e)}},iM=e4.identity,iE=(0,e4.dual)(2,function(e,t){return t(e)}),ik=function(e){return function(t){return e(t)}},iP=e4.identity,iF=ik(e4.identity),iW=iE(e4.identity),iD=function(e,t){return function(n){return t(e,n)}},iN=function(){return function(e){return function(t){return e(t)}}},iL=function(e,t){return function(n){return t(n,e)}},iA=function(e){return function(t){return function(n){return e.map(t(n),e4.identity)}}},ij=function(e){return function(t){return e.map(t,e4.identity)}},iU=function(){return e4.identity},iq=iU,iG="Identity",iB=e4.identity,iY=e4.identity,iV={URI:iG,map:ig},iK=(0,td.flap)(iV),iz={URI:iG,of:iM},iH={URI:iG,map:ig,ap:i_},iZ=(0,eU.apFirst)(iH),i$=(0,eU.apSecond)(iH),iX={URI:iG,map:ig,ap:i_,of:iM},iJ={URI:iG,map:ig,ap:i_,chain:iE},iQ={URI:iG,map:ig,ap:i_,of:iM,chain:iE},i0=(0,tu.chainFirst)(iJ),i1={URI:iG,reduce:ib,foldMap:iS,reduceRight:iT},i2={URI:iG,map:ig,reduce:ib,foldMap:iS,reduceRight:iT,traverse:iw,sequence:ij},i8={URI:iG,map:ig,alt:iI},i4={URI:iG,map:ig,extend:ix,extract:iP},i3={URI:iG,map:ig,ap:i_,chain:iE,chainRec:iO},i5=iM(nw.F4),i7=(0,td.bindTo)(iV),i9=(0,td.let)(iV),i6=(0,tu.bind)(iJ),oe=(0,eU.apS)(iH),ot=iE,on={URI:iG,map:ig,ap:i_,of:iM,chain:iE,reduce:ib,foldMap:iS,reduceRight:iT,traverse:iw,sequence:ij,alt:iI,extract:iP,extend:ix,chainRec:iO},or=function(e,t){return function(){return t(e())}},oi=function(e,t){return function(){return e()(t())}},oo=function(e,t){return function(){for(var n=t(e)();"Left"===n._tag;)n=t(n.left)();return n.right}},ou=function(e){return function(t){return or(t,e)}},oa=function(e){return function(t){return oi(t,e)}},oc=e4.constant,of=(0,e4.dual)(2,function(e,t){return function(){return t(e())()}}),ol=of(e4.identity),op="IO",od={URI:op,map:or},os=(0,e4.dual)(2,(0,td.as)(od)),oh=(0,td.asUnit)(od),om=(0,td.flap)(od),ov={URI:op,of:oc},oy={URI:op,map:or,ap:oi},og=(0,eU.apFirst)(oy),o_=(0,eU.apSecond)(oy),ob={URI:op,map:or,ap:oi,of:oc},oS={URI:op,map:or,ap:oi,chain:of},oT={URI:op,map:or,ap:oi,of:oc,chain:of},oI=(0,e4.dual)(2,tu.tap(oS)),ox=e4.identity,ow={URI:op,map:or,ap:oi,of:oc,chain:of,fromIO:ox},oO={URI:op,map:or,ap:oi,chain:of,chainRec:oo},oR={URI:op,fromIO:e4.identity},oC=oc(nw.F4),oM=(0,td.bindTo)(od),oE=(0,td.let)(od),ok=tu.bind(oS),oP=(0,eU.apS)(oy),oF=oc(nw.Xl),oW=function(e){return function(t){return function(){for(var n=[e(0,nw.YM(t))()],r=1;r<t.length;r++)n.push(e(r,t[r])());return n}}},oD=function(e){var t=oW(e);return function(e){return nw.Od(e)?t(e):oF}},oN=oD,oL=function(e){return oD(function(t,n){return e(n)})},oA=oL(e4.identity),oj=of,oU=oI,oq={URI:op,map:or,of:oc,ap:oi,chain:of,fromIO:ox,chainRec:oo},oG=(0,eU.getApplySemigroup)(oy),oB=(0,eB.getApplicativeMonoid)(ob),oY=tF(ov),oV=tP(ov),oK=tW(od),oz=tD(od),oH=oc,oZ=oK,o$=tZ(od),oX=o$,oJ=t$(oT),oQ=oJ,o0=oJ,o1=o0,o2=tX(oT),o8=o2,o4=function(e,t){return function(){return tk.tryCatch(e,t)}},o3=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return o4(function(){return e.apply(void 0,n)},t)}},o5=t8(od),o7=tJ(oT),o9=o7,o6=(0,e4.dual)(2,t0(oT)),ue=function(e){return o6(uZ(e))},ut=t1(oT),un=t2(od),ur=function(e,t){return(0,e4.pipe)(e,ua(t))},ui=function(e,t){return(0,e4.pipe)(e,ud(t))},uo=function(e,t){return um(e,function(e){return(0,e4.pipe)(t,ua(e))})},uu=function(e,t){return(0,e4.pipe)(e,ug(t))},ua=tj(od),uc=(0,e4.dual)(3,tV(od)),uf=uc,ul=(0,e4.dual)(2,tz(od)),up=ul,ud=tU(oy),us=ud,uh=oV,um=(0,e4.dual)(2,tG(oT)),uv=um(e4.identity),uy=uv,ug=tB(oT),u_=ug,ub=oY,uS="IOEither";function uT(e){var t=(0,eU.ap)(oy,tk.getApplicativeValidation(e));return{URI:uS,_E:void 0,map:ur,ap:function(e,n){return(0,e4.pipe)(e,t(n))},of:uh}}function uI(e){var t=tH(oT,e);return{URI:uS,_E:void 0,map:ur,alt:function(e,n){return(0,e4.pipe)(e,t(n))}}}var ux=function(e){var t=tk.getCompactable(e);return{URI:uS,_E:void 0,compact:tm(od,t),separate:tv(od,t,tk.Functor)}};function uw(e){var t=tk.getFilterable(e),n=ux(e),r=nt(od,t),i=nn(od,t),o=nr(od,t),u=ni(od,t);return{URI:uS,_E:void 0,map:ur,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e4.pipe)(e,r(t))},filterMap:function(e,t){return(0,e4.pipe)(e,i(t))},partition:function(e,t){return(0,e4.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e4.pipe)(e,u(t))}}}var uO={URI:uS,map:ur},uR=(0,e4.dual)(2,(0,td.as)(uO)),uC=(0,td.asUnit)(uO),uM=(0,td.flap)(uO),uE={URI:uS,of:uh},uk={URI:uS,bimap:uc,mapLeft:ul},uP={URI:uS,map:ur,ap:ui},uF=(0,eU.apFirst)(uP),uW=uF,uD=(0,eU.apSecond)(uP),uN=uD,uL={URI:uS,map:ur,ap:ui,of:uh},uA={URI:uS,map:ur,ap:uo,of:uh},uj={URI:uS,map:ur,ap:ui,chain:um},uU={URI:uS,map:ur,ap:ui,of:uh,chain:um},uq={URI:uS,fromEither:oH},uG={URI:uS,fromIO:oZ},uB=(0,e4.dual)(2,tu.tap(uj)),uY=(0,e4.dual)(2,(0,nb.tapEither)(uq,uj)),uV=(0,e4.dual)(2,nx(uG,uj)),uK={URI:uS,map:ur,alt:uu},uz={URI:uS,map:ur,ap:ui,of:uh,chain:um,fromIO:oZ},uH={URI:uS,map:ur,ap:ui,of:uh,chain:um,throwError:ub},uZ=nS(uG),u$=uV,uX=(0,nb.fromOption)(uq),uJ=(0,nb.fromOptionK)(uq),uQ=(0,nb.chainOptionK)(uq,uj),u0=uQ,u1={fromEither:uq.fromEither},u2=nw.uL(u1),u8=nw.WE(u1),u4={flatMap:um},u3=nw.ny(u1,u4),u5=nw.hU(u1,u4),u7=nw.iu(u1,u4),u9=nw.we({fromIO:oZ},u4),u6=u9,ae=u7,at=u7,an=uY,ar=uY,ai=(0,nb.fromPredicate)(uq),ao=(0,nb.filterOrElse)(uq,uj),au=ao,aa=(0,nb.fromEitherK)(uq),ac=function(e,t,n){return af(e,t,n)},af=function(e,t,n){return um(e,function(e){return of(t(e),function(t){return um(n(e,t),function(){return oc(t)})})})},al=uh(nw.F4),ap=(0,td.bindTo)(uO),ad=(0,td.let)(uO),as=tu.bind(uj),ah=as,am=(0,eU.apS)(uP),av=am,ay=uh(nw.Xl),ag=function(e){return(0,e4.flow)(oW(e),ou(tk.traverseReadonlyNonEmptyArrayWithIndex(e4.SK)))},a_=function(e){var t=ag(e);return function(e){return nw.Od(e)?t(e):ay}},ab=function(e){return function(t){return function(){var n=e(0,nw.YM(t))();if(nw.nM(n))return n;for(var r=[n.right],i=1;i<t.length;i++){var o=e(i,t[i])();if(nw.nM(o))return o;r.push(o.right)}return nw.F2(r)}}},aS=function(e){var t=ab(e);return function(e){return nw.Od(e)?t(e):ay}},aT=a_,aI=function(e){return a_(function(t,n){return e(n)})},ax=aI(e4.identity),aw=aS,aO=function(e){return aS(function(t,n){return e(n)})},aR=aO(e4.identity),aC=uL,aM=um,aE=um,ak=uB,aP=uB,aF=o6,aW=o6,aD={URI:uS,bimap:uc,mapLeft:ul,map:ur,of:uh,ap:ui,chain:um,alt:uu,fromIO:oZ,throwError:ub},aN=(0,eU.getApplySemigroup)(uP),aL=(0,eB.getApplicativeMonoid)(uL),aA=function(e){return(0,eU.getApplySemigroup)(oy)(tk.getSemigroup(e))};function aj(e){var t=uT(e),n=uI(e);return{URI:uS,_E:void 0,map:ur,ap:t.ap,of:uh,chain:um,bimap:uc,mapLeft:ul,alt:n.alt,fromIO:oZ,throwError:ub}}function aU(e){return(0,e4.flow)(ts.some,e.of)}function aq(e){return(0,e4.constant)(e.of(ts.none))}function aG(e){return function(t){return e.map(t,ts.some)}}function aB(e){return(0,e4.flow)(ts.fromNullable,e.of)}function aY(e){var t=aB(e);return function(e){return(0,e4.flow)(e,t)}}function aV(e){var t=a1(e),n=aY(e);return function(e){return t(n(e))}}function aK(e){return function(t){return(0,e4.flow)(t,e.of)}}function az(e){var t=a1(e),n=aK(e);return function(e){return t(n(e))}}function aH(e){return function(t){return function(n){return e.of(ts.fromPredicate(t)(n))}}}function aZ(e){return(0,e4.flow)(ts.fromEither,e.of)}function a$(e){return function(t,n){return function(r){return e.map(r,ts.match(t,n))}}}function aX(e){return function(t,n){return function(r){return e.chain(r,ts.match(t,n))}}}function aJ(e){return function(t){return function(n){return e.chain(n,ts.match(t,e.of))}}}function aQ(e){return(0,td.map)(e,ts.Functor)}function a0(e){return(0,eU.ap)(e,ts.Apply)}function a1(e){var t=a2(e);return function(e){return function(n){return t(n,e)}}}function a2(e){var t=aq(e);return function(n,r){return e.chain(n,ts.match(function(){return t()},r))}}function a8(e){var t=aU(e);return function(n){return function(r){return e.chain(r,ts.match(n,t))}}}function a4(e){var t=a0(e),n=aQ(e),r=a1(e),i=a8(e),o=aX(e),u=aJ(e),a=aq(e);return{map:function(e,t){return(0,e4.pipe)(e,n(t))},ap:function(e,n){return(0,e4.pipe)(e,t(n))},of:aU(e),chain:function(e,t){return(0,e4.pipe)(e,r(t))},alt:function(e,t){return(0,e4.pipe)(e,i(t))},fold:function(e,t,n){return(0,e4.pipe)(e,o(t,n))},getOrElse:function(e,t){return(0,e4.pipe)(e,u(t))},fromM:aG(e),none:function(){return a()}}}var a3=n(28957),a5=aU(ov),a7=aH(ov),a9=oc,a6=aZ(ov),ce=aG(od),ct=ou(ts.fromEither),cn=a$(od),cr=cn,ci=aX(oS),co=ci,cu=ci,ca=aJ(oT),cc=ca,cf=ou(ts.toUndefined),cl=ou(ts.toNullable),cp=aB(ov),cd=aY(ov),cs=aV(oT),ch=aK(ov),cm=aQ(od),cv=a0(oy),cy=a5,cg=(0,e4.dual)(2,a2(oT)),c_=cg(e4.identity),cb=a8(oT),cS=cb,cT=aq(ov),cI=cT(),cx=tm(od,ts.Compactable),cw=tv(od,ts.Compactable,ts.Functor),cO=nt(od,ts.Filterable),cR=nn(od,ts.Filterable),cC=nr(od,ts.Filterable),cM=ni(od,ts.Filterable),cE=function(e,t){return(0,e4.pipe)(e,cm(t))},ck=function(e,t){return(0,e4.pipe)(e,cv(t))},cP=function(e,t){return(0,e4.pipe)(e,cb(t))},cF=function(e,t){return(0,e4.pipe)(e,cO(t))},cW=function(e,t){return(0,e4.pipe)(e,cR(t))},cD=function(e,t){return(0,e4.pipe)(e,cC(t))},cN=function(e,t){return(0,e4.pipe)(e,cM(t))},cL="IOOption",cA={URI:cL,map:cE},cj=(0,e4.dual)(2,(0,td.as)(cA)),cU=(0,td.asUnit)(cA),cq=(0,td.flap)(cA),cG={URI:cL,of:cy},cB={URI:cL,map:cE,ap:ck},cY=(0,eU.apFirst)(cB),cV=(0,eU.apSecond)(cB),cK={URI:cL,map:cE,ap:ck,of:cy},cz={URI:cL,map:cE,ap:ck,chain:cg},cH={URI:cL,fromEither:a6},cZ={URI:cL,fromIO:ce},c$=(0,e4.dual)(2,tu.tap(cz)),cX=(0,e4.dual)(2,(0,nb.tapEither)(cH,cz)),cJ=(0,e4.dual)(2,nx(cZ,cz)),cQ={URI:cL,map:cE,alt:cP},c0={URI:cL,zero:cT},c1=(0,a3.guard)(c0,cG),c2={URI:cL,map:cE,ap:ck,of:cy,alt:cP,zero:cT},c8={URI:cL,map:cE,ap:ck,of:cy,chain:cg},c4={URI:cL,map:cE,ap:ck,of:cy,chain:cg,fromIO:ce},c3={URI:cL,compact:cx,separate:cw},c5={URI:cL,map:cE,compact:cx,separate:cw,filter:cF,filterMap:cW,partition:cD,partitionMap:cN},c7={flatMap:cg},c9={fromIO:cZ.fromIO},c6=nw.we(c9,c7),fe=(0,e4.dual)(2,function(e,t){return cg(e,ch(t))}),ft=nw.iu({fromEither:a6},c7),fn=(0,e4.dual)(2,function(e,t){return cg(e,cd(t))}),fr=nS(cZ),fi=c6,fo=cJ,fu=(0,nb.fromEitherK)(cH),fa=ft,fc=cX,ff=fe,fl=cy(nw.F4),fp=(0,td.bindTo)(cA),fd=(0,td.let)(cA),fs=tu.bind(cz),fh=(0,eU.apS)(cB),fm=cy(nw.Xl),fv=function(e){return(0,e4.flow)(oW(e),ou(ts.traverseReadonlyNonEmptyArrayWithIndex(e4.SK)))},fy=function(e){var t=fv(e);return function(e){return nw.Od(e)?t(e):fm}},fg=cg,f_=c$,fb=function(){function e(e){var t=this;this.value=e,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return e.prototype.write=function(e){var t=this;return function(){t.value=e}},e.prototype.modify=function(e){var t=this;return function(){t.value=e(t.value)}},e}();function fS(e){return function(){return new fb(e)}}var fT=function(e){return(0,tk.tryCatch)(function(){return JSON.parse(e)},e4.identity)},fI=function(e){return(0,tk.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e4.identity)},fx=n(76113),fw=n(55116),fO=n(96576),fR=n(43586),fC=function(e,t,n){return function(r){return -1===r?e():0===r?t():n()}},fM=fC,fE=function(e){return -1===e?1:1===e?-1:0},fk={equals:function(e,t){return e===t}},fP={concat:function(e,t){return 0!==e?e:t}},fF={concat:fP.concat,empty:0},fW=function(e){return e<=-1?-1:e>=1?1:0},fD=fE,fN=fP,fL=fk,fA=fF,fj=n(18896),fU=function(){return Math.random()};function fq(e,t){return(0,e4.pipe)(fU,ou(function(n){return Math.floor((t-e+1)*n+e)}))}function fG(e,t){return(0,e4.pipe)(fU,ou(function(n){return(t-e)*n+e}))}var fB=(0,e4.pipe)(fU,ou(function(e){return e<.5})),fY=function(e){return(0,e4.pipe)(fq(0,e.length-1),ou(function(t){return e[t]}))},fV=tF(nJ),fK=tP(nJ),fz=tW(n$),fH=tD(n$),fZ=nA,f$=fz,fX=tZ(n$),fJ=fX,fQ=t$(n5),f0=fQ,f1=fQ,f2=f1,f8=tX(n5),f4=f8,f3=t8(n$),f5=nC,f7=nM,f9=f7,f6=tJ(n5),le=f6,lt=(0,e4.dual)(2,t0(n5)),ln=t1(n5),lr=t2(n$),li=function(e,t){return(0,e4.pipe)(e,la(t))},lo=function(e,t){return(0,e4.pipe)(e,ld(t))},lu=function(e,t){return(0,e4.pipe)(e,lg(t))},la=tj(n$),lc=(0,e4.dual)(3,tV(n$)),lf=lc,ll=(0,e4.dual)(2,tz(n$)),lp=ll,ld=tU(nQ),ls=ld,lh=fK,lm=(0,e4.dual)(2,tG(n5)),lv=lm(e4.identity),ly=lv,lg=tB(n5),l_=lg,lb=fV,lS="ReaderEither",lT=function(e){var t=tk.getCompactable(e);return{URI:lS,_E:void 0,compact:tm(n$,t),separate:tv(n$,t,tk.Functor)}};function lI(e){var t=tk.getFilterable(e),n=lT(e),r=nt(n$,t),i=nn(n$,t),o=nr(n$,t),u=ni(n$,t);return{URI:lS,_E:void 0,map:li,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e4.pipe)(e,r(t))},filterMap:function(e,t){return(0,e4.pipe)(e,i(t))},partition:function(e,t){return(0,e4.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e4.pipe)(e,u(t))}}}function lx(e){var t=(0,eU.ap)(nQ,tk.getApplicativeValidation(e));return{URI:lS,_E:void 0,map:li,ap:function(e,n){return(0,e4.pipe)(e,t(n))},of:lh}}function lw(e){var t=tH(n5,e);return{URI:lS,_E:void 0,map:li,alt:function(e,n){return(0,e4.pipe)(e,t(n))}}}var lO={URI:lS,map:li},lR=(0,e4.dual)(2,(0,td.as)(lO)),lC=(0,td.asUnit)(lO),lM=(0,td.flap)(lO),lE={URI:lS,of:lh},lk={URI:lS,map:li,ap:lo},lP=(0,eU.apFirst)(lk),lF=lP,lW=(0,eU.apSecond)(lk),lD=lW,lN={URI:lS,map:li,ap:lo,of:lh},lL={URI:lS,map:li,ap:lo,chain:lm},lA={URI:lS,map:li,ap:lo,of:lh,chain:lm},lj={URI:lS,fromEither:fZ},lU={URI:lS,fromReader:f$},lq=(0,e4.dual)(2,tu.tap(lL)),lG=(0,e4.dual)(2,(0,nb.tapEither)(lj,lL)),lB=(0,e4.dual)(2,rR(lU,lL)),lY={URI:lS,bimap:lc,mapLeft:ll},lV={URI:lS,map:li,alt:lu},lK=rT(lU),lz=rI(lU),lH=rx(lU),lZ=lB,l$=lB,lX={URI:lS,map:li,ap:lo,of:lh,chain:lm,throwError:lb},lJ=(0,nb.fromOption)(lj),lQ=(0,nb.fromOptionK)(lj),l0=(0,nb.chainOptionK)(lj,lL),l1=l0,l2={fromEither:lj.fromEither},l8={fromReader:lU.fromReader},l4=nw.uL(l2),l3=nw.WE(l2),l5={flatMap:lm},l7=nw.ny(l2,l5),l9=nw.hU(l2,l5),l6=nw.iu(l2,l5),pe=nw.on(l8,l5),pt=l6,pn=l6,pr=lG,pi=lG,po=pe,pu=pe,pa=(0,nb.fromPredicate)(lj),pc=(0,nb.filterOrElse)(lj,lL),pf=pc,pl=(0,nb.fromEitherK)(lj),pp=lh(nw.F4),pd=(0,td.bindTo)(lO),ps=(0,td.let)(lO),ph=tu.bind(lL),pm=ph,pv=(0,eU.apS)(lk),py=pv,pg=lh(nw.Xl),p_=function(e){return(0,e4.flow)(rl(e),nD(tk.traverseReadonlyNonEmptyArrayWithIndex(e4.SK)))},pb=function(e){var t=p_(e);return function(e){return nw.Od(e)?t(e):pg}},pS=pb,pT=function(e){return pb(function(t,n){return e(n)})},pI=pT(e4.identity),px=lm,pw=lm,pO=lq,pR=lq,pC=lt,pM=lt,pE={URI:lS,bimap:lc,mapLeft:ll,map:li,of:lh,ap:lo,chain:lm,alt:lu,throwError:fV},pk=(0,eU.getApplySemigroup)(lk),pP=(0,eB.getApplicativeMonoid)(lN),pF=function(e){return(0,eU.getApplySemigroup)(nQ)(tk.getSemigroup(e))};function pW(e){var t=lx(e),n=lw(e);return{URI:lS,_E:void 0,map:li,ap:t.ap,of:lh,chain:lm,bimap:lc,mapLeft:ll,alt:n.alt,throwError:lb}}function pD(e){return function(t){return function(){return e.of(t)}}}function pN(e){return function(t){return function(n){return function(r){return e.map(n(r),t)}}}}function pL(e){return function(t){return function(n){return function(r){return e.ap(n(r),t(r))}}}}function pA(e){var t=pj(e);return function(e){return function(n){return t(n,e)}}}function pj(e){return function(t,n){return function(r){return e.chain(t(r),function(e){return n(e)(r)})}}}function pU(e){return function(t){return(0,e4.flow)(t,e.of)}}function pq(e){return function(t){return(0,e4.flow)(t,e)}}function pG(e){var t=pL(e),n=pN(e),r=pA(e);return{map:function(e,t){return(0,e4.pipe)(e,n(t))},ap:function(e,n){return(0,e4.pipe)(e,t(n))},of:pD(e),chain:function(e,t){return(0,e4.pipe)(e,r(t))},ask:function(){return e.of},asks:function(t){return(0,e4.flow)(t,e.of)},local:function(e,t){return function(n){return e(t(n))}},fromReader:pU(e),fromM:function(e){return function(){return e}}}}var pB=pU(ov),pY=nA,pV=nC,pK=nM,pz=pK,pH=function(e,t){return(0,e4.pipe)(e,p$(t))},pZ=function(e,t){return(0,e4.pipe)(e,pX(t))},p$=pN(od),pX=pL(oy),pJ=pX,pQ=pD(ov),p0=(0,e4.dual)(2,pj(oT)),p1=p0(e4.identity),p2=p1,p8="ReaderIO",p4={URI:p8,map:pH},p3=(0,e4.dual)(2,(0,td.as)(p4)),p5=(0,td.asUnit)(p4),p7=(0,td.flap)(p4),p9={URI:p8,of:pQ},p6={URI:p8,map:pH,ap:pZ},de=(0,eU.apFirst)(p6),dt=(0,eU.apSecond)(p6),dn={URI:p8,map:pH,ap:pZ,of:pQ},dr={URI:p8,map:pH,ap:pZ,chain:p0},di={URI:p8,map:pH,of:pQ,ap:pZ,chain:p0},du={URI:p8,map:pH,of:pQ,ap:pZ,chain:p0,fromIO:pY},da={URI:p8,fromIO:pY},dc={URI:p8,fromReader:pB},df={flatMap:p0},dl={fromIO:da.fromIO},dp=nw.we(dl,df),dd=nw.on({fromReader:pB},df),ds=(0,e4.dual)(2,tu.tap(dr)),dh=(0,e4.dual)(2,nx(da,dr)),dm=(0,e4.dual)(2,rR(dc,dr)),dv=nS(da),dy=dp,dg=dh,d_=rT(dc),db=rI(dc),dS=rx(dc),dT=dd,dI=dd,dx=dm,dw=dm,dO=pQ(nw.F4),dR=(0,td.bindTo)(p4),dC=tu.bind(dr),dM=dC,dE=(0,eU.apS)(p6),dk=dE,dP=pQ(nw.Xl),dF=function(e){return(0,e4.flow)(rl(e),nD(oW(e4.SK)))},dW=function(e){var t=dF(e);return function(e){return nw.Od(e)?t(e):dP}},dD=dW,dN=function(e){return dW(function(t,n){return e(n)})},dL=dN(e4.identity),dA=p0,dj=p0,dU=ds,dq=ds,dG=function(e){return function(){return Promise.resolve().then(e)}};function dB(e){return function(t){return function(){return new Promise(function(n){setTimeout(function(){Promise.resolve().then(t).then(n)},e)})}}}var dY=function(e,t){return(0,e4.pipe)(e,dz(t))},dV=function(e,t){return(0,e4.pipe)(e,dH(t))},dK=function(e,t){return d$(e,function(e){return(0,e4.pipe)(t,dz(e))})},dz=function(e){return function(t){return function(){return Promise.resolve().then(t).then(e)}}},dH=function(e){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(e)]).then(function(e){var t;return(0,e[0])(e[1])})}}},dZ=function(e){return function(){return Promise.resolve(e)}},d$=(0,e4.dual)(2,function(e,t){return function(){return Promise.resolve().then(e).then(function(e){return t(e)()})}}),dX=d$(e4.identity),dJ="Task";function dQ(){return{concat:function(e,t){return function(){return Promise.race([Promise.resolve().then(e),Promise.resolve().then(t)])}},empty:sm}}var d0={URI:dJ,map:dY},d1=(0,e4.dual)(2,(0,td.as)(d0)),d2=(0,td.asUnit)(d0),d8=(0,td.flap)(d0),d4={URI:dJ,of:dZ},d3={URI:dJ,map:dY,ap:dV},d5=(0,eU.apFirst)(d3),d7=(0,eU.apSecond)(d3),d9={URI:dJ,map:dY,ap:dV,of:dZ},d6={URI:dJ,map:dY,ap:dK},se={URI:dJ,map:dY,ap:dK,of:dZ},st={URI:dJ,map:dY,ap:dV,chain:d$},sn={URI:dJ,map:dY,of:dZ,ap:dV,chain:d$},sr={URI:dJ,map:dY,of:dZ,ap:dV,chain:d$,fromIO:dG},si=e4.identity,so={URI:dJ,map:dY,of:dZ,ap:dV,chain:d$,fromIO:dG,fromTask:si},su={URI:dJ,fromIO:dG},sa={fromIO:su.fromIO},sc=nw.we(sa,{flatMap:d$}),sf=(0,e4.dual)(2,tu.tap(st)),sl=(0,e4.dual)(2,nx(su,st)),sp=nS(su),sd=sc,ss=sl,sh={URI:dJ,fromIO:dG,fromTask:si},sm=function(){return new Promise(function(e){})},sv=dZ(nw.F4),sy=(0,td.bindTo)(d0),sg=(0,td.let)(d0),s_=tu.bind(st),sb=(0,eU.apS)(d3),sS=dZ(nw.Xl),sT=function(e){return function(t){return function(){return Promise.all(t.map(function(t,n){return Promise.resolve().then(function(){return e(n,t)()})}))}}},sI=function(e){var t=sT(e);return function(e){return nw.Od(e)?t(e):sS}},sx=function(e){return function(t){return function(){return nw.Gb(t).reduce(function(t,n,r){return t.then(function(t){return Promise.resolve().then(e(r+1,n)).then(function(e){return t.push(e),t})})},Promise.resolve().then(e(0,nw.YM(t))).then(nw.ri))}}},sw=function(e){var t=sx(e);return function(e){return nw.Od(e)?t(e):sS}},sO=sI,sR=function(e){return sI(function(t,n){return e(n)})},sC=sR(e4.identity),sM=sw,sE=function(e){return sw(function(t,n){return e(n)})},sk=sE(e4.identity),sP=d$,sF=sf,sW={URI:dJ,map:dY,of:dZ,ap:dV,chain:d$,fromIO:dG,fromTask:si},sD={URI:dJ,map:dY,of:dZ,ap:dK,chain:d$,fromIO:dG,fromTask:si},sN=(0,eU.getApplySemigroup)(d6),sL=(0,eB.getApplicativeMonoid)(se),sA=pU(d4),sj=nA,sU=(0,e4.flow)(dG,sj),sq=nD(dG),sG=nC,sB=nM,sY=sB,sV=function(e,t){return(0,e4.pipe)(e,sH(t))},sK=function(e,t){return(0,e4.pipe)(e,sZ(t))},sz=function(e,t){return sJ(e,function(e){return(0,e4.pipe)(t,sH(e))})},sH=pN(d0),sZ=pL(d3),s$=sZ,sX=pD(d4),sJ=(0,e4.dual)(2,pj(sn)),sQ=sJ(e4.identity),s0=sQ,s1="ReaderTask",s2={URI:s1,map:sV},s8=(0,e4.dual)(2,(0,td.as)(s2)),s4=(0,td.asUnit)(s2),s3=(0,td.flap)(s2),s5={URI:s1,of:sX},s7={URI:s1,map:sV,ap:sK},s9=(0,eU.apFirst)(s7),s6=(0,eU.apSecond)(s7),he={URI:s1,map:sV,ap:sK,of:sX},ht={URI:s1,map:sV,ap:sz},hn={URI:s1,map:sV,ap:sz,of:sX},hr={URI:s1,map:sV,ap:sK,chain:sJ},hi={URI:s1,map:sV,of:sX,ap:sK,chain:sJ},ho={URI:s1,map:sV,of:sX,ap:sK,chain:sJ,fromIO:sU},hu={URI:s1,map:sV,of:sX,ap:sK,chain:sJ,fromIO:sU,fromTask:sj},ha={URI:s1,fromIO:sU},hc={URI:s1,fromIO:sU,fromTask:sj},hf={URI:s1,fromReader:sA},hl={flatMap:sJ},hp={fromIO:ha.fromIO},hd=nw.we(hp,hl),hs=nw.D9({fromTask:sj},hl),hh=nw.on({fromReader:sA},hl),hm=(0,e4.dual)(2,function(e,t){return sJ(e,hk(t))}),hv=(0,e4.dual)(2,tu.tap(hr)),hy=(0,e4.dual)(2,nx(ha,hr)),hg=(0,e4.dual)(2,rR(hf,hr)),h_=(0,e4.dual)(2,ih(hc,hr)),hb=(0,e4.dual)(2,function(e,t){return hv(e,hk(t))}),hS=nS(ha),hT=hd,hI=hy,hx=rT(hf),hw=rI(hf),hO=rx(hf),hR=hh,hC=hh,hM=hg,hE=hg,hk=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sq(e.apply(void 0,t))}},hP=hm,hF=hm,hW=hb,hD=hb,hN=ip(hc),hL=hs,hA=h_,hj=sX(nw.F4),hU=(0,td.bindTo)(s2),hq=(0,td.let)(s2),hG=tu.bind(hr),hB=hG,hY=(0,eU.apS)(s7),hV=hY,hK=sX(nw.Xl),hz=function(e){return(0,e4.flow)(rl(e),nD(sT(e4.SK)))},hH=function(e){var t=hz(e);return function(e){return nw.Od(e)?t(e):hK}},hZ=function(e){return(0,e4.flow)(rl(e),nD(sx(e4.SK)))},h$=function(e){var t=hZ(e);return function(e){return nw.Od(e)?t(e):hK}},hX=hH,hJ=function(e){return hH(function(t,n){return e(n)})},hQ=hJ(e4.identity),h0=h$,h1=function(e){return h$(function(t,n){return e(n)})},h2=sJ,h8=sJ,h4=hv,h3=hv,h5=h1(e4.identity),h7={URI:s1,map:sV,of:sX,ap:sK,chain:sJ,fromIO:sU,fromTask:sj},h9={URI:s1,map:sV,of:sX,ap:sz,chain:sJ,fromIO:sU,fromTask:sj},h6=(0,eU.getApplySemigroup)(ht),me=(0,eB.getApplicativeMonoid)(hn);function mt(e,t){return e(t)()}var mn=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},mr=tF(d4),mi=tP(d4),mo=tW(d0),mu=tD(d0),ma=(0,e4.flow)(dG,mo),mc=(0,e4.flow)(dG,mu),mf=ma,ml=mo,mp=dZ,md=dG,ms=function(e){return dz(tk.fromOption(e))},mh=tZ(d0),mm=mh,mv=t$(sn),my=mv,mg=mv,m_=mg,mb=tX(sn),mS=mb,mT=function(e,t){return function(){var n,r,i,o;return n=void 0,r=void 0,i=void 0,o=function(){var n;return mn(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e().then(nw.F2)];case 1:return[2,r.sent()];case 2:return n=r.sent(),[2,nw.t$(t(n))];case 3:return[2]}})},new(i||(i=Promise))(function(e,t){function u(e){try{c(o.next(e))}catch(n){t(n)}}function a(e){try{c(o.throw(e))}catch(n){t(n)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof i?n:new i(function(e){e(n)})).then(u,a)}c((o=o.apply(n,r||[])).next())})}},mI=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return mT(function(){return e.apply(void 0,n)},t)}},mx=t8(d0),mw=tN(d4),mO=tL(d4),mR=tA(sn),mC=tJ(sn),mM=mC,mE=(0,e4.dual)(2,t0(sn)),mk=function(e){return mE(vZ(e))},mP=function(e){return mE(vJ(e))},mF=t1(sn),mW=t2(d0),mD=function(e){var t=ms(e);return function(e){return(0,e4.flow)(e,t)}},mN=function(e){return function(t){return function(n){return m$(n,mD(e)(t))}}},mL=mN,mA=function(e){return(0,e4.flow)(e,md)},mj=function(e,t){return(0,e4.pipe)(e,mB(t))},mU=function(e,t){return(0,e4.pipe)(e,mH(t))},mq=function(e,t){return m$(e,function(e){return(0,e4.pipe)(t,mB(e))})},mG=function(e,t){return(0,e4.pipe)(e,mQ(t))},mB=tj(d0),mY=(0,e4.dual)(3,tV(d0)),mV=mY,mK=(0,e4.dual)(2,tz(d0)),mz=mK,mH=tU(d3),mZ=mH,m$=(0,e4.dual)(2,tG(sn)),mX=m$(e4.identity),mJ=mX,mQ=tB(sn),m0=mQ,m1=mi,m2=mr,m8="TaskEither";function m4(e,t){var n=(0,eU.ap)(e,tk.getApplicativeValidation(t));return{URI:m8,_E:void 0,map:mj,ap:function(e,t){return(0,e4.pipe)(e,n(t))},of:m1}}function m3(e){var t=tH(sn,e);return{URI:m8,_E:void 0,map:mj,alt:function(e,n){return(0,e4.pipe)(e,t(n))}}}var m5=function(e){var t=tk.getCompactable(e);return{URI:m8,_E:void 0,compact:tm(d0,t),separate:tv(d0,t,tk.Functor)}};function m7(e){var t=tk.getFilterable(e),n=m5(e),r=nt(d0,t),i=nn(d0,t),o=nr(d0,t),u=ni(d0,t);return{URI:m8,_E:void 0,map:mj,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e4.pipe)(e,r(t))},filterMap:function(e,t){return(0,e4.pipe)(e,i(t))},partition:function(e,t){return(0,e4.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e4.pipe)(e,u(t))}}}var m9={URI:m8,map:mj},m6=(0,e4.dual)(2,(0,td.as)(m9)),ve=(0,td.asUnit)(m9),vt=(0,td.flap)(m9),vn={URI:m8,of:m1},vr={URI:m8,map:mj,ap:mU},vi=(0,eU.apFirst)(vr),vo=vi,vu=(0,eU.apSecond)(vr),va=vu,vc={URI:m8,map:mj,ap:mU,of:m1},vf={URI:m8,map:mj,ap:mq},vl={URI:m8,map:mj,ap:mq,of:m1},vp={URI:m8,map:mj,ap:mU,chain:m$},vd={URI:m8,map:mj,ap:mU,chain:m$,of:m1},vs={URI:m8,map:mj,ap:mU,chain:m$,of:m1,fromIO:mf},vh={URI:m8,map:mj,ap:mU,chain:m$,of:m1,fromIO:mf,fromTask:ml},vm={URI:m8,map:mj,ap:mU,chain:m$,of:m1,throwError:m2},vv={URI:m8,fromEither:mp},vy={URI:m8,fromIO:mf},vg={URI:m8,fromIO:mf,fromTask:ml},v_=(0,e4.dual)(2,tu.tap(vp)),vb=(0,e4.dual)(2,(0,nb.tapEither)(vv,vp)),vS=(0,e4.dual)(2,nx(vy,vp)),vT=(0,e4.dual)(2,ih(vg,vp)),vI={URI:m8,bimap:mY,mapLeft:mK},vx={URI:m8,map:mj,alt:mG},vw=(0,nb.fromOption)(vv),vO=(0,nb.fromOptionK)(vv),vR=(0,nb.chainOptionK)(vv,vp),vC=vR,vM={fromEither:vv.fromEither},vE=nw.uL(vM),vk=nw.WE(vM),vP={flatMap:m$},vF={fromIO:vy.fromIO},vW=nw.ny(vM,vP),vD=nw.hU(vM,vP),vN=nw.iu(vM,vP),vL=nw.we(vF,vP),vA=nw.D9({fromTask:ml},vP),vj=(0,e4.dual)(2,function(e,t){return m$(e,mA(t))}),vU=(0,e4.dual)(3,function(e,t,n){return m$(e,function(e){return ms(function(){return n(e)})(t(e))})}),vq=vN,vG=vN,vB=vb,vY=vb,vV=(0,nb.fromPredicate)(vv),vK=(0,nb.filterOrElse)(vv,vp),vz=vK,vH=(0,nb.fromEitherK)(vv),vZ=nS(vy),v$=vL,vX=vS,vJ=ip(vg),vQ=vA,v0=vT,v1=vj,v2=vj;function v8(e){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(n){var r=function(e,t){return null!=e?n(nw.t$(e)):n(nw.F2(t))};e.apply(null,t.concat(r))})}}}var v4=function(e,t,n){return v3(e,t,n)},v3=function(e,t,n){return m$(e,function(e){return d$(t(e),function(t){return m$(n(e,t),function(){return dZ(t)})})})},v5=m1(nw.F4),v7=(0,td.bindTo)(m9),v9=(0,td.let)(m9),v6=tu.bind(vp),ye=v6,yt=(0,eU.apS)(vr),yn=yt,yr=m1(nw.Xl),yi=function(e){return(0,e4.flow)(sT(e),dz(tk.traverseReadonlyNonEmptyArrayWithIndex(e4.SK)))},yo=function(e){var t=yi(e);return function(e){return nw.Od(e)?t(e):yr}},yu=function(e){return function(t){return function(){return nw.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nw.nM(i)?t:e(r+1,n)().then(function(e){return nw.nM(e)?e:(i.right.push(e.right),i)})})},e(0,nw.YM(t))().then(tk.map(nw.ri)))}}},ya=function(e){var t=yu(e);return function(e){return nw.Od(e)?t(e):yr}},yc=yo,yf=function(e){return yo(function(t,n){return e(n)})},yl=yf(e4.identity),yp=ya,yd=function(e){return ya(function(t,n){return e(n)})},ys=yd(e4.identity),yh=m$,ym=m$,yv=v_,yy=v_,yg=mE,y_=mE,yb={URI:m8,bimap:mY,mapLeft:mK,map:mj,of:m1,ap:mU,chain:m$,alt:mG,fromIO:mf,fromTask:ml,throwError:m2},yS={URI:m8,bimap:mY,mapLeft:mK,map:mj,of:m1,ap:mq,chain:m$,alt:mG,fromIO:mf,fromTask:ml,throwError:m2},yT=(0,eU.getApplySemigroup)(vf),yI=(0,eB.getApplicativeMonoid)(vl),yx=function(e){return(0,eU.getApplySemigroup)(d6)(tk.getSemigroup(e))};function yw(e){var t=m4(d9,e),n=m3(e);return{URI:m8,_E:void 0,map:mj,ap:t.ap,of:m1,chain:m$,bimap:mY,mapLeft:mK,alt:n.alt,fromIO:mf,fromTask:ml,throwError:m2}}var yO=nA,yR=tF(s5),yC=tP(s5),yM=(0,e4.flow)(mo,yO),yE=(0,e4.flow)(mu,yO),yk=function(e){return(0,e4.flow)(e,mi)},yP=function(e){return(0,e4.flow)(e,mr)},yF=tW(s2),yW=tD(s2),yD=(0,e4.flow)(ma,yO),yN=(0,e4.flow)(mc,yO),yL=function(e){return(0,e4.flow)(e,ma)},yA=function(e){return(0,e4.flow)(e,mc)},yj=sX,yU=yk,yq=yD,yG=yM,yB=(0,e4.flow)(md,yO),yY=function(e){return(0,e4.flow)(e,mp)},yV=tZ(s2),yK=yV,yz=t$(hr),yH=yz,yZ=yz,y$=yZ,yX=tX(hi),yJ=yX,yQ=t8(s2),y0=tN(s5),y1=tL(s5),y2=tA(hi),y8=nC,y4=nM,y3=y4,y5=tJ(hi),y7=y5,y9=(0,e4.dual)(2,t0(hi)),y6=t1(hi),ge=t2(s2),gt=function(e){return(0,e4.flow)(e,yB)},gn=function(e){return(0,e4.flow)(e,yO)},gr=function(e){return(0,e4.flow)(e,yY)},gi=function(e,t){return(0,e4.pipe)(e,gc(t))},go=function(e,t){return(0,e4.pipe)(e,gs(t))},gu=function(e,t){return gv(e,function(e){return(0,e4.pipe)(t,gc(e))})},ga=function(e,t){return(0,e4.pipe)(e,g_(t))},gc=tj(s2),gf=(0,e4.dual)(3,tV(s2)),gl=gf,gp=(0,e4.dual)(2,tz(s2)),gd=gp,gs=tU(s7),gh=gs,gm=yC,gv=(0,e4.dual)(2,tG(hi)),gy=gv(e4.identity),gg=gy,g_=tB(hi),gb=g_,gS=yR,gT="ReaderTaskEither",gI=function(e){var t=tk.getCompactable(e);return{URI:gT,_E:void 0,compact:tm(s2,t),separate:tv(s2,t,tk.Functor)}};function gx(e){var t=tk.getFilterable(e),n=gI(e),r=nt(s2,t),i=nn(s2,t),o=nr(s2,t),u=ni(s2,t);return{URI:gT,_E:void 0,map:gi,compact:n.compact,separate:n.separate,filter:function(e,t){return(0,e4.pipe)(e,r(t))},filterMap:function(e,t){return(0,e4.pipe)(e,i(t))},partition:function(e,t){return(0,e4.pipe)(e,o(t))},partitionMap:function(e,t){return(0,e4.pipe)(e,u(t))}}}function gw(e,t){var n=(0,eU.ap)(nQ,m4(e,t));return{URI:gT,_E:void 0,map:gi,ap:function(e,t){return(0,e4.pipe)(e,n(t))},of:gm}}function gO(e){var t=tH(hi,e);return{URI:gT,_E:void 0,map:gi,alt:function(e,n){return(0,e4.pipe)(e,t(n))}}}var gR={URI:gT,map:gi},gC=(0,e4.dual)(2,(0,td.as)(gR)),gM=(0,td.asUnit)(gR),gE=(0,td.flap)(gR),gk={URI:gT,of:gm},gP={URI:gT,map:gi,ap:go},gF=(0,eU.apFirst)(gP),gW=gF,gD=(0,eU.apSecond)(gP),gN=gD,gL={URI:gT,map:gi,ap:go,of:gm},gA={URI:gT,map:gi,ap:gu},gj={URI:gT,map:gi,ap:gu,of:gm},gU={URI:gT,map:gi,ap:go,chain:gv},gq={URI:gT,map:gi,ap:go,chain:gv,of:gm},gG={URI:gT,map:gi,ap:go,chain:gv,of:gm,fromIO:yq},gB={URI:gT,map:gi,ap:go,chain:gv,of:gm,fromIO:yq,fromTask:yG},gY={URI:gT,map:gi,ap:go,chain:gv,of:gm,throwError:gS},gV={URI:gT,fromEither:yj},gK={URI:gT,fromIO:yq},gz={URI:gT,fromIO:yq,fromTask:yG},gH={URI:gT,fromReader:yU},gZ=(0,e4.dual)(2,tu.tap(gU)),g$=(0,e4.dual)(2,(0,nb.tapEither)(gV,gU)),gX=(0,e4.dual)(2,nx(gK,gU)),gJ=(0,e4.dual)(2,ih(gz,gU)),gQ=(0,e4.dual)(2,rR(gH,gU)),g0=(0,e4.dual)(2,function(e,t){return gZ(e,gr(t))}),g1=(0,e4.dual)(2,function(e,t){return gZ(e,gn(t))}),g2=(0,e4.dual)(2,function(e,t){return gZ(e,_o(t))}),g8=(0,e4.dual)(2,function(e,t){return gZ(e,_c(t))}),g4={URI:gT,bimap:gf,mapLeft:gp},g3={URI:gT,map:gi,alt:ga},g5=rT(gH),g7=rI(gH),g9=rx(gH),g6=gQ,_e=gQ,_t=g0,_n=g0,_r=g1,_i=g1,_o=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return yF(e.apply(void 0,t))}},_u=g2,_a=g2,_c=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return yL(e.apply(void 0,t))}},_f=g8,_l=g8,_p=(0,nb.fromOption)(gV),_d=(0,nb.fromOptionK)(gV),_s=(0,nb.chainOptionK)(gV,gU),_h=_s,_m={fromEither:gV.fromEither},_v=nw.uL(_m),_y=nw.WE(_m),_g={flatMap:gv},__=nw.ny(_m,_g),_b=nw.hU(_m,_g),_S=nw.iu(_m,_g),_T=(0,e4.dual)(2,function(e,t){return gv(e,gn(t))}),_I=(0,e4.dual)(2,function(e,t){return gv(e,_o(t))}),_x=nw.we({fromIO:yq},_g),_w=nw.D9({fromTask:yG},_g),_O=nw.on({fromReader:yU},_g),_R=(0,e4.dual)(2,function(e,t){return gv(e,_c(t))}),_C=(0,e4.dual)(2,function(e,t){return gv(e,gt(t))}),_M=(0,e4.dual)(2,function(e,t){return gv(e,gr(t))}),_E=_S,_k=_S,_P=g$,_F=g$,_W=_T,_D=_T,_N=_I,_L=_I,_A=(0,nb.fromPredicate)(gV),_j=(0,nb.filterOrElse)(gV,gU),_U=_j,_q=(0,nb.fromEitherK)(gV),_G=nS(gK),_B=_x,_Y=gX,_V=ip(gz),_K=_w,_z=gJ,_H=_O,_Z=_O,_$=_R,_X=_R,_J=_C,_Q=_C,_0=_M,_1=_M;function _2(e,t,n){return _8(e,t,n)}function _8(e,t,n){return function(r){return v3(e(r),function(e){return t(e)(r)},function(e,t){return n(e,t)(r)})}}var _4=gm(nw.F4),_3=(0,td.bindTo)(gR),_5=(0,td.let)(gR),_7=tu.bind(gU),_9=_7,_6=(0,eU.apS)(gP),be=_6,bt=gm(nw.Xl),bn=function(e){return(0,e4.flow)(rl(e),nD(yi(e4.SK)))},br=function(e){var t=bn(e);return function(e){return nw.Od(e)?t(e):bt}},bi=function(e){return(0,e4.flow)(rl(e),nD(yu(e4.SK)))},bo=function(e){var t=bi(e);return function(e){return nw.Od(e)?t(e):bt}},bu=br,ba=function(e){return br(function(t,n){return e(n)})},bc=ba(e4.identity),bf=bo,bl=function(e){return bo(function(t,n){return e(n)})},bp=bl(e4.identity),bd=gv,bs=gv,bh=gZ,bm=gZ,bv=y9,by=y9,bg={URI:gT,map:gi,of:gm,ap:go,chain:gv,alt:ga,bimap:gf,mapLeft:gp,fromIO:yq,fromTask:yG,throwError:gS},b_={URI:gT,map:gi,of:gm,ap:gu,chain:gv,alt:ga,bimap:gf,mapLeft:gp,fromIO:yq,fromTask:yG,throwError:gS},bb=(0,eU.getApplySemigroup)(gA),bS=(0,eB.getApplicativeMonoid)(gj),bT=function(e){return(0,eU.getApplySemigroup)(ht)(tk.getSemigroup(e))};function bI(e){var t=gw(d9,e),n=gO(e);return{URI:gT,_E:void 0,map:gi,of:gm,chain:gv,bimap:gf,mapLeft:gp,ap:t.ap,alt:n.alt,fromIO:yq,fromTask:yG,throwError:gS}}function bx(e,t){return e(t)()}var bw=n(31583),bO=n(13512),bR=n(28350),bC=n(97054),bM=n(99156);function bE(e){return e[0]}function bk(e){return e[1]}var bP=function(e){var t;return[bk(e),e[0]]};function bF(e){return{URI:b5,_E:void 0,map:bU,ap:function(t,n){var r,i;return[(0,t[0])(n[0]),e.concat(bk(t),bk(n))]}}}var bW=function(e){return function(t){return[t,e.empty]}};function bD(e){var t=bF(e);return{URI:b5,_E:void 0,map:bU,ap:t.ap,of:bW(e)}}function bN(e){var t=bF(e);return{URI:b5,_E:void 0,map:bU,ap:t.ap,chain:function(t,n){var r,i=n(t[0]),o=i[0],u=i[1];return[o,e.concat(bk(t),u)]}}}function bL(e){var t=bN(e);return{URI:b5,_E:void 0,map:bU,ap:t.ap,chain:t.chain,of:bW(e)}}function bA(e){var t=function(t,n){for(var r,i,o=n(t),u=e.empty,a=(i=o)[0];"Left"===a._tag;)u=e.concat(u,bk(o)),a=(r=o=n(a.left))[0];return[a.right,e.concat(u,bk(o))]},n=bN(e);return{URI:b5,_E:void 0,map:bU,ap:n.ap,chain:n.chain,chainRec:t}}var bj=function(e,t){return(0,e4.pipe)(e,bX(t))},bU=function(e,t){return(0,e4.pipe)(e,bZ(t))},bq=function(e,t,n){return(0,e4.pipe)(e,bH(t,n))},bG=function(e,t){return(0,e4.pipe)(e,b$(t))},bB=function(e,t){return(0,e4.pipe)(e,bJ(t))},bY=function(e,t,n){return(0,e4.pipe)(e,b1(t,n))},bV=function(e){var t=b2(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},bK=function(e,t,n){return(0,e4.pipe)(e,b8(t,n))},bz=function(e){var t=b4(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},bH=function(e,t){return function(n){var r;return[t(n[0]),e(bk(n))]}},bZ=function(e){return function(t){var n;return[e(t[0]),bk(t)]}},b$=function(e){return function(t){var n;return[t[0],e(bk(t))]}},bX=function(e){return function(t){var n;return[t[0],bk(e)]}},bJ=function(e){return function(t){return[e(t),bk(t)]}},bQ=bE,b0=bJ(e4.identity),b1=function(e,t){return function(n){var r;return t(e,n[0])}},b2=function(){return function(e){return function(t){var n;return e(t[0])}}},b8=function(e,t){return function(n){var r;return t(n[0],e)}},b4=function(e){return function(t){return function(n){var r;return e.map(t(n[0]),function(e){return[e,bk(n)]})}}},b3=function(e){return function(t){var n;return e.map(t[0],function(e){return[e,bk(t)]})}},b5="ReadonlyTuple",b7={URI:b5,map:bU},b9=(0,td.flap)(b7),b6=bZ,Se=b$,St={URI:b5,bimap:bq,mapLeft:bG},Sn={URI:b5,compose:bj},Sr={URI:b5,map:bU,extend:bB,extract:bQ},Si={URI:b5,reduce:bY,foldMap:bV,reduceRight:bK},So={URI:b5,map:bU,reduce:bY,foldMap:bV,reduceRight:bK,traverse:bz,sequence:b3},Su={URI:b5,compose:bj,map:bU,bimap:bq,mapLeft:bG,extract:bQ,extend:bB,reduce:bY,foldMap:bV,reduceRight:bK,traverse:bz,sequence:b3},Sa=n(3291),Sc=n(57029),Sf=n(76511),Sl=function(){return(Sl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},Sp=bC.size,Sd=bC.isEmpty,Ss=function(e){return function(t){return Object.keys(t).sort(e.compare)}},Sh=Ss(Sc.Ord);function Sm(e){if("function"==typeof e)return Sm(Sc.Ord)(e);var t=Ss(e);return function(e){return function(n){for(var r=[],i=0,o=t(n);i<o.length;i++){var u=o[i];r.push(e(u,n[u]))}return r}}}var Sv=Sm(Sc.Ord)(function(e,t){return[e,t]});function Sy(e){return function(t){var n=Sv(t),r=n.length;return e.unfold(0,function(e){return e<r?nw.G([n[e],e+1]):nw.YP})}}var Sg=bC.upsertAt,S_=bC.has;function Sb(e){return function(t){if(!nw.e$.call(t,e))return t;var n=Object.assign({},t);return delete n[e],n}}var SS=function(e,t){return ST(e,function(){return t})},ST=function(e,t){return function(n){if(!S_(e,n))return nw.YP;var r=Object.assign({},n);return r[e]=t(n[e]),nw.G(r)}};function SI(e){var t=Sb(e);return function(n){var r=Sw(e,n);return nw.Wi(r)?nw.YP:nw.G([r.value,t(n)])}}var Sx=bC.isSubrecord,Sw=bC.lookup,SO=bC.mapWithIndex,SR=bC.map;function SC(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bC.reduceWithIndex(e[0]):bC.reduceWithIndex(Sc.Ord).apply(void 0,e)}function SM(e){return"compare"in e?bC.foldMapWithIndex(e):bC.foldMapWithIndex(Sc.Ord)(e)}function SE(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bC.reduceRightWithIndex(e[0]):bC.reduceRightWithIndex(Sc.Ord).apply(void 0,e)}var Sk=bC.singleton;function SP(e){return bC.traverseWithIndex(e)}function SF(e){return bC.traverse(e)}function SW(e){return bC.sequence(e)}var SD=function(e){var t=SF(e);return function(n){return function(r){return e.map((0,e4.pipe)(r,t(n)),Ts)}}},SN=function(e){var t=SF(e);return function(n){return function(r){return e.map((0,e4.pipe)(r,t(n)),Th)}}},SL=bC.partitionMapWithIndex;function SA(e){return bC.partitionWithIndex(e)}var Sj=bC.filterMapWithIndex;function SU(e){return bC.filterWithIndex(e)}function Sq(e,t){return bC.fromFoldable(e,t)}var SG=Sv,SB=function(e){return Sq(Sa.last(),eY.Foldable)(e)};function SY(e,t){return bC.fromFoldableMap(e,t)}var SV=bC.every,SK=bC.some,Sz=bC.elem,SH=function(e){var t=bC.union(e);return function(e){return function(n){return Sd(n)?Sl({},e):Sd(e)?Sl({},n):t(e)(n)}}},SZ=function(e){return function(t){return function(n){return Sd(n)||Sd(t)?{}:bC.intersection(e)(t)(n)}}},S$=function(e){return function(t){return Sd(t)?Sl({},e):Sd(e)?Sl({},t):bC.difference(e)(t)}},SX=bC._map,SJ=bC._mapWithIndex,SQ=bC._reduce,S0=bC._foldMap,S1=bC._reduceRight,S2=bC._filter,S8=bC._filterMap,S4=bC._partition,S3=bC._partitionMap,S5=bC._reduceWithIndex,S7=bC._foldMapWithIndex,S9=bC._reduceRightWithIndex,S6=bC._partitionMapWithIndex,Te=bC._partitionWithIndex,Tt=bC._filterMapWithIndex,Tn=bC._filterWithIndex,Tr=bC._traverse,Ti=bC._sequence,To=function(e){return function(t){var n=Ss(e);return function(e,r){var i=n(e);if(0===i.length)return t.of({});for(var o=t.of({}),u=function(n){o=t.ap(t.map(o,function(e){return function(t){return e[n]=t,e}}),r(n,e[n]))},a=0;a<i.length;a++)u(i[a]);return o}}},Tu=bC.filter,Ta=bC.filterMap,Tc=bC.partition,Tf=bC.partitionMap;function Tl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bC.reduce(e[0]):bC.reduce(Sc.Ord).apply(void 0,e)}function Tp(e){return"compare"in e?bC.foldMap(e):bC.foldMap(Sc.Ord)(e)}function Td(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length?bC.reduceRight(e[0]):bC.reduceRight(Sc.Ord).apply(void 0,e)}var Ts=bC.compact,Th=bC.separate,Tm="Record";function Tv(e){return"compare"in e?bC.getShow(e):bC.getShow(Sc.Ord)(e)}var Ty=bC.getEq,Tg=bC.getMonoid,T_={URI:Tm,map:SX},Tb=(0,td.flap)(T_),TS={URI:Tm,map:SX,mapWithIndex:SJ},TT=function(e){return{URI:Tm,reduce:SQ(e),foldMap:S0(e),reduceRight:S1(e)}},TI=function(e){return{URI:Tm,reduce:SQ(e),foldMap:S0(e),reduceRight:S1(e),reduceWithIndex:S5(e),foldMapWithIndex:S7(e),reduceRightWithIndex:S9(e)}},Tx={URI:Tm,compact:Ts,separate:Th},Tw={URI:Tm,map:SX,compact:Ts,separate:Th,filter:S2,filterMap:S8,partition:S4,partitionMap:S3},TO={URI:Tm,map:SX,mapWithIndex:SJ,compact:Ts,separate:Th,filter:S2,filterMap:S8,partition:S4,partitionMap:S3,filterMapWithIndex:Tt,filterWithIndex:Tn,partitionMapWithIndex:S6,partitionWithIndex:Te},TR=function(e){return{URI:Tm,map:SX,reduce:SQ(e),foldMap:S0(e),reduceRight:S1(e),traverse:Tr(e),sequence:Ti(e)}},TC=function(e){return{URI:Tm,map:SX,mapWithIndex:SJ,reduce:SQ(e),foldMap:S0(e),reduceRight:S1(e),reduceWithIndex:S5(e),foldMapWithIndex:S7(e),reduceRightWithIndex:S9(e),traverse:Tr(e),sequence:Ti(e),traverseWithIndex:To(e)}},TM=function(e){var t=TR(e);return{URI:Tm,map:SX,reduce:SQ(e),foldMap:S0(e),reduceRight:S1(e),traverse:t.traverse,sequence:t.sequence,compact:Ts,separate:Th,filter:S2,filterMap:S8,partition:S4,partitionMap:S3,wither:(0,Sf.witherDefault)(t,Tx),wilt:(0,Sf.wiltDefault)(t,Tx)}},TE=function(e){var t=SH(e);return{concat:function(e,n){return t(n)(e)}}},Tk=function(e){return{concat:TE(e).concat,empty:{}}},TP=function(e){var t=SZ(e);return{concat:function(e,n){return t(n)(e)}}},TF=function(){return{concat:function(e,t){return S$(t)(e)}}},TW={URI:Tm,reduce:SQ(Sc.Ord),foldMap:S0(Sc.Ord),reduceRight:S1(Sc.Ord)},TD={URI:Tm,reduce:SQ(Sc.Ord),foldMap:S0(Sc.Ord),reduceRight:S1(Sc.Ord),reduceWithIndex:S5(Sc.Ord),foldMapWithIndex:S7(Sc.Ord),reduceRightWithIndex:S9(Sc.Ord)},TN={URI:Tm,map:SX,reduce:SQ(Sc.Ord),foldMap:S0(Sc.Ord),reduceRight:S1(Sc.Ord),traverse:Tr(Sc.Ord),sequence:SW},TL={URI:Tm,map:SX,mapWithIndex:SJ,reduce:SQ(Sc.Ord),foldMap:S0(Sc.Ord),reduceRight:S1(Sc.Ord),reduceWithIndex:S5(Sc.Ord),foldMapWithIndex:S7(Sc.Ord),reduceRightWithIndex:S9(Sc.Ord),traverse:Tr(Sc.Ord),sequence:SW,traverseWithIndex:To(Sc.Ord)},TA=(0,Sf.witherDefault)(TN,Tx),Tj=(0,Sf.wiltDefault)(TN,Tx),TU={URI:Tm,map:SX,reduce:SQ(Sc.Ord),foldMap:S0(Sc.Ord),reduceRight:S1(Sc.Ord),traverse:Tr(Sc.Ord),sequence:SW,compact:Ts,separate:Th,filter:S2,filterMap:S8,partition:S4,partitionMap:S3,wither:TA,wilt:Tj},Tq={},TG=Sg,TB=bC.hasOwnProperty,TY={URI:Tm,map:SX,reduce:SQ(Sc.Ord),foldMap:S0(Sc.Ord),reduceRight:S1(Sc.Ord),traverse:Tr(Sc.Ord),sequence:SW,compact:Ts,separate:Th,filter:S2,filterMap:S8,partition:S4,partitionMap:S3,mapWithIndex:SJ,reduceWithIndex:S5(Sc.Ord),foldMapWithIndex:S7(Sc.Ord),reduceRightWithIndex:S9(Sc.Ord),filterMapWithIndex:Tt,filterWithIndex:Tn,partitionMapWithIndex:S6,partitionWithIndex:Te,traverseWithIndex:To(Sc.Ord),wither:TA,wilt:Tj},TV=function(e){return function(t){return nw.pC(e(t))}},TK=function(e){return function(t){return nw.tO(e(t))}},Tz=function(){return function(e){return!0}},TH=function(e){return function(t){return!e(t)}},TZ=function(e){return function(t){return function(n){return t(n)||e(n)}}},T$=function(e){return function(t){return function(n){return t(n)&&e(n)}}},TX=function(){return function(e){return!1}},TJ=function(e){return function(t){return function(n){return t(n)&&e(n)}}},TQ=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{add:function(t,n){return e.map(function(e,r){return e.add(t[r],n[r])})},zero:e.map(function(e){return e.zero}),mul:function(t,n){return e.map(function(e,r){return e.mul(t[r],n[r])})},one:e.map(function(e){return e.one}),sub:function(t,n){return e.map(function(e,r){return e.sub(t[r],n[r])})}}},T0=function(e){return function(t){return e.sub(e.zero,t)}},T1=TQ,T2=e4.getRing,T8=e4.getSemiring,T4=n(1214),T3=function(e){return{show:function(t){var n="{";for(var r in e)nw.e$.call(e,r)&&(n+=" ".concat(r,": ").concat(e[r].show(t[r]),","));return n.length>1&&(n=n.slice(0,-1)+" "),n+="}"}}},T5=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,n){return e[n].show(t)}).join(", "),"]")}}},T7=T5,T9=T3,T6={show:function(e){return JSON.stringify(e)}},Ie={show:function(e){return JSON.stringify(e)}},It={show:function(e){return JSON.stringify(e)}};function In(e){return function(t){return function(n){return e.of([t,n])}}}function Ir(e){return function(t){return function(n){return function(r){return e.map(n(r),function(e){var n=e[0],r=e[1];return[t(n),r]})}}}}function Ii(e){return function(t){return function(n){return function(r){return e.chain(n(r),function(n){var r=n[0],i=n[1];return e.map(t(i),function(e){var t=e[0],n=e[1];return[r(t),n]})})}}}}function Io(e){var t=Iu(e);return function(e){return function(n){return t(n,e)}}}function Iu(e){return function(t,n){return function(r){return e.chain(t(r),function(e){var t=e[0],r=e[1];return n(t)(r)})}}}function Ia(e){return function(t){return function(n){return e.of(t(n))}}}function Ic(e){return function(t){return function(n){return e.map(t,function(e){return[e,n]})}}}function If(e){return function(t){return function(n){return e.map(n(t),function(e){return e[0]})}}}function Il(e){return function(t){return function(n){return e.map(n(t),bk)}}}function Ip(e){var t=Ii(e),n=Ir(e),r=Io(e),i=If(e),o=Il(e);return{map:function(e,t){return(0,e4.pipe)(e,n(t))},ap:function(e,n){return(0,e4.pipe)(e,t(n))},of:In(e),chain:function(e,t){return(0,e4.pipe)(e,r(t))},get:function(){return function(t){return e.of([t,t])}},put:function(t){return function(){return e.of([void 0,t])}},modify:function(t){return function(n){return e.of([void 0,t(n)])}},gets:function(t){return function(n){return e.of([t(n),n])}},fromState:Ia(e),fromM:Ic(e),evalState:function(e,t){return(0,e4.pipe)(e,i(t))},execState:function(e,t){return(0,e4.pipe)(e,o(t))}}}var Id=function(e){return function(){return yR(e)}},Is=In(gk);function Ih(e){return IE(yM(e))}function Im(e){return IE(yE(e))}function Iv(e){return IE(yk(e))}function Iy(e){return IE(yP(e))}function Ig(e){return IE(yD(e))}function I_(e){return IE(yN(e))}var Ib=function(e){return(0,e4.flow)(e,yC)},IS=function(e){return function(t){return yR(e(t)[0])}},IT=tk.match(function(e){return Id(e)},Is),II=Iv,Ix=Ig,Iw=Ih,IO=Ia(gk),IR=function(e){return IE(yO(e))},IC=function(e){return IE(yB(e))},IM=function(e){return IE(yY(e))},IE=Ic(gR),Ik=function(e){return function(t){return(0,e4.flow)(t,nC(e))}},IP=function(e){return function(t){return function(n){return e(n)(t)(n)}}},IF=IP,IW=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IC(e.apply(void 0,t))}},ID=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IR(e.apply(void 0,t))}},IN=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return IE(e.apply(void 0,t))}},IL=function(e){return function(t){return IX(t,IN(e))}},IA=IL,Ij=function(e,t){return(0,e4.pipe)(e,IY(t))},IU=function(e,t){return(0,e4.pipe)(e,Iz(t))},Iq=function(e,t){return function(n){return(0,e4.pipe)(e(n),g_(function(){return t()(n)}))}},IG=function(e,t,n){return function(r){return(0,e4.pipe)(e(r),gl(t,function(e){var t=e[0],r=e[1];return[n(t),r]}))}},IB=function(e,t){return function(n){return(0,e4.pipe)(e(n),gd(t))}},IY=Ir(gR),IV=function(e,t){return function(n){return IG(n,e,t)}},IK=function(e){return function(t){return IB(t,e)}},Iz=Ii(gU),IH=Iz,IZ=Is,I$={fromEither:IT},IX=(0,e4.dual)(2,Iu(gq)),IJ={flatMap:IX},IQ=(0,e4.dual)(2,function(e,t){return IX(e,function(e){return ID(t)(e)})}),I0=nw.we({fromIO:Ix},IJ),I1=nw.D9({fromTask:Iw},IJ),I2=nw.on({fromReader:II},IJ),I8=(0,e4.dual)(2,function(e,t){return IX(e,function(e){return IW(t)(e)})}),I4=(0,e4.dual)(2,nw.iu(I$,IJ)),I3=nw.hU(I$,IJ),I5=(0,e4.dual)(2,function(e,t){return IX(e,function(e){return IN(t)(e)})}),I7=(0,e4.dual)(2,function(e,t){return IX(e,xS(t))}),I9=IX(e4.identity),I6=I9,xe=function(e){return function(t){return function(n){return(0,e4.pipe)(t(n),gb(function(){return e()(n)}))}}},xt=xe,xn=Id,xr="StateReaderTaskEither",xi={URI:xr,map:Ij},xo=(0,e4.dual)(2,(0,td.as)(xi)),xu=(0,td.asUnit)(xi),xa=(0,td.flap)(xi),xc={URI:xr,of:IZ},xf={URI:xr,map:Ij,ap:IU},xl=(0,eU.apFirst)(xf),xp=xl,xd=(0,eU.apSecond)(xf),xs=xd,xh={URI:xr,map:Ij,ap:IU,of:IZ},xm={URI:xr,map:Ij,ap:IU,chain:IX},xv={URI:xr,fromState:IO},xy=ii(xv),xg=io(xv),x_=iu(xv),xb=ia(xv),xS=ic(xv),xT=il(xv,xm),xI={URI:xr,map:Ij,ap:IU,of:IZ,chain:IX},xx={URI:xr,map:Ij,ap:IU,of:IZ,chain:IX,fromIO:Ix},xw={URI:xr,map:Ij,ap:IU,of:IZ,chain:IX,fromIO:Ix,fromTask:Iw},xO={URI:xr,map:Ij,ap:IU,of:IZ,chain:IX,throwError:xn},xR={URI:xr,fromEither:IT},xC={URI:xr,fromIO:Ix},xM={URI:xr,fromIO:Ix,fromTask:Iw},xE={URI:xr,fromReader:II},xk=(0,e4.dual)(2,tu.tap(xm)),xP=(0,e4.dual)(2,(0,nb.tapEither)(xR,xm)),xF=(0,e4.dual)(2,nx(xC,xm)),xW=(0,e4.dual)(2,ih(xM,xm)),xD=(0,e4.dual)(2,rR(xE,xm)),xN={URI:xr,bimap:IG,mapLeft:IB},xL={URI:xr,map:Ij,alt:Iq},xA=rT(xE),xj=rI(xE),xU=rx(xE),xq=I2,xG=I2,xB=xD,xY=xD,xV=(0,nb.fromOption)(xR),xK=(0,nb.fromOptionK)(xR),xz=(0,nb.chainOptionK)(xR,xm),xH=xz,xZ=I4,x$=I4,xX=xP,xJ=xP,xQ=(0,nb.fromPredicate)(xR),x0=(0,nb.filterOrElse)(xR,xm),x1=x0,x2=(0,nb.fromEitherK)(xR),x8=nS(xC),x4=I0,x3=xF,x5=IQ,x7=IQ,x9=I8,x6=I8,we=ip(xM),wt=I1,wn=xW,wr=If(gR),wi=Il(gR),wo=(0,td.bindTo)(xi),wu=(0,td.let)(xi),wa=tu.bind(xm),wc=wa,wf=(0,eU.apS)(xf),wl=wf,wp=function(e){return function(t){return function(n){return function(r){return function(){return nw.Gb(t).reduce(function(t,n,i){return t.then(function(o){return nw.nM(o)?t:e(i+1,n)(o.right[1])(r)().then(function(e){if(nw.nM(e))return e;var t=e.right,n=t[0],r=t[1];return o.right[0].push(n),o.right[1]=r,o})})},e(0,nw.YM(t))(n)(r)().then(tk.map(function(e){var t;return[[e[0]],e[1]]})))}}}}},wd=function(e){var t=wp(e);return function(e){return nw.Od(e)?t(e):IZ(nw.Xl)}},ws=wd,wh=function(e){return wd(function(t,n){return e(n)})},wm=wh(e4.identity),wv=IX,wy=IX,wg=xk,w_=xk,wb={URI:xr,map:Ij,of:IZ,ap:IU,chain:IX,bimap:IG,mapLeft:IB,alt:Iq,fromIO:Ix,fromTask:Iw,throwError:xn},wS={URI:xr,map:Ij,of:IZ,ap:IU,chain:IX,bimap:IG,mapLeft:IB,alt:Iq,fromIO:Ix,fromTask:Iw,throwError:xn},wT=function(e,t){return(0,e4.pipe)(e(t),gc(function(e){return e[0]}))},wI=function(e,t){return(0,e4.pipe)(e(t),gc(function(e){return e[0],e[1]}))};function wx(e,t,n){return e(t)(n)()}function ww(e){return function(t){return{peek:t.peek,pos:e}}}function wO(e){return function(t){return{peek:t.peek,pos:e(t.pos)}}}function wR(e){return function(t){return t.peek(e(t.pos))}}function wC(e){return function(t){return function(n){return e.map(t(n.pos),function(e){return n.peek(e)})}}}var wM=function(e,t){return(0,e4.pipe)(e,wW(t))},wE=function(e,t){return(0,e4.pipe)(e,wk(t))},wk=function(e){return function(t){return{peek:function(n){return e({peek:t.peek,pos:n})},pos:t.pos}}},wP=function(e){return e.peek(e.pos)},wF=wk(e4.identity),wW=function(e){return function(t){return{peek:function(n){return e(t.peek(n))},pos:t.pos}}},wD="Store",wN={URI:wD,map:wM},wL=(0,td.flap)(wN),wA={URI:wD,map:wM,extend:wE,extract:wP},wj=wA;function wU(e,t){return function(n,r){return t.compose(e.second(r),e.first(n))}}function wq(e,t){var n=wU(e,t);return function(r,i){return t.compose(n(r,i),e.promap(t.id(),e4.identity,function(e){return[e,e]}))}}function wG(e){return wU(e,e)}function wB(e){return wq(e,e)}var wY=function(){return{concat:function(e,t){return Object.assign({},e,t)}}},wV=function(e){return function(t){var n={};for(var r in t)nw.e$.call(t,r)&&(n[r]=e[r](t[r]));return n}},wK=function(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},wz=aU(d4),wH=aH(d4),wZ=dZ,w$=aZ(d4),wX=function(e){return wJ(dG(e))},wJ=aG(d0),wQ=dz(ts.fromEither),w0=a$(d0),w1=w0,w2=aX(st),w8=w2,w4=w2,w3=w4,w5=aJ(sn),w7=w5,w9=aB(d4),w6=function(e){return function(){var t,n,r,i;return t=void 0,n=void 0,r=void 0,i=function(){return wK(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,e().then(nw.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,nw.YP];case 3:return[2]}})},new(r||(r=Promise))(function(e,o){function u(e){try{c(i.next(e))}catch(t){o(t)}}function a(e){try{c(i.throw(e))}catch(t){o(t)}}function c(t){var n;t.done?e(t.value):((n=t.value)instanceof r?n:new r(function(e){e(n)})).then(u,a)}c((i=i.apply(t,n||[])).next())})}},Oe=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return w6(function(){return e.apply(void 0,t)})}},Ot=aY(d4),On=aV(sn),Or=aK(d4),Oi=az(sn),Oo=aQ(d0),Ou=a0(d3),Oa=wz,Oc=(0,e4.dual)(2,a2(sn)),Of={flatMap:Oc},Ol=nw.we({fromIO:wX},Of),Op=nw.D9({fromTask:wJ},Of),Od=Oc(e4.identity),Os=a8(sn),Oh=Os,Om=aq(d4),Ov=Om(),Oy=tm(d0,ts.Compactable),Og=tv(d0,ts.Compactable,ts.Functor),O_=nt(d0,ts.Filterable),Ob=nn(d0,ts.Filterable),OS=nr(d0,ts.Filterable),OT=ni(d0,ts.Filterable),OI=function(e,t){return(0,e4.pipe)(e,Oo(t))},Ox=function(e,t){return(0,e4.pipe)(e,Ou(t))},Ow=function(e,t){return(0,e4.pipe)(e,Os(t))},OO=function(e,t){return(0,e4.pipe)(e,O_(t))},OR=function(e,t){return(0,e4.pipe)(e,Ob(t))},OC=function(e,t){return(0,e4.pipe)(e,OS(t))},OM=function(e,t){return(0,e4.pipe)(e,OT(t))},OE="TaskOption",Ok={URI:OE,map:OI},OP=(0,e4.dual)(2,(0,td.as)(Ok)),OF=(0,td.asUnit)(Ok),OW=(0,td.flap)(Ok),OD={URI:OE,of:Oa},ON={URI:OE,map:OI,ap:Ox},OL=(0,eU.apFirst)(ON),OA=(0,eU.apSecond)(ON),Oj={URI:OE,map:OI,ap:Ox,of:Oa},OU=function(e,t){return Oc(e,function(e){return(0,e4.pipe)(t,Oo(e))})},Oq={URI:OE,map:OI,ap:OU},OG={URI:OE,map:OI,ap:OU,of:Oa},OB={URI:OE,map:OI,ap:Ox,chain:Oc},OY={URI:OE,fromEither:w$},OV={URI:OE,fromIO:wX},OK={URI:OE,fromIO:wX,fromTask:wJ},Oz=(0,e4.dual)(2,tu.tap(OB)),OH=(0,e4.dual)(2,(0,nb.tapEither)(OY,OB)),OZ=(0,e4.dual)(2,nx(OV,OB)),O$=(0,e4.dual)(2,ih(OK,OB)),OX={URI:OE,map:OI,alt:Ow},OJ={URI:OE,zero:Om},OQ=(0,a3.guard)(OJ,OD),O0={URI:OE,map:OI,ap:Ox,of:Oa,alt:Ow,zero:Om},O1={URI:OE,map:OI,ap:Ox,of:Oa,chain:Oc},O2={URI:OE,map:OI,ap:Ox,of:Oa,chain:Oc,fromIO:wX},O8={URI:OE,map:OI,ap:Ox,of:Oa,chain:Oc,fromIO:wX,fromTask:wJ},O4={URI:OE,compact:Oy,separate:Og},O3={URI:OE,map:OI,compact:Oy,separate:Og,filter:OO,filterMap:OR,partition:OC,partitionMap:OM},O5=nS(OV),O7=Ol,O9=OZ,O6=(0,nb.fromEitherK)(OY),Re=(0,nb.chainEitherK)(OY,OB),Rt=OH,Rn=ip(OK),Rr=Op,Ri=O$,Ro=Oa(nw.F4),Ru=(0,td.bindTo)(Ok),Ra=(0,td.let)(Ok),Rc=tu.bind(OB),Rf=(0,eU.apS)(ON),Rl=Oa(nw.Xl),Rp=function(e){return(0,e4.flow)(sT(e),dz(ts.traverseReadonlyNonEmptyArrayWithIndex(e4.SK)))},Rd=function(e){var t=Rp(e);return function(e){return nw.Od(e)?t(e):Rl}},Rs=function(e){return function(t){return function(){return nw.Gb(t).reduce(function(t,n,r){return t.then(function(i){return nw.Wi(i)?t:e(r+1,n)().then(function(e){return nw.Wi(e)?e:(i.value.push(e.value),i)})})},e(0,nw.YM(t))().then(ts.map(nw.ri)))}}},Rh=function(e){var t=Rs(e);return function(e){return nw.Od(e)?t(e):Rl}},Rm=Rd,Rv=function(e){return Rd(function(t,n){return e(n)})},Ry=Rv(e4.identity),Rg=Rh,R_=function(e){return Rh(function(t,n){return e(n)})},Rb=R_(e4.identity),RS=Oc,RT=Oz,RI=function(e){return"Left"===e._tag},Rx=function(e){return"Right"===e._tag};function Rw(e){return"Both"===e._tag}function RO(e){return{_tag:"Left",left:e}}function RR(e){return{_tag:"Right",right:e}}function RC(e,t){return{_tag:"Both",left:e,right:t}}var RM=function(e,t,n){return function(r){switch(r._tag){case"Left":return e(r.left);case"Right":return t(r.right);case"Both":return n(r.left,r.right)}}},RE=RM,Rk=RM,RP=Rk,RF=Rk(RR,RO,function(e,t){return RC(t,e)});function RW(e,t){return{show:Rk(function(t){return"left(".concat(e.show(t),")")},function(e){return"right(".concat(t.show(e),")")},function(n,r){return"both(".concat(e.show(n),", ").concat(t.show(r),")")})}}function RD(e,t){return(0,t5.fromEquals)(function(n,r){return RI(n)?RI(r)&&e.equals(n.left,r.left):Rx(n)?Rx(r)&&t.equals(n.right,r.right):Rw(r)&&e.equals(n.left,r.left)&&t.equals(n.right,r.right)})}function RN(e,t){return{concat:function(n,r){return RI(n)?RI(r)?RO(e.concat(n.left,r.left)):Rx(r)?RC(n.left,r.right):RC(e.concat(n.left,r.left),r.right):Rx(n)?RI(r)?RC(r.left,n.right):Rx(r)?RR(t.concat(n.right,r.right)):RC(r.left,t.concat(n.right,r.right)):RI(r)?RC(e.concat(n.left,r.left),n.right):Rx(r)?RC(n.left,t.concat(n.right,r.right)):RC(e.concat(n.left,r.left),t.concat(n.right,r.right))}}}var RL=function(e){return{URI:Ce,_E:void 0,map:RH,ap:function(t,n){return RI(t)?RI(n)?RO(e.concat(t.left,n.left)):Rx(n)?RO(t.left):RO(e.concat(t.left,n.left)):Rx(t)?RI(n)?RO(n.left):Rx(n)?RR(t.right(n.right)):RC(n.left,t.right(n.right)):RI(n)?RO(e.concat(t.left,n.left)):Rx(n)?RC(t.left,t.right(n.right)):RC(e.concat(t.left,n.left),t.right(n.right))}}};function RA(e){var t=RL(e);return{URI:Ce,_E:void 0,map:RH,ap:t.ap,of:R6}}function Rj(e){var t=RL(e),n=function(t,n){if(RI(t))return t;if(Rx(t))return n(t.right);var r=n(t.right);return RI(r)?RO(e.concat(t.left,r.left)):Rx(r)?RC(t.left,r.right):RC(e.concat(t.left,r.left),r.right)};return{URI:Ce,_E:void 0,map:RH,ap:t.ap,chain:n}}function RU(e){var t=Rj(e);return{URI:Ce,_E:void 0,map:RH,of:R6,ap:t.ap,chain:t.chain,throwError:RO}}function Rq(e){return RI(e)?nw.G(e.left):Rx(e)?nw.YP:nw.G(e.left)}function RG(e){return RI(e)?nw.YP:(Rx(e),nw.G(e.right))}function RB(e){return function(t){return nw.Wi(t)?RO(e):RC(e,t.value)}}function RY(e){return function(t){return nw.Wi(t)?RR(e):RC(t.value,e)}}function RV(e){return RI(e)?nw.G(e.left):nw.YP}function RK(e){return Rx(e)?nw.G(e.right):nw.YP}var Rz=function(e,t){return nw.Wi(e)?nw.Wi(t)?nw.YP:nw.G(RR(t.value)):nw.Wi(t)?nw.G(RO(e.value)):nw.G(RC(e.value,t.value))},RH=function(e,t){return(0,e4.pipe)(e,R8(t))},RZ=function(e,t,n){return(0,e4.pipe)(e,R1(t,n))},R$=function(e,t){return(0,e4.pipe)(e,R2(t))},RX=function(e,t,n){return(0,e4.pipe)(e,R4(t,n))},RJ=function(e){var t=R3(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},RQ=function(e,t,n){return(0,e4.pipe)(e,R5(t,n))},R0=function(e){var t=R7(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},R1=function(e,t){return function(n){return RI(n)?RO(e(n.left)):Rx(n)?RR(t(n.right)):RC(e(n.left),t(n.right))}},R2=function(e){return function(t){return RI(t)?RO(e(t.left)):Rw(t)?RC(e(t.left),t.right):t}},R8=function(e){return function(t){return RI(t)?t:Rx(t)?RR(e(t.right)):RC(t.left,e(t.right))}},R4=function(e,t){return function(n){return RI(n)?e:t(e,n.right)}},R3=function(e){return function(t){return function(n){return RI(n)?e.empty:t(n.right)}}},R5=function(e,t){return function(n){return RI(n)?e:t(n.right,e)}},R7=function(e){return function(t){return function(n){return RI(n)?e.of(n):Rx(n)?e.map(t(n.right),RR):e.map(t(n.right),function(e){return RC(n.left,e)})}}},R9=function(e){return function(t){return RI(t)?e.of(t):Rx(t)?e.map(t.right,RR):e.map(t.right,function(e){return RC(t.left,e)})}},R6=RR,Ce="These",Ct={URI:Ce,map:RH},Cn=(0,td.flap)(Ct),Cr={URI:Ce,of:R6},Ci={URI:Ce,bimap:RZ,mapLeft:R$},Co={URI:Ce,fromThese:e4.identity},Cu={URI:Ce,reduce:RX,foldMap:RJ,reduceRight:RQ},Ca={URI:Ce,map:RH,reduce:RX,foldMap:RJ,reduceRight:RQ,traverse:R0,sequence:R9},Cc={URI:Ce,fromEither:e4.identity},Cf=(0,nb.fromPredicate)(Cc),Cl=(0,nb.fromOption)(Cc),Cp=(0,nb.fromOptionK)(Cc),Cd=function(e){return function(t){return function(n){return!RI(n)&&e.equals(t,n.right)}}},Cs=function(e){return function(t){return!RI(t)&&e(t.right)}},Ch=function(e,t){return function(n){return RI(n)?[n.left,t()]:Rx(n)?[e(),n.right]:[n.left,n.right]}},Cm=function(e,t){return Ch(function(){return e},function(){return t})},Cv=R6(nw.Xl),Cy=function(e){return function(t){return function(n){var r=nw.YP,i=t(0,nw.YM(n));if(RI(i))return i;Rw(i)&&(r=nw.G(i.left));for(var o=[i.right],u=1;u<n.length;u++){var a=t(u,n[u]);if(RI(a))return a;Rw(a)&&(r=nw.Wi(r)?nw.G(a.left):nw.G(e.concat(r.value,a.left))),o.push(a.right)}return nw.Wi(r)?RR(o):RC(r.value,o)}}},Cg=function(e){return function(t){var n=Cy(e)(t);return function(e){return nw.Od(e)?n(e):Cv}}},C_={URI:Ce,map:RH,bimap:RZ,mapLeft:R$,reduce:RX,foldMap:RJ,reduceRight:RQ,traverse:R0,sequence:R9};function Cb(e){return(0,e4.flow)(RR,e.of)}function CS(e){return(0,e4.flow)(RO,e.of)}function CT(e){return(0,e4.flow)(RC,e.of)}function CI(e){return function(t){return e.map(t,RR)}}function Cx(e){return function(t){return e.map(t,RO)}}function Cw(e){return(0,td.map)(e,Ct)}function CO(e,t){return(0,eU.ap)(e,RL(t))}function CR(e,t){var n=CS(e);return function(r){return function(i){return e.chain(i,Rk(n,r,function(n,i){return e.map(r(i),Rk(function(e){return RO(t.concat(n,e))},function(e){return RC(n,e)},function(e,r){return RC(t.concat(n,e),r)}))}))}}}function CC(e){return function(t,n){return function(r){return e.map(r,R1(t,n))}}}function CM(e){return function(t){return function(n){return e.map(n,R2(t))}}}function CE(e){return function(t,n,r){return function(i){return e.map(i,Rk(t,n,r))}}}function Ck(e){return function(t,n,r){return function(i){return e.chain(i,Rk(t,n,r))}}}function CP(e){return function(t){return e.map(t,RF)}}function CF(e){return function(t,n){return function(r){return e.map(r,Ch(t,n))}}}function CW(e){var t=Cw(e),n=CC(e),r=CM(e),i=Ck(e),o=CF(e),u=Cb(e),a=function(e,n){return(0,e4.pipe)(e,t(n))};return{map:a,bimap:function(e,t,r){return(0,e4.pipe)(e,n(t,r))},mapLeft:function(e,t){return(0,e4.pipe)(e,r(t))},fold:function(e,t,n,r){return(0,e4.pipe)(e,i(t,n,r))},swap:CP(e),rightM:CI(e),leftM:Cx(e),left:CS(e),right:Cb(e),both:CT(e),toTuple:function(e,t,n){return(0,e4.pipe)(e,o(function(){return t},function(){return n}))},getMonad:function(t){var n=CO(e,t),r=CR(e,t);return{_E:void 0,map:a,of:u,ap:function(e,t){return(0,e4.pipe)(e,n(t))},chain:function(e,t){return(0,e4.pipe)(e,r(t))}}}}}var CD=CS(d4),CN=Cb(d4),CL=CT(d4),CA=CI(d0),Cj=Cx(d0),CU=(0,e4.flow)(dG,CA),Cq=(0,e4.flow)(dG,Cj),CG=dZ,CB=dZ,CY=CU,CV=dG,CK=CA,Cz=CE(d0),CH=Cz,CZ=Ck(sn),C$=CZ,CX=C$,CJ=CX,CQ=CP(d0),C0=function(e,t){return(0,e4.pipe)(e,C8(t))},C1=function(e,t,n){return(0,e4.pipe)(e,C4(t,n))},C2=function(e,t){return(0,e4.pipe)(e,C3(t))},C8=Cw(d0),C4=CC(d0),C3=CM(d0),C5=CN,C7="TaskThese",C9=function(e,t){var n=CO(e,t);return{URI:C7,_E:void 0,map:C0,ap:function(e,t){return(0,e4.pipe)(e,n(t))}}};function C6(e,t){var n=C9(e,t).ap;return{URI:C7,_E:void 0,map:C0,ap:n,of:C5}}function Me(e){var t=C9(d9,e),n=CR(sn,e);return{URI:C7,_E:void 0,map:C0,ap:t.ap,chain:function(e,t){return(0,e4.pipe)(e,n(t))}}}function Mt(e){var t=C6(d9,e),n=Me(e);return{URI:C7,_E:void 0,map:C0,ap:t.ap,of:C5,chain:n.chain,fromIO:CY,fromTask:CK}}var Mn={URI:C7,map:C0},Mr=(0,td.flap)(Mn),Mi={URI:C7,of:C5},Mo={URI:C7,bimap:C1,mapLeft:C2},Mu={URI:C7,fromEither:CG},Ma=(0,nb.fromOption)(Mu),Mc=(0,nb.fromOptionK)(Mu),Mf=(0,nb.fromPredicate)(Mu),Ml={URI:C7,fromThese:CB},Mp=im(Ml),Md={URI:C7,fromIO:CY},Ms=nS(Md),Mh={URI:C7,fromIO:CY,fromTask:CK},Mm=ip(Mh),Mv=CF(d0),My=C5(nw.Xl),Mg=function(e){var t=Cy(e);return function(e){return(0,e4.flow)(sT(e),dz(t(e4.SK)))}},M_=function(e){return function(t){var n=Mg(e)(t);return function(e){return nw.Od(e)?n(e):My}}},Mb=function(e){return function(t){return function(n){return function(){return nw.Gb(n).reduce(function(n,r,i){return n.then(function(o){return RI(o)?n:t(i+1,r)().then(function(t){if(RI(t))return t;if(Rw(t)){var n=o.right;return n.push(t.right),Rw(o)?RC(e.concat(o.left,t.left),n):RC(t.left,n)}return o.right.push(t.right),o})})},t(0,nw.YM(n))().then(R8(nw.ri)))}}}},MS=function(e){return function(t){var n=Mb(e)(t);return function(e){return nw.Od(e)?n(e):My}}},MT={URI:C7,map:C0},MI={URI:C7,bimap:C1,mapLeft:C2},Mx=function(e,t){return Mv(function(){return e},function(){return t})},Mw={URI:C7,map:C0,bimap:C1,mapLeft:C2},MO=function(e,t){return(0,eU.getApplySemigroup)(d6)(RN(e,t))};function MR(e,t){return function(n){return n(t(n(e.empty)))}}function MC(e){return function(t){return[e(t),t]}}function MM(e){return function(t){return function(n){return[t(n),e(n)]}}}function ME(e){return function(t){return function(n){return t(e(n))}}}function Mk(e){return{URI:MW,_E:void 0,map:MP,extend:function(t,n){return function(r){return n(function(n){return t(e.concat(r,n))})}},extract:function(t){return t(e.empty)}}}var MP=function(e,t){return(0,e4.pipe)(e,MF(t))},MF=function(e){return function(t){return function(n){return e(t(n))}}},MW="Traced",MD={URI:MW,map:MP},MN=(0,td.flap)(MD),ML=MD;function MA(e,t){return function(n){var r=e.traverse(n),i=t.traverse(n);return function(e){return function(t){return r(t,function(t){return i(t,e)})}}}}function Mj(e,t){return function(n){var r=e.sequence(n),i=t.sequence(n);return function(t){return r(e.map(t,i))}}}function MU(e,t){var n=(0,td.getFunctorComposition)(e,t).map,r=nm(e,t),i=MA(e,t),o=Mj(e,t);return{map:n,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(e){var t=i(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},sequence:function(e){var t=o(e);return function(e){return(0,e4.pipe)(e,t)}}}}function Mq(e,t){return void 0===t&&(t=[]),{value:e,forest:t}}function MG(e){var t=function(n){return eY.isEmpty(n.forest)?"make(".concat(e.show(n.value),")"):"make(".concat(e.show(n.value),", [").concat(n.forest.map(t).join(", "),"])")};return{show:t}}function MB(e){var t,n=(0,t5.fromEquals)(function(n,r){return e.equals(n.value,r.value)&&t.equals(n.forest,r.forest)});return t=eY.getEq(n),n}var MY=function(e,t){for(var n,r="",i=t.length,o=0;o<i;o++){n=t[o];var u=o===i-1;r+=e+(u?"└":"├")+"─ "+n.value,r+=MY(e+(i>1&&!u?"│ ":" "),n.forest)}return r};function MV(e){return MY("\n",e)}function MK(e){return e.value+MV(e.forest)}function Mz(e,t){var n,r=t(e);return{value:r[0],forest:MH(r[1],t)}}function MH(e,t){return e.map(function(e){return Mz(e,t)})}function MZ(e){var t=M$(e);return function(n,r){return e.chain(r(n),function(n){var i=n[0],o=n[1];return e.map(t(o,r),function(e){return{value:i,forest:e}})})}}function M$(e){var t=eY.traverse(e);return function(n,r){return(0,e4.pipe)(n,t(function(t){return MZ(e)(t,r)}))}}function MX(e){var t=function(n){return e(n.value,n.forest.map(t))};return t}var MJ=function(e,t){return(0,e4.pipe)(e,Ee(t))},MQ=function(e,t){return M5(e,function(e){return(0,e4.pipe)(t,Ee(e))})},M0=function(e,t,n){return(0,e4.pipe)(e,Et(t,n))},M1=function(e){var t=En(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},M2=function(e,t,n){return(0,e4.pipe)(e,Er(t,n))},M8=function(e,t){return(0,e4.pipe)(e,M7(t))},M4=function(e){var t=Eo(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},M3=function(e){return function(t){return MQ(t,e)}},M5=(0,e4.dual)(2,function(e,t){var n=t(e.value),r=n.value,i=n.forest;return{value:r,forest:(0,eY.getMonoid().concat)(i,e.forest.map(M5(t)))}}),M7=function(e){return function(t){return{value:e(t),forest:t.forest.map(M7(e))}}},M9=M7(e4.identity),M6=M5(e4.identity),Ee=function(e){return function(t){return{value:e(t.value),forest:t.forest.map(Ee(e))}}},Et=function(e,t){return function(n){for(var r=t(e,n.value),i=n.forest.length,o=0;o<i;o++)r=(0,e4.pipe)(n.forest[o],Et(r,t));return r}},En=function(e){return function(t){return Et(e.empty,function(n,r){return e.concat(n,t(r))})}},Er=function(e,t){return function(n){for(var r=e,i=n.forest.length,o=i-1;o>=0;o--)r=(0,e4.pipe)(n.forest[o],Er(r,t));return t(n.value,r)}},Ei=function(e){return e.value},Eo=function(e){var t=eY.traverse(e),n=function(r){return function(i){return e.ap(e.map(r(i.value),function(e){return function(t){return{value:e,forest:t}}}),(0,e4.pipe)(i.forest,t(n(r))))}};return n},Eu=function(e){return Eo(e)(e4.identity)},Ea=function(e){return Mq(e)},Ec="Tree",Ef={URI:Ec,map:MJ},El=(0,td.flap)(Ef),Ep={URI:Ec,of:Ea},Ed={URI:Ec,map:MJ,ap:MQ},Es=(0,eU.apFirst)(Ed),Eh=(0,eU.apSecond)(Ed),Em={URI:Ec,map:MJ,ap:MQ,of:Ea},Ev={URI:Ec,map:MJ,ap:MQ,chain:M5},Ey={URI:Ec,map:MJ,ap:MQ,of:Ea,chain:M5},Eg=(0,tu.chainFirst)(Ev),E_={URI:Ec,reduce:M0,foldMap:M1,reduceRight:M2},Eb={URI:Ec,map:MJ,reduce:M0,foldMap:M1,reduceRight:M2,traverse:M4,sequence:Eu},ES={URI:Ec,map:MJ,extend:M8,extract:Ei},ET=Ea(nw.F4),EI=(0,td.bindTo)(Ef),Ex=(0,td.let)(Ef),Ew=(0,tu.bind)(Ev),EO=(0,eU.apS)(Ed);function ER(e){var t=function(n,r){return e.equals(n,r.value)||r.forest.some(function(e){return t(n,e)})};return t}var EC=function(e){return function(t){return e(t.value)||t.forest.some(EC(e))}},EM=M5,EE={URI:Ec,map:MJ,of:Ea,ap:MQ,chain:M5,reduce:M0,foldMap:M1,reduceRight:M2,traverse:M4,sequence:Eu,extract:Ei,extend:M8},Ek=bE,EP=bk,EF=function(e){return[EP(e),Ek(e)]};function EW(e){return{URI:E7,_E:void 0,map:Eq,ap:function(t,n){return[Ek(t)(Ek(n)),e.concat(EP(t),EP(n))]}}}var ED=function(e){return function(t){return[t,e.empty]}};function EN(e){var t=EW(e);return{URI:E7,_E:void 0,map:t.map,ap:t.ap,of:ED(e)}}function EL(e){var t=EW(e);return{URI:E7,_E:void 0,map:t.map,ap:t.ap,chain:function(t,n){var r=n(Ek(t)),i=r[0],o=r[1];return[i,e.concat(EP(t),o)]}}}function EA(e){var t=EL(e);return{URI:E7,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:ED(e)}}function Ej(e){var t=function(t,n){for(var r=n(t),i=e.empty,o=Ek(r);"Left"===o._tag;)i=e.concat(i,EP(r)),r=n(o.left),o=Ek(r);return[o.right,e.concat(i,EP(r))]},n=EL(e);return{URI:E7,_E:void 0,map:n.map,ap:n.ap,chain:n.chain,chainRec:t}}var EU=function(e,t){return(0,e4.pipe)(e,EJ(t))},Eq=function(e,t){return(0,e4.pipe)(e,E$(t))},EG=function(e,t,n){return(0,e4.pipe)(e,EZ(t,n))},EB=function(e,t){return(0,e4.pipe)(e,EX(t))},EY=function(e,t){return(0,e4.pipe)(e,EQ(t))},EV=function(e,t,n){return(0,e4.pipe)(e,E8(t,n))},EK=function(e){var t=E2(e);return function(e,n){return(0,e4.pipe)(e,t(n))}},Ez=function(e,t,n){return(0,e4.pipe)(e,E4(t,n))};function EH(e){var t=E3(e);return function(e,n){return(0,e4.pipe)(e,t(n))}}var EZ=function(e,t){return function(n){return[t(Ek(n)),e(EP(n))]}},E$=function(e){return function(t){return[e(Ek(t)),EP(t)]}},EX=function(e){return function(t){return[Ek(t),e(EP(t))]}},EJ=function(e){return function(t){return[Ek(t),EP(e)]}},EQ=function(e){return function(t){return[e(t),EP(t)]}},E0=EQ(e4.identity),E1=bQ,E2=b2,E8=b1,E4=b8,E3=function(e){return function(t){return function(n){return e.map(t(Ek(n)),function(e){return[e,EP(n)]})}}},E5=function(e){return function(t){return e.map(Ek(t),function(e){return[e,EP(t)]})}},E7="Tuple",E9={URI:E7,map:Eq},E6=(0,td.flap)(E9),ke={URI:E7,bimap:EG,mapLeft:EB},kt={URI:E7,compose:EU},kn={URI:E7,map:Eq,extend:EY,extract:E1},kr={URI:E7,reduce:EV,foldMap:EK,reduceRight:Ez},ki={URI:E7,map:Eq,reduce:EV,foldMap:EK,reduceRight:Ez,traverse:EH,sequence:E5},ko=E$,ku=EX,ka={URI:E7,compose:EU,map:Eq,bimap:EG,mapLeft:EB,extract:E1,extend:EY,reduce:EV,foldMap:EK,reduceRight:Ez,traverse:EH,sequence:E5};function kc(e,t){var n=(0,eB.getApplicativeComposition)(t,tk.getApplicativeValidation(e));return{map:n.map,ap:n.ap,of:n.of,chain:function(e,n){return t.chain(e,function(e){return nw.nM(e)?t.of(nw.t$(e.left)):n(e.right)})},alt:function(n,r){return t.chain(n,function(n){return nw.tO(n)?t.of(n):t.map(r(),function(t){return nw.nM(t)?nw.t$(e.concat(n.left,t.left)):t})})}}}var kf=Sa.constant(void 0),kl={concat:kf.concat,empty:void 0},kp=function(e){return function(){return[void 0,e]}},kd=function(e){return function(){var t=e(),n=t[0],r=t[1];return[[n,r],r]}},ks=function(e){return function(){var t,n=e(),r=n[0],i=r[0];return[i,(0,r[1])(n[1])]}},kh=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[[r,e(i)],i]}}},km=function(e){return function(t){return function(){var n,r=t();return[r[0],e(r[1])]}}},kv=function(e,t){return(0,e4.pipe)(e,ky(t))},ky=function(e){return function(t){return function(){var n=t(),r=n[0],i=n[1];return[e(r),i]}}},kg="Writer",k_=function(e){return{URI:kg,_E:void 0,of:function(t){return function(){return[t,e.empty]}}}},kb=function(e){return{URI:kg,_E:void 0,map:kv,ap:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(),a=u[0],c=u[1];return[i(a),e.concat(o,c)]}}}},kS=function(e){var t=kb(e),n=k_(e);return{URI:kg,_E:void 0,map:kv,ap:t.ap,of:n.of}};function kT(e){var t=kb(e);return{URI:kg,_E:void 0,map:kv,ap:t.ap,chain:function(t,n){return function(){var r=t(),i=r[0],o=r[1],u=n(i)(),a=u[0],c=u[1];return[a,e.concat(o,c)]}}}}function kI(e){var t=kS(e),n=kT(e);return{URI:kg,_E:void 0,map:kv,ap:t.ap,of:t.of,chain:n.chain}}var kx={URI:kg,map:kv},kw=(0,td.flap)(kx),kO=function(e){return e()[0]},kR=function(e){return e()[1]},kC=function(e){return e()[0]},kM=function(e){return e()[1]},kE=kx;function kk(e){var t=function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[n(t),r]})}};return{map:t,evalWriter:function(t){return e.map(t(),function(e){return e[0]})},execWriter:function(t){return e.map(t(),function(e){return e[0],e[1]})},tell:function(t){return function(){return e.of([void 0,t])}},listen:function(t){return function(){return e.map(t(),function(e){var t=e[0],n=e[1];return[[t,n],n]})}},pass:function(t){return function(){return e.map(t(),function(e){var t,n=e[0],r=n[0];return[r,(0,n[1])(e[1])]})}},listens:function(t,n){return function(){return e.map(t(),function(e){var t=e[0],r=e[1];return[[t,n(r)],r]})}},censor:function(t,n){return function(){return e.map(t(),function(e){var t;return[e[0],n(e[1])]})}},getMonad:function(n){return{_E:void 0,map:t,of:function(t){return function(){return e.of([t,n.empty])}},ap:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(),function(e){var t=e[0],r=e[1];return[i(t),n.concat(o,r)]})})}},chain:function(t,r){return function(){return e.chain(t(),function(t){var i=t[0],o=t[1];return e.map(r(i)(),function(e){var t=e[0],r=e[1];return[t,n.concat(o,r)]})})}}}}}}},97963:function(e,t,n){n.d(t,{D9:function(){return C},F2:function(){return d},F4:function(){return _},G:function(){return c},Gb:function(){return v},Od:function(){return h},WE:function(){return I},Wi:function(){return o},Xl:function(){return y},YM:function(){return m},YP:function(){return a},e$:function(){return b},hU:function(){return w},iu:function(){return O},nM:function(){return f},ny:function(){return x},on:function(){return M},pC:function(){return u},r1:function(){return S},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return T},we:function(){return R}});var r=n(42275),i=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e){return"None"===e._tag},u=function(e){return"Some"===e._tag},a={_tag:"None"},c=function(e){return{_tag:"Some",value:e}},f=function(e){return"Left"===e._tag},l=function(e){return"Right"===e._tag},p=function(e){return{_tag:"Left",left:e}},d=function(e){return{_tag:"Right",right:e}},s=function(e){return[e]},h=function(e){return e.length>0},m=function(e){return e[0]},v=function(e){return e.slice(1)},y=[],_={},b=Object.prototype.hasOwnProperty,S=function(e){return i([e[0]],e.slice(1),!0)},T=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return e.fromEither(null==o?p(n.apply(void 0,r)):d(o))}}},I=function(e){return function(t,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=t.apply(void 0,r);return e.fromEither(o(u)?p(n.apply(void 0,r)):d(u.value))}}},x=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,T(e)(r,i))})},w=function(e,t){return(0,r.dual)(3,function(n,r,i){return t.flatMap(n,I(e)(r,i))})},O=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})},R=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})},C=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})},M=function(e,t){return(0,r.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})}},76627:function(e,t,n){n.r(t),n.d(t,{Bounded:function(){return u},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return o},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(e){return"number"==typeof e},i={equals:function(e,t){return e===t}},o={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},u={equals:i.equals,compare:o.compare,top:1/0,bottom:-1/0},a={show:function(e){return JSON.stringify(e)}},c={concat:function(e,t){return e-t}},f={concat:function(e,t){return e+t}},l={concat:function(e,t){return e*t}},p={concat:f.concat,empty:0},d={concat:l.concat,empty:1},s={add:f.concat,zero:0,mul:l.concat,one:1,sub:c.concat,degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},18896:function(e,t,n){n.r(t),n.d(t,{alt:function(){return S},ap:function(){return f},bimap:function(){return p},chain:function(){return l},compose:function(){return k},contramap:function(){return a},extend:function(){return s},filter:function(){return T},filterMap:function(){return I},filterMapWithIndex:function(){return R},filterWithIndex:function(){return O},foldMap:function(){return m},foldMapWithIndex:function(){return _},map:function(){return u},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return x},partitionMap:function(){return w},partitionMapWithIndex:function(){return M},partitionWithIndex:function(){return C},pipe:function(){return F},pipeable:function(){return P},promap:function(){return E},reduce:function(){return h},reduceRight:function(){return v},reduceRightWithIndex:function(){return b},reduceWithIndex:function(){return y}});var r=n(42925),i=n(88543),o=n(42275);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function h(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function m(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function v(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function y(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function _(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function b(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function S(e){return function(t){return function(n){return e.alt(n,t)}}}function T(e){return function(t){return function(n){return e.filter(n,t)}}}function I(e){return function(t){return function(n){return e.filterMap(n,t)}}}function x(e){return function(t){return function(n){return e.partition(n,t)}}}function w(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function O(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function R(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function C(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function M(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function E(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function k(e){return function(t){return function(n){return e.compose(n,t)}}}function P(e){var t,n,P,F,W,D,N,L,A,j,U,q,G,B,Y,V,K={};if("function"==typeof e.map&&(K.map=u(e)),"function"==typeof e.contramap&&(K.contramap=a(e)),"function"==typeof e.mapWithIndex&&(K.mapWithIndex=c(e)),"function"==typeof e.ap&&(K.ap=f(e),K.apFirst=(0,r.apFirst)(e),K.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(K.chain=l(e),K.chainFirst=(0,i.chainFirst)(e),K.flatten=K.chain(o.identity)),"function"==typeof e.bimap&&(K.bimap=p(e),K.mapLeft=d(e)),"function"==typeof e.extend&&(K.extend=s(e),K.duplicate=K.extend(o.identity)),"function"==typeof e.reduce&&(K.reduce=h(e),K.foldMap=m(e),K.reduceRight=v(e)),"function"==typeof e.reduceWithIndex&&(K.reduceWithIndex=y(e),K.foldMapWithIndex=_(e),K.reduceRightWithIndex=b(e)),"function"==typeof e.alt&&(K.alt=S(e)),"function"==typeof e.compact&&(K.compact=e.compact,K.separate=e.separate),"function"==typeof e.filter&&(K.filter=T(e),K.filterMap=I(e),K.partition=x(e),K.partitionMap=w(e)),"function"==typeof e.filterWithIndex&&(K.filterWithIndex=O(e),K.filterMapWithIndex=R(e),K.partitionWithIndex=C(e),K.partitionMapWithIndex=M(e)),"function"==typeof e.promap&&(K.promap=E(e)),"function"==typeof e.compose&&(K.compose=k(e)),"function"==typeof e.throwError){var z=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},H=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},Z=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},$=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};K.fromOption=z,K.fromEither=H,K.fromPredicate=Z,K.filterOrElse=$}return K}var F=o.pipe},57029:function(e,t,n){n.r(t),n.d(t,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return o},Show:function(){return f},empty:function(){return u},endsWith:function(){return x},includes:function(){return T},isEmpty:function(){return _},isString:function(){return l},replace:function(){return s},size:function(){return b},slice:function(){return y},split:function(){return S},startsWith:function(){return I},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return h},trimLeft:function(){return m},trimRight:function(){return v}});var r=n(28350),i={equals:function(e,t){return e===t}},o={concat:function(e,t){return e+t}},u="",a={concat:o.concat,empty:u},c={equals:i.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},f={show:function(e){return JSON.stringify(e)}},l=function(e){return"string"==typeof e},p=function(e){return e.toUpperCase()},d=function(e){return e.toLowerCase()},s=function(e,t){return function(n){return n.replace(e,t)}},h=function(e){return e.trim()},m=function(e){return e.trimLeft()},v=function(e){return e.trimRight()},y=function(e,t){return function(n){return n.slice(e,t)}},_=function(e){return 0===e.length},b=function(e){return e.length},S=function(e){return function(t){var n=t.split(e);return(0,r.isNonEmpty)(n)?n:[t]}},T=function(e,t){return function(n){return n.includes(e,t)}},I=function(e,t){return function(n){return n.startsWith(e,t)}},x=function(e,t){return function(n){return n.endsWith(e,t)}}},91756:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=n(93145),i=n(14632),o=n(8762);t.getApplicativeMonoid=function(e){var t=(0,r.getApplySemigroup)(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}},t.getApplicativeComposition=function(e,t){var n=(0,o.getFunctorComposition)(e,t).map,u=(0,r.ap)(e,t);return{map:n,of:function(n){return e.of(t.of(n))},ap:function(e,t){return(0,i.pipe)(e,u(t))}}}},93145:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var u=n(14632),a=o(n(5309));function c(e,t,n){return function(r){for(var i=Array(n.length+1),o=0;o<n.length;o++)i[o]=n[o];return i[n.length]=r,0===t?e.apply(null,i):c(e,t-1,i)}}t.ap=function(e,t){return function(n){return function(r){return e.ap(e.map(r,function(e){return function(n){return t.ap(e,n)}}),n)}}},t.apFirst=function(e){return function(t){return function(n){return e.ap(e.map(n,function(e){return function(){return e}}),t)}}},t.apSecond=function(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(e){return e}}),t)}}},t.apS=function(e){return function(t,n){return function(r){return e.ap(e.map(r,function(e){return function(n){var r;return Object.assign({},e,((r={})[t]=n,r))}}),n)}}},t.getApplySemigroup=function(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(e){return function(n){return t.concat(e,n)}}),r)}}}};var f={1:function(e){return[e]},2:function(e){return function(t){return[e,t]}},3:function(e){return function(t){return function(n){return[e,t,n]}}},4:function(e){return function(t){return function(n){return function(r){return[e,t,n,r]}}}},5:function(e){return function(t){return function(n){return function(r){return function(i){return[e,t,n,r,i]}}}}}};t.sequenceT=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r,i=t.length,o=(a.has.call(f,i)||(f[i]=c(u.tuple,i-1,[])),f[i]),l=e.map(t[0],o),p=1;p<i;p++)l=e.ap(l,t[p]);return l}},t.sequenceS=function(e){return function(t){for(var n=Object.keys(t),r=n.length,i=function(e){var t=e.length;switch(t){case 1:return function(t){var n;return(n={})[e[0]]=t,n};case 2:return function(t){return function(n){var r;return(r={})[e[0]]=t,r[e[1]]=n,r}};case 3:return function(t){return function(n){return function(r){var i;return(i={})[e[0]]=t,i[e[1]]=n,i[e[2]]=r,i}}};case 4:return function(t){return function(n){return function(r){return function(i){var o;return(o={})[e[0]]=t,o[e[1]]=n,o[e[2]]=r,o[e[3]]=i,o}}}};case 5:return function(t){return function(n){return function(r){return function(i){return function(o){var u;return(u={})[e[0]]=t,u[e[1]]=n,u[e[2]]=r,u[e[3]]=i,u[e[4]]=o,u}}}}};default:return c(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];for(var i={},o=0;o<t;o++)i[e[o]]=n[o];return i},t-1,[])}}(n),o=e.map(t[n[0]],i),u=1;u<r;u++)o=e.ap(o,t[n[u]]);return o}}},92425:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.copy=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=t.foldMapWithIndex=t.foldMap=t.duplicate=t.extend=t.filterWithIndex=t.alt=t.altW=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.filter=t.separate=t.compact=t.filterMap=t.filterMapWithIndex=t.mapWithIndex=t.flatten=t.flatMap=t.ap=t.map=t.zero=t.of=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.sort=void 0,t.some=t.every=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.Witherable=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=void 0,t.array=t.prependToAll=t.snoc=t.cons=t.empty=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=void 0;var u=n(93145),a=n(18222),c=n(57756),f=n(14632),l=n(8762),p=o(n(5309)),d=o(n(7219)),s=o(n(78703)),h=n(4773),m=n(69706),v=n(3899),y=function(e){return 0===e.length};t.isEmpty=y,t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW;var _=function(e,t){return e<=0?[]:d.makeBy(t)(e)};t.makeBy=_;var b=function(e,n){return(0,t.makeBy)(e,function(){return n})};t.replicate=b,t.fromPredicate=function(e){return function(t){return e(t)?[t]:[]}};var S=function(e){return p.isNone(e)?[]:[e.value]};t.fromOption=S;var T=function(e){return p.isLeft(e)?[]:[e.right]};t.fromEither=T;var I=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}};t.matchW=I,t.match=t.matchW;var x=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.head(r),d.tail(r)):e()}};t.matchLeftW=x,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var w=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(d.init(r),d.last(r)):e()}};t.matchRightW=w,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var O=function(e){return function(t){for(var n=[],r=0;r<t.length;r++)n.push.apply(n,e(r,t[r]));return n}};t.chainWithIndex=O;var R=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}};t.scanLeft=R;var C=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}};t.scanRight=C;var M=function(e){return e.length};t.size=M,t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last;var E=function(e){return(0,t.isNonEmpty)(e)?p.some(d.tail(e)):p.none};t.tail=E;var k=function(e){return(0,t.isNonEmpty)(e)?p.some(d.init(e)):p.none};t.init=k;var P=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):n.slice(0,e)}};t.takeLeft=P;var F=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?(0,t.copy)(n):0===e?[]:n.slice(-e)}};t.takeRight=F,t.takeLeftWhile=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];if(!e(i))break;n.push(i)}return n}};var W=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};t.spanLeft=function(e){return function(n){var r,i=(0,t.splitAt)(W(n,e))(n);return{init:i[0],rest:i[1]}}};var D=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(e,n.length)}};t.dropLeft=D;var N=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?(0,t.copy)(n):e>=n.length?[]:n.slice(0,n.length-e)}};t.dropRight=N,t.dropLeftWhile=function(e){return function(t){return t.slice(W(t,e))}},t.findIndex=s.findIndex,t.findFirst=function(e){return s.findFirst(e)},t.findFirstMap=s.findFirstMap,t.findLast=function(e){return s.findLast(e)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex;var L=function(e){return e.slice()};t.copy=L;var A=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=A;var j=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=j;var U=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?p.none:p.some((0,t.unsafeDeleteAt)(e,n))}};t.deleteAt=U;var q=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=q;var G=function(e){return(0,t.isEmpty)(e)?[]:e.slice().reverse()};t.reverse=G;var B=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t};t.rights=B;var Y=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=Y;var V=function(e){return function(n){return n.length<=1?(0,t.copy)(n):n.slice().sort(e.compare)}};t.sort=V;var K=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=K,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var z=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=z;var H=function(e){var n=d.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.prependAll=H;var Z=function(e){var n=d.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.intersperse=Z;var $=function(e){var n=d.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.rotate=$,t.elem=s.elem;var X=function(e){var n=d.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.uniq=X;var J=function(e){var n=d.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):(0,t.copy)(e)}};t.sortBy=J;var Q=function(e){var n=d.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.chop=Q;var ee=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?d.splitAt(e)(n):(0,t.isEmpty)(n)?[(0,t.copy)(n),[]]:[[],(0,t.copy)(n)]}};t.splitAt=ee;var et=function(e){var n=d.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):[]}};t.chunksOf=et;var en=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}};t.fromOptionK=en,t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(d.head(o),function(n){return i((0,f.pipe)(e,(0,t.append)(n)),d.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:[]};return i([],e)};var er=function(e){return function(n){return(0,t.isEmpty)(n)?(0,t.copy)(e):(0,t.isEmpty)(e)?(0,t.copy)(n):n.concat(e)}};function ei(e){var n=d.union(e);return function(r,i){if(void 0===i){var o=ei(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(i)}}function eo(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=eo(e);return function(e){return i(e,t)}}return t.filter(function(e){return n(e,r)})}}function eu(e){var n=(0,t.elem)(e);return function(t,r){if(void 0===r){var i=eu(e);return function(e){return i(e,t)}}return t.filter(function(e){return!n(e,r)})}}t.concatW=er,t.concat=t.concatW,t.union=ei,t.intersection=eo,t.difference=eu;var ea=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},ec=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},ef=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},el=function(e,n){return(0,f.pipe)(e,(0,t.filter)(n))},ep=function(e,n){return(0,f.pipe)(e,(0,t.filterMap)(n))},ed=function(e,n){return(0,f.pipe)(e,(0,t.partition)(n))},es=function(e,n){return(0,f.pipe)(e,(0,t.partitionMap)(n))},eh=function(e,n){return(0,f.pipe)(e,(0,t.partitionWithIndex)(n))},em=function(e,n){return(0,f.pipe)(e,(0,t.partitionMapWithIndex)(n))},ev=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},ey=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},eg=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},e_=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},eb=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},eS=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eT=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eI=function(e,n){return(0,f.pipe)(e,(0,t.filterMapWithIndex)(n))},ex=function(e,n){return(0,f.pipe)(e,(0,t.filterWithIndex)(n))},ew=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},eO=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eR=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eC=s._chainRecDepthFirst,eM=s._chainRecBreadthFirst;t.of=d.of;var eE=function(){return[]};t.zero=eE;var ek=function(e){return function(t){return t.map(function(t){return e(t)})}};t.map=ek;var eP=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})};t.ap=eP,t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(f.identity);var eF=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}};t.mapWithIndex=eF;var eW=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);p.isSome(i)&&n.push(i.value)}return n}};t.filterMapWithIndex=eW;var eD=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})};t.filterMap=eD,t.compact=(0,t.filterMap)(f.identity);var eN=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,h.separated)(t,n)};t.separate=eN;var eL=function(e){return function(t){return t.filter(e)}};t.filter=eL;var eA=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})};t.partition=eA;var ej=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,h.separated)(n,r)}};t.partitionWithIndex=ej;var eU=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})};t.partitionMap=eU;var eq=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,h.separated)(n,r)}};t.partitionMapWithIndex=eq;var eG=function(e){return function(t){return t.concat(e())}};t.altW=eG,t.alt=t.altW;var eB=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}};t.filterWithIndex=eB;var eY=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}};t.extend=eY,t.duplicate=(0,t.extend)(f.identity),t.foldMap=s.foldMap,t.foldMapWithIndex=s.foldMapWithIndex,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex;var eV=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=eV;var eK=function(e){return function(n){return ey(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),r)})}};t.sequence=eK;var ez=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(r,o))})}};t.traverseWithIndex=ez;var eH=function(e){var t=e8(e);return function(e){return function(n){return t(n,e)}}};t.wither=eH;var eZ=function(e){var t=e4(e);return function(e){return function(n){return t(n,e)}}};t.wilt=eZ;var e$=function(e,t){for(var n=[],r=e;;){var i=t(r);if(p.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n};t.unfold=e$,t.URI="Array",t.getShow=s.getShow;var eX=function(){return{concat:function(e,t){return e.concat(t)}}};t.getSemigroup=eX;var eJ=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}};t.getMonoid=eJ,t.getEq=s.getEq,t.getOrd=s.getOrd;var eQ=function(e){var t=ei(e);return{concat:function(e,n){return t(n)(e)}}};t.getUnionSemigroup=eQ;var e0=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:[]}};t.getUnionMonoid=e0;var e1=function(e){var t=eo(e);return{concat:function(e,n){return t(n)(e)}}};t.getIntersectionSemigroup=e1;var e2=function(e){var t=eu(e);return{concat:function(e,n){return t(n)(e)}}};t.getDifferenceMagma=e2,t.Functor={URI:t.URI,map:ea},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:ea,mapWithIndex:ec},t.Apply={URI:t.URI,map:ea,ap:ef},t.apFirst=(0,u.apFirst)(t.Apply),t.apSecond=(0,u.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:ea,ap:ef,of:t.of},t.Chain={URI:t.URI,map:ea,ap:ef,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:ea,ap:ef,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:ea,alt:ev},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:ea,ap:ef,of:t.of,alt:ev,zero:t.zero},t.Extend={URI:t.URI,map:ea,extend:ew},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:ea,compact:t.compact,separate:t.separate,filter:el,filterMap:ep,partition:ed,partitionMap:es},t.FilterableWithIndex={URI:t.URI,map:ea,mapWithIndex:ec,compact:t.compact,separate:t.separate,filter:el,filterMap:ep,partition:ed,partitionMap:es,partitionMapWithIndex:em,partitionWithIndex:eh,filterMapWithIndex:eI,filterWithIndex:ex},t.Foldable={URI:t.URI,reduce:ey,foldMap:eg,reduceRight:e_},t.FoldableWithIndex={URI:t.URI,reduce:ey,foldMap:eg,reduceRight:e_,reduceWithIndex:eb,foldMapWithIndex:eS,reduceRightWithIndex:eT},t.Traversable={URI:t.URI,map:ea,reduce:ey,foldMap:eg,reduceRight:e_,traverse:eO,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:ea,mapWithIndex:ec,reduce:ey,foldMap:eg,reduceRight:e_,reduceWithIndex:eb,foldMapWithIndex:eS,reduceRightWithIndex:eT,traverse:eO,sequence:t.sequence,traverseWithIndex:eR};var e8=(0,m.witherDefault)(t.Traversable,t.Compactable),e4=(0,m.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:ea,compact:t.compact,separate:t.separate,filter:el,filterMap:ep,partition:ed,partitionMap:es,reduce:ey,foldMap:eg,reduceRight:e_,traverse:eO,sequence:t.sequence,wither:e8,wilt:e4},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:ea,ap:ef,chain:t.flatMap,chainRec:eC},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:ea,ap:ef,chain:t.flatMap,chainRec:eM},t.filterE=(0,m.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt;var e3=function(e,n,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(e,n,r):[]};t.unsafeUpdateAt=e3;var e5=function(e,t){var n=t.slice();return n.splice(e,1),n};t.unsafeDeleteAt=e5,t.every=s.every;var e7=function(e){return function(t){return t.some(e)}};t.some=e7,t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var e9=(0,l.let)(t.Functor);t.let=e9,t.bind=(0,a.bind)(t.Chain),t.apS=(0,u.apS)(t.Apply),t.chain=t.flatMap,t.range=d.range,t.empty=[],t.cons=d.cons,t.snoc=d.snoc,t.prependToAll=t.prependAll,t.array={URI:t.URI,compact:t.compact,separate:t.separate,map:ea,ap:ef,of:t.of,chain:t.flatMap,filter:el,filterMap:ep,partition:ed,partitionMap:es,mapWithIndex:ec,partitionMapWithIndex:em,partitionWithIndex:eh,filterMapWithIndex:eI,filterWithIndex:ex,alt:ev,zero:t.zero,unfold:t.unfold,reduce:ey,foldMap:eg,reduceRight:e_,traverse:eO,sequence:t.sequence,reduceWithIndex:eb,foldMapWithIndex:eS,reduceRightWithIndex:eT,traverseWithIndex:eR,extend:ew,wither:e8,wilt:e4}},18222:function(e,t){function n(e){return function(t,n){return e.chain(t,function(t){return e.map(n(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(e){var t=n(e);return function(e){return function(n){return t(n,e)}}},t.tap=n,t.bind=function(e){return function(t,n){return function(r){return e.chain(r,function(r){return e.map(n(r),function(e){var n;return Object.assign({},r,((n={})[t]=e,n))})})}}}},71166:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0;var n=function(e,t){for(var n=t(e);"Left"===n._tag;)n=t(n.left);return n.right};t.tailRec=n},87412:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.match=t.foldW=t.matchW=t.isRight=t.isLeft=t.fromOption=t.fromPredicate=t.FromEither=t.MonadThrow=t.throwError=t.ChainRec=t.Extend=t.extend=t.Alt=t.alt=t.altW=t.Bifunctor=t.mapLeft=t.bimap=t.Traversable=t.sequence=t.traverse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.Applicative=t.Apply=t.ap=t.apW=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getAltValidation=t.getApplicativeValidation=t.getWitherable=t.getFilterable=t.getCompactable=t.getSemigroup=t.getEq=t.getShow=t.URI=t.flatMap=t.right=t.left=void 0,t.chainFirstW=t.chainFirst=t.chain=t.chainW=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apSW=t.apS=t.bindW=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toError=t.toUnion=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.orElse=t.orElseW=t.swap=t.filterOrElseW=t.filterOrElse=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.chainOptionKW=t.chainOptionK=t.fromOptionK=t.duplicate=t.flatten=t.flattenW=t.tap=t.apSecondW=t.apSecond=t.apFirstW=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=void 0,t.getValidation=t.getValidationMonoid=t.getValidationSemigroup=t.getApplyMonoid=t.getApplySemigroup=t.either=t.stringifyJSON=t.parseJSON=void 0;var u=n(91756),a=n(93145),c=o(n(18222)),f=n(71166),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),h=n(4773),m=n(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(e,n){return(0,t.isLeft)(e)?e:n(e.right)});var v=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},y=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},_=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},b=function(e){return function(n,r){var i=(0,t.foldMap)(e);return(0,p.pipe)(n,i(r))}},S=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},T=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},I=function(e,n,r){return(0,p.pipe)(e,(0,t.bimap)(n,r))},x=function(e,n){return(0,p.pipe)(e,(0,t.mapLeft)(n))},w=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},O=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},R=function(e,n){return(0,f.tailRec)(n(e),function(e){return(0,t.isLeft)(e)?(0,t.right)((0,t.left)(e.left)):(0,t.isLeft)(e.right)?(0,t.left)(n(e.right.left)):(0,t.right)((0,t.right)(e.right.right))})};t.URI="Either";var C=function(e,n){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(e.show(r.left),")"):"right(".concat(n.show(r.right),")")}}};t.getShow=C;var M=function(e,n){return{equals:function(r,i){return r===i||((0,t.isLeft)(r)?(0,t.isLeft)(i)&&e.equals(r.left,i.left):(0,t.isRight)(i)&&n.equals(r.right,i.right))}}};t.getEq=M;var E=function(e){return{concat:function(n,r){return(0,t.isLeft)(r)?n:(0,t.isLeft)(n)?r:(0,t.right)(e.concat(n.right,r.right))}}};t.getSemigroup=E;var k=function(e){var n=(0,t.left)(e.empty);return{URI:t.URI,_E:void 0,compact:function(e){return(0,t.isLeft)(e)?e:"None"===e.right._tag?n:(0,t.right)(e.right.value)},separate:function(e){return(0,t.isLeft)(e)?(0,h.separated)(e,e):(0,t.isLeft)(e.right)?(0,h.separated)((0,t.right)(e.right.left),n):(0,h.separated)(n,(0,t.right)(e.right.right))}}};t.getCompactable=k;var P=function(e){var n=(0,t.left)(e.empty),r=(0,t.getCompactable)(e),i=r.compact,o=r.separate,u=function(e,r){return(0,t.isLeft)(e)?e:r(e.right)?e:n},a=function(e,r){return(0,t.isLeft)(e)?(0,h.separated)(e,e):r(e.right)?(0,h.separated)(n,(0,t.right)(e.right)):(0,h.separated)((0,t.right)(e.right),n)};return{URI:t.URI,_E:void 0,map:v,compact:i,separate:o,filter:u,filterMap:function(e,r){if((0,t.isLeft)(e))return e;var i=r(e.right);return"None"===i._tag?n:(0,t.right)(i.value)},partition:a,partitionMap:function(e,r){if((0,t.isLeft)(e))return(0,h.separated)(e,e);var i=r(e.right);return(0,t.isLeft)(i)?(0,h.separated)((0,t.right)(i.left),n):(0,h.separated)(n,(0,t.right)(i.right))}}};t.getFilterable=P;var F=function(e){var n=(0,t.getFilterable)(e),r=(0,t.getCompactable)(e);return{URI:t.URI,_E:void 0,map:v,compact:n.compact,separate:n.separate,filter:n.filter,filterMap:n.filterMap,partition:n.partition,partitionMap:n.partitionMap,traverse:T,sequence:t.sequence,reduce:_,foldMap:b,reduceRight:S,wither:(0,m.witherDefault)(t.Traversable,r),wilt:(0,m.wiltDefault)(t.Traversable,r)}};t.getWitherable=F;var W=function(e){return{URI:t.URI,_E:void 0,map:v,ap:function(n,r){return(0,t.isLeft)(n)?(0,t.isLeft)(r)?(0,t.left)(e.concat(n.left,r.left)):n:(0,t.isLeft)(r)?r:(0,t.right)(n.right(r.right))},of:t.of}};t.getApplicativeValidation=W;var D=function(e){return{URI:t.URI,_E:void 0,map:v,alt:function(n,r){if((0,t.isRight)(n))return n;var i=r();return(0,t.isLeft)(i)?(0,t.left)(e.concat(n.left,i.left)):i}}};t.getAltValidation=D;var N=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n.right))}};t.map=N,t.Functor={URI:t.URI,map:v},t.as=(0,p.dual)(2,(0,d.as)(t.Functor)),t.asUnit=(0,d.asUnit)(t.Functor),t.of=t.right,t.Pointed={URI:t.URI,of:t.of};var L=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.isLeft)(e)?e:(0,t.right)(n.right(e.right))}};t.apW=L,t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:y},t.Applicative={URI:t.URI,map:v,ap:y,of:t.of},t.Chain={URI:t.URI,map:v,ap:y,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:y,of:t.of,chain:t.flatMap};var A=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(e,r.right)}};t.reduce=A;var j=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.empty:n(r.right)}}};t.foldMap=j;var U=function(e,n){return function(r){return(0,t.isLeft)(r)?e:n(r.right,e)}};t.reduceRight=U,t.Foldable={URI:t.URI,reduce:_,foldMap:b,reduceRight:S};var q=function(e){return function(n){return function(r){return(0,t.isLeft)(r)?e.of((0,t.left)(r.left)):e.map(n(r.right),t.right)}}};t.traverse=q;var G=function(e){return function(n){return(0,t.isLeft)(n)?e.of((0,t.left)(n.left)):e.map(n.right,t.right)}};t.sequence=G,t.Traversable={URI:t.URI,map:v,reduce:_,foldMap:b,reduceRight:S,traverse:T,sequence:t.sequence};var B=function(e,n){return function(r){return(0,t.isLeft)(r)?(0,t.left)(e(r.left)):(0,t.right)(n(r.right))}};t.bimap=B;var Y=function(e){return function(n){return(0,t.isLeft)(n)?(0,t.left)(e(n.left)):n}};t.mapLeft=Y,t.Bifunctor={URI:t.URI,bimap:I,mapLeft:x};var V=function(e){return function(n){return(0,t.isLeft)(n)?e():n}};t.altW=V,t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:w};var K=function(e){return function(n){return(0,t.isLeft)(n)?n:(0,t.right)(e(n))}};t.extend=K,t.Extend={URI:t.URI,map:v,extend:O},t.ChainRec={URI:t.URI,map:v,ap:y,chain:t.flatMap,chainRec:R},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:y,of:t.of,chain:t.flatMap,throwError:t.throwError},t.FromEither={URI:t.URI,fromEither:p.identity},t.fromPredicate=(0,l.fromPredicate)(t.FromEither),t.fromOption=(0,l.fromOption)(t.FromEither),t.isLeft=s.isLeft,t.isRight=s.isRight;var z=function(e,n){return function(r){return(0,t.isLeft)(r)?e(r.left):n(r.right)}};t.matchW=z,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var H=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n.right}};t.getOrElseW=H,t.getOrElse=t.getOrElseW,t.flap=(0,d.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apFirstW=t.apFirst,t.apSecond=(0,a.apSecond)(t.Apply),t.apSecondW=t.apSecond,t.tap=(0,p.dual)(2,c.tap(t.Chain)),t.flattenW=(0,t.flatMap)(p.identity),t.flatten=t.flattenW,t.duplicate=(0,t.extend)(p.identity),t.fromOptionK=(0,l.fromOptionK)(t.FromEither),t.chainOptionK=(0,l.chainOptionK)(t.FromEither,t.Chain),t.chainOptionKW=t.chainOptionK;var Z={fromEither:t.FromEither.fromEither};t.liftNullable=s.liftNullable(Z),t.liftOption=s.liftOption(Z);var $={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(Z,$),t.flatMapOption=s.flatMapOption(Z,$),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse;var X=function(e){return(0,t.isLeft)(e)?(0,t.right)(e.left):(0,t.left)(e.right)};t.swap=X;var J=function(e){return function(n){return(0,t.isLeft)(n)?e(n.left):n}};t.orElseW=J,t.orElse=t.orElseW;var Q=function(e){return function(n){return null==n?(0,t.left)(e):(0,t.right)(n)}};t.fromNullable=Q;var ee=function(e,n){try{return(0,t.right)(e())}catch(r){return(0,t.left)(n(r))}};t.tryCatch=ee;var et=function(e,n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,t.tryCatch)(function(){return e.apply(void 0,r)},n)}};t.tryCatchK=et;var en=function(e){var n=(0,t.fromNullable)(e);return function(e){return(0,p.flow)(e,n)}};t.fromNullableK=en;var er=function(e){var n=(0,t.fromNullableK)(e);return function(e){return(0,t.flatMap)(n(e))}};t.chainNullableK=er,t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(e){return e instanceof Error?e:Error(String(e))},t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isLeft)(i)&&n.equals(r,i.right)}};var ei=function(e){return function(n){return!(0,t.isLeft)(n)&&e(n.right)}};t.exists=ei,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var eo=(0,d.let)(t.Functor);t.let=eo,t.bind=c.bind(t.Chain),t.bindW=t.bind,t.apS=(0,a.apS)(t.Apply),t.apSW=t.apS,t.ApT=(0,t.of)(s.emptyReadonlyArray);var eu=function(e){return function(n){var r=e(0,s.head(n));if((0,t.isLeft)(r))return r;for(var i=[r.right],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isLeft)(u))return u;i.push(u.right)}return(0,t.right)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=eu;var ea=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return s.isNonEmpty(e)?n(e):t.ApT}};t.traverseReadonlyArrayWithIndex=ea,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var ec=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})};t.traverseArray=ec,t.sequenceArray=(0,t.traverseArray)(p.identity),t.chainW=t.flatMap,t.chain=t.flatMap,t.chainFirst=t.tap,t.chainFirstW=t.tap,t.parseJSON=function(e,n){return(0,t.tryCatch)(function(){return JSON.parse(e)},n)};var ef=function(e,n){return(0,t.tryCatch)(function(){var t=JSON.stringify(e);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n)};t.stringifyJSON=ef,t.either={URI:t.URI,map:v,of:t.of,ap:y,chain:t.flatMap,reduce:_,foldMap:b,reduceRight:S,traverse:T,sequence:t.sequence,bimap:I,mapLeft:x,alt:w,extend:O,chainRec:R,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative);var el=function(e,n){return(0,a.getApplySemigroup)((0,t.getApplicativeValidation)(e))(n)};t.getValidationSemigroup=el;var ep=function(e,n){return(0,u.getApplicativeMonoid)((0,t.getApplicativeValidation)(e))(n)};t.getValidationMonoid=ep,t.getValidation=function(e){var n=(0,t.getApplicativeValidation)(e).ap,r=(0,t.getAltValidation)(e).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:I,mapLeft:x,reduce:_,foldMap:b,reduceRight:S,extend:O,traverse:T,sequence:t.sequence,chainRec:R,throwError:t.throwError,ap:n,alt:r}}},8190:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.eqDate=t.eqNumber=t.eqString=t.eqBoolean=t.eq=t.strictEqual=t.getStructEq=t.getTupleEq=t.Contravariant=t.getMonoid=t.getSemigroup=t.eqStrict=t.URI=t.contramap=t.tuple=t.struct=t.fromEquals=void 0;var r=n(14632),i=function(e){return{equals:function(t,n){return t===n||e(t,n)}}};t.fromEquals=i;var o=function(e){return(0,t.fromEquals)(function(t,n){for(var r in e)if(!e[r].equals(t[r],n[r]))return!1;return!0})};t.struct=o;var u=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromEquals)(function(t,n){return e.every(function(e,r){return e.equals(t[r],n[r])})})};t.tuple=u;var a=function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))},c=function(e){return function(n){return(0,t.fromEquals)(function(t,r){return n.equals(e(t),e(r))})}};t.contramap=c,t.URI="Eq",t.eqStrict={equals:function(e,t){return e===t}};var f={equals:function(){return!0}},l=function(){return{concat:function(e,n){return(0,t.fromEquals)(function(t,r){return e.equals(t,r)&&n.equals(t,r)})}}};t.getSemigroup=l;var p=function(){return{concat:(0,t.getSemigroup)().concat,empty:f}};t.getMonoid=p,t.Contravariant={URI:t.URI,contramap:a},t.getTupleEq=t.tuple,t.getStructEq=t.struct,t.strictEqual=t.eqStrict.equals,t.eq=t.Contravariant,t.eqBoolean=t.eqStrict,t.eqString=t.eqStrict,t.eqNumber=t.eqStrict,t.eqDate={equals:function(e,t){return e.valueOf()===t.valueOf()}}},57756:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.tapEither=t.filterOrElse=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.chainOptionK=t.fromOptionK=t.fromPredicate=t.fromOption=void 0;var u=n(18222),a=n(14632),c=o(n(5309));function f(e){return function(t){return function(n){return e.fromEither(c.isNone(n)?c.left(t()):c.right(n.value))}}}function l(e){var t=f(e);return function(e){var n=t(e);return function(e){return(0,a.flow)(e,n)}}}function p(e){return function(t){return(0,a.flow)(t,e.fromEither)}}function d(e,t){var n=p(e),r=(0,u.tap)(t);return function(e,t){return r(e,n(t))}}t.fromOption=f,t.fromPredicate=function(e){return function(t,n){return function(r){return e.fromEither(t(r)?c.right(r):c.left(n(r)))}}},t.fromOptionK=l,t.chainOptionK=function(e,t){var n=l(e);return function(e){var r=n(e);return function(e){return function(n){return t.chain(n,r(e))}}}},t.fromEitherK=p,t.chainEitherK=function(e,t){var n=p(e);return function(e){return function(r){return t.chain(r,n(e))}}},t.chainFirstEitherK=function(e,t){var n=d(e,t);return function(e){return function(t){return n(t,e)}}},t.filterOrElse=function(e,t){return function(n,r){return function(i){return t.chain(i,function(t){return e.fromEither(n(t)?c.right(t):c.left(r(t)))})}}},t.tapEither=d},8762:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=n(14632);function i(e,t){return function(n){return function(r){return e.map(r,function(e){return t.map(e,n)})}}}function o(e){return function(t,n){return e.map(t,function(){return n})}}t.map=i,t.flap=function(e){return function(t){return function(n){return e.map(n,function(e){return e(t)})}}},t.bindTo=function(e){return function(t){return function(n){return e.map(n,function(e){var n;return(n={})[t]=e,n})}}},t.let=function(e){return function(t,n){return function(r){return e.map(r,function(e){var r;return Object.assign({},e,((r={})[t]=n(e),r))})}}},t.getFunctorComposition=function(e,t){var n=i(e,t);return{map:function(e,t){return(0,r.pipe)(e,n(t))}}},t.as=o,t.asUnit=function(e){var t=o(e);return function(e){return t(e,void 0)}}},73540:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0;var n=function(e){return{concat:function(t,n){return e.concat(n,t)}}};t.reverse=n;var r=function(e){return function(t){return{concat:function(n,r){return e(n)?t.concat(n,r):r}}}};t.filterFirst=r;var i=function(e){return function(t){return{concat:function(n,r){return e(r)?t.concat(n,r):n}}}};t.filterSecond=i;var o=function(e){return function(t){return{concat:function(n,r){return t.concat(e(n),e(r))}}}};t.endo=o;var u=function(e){return function(t){return function(n){return n.reduce(function(t,n){return e.concat(t,n)},t)}}};t.concatAll=u},7219:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.foldMap=t.foldMapWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.of=t.copy=t.modifyAt=t.updateAt=t.insertAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromArray=t.fromReadonlyNonEmptyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=void 0,t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.reduce=void 0,t.nonEmptyArray=t.fold=t.prependToAll=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=t.groupSort=void 0;var a=n(93145),c=n(18222),f=n(14632),l=n(8762),p=o(n(5309)),d=n(83235),s=o(n(84612)),h=function(e){return e.length>0};t.isNonEmpty=h;var m=function(e,t){return e<0||e>=t.length};t.isOutOfBound=m;var v=function(e){return function(t){return u([e],t,!0)}};t.prependW=v,t.prepend=t.prependW;var y=function(e){return function(t){return u(u([],t,!0),[e],!1)}};t.appendW=y,t.append=t.appendW;var _=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i.splice(e,0,n),i}return[n]};t.unsafeInsertAt=_;var b=function(e,n,r){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i[e]=n,i};t.unsafeUpdateAt=b;var S=function(e){return function(n){if(1===n.length)return(0,t.copy)(n);for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}};t.uniq=S;var T=function(e){if((0,t.isNonEmpty)(e)){var n=(0,d.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return t.copy};t.sortBy=T;var I=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,f.pipe)(t,P(e)))}}};t.union=I;var x=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return(0,t.copy)(n);if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,f.pipe)(a,P(u))}};t.rotate=x,t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray;var w=function(e){return(0,t.isNonEmpty)(e)?p.some(e):p.none};t.fromArray=w;var O=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}};t.makeBy=O;var R=function(e){return(0,t.makeBy)(function(){return e})};t.replicate=R;var C=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]};t.range=C;var M=function(e){return[(0,t.head)(e),(0,t.tail)(e)]};t.unprepend=M;var E=function(e){return[(0,t.init)(e),(0,t.last)(e)]};function k(e){return function(t){return t.concat(e)}}function P(e,t){return t?e.concat(t):function(t){return t.concat(e)}}t.unappend=E,t.concatW=k,t.concat=P;var F=function(e){return u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)};function W(e){return function(t){var n=t.length;if(0===n)return[];for(var r=[],i=t[0],o=[i],u=1;u<n;u++){var a=t[u];e.equals(a,i)?o.push(a):(r.push(o),o=[i=a])}return r.push(o),r}}t.reverse=F,t.group=W;var D=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);p.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}};t.groupBy=D;var N=function(e){return function(t){return t.slice().sort(e.compare)}};t.sort=N;var L=function(e,n){return function(r){return e<0||e>r.length?p.none:p.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=L;var A=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=A;var j=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?p.none:p.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=j,t.copy=t.fromReadonlyNonEmptyArray;var U=function(e){return[e]};t.of=U;var q=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=q,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var G=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=G;var B=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}};t.prependAll=B;var Y=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):(0,t.copy)(n)}};t.intersperse=Y,t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap;var V=function(e){return function(n){for(var r=(0,t.fromReadonlyNonEmptyArray)(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=V;var K=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}};t.chop=K;var z=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[(0,t.copy)(n),[]]:[(0,f.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}};t.splitAt=z;var H=function(e){return(0,t.chop)((0,t.splitAt)(e))};t.chunksOf=H;var Z=function(e,n){return(0,f.pipe)(e,(0,t.map)(n))},$=function(e,n){return(0,f.pipe)(e,(0,t.mapWithIndex)(n))},X=function(e,n){return(0,f.pipe)(e,(0,t.ap)(n))},J=function(e,n){return(0,f.pipe)(e,(0,t.extend)(n))},Q=function(e,n,r){return(0,f.pipe)(e,(0,t.reduce)(n,r))},ee=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},et=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRight)(n,r))},en=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},er=function(e,n){return(0,f.pipe)(e,(0,t.alt)(n))},ei=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceWithIndex)(n,r))},eo=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},eu=function(e,n,r){return(0,f.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},ea=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,f.pipe)(e,n(t))}},ec=function(e){return function(t){return(0,f.pipe)(t,k(e()))}};t.altW=ec,t.alt=t.altW;var ef=function(e){return(0,t.flatMap)(function(n){return(0,f.pipe)(e,(0,t.map)(n))})};t.ap=ef,t.flatMap=(0,f.dual)(2,function(e,n){return(0,f.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))});var el=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}};t.extend=el,t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity);var ep=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})};t.map=ep;var ed=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}};t.mapWithIndex=ed,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex;var es=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=es;var eh=function(e){return(0,t.traverseWithIndex)(e)(function(e,t){return t})};t.sequence=eh;var em=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,f.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}};t.traverseWithIndex=em,t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow;var ev=function(){return{concat:P}};t.getSemigroup=ev,t.getEq=s.getEq;var ey=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}};t.getUnionSemigroup=ey,t.Functor={URI:t.URI,map:Z},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:Z,mapWithIndex:$},t.Apply={URI:t.URI,map:Z,ap:X},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:Z,ap:X,of:t.of},t.Chain={URI:t.URI,map:Z,ap:X,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:Z,ap:X,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:Q,foldMap:ee,reduceRight:et},t.FoldableWithIndex={URI:t.URI,reduce:Q,foldMap:ee,reduceRight:et,reduceWithIndex:ei,foldMapWithIndex:eo,reduceRightWithIndex:eu},t.Traversable={URI:t.URI,map:Z,reduce:Q,foldMap:ee,reduceRight:et,traverse:en,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:Z,mapWithIndex:$,reduce:Q,foldMap:ee,reduceRight:et,traverse:en,sequence:t.sequence,reduceWithIndex:ei,foldMapWithIndex:eo,reduceRightWithIndex:eu,traverseWithIndex:ea},t.Alt={URI:t.URI,map:Z,alt:er},t.Comonad={URI:t.URI,map:Z,extend:J,extract:t.extract},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var eg=(0,l.let)(t.Functor);t.let=eg,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=s.head;var e_=function(e){return e.slice(1)};t.tail=e_,t.last=s.last;var eb=function(e){return e.slice(0,-1)};t.init=eb,t.min=s.min,t.max=s.max;var eS=function(e){return function(t){return t.reduce(e.concat)}};t.concatAll=eS;var eT=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}};t.matchLeft=eT;var eI=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}};t.matchRight=eI;var ex=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}};t.modifyHead=ex;var ew=function(e){return(0,t.modifyHead)(function(){return e})};t.updateHead=ew;var eO=function(e){return function(n){return(0,f.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}};t.modifyLast=eO;var eR=function(e){return(0,t.modifyLast)(function(){return e})};t.updateLast=eR,t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=W(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):[]}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})};var eC=function(e){return function(n){return(0,t.fromArray)(n.filter(function(t,n){return e(n,t)}))}};t.filterWithIndex=eC,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,f.pipe)(n,(0,t.prepend)(e))};var eM=function(e,n){return(0,f.pipe)(e,(0,t.append)(n))};t.snoc=eM,t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:Z,mapWithIndex:$,ap:X,chain:t.flatMap,extend:J,extract:t.extract,reduce:Q,foldMap:ee,reduceRight:et,traverse:en,sequence:t.sequence,reduceWithIndex:ei,foldMapWithIndex:eo,reduceRightWithIndex:eu,traverseWithIndex:ea,alt:er}},72720:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Witherable=t.wilt=t.wither=t.Traversable=t.sequence=t.traverse=t.Filterable=t.partitionMap=t.partition=t.filterMap=t.filter=t.Compactable=t.separate=t.compact=t.Extend=t.extend=t.Alternative=t.guard=t.Zero=t.zero=t.Alt=t.alt=t.altW=t.orElse=t.Foldable=t.reduceRight=t.foldMap=t.reduce=t.Monad=t.Chain=t.flatMap=t.Applicative=t.Apply=t.ap=t.Pointed=t.of=t.asUnit=t.as=t.Functor=t.map=t.getMonoid=t.getOrd=t.getEq=t.getShow=t.URI=t.getRight=t.getLeft=t.fromPredicate=t.some=t.none=void 0,t.getFirstMonoid=t.getApplyMonoid=t.getApplySemigroup=t.option=t.mapNullable=t.getRefinement=t.chainFirst=t.chain=t.sequenceArray=t.traverseArray=t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex=t.traverseReadonlyNonEmptyArrayWithIndex=t.ApT=t.apS=t.bind=t.let=t.bindTo=t.Do=t.exists=t.elem=t.toUndefined=t.toNullable=t.chainNullableK=t.fromNullableK=t.tryCatchK=t.tryCatch=t.fromNullable=t.chainFirstEitherK=t.chainEitherK=t.fromEitherK=t.duplicate=t.tapEither=t.tap=t.flatten=t.apSecond=t.apFirst=t.flap=t.getOrElse=t.getOrElseW=t.fold=t.match=t.foldW=t.matchW=t.isNone=t.isSome=t.FromEither=t.fromEither=t.MonadThrow=t.throwError=void 0,t.getLastMonoid=void 0;var u=n(91756),a=n(93145),c=o(n(18222)),f=n(57756),l=n(14632),p=n(8762),d=o(n(5309)),s=n(87612),h=n(98744),m=n(4773),v=n(69706),y=n(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(e){return function(n){return e(n)?(0,t.some)(n):t.none}};var _=function(e){return"Right"===e._tag?t.none:(0,t.some)(e.left)};t.getLeft=_;var b=function(e){return"Left"===e._tag?t.none:(0,t.some)(e.right)};t.getRight=b;var S=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},T=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},I=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},x=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},w=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},O=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},R=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},C=function(e,n){return(0,l.pipe)(e,(0,t.filter)(n))},M=function(e,n){return(0,l.pipe)(e,(0,t.filterMap)(n))},E=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},k=function(e,n){return(0,l.pipe)(e,(0,t.partition)(n))},P=function(e,n){return(0,l.pipe)(e,(0,t.partitionMap)(n))};t.URI="Option";var F=function(e){return{show:function(n){return(0,t.isNone)(n)?"none":"some(".concat(e.show(n.value),")")}}};t.getShow=F;var W=function(e){return{equals:function(n,r){return n===r||((0,t.isNone)(n)?(0,t.isNone)(r):!(0,t.isNone)(r)&&e.equals(n.value,r.value))}}};t.getEq=W;var D=function(e){return{equals:(0,t.getEq)(e).equals,compare:function(n,r){return n===r?0:(0,t.isSome)(n)?(0,t.isSome)(r)?e.compare(n.value,r.value):1:-1}}};t.getOrd=D;var N=function(e){return{concat:function(n,r){return(0,t.isNone)(n)?r:(0,t.isNone)(r)?n:(0,t.some)(e.concat(n.value,r.value))},empty:t.none}};t.getMonoid=N;var L=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n.value))}};t.map=L,t.Functor={URI:t.URI,map:S},t.as=(0,l.dual)(2,(0,p.as)(t.Functor)),t.asUnit=(0,p.asUnit)(t.Functor),t.of=t.some,t.Pointed={URI:t.URI,of:t.of};var A=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.isNone)(e)?t.none:(0,t.some)(n.value(e.value))}};t.ap=A,t.Apply={URI:t.URI,map:S,ap:T},t.Applicative={URI:t.URI,map:S,ap:T,of:t.of},t.flatMap=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?t.none:n(e.value)}),t.Chain={URI:t.URI,map:S,ap:T,chain:t.flatMap},t.Monad={URI:t.URI,map:S,ap:T,of:t.of,chain:t.flatMap};var j=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(e,r.value)}};t.reduce=j;var U=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.empty:n(r.value)}}};t.foldMap=U;var q=function(e,n){return function(r){return(0,t.isNone)(r)?e:n(r.value,e)}};t.reduceRight=q,t.Foldable={URI:t.URI,reduce:I,foldMap:x,reduceRight:w},t.orElse=(0,l.dual)(2,function(e,n){return(0,t.isNone)(e)?n():e}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:S,alt:R};var G=function(){return t.none};t.zero=G,t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,y.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:S,ap:T,of:t.of,alt:R,zero:t.zero};var B=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.some)(e(n))}};t.extend=B,t.Extend={URI:t.URI,map:S,extend:E},t.compact=(0,t.flatMap)(l.identity);var Y=(0,m.separated)(t.none,t.none),V=function(e){return(0,t.isNone)(e)?Y:(0,m.separated)((0,t.getLeft)(e.value),(0,t.getRight)(e.value))};t.separate=V,t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};var K=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)?n:t.none}};t.filter=K;var z=function(e){return function(n){return(0,t.isNone)(n)?t.none:e(n.value)}};t.filterMap=z;var H=function(e){return function(t){return(0,m.separated)(C(t,(0,s.not)(e)),C(t,e))}};t.partition=H;var Z=function(e){return(0,l.flow)((0,t.map)(e),t.separate)};t.partitionMap=Z,t.Filterable={URI:t.URI,map:S,compact:t.compact,separate:t.separate,filter:C,filterMap:M,partition:k,partitionMap:P};var $=function(e){return function(n){return function(r){return(0,t.isNone)(r)?e.of(t.none):e.map(n(r.value),t.some)}}};t.traverse=$;var X=function(e){return function(n){return(0,t.isNone)(n)?e.of(t.none):e.map(n.value,t.some)}};t.sequence=X,t.Traversable={URI:t.URI,map:S,reduce:I,foldMap:x,reduceRight:w,traverse:O,sequence:t.sequence};var J=(0,v.witherDefault)(t.Traversable,t.Compactable),Q=(0,v.wiltDefault)(t.Traversable,t.Compactable),ee=function(e){var t=J(e);return function(e){return function(n){return t(n,e)}}};t.wither=ee;var et=function(e){var t=Q(e);return function(e){return function(n){return t(n,e)}}};t.wilt=et,t.Witherable={URI:t.URI,map:S,reduce:I,foldMap:x,reduceRight:w,traverse:O,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:C,filterMap:M,partition:k,partitionMap:P,wither:J,wilt:Q};var en=function(){return t.none};t.throwError=en,t.MonadThrow={URI:t.URI,map:S,ap:T,of:t.of,chain:t.flatMap,throwError:t.throwError},t.fromEither=t.getRight,t.FromEither={URI:t.URI,fromEither:t.fromEither},t.isSome=d.isSome;var er=function(e){return"None"===e._tag};t.isNone=er;var ei=function(e,n){return function(r){return(0,t.isNone)(r)?e():n(r.value)}};t.matchW=ei,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var eo=function(e){return function(n){return(0,t.isNone)(n)?e():n.value}};t.getOrElseW=eo,t.getOrElse=t.getOrElseW,t.flap=(0,p.flap)(t.Functor),t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.flatten=t.compact,t.tap=(0,l.dual)(2,c.tap(t.Chain)),t.tapEither=(0,l.dual)(2,(0,f.tapEither)(t.FromEither,t.Chain)),t.duplicate=(0,t.extend)(l.identity),t.fromEitherK=(0,f.fromEitherK)(t.FromEither),t.chainEitherK=(0,f.chainEitherK)(t.FromEither,t.Chain),t.chainFirstEitherK=t.tapEither;var eu=function(e){return null==e?t.none:(0,t.some)(e)};t.fromNullable=eu;var ea=function(e){try{return(0,t.some)(e())}catch(n){return t.none}};t.tryCatch=ea;var ec=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.tryCatch)(function(){return e.apply(void 0,n)})}};t.tryCatchK=ec;var ef=function(e){return(0,l.flow)(e,t.fromNullable)};t.fromNullableK=ef;var el=function(e){return function(n){return(0,t.isNone)(n)?t.none:(0,t.fromNullable)(e(n.value))}};t.chainNullableK=el,t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function e(n){return function(r,i){if(void 0===i){var o=e(n);return function(e){return o(r,e)}}return!(0,t.isNone)(i)&&n.equals(r,i.value)}};var ep=function(e){return function(n){return!(0,t.isNone)(n)&&e(n.value)}};t.exists=ep,t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var ed=(0,p.let)(t.Functor);t.let=ed,t.bind=c.bind(t.Chain),t.apS=(0,a.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray);var es=function(e){return function(n){var r=e(0,d.head(n));if((0,t.isNone)(r))return t.none;for(var i=[r.value],o=1;o<n.length;o++){var u=e(o,n[o]);if((0,t.isNone)(u))return t.none;i.push(u.value)}return(0,t.some)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=es;var eh=function(e){var n=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(e);return function(e){return d.isNonEmpty(e)?n(e):t.ApT}};t.traverseReadonlyArrayWithIndex=eh,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var em=function(e){return(0,t.traverseReadonlyArrayWithIndex)(function(t,n){return e(n)})};t.traverseArray=em,t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(e){return function(n){return(0,t.isSome)(e(n))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:S,of:t.of,ap:T,chain:t.flatMap,reduce:I,foldMap:x,reduceRight:w,traverse:O,sequence:t.sequence,zero:t.zero,alt:R,extend:E,compact:t.compact,separate:t.separate,filter:C,filterMap:M,partition:k,partitionMap:P,wither:J,wilt:Q,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,u.getApplicativeMonoid)(t.Applicative);var ev=function(){return(0,t.getMonoid)((0,h.first)())};t.getFirstMonoid=ev;var ey=function(){return(0,t.getMonoid)((0,h.last)())};t.getLastMonoid=ey},83235:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ordDate=t.ordNumber=t.ordString=t.ordBoolean=t.ord=t.getDualOrd=t.getTupleOrd=t.between=t.clamp=t.max=t.min=t.geq=t.leq=t.gt=t.lt=t.equals=t.trivial=t.Contravariant=t.getMonoid=t.getSemigroup=t.URI=t.contramap=t.reverse=t.tuple=t.fromCompare=t.equalsDefault=void 0;var r=n(8190),i=n(14632),o=function(e){return function(t,n){return t===n||0===e(t,n)}};t.equalsDefault=o;var u=function(e){return{equals:(0,t.equalsDefault)(e),compare:function(t,n){return t===n?0:e(t,n)}}};t.fromCompare=u;var a=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,t.fromCompare)(function(t,n){for(var r=0;r<e.length-1;r++){var i=e[r].compare(t[r],n[r]);if(0!==i)return i}return e[r].compare(t[r],n[r])})};t.tuple=a;var c=function(e){return(0,t.fromCompare)(function(t,n){return e.compare(n,t)})};t.reverse=c;var f=function(e,n){return(0,i.pipe)(e,(0,t.contramap)(n))},l=function(e){return function(n){return(0,t.fromCompare)(function(t,r){return n.compare(e(t),e(r))})}};t.contramap=l,t.URI="Ord";var p=function(){return{concat:function(e,n){return(0,t.fromCompare)(function(t,r){var i=e.compare(t,r);return 0!==i?i:n.compare(t,r)})}}};t.getSemigroup=p;var d=function(){return{concat:(0,t.getSemigroup)().concat,empty:(0,t.fromCompare)(function(){return 0})}};t.getMonoid=d,t.Contravariant={URI:t.URI,contramap:f},t.trivial={equals:i.constTrue,compare:(0,i.constant)(0)};var s=function(e){return function(t){return function(n){return n===t||0===e.compare(n,t)}}};t.equals=s;var h=function(e){return function(t,n){return -1===e.compare(t,n)}};t.lt=h;var m=function(e){return function(t,n){return 1===e.compare(t,n)}};t.gt=m;var v=function(e){return function(t,n){return 1!==e.compare(t,n)}};t.leq=v;var y=function(e){return function(t,n){return -1!==e.compare(t,n)}};t.geq=y;var _=function(e){return function(t,n){return t===n||1>e.compare(t,n)?t:n}};t.min=_;var b=function(e){return function(t,n){return t===n||e.compare(t,n)>-1?t:n}};t.max=b;var S=function(e){var n=(0,t.min)(e),r=(0,t.max)(e);return function(e,t){return function(i){return r(n(i,t),e)}}};t.clamp=S;var T=function(e){var n=(0,t.lt)(e),r=(0,t.gt)(e);return function(e,t){return function(i){return!(n(i,e)||r(i,t))}}};t.between=T,t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var I={equals:r.eqStrict.equals,compare:function(e,t){return e<t?-1:e>t?1:0}};t.ordBoolean=I,t.ordString=I,t.ordNumber=I,t.ordDate=(0,i.pipe)(t.ordNumber,(0,t.contramap)(function(e){return e.valueOf()}))},87612:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.and=t.or=t.not=t.Contravariant=t.getMonoidAll=t.getSemigroupAll=t.getMonoidAny=t.getSemigroupAny=t.URI=t.contramap=void 0;var r=n(14632),i=function(e,n){return(0,r.pipe)(e,(0,t.contramap)(n))},o=function(e){return function(t){return(0,r.flow)(e,t)}};t.contramap=o,t.URI="Predicate";var u=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.or)(n))}}};t.getSemigroupAny=u;var a=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}};t.getMonoidAny=a;var c=function(){return{concat:function(e,n){return(0,r.pipe)(e,(0,t.and)(n))}}};t.getSemigroupAll=c;var f=function(){return{concat:(0,t.getSemigroupAll)().concat,empty:r.constTrue}};t.getMonoidAll=f,t.Contravariant={URI:t.URI,contramap:i};var l=function(e){return function(t){return!e(t)}};t.not=l;var p=function(e){return function(t){return function(n){return t(n)||e(n)}}};t.or=p;var d=function(e){return function(t){return function(n){return t(n)&&e(n)}}};t.and=d},78703:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.sort=t.lefts=t.rights=t.reverse=t.modifyAt=t.deleteAt=t.updateAt=t.insertAt=t.findLastIndex=t.findLastMap=t.findLast=t.findFirstMap=t.findFirst=t.findIndex=t.dropLeftWhile=t.dropRight=t.dropLeft=t.spanLeft=t.takeLeftWhile=t.takeRight=t.takeLeft=t.init=t.tail=t.last=t.head=t.lookup=t.isOutOfBound=t.size=t.scanRight=t.scanLeft=t.chainWithIndex=t.foldRight=t.matchRight=t.matchRightW=t.foldLeft=t.matchLeft=t.matchLeftW=t.match=t.matchW=t.fromEither=t.fromOption=t.fromPredicate=t.replicate=t.makeBy=t.appendW=t.append=t.prependW=t.prepend=t.isNonEmpty=t.isEmpty=void 0,t.sequence=t.traverse=t.reduceRightWithIndex=t.reduceRight=t.reduceWithIndex=t.foldMap=t.reduce=t.foldMapWithIndex=t.duplicate=t.extend=t.filterWithIndex=t.partitionMapWithIndex=t.partitionMap=t.partitionWithIndex=t.partition=t.compact=t.filterMap=t.filterMapWithIndex=t.filter=t.separate=t.mapWithIndex=t.map=t.flatten=t.flatMap=t.ap=t.alt=t.altW=t.zero=t.of=t._chainRecBreadthFirst=t._chainRecDepthFirst=t.difference=t.intersection=t.union=t.concat=t.concatW=t.comprehension=t.fromOptionK=t.chunksOf=t.splitAt=t.chop=t.sortBy=t.uniq=t.elem=t.rotate=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=void 0,t.toArray=t.unsafeDeleteAt=t.unsafeUpdateAt=t.unsafeInsertAt=t.fromEitherK=t.FromEither=t.filterE=t.Witherable=t.ChainRecBreadthFirst=t.chainRecBreadthFirst=t.ChainRecDepthFirst=t.chainRecDepthFirst=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.FilterableWithIndex=t.Filterable=t.Compactable=t.Extend=t.Alternative=t.guard=t.Zero=t.Alt=t.Unfoldable=t.chainFirst=t.Monad=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getDifferenceMagma=t.getIntersectionSemigroup=t.getUnionMonoid=t.getUnionSemigroup=t.getOrd=t.getEq=t.getMonoid=t.getSemigroup=t.getShow=t.URI=t.unfold=t.wilt=t.wither=t.traverseWithIndex=void 0,t.readonlyArray=t.prependToAll=t.snoc=t.cons=t.range=t.chain=t.apS=t.bind=t.let=t.bindTo=t.Do=t.intercalate=t.exists=t.some=t.every=t.empty=t.fromArray=void 0;var a=n(93145),c=n(18222),f=n(8190),l=n(57756),p=n(14632),d=n(8762),s=o(n(5309)),h=o(n(40457)),m=n(83235),v=o(n(84612)),y=n(4773),_=n(69706),b=n(3899),S=function(e){return 0===e.length};t.isEmpty=S,t.isNonEmpty=v.isNonEmpty,t.prepend=v.prepend,t.prependW=v.prependW,t.append=v.append,t.appendW=v.appendW;var T=function(e,n){return e<=0?t.empty:v.makeBy(n)(e)};t.makeBy=T;var I=function(e,n){return(0,t.makeBy)(e,function(){return n})};t.replicate=I,t.fromPredicate=function(e){return function(n){return e(n)?[n]:t.empty}};var x=function(e){return s.isNone(e)?t.empty:[e.value]};t.fromOption=x;var w=function(e){return s.isLeft(e)?t.empty:[e.right]};t.fromEither=w;var O=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(r):e()}};t.matchW=O,t.match=t.matchW;var R=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(v.head(r),v.tail(r)):e()}};t.matchLeftW=R,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var C=function(e,n){return function(r){return(0,t.isNonEmpty)(r)?n(v.init(r),v.last(r)):e()}};t.matchRightW=C,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var M=function(e){return function(n){if((0,t.isEmpty)(n))return t.empty;for(var r=[],i=0;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=M;var E=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[0]=e;for(var o=0;o<r;o++)i[o+1]=t(i[o],n[o]);return i}};t.scanLeft=E;var k=function(e,t){return function(n){var r=n.length,i=Array(r+1);i[r]=e;for(var o=r-1;o>=0;o--)i[o]=t(n[o],i[o+1]);return i}};t.scanRight=k;var P=function(e){return e.length};t.size=P,t.isOutOfBound=v.isOutOfBound,t.lookup=function e(n,r){return void 0===r?function(t){return e(n,t)}:(0,t.isOutOfBound)(n,r)?s.none:s.some(r[n])};var F=function(e){return(0,t.isNonEmpty)(e)?s.some(v.head(e)):s.none};t.head=F;var W=function(e){return(0,t.isNonEmpty)(e)?s.some(v.last(e)):s.none};t.last=W;var D=function(e){return(0,t.isNonEmpty)(e)?s.some(v.tail(e)):s.none};t.tail=D;var N=function(e){return(0,t.isNonEmpty)(e)?s.some(v.init(e)):s.none};t.init=N;var L=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(0,e)}};t.takeLeft=L;var A=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?n:0===e?t.empty:n.slice(-e)}};t.takeRight=A,t.takeLeftWhile=function(e){return function(n){for(var r=[],i=0;i<n.length;i++){var o=n[i];if(!e(o))break;r.push(o)}var u=r.length;return u===n.length?n:0===u?t.empty:r}};var j=function(e,t){for(var n=e.length,r=0;r<n&&t(e[r]);r++);return r};t.spanLeft=function(e){return function(n){var r,i=(0,t.splitAt)(j(n,e))(n);return{init:i[0],rest:i[1]}}};var U=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(e,n.length)}};t.dropLeft=U;var q=function(e){return function(n){return e<=0||(0,t.isEmpty)(n)?n:e>=n.length?t.empty:n.slice(0,n.length-e)}};t.dropRight=q,t.dropLeftWhile=function(e){return function(n){var r=j(n,e);return 0===r?n:r===n.length?t.empty:n.slice(r)}};var G=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(n);return s.none}};t.findIndex=G,t.findFirst=function(e){return function(t){for(var n=0;n<t.length;n++)if(e(t[n]))return s.some(t[n]);return s.none}};var B=function(e){return function(t){for(var n=0;n<t.length;n++){var r=e(t[n]);if(s.isSome(r))return r}return s.none}};t.findFirstMap=B,t.findLast=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(t[n]);return s.none}};var Y=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(s.isSome(r))return r}return s.none}};t.findLastMap=Y;var V=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return s.some(n);return s.none}};t.findLastIndex=V;var K=function(e,t){return function(n){return e<0||e>n.length?s.none:s.some(v.unsafeInsertAt(e,t,n))}};t.insertAt=K;var z=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=z;var H=function(e){return function(n){return(0,t.isOutOfBound)(e,n)?s.none:s.some((0,t.unsafeDeleteAt)(e,n))}};t.deleteAt=H;var Z=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?s.none:s.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=Z;var $=function(e){return e.length<=1?e:e.slice().reverse()};t.reverse=$;var X=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Right"===r._tag&&t.push(r.right)}return t};t.rights=X;var J=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=J;var Q=function(e){return function(t){return t.length<=1?t:t.slice().sort(e.compare)}};t.sort=Q;var ee=function(e,t,n){for(var r=[],i=Math.min(e.length,t.length),o=0;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=ee,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var et=function(e){for(var t=[],n=[],r=0;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=et;var en=function(e){var n=v.prependAll(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.prependAll=en;var er=function(e){var n=v.intersperse(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.intersperse=er;var ei=function(e){var n=v.rotate(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};function eo(e){return function(t,n){if(void 0===n){var r,i=eo(e);return function(e){return i(t,e)}}for(var o=0;o<n.length;o++)if(r=n[o],e.equals(r,t))return!0;return!1}}t.rotate=ei,t.elem=eo;var eu=function(e){var n=v.uniq(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.uniq=eu;var ea=function(e){var n=v.sortBy(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):e}};t.sortBy=ea;var ec=function(e){var n=v.chop(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}};t.chop=ec;var ef=function(e){return function(n){return e>=1&&(0,t.isNonEmpty)(n)?v.splitAt(e)(n):(0,t.isEmpty)(n)?[n,t.empty]:[t.empty,n]}};t.splitAt=ef;var el=function(e){var n=v.chunksOf(e);return function(e){return(0,t.isNonEmpty)(e)?n(e):t.empty}};t.chunksOf=el;var ep=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return(0,t.fromOption)(e.apply(void 0,n))}};t.fromOptionK=ep,t.comprehension=function(e,n,r){void 0===r&&(r=function(){return!0});var i=function(e,o){return(0,t.isNonEmpty)(o)?(0,t.flatMap)(v.head(o),function(n){return i((0,p.pipe)(e,(0,t.append)(n)),v.tail(o))}):r.apply(void 0,e)?[n.apply(void 0,e)]:t.empty};return i(t.empty,e)};var ed=function(e){return function(n){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}};function es(e){var n=v.union(e);return function(r,i){if(void 0===i){var o=es(e);return function(e){return o(e,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?n(i)(r):(0,t.isNonEmpty)(r)?r:i}}function eh(e){var t=eo(e);return function(n,r){if(void 0===r){var i=eh(e);return function(e){return i(e,n)}}return n.filter(function(e){return t(e,r)})}}function em(e){var t=eo(e);return function(n,r){if(void 0===r){var i=em(e);return function(e){return i(e,n)}}return n.filter(function(e){return!t(e,r)})}}t.concatW=ed,t.concat=t.concatW,t.union=es,t.intersection=eh,t.difference=em;var ev=function(e,n){return(0,p.pipe)(e,(0,t.map)(n))},ey=function(e,n){return(0,p.pipe)(e,(0,t.mapWithIndex)(n))},eg=function(e,n){return(0,p.pipe)(e,(0,t.ap)(n))},e_=function(e,n){return(0,p.pipe)(e,(0,t.filter)(n))},eb=function(e,n){return(0,p.pipe)(e,(0,t.filterMap)(n))},eS=function(e,n){return(0,p.pipe)(e,(0,t.partition)(n))},eT=function(e,n){return(0,p.pipe)(e,(0,t.partitionMap)(n))},eI=function(e,n){return(0,p.pipe)(e,(0,t.partitionWithIndex)(n))},ex=function(e,n){return(0,p.pipe)(e,(0,t.partitionMapWithIndex)(n))},ew=function(e,n){return(0,p.pipe)(e,(0,t.alt)(n))},eO=function(e,n,r){return(0,p.pipe)(e,(0,t.reduce)(n,r))},eR=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eC=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRight)(n,r))},eM=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceWithIndex)(n,r))},eE=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},ek=function(e,n,r){return(0,p.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eP=function(e,n){return(0,p.pipe)(e,(0,t.filterMapWithIndex)(n))},eF=function(e,n){return(0,p.pipe)(e,(0,t.filterWithIndex)(n))},eW=function(e,n){return(0,p.pipe)(e,(0,t.extend)(n))},eD=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eN=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,p.pipe)(e,n(t))}},eL=function(e,n){return(0,p.pipe)(e,(0,t.chainRecDepthFirst)(n))};t._chainRecDepthFirst=eL;var eA=function(e,n){return(0,p.pipe)(e,(0,t.chainRecBreadthFirst)(n))};t._chainRecBreadthFirst=eA,t.of=v.of;var ej=function(){return t.empty};t.zero=ej;var eU=function(e){return function(t){return t.concat(e())}};t.altW=eU,t.alt=t.altW;var eq=function(e){return(0,t.flatMap)(function(n){return(0,p.pipe)(e,(0,t.map)(n))})};t.ap=eq,t.flatMap=(0,p.dual)(2,function(e,n){return(0,p.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))}),t.flatten=(0,t.flatMap)(p.identity);var eG=function(e){return function(t){return t.map(function(t){return e(t)})}};t.map=eG;var eB=function(e){return function(t){return t.map(function(t,n){return e(n,t)})}};t.mapWithIndex=eB;var eY=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var i=e[r];"Left"===i._tag?t.push(i.left):n.push(i.right)}return(0,y.separated)(t,n)};t.separate=eY;var eV=function(e){return function(t){return t.filter(e)}};t.filter=eV;var eK=function(e){return function(t){for(var n=[],r=0;r<t.length;r++){var i=e(r,t[r]);s.isSome(i)&&n.push(i.value)}return n}};t.filterMapWithIndex=eK;var ez=function(e){return(0,t.filterMapWithIndex)(function(t,n){return e(n)})};t.filterMap=ez,t.compact=(0,t.filterMap)(p.identity);var eH=function(e){return(0,t.partitionWithIndex)(function(t,n){return e(n)})};t.partition=eH;var eZ=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=t[i];e(i,o)?r.push(o):n.push(o)}return(0,y.separated)(n,r)}};t.partitionWithIndex=eZ;var e$=function(e){return(0,t.partitionMapWithIndex)(function(t,n){return e(n)})};t.partitionMap=e$;var eX=function(e){return function(t){for(var n=[],r=[],i=0;i<t.length;i++){var o=e(i,t[i]);"Left"===o._tag?n.push(o.left):r.push(o.right)}return(0,y.separated)(n,r)}};t.partitionMapWithIndex=eX;var eJ=function(e){return function(t){return t.filter(function(t,n){return e(n,t)})}};t.filterWithIndex=eJ;var eQ=function(e){return function(t){return t.map(function(n,r){return e(t.slice(r))})}};t.extend=eQ,t.duplicate=(0,t.extend)(p.identity);var e0=function(e){return function(t){return function(n){return n.reduce(function(n,r,i){return e.concat(n,t(i,r))},e.empty)}}};t.foldMapWithIndex=e0;var e1=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduce=e1;var e2=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.foldMap=e2;var e8=function(e,t){return function(n){for(var r=n.length,i=e,o=0;o<r;o++)i=t(o,i,n[o]);return i}};t.reduceWithIndex=e8;var e4=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduceRight=e4;var e3=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}};t.reduceRightWithIndex=e3;var e5=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=e5;var e7=function(e){return function(n){return eO(n,e.of((0,t.zero)()),function(n,r){return e.ap(e.map(n,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),r)})}};t.sequence=e7;var e9=function(e){return function(n){return(0,t.reduceWithIndex)(e.of((0,t.zero)()),function(r,i,o){return e.ap(e.map(i,function(e){return function(n){return(0,p.pipe)(e,(0,t.append)(n))}}),n(r,o))})}};t.traverseWithIndex=e9;var e6=function(e){var t=ts(e);return function(e){return function(n){return t(n,e)}}};t.wither=e6;var te=function(e){var t=th(e);return function(e){return function(n){return t(n,e)}}};t.wilt=te;var tt=function(e,t){for(var n=[],r=e;;){var i=t(r);if(s.isSome(i)){var o=i.value,u=o[0],a=o[1];n.push(u),r=a}else break}return n};t.unfold=tt,t.URI="ReadonlyArray";var tn=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}};t.getShow=tn;var tr=function(){return{concat:function(e,n){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}}};t.getSemigroup=tr;var ti=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}};t.getMonoid=ti;var to=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})};t.getEq=to;var tu=function(e){return(0,m.fromCompare)(function(t,n){for(var r=t.length,i=n.length,o=Math.min(r,i),u=0;u<o;u++){var a=e.compare(t[u],n[u]);if(0!==a)return a}return h.Ord.compare(r,i)})};t.getOrd=tu;var ta=function(e){var t=es(e);return{concat:function(e,n){return t(n)(e)}}};t.getUnionSemigroup=ta;var tc=function(e){return{concat:(0,t.getUnionSemigroup)(e).concat,empty:t.empty}};t.getUnionMonoid=tc;var tf=function(e){var t=eh(e);return{concat:function(e,n){return t(n)(e)}}};t.getIntersectionSemigroup=tf;var tl=function(e){var t=em(e);return{concat:function(e,n){return t(n)(e)}}};t.getDifferenceMagma=tl,t.Functor={URI:t.URI,map:ev},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:ev,mapWithIndex:ey},t.Apply={URI:t.URI,map:ev,ap:eg},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:ev,ap:eg,of:t.of},t.Chain={URI:t.URI,map:ev,ap:eg,chain:t.flatMap},t.Monad={URI:t.URI,map:ev,ap:eg,of:t.of,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:ev,alt:ew},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,b.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:ev,ap:eg,of:t.of,alt:ew,zero:t.zero},t.Extend={URI:t.URI,map:ev,extend:eW},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:ev,compact:t.compact,separate:t.separate,filter:e_,filterMap:eb,partition:eS,partitionMap:eT},t.FilterableWithIndex={URI:t.URI,map:ev,mapWithIndex:ey,compact:t.compact,separate:t.separate,filter:e_,filterMap:eb,partition:eS,partitionMap:eT,partitionMapWithIndex:ex,partitionWithIndex:eI,filterMapWithIndex:eP,filterWithIndex:eF},t.Foldable={URI:t.URI,reduce:eO,foldMap:eR,reduceRight:eC},t.FoldableWithIndex={URI:t.URI,reduce:eO,foldMap:eR,reduceRight:eC,reduceWithIndex:eM,foldMapWithIndex:eE,reduceRightWithIndex:ek},t.Traversable={URI:t.URI,map:ev,reduce:eO,foldMap:eR,reduceRight:eC,traverse:eD,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:ev,mapWithIndex:ey,reduce:eO,foldMap:eR,reduceRight:eC,reduceWithIndex:eM,foldMapWithIndex:eE,reduceRightWithIndex:ek,traverse:eD,sequence:t.sequence,traverseWithIndex:eN};var tp=function(e){return function(t){for(var n=u([],e(t),!0),r=[];n.length>0;){var i=n.shift();s.isLeft(i)?n.unshift.apply(n,e(i.left)):r.push(i.right)}return r}};t.chainRecDepthFirst=tp,t.ChainRecDepthFirst={URI:t.URI,map:ev,ap:eg,chain:t.flatMap,chainRec:t._chainRecDepthFirst};var td=function(e){return function(t){var n=e(t),r=[],i=[];function o(t){s.isLeft(t)?e(t.left).forEach(function(e){return r.push(e)}):i.push(t.right)}for(var u=0;u<n.length;u++)o(n[u]);for(;r.length>0;)o(r.shift());return i}};t.chainRecBreadthFirst=td,t.ChainRecBreadthFirst={URI:t.URI,map:ev,ap:eg,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var ts=(0,_.witherDefault)(t.Traversable,t.Compactable),th=(0,_.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:ev,compact:t.compact,separate:t.separate,filter:e_,filterMap:eb,partition:eS,partitionMap:eT,reduce:eO,foldMap:eR,reduceRight:eC,traverse:eD,sequence:t.sequence,wither:ts,wilt:th},t.filterE=(0,_.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,l.fromEitherK)(t.FromEither),t.unsafeInsertAt=v.unsafeInsertAt;var tm=function(e,n,r){return(0,t.isNonEmpty)(r)?v.unsafeUpdateAt(e,n,r):r};t.unsafeUpdateAt=tm;var tv=function(e,t){var n=t.slice();return n.splice(e,1),n};t.unsafeDeleteAt=tv;var ty=function(e){return e.slice()};t.toArray=ty;var tg=function(e){return(0,t.isEmpty)(e)?t.empty:e.slice()};t.fromArray=tg,t.empty=v.empty,t.every=function(e){return function(t){return t.every(e)}};var t_=function(e){return function(t){return t.some(e)}};t.some=t_,t.exists=t.some;var tb=function(e){var n=v.intercalate(e);return function(r){return(0,t.match)(function(){return e.empty},n(r))}};t.intercalate=tb,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var tS=(0,d.let)(t.Functor);t.let=tS,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.chain=t.flatMap,t.range=v.range,t.cons=v.cons,t.snoc=v.snoc,t.prependToAll=t.prependAll,t.readonlyArray={URI:t.URI,compact:t.compact,separate:t.separate,map:ev,ap:eg,of:t.of,chain:t.flatMap,filter:e_,filterMap:eb,partition:eS,partitionMap:eT,mapWithIndex:ey,partitionMapWithIndex:ex,partitionWithIndex:eI,filterMapWithIndex:eP,filterWithIndex:eF,alt:ew,zero:t.zero,unfold:t.unfold,reduce:eO,foldMap:eR,reduceRight:eC,traverse:eD,sequence:t.sequence,reduceWithIndex:eM,foldMapWithIndex:eE,reduceRightWithIndex:ek,traverseWithIndex:eN,extend:eW,wither:ts,wilt:th}},84612:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},u=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.reduceRight=t.foldMap=t.reduce=t.mapWithIndex=t.map=t.flatten=t.duplicate=t.extend=t.flatMap=t.ap=t.alt=t.altW=t.of=t.chunksOf=t.splitAt=t.chop=t.chainWithIndex=t.intersperse=t.prependAll=t.unzip=t.zip=t.zipWith=t.modifyAt=t.updateAt=t.sort=t.groupBy=t.group=t.reverse=t.concat=t.concatW=t.fromArray=t.unappend=t.unprepend=t.range=t.replicate=t.makeBy=t.fromReadonlyArray=t.rotate=t.union=t.sortBy=t.uniq=t.unsafeUpdateAt=t.unsafeInsertAt=t.append=t.appendW=t.prepend=t.prependW=t.isOutOfBound=t.isNonEmpty=t.empty=void 0,t.groupSort=t.chain=t.intercalate=t.updateLast=t.modifyLast=t.updateHead=t.modifyHead=t.matchRight=t.matchLeft=t.concatAll=t.max=t.min=t.init=t.last=t.tail=t.head=t.apS=t.bind=t.let=t.bindTo=t.Do=t.Comonad=t.Alt=t.TraversableWithIndex=t.Traversable=t.FoldableWithIndex=t.Foldable=t.Monad=t.chainFirst=t.Chain=t.Applicative=t.apSecond=t.apFirst=t.Apply=t.FunctorWithIndex=t.Pointed=t.flap=t.Functor=t.getUnionSemigroup=t.getEq=t.getSemigroup=t.getShow=t.URI=t.extract=t.traverseWithIndex=t.sequence=t.traverse=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=void 0,t.readonlyNonEmptyArray=t.fold=t.prependToAll=t.insertAt=t.snoc=t.cons=t.unsnoc=t.uncons=t.filterWithIndex=t.filter=void 0;var a=n(93145),c=n(18222),f=n(8190),l=n(14632),p=n(8762),d=o(n(5309)),s=n(83235),h=o(n(98744));t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty;var m=function(e,t){return e<0||e>=t.length};t.isOutOfBound=m;var v=function(e){return function(t){return u([e],t,!0)}};t.prependW=v,t.prepend=t.prependW;var y=function(e){return function(t){return u(u([],t,!0),[e],!1)}};t.appendW=y,t.append=t.appendW;var _=function(e,n,r){if((0,t.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(e,0,n),i}return[n]};t.unsafeInsertAt=_;var b=function(e,t,n){if(n[e]===t)return n;var r=d.fromReadonlyNonEmptyArray(n);return r[e]=t,r};t.unsafeUpdateAt=b;var S=function(e){return function(n){if(1===n.length)return n;for(var r=[(0,t.head)(n)],i=(0,t.tail)(n),o=function(t){r.every(function(n){return!e.equals(n,t)})&&r.push(t)},u=0;u<i.length;u++)o(i[u]);return r}};t.uniq=S;var T=function(e){if((0,t.isNonEmpty)(e)){var n=(0,s.getMonoid)();return(0,t.sort)(e.reduce(n.concat,n.empty))}return l.identity};t.sortBy=T;var I=function(e){var n=(0,t.uniq)(e);return function(e){return function(t){return n((0,l.pipe)(t,F(e)))}}};t.union=I;var x=function(e){return function(n){var r=n.length,i=Math.round(e)%r;if((0,t.isOutOfBound)(Math.abs(i),n)||0===i)return n;if(!(i<0))return(0,t.rotate)(i-r)(n);var o=(0,t.splitAt)(-i)(n),u=o[0],a=o[1];return(0,l.pipe)(a,F(u))}};t.rotate=x;var w=function(e){return(0,t.isNonEmpty)(e)?d.some(e):d.none};t.fromReadonlyArray=w;var O=function(e){return function(t){for(var n=Math.max(0,Math.floor(t)),r=[e(0)],i=1;i<n;i++)r.push(e(i));return r}};t.makeBy=O;var R=function(e){return(0,t.makeBy)(function(){return e})};t.replicate=R;var C=function(e,n){return e<=n?(0,t.makeBy)(function(t){return e+t})(n-e+1):[e]};t.range=C;var M=function(e){return[(0,t.head)(e),(0,t.tail)(e)]};t.unprepend=M;var E=function(e){return[(0,t.init)(e),(0,t.last)(e)]};t.unappend=E;var k=function(e){return(0,t.fromReadonlyArray)(e.slice())};function P(e){return function(t){return t.concat(e)}}function F(e,t){return t?e.concat(t):function(t){return t.concat(e)}}t.fromArray=k,t.concatW=P,t.concat=F;var W=function(e){return 1===e.length?e:u([(0,t.last)(e)],e.slice(0,-1).reverse(),!0)};function D(e){return function(n){var r=n.length;if(0===r)return t.empty;for(var i=[],o=n[0],u=[o],a=1;a<r;a++){var c=n[a];e.equals(c,o)?u.push(c):(i.push(u),u=[o=c])}return i.push(u),i}}t.reverse=W,t.group=D;var N=function(e){return function(t){for(var n={},r=0;r<t.length;r++){var i=t[r],o=e(i);d.has.call(n,o)?n[o].push(i):n[o]=[i]}return n}};t.groupBy=N;var L=function(e){return function(t){return 1===t.length?t:t.slice().sort(e.compare)}};t.sort=L;var A=function(e,n){return(0,t.modifyAt)(e,function(){return n})};t.updateAt=A;var j=function(e,n){return function(r){return(0,t.isOutOfBound)(e,r)?d.none:d.some((0,t.unsafeUpdateAt)(e,n(r[e]),r))}};t.modifyAt=j;var U=function(e,t,n){for(var r=[n(e[0],t[0])],i=Math.min(e.length,t.length),o=1;o<i;o++)r[o]=n(e[o],t[o]);return r};t.zipWith=U,t.zip=function e(n,r){return void 0===r?function(t){return e(t,n)}:(0,t.zipWith)(n,r,function(e,t){return[e,t]})};var q=function(e){for(var t=[e[0][0]],n=[e[0][1]],r=1;r<e.length;r++)t[r]=e[r][0],n[r]=e[r][1];return[t,n]};t.unzip=q;var G=function(e){return function(t){for(var n=[e,t[0]],r=1;r<t.length;r++)n.push(e,t[r]);return n}};t.prependAll=G;var B=function(e){return function(n){var r=(0,t.tail)(n);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(e),(0,t.prepend)((0,t.head)(n))):n}};t.intersperse=B;var Y=function(e){return function(n){for(var r=d.fromReadonlyNonEmptyArray(e(0,(0,t.head)(n))),i=1;i<n.length;i++)r.push.apply(r,e(i,n[i]));return r}};t.chainWithIndex=Y;var V=function(e){return function(n){for(var r=e(n),i=r[0],o=r[1],u=[i],a=o;(0,t.isNonEmpty)(a);){var c=e(a),f=c[0],l=c[1];u.push(f),a=l}return u}};t.chop=V;var K=function(e){return function(n){var r=Math.max(1,e);return r>=n.length?[n,t.empty]:[(0,l.pipe)(n.slice(1,r),(0,t.prepend)((0,t.head)(n))),n.slice(r)]}};t.splitAt=K;var z=function(e){return(0,t.chop)((0,t.splitAt)(e))};t.chunksOf=z;var H=function(e,n){return(0,l.pipe)(e,(0,t.map)(n))},Z=function(e,n){return(0,l.pipe)(e,(0,t.mapWithIndex)(n))},$=function(e,n){return(0,l.pipe)(e,(0,t.ap)(n))},X=function(e,n){return(0,l.pipe)(e,(0,t.extend)(n))},J=function(e,n,r){return(0,l.pipe)(e,(0,t.reduce)(n,r))},Q=function(e){var n=(0,t.foldMap)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},ee=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRight)(n,r))},et=function(e){var n=(0,t.traverse)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},en=function(e,n){return(0,l.pipe)(e,(0,t.alt)(n))},er=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceWithIndex)(n,r))},ei=function(e){var n=(0,t.foldMapWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}},eo=function(e,n,r){return(0,l.pipe)(e,(0,t.reduceRightWithIndex)(n,r))},eu=function(e){var n=(0,t.traverseWithIndex)(e);return function(e,t){return(0,l.pipe)(e,n(t))}};t.of=d.singleton;var ea=function(e){return function(t){return(0,l.pipe)(t,P(e()))}};t.altW=ea,t.alt=t.altW;var ec=function(e){return(0,t.flatMap)(function(n){return(0,l.pipe)(e,(0,t.map)(n))})};t.ap=ec,t.flatMap=(0,l.dual)(2,function(e,n){return(0,l.pipe)(e,(0,t.chainWithIndex)(function(e,t){return n(t,e)}))});var ef=function(e){return function(n){for(var r=(0,t.tail)(n),i=[e(n)];(0,t.isNonEmpty)(r);)i.push(e(r)),r=(0,t.tail)(r);return i}};t.extend=ef,t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity);var el=function(e){return(0,t.mapWithIndex)(function(t,n){return e(n)})};t.map=el;var ep=function(e){return function(n){for(var r=[e(0,(0,t.head)(n))],i=1;i<n.length;i++)r.push(e(i,n[i]));return r}};t.mapWithIndex=ep;var ed=function(e,n){return(0,t.reduceWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduce=ed;var es=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r){return e.concat(n,t(r))},t(n[0]))}}};t.foldMap=es;var eh=function(e,n){return(0,t.reduceRightWithIndex)(e,function(e,t,r){return n(t,r)})};t.reduceRight=eh;var em=function(e,t){return function(n){return n.reduce(function(e,n,r){return t(r,e,n)},e)}};t.reduceWithIndex=em;var ev=function(e){return function(t){return function(n){return n.slice(1).reduce(function(n,r,i){return e.concat(n,t(i+1,r))},t(0,n[0]))}}};t.foldMapWithIndex=ev;var ey=function(e,t){return function(n){return n.reduceRight(function(e,n,r){return t(r,n,e)},e)}};t.reduceRightWithIndex=ey;var eg=function(e){var n=(0,t.traverseWithIndex)(e);return function(e){return n(function(t,n){return e(n)})}};t.traverse=eg;var e_=function(e){return(0,t.traverseWithIndex)(e)(l.SK)};t.sequence=e_;var eb=function(e){return function(n){return function(r){for(var i=e.map(n(0,(0,t.head)(r)),t.of),o=1;o<r.length;o++)i=e.ap(e.map(i,function(e){return function(n){return(0,l.pipe)(e,(0,t.append)(n))}}),n(o,r[o]));return i}}};t.traverseWithIndex=eb,t.extract=d.head,t.URI="ReadonlyNonEmptyArray";var eS=function(e){return{show:function(t){return"[".concat(t.map(e.show).join(", "),"]")}}};t.getShow=eS;var eT=function(){return{concat:F}};t.getSemigroup=eT;var eI=function(e){return(0,f.fromEquals)(function(t,n){return t.length===n.length&&t.every(function(t,r){return e.equals(t,n[r])})})};t.getEq=eI;var ex=function(e){var n=(0,t.union)(e);return{concat:function(e,t){return n(t)(e)}}};t.getUnionSemigroup=ex,t.Functor={URI:t.URI,map:H},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:H,mapWithIndex:Z},t.Apply={URI:t.URI,map:H,ap:$},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:H,ap:$,of:t.of},t.Chain={URI:t.URI,map:H,ap:$,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:H,ap:$,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:J,foldMap:Q,reduceRight:ee},t.FoldableWithIndex={URI:t.URI,reduce:J,foldMap:Q,reduceRight:ee,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo},t.Traversable={URI:t.URI,map:H,reduce:J,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:H,mapWithIndex:Z,reduce:J,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu},t.Alt={URI:t.URI,map:H,alt:en},t.Comonad={URI:t.URI,map:H,extend:X,extract:t.extract},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var ew=(0,p.let)(t.Functor);t.let=ew,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=t.extract,t.tail=d.tail;var eO=function(e){return e[e.length-1]};t.last=eO;var eR=function(e){return e.slice(0,-1)};t.init=eR;var eC=function(e){var t=h.min(e);return function(e){return e.reduce(t.concat)}};t.min=eC;var eM=function(e){var t=h.max(e);return function(e){return e.reduce(t.concat)}};t.max=eM;var eE=function(e){return function(t){return t.reduce(e.concat)}};t.concatAll=eE;var ek=function(e){return function(n){return e((0,t.head)(n),(0,t.tail)(n))}};t.matchLeft=ek;var eP=function(e){return function(n){return e((0,t.init)(n),(0,t.last)(n))}};t.matchRight=eP;var eF=function(e){return function(n){return u([e((0,t.head)(n))],(0,t.tail)(n),!0)}};t.modifyHead=eF;var eW=function(e){return(0,t.modifyHead)(function(){return e})};t.updateHead=eW;var eD=function(e){return function(n){return(0,l.pipe)((0,t.init)(n),(0,t.append)(e((0,t.last)(n))))}};t.modifyLast=eD;var eN=function(e){return(0,t.modifyLast)(function(){return e})};t.updateLast=eN;var eL=function(e){var n=(0,t.concatAll)(e);return function(e){return(0,l.flow)((0,t.intersperse)(e),n)}};t.intercalate=eL,t.chain=t.flatMap,t.groupSort=function(e){var n=(0,t.sort)(e),r=D(e);return function(e){return(0,t.isNonEmpty)(e)?r(n(e)):t.empty}},t.filter=function(e){return(0,t.filterWithIndex)(function(t,n){return e(n)})};var eA=function(e){return function(n){return(0,t.fromReadonlyArray)(n.filter(function(t,n){return e(n,t)}))}};t.filterWithIndex=eA,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(e,n){return void 0===n?(0,t.prepend)(e):(0,l.pipe)(n,(0,t.prepend)(e))};var ej=function(e,t){return(0,l.pipe)(e,F([t]))};t.snoc=ej;var eU=function(e,n){return function(r){return e<0||e>r.length?d.none:d.some((0,t.unsafeInsertAt)(e,n,r))}};t.insertAt=eU,t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:H,mapWithIndex:Z,ap:$,chain:t.flatMap,extend:X,extract:t.extract,reduce:J,foldMap:Q,reduceRight:ee,traverse:et,sequence:t.sequence,reduceWithIndex:er,foldMapWithIndex:ei,reduceRightWithIndex:eo,traverseWithIndex:eu,alt:en}},98744:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.semigroupProduct=t.semigroupSum=t.semigroupString=t.getFunctionSemigroup=t.semigroupAny=t.semigroupAll=t.fold=t.getIntercalateSemigroup=t.getMeetSemigroup=t.getJoinSemigroup=t.getDualSemigroup=t.getStructSemigroup=t.getTupleSemigroup=t.getFirstSemigroup=t.getLastSemigroup=t.getObjectSemigroup=t.semigroupVoid=t.concatAll=t.last=t.first=t.intercalate=t.tuple=t.struct=t.reverse=t.constant=t.max=t.min=void 0;var u=n(14632),a=o(n(5309)),c=o(n(73540)),f=o(n(83235)),l=function(e){return{concat:f.min(e)}};t.min=l;var p=function(e){return{concat:f.max(e)}};t.max=p;var d=function(e){return{concat:function(){return e}}};t.constant=d,t.reverse=c.reverse;var s=function(e){return{concat:function(t,n){var r={};for(var i in e)a.has.call(e,i)&&(r[i]=e[i].concat(t[i],n[i]));return r}}};t.struct=s;var h=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return{concat:function(t,n){return e.map(function(e,r){return e.concat(t[r],n[r])})}}};t.tuple=h;var m=function(e){return function(t){return{concat:function(n,r){return t.concat(n,t.concat(e,r))}}}};t.intercalate=m;var v=function(){return{concat:u.identity}};t.first=v;var y=function(){return{concat:function(e,t){return t}}};t.last=y,t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0);var _=function(){return{concat:function(e,t){return Object.assign({},e,t)}}};t.getObjectSemigroup=_,t.getLastSemigroup=t.last,t.getFirstSemigroup=t.first,t.getTupleSemigroup=t.tuple,t.getStructSemigroup=t.struct,t.getDualSemigroup=t.reverse,t.getJoinSemigroup=t.max,t.getMeetSemigroup=t.min,t.getIntercalateSemigroup=t.intercalate,t.fold=function(e){var n=(0,t.concatAll)(e);return function(e,t){return void 0===t?n(e):n(e)(t)}},t.semigroupAll={concat:function(e,t){return e&&t}},t.semigroupAny={concat:function(e,t){return e||t}},t.getFunctionSemigroup=u.getSemigroup,t.semigroupString={concat:function(e,t){return e+t}},t.semigroupSum={concat:function(e,t){return e+t}},t.semigroupProduct={concat:function(e,t){return e*t}}},4773:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.right=t.left=t.flap=t.Functor=t.Bifunctor=t.URI=t.bimap=t.mapLeft=t.map=t.separated=void 0;var r=n(14632),i=n(8762),o=function(e,t){return{left:e,right:t}};t.separated=o;var u=function(e,n){return(0,r.pipe)(e,(0,t.map)(n))},a=function(e,n){return(0,r.pipe)(e,(0,t.mapLeft)(n))},c=function(e,n,i){return(0,r.pipe)(e,(0,t.bimap)(n,i))},f=function(e){return function(n){return(0,t.separated)((0,t.left)(n),e((0,t.right)(n)))}};t.map=f;var l=function(e){return function(n){return(0,t.separated)(e((0,t.left)(n)),(0,t.right)(n))}};t.mapLeft=l;var p=function(e,n){return function(r){return(0,t.separated)(e((0,t.left)(r)),n((0,t.right)(r)))}};t.bimap=p,t.URI="Separated",t.Bifunctor={URI:t.URI,mapLeft:a,bimap:c},t.Functor={URI:t.URI,map:u},t.flap=(0,i.flap)(t.Functor);var d=function(e){return e.left};t.left=d;var s=function(e){return e.right};t.right=s},69706:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var u=o(n(5309));t.wiltDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.separate)}}},t.witherDefault=function(e,t){return function(n){var r=e.traverse(n);return function(e,i){return n.map(r(e,i),t.compact)}}},t.filterE=function(e){return function(t){var n=e.wither(t);return function(e){return function(r){return n(r,function(n){return t.map(e(n),function(e){return e?u.some(n):u.none})})}}}}},3899:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(e,t){return function(n){return n?t.of(void 0):e.zero()}}},14632:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.dual=t.getEndomorphismMonoid=t.not=t.SK=t.hole=t.pipe=t.untupled=t.tupled=t.absurd=t.decrement=t.increment=t.tuple=t.flow=t.flip=t.constVoid=t.constUndefined=t.constNull=t.constFalse=t.constTrue=t.constant=t.unsafeCoerce=t.identity=t.apply=t.getRing=t.getSemiring=t.getMonoid=t.getSemigroup=t.getBooleanAlgebra=void 0;var r=function(e){return function(){return{meet:function(t,n){return function(r){return e.meet(t(r),n(r))}},join:function(t,n){return function(r){return e.join(t(r),n(r))}},zero:function(){return e.zero},one:function(){return e.one},implies:function(t,n){return function(r){return e.implies(t(r),n(r))}},not:function(t){return function(n){return e.not(t(n))}}}}};t.getBooleanAlgebra=r;var i=function(e){return function(){return{concat:function(t,n){return function(r){return e.concat(t(r),n(r))}}}}};t.getSemigroup=i;var o=function(e){var n=(0,t.getSemigroup)(e);return function(){return{concat:n().concat,empty:function(){return e.empty}}}};t.getMonoid=o;var u=function(e){return{add:function(t,n){return function(r){return e.add(t(r),n(r))}},zero:function(){return e.zero},mul:function(t,n){return function(r){return e.mul(t(r),n(r))}},one:function(){return e.one}}};t.getSemiring=u;var a=function(e){var n=(0,t.getSemiring)(e);return{add:n.add,mul:n.mul,one:n.one,zero:n.zero,sub:function(t,n){return function(r){return e.sub(t(r),n(r))}}}};t.getRing=a;var c=function(e){return function(t){return t(e)}};function f(e){return e}function l(e){return function(){return e}}function p(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return o(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return u(o(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return a(u(o(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return c(a(u(o(i(r(n(t(e.apply(this,arguments)))))))))}}}function d(e){return e+1}function s(e){return e-1}function h(e){throw Error("Called `absurd` function which should be uncallable")}t.apply=c,t.identity=f,t.unsafeCoerce=f,t.constant=l,t.constTrue=l(!0),t.constFalse=l(!1),t.constNull=l(null),t.constUndefined=l(void 0),t.constVoid=t.constUndefined,t.flip=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length>1?e(t[1],t[0]):function(n){return e(n)(t[0])}}},t.flow=p,t.tuple=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},t.increment=d,t.decrement=s,t.absurd=h,t.tupled=function(e){return function(t){return e.apply(void 0,t)}},t.untupled=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e(t)}},t.pipe=function(e,t,n,r,i,o,u,a,c){switch(arguments.length){case 1:return e;case 2:return t(e);case 3:return n(t(e));case 4:return r(n(t(e)));case 5:return i(r(n(t(e))));case 6:return o(i(r(n(t(e)))));case 7:return u(o(i(r(n(t(e))))));case 8:return a(u(o(i(r(n(t(e)))))));case 9:return c(a(u(o(i(r(n(t(e))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=h;var m=function(e,t){return t};t.SK=m,t.not=function(e){return function(t){return!e(t)}};var v=function(){return{concat:function(e,t){return p(e,t)},empty:f}};t.getEndomorphismMonoid=v;var y=function(e,t){var r="number"==typeof e?function(t){return t.length>=e}:e;return function(){var e=Array.from(arguments);return r(arguments)?t.apply(this,e):function(r){return t.apply(void 0,n([r],e,!1))}}};t.dual=y},5309:function(e,t,n){var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.flatMapReader=t.flatMapTask=t.flatMapIO=t.flatMapEither=t.flatMapOption=t.flatMapNullable=t.liftOption=t.liftNullable=t.fromReadonlyNonEmptyArray=t.has=t.emptyRecord=t.emptyReadonlyArray=t.tail=t.head=t.isNonEmpty=t.singleton=t.right=t.left=t.isRight=t.isLeft=t.some=t.none=t.isSome=t.isNone=void 0;var i=n(14632),o=function(e){return"None"===e._tag};t.isNone=o;var u=function(e){return"Some"===e._tag};t.isSome=u,t.none={_tag:"None"};var a=function(e){return{_tag:"Some",value:e}};t.some=a;var c=function(e){return"Left"===e._tag};t.isLeft=c;var f=function(e){return"Right"===e._tag};t.isRight=f;var l=function(e){return{_tag:"Left",left:e}};t.left=l;var p=function(e){return{_tag:"Right",right:e}};t.right=p;var d=function(e){return[e]};t.singleton=d;var s=function(e){return e.length>0};t.isNonEmpty=s;var h=function(e){return e[0]};t.head=h;var m=function(e){return e.slice(1)};t.tail=m,t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty;var v=function(e){return r([e[0]],e.slice(1),!0)};t.fromReadonlyNonEmptyArray=v;var y=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither(null==u?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u))}}};t.liftNullable=y;var _=function(e){return function(n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var u=n.apply(void 0,i);return e.fromEither((0,t.isNone)(u)?(0,t.left)(r.apply(void 0,i)):(0,t.right)(u.value))}}};t.liftOption=_;var b=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftNullable)(e)(i,o))})};t.flatMapNullable=b;var S=function(e,n){return(0,i.dual)(3,function(r,i,o){return n.flatMap(r,(0,t.liftOption)(e)(i,o))})};t.flatMapOption=S;var T=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromEither(r(t))})})};t.flatMapEither=T;var I=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromIO(r(t))})})};t.flatMapIO=I;var x=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromTask(r(t))})})};t.flatMapTask=x;var w=function(e,t){return(0,i.dual)(2,function(n,r){return t.flatMap(n,function(t){return e.fromReader(r(t))})})};t.flatMapReader=w},40457:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.Field=t.MonoidProduct=t.MonoidSum=t.SemigroupProduct=t.SemigroupSum=t.MagmaSub=t.Show=t.Bounded=t.Ord=t.Eq=t.isNumber=void 0;var n=function(e){return"number"==typeof e};t.isNumber=n,t.Eq={equals:function(e,t){return e===t}},t.Ord={equals:t.Eq.equals,compare:function(e,t){return e<t?-1:e>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(e){return JSON.stringify(e)}},t.MagmaSub={concat:function(e,t){return e-t}},t.SemigroupSum={concat:function(e,t){return e+t}},t.SemigroupProduct={concat:function(e,t){return e*t}},t.MonoidSum={concat:t.SemigroupSum.concat,empty:0},t.MonoidProduct={concat:t.SemigroupProduct.concat,empty:1},t.Field={add:t.SemigroupSum.concat,zero:0,mul:t.SemigroupProduct.concat,one:1,sub:t.MagmaSub.concat,degree:function(e){return 1},div:function(e,t){return e/t},mod:function(e,t){return e%t}}},67794:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.pipe=t.pipeable=t.compose=t.promap=t.partitionMapWithIndex=t.partitionWithIndex=t.filterMapWithIndex=t.filterWithIndex=t.partitionMap=t.partition=t.filterMap=t.filter=t.alt=t.reduceRightWithIndex=t.foldMapWithIndex=t.reduceWithIndex=t.reduceRight=t.foldMap=t.reduce=t.extend=t.mapLeft=t.bimap=t.chain=t.ap=t.mapWithIndex=t.contramap=t.map=void 0;var r=n(93145),i=n(18222),o=n(14632);function u(e){return function(t){return function(n){return e.map(n,t)}}}function a(e){return function(t){return function(n){return e.contramap(n,t)}}}function c(e){return function(t){return function(n){return e.mapWithIndex(n,t)}}}function f(e){return function(t){return function(n){return e.ap(n,t)}}}function l(e){return function(t){return function(n){return e.chain(n,t)}}}function p(e){return function(t,n){return function(r){return e.bimap(r,t,n)}}}function d(e){return function(t){return function(n){return e.mapLeft(n,t)}}}function s(e){return function(t){return function(n){return e.extend(n,t)}}}function h(e){return function(t,n){return function(r){return e.reduce(r,t,n)}}}function m(e){return function(t){var n=e.foldMap(t);return function(e){return function(t){return n(t,e)}}}}function v(e){return function(t,n){return function(r){return e.reduceRight(r,t,n)}}}function y(e){return function(t,n){return function(r){return e.reduceWithIndex(r,t,n)}}}function _(e){return function(t){var n=e.foldMapWithIndex(t);return function(e){return function(t){return n(t,e)}}}}function b(e){return function(t,n){return function(r){return e.reduceRightWithIndex(r,t,n)}}}function S(e){return function(t){return function(n){return e.alt(n,t)}}}function T(e){return function(t){return function(n){return e.filter(n,t)}}}function I(e){return function(t){return function(n){return e.filterMap(n,t)}}}function x(e){return function(t){return function(n){return e.partition(n,t)}}}function w(e){return function(t){return function(n){return e.partitionMap(n,t)}}}function O(e){return function(t){return function(n){return e.filterWithIndex(n,t)}}}function R(e){return function(t){return function(n){return e.filterMapWithIndex(n,t)}}}function C(e){return function(t){return function(n){return e.partitionWithIndex(n,t)}}}function M(e){return function(t){return function(n){return e.partitionMapWithIndex(n,t)}}}function E(e){return function(t,n){return function(r){return e.promap(r,t,n)}}}function k(e){return function(t){return function(n){return e.compose(n,t)}}}t.map=u,t.contramap=a,t.mapWithIndex=c,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=h,t.foldMap=m,t.reduceRight=v,t.reduceWithIndex=y,t.foldMapWithIndex=_,t.reduceRightWithIndex=b,t.alt=S,t.filter=T,t.filterMap=I,t.partition=x,t.partitionMap=w,t.filterWithIndex=O,t.filterMapWithIndex=R,t.partitionWithIndex=C,t.partitionMapWithIndex=M,t.promap=E,t.compose=k,t.pipeable=function(e){var t,n,P,F,W,D,N,L,A,j,U,q,G,B,Y,V,K={};if("function"==typeof e.map&&(K.map=u(e)),"function"==typeof e.contramap&&(K.contramap=a(e)),"function"==typeof e.mapWithIndex&&(K.mapWithIndex=c(e)),"function"==typeof e.ap&&(K.ap=f(e),K.apFirst=(0,r.apFirst)(e),K.apSecond=(0,r.apSecond)(e)),"function"==typeof e.chain&&(K.chain=l(e),K.chainFirst=(0,i.chainFirst)(e),K.flatten=K.chain(o.identity)),"function"==typeof e.bimap&&(K.bimap=p(e),K.mapLeft=d(e)),"function"==typeof e.extend&&(K.extend=s(e),K.duplicate=K.extend(o.identity)),"function"==typeof e.reduce&&(K.reduce=h(e),K.foldMap=m(e),K.reduceRight=v(e)),"function"==typeof e.reduceWithIndex&&(K.reduceWithIndex=y(e),K.foldMapWithIndex=_(e),K.reduceRightWithIndex=b(e)),"function"==typeof e.alt&&(K.alt=S(e)),"function"==typeof e.compact&&(K.compact=e.compact,K.separate=e.separate),"function"==typeof e.filter&&(K.filter=T(e),K.filterMap=I(e),K.partition=x(e),K.partitionMap=w(e)),"function"==typeof e.filterWithIndex&&(K.filterWithIndex=O(e),K.filterMapWithIndex=R(e),K.partitionWithIndex=C(e),K.partitionMapWithIndex=M(e)),"function"==typeof e.promap&&(K.promap=E(e)),"function"==typeof e.compose&&(K.compose=k(e)),"function"==typeof e.throwError){var z=function(t){return function(n){return"None"===n._tag?e.throwError(t()):e.of(n.value)}},H=function(t){return"Left"===t._tag?e.throwError(t.left):e.of(t.right)},Z=function(t,n){return function(r){return t(r)?e.of(r):e.throwError(n(r))}},$=function(t,n){return function(r){return e.chain(r,function(r){return t(r)?e.of(r):e.throwError(n(r))})}};K.fromOption=z,K.fromEither=H,K.fromPredicate=Z,K.filterOrElse=$}return K},t.pipe=o.pipe},23284:function(e,t,n){n.r(t),n.d(t,{BigIntFromString:function(){return tI},BooleanFromNumber:function(){return tw},BooleanFromString:function(){return ta},DateFromISOString:function(){return e9},DateFromNumber:function(){return tt},DateFromUnixTime:function(){return ts},IntFromString:function(){return tm},Json:function(){return tg},JsonArray:function(){return tv},JsonFromString:function(){return t_},JsonRecord:function(){return ty},NonEmptyString:function(){return u},NumberFromString:function(){return th},UUID:function(){return to},clone:function(){return te},date:function(){return y},either:function(){return tT},fromNewtype:function(){return e8},fromNullable:function(){return tu},fromRefinement:function(){return v},getLenses:function(){return tp},mapFromEntries:function(){return tC},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return e5},optionFromNullable:function(){return e7},readonlyMapFromEntries:function(){return tM},readonlyNonEmptyArray:function(){return e6},readonlySetFromArray:function(){return m},regexp:function(){return td},setFromArray:function(){return h},withEncode:function(){return tx},withFallback:function(){return tr},withMessage:function(){return tc},withValidate:function(){return tn}});var r={};n.r(r),n.d(r,{Category:function(){return eN},Invariant:function(){return eW},Semigroupoid:function(){return eD},URI:function(){return eF},asOptional:function(){return eu},asTraversal:function(){return ea},atKey:function(){return ex},component:function(){return eb},compose:function(){return ec},composeIso:function(){return el},composeLens:function(){return ef},composeOptional:function(){return ed},composePrism:function(){return ep},composeTraversal:function(){return es},filter:function(){return ey},findFirst:function(){return eM},findFirstNonEmpty:function(){return eE},fromNullable:function(){return ev},id:function(){return eo},imap:function(){return ek},index:function(){return eS},indexNonEmpty:function(){return eT},key:function(){return eI},left:function(){return eR},lens:function(){return ei},modify:function(){return eh},modifyF:function(){return em},prop:function(){return eg},props:function(){return e_},right:function(){return eO},some:function(){return ew},traverse:function(){return eC}});var i=n(47361),o=n(87830),u=o.brand(o.string,function(e){return e.length>0},"NonEmptyString"),a=n(43586),c=n(1358),f=n(18896),l=n(81878),p=n(20492);function d(e,t){void 0===t&&(t="NonEmptyArray<"+e.name+">");var n=o.array(e);return new o.Type(t,function(e){return n.is(e)&&(0,c.isNonEmpty)(e)},function(e,t){return(0,f.pipe)(n.validate(e,t),(0,l.chain)(function(n){var r=(0,a.fromArray)(n);return(0,p.isNone)(r)?o.failure(e,t):o.success(r.value)}))},(0,a.map)(e.encode))}var s=n(1214);function h(e,t,n){void 0===n&&(n="Set<"+e.name+">");var r=o.array(e),i=(0,s.toArray)(t),u=(0,s.fromArray)(t);return new o.Type(n,function(t){return t instanceof Set&&(0,s.every)(e.is)(t)},function(e,t){return(0,f.pipe)(r.validate(e,t),(0,l.chain)(function(n){var r=u(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return r.encode(i(e))})}function m(e,t,n){return void 0===n&&(n="ReadonlySet<"+e.name+">"),h(e,t,n)}function v(e,t){return new o.Type(e,t,function(e,n){return t(e)?o.success(e):o.failure(e,n)},o.identity)}var y=v("Date",function(e){return e instanceof Date}),_=n(42275),b=n(90817),S=n(96576),T=n(31583),I=n(97054),x=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},w=function(e,t){return{get:e,reverseGet:t}},O=function(e){return E(e.get,(0,_.flow)(e.reverseGet,_.constant))},R=function(e){return q((0,_.flow)(e.get,p.some),e.reverseGet)},C=function(e){return z((0,_.flow)(e.get,p.some),(0,_.flow)(e.reverseGet,_.constant))},M=function(e){return Q(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.reverseGet(t)})}}})},E=function(e,t){return{get:e,set:t}},k=function(e){return z((0,_.flow)(e.get,p.some),e.set)},P=function(e){return Q(function(t){return function(n){return function(r){return t.map(n(e.get(r)),function(t){return e.set(t)(r)})}}})},F=function(e){return function(t){return E(function(n){return e.get(t.get(n))},function(n){return function(r){return t.set(e.set(n)(t.get(r)))(r)}})}},W=function(e){return function(t){return q((0,_.flow)(t.getOption,p.chain(e.getOption)),(0,_.flow)(e.reverseGet,t.reverseGet))}},D=function(e){return function(t){return X(G(e))(k(t))}},N=function(){return E(_.identity,_.constant)},L=function(e){return function(t){return E(function(n){return t.get(n)[e]},function(n){return function(r){var i,o=t.get(r);return n===o[e]?r:t.set(Object.assign({},o,((i={})[e]=n,i)))(r)}})}},A=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return E(function(n){for(var r=t.get(n),i={},o=0;o<e.length;o++){var u=e[o];i[u]=r[u]}return i},function(n){return function(r){for(var i=t.get(r),o=0;o<e.length;o++){var u=e[o];if(n[u]!==i[u])return t.set(Object.assign({},i,n))(r)}return r}})}},j=function(e){return function(t){return E(function(n){return t.get(n)[e]},function(n){return function(r){var i=t.get(r);if(n===i[e])return r;var o=i.slice();return o[e]=n,t.set(o)(r)}})}},U=function(e){return function(t){return(0,f.pipe)(t,F(er(function(e){return E(function(t){return I.lookup(e,t)},p.fold(function(){return I.deleteAt(e)},function(t){return I.insertAt(e,t)}))}).at(e)))}},q=function(e,t){return{getOption:e,reverseGet:t}},G=function(e){return z(e.getOption,function(t){return Y(t)(e)})},B=function(e){return Q(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return Y(t)(e)(r)})}))}}})},Y=function(e){var t;return t=function(){return e},function(e){var n,r,i=(n=e,function(e){return(0,f.pipe)(n.getOption(e),p.map(function(r){var i=t(r);return i===r?e:n.reverseGet(i)}))});return function(e){return(0,f.pipe)(i(e),p.getOrElse(function(){return e}))}}},V=function(e){return q(p.fromPredicate(e),_.identity)},K=function(){return q(_.identity,p.some)},z=function(e,t){return{getOption:e,set:t}},H=function(e){return Q(function(t){return function(n){return function(r){return(0,f.pipe)(e.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(n(i),function(t){return e.set(t)(r)})}))}}})},Z=function(e){return function(t){return function(n){return(0,f.pipe)(t.getOption(n),p.map(function(r){var i=e(r);return i===r?n:t.set(i)(n)}))}}},$=function(e){return function(t){var n=Z(e)(t);return function(e){return(0,f.pipe)(n(e),p.getOrElse(function(){return e}))}}},X=function(e){return function(t){return z((0,_.flow)(t.getOption,p.chain(e.getOption)),function(n){return $(e.set(n))(t)})}},J=function(e,t,n){if(n[e]===t)return n;var r=x([n[0]],n.slice(1),!0);return r[e]=t,r},Q=function(e){return{modifyF:e}};function ee(e){return function(t){return Q(function(n){return function(r){return t.modifyF(n)(e.modifyF(n)(r))}})}}var et={URI:"Identity",map:function(e,t){return t(e)},of:_.identity,ap:function(e,t){return e(t)}},en=function(e){return{index:e}},er=function(e){return{at:e}},ei=E,eo=N,eu=k,ea=P,ec=F,ef=ec,el=(0,_.flow)(O,ec),ep=D,ed=function(e){return(0,_.flow)(eu,X(e))},es=function(e){return(0,_.flow)(ea,ee(e))},eh=function(e){return function(t){return function(n){var r=t.get(n),i=e(r);return r===i?n:t.set(i)(n)}}};function em(e){return function(t){return function(n){return function(r){return(0,f.pipe)(n.get(r),t,function(t){return e.map(t,function(e){return n.set(e)(r)})})}}}}var ev=function(e){return ep(q(p.fromNullable,_.identity))(e)};function ey(e){return ep(V(e))}var eg=L,e_=A,eb=j,eS=function(e){var t;return(0,_.flow)(eu,function(t){return(0,f.pipe)(t,X(en(function(e){return z(function(t){return T.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(T.lookup(e,n),p.fold(function(){return n},function(){return T.unsafeUpdateAt(e,t,n)}))}})}).index(e)))})},eT=function(e){var t;return(0,_.flow)(eu,function(t){return(0,f.pipe)(t,X(en(function(e){return z(function(t){return T.lookup(e,t)},function(t){return function(n){return(0,f.pipe)(T.lookup(e,n),p.fold(function(){return n},function(){return J(e,t,n)}))}})}).index(e)))})},eI=function(e){var t;return(0,_.flow)(eu,function(t){return(0,f.pipe)(t,X(en(function(e){return z(function(t){return I.lookup(e,t)},function(t){return function(n){return n[e]===t||p.isNone(I.lookup(e,n))?n:I.insertAt(e,t)(n)}})}).index(e)))})},ex=U,ew=ep(K()),eO=ep(q(p.fromEither,l.right)),eR=ep(q(function(e){return l.isLeft(e)?p.some(e.left):p.none},l.left));function eC(e){var t,n;return(0,_.flow)(ea,ee(Q(function(t){var n,r="Identity"===t.URI?e.map:e.traverse(t);return function(e){return function(t){return r(t,e)}}})))}function eM(e){var t;return ed(z(T.findFirst(e),function(t){return function(n){return(0,f.pipe)(T.findIndex(e)(n),p.fold(function(){return n},function(e){return T.unsafeUpdateAt(e,t,n)}))}}))}function eE(e){var t;return ed(z(T.findFirst(e),function(t){return function(n){return(0,f.pipe)(T.findIndex(e)(n),p.fold(function(){return n},function(e){return J(e,t,n)}))}}))}var ek=function(e,t){return function(n){return eP(n,e,t)}},eP=function(e,t,n){return ei((0,_.flow)(e.get,t),(0,_.flow)(n,e.set))},eF="monocle-ts/Lens",eW={URI:eF,imap:eP},eD={URI:eF,compose:function(e,t){return ec(e)(t)}},eN={URI:eF,compose:eD.compose,id:eo},eL=function(e){return function(t){return t.modifyF(et)(e)}},eA=function(e){return new eV(e.get,e.reverseGet)},ej=function(e){return new eK(e.get,e.set)},eU=function(e){return new ez(e.getOption,e.reverseGet)},eq=function(e){return new eZ(e.getOption,e.set)},eG=function(e){return new e$(e.modifyF)},eB=function(e){return new eJ(function(t){return eq(e.index(t))})},eY=function(e,t,n){var r;return n===e[t]?e:Object.assign({},e,((r={})[t]=n,r))},eV=function(){function e(e,t){this.get=e,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return e.prototype.reverse=function(){var e;return eA(w(this.reverseGet,this.get))},e.prototype.modify=function(e){var t,n;return n=this,function(t){return n.reverseGet(e(n.get(t)))}},e.prototype.asLens=function(){return ej(O(this))},e.prototype.asPrism=function(){return eU(R(this))},e.prototype.asOptional=function(){return eq(C(this))},e.prototype.asTraversal=function(){return eG(M(this))},e.prototype.asFold=function(){var e=this;return new e0(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.asGetter=function(){var e=this;return new eQ(function(t){return e.get(t)})},e.prototype.asSetter=function(){var e=this;return new e1(function(t){return e.modify(t)})},e.prototype.compose=function(e){var t;return eA((t=e,function(e){return w((0,_.flow)(e.get,t.get),(0,_.flow)(t.reverseGet,e.reverseGet))})(this))},e.prototype.composeIso=function(e){return this.compose(e)},e.prototype.composeLens=function(e){return ej((0,f.pipe)(this,O,ec(e)))},e.prototype.composePrism=function(e){return eU((0,f.pipe)(this,R,W(e)))},e.prototype.composeOptional=function(e){return eq((0,f.pipe)(this,C,X(e)))},e.prototype.composeTraversal=function(e){return eG((0,f.pipe)(this,M,ee(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e}(),eK=function(){function e(e,t){this.get=e,this.set=t,this._tag="Lens"}return e.fromPath=function(){var t=e.fromProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromProp=function(){return function(e){return ej((0,f.pipe)(eo(),eg(e)))}},e.fromProps=function(){return function(e){return ej((0,f.pipe)(eo(),e_.apply(r,e)))}},e.fromNullableProp=function(){return function(t,n){return new e(function(e){var r=(0,p.fromNullable)(e[t]);return(0,p.isNone)(r)?n:r.value},function(e){return function(n){return eY(n,t,e)}})}},e.prototype.modify=function(e){return eh(e)(this)},e.prototype.asOptional=function(){return eq(eu(this))},e.prototype.asTraversal=function(){return eG(ea(this))},e.prototype.asSetter=function(){var e=this;return new e1(function(t){return e.modify(t)})},e.prototype.asGetter=function(){var e=this;return new eQ(function(t){return e.get(t)})},e.prototype.asFold=function(){var e=this;return new e0(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(e){return ej(ec(e)(this))},e.prototype.composeLens=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.asGetter().compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeOptional=function(e){return eq((0,f.pipe)(this,eu,X(e)))},e.prototype.composeTraversal=function(e){return eG((0,f.pipe)(this,ea,ee(e)))},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return ej((0,f.pipe)(this,ec((0,f.pipe)(e,O))))},e.prototype.composePrism=function(e){return eq(ep(e)(this))},e}(),ez=function(){function e(e,t){this.getOption=e,this.reverseGet=t,this._tag="Prism"}return e.fromPredicate=function(e){return eU(V(e))},e.some=function(){return eH},e.prototype.modify=function(e){var t=this;return function(n){var r=t.modifyOption(e)(n);return(0,p.isNone)(r)?n:r.value}},e.prototype.modifyOption=function(e){var t=this;return function(n){return p.option.map(t.getOption(n),function(r){var i=e(r);return i===r?n:t.reverseGet(i)})}},e.prototype.set=function(e){return this.modify(function(){return e})},e.prototype.asOptional=function(){return eq(G(this))},e.prototype.asTraversal=function(){return eG(B(this))},e.prototype.asSetter=function(){var e=this;return new e1(function(t){return e.modify(t)})},e.prototype.asFold=function(){var e=this;return new e0(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.compose=function(e){return eU(W(e)(this))},e.prototype.composePrism=function(e){return this.compose(e)},e.prototype.composeOptional=function(e){return eq((0,f.pipe)(this,G,X(e)))},e.prototype.composeTraversal=function(e){return eG((0,f.pipe)(this,B,ee(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeIso=function(e){return eU((0,f.pipe)(this,W((0,f.pipe)(e,R))))},e.prototype.composeLens=function(e){var t;return eq((t=e,function(e){return X(k(t))(G(e))})(this))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eH=new ez(_.identity,p.some),eZ=function(){function e(e,t){this.getOption=e,this.set=t,this._tag="Optional"}return e.fromPath=function(){var t=e.fromNullableProp();return function(e){var n=t(e[0]);return e.slice(1).reduce(function(e,n){return e.compose(t(n))},n)}},e.fromNullableProp=function(){return function(t){return new e(function(e){return(0,p.fromNullable)(e[t])},function(e){return function(n){return null==n[t]?n:eY(n,t,e)}})}},e.fromOptionProp=function(){var e=eK.fromProp();return function(t){return e(t).composePrism(eH)}},e.prototype.modify=function(e){return $(e)(this)},e.prototype.modifyOption=function(e){return Z(e)(this)},e.prototype.asTraversal=function(){return eG(H(this))},e.prototype.asFold=function(){var e=this;return new e0(function(t){return function(n){return function(r){var i=e.getOption(r);return(0,p.isNone)(i)?t.empty:n(i.value)}}})},e.prototype.asSetter=function(){var e=this;return new e1(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eq(X(e)(this))},e.prototype.composeOptional=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return eG((0,f.pipe)(this,H,ee(e)))},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeLens=function(e){return eq((0,f.pipe)(this,X((0,f.pipe)(e,eu))))},e.prototype.composePrism=function(e){return eq((0,f.pipe)(this,X((0,f.pipe)(e,G))))},e.prototype.composeIso=function(e){return eq((0,f.pipe)(this,X((0,f.pipe)(e,C))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),e$=function(){function e(e){this.modifyF=e,this._tag="Traversal"}return e.prototype.modify=function(e){return eL(e)(this)},e.prototype.set=function(e){var t;return eL(function(){return e})(this)},e.prototype.filter=function(e){var t;return eG(ee(B(V(e)))(this))},e.prototype.asFold=function(){var e=this;return new e0(function(t){return function(n){return e.modifyF((0,b.getApplicative)(t))(function(e){return(0,b.make)(n(e))})}})},e.prototype.asSetter=function(){var e=this;return new e1(function(t){return e.modify(t)})},e.prototype.compose=function(e){return eG(ee(e)(this))},e.prototype.composeTraversal=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeSetter=function(e){return this.asSetter().compose(e)},e.prototype.composeOptional=function(e){return this.compose(e.asTraversal())},e.prototype.composeLens=function(e){return eG((0,f.pipe)(this,ee((0,f.pipe)(e,ea))))},e.prototype.composePrism=function(e){return eG((0,f.pipe)(this,ee((0,f.pipe)(e,B))))},e.prototype.composeIso=function(e){return eG((0,f.pipe)(this,ee((0,f.pipe)(e,M))))},e.prototype.composeGetter=function(e){return this.asFold().compose(e.asFold())},e}(),eX=function(){function e(e){this.at=e,this._tag="At"}return e.prototype.fromIso=function(e){var t,n,r;return r=this,n=er(function(t){return(0,f.pipe)(e,O,F(r.at(t)))}),new eX(function(e){return ej(n.at(e))})},e}(),eJ=function(){function e(e){this.index=e,this._tag="Index"}return e.fromAt=function(e){var t;return eB(en(function(t){return D(K())(e.at(t))}))},e.prototype.fromIso=function(e){var t,n;return eB((n=this,en(function(t){return(0,f.pipe)(e,C,X(n.index(t)))})))},e}(),eQ=function(){function e(e){this.get=e,this._tag="Getter"}return e.prototype.asFold=function(){var e=this;return new e0(function(){return function(t){return function(n){return t(e.get(n))}}})},e.prototype.compose=function(t){var n=this;return new e(function(e){return t.get(n.get(e))})},e.prototype.composeGetter=function(e){return this.compose(e)},e.prototype.composeFold=function(e){return this.asFold().compose(e)},e.prototype.composeLens=function(e){return this.compose(e.asGetter())},e.prototype.composeIso=function(e){return this.compose(e.asGetter())},e.prototype.composeTraversal=function(e){return this.asFold().compose(e.asFold())},e.prototype.composeOptional=function(e){return this.asFold().compose(e.asFold())},e.prototype.composePrism=function(e){return this.asFold().compose(e.asFold())},e}(),e0=function(){function e(e){this.foldMap=e,this._tag="Fold",this.getAll=e(c.getMonoid())(c.of),this.exist=e(S.monoidAny),this.all=e(S.monoidAll),this.foldMapFirst=e((0,p.getFirstMonoid)())}return e.prototype.compose=function(t){var n=this;return new e(function(e){return function(r){return n.foldMap(e)(t.foldMap(e)(r))}})},e.prototype.composeFold=function(e){return this.compose(e)},e.prototype.composeGetter=function(e){return this.compose(e.asFold())},e.prototype.composeTraversal=function(e){return this.compose(e.asFold())},e.prototype.composeOptional=function(e){return this.compose(e.asFold())},e.prototype.composeLens=function(e){return this.compose(e.asFold())},e.prototype.composePrism=function(e){return this.compose(e.asFold())},e.prototype.composeIso=function(e){return this.compose(e.asFold())},e.prototype.find=function(e){return this.foldMapFirst((0,p.fromPredicate)(e))},e.prototype.headOption=function(e){return this.find(function(){return!0})(e)},e}(),e1=function(){function e(e){this.modify=e,this._tag="Setter"}return e.prototype.set=function(e){return this.modify((0,_.constant)(e))},e.prototype.compose=function(t){var n=this;return new e(function(e){return n.modify(t.modify(e))})},e.prototype.composeSetter=function(e){return this.compose(e)},e.prototype.composeTraversal=function(e){return this.compose(e.asSetter())},e.prototype.composeOptional=function(e){return this.compose(e.asSetter())},e.prototype.composeLens=function(e){return this.compose(e.asSetter())},e.prototype.composePrism=function(e){return this.compose(e.asSetter())},e.prototype.composeIso=function(e){return this.compose(e.asSetter())},e}(),e2=new eV(_.unsafeCoerce,_.unsafeCoerce);function e8(e,t){return void 0===t&&(t="fromNewtype("+e.name+")"),new o.Type(t,function(t){return e.is(t)},function(t,n){return(0,f.pipe)(e.validate(t,n),(0,l.map)(e2.wrap))},function(t){return e.encode(e2.unwrap(t))})}var e4=o.strict({_tag:o.literal("None")},"None"),e3=o.literal("Some");function e5(e,t){return void 0===t&&(t="Option<"+e.name+">"),o.union([e4,o.strict({_tag:e3,value:e},"Some<"+e.name+">")],t)}function e7(e,t){return void 0===t&&(t="Option<"+e.name+">"),new o.Type(t,e5(e).is,function(t,n){return null==t?o.success(p.none):(0,f.pipe)(e.validate(t,n),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(e.encode)))})}var e9=new o.Type("DateFromISOString",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.toISOString()});function e6(e,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+e.name+">"),d(e,t)}function te(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}var tt=new o.Type("DateFromNumber",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.chain)(function(n){var r=new Date(n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return e.getTime()});function tn(e,t,n){void 0===n&&(n=e.name);var r=te(e);return r.validate=t,r.decode=function(e){return t(e,o.getDefaultContext(r))},r.name=n,r}function tr(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),tn(e,function(n,r){return(0,l.orElse)(function(){return o.success(t)})(e.validate(n,r))},n)}var ti=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,to=o.brand(o.string,function(e){return ti.test(e)},"UUID");function tu(e,t,n){return void 0===n&&(n="fromNullable("+e.name+")"),tn(e,function(n,r){return null==n?o.success(t):e.validate(n,r)},n)}var ta=new o.Type("BooleanFromString",o.boolean.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){return"true"===n?o.success(!0):"false"===n?o.success(!1):o.failure(e,t)}))},String);function tc(e,t){return tn(e,function(n,r){return(0,l.mapLeft)(function(){return[{value:n,context:r,message:t(n,r),actual:n}]})(e.validate(n,r))})}function tf(e){switch(e._tag){case"InterfaceType":return e.props;case"ExactType":return tf(e.type)}}var tl=eK.fromProp();function tp(e){var t={};for(var n in tf(e))t[n]=tl(n);return t}var td=v("RegExp",function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}),ts=new o.Type("DateFromUnixTime",function(e){return e instanceof Date},function(e,t){return(0,f.pipe)(o.Int.validate(e,t),(0,l.chain)(function(n){var r=new Date(1e3*n);return isNaN(r.getTime())?o.failure(e,t):o.success(r)}))},function(e){return Math.floor(e.getTime()/1e3)}),th=new o.Type("NumberFromString",o.number.is,function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){var r=+n;return isNaN(r)||""===n.trim()?o.failure(e,t):o.success(r)}))},String),tm=new o.Type("IntFromString",o.Int.is,function(e,t){return(0,f.pipe)(th.validate(e,t),(0,l.chain)(function(n){return o.Int.is(n)?o.success(n):o.failure(e,t)}))},th.encode),tv=o.recursion("JsonArray",function(){return o.readonlyArray(tg)}),ty=o.recursion("JsonRecord",function(){return o.record(o.string,tg)}),tg=o.union([o.boolean,o.number,o.string,o.null,tv,ty],"Json"),t_=new o.Type("JsonFromString",tg.is,function(e,t){try{return o.success(JSON.parse(e))}catch(n){return o.failure(e,t)}},function(e){return JSON.stringify(e)}),tb=o.literal("Left"),tS=o.literal("Right");function tT(e,t,n){return void 0===n&&(n="Either<"+e.name+", "+t.name+">"),o.union([o.strict({_tag:tb,left:e},"Left<"+e.name+">"),o.strict({_tag:tS,right:t},"Right<"+e.name+">")],n)}var tI=new o.Type("BigIntFromString",function(e){return"bigint"==typeof e},function(e,t){return(0,f.pipe)(o.string.validate(e,t),(0,l.chain)(function(n){if(!u.is(n.trim()))return o.failure(e,t);try{return o.success(BigInt(n))}catch(r){return o.failure(e,t)}}))},String);function tx(e,t,n){return void 0===n&&(n=e.name),new o.Type(n,e.is,e.validate,t)}var tw=new o.Type("BooleanFromNumber",o.boolean.is,function(e,t){return(0,f.pipe)(o.number.validate(e,t),(0,l.map)(function(e){return 0!==e}))},Number),tO=n(55116),tR=n(3291);function tC(e,t,n,r){void 0===r&&(r="Map<"+e.name+", "+n.name+">");var i,u,a=o.array(o.tuple([e,n])),f=(0,tO.toArray)(t),p=(0,tO.fromFoldable)(t,(0,tR.getLastSemigroup)(),c.Foldable),d=(i=e.is,u=n.is,function(e){for(var t,n=e.entries();!(t=n.next()).done;)if(!1===i(t.value[0])||!1===u(t.value[1]))return!1;return!0});return new o.Type(r,function(e){return e instanceof Map&&d(e)},function(e,t){return(0,_.pipe)(a.validate(e,t),(0,l.chain)(function(n){var r=p(n);return r.size!==n.length?o.failure(e,t):o.success(r)}))},function(e){return a.encode(f(e))})}function tM(e,t,n,r){return void 0===r&&(r="ReadonlyMap<"+e.name+", "+n.name+">"),tC(e,t,n,r)}},47361:function(e,t,n){n.r(t),n.d(t,{mapOutput:function(){return i}});var r=n(87830);function i(e,t,n){return void 0===n&&(n=e.name),new r.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},11621:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var u=o(n(87830)),a=n(59054),c=n(67794),f=n(87412);t.IntFromString=new u.Type("IntFromString",u.Int.is,function(e,t){return c.pipe(a.NumberFromString.validate(e,t),f.chain(function(n){return u.Int.is(n)?u.success(n):u.failure(e,t)}))},a.NumberFromString.encode)},59054:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var u=o(n(87830)),a=n(67794),c=n(87412);t.NumberFromString=new u.Type("NumberFromString",u.number.is,function(e,t){return a.pipe(u.string.validate(e,t),c.chain(function(n){var r=+n;return isNaN(r)||""===n.trim()?u.failure(e,t):u.success(r)}))},String)},62886:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(e){var t=Object.create(Object.getPrototypeOf(e));return Object.assign(t,e),t}},2932:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var u=o(n(87830));t.mapOutput=function(e,t,n){return void 0===n&&(n=e.name),new u.Type(n,e.is,e.validate,function(n){return t(e.encode(n))})}},69624:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var u=o(n(87830)),a=n(40308),c=n(87412);t.withFallback=function(e,t,n){return void 0===n&&(n="withFallback("+e.name+")"),a.withValidate(e,function(n,r){return c.orElse(function(){return u.success(t)})(e.validate(n,r))},n)}},40308:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var u=o(n(87830)),a=n(62886);t.withValidate=function(e,t,n){void 0===n&&(n=e.name);var r=a.clone(e);return r.validate=t,r.decode=function(e){return t(e,u.getDefaultContext(r))},r.name=n,r}},87830:function(e,t,n){n.r(t),n.d(t,{AnyArrayType:function(){return Q},AnyDictionaryType:function(){return et},AnyType:function(){return ej},Array:function(){return ee},ArrayType:function(){return eh},BigIntType:function(){return Z},BooleanType:function(){return X},Dictionary:function(){return ez},DictionaryType:function(){return eb},ExactType:function(){return eF},Function:function(){return eN},FunctionType:function(){return eD},Int:function(){return ep},Integer:function(){return eG},InterfaceType:function(){return ev},IntersectionType:function(){return ex},KeyofType:function(){return eo},LiteralType:function(){return er},NeverType:function(){return eL},NullType:function(){return L},NumberType:function(){return z},ObjectType:function(){return eH},PartialType:function(){return eg},ReadonlyArrayType:function(){return eE},ReadonlyType:function(){return eC},RecursiveType:function(){return ed},RefinementType:function(){return ea},StrictType:function(){return eX},StringType:function(){return V},TaggedUnionType:function(){return eB},TupleType:function(){return eO},Type:function(){return p},UndefinedType:function(){return j},UnionType:function(){return eT},UnknownArray:function(){return ee},UnknownRecord:function(){return en},UnknownType:function(){return B},VoidType:function(){return q},alias:function(){return eQ},any:function(){return eU},appendContext:function(){return m},array:function(){return em},bigint:function(){return $},boolean:function(){return J},brand:function(){return ec},clean:function(){return eJ},dictionary:function(){return e$},emptyTags:function(){return C},exact:function(){return eW},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return h},getDefaultContext:function(){return eK},getDomainKeys:function(){return I},getFunctionName:function(){return s},getIndex:function(){return N},getTags:function(){return D},getValidationError:function(){return eV},identity:function(){return d},interface:function(){return ey},intersection:function(){return ew},keyof:function(){return eu},literal:function(){return ei},mergeAll:function(){return w},never:function(){return eA},null:function(){return A},nullType:function(){return A},number:function(){return H},object:function(){return eZ},partial:function(){return e_},readonly:function(){return eM},readonlyArray:function(){return ek},record:function(){return eS},recursion:function(){return es},refinement:function(){return eq},strict:function(){return eP},string:function(){return K},success:function(){return l},taggedUnion:function(){return eY},tuple:function(){return eR},type:function(){return ey},undefined:function(){return U},union:function(){return eI},unknown:function(){return Y},void:function(){return G},voidType:function(){return G}});var r,i=n(81878),o=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},a=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},c=i.left,f=function(e,t,n){return c([{value:e,context:t,message:n}])},l=i.right,p=function(){function e(e,t,n,r){this.name=e,this.is=t,this.validate=n,this.encode=r,this.decode=this.decode.bind(this)}return e.prototype.pipe=function(t,n){var r=this;return void 0===n&&(n="pipe(".concat(this.name,", ").concat(t.name,")")),new e(n,t.is,function(e,n){var o=r.validate(e,n);return(0,i.isLeft)(o)?o:t.validate(o.right,n)},this.encode===d&&t.encode===d?d:function(e){return r.encode(t.encode(e))})},e.prototype.asDecoder=function(){return this},e.prototype.asEncoder=function(){return this},e.prototype.decode=function(e){return this.validate(e,[{key:"",type:this,actual:e}])},e}(),d=function(e){return e};function s(e){return e.displayName||e.name||"<function".concat(e.length,">")}function h(e,t){return{key:e,type:t}}function m(e,t,n,r){for(var i=e.length,o=Array(i+1),u=0;u<i;u++)o[u]=e[u];return o[i]={key:t,type:n,actual:r},o}function v(e,t){for(var n=t.length,r=0;r<n;r++)e.push(t[r])}var y=Object.prototype.hasOwnProperty;function _(e){return Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t].name)}).join(", ")}function b(e){for(var t=0;t<e.length;t++)if(e[t].encode!==d)return!1;return!0}function S(e){return"{ ".concat(_(e)," }")}function T(e){return"Partial<".concat(e,">")}function I(e){if(k(e)){var t,n,r=e.value;if(K.is(r))return(t={})[r]=null,t}else{if(n=e,"KeyofType"===n._tag)return e.keys;else if(F(e)){var i=e.types.map(function(e){return I(e)});return i.some(U.is)?void 0:Object.assign.apply(Object,a([{}],i,!1))}}}function x(e){return"("+e.map(function(e){return e.name}).join(" | ")+")"}function w(e,t){for(var n=!0,r=!0,i=!en.is(e),o=0;o<t.length;o++){var u=t[o];u!==e&&(n=!1),en.is(u)&&(r=!1)}if(n)return e;if(r)return t[t.length-1];for(var a={},c=0;c<t.length;c++){var u=t[c];for(var f in u)(!y.call(a,f)||i||u[f]!==e[f])&&(a[f]=u[f])}return a}function O(e,t){for(var n=Object.getOwnPropertyNames(e),r=!1,i={},o=0;o<n.length;o++){var u=n[o];y.call(t,u)?i[u]=e[u]:r=!0}return r?i:e}function R(e){return e.length>0}var C={};function M(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r];-1!==t.indexOf(i)&&n.push(i)}return n}function E(e){return"AnyType"===e._tag}function k(e){return"LiteralType"===e._tag}function P(e){return"InterfaceType"===e._tag}function F(e){return"UnionType"===e._tag}var W=[];function D(e){if(-1!==W.indexOf(e))return C;if(P(e)||"StrictType"===(i=e)._tag){var t=C;for(var n in e.props){var r=e.props[n];k(r)&&(t===C&&(t={}),t[n]=[r.value])}return t}if("ExactType"===(o=e)._tag||"RefinementType"===(u=e)._tag)return D(e.type);if("IntersectionType"===(a=e)._tag)return e.types.reduce(function(e,t){return function(e,t){if(e===C)return t;if(t===C)return e;var n=Object.assign({},e);for(var r in t)if(y.call(e,r)){var i=M(e[r],t[r]);if(R(i))n[r]=i;else{n=C;break}}else n[r]=t[r];return n}(e,D(t))},C);if(F(e))return e.types.slice(1).reduce(function(e,t){return function(e,t){if(e===C||t===C)return C;var n=C;for(var r in e)y.call(t,r)&&0===M(e[r],t[r]).length&&(n===C&&(n={}),n[r]=e[r].concat(t[r]));return n}(e,D(t))},D(e.types[0]));if("RecursiveType"===(c=e)._tag){W.push(e);var i,o,u,a,c,f=D(e.type);return W.pop(),f}return C}function N(e){var t=D(e[0]),n=Object.keys(t),r=e.length;keys:for(var i=0;i<n.length;i++){var o=function(n){for(var i=t[n].slice(),o=[t[n]],u=1;u<r;u++){var a=D(e[u])[n];if(void 0===a||a.some(function(e){return -1!==i.indexOf(e)}))return"continue-keys";i.push.apply(i,a),o.push(a)}return{value:[n,o]}}(n[i]);if("object"==typeof o)return o.value;if("continue-keys"===o)continue keys}}var L=function(e){function t(){var t=e.call(this,"null",function(e){return null===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NullType",t}return o(t,e),t}(p),A=new L,j=function(e){function t(){var t=e.call(this,"undefined",function(e){return void 0===e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="UndefinedType",t}return o(t,e),t}(p),U=new j,q=function(e){function t(){var t=e.call(this,"void",U.is,U.validate,d)||this;return t._tag="VoidType",t}return o(t,e),t}(p),G=new q,B=function(e){function t(){var t=e.call(this,"unknown",function(e){return!0},l,d)||this;return t._tag="UnknownType",t}return o(t,e),t}(p),Y=new B,V=function(e){function t(){var t=e.call(this,"string",function(e){return"string"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="StringType",t}return o(t,e),t}(p),K=new V,z=function(e){function t(){var t=e.call(this,"number",function(e){return"number"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="NumberType",t}return o(t,e),t}(p),H=new z,Z=function(e){function t(){var t=e.call(this,"bigint",function(e){return"bigint"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BigIntType",t}return o(t,e),t}(p),$=new Z,X=function(e){function t(){var t=e.call(this,"boolean",function(e){return"boolean"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="BooleanType",t}return o(t,e),t}(p),J=new X,Q=function(e){function t(){var t=e.call(this,"UnknownArray",Array.isArray,function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyArrayType",t}return o(t,e),t}(p),ee=new Q,et=function(e){function t(){var t=e.call(this,"UnknownRecord",function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="AnyDictionaryType",t}return o(t,e),t}(p),en=new et,er=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.value=o,u._tag="LiteralType",u}return o(t,e),t}(p);function ei(e,t){void 0===t&&(t=JSON.stringify(e));var n=function(t){return t===e};return new er(t,n,function(t,r){return n(t)?l(e):f(t,r)},d,e)}var eo=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.keys=o,u._tag="KeyofType",u}return o(t,e),t}(p);function eu(e,t){void 0===t&&(t=Object.keys(e).map(function(e){return JSON.stringify(e)}).join(" | "));var n=function(t){return K.is(t)&&y.call(e,t)};return new eo(t,n,function(e,t){return n(e)?l(e):f(e,t)},d,e)}var ea=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.type=o,a.predicate=u,a._tag="RefinementType",a}return o(t,e),t}(p);function ec(e,t,n){return eq(e,t,n)}var ef,el,ep=eq(H,el=function(e){return Number.isInteger(e)},"Int"),ed=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.runDefinition=o,u._tag="RecursiveType",u}return o(t,e),t}(p);function es(e,t){var n,r=function(){return n||((n=t(i)).name=e),n},i=new ed(e,function(e){return r().is(e)},function(e,t){return r().validate(e,t)},function(e){return r().encode(e)},r);return i}Object.defineProperty(ed.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var eh=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ArrayType",u}return o(t,e),t}(p);function em(e,t){return void 0===t&&(t="Array<".concat(e.name,">")),new eh(t,function(t){return ee.is(t)&&t.every(e.is)},function(t,n){var r=ee.validate(t,n);if((0,i.isLeft)(r))return r;for(var o=r.right,u=o.length,a=o,f=[],p=0;p<u;p++){var d=o[p],s=e.validate(d,m(n,String(p),e,d));if((0,i.isLeft)(s))v(f,s.left);else{var h=s.right;h!==d&&(a===o&&(a=o.slice()),a[p]=h)}}return f.length>0?c(f):l(a)},e.encode===d?d:function(t){return t.map(e.encode)},e)}var ev=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="InterfaceType",u}return o(t,e),t}(p);function ey(e,t){void 0===t&&(t=S(e));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new ev(t,function(e){if(en.is(e)){for(var t=0;t<o;t++){var i=n[t],u=e[i];if(void 0===u&&!y.call(e,i)||!r[t].is(u))return!1}return!0}return!1},function(e,t){var a=en.validate(e,t);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var h=n[s],_=p[h],b=r[s],S=b.validate(_,m(t,h,b,_));if((0,i.isLeft)(S))v(d,S.left);else{var T=S.right;T===_&&(void 0!==T||y.call(p,h))||(p===f&&(p=u({},f)),p[h]=T)}}return d.length>0?c(d):l(p)},b(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=r[i].encode;c!==d&&(t[a]=c(e[a]))}return t},e)}var eg=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="PartialType",u}return o(t,e),t}(p);function e_(e,t){void 0===t&&(t=T(S(e)));var n=Object.keys(e),r=n.map(function(t){return e[t]}),o=n.length;return new eg(t,function(t){if(en.is(t)){for(var r=0;r<o;r++){var i=n[r],u=t[i];if(void 0!==u&&!e[i].is(u))return!1}return!0}return!1},function(t,r){var a=en.validate(t,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<o;s++){var h=n[s],y=p[h],_=e[h],b=_.validate(y,m(r,h,_,y));if((0,i.isLeft)(b))void 0!==y&&v(d,b.left);else{var S=b.right;S!==y&&(p===f&&(p=u({},f)),p[h]=S)}}return d.length>0?c(d):l(p)},b(r)?d:function(e){for(var t=u({},e),i=0;i<o;i++){var a=n[i],c=e[a];void 0!==c&&(t[a]=r[i].encode(c))}return t},e)}var eb=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i)||this;return a.domain=o,a.codomain=u,a._tag="DictionaryType",a}return o(t,e),t}(p);function eS(e,t,n){var r,o,u,a,p,s,h,y,_=I(e);return _?(r=Object.keys(_),void 0===(a=n)&&(a="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),p=r.length,new eb(a,function(e){return en.is(e)&&r.every(function(n){return t.is(e[n])})},function(e,n){var o=en.validate(e,n);if((0,i.isLeft)(o))return o;for(var u=o.right,a={},f=[],d=!1,s=0;s<p;s++){var h=r[s],y=u[h],_=t.validate(y,m(n,h,t,y));if((0,i.isLeft)(_))v(f,_.left);else{var b=_.right;d=d||b!==y,a[h]=b}}return f.length>0?c(f):l(d||Object.keys(u).length!==p?a:u)},t.encode===d?d:function(e){for(var n={},i=0;i<p;i++){var o=r[i];n[o]=t.encode(e[o])}return n},e,t)):(s=e,void 0===(y=n)&&(y="{ [K in ".concat(s.name,"]: ").concat(t.name," }")),new eb(y,function(e){return en.is(e)?Object.keys(e).every(function(n){return s.is(n)&&t.is(e[n])}):E(t)&&Array.isArray(e)},function(e,n){if(en.is(e)){for(var r={},o=[],u=Object.keys(e),a=u.length,p=!1,d=0;d<a;d++){var h=u[d],y=e[h],_=s.validate(h,m(n,h,s,h));if((0,i.isLeft)(_))v(o,_.left);else{var b=_.right;p=p||b!==h,h=b;var S=t.validate(y,m(n,h,t,y));if((0,i.isLeft)(S))v(o,S.left);else{var T=S.right;p=p||T!==y,r[h]=T}}}return o.length>0?c(o):l(p?r:e)}return E(t)&&Array.isArray(e)?l(e):f(e,n)},s.encode===d&&t.encode===d?d:function(e){for(var n={},r=Object.keys(e),i=r.length,o=0;o<i;o++){var u=r[o];n[String(s.encode(u))]=t.encode(e[u])}return n},s,t))}var eT=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="UnionType",u}return o(t,e),t}(p);function eI(e,t){void 0===t&&(t=x(e));var n=N(e);if(void 0===n||!(e.length>0))return new eT(t,function(t){return e.some(function(e){return e.is(t)})},function(t,n){for(var r=[],o=0;o<e.length;o++){var u=e[o],a=u.validate(t,m(n,String(o),u,t));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},b(e)?d:function(n){for(var r=0;r<e.length;r++){var i=e[r];if(i.is(n))return i.encode(n)}throw Error("no codec found to encode value in union type ".concat(t))},e);var r=n[0],o=n[1],u=o.length,a=function(e){for(var t=0;t<u;t++)if(-1!==o[t].indexOf(e))return t};return new eB(t,function(t){if(en.is(t)){var n=a(t[r]);return void 0!==n&&e[n].is(t)}return!1},function(t,n){var o=en.validate(t,n);if((0,i.isLeft)(o))return o;var u=o.right,c=a(u[r]);if(void 0===c)return f(t,n);var l=e[c];return l.validate(u,m(n,String(c),l,u))},b(e)?d:function(n){var i=a(n[r]);if(void 0!==i)return e[i].encode(n);throw Error("no codec found to encode value in union codec ".concat(t))},e,r)}var ex=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="IntersectionType",u}return o(t,e),t}(p);function ew(e,t){void 0===t&&(t="(".concat(e.map(function(e){return e.name}).join(" & "),")"));var n=e.length;return new ex(t,function(t){return e.every(function(e){return e.is(t)})},0===e.length?l:function(t,r){for(var o=[],u=[],a=0;a<n;a++){var f=e[a],p=f.validate(t,m(r,String(a),f,t));(0,i.isLeft)(p)?v(u,p.left):o.push(p.right)}return u.length>0?c(u):l(w(t,o))},0===e.length?d:function(t){return w(t,e.map(function(e){return e.encode(t)}))},e)}var eO=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.types=o,u._tag="TupleType",u}return o(t,e),t}(p);function eR(e,t){void 0===t&&(t="[".concat(e.map(function(e){return e.name}).join(", "),"]"));var n=e.length;return new eO(t,function(t){return ee.is(t)&&t.length===n&&e.every(function(e,n){return e.is(t[n])})},function(t,r){var o=ee.validate(t,r);if((0,i.isLeft)(o))return o;for(var u=o.right,a=u.length>n?u.slice(0,n):u,f=[],p=0;p<n;p++){var d=u[p],s=e[p],h=s.validate(d,m(r,String(p),s,d));if((0,i.isLeft)(h))v(f,h.left);else{var y=h.right;y!==d&&(a===u&&(a=u.slice()),a[p]=y)}}return f.length>0?c(f):l(a)},b(e)?d:function(t){return e.map(function(e,n){return e.encode(t[n])})},e)}var eC=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyType",u}return o(t,e),t}(p);function eM(e,t){return void 0===t&&(t="Readonly<".concat(e.name,">")),new eC(t,e.is,e.validate,e.encode,e)}var eE=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ReadonlyArrayType",u}return o(t,e),t}(p);function ek(e,t){void 0===t&&(t="ReadonlyArray<".concat(e.name,">"));var n=em(e);return new eE(t,n.is,n.validate,n.encode,e)}var eP=function(e,t){return eW(ey(e),t)},eF=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.type=o,u._tag="ExactType",u}return o(t,e),t}(p);function eW(e,t){if(void 0===t){var n,r;t=P(e)?"{| ".concat(_(e.props)," |}"):(r=e,"PartialType"===r._tag)?T("{| ".concat(_(e.props)," |}")):"Exact<".concat(e.name,">")}var o=function e(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return e(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,n){return Object.assign(t,e(n))},{})}}(e);return new eF(t,e.is,function(t,n){var r=en.validate(t,n);if((0,i.isLeft)(r))return r;var u=e.validate(t,n);return(0,i.isLeft)(u)?u:(0,i.right)(O(u.right,o))},function(t){return e.encode(O(t,o))},e)}var eD=function(e){function t(){var t=e.call(this,"Function",function(e){return"function"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="FunctionType",t}return o(t,e),t}(p),eN=new eD,eL=function(e){function t(){var t=e.call(this,"never",function(e){return!1},function(e,t){return f(e,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return o(t,e),t}(p),eA=new eL,ej=function(e){function t(){var t=e.call(this,"any",function(e){return!0},l,d)||this;return t._tag="AnyType",t}return o(t,e),t}(p),eU=new ej;function eq(e,t,n){return void 0===n&&(n="(".concat(e.name," | ").concat(s(t),")")),new ea(n,function(n){return e.is(n)&&t(n)},function(n,r){var o=e.validate(n,r);if((0,i.isLeft)(o))return o;var u=o.right;return t(u)?l(u):f(u,r)},e.encode,e,t)}var eG=eq(H,Number.isInteger,"Integer"),eB=function(e){function t(t,n,r,i,o,u){var a=e.call(this,t,n,r,i,o)||this;return a.tag=u,a}return o(t,e),t}(eT),eY=function(e,t,n){void 0===n&&(n=x(t));var r=eI(t,n);return r instanceof eB?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new eB(n,r.is,r.validate,r.encode,t,e))},eV=function(e,t){return{value:e,context:t}},eK=function(e){return[{key:"",type:e}]},ez=en,eH=function(e){function t(){var t=e.call(this,"object",function(e){return null!==e&&"object"==typeof e},function(e,n){return t.is(e)?l(e):f(e,n)},d)||this;return t._tag="ObjectType",t}return o(t,e),t}(p),eZ=new eH,e$=eS,eX=function(e){function t(t,n,r,i,o){var u=e.call(this,t,n,r,i)||this;return u.props=o,u._tag="StrictType",u}return o(t,e),t}(p);function eJ(e){return e}function eQ(e){return function(){return e}}},77883:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var n="html";t.FORMAT_HTML=n;var r="plain";t.FORMAT_PLAIN=r,t.FORMATS=[n,r]},779:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.UNIT_WORDS=t.UNIT_WORD=t.UNIT_SENTENCES=t.UNIT_SENTENCE=t.UNIT_PARAGRAPHS=t.UNIT_PARAGRAPH=t.UNITS=void 0;var n="words";t.UNIT_WORDS=n;var r="word";t.UNIT_WORD=r;var i="sentences";t.UNIT_SENTENCES=i;var o="sentence";t.UNIT_SENTENCE=o;var u="paragraphs";t.UNIT_PARAGRAPHS=u;var a="paragraph";t.UNIT_PARAGRAPH=a,t.UNITS=[n,r,i,o,u,a]},90783:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WORDS=void 0,t.WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"]},72788:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),t.loremIpsum=void 0;var r,i=n(77883),o=n(29688),u=n(90783),a=(r=n(55548),r&&r.__esModule?r:{default:r}),c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.count,n=void 0===t?1:t,r=e.format,c=void 0===r?i.FORMAT_PLAIN:r,f=e.paragraphLowerBound,l=e.paragraphUpperBound,p=e.random,d=e.sentenceLowerBound,s=e.sentenceUpperBound,h=e.units,m=void 0===h?o.UNIT_SENTENCES:h,v=e.words,y=void 0===v?u.WORDS:v,_=e.suffix,b=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:y,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===_?"":_);switch(m){case o.UNIT_PARAGRAPHS:case o.UNIT_PARAGRAPH:return b.generateParagraphs(n);case o.UNIT_SENTENCES:case o.UNIT_SENTENCE:return b.generateSentences(n);case o.UNIT_WORDS:case o.UNIT_WORD:return b.generateWords(n);default:return""}};t.loremIpsum=c},55548:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=n(77883),o=n(779),u=(r=n(40928),r&&r.__esModule?r:{default:r}),a=n(23749);function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){var e,t,n;function r(){var e,t,n,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.FORMAT_PLAIN,c=arguments.length>2?arguments[2]:void 0;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.format=a,this.suffix=c,e=this,n=void 0,(t="generator")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,-1===i.FORMATS.indexOf(a.toLowerCase()))throw Error("".concat(a," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new u.default(o)}return t=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?o.LINE_ENDINGS.WIN32:o.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(e){return this.format===i.FORMAT_HTML?"<p>".concat(e,"</p>"):e}},{key:"formatStrings",value:function(e){var t=this;return e.map(function(e){return t.formatString(e)})}},{key:"generateWords",value:function(e){return this.formatString(this.generator.generateRandomWords(e))}},{key:"generateSentences",value:function(e){return this.formatString(this.generator.generateRandomParagraph(e))}},{key:"generateParagraphs",value:function(e){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(e,t)).join(this.getLineEnding())}}],c(r.prototype,t),n&&c(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}();t.default=f},40928:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(90783),i=n(23749);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){var e,t,n;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sentencesPerParagraph,n=void 0===t?{max:7,min:3}:t,i=e.wordsPerSentence,o=void 0===i?{max:15,min:5}:i,c=e.random,f=(e.seed,e.words),l=void 0===f?r.WORDS:f;if(!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),u(this,"sentencesPerParagraph",void 0),u(this,"wordsPerSentence",void 0),u(this,"random",void 0),u(this,"words",void 0),n.min>n.max)throw Error("Minimum number of sentences per paragraph (".concat(n.min,") cannot exceed maximum (").concat(n.max,")."));if(o.min>o.max)throw Error("Minimum number of words per sentence (".concat(o.min,") cannot exceed maximum (").concat(o.max,")."));this.sentencesPerParagraph=n,this.words=l,this.wordsPerSentence=o,this.random=c||Math.random}return t=[{key:"generateRandomInteger",value:function(e,t){return Math.floor(this.random()*(t-e+1)+e)}},{key:"generateRandomWords",value:function(e){var t=this,n=this.wordsPerSentence,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.pluckRandomWord()," ").concat(e)},"").trim()}},{key:"generateRandomSentence",value:function(e){return"".concat((0,i.capitalize)(this.generateRandomWords(e)),".")}},{key:"generateRandomParagraph",value:function(e){var t=this,n=this.sentencesPerParagraph,r=n.min,o=n.max,u=e||this.generateRandomInteger(r,o);return(0,i.makeArrayOfLength)(u).reduce(function(e,n){return"".concat(t.generateRandomSentence()," ").concat(e)},"").trim()}},{key:"pluckRandomWord",value:function(){var e=this.words.length-1,t=this.generateRandomInteger(0,e);return this.words[t]}}],o(a.prototype,t),n&&o(a,n),Object.defineProperty(a,"prototype",{writable:!1}),a}();t.default=a},79998:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){var t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)};t.default=n},23749:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"isReactNative",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"makeArrayOfLength",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"makeArrayOfStrings",{enumerable:!0,get:function(){return c.default}});var r=f(n(79998)),i=f(n(18077)),o=f(n(66002)),u=f(n(89759)),a=f(n(13385)),c=f(n(74523));function f(e){return e&&e.__esModule?e:{default:e}}},18077:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){return!!e.exports};t.default=n},66002:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=!1;try{e="ReactNative"===navigator.product}catch(t){e=!1}return e};t.default=n},89759:function(e,t,n){var r=n(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(36021),o=function(){var e=!1;try{e=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(t){e=!1}return e};t.default=o},13385:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(e)).map(function(e,t){return t})};t.default=n},74523:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(13385),r&&r.__esModule?r:{default:r}),o=function(e,t){return(0,i.default)(e).map(function(){return t()})};t.default=o},58831:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(64379),a=function(e){var t=e.childRect,n=e.popoverRect,a=e.position,c=e.arrowColor,f=e.arrowSize,l=e.arrowClassName,p=e.arrowStyle,d=e.className,s=e.children,h=e.style,m=u.useArrowContainer({childRect:t,popoverRect:n,position:a,arrowColor:c,arrowSize:f}),v=m.arrowContainerStyle,y=m.arrowStyle,_=o.useMemo(function(){return r(r({},v),h)},[v,h]),b=o.useMemo(function(){return r(r({},y),p)},[y,p]);return i.jsxs("div",r({className:d,style:_},{children:[i.jsx("div",{style:b,className:l},void 0),s]}),void 0)};t.ArrowContainer=a},19909:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Popover=t.usePopover=t.ArrowContainer=t.useArrowContainer=void 0;var i=n(52322),o=n(2784),u=n(44635),a=n(27574),c=n(61462);Object.defineProperty(t,"usePopover",{enumerable:!0,get:function(){return c.usePopover}});var f=n(70414),l=n(64379);Object.defineProperty(t,"useArrowContainer",{enumerable:!0,get:function(){return l.useArrowContainer}});var p=n(58831);Object.defineProperty(t,"ArrowContainer",{enumerable:!0,get:function(){return p.ArrowContainer}});var d=["top","left","right","bottom"],s=o.forwardRef(function(e,t){var n=e.isOpen,l=e.children,p=e.content,s=e.positions,h=e.align,m=void 0===h?"center":h,v=e.padding,y=void 0===v?0:v,_=e.reposition,b=void 0===_||_,S=e.parentElement,T=void 0===S?window.document.body:S,I=e.boundaryElement,x=e.containerClassName,w=e.containerStyle,O=e.contentLocation,R=e.boundaryInset,C=void 0===R?0:R,M=e.onClickOutside,E=e.clickOutsideCapture,k=void 0!==E&&E,P=f.useMemoizedArray(void 0===s?d:s),F=o.useRef(!1),W=o.useRef(),D=o.useRef(),N=o.useRef(b),L=o.useRef(),A=o.useState({align:m,nudgedLeft:0,nudgedTop:0,position:P[0],padding:y,childRect:a.EMPTY_CLIENT_RECT,popoverRect:a.EMPTY_CLIENT_RECT,parentRect:a.EMPTY_CLIENT_RECT,boundaryRect:a.EMPTY_CLIENT_RECT,boundaryInset:C,violations:a.EMPTY_CLIENT_RECT,hasViolations:!1}),j=A[0],U=A[1],q=o.useCallback(function(e){return U(e)},[]),G=c.usePopover({isOpen:n,childRef:L,containerClassName:void 0===x?"react-tiny-popover-container":x,parentElement:T,boundaryElement:void 0===I?T:I,contentLocation:O,positions:P,align:m,padding:y,boundaryInset:C,reposition:b,onPositionPopover:q}),B=G.positionPopover,Y=G.popoverRef,V=G.scoutRef;o.useLayoutEffect(function(){var e=!0,t=function(){var r,i;if(n&&e){var o=null===(r=null==L?void 0:L.current)||void 0===r?void 0:r.getBoundingClientRect(),u=null===(i=null==Y?void 0:Y.current)||void 0===i?void 0:i.getBoundingClientRect();null==o||null==u||a.rectsAreEqual(o,{top:j.childRect.top,left:j.childRect.left,width:j.childRect.width,height:j.childRect.height,bottom:j.childRect.top+j.childRect.height,right:j.childRect.left+j.childRect.width})&&u.width===j.popoverRect.width&&u.height===j.popoverRect.height&&j.padding===y&&j.align===m&&P===W.current&&O===D.current&&b===N.current||B(),P!==W.current&&(W.current=P),O!==D.current&&(D.current=O),b!==N.current&&(N.current=b),e&&window.requestAnimationFrame(t)}F.current=n};return window.requestAnimationFrame(t),function(){e=!1}},[m,O,n,y,Y,j.align,j.childRect.height,j.childRect.left,j.childRect.top,j.childRect.width,j.padding,j.popoverRect.height,j.popoverRect.width,B,P,b,]),o.useEffect(function(){var e=Y.current;return Object.assign(e.style,w),function(){Object.keys(null!=w?w:{}).forEach(function(t){return delete e.style[t]})}},[w,n,Y]);var K=o.useCallback(function(e){var t,r;!n||(null===(t=Y.current)||void 0===t?void 0:t.contains(e.target))||(null===(r=L.current)||void 0===r?void 0:r.contains(e.target))||null==M||M(e)},[n,M,Y]),z=o.useCallback(function(){L.current&&window.requestAnimationFrame(function(){return B()})},[B]);o.useEffect(function(){var e=T.ownerDocument.body;return e.addEventListener("click",K,k),e.addEventListener("contextmenu",K,k),e.addEventListener("resize",z),function(){e.removeEventListener("click",K,k),e.removeEventListener("contextmenu",K,k),e.removeEventListener("resize",z)}},[k,K,z,T]);var H=o.useCallback(function(e){L.current=e,null!=t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))},[t]);return i.jsxs(i.Fragment,{children:[o.cloneElement(l,{ref:H}),n?i.jsx(u.PopoverPortal,r({element:Y.current,scoutElement:V.current,container:T},{children:"function"==typeof p?p(j):p}),void 0):null]},void 0)});t.Popover=o.forwardRef(function(e,t){return"undefined"==typeof window?e.children:i.jsx(s,r({},e,{ref:t}),void 0)})},44635:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PopoverPortal=void 0;var r=n(2784),i=n(28316),o=function(e){var t=e.container,n=e.element,o=e.scoutElement,u=e.children;return r.useLayoutEffect(function(){return t.appendChild(n),t.appendChild(o),function(){t.removeChild(n),t.removeChild(o)}},[t,n,o]),i.createPortal(u,n)};t.PopoverPortal=o},64379:function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.useArrowContainer=void 0;var i=n(2784),o=function(e){var t=e.childRect,n=e.popoverRect,o=e.position,u=e.arrowSize,a=e.arrowColor,c=i.useMemo(function(){return{padding:u}},[u]),f=i.useMemo(function(){return r({position:"absolute"},function(){var e=2*u,r=t.top-n.top+t.height/2-e/2,i=t.left-n.left+t.width/2-e/2,c=n.width-u,f=n.height-u;switch(i=(i=i<u?u:i)+e>c?c-e:i,r=Number.isNaN(r=(r=r<u?u:r)+e>f?f-e:r)?0:r,i=Number.isNaN(i)?0:i,o){case"right":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderRight:u+"px solid "+a,left:0,top:r};case"left":return{borderTop:u+"px solid transparent",borderBottom:u+"px solid transparent",borderLeft:u+"px solid "+a,right:0,top:r};case"bottom":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderBottom:u+"px solid "+a,top:0,left:i};case"top":return{borderLeft:u+"px solid transparent",borderRight:u+"px solid transparent",borderTop:u+"px solid "+a,bottom:0,left:i};default:return{display:"hidden"}}}())},[a,u,t.height,t.left,t.top,t.width,n.height,n.left,n.top,n.width,o,]);return{arrowContainerStyle:c,arrowStyle:f}};t.useArrowContainer=o},79601:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useElementRef=void 0;var r=n(2784),i=n(27574),o=function(e,t){var n=r.useRef(),o=r.useMemo(function(){return i.createContainer(t,e)},[e,t]);return n.current=o,n};t.useElementRef=o},70414:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useMemoizedArray=void 0;var r=n(2784),i=function(e){var t=r.useRef(e);return r.useMemo(function(){if(t.current===e)return t.current;if(t.current.length!==e.length)return t.current=e,e;for(var n=0;n<e.length;n+=1)if(e[n]!==t.current[n])return t.current=e,e;return t.current},[e])};t.useMemoizedArray=i},61462:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.usePopover=void 0;var r=n(2784),i=n(27574),o=n(79601),u={position:"fixed",overflow:"visible",top:"0px",left:"0px"},a={position:"fixed",top:"0px",left:"0px",width:"0px",height:"0px",visibility:"hidden"},c=function(e){var t=e.isOpen,n=e.childRef,c=e.positions,f=e.containerClassName,l=e.parentElement,p=e.contentLocation,d=e.align,s=e.padding,h=e.reposition,m=e.boundaryInset,v=e.boundaryElement,y=e.onPositionPopover,_=o.useElementRef(f,u),b=o.useElementRef("react-tiny-popover-scout",a),S=r.useCallback(function(e){var r,o,u=void 0===e?{}:e,a=u.positionIndex,f=void 0===a?0:a,T=u.parentRect,I=void 0===T?l.getBoundingClientRect():T,x=u.childRect,w=void 0===x?null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.getBoundingClientRect():x,O=u.scoutRect,R=void 0===O?null===(o=null==b?void 0:b.current)||void 0===o?void 0:o.getBoundingClientRect():O,C=u.popoverRect,M=void 0===C?_.current.getBoundingClientRect():C,E=u.boundaryRect,k=void 0===E?v===l?I:v.getBoundingClientRect():E;if(w&&I&&t){if(p){var P="function"==typeof p?p({childRect:w,popoverRect:M,parentRect:I,boundaryRect:k,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1}):p,F=P.top,W=P.left,D=Math.round(I.left+W-R.left),N=Math.round(I.top+F-R.top);_.current.style.transform="translate("+D+"px, "+N+"px)",y({childRect:w,popoverRect:M,parentRect:I,boundaryRect:k,padding:s,nudgedTop:0,nudgedLeft:0,boundaryInset:m,violations:i.EMPTY_CLIENT_RECT,hasViolations:!1});return}var L=f===c.length,A=L?c[0]:c[f],j=i.getNewPopoverRect({childRect:w,popoverRect:M,boundaryRect:k,position:A,align:d,padding:s,reposition:h},m),U=j.rect;if(j.boundaryViolation&&h&&!L){S({positionIndex:f+1,childRect:w,popoverRect:M,parentRect:I,boundaryRect:k});return}var q=U.top,G=U.left,B=U.width,Y=U.height,V=i.getNudgedPopoverRect(U,k,m),K=V.left,z=V.top,H=q,Z=G;h&&!L&&(H=z,Z=K),H=Math.round(H-R.top),Z=Math.round(Z-R.left),_.current.style.transform="translate("+Z+"px, "+H+"px)";var $={top:k.top+m-H,left:k.left+m-Z,right:Z+B-k.right+m,bottom:H+Y-k.bottom+m};y({childRect:w,popoverRect:{top:H,left:Z,width:B,height:Y,right:Z+B,bottom:H+Y},parentRect:I,boundaryRect:k,position:A,align:d,padding:s,nudgedTop:z-q,nudgedLeft:K-G,boundaryInset:m,violations:{top:$.top<=0?0:$.top,left:$.left<=0?0:$.left,right:$.right<=0?0:$.right,bottom:$.bottom<=0?0:$.bottom},hasViolations:$.top>0||$.left>0||$.right>0||$.bottom>0})}},[l,n,b,_,v,t,p,c,d,s,h,m,y,]);return{positionPopover:S,popoverRef:_,scoutRef:b}};t.usePopover=c},27574:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getNudgedPopoverRect=t.getNewPopoverRect=t.popoverRectForPosition=t.createContainer=t.rectsAreEqual=t.EMPTY_CLIENT_RECT=void 0,t.EMPTY_CLIENT_RECT={top:0,left:0,bottom:0,height:0,right:0,width:0};var n=function(e,t){return e===t||(null==e?void 0:e.bottom)===(null==t?void 0:t.bottom)&&(null==e?void 0:e.height)===(null==t?void 0:t.height)&&(null==e?void 0:e.left)===(null==t?void 0:t.left)&&(null==e?void 0:e.right)===(null==t?void 0:t.right)&&(null==e?void 0:e.top)===(null==t?void 0:t.top)&&(null==e?void 0:e.width)===(null==t?void 0:t.width)};t.rectsAreEqual=n;var r=function(e,t){var n=window.document.createElement("div");return t&&(n.className=t),Object.assign(n.style,e),n};t.createContainer=r;var i=function(e,t,n,r,i){var o,u,a=t.left+t.width/2,c=t.top+t.height/2,f=n.width,l=n.height;switch(e){case"left":o=c-l/2,u=t.left-r-f,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;case"bottom":o=t.bottom+r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f);break;case"right":o=c-l/2,u=t.right+r,"start"===i&&(o=t.top),"end"===i&&(o=t.bottom-l);break;default:o=t.top-l-r,u=a-f/2,"start"===i&&(u=t.left),"end"===i&&(u=t.right-f)}return{top:o,left:u,width:f,height:l,right:u+f,bottom:o+l}};t.popoverRectForPosition=i;var o=function(e,n){var r=e.position,i=e.align,o=e.childRect,u=e.popoverRect,a=e.boundaryRect,c=e.padding,f=e.reposition,l=t.popoverRectForPosition(r,o,u,c,i),p=f&&("top"===r&&l.top<a.top+n||"left"===r&&l.left<a.left+n||"right"===r&&l.right>a.right-n||"bottom"===r&&l.bottom>a.bottom-n);return{rect:l,boundaryViolation:p}};t.getNewPopoverRect=o;var u=function(e,t,n){var r=t.top+n,i=t.left+n,o=t.right-n,u=t.bottom-n,a=e.top<r?r:e.top;a=a+e.height>u?u-e.height:a;var c=e.left<i?i:e.left;return{top:a,left:c=c+e.width>o?o-e.width:c,width:e.width,height:e.height,right:c+e.width,bottom:a+e.height}};t.getNudgedPopoverRect=u},80734:function(e,t,n){/*!
|
|
6
|
+
* statuses
|
|
7
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
8
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
9
|
+
* MIT Licensed
|
|
10
|
+
*/ var r,i,o,u=n(1710);function a(e){if(!Object.prototype.hasOwnProperty.call(c.message,e))throw Error("invalid status code: "+e);return c.message[e]}function c(e){if("number"==typeof e)return a(e);if("string"!=typeof e)throw TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(c.code,t))throw Error('invalid status message: "'+e+'"');return c.code[t]}(e):a(t)}e.exports=c,c.message=u,c.code=(r=u,i={},Object.keys(r).forEach(function(e){var t=r[e],n=Number(e);i[t.toLowerCase()]=n}),i),c.codes=(o=u,Object.keys(o).map(function(e){return Number(e)})),c.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},c.empty={204:!0,205:!0,304:!0},c.retry={502:!0,503:!0,504:!0}},60130:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return c.default}});var r=d(n(27343)),i=d(n(46076)),o=d(n(85854)),u=d(n(95899)),a=d(n(15384)),c=d(n(25791)),f=d(n(77888)),l=d(n(49926)),p=d(n(9964));function d(e){return e&&e.__esModule?e:{default:e}}},2763:function(e,t){function n(e){return(e+64>>>9<<4)+14+1}function r(e,t){let n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,n,i,o,u){var a,c;return r((a=r(r(t,e),r(i,u)))<<o|a>>>32-o,n)}function o(e,t,n,r,o,u,a){return i(t&n|~t&r,e,t,o,u,a)}function u(e,t,n,r,o,u,a){return i(t&r|n&~r,e,t,o,u,a)}function a(e,t,n,r,o,u,a){return i(t^n^r,e,t,o,u,a)}function c(e,t,n,r,o,u,a){return i(n^(t|~r),e,t,o,u,a)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var f=function(e){if("string"==typeof e){let t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let i=0;i<t.length;++i)e[i]=t.charCodeAt(i)}return function(e){let t=[],n=32*e.length,r="0123456789abcdef";for(let i=0;i<n;i+=8){let o=e[i>>5]>>>i%32&255,u=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(u)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[n(t)-1]=t;let i=1732584193,f=-271733879,l=-1732584194,p=271733878;for(let d=0;d<e.length;d+=16){let s=i,h=f,m=l,v=p;i=o(i,f,l,p,e[d],7,-680876936),p=o(p,i,f,l,e[d+1],12,-389564586),l=o(l,p,i,f,e[d+2],17,606105819),f=o(f,l,p,i,e[d+3],22,-1044525330),i=o(i,f,l,p,e[d+4],7,-176418897),p=o(p,i,f,l,e[d+5],12,1200080426),l=o(l,p,i,f,e[d+6],17,-1473231341),f=o(f,l,p,i,e[d+7],22,-45705983),i=o(i,f,l,p,e[d+8],7,1770035416),p=o(p,i,f,l,e[d+9],12,-1958414417),l=o(l,p,i,f,e[d+10],17,-42063),f=o(f,l,p,i,e[d+11],22,-1990404162),i=o(i,f,l,p,e[d+12],7,1804603682),p=o(p,i,f,l,e[d+13],12,-40341101),l=o(l,p,i,f,e[d+14],17,-1502002290),f=o(f,l,p,i,e[d+15],22,1236535329),i=u(i,f,l,p,e[d+1],5,-165796510),p=u(p,i,f,l,e[d+6],9,-1069501632),l=u(l,p,i,f,e[d+11],14,643717713),f=u(f,l,p,i,e[d],20,-373897302),i=u(i,f,l,p,e[d+5],5,-701558691),p=u(p,i,f,l,e[d+10],9,38016083),l=u(l,p,i,f,e[d+15],14,-660478335),f=u(f,l,p,i,e[d+4],20,-405537848),i=u(i,f,l,p,e[d+9],5,568446438),p=u(p,i,f,l,e[d+14],9,-1019803690),l=u(l,p,i,f,e[d+3],14,-187363961),f=u(f,l,p,i,e[d+8],20,1163531501),i=u(i,f,l,p,e[d+13],5,-1444681467),p=u(p,i,f,l,e[d+2],9,-51403784),l=u(l,p,i,f,e[d+7],14,1735328473),f=u(f,l,p,i,e[d+12],20,-1926607734),i=a(i,f,l,p,e[d+5],4,-378558),p=a(p,i,f,l,e[d+8],11,-2022574463),l=a(l,p,i,f,e[d+11],16,1839030562),f=a(f,l,p,i,e[d+14],23,-35309556),i=a(i,f,l,p,e[d+1],4,-1530992060),p=a(p,i,f,l,e[d+4],11,1272893353),l=a(l,p,i,f,e[d+7],16,-155497632),f=a(f,l,p,i,e[d+10],23,-1094730640),i=a(i,f,l,p,e[d+13],4,681279174),p=a(p,i,f,l,e[d],11,-358537222),l=a(l,p,i,f,e[d+3],16,-722521979),f=a(f,l,p,i,e[d+6],23,76029189),i=a(i,f,l,p,e[d+9],4,-640364487),p=a(p,i,f,l,e[d+12],11,-421815835),l=a(l,p,i,f,e[d+15],16,530742520),f=a(f,l,p,i,e[d+2],23,-995338651),i=c(i,f,l,p,e[d],6,-198630844),p=c(p,i,f,l,e[d+7],10,1126891415),l=c(l,p,i,f,e[d+14],15,-1416354905),f=c(f,l,p,i,e[d+5],21,-57434055),i=c(i,f,l,p,e[d+12],6,1700485571),p=c(p,i,f,l,e[d+3],10,-1894986606),l=c(l,p,i,f,e[d+10],15,-1051523),f=c(f,l,p,i,e[d+1],21,-2054922799),i=c(i,f,l,p,e[d+8],6,1873313359),p=c(p,i,f,l,e[d+15],10,-30611744),l=c(l,p,i,f,e[d+6],15,-1560198380),f=c(f,l,p,i,e[d+13],21,1309151649),i=c(i,f,l,p,e[d+4],6,-145523070),p=c(p,i,f,l,e[d+11],10,-1120210379),l=c(l,p,i,f,e[d+2],15,718787259),f=c(f,l,p,i,e[d+9],21,-343485551),i=r(i,s),f=r(f,h),l=r(l,m),p=r(p,v)}return[i,f,l,p]}(function(e){if(0===e.length)return[];let t=8*e.length,r=new Uint32Array(n(t));for(let i=0;i<t;i+=8)r[i>>5]|=(255&e[i/8])<<i%32;return r}(e),8*e.length))};t.default=f},74267:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;let n="undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);t.default={randomUUID:n}},15384:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},9964:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};t.default=o},76678:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},41874:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&!(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(r)};let n,r=new Uint8Array(16)},13254:function(e,t){function n(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function r(e,t){return e<<t|e>>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(e){let t=[1518500249,1859775393,2400959708,3395469782],i=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){let o=unescape(encodeURIComponent(e));e=[];for(let u=0;u<o.length;++u)e.push(o.charCodeAt(u))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);let a=e.length/4+2,c=Math.ceil(a/16),f=Array(c);for(let l=0;l<c;++l){let p=new Uint32Array(16);for(let d=0;d<16;++d)p[d]=e[64*l+4*d]<<24|e[64*l+4*d+1]<<16|e[64*l+4*d+2]<<8|e[64*l+4*d+3];f[l]=p}f[c-1][14]=(e.length-1)*8/4294967296,f[c-1][14]=Math.floor(f[c-1][14]),f[c-1][15]=(e.length-1)*8&4294967295;for(let s=0;s<c;++s){let h=new Uint32Array(80);for(let m=0;m<16;++m)h[m]=f[s][m];for(let v=16;v<80;++v)h[v]=r(h[v-3]^h[v-8]^h[v-14]^h[v-16],1);let y=i[0],_=i[1],b=i[2],S=i[3],T=i[4];for(let I=0;I<80;++I){let x=Math.floor(I/20),w=r(y,5)+n(x,_,b,S)+T+t[x]+h[I]>>>0;T=S,S=b,b=r(_,30)>>>0,_=y,y=w}i[0]=i[0]+y>>>0,i[1]=i[1]+_>>>0,i[2]=i[2]+b>>>0,i[3]=i[3]+S>>>0,i[4]=i[4]+T>>>0}return[i[0]>>24&255,i[0]>>16&255,i[0]>>8&255,255&i[0],i[1]>>24&255,i[1]>>16&255,i[1]>>8&255,255&i[1],i[2]>>24&255,i[2]>>16&255,i[2]>>8&255,255&i[2],i[3]>>24&255,i[3]>>16&255,i[3]>>8&255,255&i[3],i[4]>>24&255,i[4]>>16&255,i[4]>>8&255,255&i[4]]};t.default=i},49926:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=a;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r});let o=[];for(let u=0;u<256;++u)o.push((u+256).toString(16).slice(1));function a(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}var c=function(e,t=0){let n=a(e,t);if(!(0,i.default)(n))throw TypeError("Stringified UUID is invalid");return n};t.default=c},27343:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(41874),r&&r.__esModule?r:{default:r}),o=n(49926);let u,a,c=0,f=0;var l=function(e,t,n){let r=t&&n||0,l=t||Array(16),p=(e=e||{}).node||u,d=void 0!==e.clockseq?e.clockseq:a;if(null==p||null==d){let s=e.random||(e.rng||i.default)();null==p&&(p=u=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==d&&(d=a=(s[6]<<8|s[7])&16383)}let h=void 0!==e.msecs?e.msecs:Date.now(),m=void 0!==e.nsecs?e.nsecs:f+1,v=h-c+(m-f)/1e4;if(v<0&&void 0===e.clockseq&&(d=d+1&16383),(v<0||h>c)&&void 0===e.nsecs&&(m=0),m>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");c=h,f=m,a=d,h+=122192928e5;let y=((268435455&h)*1e4+m)%4294967296;l[r++]=y>>>24&255,l[r++]=y>>>16&255,l[r++]=y>>>8&255,l[r++]=255&y;let _=h/4294967296*1e4&268435455;l[r++]=_>>>8&255,l[r++]=255&_,l[r++]=_>>>24&15|16,l[r++]=_>>>16&255,l[r++]=d>>>8|128,l[r++]=255&d;for(let b=0;b<6;++b)l[r+b]=p[b];return t||(0,o.unsafeStringify)(l)};t.default=l},46076:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(2763));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v3",48,i.default);t.default=u},18679:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function r(e,r,u,a){var c;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=(0,o.default)(r)),(null===(c=r)||void 0===c?void 0:c.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let f=new Uint8Array(16+e.length);if(f.set(r),f.set(e,r.length),(f=n(f))[6]=15&f[6]|t,f[8]=63&f[8]|128,u){a=a||0;for(let l=0;l<16;++l)u[a+l]=f[l];return u}return(0,i.unsafeStringify)(f)}try{r.name=e}catch(c){}return r.DNS=u,r.URL=a,r};var r,i=n(49926),o=(r=n(9964),r&&r.__esModule?r:{default:r});let u="6ba7b810-9dad-11d1-80b4-00c04fd430c8";t.DNS=u;let a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";t.URL=a},85854:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n(74267)),i=u(n(41874)),o=n(49926);function u(e){return e&&e.__esModule?e:{default:e}}var a=function(e,t,n){if(r.default.randomUUID&&!t&&!e)return r.default.randomUUID();e=e||{};let u=e.random||(e.rng||i.default)();if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){n=n||0;for(let a=0;a<16;++a)t[n+a]=u[a];return t}return(0,o.unsafeStringify)(u)};t.default=a},95899:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n(18679)),i=o(n(13254));function o(e){return e&&e.__esModule?e:{default:e}}let u=(0,r.default)("v5",80,i.default);t.default=u},77888:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(76678),r&&r.__esModule?r:{default:r}),o=function(e){return"string"==typeof e&&i.default.test(e)};t.default=o},25791:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(77888),r&&r.__esModule?r:{default:r}),o=function(e){if(!(0,i.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)};t.default=o},87783:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return O},__asyncGenerator:function(){return w},__asyncValues:function(){return R},__await:function(){return x},__awaiter:function(){return h},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return W},__classPrivateFieldSet:function(){return F},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return C},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return b},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return S},__spreadArray:function(){return I},__spreadArrays:function(){return T},__values:function(){return _}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function S(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function T(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function I(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof x?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function O(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:x(e[r](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=_(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return M(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function W(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:h,__generator:m,__createBinding:v,__exportStar:y,__values:_,__read:b,__spread:S,__spreadArrays:T,__spreadArray:I,__await:x,__asyncGenerator:w,__asyncDelegator:O,__asyncValues:R,__makeTemplateObject:C,__importStar:E,__importDefault:k,__classPrivateFieldGet:P,__classPrivateFieldSet:F,__classPrivateFieldIn:W}},78948:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return O},__asyncGenerator:function(){return w},__asyncValues:function(){return R},__await:function(){return x},__awaiter:function(){return h},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return W},__classPrivateFieldSet:function(){return F},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return C},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return b},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return S},__spreadArray:function(){return I},__spreadArrays:function(){return T},__values:function(){return _}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function S(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function T(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function I(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof x?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function O(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:x(e[r](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=_(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return M(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function W(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:h,__generator:m,__createBinding:v,__exportStar:y,__values:_,__read:b,__spread:S,__spreadArrays:T,__spreadArray:I,__await:x,__asyncGenerator:w,__asyncDelegator:O,__asyncValues:R,__makeTemplateObject:C,__importStar:E,__importDefault:k,__classPrivateFieldGet:P,__classPrivateFieldSet:F,__classPrivateFieldIn:W}},16:function(e,t,n){n.d(t,{SH:function(){return H}}),(r=o||(o={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=u||(u={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,o,u,a,c,f,l,p,d,s,h=n(80734);(d=a||(a={})).Connect="connect",(s=c||(c={})).Ready="ready";var m=Object.defineProperty,v=(e,t,n)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>(v(e,"symbol"!=typeof t?t+"":t,n),n);class _ extends Error{constructor(e){super(e.msg),y(this,"response"),this.response=e}}class b extends Error{constructor(){super("Connection timed out")}}class S extends Error{constructor(e){super("Too many concurrent requests"),y(this,"request"),this.request=e}}class T extends Error{constructor(e){super(`Request \`${e.requestID}\` timed out`),y(this,"request"),this.request=e}}class I extends Error{}class x extends Error{constructor(){super("Port is not set")}}class w extends Error{constructor(){super("Channel is not set")}}let O=0,R=(e,t,n="")=>({requestID:`${n}${O++}`,type:e,data:t}),C=(e,t,n=200)=>{var r;if(n>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=h.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},M=(e,t,n=400)=>{var r;if(n<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${n}\``);return{requestID:e,status:n,msg:(null==(r=h.message[n])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},E=e=>{if("object"!=typeof e||null===e)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof e}\``);if(Object.keys(e).every(e=>["requestID","type","data","status","msg","error"].includes(e))){if("string"!=typeof e.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof e.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(e)}`);return e},k=e=>"type"in e,P=e=>!("type"in e),F=e=>P(e)&&!("error"in e);var W=Object.defineProperty,D=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t,n)=>(D(e,"symbol"!=typeof t?t+"":t,n),n);let L={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class A{constructor(e,t){N(this,"requestHandlers"),N(this,"options"),N(this,"_port",null),N(this,"_pendingRequests",new Map),this.requestHandlers=e,this.options={...L,...t}}get port(){if(!this._port)throw new x;return this._port}set port(e){this._port&&(this._port.onmessage=null),this._port=e,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(e,t){return R(e,t,this.options.requestIDPrefix)}async onMessage(e){this.options.debug&&console.debug(e.data);try{let t=E(e.data);if(k(t)){if(this.requestHandlers[t.type])try{let n=await this.requestHandlers[t.type](t,{success:C.bind(this,t.requestID),error:M.bind(this,t.requestID)});this.postResponse(n)}catch(r){this.postResponse(M(t.requestID,r,500))}else this.postResponse(M(t.requestID,void 0,501))}else this._pendingRequests.has(t.requestID)?(this._pendingRequests.get(t.requestID)(t),this._pendingRequests.delete(t.requestID)):console.error(`Unknown request ID received in response: ${JSON.stringify(t)}`)}catch(i){if(i instanceof TypeError)console.warn(i.message);else throw i}}postRequest(e,t=e=>this.port.postMessage(e),n={}){if(this.options.debug&&console.debug(e),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new S(e);return new Promise((r,i)=>{let o=setTimeout(()=>{this._pendingRequests.has(e.requestID)&&this._pendingRequests.delete(e.requestID),i(new T(e))},n.timeout||this.options.defaultTimeout);this._pendingRequests.set(e.requestID,e=>{clearTimeout(o),F(e)?r(e):i(new _(e))}),t(e)})}postResponse(e,t=e=>this.port.postMessage(e)){return this.options.debug&&console.debug(e),t(e),e}}var j=Object.defineProperty,U=(e,t,n)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,q=(e,t,n)=>(U(e,"symbol"!=typeof t?t+"":t,n),n);let G={connectTimeout:2e4,requestIDPrefix:"emitter-"};class B extends A{constructor(e,t,n){super(t,{...G,...n}),q(this,"_target"),q(this,"_channel",null),q(this,"_receiverReady",""),q(this,"_receiverReadyCallback",null),q(this,"_connected",!1),this._target=e,window.addEventListener("message",e=>{this._onPublicMessage(e)})}get channel(){if(!this._channel)throw new w;return this._channel}set channel(e){this._channel=e,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(e={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,n)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return n(Error("Target window is not available"));let r=setTimeout(()=>{n(new b)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let n=this.createRequestMessage(a.Connect,e),i=await this.postRequest(n,e=>{this._target.contentWindow.postMessage(e,"*",[this.channel.port2])});this.postResponse(C(this._receiverReady,void 0),e=>{this._target.contentWindow.postMessage(e,"*")}),this._connected=!0,t(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(e){if(e.source===this._target.contentWindow)try{let t=E(e.data);if(k(t)){if(this.options.debug&&console.debug(e.data),t.type===c.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let n=this._receiverReadyCallback();this._receiverReadyCallback=null,await n}}else this.postResponse(M(t.requestID,void 0),t=>{e.source.postMessage(t,e.origin)})}}catch(r){if(r instanceof TypeError);else throw r}}postFormattedRequest(e,t,n={}){if(!this._connected)throw new I("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(e,t),void 0,n)}}var Y=Object.defineProperty,V=(e,t,n)=>t in e?Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K=(e,t,n)=>(V(e,"symbol"!=typeof t?t+"":t,n),n);let z={requestIDPrefix:"client-"};class H extends B{constructor(e,t,n){var r,i;let a=(null==n?void 0:n.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(e,{[o.SetActiveSlice]:(e,t)=>t.success(),[o.SetSliceZoneSize]:(e,t)=>t.success(),...t},{...z,...n,debug:a}),K(this,f,async()=>await this.postFormattedRequest(u.Ping)),K(this,l,async e=>await this.postFormattedRequest(u.SetSliceZone,e)),K(this,p,async e=>await this.postFormattedRequest(u.ScrollToSlice,e)),a&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(i=window.prismic.sliceSimulator).client||(i.client=[]),window.prismic.sliceSimulator.client.push(this))}}f=u.Ping,l=u.SetSliceZone,p=u.ScrollToSlice,o.SetActiveSlice,o.SetSliceZoneSize},98227:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return o},__asyncDelegator:function(){return O},__asyncGenerator:function(){return w},__asyncValues:function(){return R},__await:function(){return x},__awaiter:function(){return h},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return W},__classPrivateFieldSet:function(){return F},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return y},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return C},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return b},__rest:function(){return u},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return S},__spreadArray:function(){return I},__spreadArrays:function(){return T},__values:function(){return _}});var r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function u(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function a(e,t,n,r){var i,o=arguments.length,u=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(u=(o<3?i(u):o>3?i(t,n,u):i(t,n))||u);return o>3&&u&&Object.defineProperty(t,n,u),u}function c(e,t){return function(n,r){t(n,r,e)}}function f(e,t,n,r,i,o){function u(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=n.length-1;s>=0;s--){var h={};for(var m in r)h[m]="access"===m?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");o.push(u(e||null))};var v=(0,n[s])("accessor"===c?{get:p.get,set:p.set}:p[f],h);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=u(v.get))&&(p.get=a),(a=u(v.set))&&(p.set=a),(a=u(v.init))&&i.unshift(a)}else(a=u(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function p(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function s(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function h(e,t,n,r){return new(n||(n=Promise))(function(i,o){function u(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(u,a)}c((r=r.apply(e,t||[])).next())})}function m(e,t){var n,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(a){return function(c){return function(a){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(u=0)),u;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,r=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(i=(i=u.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){u.label=a[1];break}if(6===a[0]&&u.label<i[1]){u.label=i[1],i=a;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(a);break}i[2]&&u.ops.pop(),u.trys.pop();continue}a=t.call(e,u)}catch(c){a=[6,c],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function y(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function _(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)u.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function S(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function T(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],u=0,a=o.length;u<a;u++,i++)r[i]=o[u];return r}function I(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||a(e,t)})})}function a(e,t){try{var n;n=i[e](t),n.value instanceof x?Promise.resolve(n.value.v).then(c,f):l(o[0][2],n)}catch(r){l(o[0][3],r)}}function c(e){a("next",e)}function f(e){a("throw",e)}function l(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}}function O(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:x(e[r](t)),done:!1}:i?i(t):t}:i}}function R(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=_(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var M=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return M(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function P(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function F(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function W(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}t.default={__extends:i,__assign:o,__rest:u,__decorate:a,__param:c,__metadata:s,__awaiter:h,__generator:m,__createBinding:v,__exportStar:y,__values:_,__read:b,__spread:S,__spreadArrays:T,__spreadArray:I,__await:x,__asyncGenerator:w,__asyncDelegator:O,__asyncValues:R,__makeTemplateObject:C,__importStar:E,__importDefault:k,__classPrivateFieldGet:P,__classPrivateFieldSet:F,__classPrivateFieldIn:W}},19108:function(e){e.exports=JSON.parse('[{"url":"https://twitter.com/prismicio/status/1356293316158095361","oembed":{"embed_url":"https://twitter.com/prismicio/status/1356293316158095361","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Gatsby is a popular choice for Prismic users and we work hard on delivering a CMS that plays to its strengths.<br><br>But, what makes <a href=\\"https://twitter.com/GatsbyJS?ref_src=twsrc%5Etfw\\">@GatsbyJS</a> so popular?<br><br>Here are some of <a href=\\"https://twitter.com/mxstbr?ref_src=twsrc%5Etfw\\">@mxstbr</a>'s thoughts on Gatsby's success and how they're improving developer experience.<a href=\\"https://t.co/ZjCPvsWWUD\\">https://t.co/ZjCPvsWWUD</a> <a href=\\"https://t.co/EQqzJpeNKl\\">pic.twitter.com/EQqzJpeNKl</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1356293316158095361?ref_src=twsrc%5Etfw\\">February 1, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/timbenniks/status/1304146886832594944","oembed":{"embed_url":"https://twitter.com/timbenniks/status/1304146886832594944","author_name":"Tim Benniks","author_url":"https://twitter.com/timbenniks","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">I’ve been diving deep on <a href=\\"https://twitter.com/prismicio?ref_src=twsrc%5Etfw\\">@prismicio</a> <a href=\\"https://twitter.com/hashtag/slicemachine?src=hash&ref_src=twsrc%5Etfw\\">#slicemachine</a> today. I made all my own components and I used custom slices. It works like a charm with <a href=\\"https://twitter.com/nuxt_js?ref_src=twsrc%5Etfw\\">@nuxt_js</a>. Also\\": I’m coding with this view. <a href=\\"https://t.co/F0I8X9gz39\\">pic.twitter.com/F0I8X9gz39</a></p>— Tim Benniks (@timbenniks) <a href=\\"https://twitter.com/timbenniks/status/1304146886832594944?ref_src=twsrc%5Etfw\\">September 10, 2020</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354112310252630016","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354112310252630016","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">We're launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow's Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can't tell you any further details for now, but here's a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354112310252630016?ref_src=twsrc%5Etfw\\">January 26, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}},{"url":"https://twitter.com/prismicio/status/1354835716430319617","oembed":{"embed_url":"https://twitter.com/prismicio/status/1354835716430319617","author_name":"Prismic","author_url":"https://twitter.com/prismicio","html":"<blockquote class=\\"twitter-tweet\\"><p lang=\\"en\\" dir=\\"ltr\\">Does anyone want to create a wildly popular website for discussing 'Wall Street Bets' using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&ref_src=twsrc%5Etfw\\">#reddit</a> and we won't make it private.<br><br>Just asking for some friends...</p>— Prismic (@prismicio) <a href=\\"https://twitter.com/prismicio/status/1354835716430319617?ref_src=twsrc%5Etfw\\">January 28, 2021</a></blockquote>\\n<script async src=\\"https://platform.twitter.com/widgets.js\\" charset=\\"utf-8\\"></script>\\n","width":550,"height":null,"type":"rich","cache_age":"3153600000","provider_name":"Twitter","provider_url":"http://www.twitter.com/","version":"1.0"}}]')},88416:function(e){e.exports=JSON.parse('[{"name":"Moulin Rouge","imageUrl":"https://lh4.googleusercontent.com/proxy/xJPIDVmq8AZjNlaDRkNadqW8ojW8e3Xu81Fgf3WuaVkwp_8d-hho0xbZHGeMpzIX58tV8HCTeb6nttHMr5sJiYKIr-Nmm4IQ2OVgkisg5wXt_6dhpLEeQhjNvBzZD2poV3AHZMuhb0cOUVdM-htjlyGJ2aLz6A=w408-h272-k-no","points":{"latitude":48.8841267,"longitude":2.3300579}},{"name":"Prismic Headquarters","imageUrl":"/prismic-headquarters.png","points":{"latitude":48.8703712,"longitude":2.3865198}},{"name":"Eiffel Tower","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipPs_9Q0oquXoQMMEg45fpFd_Hkn8B9ljATTaDRY=w408-h295-k-no","points":{"latitude":48.8583736,"longitude":2.2922926}},{"name":"Louvre Museum","imageUrl":"https://lh5.googleusercontent.com/p/AF1QipNbg2fGRkUEXpmsBuhEgANtpr-SH_SrsaKFsamK=w408-h270-k-no","points":{"latitude":48.8606111,"longitude":2.337644}}]')},15542:function(e){e.exports=JSON.parse('[{"url":"https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4076,"height":2712},{"url":"https://images.unsplash.com/photo-1589652717521-10c0d092dea9?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4752,"height":3168},{"url":"https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5616,"height":3744},{"url":"https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1601933973783-43cf8a7d4c5f?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":6597,"height":4398},{"url":"https://images.unsplash.com/photo-1537498425277-c283d32ef9db?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":4380,"height":2895},{"url":"https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":5243,"height":3495},{"url":"https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","width":3500,"height":2338},{"url":"https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3882,"height":2584},{"url":"https://images.unsplash.com/photo-1560762484-813fc97650a0?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":3344,"height":2509},{"url":"https://images.unsplash.com/photo-1544731612-de7f96afe55f?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":6000,"height":4000},{"url":"https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":5848,"height":3899},{"url":"https://images.unsplash.com/photo-1560457079-9a6532ccb118?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4160,"height":3120},{"url":"https://images.unsplash.com/photo-1547082299-de196ea013d6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","width":4272,"height":2848},{"url":"https://images.unsplash.com/photo-1551739440-5dd934d3a94a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3456,"height":4320},{"url":"https://images.unsplash.com/photo-1531771686035-25f47595c87a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3024,"height":3778},{"url":"https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3560,"height":5340},{"url":"https://images.unsplash.com/photo-1504198070170-4ca53bb1c1fa?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":2747,"height":4120},{"url":"https://images.unsplash.com/photo-1494173853739-c21f58b16055?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3277,"height":4092},{"url":"https://images.unsplash.com/photo-1541807084-5c52b6b3adef?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1593642633279-1796119d5482?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4016,"height":6016},{"url":"https://images.unsplash.com/photo-1545239351-1141bd82e8a6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":3212,"height":3880},{"url":"https://images.unsplash.com/photo-1491975474562-1f4e30bc9468?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","width":4000,"height":6000},{"url":"https://images.unsplash.com/photo-1587614295999-6c1c13675117?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3810,"height":5715},{"url":"https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3648,"height":4560},{"url":"https://images.unsplash.com/photo-1587905069134-008460d7a636?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3935,"height":5894},{"url":"https://images.unsplash.com/photo-1587613865763-4b8b0d19e8ab?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":12288,"height":16384},{"url":"https://images.unsplash.com/photo-1589321599763-d66926c29613?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1589321578146-4c1ba445cc88?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","width":3168,"height":4752},{"url":"https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":8640,"height":8640},{"url":"https://images.unsplash.com/photo-1591012911207-0dbac31f37da?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1606248897732-2c5ffe759c04?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1600804931749-2da4ce26c869?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3199,"height":3199},{"url":"https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4010,"height":4010},{"url":"https://images.unsplash.com/photo-1587840171670-8b850147754e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":4480,"height":4480},{"url":"https://images.unsplash.com/photo-1493119508027-2b584f234d6c?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":3424,"height":3424},{"url":"https://images.unsplash.com/photo-1600861194802-a2b11076bc51?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","width":2545,"height":2545},{"url":"https://images.unsplash.com/photo-1571126770897-2d612d1f7b89?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3456,"height":3456},{"url":"https://images.unsplash.com/photo-1586952518485-11b180e92764?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4172,"height":4000},{"url":"https://images.unsplash.com/photo-1587653915936-5623ea0b949a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4000,"height":4000},{"url":"https://images.unsplash.com/photo-1607582278043-57198ac8da43?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":4024,"height":4024},{"url":"https://images.unsplash.com/photo-1579931794097-0ad001e51edb?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":3958,"height":3958},{"url":"https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","width":5000,"height":4613}]')},93953:function(e){e.exports=JSON.parse('["ability","able","aboard","about","above","accept","accident","according","account","accurate","acres","across","act","action","active","activity","actual","actually","add","addition","additional","adjective","adult","adventure","advice","affect","afraid","after","afternoon","again","against","age","ago","agree","ahead","aid","air","airplane","alike","alive","all","allow","almost","alone","along","aloud","alphabet","already","also","although","am","among","amount","ancient","angle","angry","animal","announced","another","answer","ants","any","anybody","anyone","anything","anyway","anywhere","apart","apartment","appearance","apple","applied","appropriate","are","area","arm","army","around","arrange","arrangement","arrive","arrow","art","article","as","aside","ask","asleep","at","ate","atmosphere","atom","atomic","attached","attack","attempt","attention","audience","author","automobile","available","average","avoid","aware","away","baby","back","bad","badly","bag","balance","ball","balloon","band","bank","bar","bare","bark","barn","base","baseball","basic","basis","basket","bat","battle","be","bean","bear","beat","beautiful","beauty","became","because","become","becoming","bee","been","before","began","beginning","begun","behavior","behind","being","believed","bell","belong","below","belt","bend","beneath","bent","beside","best","bet","better","between","beyond","bicycle","bigger","biggest","bill","birds","birth","birthday","bit","bite","black","blank","blanket","blew","blind","block","blood","blow","blue","board","boat","body","bone","book","border","born","both","bottle","bottom","bound","bow","bowl","box","boy","brain","branch","brass","brave","bread","break","breakfast","breath","breathe","breathing","breeze","brick","bridge","brief","bright","bring","broad","broke","broken","brother","brought","brown","brush","buffalo","build","building","built","buried","burn","burst","bus","bush","business","busy","but","butter","buy","by","cabin","cage","cake","call","calm","came","camera","camp","can","canal","cannot","cap","capital","captain","captured","car","carbon","card","care","careful","carefully","carried","carry","case","cast","castle","cat","catch","cattle","caught","cause","cave","cell","cent","center","central","century","certain","certainly","chain","chair","chamber","chance","change","changing","chapter","character","characteristic","charge","chart","check","cheese","chemical","chest","chicken","chief","child","children","choice","choose","chose","chosen","church","circle","circus","citizen","city","class","classroom","claws","clay","clean","clear","clearly","climate","climb","clock","close","closely","closer","cloth","clothes","clothing","cloud","club","coach","coal","coast","coat","coffee","cold","collect","college","colony","color","column","combination","combine","come","comfortable","coming","command","common","community","company","compare","compass","complete","completely","complex","composed","composition","compound","concerned","condition","congress","connected","consider","consist","consonant","constantly","construction","contain","continent","continued","contrast","control","conversation","cook","cookies","cool","copper","copy","corn","corner","correct","correctly","cost","cotton","could","count","country","couple","courage","course","court","cover","cow","cowboy","crack","cream","create","creature","crew","crop","cross","crowd","cry","cup","curious","current","curve","customs","cut","cutting","daily","damage","dance","danger","dangerous","dark","darkness","date","daughter","dawn","day","dead","deal","dear","death","decide","declared","deep","deeply","deer","definition","degree","depend","depth","describe","desert","design","desk","detail","determine","develop","development","diagram","diameter","did","die","differ","difference","different","difficult","difficulty","dig","dinner","direct","direction","directly","dirt","dirty","disappear","discover","discovery","discuss","discussion","disease","dish","distance","distant","divide","division","do","doctor","does","dog","doing","doll","dollar","done","donkey","door","dot","double","doubt","down","dozen","draw","drawn","dream","dress","drew","dried","drink","drive","driven","driver","driving","drop","dropped","drove","dry","duck","due","dug","dull","during","dust","duty","each","eager","ear","earlier","early","earn","earth","easier","easily","east","easy","eat","eaten","edge","education","effect","effort","egg","eight","either","electric","electricity","element","elephant","eleven","else","empty","end","enemy","energy","engine","engineer","enjoy","enough","enter","entire","entirely","environment","equal","equally","equator","equipment","escape","especially","essential","establish","even","evening","event","eventually","ever","every","everybody","everyone","everything","everywhere","evidence","exact","exactly","examine","example","excellent","except","exchange","excited","excitement","exciting","exclaimed","exercise","exist","expect","experience","experiment","explain","explanation","explore","express","expression","extra","eye","face","facing","fact","factor","factory","failed","fair","fairly","fall","fallen","familiar","family","famous","far","farm","farmer","farther","fast","fastened","faster","fat","father","favorite","fear","feathers","feature","fed","feed","feel","feet","fell","fellow","felt","fence","few","fewer","field","fierce","fifteen","fifth","fifty","fight","fighting","figure","fill","film","final","finally","find","fine","finest","finger","finish","fire","fireplace","firm","first","fish","five","fix","flag","flame","flat","flew","flies","flight","floating","floor","flow","flower","fly","fog","folks","follow","food","foot","football","for","force","foreign","forest","forget","forgot","forgotten","form","former","fort","forth","forty","forward","fought","found","four","fourth","fox","frame","free","freedom","frequently","fresh","friend","friendly","frighten","frog","from","front","frozen","fruit","fuel","full","fully","fun","function","funny","fur","furniture","further","future","gain","game","garage","garden","gas","gasoline","gate","gather","gave","general","generally","gentle","gently","get","getting","giant","gift","girl","give","given","giving","glad","glass","globe","go","goes","gold","golden","gone","good","goose","got","government","grabbed","grade","gradually","grain","grandfather","grandmother","graph","grass","gravity","gray","great","greater","greatest","greatly","green","grew","ground","group","grow","grown","growth","guard","guess","guide","gulf","gun","habit","had","hair","half","halfway","hall","hand","handle","handsome","hang","happen","happened","happily","happy","harbor","hard","harder","hardly","has","hat","have","having","hay","he","headed","heading","health","heard","hearing","heart","heat","heavy","height","held","hello","help","helpful","her","herd","here","herself","hidden","hide","high","higher","highest","highway","hill","him","himself","his","history","hit","hold","hole","hollow","home","honor","hope","horn","horse","hospital","hot","hour","house","how","however","huge","human","hundred","hung","hungry","hunt","hunter","hurried","hurry","hurt","husband","ice","idea","identity","if","ill","image","imagine","immediately","importance","important","impossible","improve","in","inch","include","including","income","increase","indeed","independent","indicate","individual","industrial","industry","influence","information","inside","instance","instant","instead","instrument","interest","interior","into","introduced","invented","involved","iron","is","island","it","its","itself","jack","jar","jet","job","join","joined","journey","joy","judge","jump","jungle","just","keep","kept","key","kids","kill","kind","kitchen","knew","knife","know","knowledge","known","label","labor","lack","lady","laid","lake","lamp","land","language","large","larger","largest","last","late","later","laugh","law","lay","layers","lead","leader","leaf","learn","least","leather","leave","leaving","led","left","leg","length","lesson","let","letter","level","library","lie","life","lift","light","like","likely","limited","line","lion","lips","liquid","list","listen","little","live","living","load","local","locate","location","log","lonely","long","longer","look","loose","lose","loss","lost","lot","loud","love","lovely","low","lower","luck","lucky","lunch","lungs","lying","machine","machinery","mad","made","magic","magnet","mail","main","mainly","major","make","making","man","managed","manner","manufacturing","many","map","mark","market","married","mass","massage","master","material","mathematics","matter","may","maybe","me","meal","mean","means","meant","measure","meat","medicine","meet","melted","member","memory","men","mental","merely","met","metal","method","mice","middle","might","mighty","mile","military","milk","mill","mind","mine","minerals","minute","mirror","missing","mission","mistake","mix","mixture","model","modern","molecular","moment","money","monkey","month","mood","moon","more","morning","most","mostly","mother","motion","motor","mountain","mouse","mouth","move","movement","movie","moving","mud","muscle","music","musical","must","my","myself","mysterious","nails","name","nation","national","native","natural","naturally","nature","near","nearby","nearer","nearest","nearly","necessary","neck","needed","needle","needs","negative","neighbor","neighborhood","nervous","nest","never","new","news","newspaper","next","nice","night","nine","no","nobody","nodded","noise","none","noon","nor","north","nose","not","note","noted","nothing","notice","noun","now","number","numeral","nuts","object","observe","obtain","occasionally","occur","ocean","of","off","offer","office","officer","official","oil","old","older","oldest","on","once","one","only","onto","open","operation","opinion","opportunity","opposite","or","orange","orbit","order","ordinary","organization","organized","origin","original","other","ought","our","ourselves","out","outer","outline","outside","over","own","owner","oxygen","pack","package","page","paid","pain","paint","pair","palace","pale","pan","paper","paragraph","parallel","parent","park","part","particles","particular","particularly","partly","parts","party","pass","passage","past","path","pattern","pay","peace","pen","pencil","people","per","percent","perfect","perfectly","perhaps","period","person","personal","pet","phrase","physical","piano","pick","picture","pictured","pie","piece","pig","pile","pilot","pine","pink","pipe","pitch","place","plain","plan","plane","planet","planned","planning","plant","plastic","plate","plates","play","pleasant","please","pleasure","plenty","plural","plus","pocket","poem","poet","poetry","point","pole","police","policeman","political","pond","pony","pool","poor","popular","population","porch","port","position","positive","possible","possibly","post","pot","potatoes","pound","pour","powder","power","powerful","practical","practice","prepare","present","president","press","pressure","pretty","prevent","previous","price","pride","primitive","principal","principle","printed","private","prize","probably","problem","process","produce","product","production","program","progress","promised","proper","properly","property","protection","proud","prove","provide","public","pull","pupil","pure","purple","purpose","push","put","putting","quarter","queen","question","quick","quickly","quiet","quietly","quite","rabbit","race","radio","railroad","rain","raise","ran","ranch","range","rapidly","rate","rather","raw","rays","reach","read","reader","ready","real","realize","rear","reason","recall","receive","recent","recently","recognize","record","red","refer","refused","region","regular","related","relationship","religious","remain","remarkable","remember","remove","repeat","replace","replied","report","represent","require","research","respect","rest","result","return","review","rhyme","rhythm","rice","rich","ride","riding","right","ring","rise","rising","river","road","roar","rock","rocket","rocky","rod","roll","roof","room","root","rope","rose","rough","round","route","row","rubbed","rubber","rule","ruler","run","running","rush","sad","saddle","safe","safety","said","sail","sale","salmon","salt","same","sand","sang","sat","satellites","satisfied","save","saved","saw","say","scale","scared","scene","school","science","scientific","scientist","score","screen","sea","search","season","seat","second","secret","section","see","seed","seeing","seems","seen","seldom","select","selection","sell","send","sense","sent","sentence","separate","series","serious","serve","service","sets","setting","settle","settlers","seven","several","shade","shadow","shake","shaking","shall","shallow","shape","share","sharp","she","sheep","sheet","shelf","shells","shelter","shine","shinning","ship","shirt","shoe","shoot","shop","shore","short","shorter","shot","should","shoulder","shout","show","shown","shut","sick","sides","sight","sign","signal","silence","silent","silk","silly","silver","similar","simple","simplest","simply","since","sing","single","sink","sister","sit","sitting","situation","six","size","skill","skin","sky","slabs","slave","sleep","slept","slide","slight","slightly","slip","slipped","slope","slow","slowly","small","smaller","smallest","smell","smile","smoke","smooth","snake","snow","so","soap","social","society","soft","softly","soil","solar","sold","soldier","solid","solution","solve","some","somebody","somehow","someone","something","sometime","somewhere","son","song","soon","sort","sound","source","south","southern","space","speak","special","species","specific","speech","speed","spell","spend","spent","spider","spin","spirit","spite","split","spoken","sport","spread","spring","square","stage","stairs","stand","standard","star","stared","start","state","statement","station","stay","steady","steam","steel","steep","stems","step","stepped","stick","stiff","still","stock","stomach","stone","stood","stop","stopped","store","storm","story","stove","straight","strange","stranger","straw","stream","street","strength","stretch","strike","string","strip","strong","stronger","struck","structure","struggle","stuck","student","studied","studying","subject","substance","success","successful","such","sudden","suddenly","sugar","suggest","suit","sum","summer","sun","sunlight","supper","supply","support","suppose","sure","surface","surprise","surrounded","swam","sweet","swept","swim","swimming","swing","swung","syllable","symbol","system","table","tail","take","taken","tales","talk","tall","tank","tape","task","taste","taught","tax","tea","teach","teacher","team","tears","teeth","telephone","television","tell","temperature","ten","tent","term","terrible","test","than","thank","that","thee","them","themselves","then","theory","there","therefore","these","they","thick","thin","thing","think","third","thirty","this","those","thou","though","thought","thousand","thread","three","threw","throat","through","throughout","throw","thrown","thumb","thus","thy","tide","tie","tight","tightly","till","time","tin","tiny","tip","tired","title","to","tobacco","today","together","told","tomorrow","tone","tongue","tonight","too","took","tool","top","topic","torn","total","touch","toward","tower","town","toy","trace","track","trade","traffic","trail","train","transportation","trap","travel","treated","tree","triangle","tribe","trick","tried","trip","troops","tropical","trouble","truck","trunk","truth","try","tube","tune","turn","twelve","twenty","twice","two","type","typical","uncle","under","underline","understanding","unhappy","union","unit","universe","unknown","unless","until","unusual","up","upon","upper","upward","us","use","useful","using","usual","usually","valley","valuable","value","vapor","variety","various","vast","vegetable","verb","vertical","very","vessels","victory","view","village","visit","visitor","voice","volume","vote","vowel","voyage","wagon","wait","walk","wall","want","war","warm","warn","was","wash","waste","watch","water","wave","way","we","weak","wealth","wear","weather","week","weigh","weight","welcome","well","went","were","west","western","wet","whale","what","whatever","wheat","wheel","when","whenever","where","wherever","whether","which","while","whispered","whistle","white","who","whole","whom","whose","why","wide","widely","wife","wild","will","willing","win","wind","window","wing","winter","wire","wise","wish","with","within","without","wolf","women","won","wonder","wonderful","wood","wooden","wool","word","wore","work","worker","world","worried","worry","worse","worth","would","wrapped","write","writer","writing","written","wrong","wrote","yard","year","yellow","yes","yesterday","yet","you","young","younger","your","yourself","youth","zero","zebra","zipper","zoo","zulu"]')},83777:function(e){e.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(e){e.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);
|