slice-machine-ui 1.15.1-dev-next-release.0 → 1.15.1-dev-next-release.2

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.
Files changed (71) hide show
  1. package/.storybook/preview.tsx +1 -5
  2. package/components/Forms/CreateCustomTypeModal/CreateCustomTypeModal.tsx +3 -0
  3. package/lib/builders/SliceBuilder/Header/SimulatorButton/index.tsx +3 -2
  4. package/out/404.html +1 -1
  5. package/out/[lib]/[sliceName]/[variation]/screenshot.html +1 -1
  6. package/out/[lib]/[sliceName]/[variation]/simulator.html +1 -1
  7. package/out/[lib]/[sliceName]/[variation].html +1 -1
  8. package/out/_next/static/chunks/113-34b6cf41a62f08ce.js +3 -0
  9. package/out/_next/static/chunks/{740-d0642219804fa9f0.js → 125-84464edfe25651eb.js} +3 -3
  10. package/out/_next/static/chunks/18539003-1bb05c8aa7db2bc2.js +97 -0
  11. package/out/_next/static/chunks/{377-870ca4414847069f.js → 377-3caacee3c3ffdc25.js} +1 -1
  12. package/out/_next/static/chunks/{573-aaae870d20e5f86c.js → 573-e92018662d1f6c26.js} +1 -1
  13. package/out/_next/static/chunks/746-2ca4784811bde7c1.js +8 -0
  14. package/out/_next/static/chunks/{799-5ea3393033a9f617.js → 799-5c13484e9f945e5d.js} +1 -1
  15. package/out/_next/static/chunks/809-d1f83d7413864f03.js +1 -0
  16. package/out/_next/static/chunks/840-d84a2655185995ce.js +1 -0
  17. package/out/_next/static/chunks/pages/[lib]/[sliceName]/[variation]/{simulator-4dcf33735c45c344.js → simulator-c608e0470a8f6099.js} +1 -1
  18. package/out/_next/static/chunks/pages/[lib]/[sliceName]/[variation]-36ba0bde8415ad8b.js +1 -0
  19. package/out/_next/static/chunks/pages/{_app-2e696c5146b70244.js → _app-0e270aca89a6033d.js} +98 -95
  20. package/out/_next/static/chunks/pages/{changelog-877e16d5731e1966.js → changelog-11c9e241f5a8a4cb.js} +1 -1
  21. package/out/_next/static/chunks/pages/{changes-b85f5f8b616f683f.js → changes-8338c9d0723a7033.js} +1 -1
  22. package/out/_next/static/chunks/pages/custom-types/{[customTypeId]-4fe86acfed194773.js → [customTypeId]-868f09f50fd3039a.js} +1 -1
  23. package/out/_next/static/chunks/pages/custom-types-78e57821222c9603.js +1 -0
  24. package/out/_next/static/chunks/pages/index-d3da65c8b508c26e.js +1 -0
  25. package/out/_next/static/chunks/pages/page-types/{[pageTypeId]-87f5f9704f2c3f2d.js → [pageTypeId]-b6552cab363f7fbf.js} +1 -1
  26. package/out/_next/static/chunks/pages/{slices-53cb97d901d15d93.js → slices-afa4b34df8f8e1c3.js} +1 -1
  27. package/out/_next/static/css/{d6e6d21ff661397d.css → 26b51745402a92af.css} +1 -1
  28. package/out/_next/static/css/66b3836ab88b0c5c.css +1 -0
  29. package/out/_next/static/css/{2d1eda18406a9ff4.css → b6bfe1e0ef76c2b1.css} +1 -1
  30. package/out/_next/static/z-OmqvYWKjvP9W4MN_LBy/_buildManifest.js +1 -0
  31. package/out/changelog.html +1 -1
  32. package/out/changes.html +1 -1
  33. package/out/custom-types/[customTypeId].html +1 -1
  34. package/out/custom-types.html +1 -1
  35. package/out/index.html +1 -1
  36. package/out/page-types/[pageTypeId].html +1 -1
  37. package/out/slices.html +1 -1
  38. package/package.json +8 -8
  39. package/pages/_app.tsx +37 -5
  40. package/pages/index.tsx +8 -0
  41. package/src/components/BaseHoverCard/BaseHoverCard.stories.tsx +1 -0
  42. package/src/components/Card/Card.css.ts +182 -0
  43. package/src/components/Card/Card.stories.tsx +166 -0
  44. package/src/components/Card/Card.tsx +171 -0
  45. package/src/components/Card/index.ts +1 -0
  46. package/src/components/HoverCard/HoverCard.stories.tsx +4 -0
  47. package/src/components/Table/Table.tsx +4 -14
  48. package/src/components/TextLink/TextLink.stories.tsx +2 -5
  49. package/src/components/Window/Window.tsx +8 -4
  50. package/src/features/customTypes/PageTypeOnboarding.tsx +60 -0
  51. package/src/features/customTypes/customTypesBuilder/SliceZoneBlankSlate.tsx +2 -2
  52. package/src/features/slices/sliceBuilder/FloatingBackButton.tsx +3 -13
  53. package/src/hooks/useIsEmptyProject.ts +24 -0
  54. package/src/icons/AddPhotoAlternateIcon.tsx +19 -0
  55. package/src/icons/ArrowDropDownIcon.tsx +14 -0
  56. package/src/icons/BlankPageIcon.tsx +58 -0
  57. package/src/icons/SliceMachinePrinterIcon.tsx +69 -0
  58. package/src/icons/SyncAltIcon.tsx +19 -0
  59. package/test/components/CreateCustomTypeModal.test.tsx +1 -0
  60. package/out/_next/static/WBN_4NBm93_gAe6XjcmpE/_buildManifest.js +0 -1
  61. package/out/_next/static/chunks/18539003-a714ba731c9448b9.js +0 -101
  62. package/out/_next/static/chunks/323-841ea6a21954aa7e.js +0 -1
  63. package/out/_next/static/chunks/482-cb5b635a7b32f4b0.js +0 -1
  64. package/out/_next/static/chunks/746-1d8d106d76d9a63e.js +0 -8
  65. package/out/_next/static/chunks/780-643ae720f13fb3dc.js +0 -1
  66. package/out/_next/static/chunks/pages/[lib]/[sliceName]/[variation]-e1c66b10113d656e.js +0 -1
  67. package/out/_next/static/chunks/pages/custom-types-abb8c8c92880120e.js +0 -1
  68. package/out/_next/static/chunks/pages/index-f382c8090bd21628.js +0 -1
  69. package/out/_next/static/css/fe2a2a1cbf3b4092.css +0 -1
  70. package/src/icons/LightningIcon3D.tsx +0 -49
  71. /package/out/_next/static/{WBN_4NBm93_gAe6XjcmpE → z-OmqvYWKjvP9W4MN_LBy}/_ssgManifest.js +0 -0
@@ -1,8 +0,0 @@
1
- "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[746],{15952:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(75237),u=e(16360),o=e(73985),a=e(79687),c=e(81542),f=r.__importDefault(e(3758)),l=/(\w+)\[\d+]/;function p(n){let t={id:n.id,type:n.typ,lang:n.language};return n.uid?{...t,uid:n.uid}:t}function d(n){return(t,e)=>t.__TYPE__===i.EmptyContentType?void 0:i.StaticWidgetContent.is(t)&&!i.EmptyContent.is(t)?(0,c.StaticWidgetRenderer)(n).renderV1(t,o.Fetch.extractGroupOrFieldIfAny(e)):(0,f.default)(n).renderV1(t,o.Fetch.extractSliceFetchIfAny(e))}function s(n){return(t,e,r)=>e.__TYPE__===u.SlicesContentType&&t.__TYPE__===o.SlicesDefType?(0,f.default)(n).renderV2(t,e,o.Fetch.extractSliceFetchIfAny(r)):i.StaticWidgetContent.is(e)&&(0,o.isStaticFieldDef)(t)?(0,c.StaticWidgetRenderer)(n).renderV2(t,e,o.Fetch.extractGroupOrFieldIfAny(r)):m(n)(t)}function m(n){return t=>t.__TYPE__===o.SlicesDefType?(0,f.default)(n).renderDefault(t):t.__TYPE__===o.SimpleSliceDefType||t.__TYPE__===o.SharedSliceDefType||t.__TYPE__===o.CompositeSliceDefType?(0,c.SliceWidgetRenderer)(n).renderDefault(t):(0,c.StaticWidgetRenderer)(n).renderDefault(t)}let h=n=>{var t,e,r;return{renderV1(t,e,r,i,u,o,c,f,s){var m,h,v;let g=(u[t.groupLangId]||[]).filter(n=>n.id!==t.id).map(n=>p(n)),y=((t,e,r)=>{let i={};for(let[u,o]of e)if("uid"!==u){let a=u.match(l),c=a&&a[1],f=c?a[1]:u,p=c?i[f]:void 0;if(void 0!==r){let s=r.fields[u];void 0!==s&&(c?i[f]=Array.isArray(p)?[...p,d(n)(o,s)]:[d(n)(o,s)]:i[f]=d(n)(o,s))}else c?i[f]=Array.isArray(p)?[...p,d(n)(o,void 0)]:[d(n)(o,void 0)]:i[f]=d(n)(o,void 0)}return{[t.type]:i}})(t,e,s);return{id:t.id,uid:null!==(m=t.data.uid)&&void 0!==m?m:null,url:null!==(h=n.LinkResolver.buildUrl({linkResolver:f,pageType:t.type,masterLang:r,brokenRoute:c,doc:t}))&&void 0!==h?h:null,type:t.type,href:n.urlRewriter.enforceCDN(i),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:g,data:y,...o?t.metadata:{}}},renderWidgetV1:d(n),renderWidgetV2:s(n),renderV2(t,e,r,i,u,c,f,d,h,v){var g,y;let _=t.definitions.filter(n=>Object.keys(n).every(n=>"uid"!==n)).map(t=>{let e=Object.entries(t).find(([n])=>"config"!==n),r=e&&{apiId:e[1]};if(r){let u=i.find(([n])=>n===r.apiId),a=o.WidgetDef.encode(t),c=null==v?void 0:v.fields[r.apiId],f=r.apiId.match(l),p=Boolean(f&&f[1]),d=p?f[1]:r.apiId;return u?void 0===v||void 0!==c?[d,s(n)(a,u[1],c),p,]:void 0:void 0===v||void 0!==c?[d,m(n)(a),p]:void 0}throw Error("")}).reduce((n,t)=>{if(t){let[e,r,i]=t;if(i){let u=n[e];if(u){if(Array.isArray(u))return{...n,[e]:[...u,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(u)} should be an Array`)}return{...n,[e]:[r]}}return{...n,[e]:r}}return n},{}),b=(c[e.groupLangId]||[]).filter(n=>n.id!==e.id).map(n=>p(n));return{id:e.id,uid:null!==(g=e.data.uid)&&void 0!==g?g:null,url:null!==(y=n.LinkResolver.buildUrl({linkResolver:h,pageType:e.type,masterLang:r,brokenRoute:d,doc:e}))&&void 0!==y?y:null,type:e.type,href:n.urlRewriter.enforceCDN(u),tags:e.tags,first_publication_date:e.first_publication_date?(0,a.formatDateTime)(e.first_publication_date):null,last_publication_date:e.last_publication_date?(0,a.formatDateTime)(e.last_publication_date):null,slugs:e.data.slugs,linked_documents:[],lang:e.language,alternate_languages:b,data:_,...f?e.metadata:{}}},renderMocks(t,e){let r=e.reduce((n,[,t])=>{if(i.UIDContent.is(t))return t.value},void 0),a=t.definitions.filter(n=>Object.keys(n).every(n=>"uid"!==n)).map(t=>{let r=Object.entries(t).find(([n])=>"config"!==n),a=r&&{apiId:r[1]};if(a){var p,d,s;let h=e.find(([n])=>n===a.apiId),v=o.WidgetDef.encode(t),g=a.apiId.match(l),y=Boolean(g&&g[1]),_=y?g[1]:a.apiId;if(!h)return[_,m(n)(v),y];return[_,(d=v,(s=h[1]).__TYPE__===u.SlicesContentType&&d.__TYPE__===o.SlicesDefType?(0,f.default)(n).renderMocks(d,s):i.StaticWidgetContent.is(s)&&(0,o.isStaticFieldDef)(d)?(0,c.StaticWidgetRenderer)(n).renderMocks(d,s):m(n)(d)),y]}throw Error("")}).reduce((n,t)=>{if(t){let[e,r,i]=t;if(i){let u=n[e];if(u){if(Array.isArray(u))return{...n,[e]:[...u,r]};throw Error(`[UNEXPECTED ERROR] ${JSON.stringify(u)} should be an Array`)}return{...n,[e]:[r]}}return{...n,[e]:r}}return n},{});return{id:"mock-doc-id",uid:r,url:r?`/${r}`:null,type:t.id,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:a}},renderDefaultWidget:m(n)}};t.default=h},88985:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=t.Models=t.DocumentRenderer=void 0;let r=e(87783);var i=e(15952);Object.defineProperty(t,"DocumentRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),t.Models=r.__importStar(e(73985)),t.Utils=r.__importStar(e(79687)),r.__exportStar(e(81542),t)},59527:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentContent=void 0;let r=e(96355);t.DocumentContent=class{constructor(n){Object.defineProperty(this,"fieldTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldPositions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"widgets",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),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,"parsed",{enumerable:!0,configurable:!0,writable:!0,value:new Map});let{widgets:t,types:e,positions:i,slugs:u,uid:o}=r.DocumentData.partitionData(n);this.fieldTypes=e,this.fieldPositions=i,this.slugs=u,this.uid=o,this.widgets=t}getWidget(n){let t=r.DocumentData.getWidget(n,this.widgets,this.fieldTypes,this.fieldPositions,this.parsed);return this.parsed.set(n,t),t}parseAll(){let n=r.DocumentData.fromJson(this.widgets,this.fieldTypes,this.fieldPositions);return this.parsed=n,n}}},53264:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMetadata=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830)),o=u.exact(u.intersection([u.type({title:u.string,description:u.string}),u.partial({imageURL:(0,i.nullable)(u.string)}),]));t.DocumentMetadata={empty:{title:"Untitled document",description:"",imageURL:void 0},codec:o}},72375:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830));t.RelatedDocument=u.exact(u.intersection([u.type({typ:u.string,id:u.string,language:u.string,groupLangId:u.string}),u.partial({uid:(0,i.nullable)(u.string)}),]))},27380:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RelatedDocument=t.DocumentMetadata=t.DocumentContent=t.ApiDocumentCodec=t.GroupLangId=void 0;let r=e(87783),i=e(37581),u=e(9554),o=e(42275),a=r.__importStar(e(87830)),c=e(23284),f=e(2932),l=e(59527),p=e(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=(0,f.mapOutput)(d,n=>({id:n.id,version:n.version,type:n.type,groupLangId:n.groupLangId,tags:n.tags,data:new l.DocumentContent(n.data),language:n.language,first_publication_date:n.first_publication_date,last_publication_date:n.last_publication_date,metadata:n.metadata}));t.ApiDocumentCodec=new a.Type("DocCodec",n=>s.is(n),(n,t)=>(0,o.pipe)(d.validate(n,t),u.either.chain(n=>a.success(s.encode(n)))),n=>n);var m=e(59527);Object.defineProperty(t,"DocumentContent",{enumerable:!0,get:function(){return m.DocumentContent}});var h=e(53264);Object.defineProperty(t,"DocumentMetadata",{enumerable:!0,get:function(){return h.DocumentMetadata}});var v=e(72375);Object.defineProperty(t,"RelatedDocument",{enumerable:!0,get:function(){return v.RelatedDocument}})},75892:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromBoolean=t.BooleanFieldDef=t.BooleanFieldDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.BooleanFieldDefType="booleanFieldDef",t.BooleanFieldDef=(0,u.mapOutput)(i.strict({booleanField:i.string,config:i.strict({default_value:i.boolean})}),n=>({name:n.booleanField,__TYPE__:t.BooleanFieldDefType})),t.fromBoolean=function(n,t){var e;return{booleanField:n,config:{default_value:(null===(e=t.config)||void 0===e?void 0:e.default_value)||!1}}}},14871:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromColor=t.ColorDef=t.ColorDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.ColorDefType="colorDef",t.ColorDef=(0,u.mapOutput)(i.strict({color:i.string}),n=>({name:n.color,__TYPE__:t.ColorDefType})),t.fromColor=function(n){return{color:n}}},34540:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromDate=t.DateDef=t.DateDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.DateDefType="dateDef",t.DateDef=(0,u.mapOutput)(i.strict({date:i.string}),n=>({name:n.date,__TYPE__:t.DateDefType})),t.fromDate=function(n){return{date:n}}},63585:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromEmbed=t.EmbedDef=t.EmbedDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.EmbedDefType="embedDef",t.EmbedDef=(0,u.mapOutput)(i.strict({embed:i.string}),n=>({name:n.embed,__TYPE__:t.EmbedDefType})),t.fromEmbed=function(n){return{embed:n}}},98062:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},48767:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromGeoPoint=t.GeoPointDef=t.GeoPointDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.GeoPointDefType="geopointDef",t.GeoPointDef=(0,u.mapOutput)(i.strict({geopoint:i.string}),n=>({name:n.geopoint,__TYPE__:t.GeoPointDefType})),t.fromGeoPoint=function(n){return{geopoint:n}}},48568:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromGroup=t.GroupDef=t.GroupDefType=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830)),o=e(99169);t.GroupDefType="groupDef",t.GroupDef=(0,i.addType)(u.strict({name:u.string,fields:u.array(o.SimpleFieldDef)}),t.GroupDefType),t.fromGroup=function(n,t){var e;let r=Object.entries((null===(e=t.config)||void 0===e?void 0:e.fields)||{}).map(([n,t])=>(0,o.fromSimpleField)(n,t));return{name:n,fields:r}}},55702:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromImage=t.ImageDef=t.ImageDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.ImageDefType="imageDef",t.ImageDef=(0,u.mapOutput)(i.strict({image:i.string,config:i.strict({thumbnails:i.array(i.string)})}),n=>({name:n.image,config:n.config,__TYPE__:t.ImageDefType})),t.fromImage=function(n,t){var e,r;return{image:n,config:{thumbnails:(null===(r=null===(e=t.config)||void 0===e?void 0:e.thumbnails)||void 0===r?void 0:r.map(n=>n.name))||[]}}}},25329:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromIntegrationField=t.IntegrationFieldDef=t.IntegrationFieldDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.IntegrationFieldDefType="integrationFieldDef",t.IntegrationFieldDef=(0,u.mapOutput)(i.strict({integrationFields:i.string}),n=>({name:n.integrationFields,__TYPE__:t.IntegrationFieldDefType})),t.fromIntegrationField=function(n){return{integrationFields:n}}},28940:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromAnyLink=t.AnyLinkDef=t.AnyLinkDefType=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830));t.AnyLinkDefType="ConfigAnyLinkDef",t.AnyLinkDef=(0,i.addType)(u.partial({select:(0,i.nullable)(u.literal("any"))}),t.AnyLinkDefType),t.fromAnyLink=function(n){var e;if(null===(e=n.config)||void 0===e?void 0:e.select)throw Error("Invalid link type provided, should not be of type any");return t.AnyLinkDef.encode({select:"any"})}},39151:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultDocumentLinkDef=t.fromDocumentLink=t.DocumentLinkDef=t.DocumentLinkDefType=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830));t.DocumentLinkDefType="ConfigDocumentLinkDef",t.DocumentLinkDef=(0,i.addType)(u.strict({select:u.literal("document"),customtypes:u.readonlyArray(u.string)}),t.DocumentLinkDefType),t.fromDocumentLink=function(n){var e;if("document"!==(null===(e=n.config)||void 0===e?void 0:e.select))throw Error('Invalid link type provided, should contain { select: "document" }');return t.DocumentLinkDef.encode({select:"document",customtypes:n.config.customtypes||[]})},t.defaultDocumentLinkDef=function(){return t.DocumentLinkDef.encode({select:"document",customtypes:[]})}},4857:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMediaLinkDef=t.fromMediaLink=t.MediaLinkDef=t.MediaLinkDefType=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830));t.MediaLinkDefType="ConfigMediaLinkDef",t.MediaLinkDef=(0,i.addType)(u.strict({select:u.literal("media")}),t.MediaLinkDefType),t.fromMediaLink=function(n){var e;if("media"!==(null===(e=n.config)||void 0===e?void 0:e.select))throw Error('Invalid link type provided, should contain { select: "media" }');return t.MediaLinkDef.encode({select:"media"})},t.defaultMediaLinkDef=function(){return t.MediaLinkDef.encode({select:"media"})}},29767:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultWebLinkDef=t.fromWebLink=t.WebLinkDef=t.WebLinkDefType=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830));t.WebLinkDefType="ConfigWebLinkDef",t.WebLinkDef=(0,i.addType)(u.strict({select:u.literal("web")}),t.WebLinkDefType),t.fromWebLink=function(n){var e;if("web"!==(null===(e=n.config)||void 0===e?void 0:e.select))throw Error('Invalid link type provided, should contain { select: "web" }');return t.WebLinkDef.encode({select:"web"})},t.defaultWebLinkDef=function(){return t.WebLinkDef.encode({select:"web"})}},27956:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isWebLinkDef=t.isDocumentLinkDef=t.isAnyLinkDef=t.isMediaLinkDef=t.defaultLinkDef=t.fromLink=t.LinkDef=t.LinkDefType=void 0;let r=e(87783),i=e(4633),u=r.__importStar(e(87830)),o=e(2932),a=e(28940),c=e(39151),f=e(4857),l=e(29767),p=u.union([f.MediaLinkDef,c.DocumentLinkDef,l.WebLinkDef,a.AnyLinkDef]);t.LinkDefType="LinkDefType",t.LinkDef=(0,o.mapOutput)(u.strict({link:u.string,config:p}),n=>({name:n.link,__TYPE__:t.LinkDefType,config:n.config})),t.fromLink=function(n,t){let e=(()=>{var n;switch(null===(n=t.config)||void 0===n?void 0:n.select){case"document":return(0,c.fromDocumentLink)(t);case"media":return(0,f.fromMediaLink)(t);case"web":return(0,l.fromWebLink)(t);default:return(0,a.fromAnyLink)(t)}})();return{link:n,config:e}},t.defaultLinkDef=function(n){let t=(()=>{switch(n){case i.LinksTypes.DocumentLink:return(0,c.defaultDocumentLinkDef)();case i.LinksTypes.ImageLink:case i.LinksTypes.FileLink:return(0,f.defaultMediaLinkDef)();case i.LinksTypes.ExternalLink:return(0,l.defaultWebLinkDef)()}})();return{name:"",config:t,__TYPE__:"LinkDefType"}},t.isMediaLinkDef=n=>n.config.__TYPE__===f.MediaLinkDefType,t.isAnyLinkDef=n=>n.config.__TYPE__===a.AnyLinkDefType,t.isDocumentLinkDef=n=>n.config.__TYPE__===c.DocumentLinkDefType,t.isWebLinkDef=n=>n.config.__TYPE__===l.WebLinkDefType,r.__exportStar(e(28940),t),r.__exportStar(e(39151),t),r.__exportStar(e(4857),t),r.__exportStar(e(29767),t)},55598:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromNumber=t.NumberDef=t.NumberDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.NumberDefType="numberDef",t.NumberDef=(0,u.mapOutput)(i.strict({number:i.string}),n=>({name:n.number,__TYPE__:t.NumberDefType})),t.fromNumber=function(n){return{number:n}}},49844:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromRange=t.RangeDef=t.RangeDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.RangeDefType="RangeDef",t.RangeDef=(0,u.mapOutput)(i.strict({range:i.string}),n=>({name:n.range,__TYPE__:t.RangeDefType})),t.fromRange=function(n){return{range:n}}},63204:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSelect=t.SelectDef=t.SelectDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.SelectDefType="selectDef",t.SelectDef=(0,u.mapOutput)(i.strict({select:i.string,config:i.strict({options:i.readonlyArray(i.string)})}),n=>({name:n.select,config:n.config,__TYPE__:t.SelectDefType})),t.fromSelect=function(n,t){var e;return{select:n,config:{options:(null===(e=t.config)||void 0===e?void 0:e.options)||[]}}}},62543:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSeparator=t.SeparatorDef=t.SeparatorDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.SeparatorDefType="separatorDef",t.SeparatorDef=(0,u.mapOutput)(i.strict({separator:i.string}),n=>({name:n.separator,__TYPE__:t.SeparatorDefType})),t.fromSeparator=function(n){return{separator:n}}},99169:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSimpleField=t.SimpleFieldDef=void 0;let r=e(87783),i=e(54249),u=r.__importStar(e(87830)),o=e(75892),a=e(14871),c=e(34540),f=e(63585),l=e(48767),p=e(55702),d=e(25329),s=e(27956),m=e(55598),h=e(49844),v=e(63204),g=e(62543),y=e(18213),_=e(22059),b=e(13008),I=e(53526);t.SimpleFieldDef=u.union([I.UIDDef,y.StructuredTextDef,p.ImageDef,s.LinkDef,c.DateDef,b.TimestampDef,a.ColorDef,m.NumberDef,_.TextDef,v.SelectDef,o.BooleanFieldDef,f.EmbedDef,l.GeoPointDef,g.SeparatorDef,d.IntegrationFieldDef,h.RangeDef,]),t.fromSimpleField=function(n,t){switch(t.type){case i.WidgetTypes.UID:return(0,I.fromUID)(n);case i.WidgetTypes.RichText:return(0,y.fromRichText)(n);case i.WidgetTypes.Image:return(0,p.fromImage)(n,t);case i.WidgetTypes.Link:return(0,s.fromLink)(n,t);case i.WidgetTypes.Date:return(0,c.fromDate)(n);case i.WidgetTypes.Timestamp:return(0,b.fromTimestamp)(n);case i.WidgetTypes.Color:return(0,a.fromColor)(n);case i.WidgetTypes.Number:return(0,m.fromNumber)(n);case i.WidgetTypes.Text:return(0,_.fromText)(n);case i.WidgetTypes.Select:return(0,v.fromSelect)(n,t);case i.WidgetTypes.BooleanField:return(0,o.fromBoolean)(n,t);case i.WidgetTypes.Embed:return(0,f.fromEmbed)(n);case i.WidgetTypes.GeoPoint:return(0,l.fromGeoPoint)(n);case i.WidgetTypes.Separator:return(0,g.fromSeparator)(n);case i.WidgetTypes.IntegrationField:return(0,d.fromIntegrationField)(n);case i.WidgetTypes.Range:return(0,h.fromRange)(n)}}},86714:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromStatic=t.isSimpleFieldDef=t.StaticDef=void 0;let r=e(87783),i=e(54249),u=r.__importStar(e(87830)),o=e(48568),a=e(99169);t.StaticDef=u.union([o.GroupDef,a.SimpleFieldDef]),t.isSimpleFieldDef=function(n){return n.__TYPE__!==o.GroupDefType},t.fromStatic=function(n,t){return t.type===i.WidgetTypes.Group?(0,o.fromGroup)(n,t):(0,a.fromSimpleField)(n,t)}},18213:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromRichText=t.StructuredTextDef=t.StructuredTextDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.StructuredTextDefType="structuredTextDef",t.StructuredTextDef=(0,u.mapOutput)(i.strict({structuredtext:i.string}),n=>({name:n.structuredtext,__TYPE__:t.StructuredTextDefType})),t.fromRichText=function(n){return{structuredtext:n}}},22059:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromText=t.TextDef=t.TextDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.TextDefType="textDef",t.TextDef=(0,u.mapOutput)(i.strict({text:i.string}),n=>({name:n.text,__TYPE__:t.TextDefType})),t.fromText=function(n){return{text:n}}},13008:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromTimestamp=t.TimestampDef=t.TimestampDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.TimestampDefType="timestampDef",t.TimestampDef=(0,u.mapOutput)(i.strict({timestamp:i.string}),n=>({name:n.timestamp,__TYPE__:t.TimestampDefType})),t.fromTimestamp=function(n){return{timestamp:n}}},53526:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromUID=t.UIDDef=t.UIDDefType=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(2932);t.UIDDefType="UIDDef",t.UIDDef=(0,u.mapOutput)(i.strict({uid:i.string}),n=>({name:n.uid,__TYPE__:t.UIDDefType})),t.fromUID=function(n){return{uid:n}}},67884:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromWidget=t.WidgetDef=t.isStaticFieldDef=void 0;let r=e(87783),i=e(54249),u=r.__importStar(e(87830)),o=e(1612),a=e(86714);t.isStaticFieldDef=function(n){return n.__TYPE__!==o.SimpleSliceDefType&&n.__TYPE__!==o.SharedSliceDefType&&n.__TYPE__!==o.CompositeSliceDefType&&n.__TYPE__!==o.SlicesDefType},t.WidgetDef=u.union([a.StaticDef,o.SlicesDef,o.SliceDef]),t.fromWidget=function(n,t,e){switch(t.type){case i.WidgetTypes.LegacySlices:case i.WidgetTypes.Slices:return(0,o.fromSlices)(n,t,e);default:return(0,a.fromStatic)(n,t)}}},239:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromCustomType=t.ApiModel=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=e(67884);t.ApiModel=i.strict({id:i.string,definitions:i.array(u.WidgetDef)}),t.fromCustomType=function(n,t){let e=Object.values(n.json).map(n=>Object.entries(n)).reduce((n,t)=>[...n,...t],[]),r=e.map(([n,e])=>(0,u.fromWidget)(n,e,t));return{id:n.id,definitions:r}},r.__exportStar(e(75892),t),r.__exportStar(e(14871),t),r.__exportStar(e(34540),t),r.__exportStar(e(63585),t),r.__exportStar(e(98062),t),r.__exportStar(e(48767),t),r.__exportStar(e(48568),t),r.__exportStar(e(55702),t),r.__exportStar(e(25329),t),r.__exportStar(e(27956),t),r.__exportStar(e(55598),t),r.__exportStar(e(49844),t),r.__exportStar(e(63204),t),r.__exportStar(e(62543),t),r.__exportStar(e(99169),t),r.__exportStar(e(1612),t),r.__exportStar(e(86714),t),r.__exportStar(e(18213),t),r.__exportStar(e(22059),t),r.__exportStar(e(13008),t),r.__exportStar(e(53526),t),r.__exportStar(e(67884),t)},55094:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromCompositeSlice=t.CompositeSliceDef=t.CompositeSliceDefType=void 0;let r=e(87783),i=e(54249),u=e(47320),o=r.__importStar(e(87830)),a=e(48568),c=e(99169);t.CompositeSliceDefType="compositeSliceDef",t.CompositeSliceDef=(0,u.addType)(o.type({name:o.string,primary:o.array(c.SimpleFieldDef),items:a.GroupDef}),t.CompositeSliceDefType),t.fromCompositeSlice=function(n,t){return{name:n,primary:Object.entries(t["non-repeat"]||{}).map(([n,t])=>(0,c.fromSimpleField)(n,t)),items:(0,a.fromGroup)(n,{type:i.WidgetTypes.Group,config:{fields:t.repeat||{}}})}}},16375:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSharedSlice=t.SharedSliceDef=t.SharedSliceDefType=t.VariationDef=t.VariationDefType=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830)),o=e(99169);t.VariationDefType="variationDef",t.VariationDef=(0,i.addType)(u.strict({id:u.string,primary:u.array(o.SimpleFieldDef),items:u.array(o.SimpleFieldDef),version:u.string}),t.VariationDefType),t.SharedSliceDefType="sharedSliceDef",t.SharedSliceDef=(0,i.addType)(u.strict({name:u.string,variations:u.array(t.VariationDef)}),t.SharedSliceDefType),t.fromSharedSlice=function(n,t){return{name:n,variations:t.variations.map(n=>({id:n.id,primary:Object.entries(n.primary||{}).map(([n,t])=>(0,o.fromSimpleField)(n,t)),items:Object.entries(n.items||{}).map(([n,t])=>(0,o.fromSimpleField)(n,t)),version:n.version}))}}},51572:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSimpleSlice=t.SimpleSliceDef=t.SimpleSliceDefType=void 0;let r=e(87783),i=e(47320),u=r.__importStar(e(87830)),o=e(86714);t.SimpleSliceDefType="simpleSliceDef",t.SimpleSliceDef=(0,i.addType)(u.type({name:u.string,widget:o.StaticDef}),t.SimpleSliceDefType),t.fromSimpleSlice=function(n,t){return{name:n,widget:(0,o.fromStatic)(n,t)}}},1566:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSlice=t.SliceDef=void 0;let r=e(87783),i=e(66903),u=r.__importStar(e(87830)),o=e(1612),a=e(55094),c=e(16375),f=e(51572);t.SliceDef=u.union([f.SimpleSliceDef,c.SharedSliceDef,a.CompositeSliceDef]),t.fromSlice=function(n,t){switch(t.type){case i.SlicesTypes.SharedSlice:return(0,o.fromSharedSlice)(n,t);case i.SlicesTypes.Slice:return(0,o.fromCompositeSlice)(n,t);default:return(0,f.fromSimpleSlice)(n,t)}}},83673:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.fromSlices=t.SlicesDef=t.SlicesDefType=void 0;let r=e(87783),i=e(66903),u=e(47320),o=r.__importStar(e(87830)),a=e(1566);t.SlicesDefType="slicesDef",t.SlicesDef=(0,u.addType)(o.type({name:o.string,slices:o.array(a.SliceDef)}),t.SlicesDefType),t.fromSlices=function(n,t,e){var r;return{name:n,slices:Object.entries((null===(r=t.config)||void 0===r?void 0:r.choices)||{}).reduce((n,[t,r])=>{if(r.type===i.SlicesTypes.SharedSlice){let u=e[t];return u?[...n,(0,a.fromSlice)(t,u)]:n}return[...n,(0,a.fromSlice)(t,r)]},[]).filter(n=>void 0!==n)}}},1612:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783);r.__exportStar(e(55094),t),r.__exportStar(e(16375),t),r.__exportStar(e(51572),t),r.__exportStar(e(1566),t),r.__exportStar(e(83673),t)},15087:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.ApiVersion=void 0,(e=t.ApiVersion||(t.ApiVersion={})).v1="v1",e.v2="v2",e.mocks="mocks"},43134:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.customParam=t.langParam=t.uidParam=t.staticParam=t.LinkResolver=t.Rule=void 0;let r=e(87783),i=r.__importStar(e(87830)),u=i.type({isOptional:i.boolean,name:i.string,type:i.literal("custom")}),o=i.type({isOptional:i.boolean,type:i.literal("uid")}),a=i.type({isOptional:i.boolean,type:i.literal("lang")}),c=i.union([u,o,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(n){return{value:n,type:"static"}},t.uidParam=function(n){return{isOptional:n,type:"uid"}},t.langParam=function(n){return{isOptional:n,type:"lang"}},t.customParam=function(n,t){return{name:n,isOptional:t,type:"custom"}}},35280:function(n,t,e){var r=e(48834).lW;function i(n){return{encode(t){let e=t.length;if(3>=r.byteLength(e.toString(),"utf8")){let i=`${e}`.padStart(3,"0");return n+i+t}throw Error(`ID is too long. Its size is ${e} 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(n,t){return`${n}%%${null!=t?t:""}`},t.decodeDocId=function(n,t){let[e,r]=n.split("%%");if(e&&r)return[e,r];if(e)return[e];throw Error(`Unable to read from for extension ${t} with encoded api key ${n}`)},t.IDEncoder=i,t.IDEncoders={documentLinks:i("=&="),documentUrls:i(">&<"),integrationFields:i("%!%")}},71659:function(n,t,e){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=e(87783),i=r.__importStar(e(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.FieldC)}),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(n){return void 0!==n&&(n.TYPE===t.SimpleFieldType||n.TYPE===t.DocRelationType||n.TYPE===t.GroupType)?n:void 0},t.extractSliceFetchIfAny=function(n){if(void 0!==n&&n.TYPE===t.SliceZoneType)return n}},73985:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkResolver=t.Fetch=t.Extensions=t.ApiVersion=void 0;let r=e(87783);r.__exportStar(e(27380),t),r.__exportStar(e(239),t);var i=e(15087);Object.defineProperty(t,"ApiVersion",{enumerable:!0,get:function(){return i.ApiVersion}}),t.Extensions=r.__importStar(e(35280)),t.Fetch=r.__importStar(e(71659));var u=e(43134);Object.defineProperty(t,"LinkResolver",{enumerable:!0,get:function(){return u.LinkResolver}})},79687:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isEmpty=t.formatDate=t.formatDateTime=t.filterDouble=t.writeEmptyStringOrNull=t.renderIfNoFetchOrFetchDefined=void 0;let r=e(87783),i=r.__importStar(e(72720));t.renderIfNoFetchOrFetchDefined=function(n,t,e){if(void 0===n)return e(void 0);{let r=n[t];return void 0===r?i.none:e(r)}},t.writeEmptyStringOrNull=function(n,t){return null==n?t?"":null:n},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.isEmpty=function(n){for(let t in n)return!1;return!0}},937:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=r.__importDefault(e(65082)),u=n=>({renderV1:(t,e)=>({type:"Group",value:t.value.map(t=>(0,i.default)(n).renderObjectOfSimpleWidgetV1(t.value,null==e?void 0:e.fields))}),renderV2:(t,e,r)=>e.value.map(e=>(0,i.default)(n).renderObjectOfSimpleWidgetV2(e.value,null==r?void 0:r.fields,t.fields,{withFetch:"filter"},{default:"default",withFetch:"default",withFetchField:"default"})),renderDefault:n=>[],renderMocks:(t,e)=>e.value.map(e=>(0,i.default)(n).renderObjectOfSimpleWidgetMocks(e.value,t.fields))});t.default=u},65082:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(75237),u=e(32296),o=e(99616),a=e(45337),c=e(48025),f=e(24299),l=e(12149),p=e(92425),d=r.__importStar(e(72720)),s=e(73985),m=e(71659),h=e(79687),v=e(26041),g=r.__importDefault(e(32955));function y(n){return void 0!==n&&n.TYPE===m.SimpleFieldType?n:void 0}function _(n){return void 0!==n&&n.TYPE===m.DocRelationType?n:void 0}let b=n=>({renderV1(t,e){if(t.__TYPE__===u.StructuredTextContentType)return(0,v.StructuredTextRenderer)(n).renderV1(t,y(e));if(t.__TYPE__===c.ImageContentType)return(0,v.ImageRenderer)(n).renderV1(t);if(t.__TYPE__===i.WidgetTypes.Field)return v.FieldRenderer.renderV1(t);if(t.__TYPE__===l.LinkContentType)return(0,v.LinkRenderer)(n).renderV1(t,_(e));if(t.__TYPE__===u.EmbedContentType)return v.EmbedRenderer.renderV1(t);else if(t.__TYPE__===a.GeoPointContentType)return v.GeoPointRenderer.renderV1(t);else if(t.__TYPE__===i.UIDContentType)return g.default.renderV1(t);else if(t.__TYPE__===f.IntegrationFieldsContentType)return(0,v.IntegrationFieldsRenderer)(n).renderV1(t);else if(t.__TYPE__===u.SeparatorContentType)return v.SeparatorRenderer.renderV1(t);else if(t.__TYPE__===o.BooleanContentType)return v.BooleanRenderer.renderV1(t);else return null},renderV2(t,e,r){if(t.__TYPE__===s.StructuredTextDefType&&u.StructuredTextContent.is(e))return(0,v.StructuredTextRenderer)(n).renderV2(t,e,y(r));if(t.__TYPE__===s.ImageDefType&&u.ImageContent.is(e))return(0,v.ImageRenderer)(n).renderV2(t,e);if(t.__TYPE__===s.LinkDefType&&u.Links.LinkContent.is(e))return(0,v.LinkRenderer)(n).renderV2(t,e,_(r));if(t.__TYPE__===s.EmbedDefType&&u.EmbedContent.is(e))return v.EmbedRenderer.renderV2(t,e);if(t.__TYPE__===s.GeoPointDefType&&u.GeoPointContent.is(e))return v.GeoPointRenderer.renderV2(t,e);else if(t.__TYPE__===s.UIDDefType&&i.UIDContent.is(e))return g.default.renderV2(t,e);else if(t.__TYPE__===s.IntegrationFieldDefType&&u.IntegrationFieldsContent.is(e))return(0,v.IntegrationFieldsRenderer)(n).renderV2(t,e);else if(t.__TYPE__===s.SeparatorDefType&&u.SeparatorContent.is(e))return v.SeparatorRenderer.renderV2(t,e);else if(t.__TYPE__===s.BooleanFieldDefType&&u.BooleanContent.is(e))return v.BooleanRenderer.renderV2(t,e);else if((null==e?void 0:e.__TYPE__)===i.WidgetTypes.Field)return v.FieldRenderer.renderV2(t,e);else return null},renderDefault(t){if(t.__TYPE__===s.LinkDefType)return(0,v.LinkRenderer)(n).renderDefault(t);if(t.__TYPE__===s.EmbedDefType)return v.EmbedRenderer.renderDefault(t);if(t.__TYPE__===s.GeoPointDefType)return v.GeoPointRenderer.renderDefault(t);if(t.__TYPE__===s.StructuredTextDefType)return(0,v.StructuredTextRenderer)(n).renderDefault(t);if(t.__TYPE__===s.ImageDefType)return(0,v.ImageRenderer)(n).renderDefault(t);else if(t.__TYPE__===s.SeparatorDefType)return v.SeparatorRenderer.renderDefault(t);else if(t.__TYPE__===s.UIDDefType)return g.default.renderDefault(t);else if(t.__TYPE__===s.BooleanFieldDefType)return v.BooleanRenderer.renderDefault(t);else if(t.__TYPE__===s.IntegrationFieldDefType)return(0,v.IntegrationFieldsRenderer)(n).renderDefault(t);else return v.FieldRenderer.renderDefault(t)},renderMocks(t,e){if(t.__TYPE__===s.StructuredTextDefType&&u.StructuredTextContent.is(e))return(0,v.StructuredTextRenderer)(n).renderMocks(t,e);if(t.__TYPE__===s.ImageDefType&&u.ImageContent.is(e))return(0,v.ImageRenderer)(n).renderMocks(t,e);if(t.__TYPE__===s.LinkDefType&&u.Links.LinkContent.is(e))return(0,v.LinkRenderer)(n).renderMocks(t,e);if(t.__TYPE__===s.EmbedDefType&&u.EmbedContent.is(e))return v.EmbedRenderer.renderMocks(t,e);if(t.__TYPE__===s.GeoPointDefType&&u.GeoPointContent.is(e))return v.GeoPointRenderer.renderMocks(t,e);else if(t.__TYPE__===s.UIDDefType&&i.UIDContent.is(e))return g.default.renderMocks(t,e);else if(t.__TYPE__===s.IntegrationFieldDefType&&u.IntegrationFieldsContent.is(e))return(0,v.IntegrationFieldsRenderer)(n).renderMocks(t,e);else if(t.__TYPE__===s.SeparatorDefType&&u.SeparatorContent.is(e))return v.SeparatorRenderer.renderMocks(t,e);else if(t.__TYPE__===s.BooleanFieldDefType&&u.BooleanContent.is(e))return v.BooleanRenderer.renderMocks(t,e);else if((null==e?void 0:e.__TYPE__)===i.WidgetTypes.Field)return v.FieldRenderer.renderMocks(t,e);else return null},renderObjectOfSimpleWidgetV1(n,t){let e=n instanceof Array?n:Object.entries(n);return Object.fromEntries((0,p.compact)(e.map(([n,e])=>i.EmptyContent.is(e)?d.none:(0,h.renderIfNoFetchOrFetchDefined)(t,n,t=>d.some([n,this.renderV1(e,t)])))))},renderObjectOfSimpleWidgetV2(n,t,e,r,u){let o=n instanceof Array?Object.fromEntries(n):n,a={};for(let c of e){let f=c.name,l=o[f];if(void 0===l)t&&f in t||!t?a[f]=this.renderDefault(c):t&&"default"===r.withFetch&&(a[f]=this.renderDefault(c));else if(i.EmptyContent.is(l))t&&f in t?"default"===u.withFetchField?a[f]=this.renderDefault(c):"render"===u.withFetchField&&(a[f]=this.renderV2(c,l,t[f])):t?"default"===u.withFetch&&(a[f]=this.renderDefault(c)):"default"===u.default?a[f]=this.renderDefault(c):"render"===u.default&&(a[f]=this.renderV2(c,l));else{let p=(0,h.renderIfNoFetchOrFetchDefined)(t,f,n=>d.some(this.renderV2(c,l,n)));d.isSome(p)&&(a[f]=p.value)}}return a},renderObjectOfSimpleWidgetMocks(n,t){let e=n instanceof Array?Object.fromEntries(n):n,r={};for(let u of t){let o=u.name,a=e[o];if(void 0===a)r[o]=this.renderDefault(u);else if(i.EmptyContent.is(a))r[o]=this.renderDefault(u);else{let c=(0,h.renderIfNoFetchOrFetchDefined)(void 0,o,()=>d.some(this.renderMocks(u,a)));d.isSome(c)&&(r[o]=c.value)}}return r}});t.default=b},12706:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(75237),u=e(73985),o=e(71659),a=r.__importDefault(e(937)),c=r.__importDefault(e(65082));function f(n){return void 0!==n&&n.TYPE===o.GroupType?n:void 0}function l(n){return void 0!==n&&n.TYPE!==o.GroupType?n:void 0}let p=n=>({renderV1:(t,e)=>t.__TYPE__===i.WidgetTypes.Group?(0,a.default)(n).renderV1(t,f(e)):(0,c.default)(n).renderV1(t,l(e)),renderV2(t,e,r){return i.SimpleWidgetContent.is(e)&&(0,u.isSimpleFieldDef)(t)?(0,c.default)(n).renderV2(t,e,l(r)):e.__TYPE__===i.WidgetTypes.Group&&t.__TYPE__===u.GroupDefType?(0,a.default)(n).renderV2(t,e,f(r)):this.renderDefault(t)},renderDefault:t=>t.__TYPE__===u.GroupDefType?(0,a.default)(n).renderDefault(t):(0,c.default)(n).renderDefault(t),renderMocks(t,e){return i.SimpleWidgetContent.is(e)&&(0,u.isSimpleFieldDef)(t)?(0,c.default)(n).renderMocks(t,e):e.__TYPE__===i.WidgetTypes.Group&&t.__TYPE__===u.GroupDefType?(0,a.default)(n).renderMocks(t,e):this.renderDefault(t)}});t.default=p},32955:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(75237);t.default={renderV1:n=>({value:r.UIDContent.encode(n)}),renderV2:(n,t)=>r.UIDContent.encode(t),renderDefault:n=>null,renderMocks:(n,t)=>r.UIDContent.encode(t)}},81542:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDRenderer=t.StaticWidgetRenderer=t.SimpleWidgetRenderer=t.GroupRenderer=void 0;let r=e(87783);var i=e(937);Object.defineProperty(t,"GroupRenderer",{enumerable:!0,get:function(){return r.__importDefault(i).default}}),r.__exportStar(e(26041),t);var u=e(65082);Object.defineProperty(t,"SimpleWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(u).default}}),r.__exportStar(e(94814),t);var o=e(12706);Object.defineProperty(t,"StaticWidgetRenderer",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var a=e(32955);Object.defineProperty(t,"UIDRenderer",{enumerable:!0,get:function(){return r.__importDefault(a).default}})},7796:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Boolean",value:n.value}),renderV2:(n,t)=>t.value,renderDefault:n=>null,renderMocks(n,t){return this.renderV2(n,t)}}},89591:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Embed",value:{oembed:n.all}}),renderV2:(n,t)=>t.all,renderDefault:n=>({}),renderMocks(n,t){return this.renderV2(n,t)}}},49357:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(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)$/,u=/^(\d{1,4})-([0-9]{1,2})-([0-9]{1,2})$/;function o(n){let[t,e,r]=[n[1],n[2],n[3]];return`${t.padStart(4,"0")}-${e.padStart(2,"0")}-${r.padStart(2,"0")}T00:00:00.000+0000`}t.default={renderV1(n){let t={type:n.type,value:null};switch(n.type){case"Number":{let e=(0,r.filterDouble)(n.value);return{...t,value:e}}case"Date":try{let a=u.exec(n.value);if(a){let c=new Date(o(a));return{...t,value:(0,r.formatDate)(c)}}return t}catch(f){return console.warn(`Unable to render Date value with ${n.value}: ${f.toString()}`),t}case"Timestamp":try{if(i.test(n.value)){let l=new Date(n.value);return{...t,value:(0,r.formatDateTime)(l)}}return t}catch(p){return console.warn(`Unable to render Timestamp value with ${n.value}: ${p.toString()}`),t}default:return{...t,value:n.value}}},renderV2(n,t){switch(t.type){case"Number":return(0,r.filterDouble)(t.value);case"Date":try{let e=u.exec(t.value);if(e){let a=new Date(o(e));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:n=>null,renderMocks(n,t){return this.renderV2(n,t)}}},42715:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"GeoPoint",value:{latitude:n.position.lat,longitude:n.position.lng}}),renderV2:(n,t)=>({latitude:t.position.lat,longitude:t.position.lng}),renderDefault:n=>({}),renderMocks(n,t){return this.renderV2(n,t)}}},6637:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(79687);function i(n,t){return{dimensions:{width:n.width,height:n.height},alt:(0,r.writeEmptyStringOrNull)(n.alt,t.emptyStringInsteadOfNull),copyright:(0,r.writeEmptyStringOrNull)(n.credits,t.emptyStringInsteadOfNull),url:t.urlRewriter.rewriteImageUrl(n)}}let u=n=>({renderV1(t){if(t.thumbnails){let e=Object.entries(t.thumbnails).reduce((t,[e,r])=>({...t,[e.toLowerCase()]:i(r,n)}),{});return{type:"Image",value:{main:i(t,n),views:e}}}return{type:"Image",value:{main:i(t,n),views:[]}}},renderV2(t,e){let r=i(e,n);if(e.thumbnails&&e.thumbnails){let u=Object.entries(e.thumbnails).reduce((t,[e,r])=>Object.assign(t,{[e]:i(r,n)}),{});return Object.assign(r,u)}return r},renderDefault:n=>n.config.thumbnails.reduce((n,t)=>({...n,[t]:{}}),{}),renderMocks(n,t){return this.renderV2(n,t)}});t.default=u},6413:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});let e=n=>({renderV1(t){try{return{type:"IntegrationFields",value:n.Extension.encoders.integrationFields.encode(t.value)}}catch(e){return{value:{}}}},renderV2(t,e){try{return n.Extension.encoders.integrationFields.encode(e.value)}catch(r){return{}}},renderDefault:n=>null,renderMocks(n){return this.renderDefault(n)}});t.default=e},50335:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(4633),i=e(73985);function u(n){return{id:n,type:r.BROKEN_CUSTOM_TYPE,tags:[],isBroken:!0}}let o=n=>({renderV1(t,e){try{let r=n.Extension.DocEncoder.encodeDocId(t.id,null==e?void 0:e.uuid);return{type:"Link.document",value:n.Extension.encoders.documentLinks.encode(r)}}catch(o){var i;return{value:u(i=t.id)}}},renderV2(t,e,r){try{let i=n.Extension.DocEncoder.encodeDocId(e.id,null==r?void 0:r.uuid);return n.Extension.encoders.documentLinks.encode(i)}catch(o){return u(e.id)}},renderMocks(n,t){let e=i.DocumentLinkDef.is(n)&&n.customtypes[0]||"mock";return{id:t.id,link_type:"Document",type:e,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(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1(n){let t="string"==typeof n.target?{target:n.target}:{};return{type:"Link.web",value:{url:n.url,...t}}},renderV2(n,t){let e={link_type:"Web",url:t.url};return Object.assign(e,"string"==typeof t.target?{target:t.target}:{})},renderMocks(n,t){return this.renderV2(n,t)}}},50632:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});let e=n=>({renderV1:t=>({type:"Link.file",value:{file:{name:t.name,kind:t.kind,url:n.urlRewriter.rewriteFileUrl(t.url),size:t.size}}}),renderV2:(t,e)=>({link_type:"Media",name:e.name,kind:e.kind,url:n.urlRewriter.rewriteFileUrl(e.url),size:e.size}),renderMocks:(n,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB"})});t.default=e},83434:function(n,t){Object.defineProperty(t,"__esModule",{value:!0});let e=n=>({renderV1:t=>({type:"Link.image",value:{image:{name:t.name,kind:t.kind,url:n.urlRewriter.optimizeImageUrl(t.url),size:t.size,height:t.height,width:t.width}}}),renderV2:(t,e)=>({link_type:"Media",name:e.name,kind:e.kind,url:n.urlRewriter.optimizeImageUrl(e.url),size:e.size,height:e.height,width:e.width}),renderMocks:(n,t)=>({link_type:"Media",name:"mock",kind:"image",url:"https://source.unsplash.com/random",size:"10kB",height:"1920px",width:"1080px"})});t.default=e},57777:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageLinkRenderer=t.FileLinkRenderer=t.ExternalLinkRenderer=t.DocumentLinkRenderer=void 0;let r=e(87783),i=e(4633),u=e(239),o=r.__importDefault(e(50335));t.DocumentLinkRenderer=o.default;let a=r.__importDefault(e(15802));t.ExternalLinkRenderer=a.default;let c=r.__importDefault(e(50632));t.FileLinkRenderer=c.default;let f=r.__importDefault(e(83434));t.ImageLinkRenderer=f.default;let l=n=>({renderV1(t,e){let r=i.Link.encode(t.value);if("ImageLink"===r.__TYPE__)return(0,f.default)(n).renderV1(r);if("DocumentLink"===r.__TYPE__)return(0,o.default)(n).renderV1(r,e);if("FileLink"===r.__TYPE__)return(0,c.default)(n).renderV1(r);if("ExternalLink"===r.__TYPE__)return a.default.renderV1(r);throw Error(`No rendered found for link ${JSON.stringify(t)}`)},renderV2(t,e,r){let l=i.Link.encode(e.value);return"ImageLink"===l.__TYPE__&&((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))?(0,f.default)(n).renderV2(t.config,l):((0,u.isDocumentLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"DocumentLink"===l.__TYPE__?(0,o.default)(n).renderV2(t.config,l,r):((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"FileLink"===l.__TYPE__?(0,c.default)(n).renderV2(t.config,l):((0,u.isWebLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"ExternalLink"===l.__TYPE__?a.default.renderV2(t.config,l):this.renderDefault(t)},renderDefault(n){switch(n.config.__TYPE__){case"ConfigMediaLinkDef":return{link_type:"Media"};case"ConfigDocumentLinkDef":return{link_type:"Document"};case"ConfigWebLinkDef":return{link_type:"Web"};case"ConfigAnyLinkDef":return{link_type:"Any"}}},renderMocks(t,e){let r=i.Link.encode(e.value);return"ImageLink"===r.__TYPE__&&((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))?(0,f.default)(n).renderMocks(t.config,r):((0,u.isDocumentLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"DocumentLink"===r.__TYPE__?(0,o.default)(n).renderMocks(t.config,r):((0,u.isMediaLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"FileLink"===r.__TYPE__?(0,c.default)(n).renderMocks(t.config,r):((0,u.isWebLinkDef)(t)||(0,u.isAnyLinkDef)(t))&&"ExternalLink"===r.__TYPE__?a.default.renderMocks(t.config,r):this.renderDefault(t)}});t.default=l},97562:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={renderV1:n=>({type:"Separator"}),renderV2:(n,t)=>!0,renderDefault:n=>!0,renderMocks(n,t){return this.renderV2(n,t)}}},83775:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(4633),u=e(3773),o=r.__importStar(e(87412)),a=e(73985),c=e(73985),f=e(79687),l=r.__importDefault(e(57777));function p(n,t,e){let r=()=>{if(i.is.documentLink(n.value))return i.LinksTypes.DocumentLink;if(i.is.imageLink(n.value))return i.LinksTypes.ImageLink;if(i.is.fileLink(n.value))return i.LinksTypes.FileLink;if(i.is.externalLink(n.value))return i.LinksTypes.ExternalLink;throw Error(`[UNREACHABLE] unknown Link type for ${JSON.stringify(n)}`)};return t===a.ApiVersion.v1?(0,l.default)(e).renderV1(n,void 0):t===a.ApiVersion.v2?(0,l.default)(e).renderV2((0,c.defaultLinkDef)(r()),n,void 0):t===a.ApiVersion.mocks?(0,l.default)(e).renderMocks((0,c.defaultLinkDef)(r()),n):void 0}let d=n=>({renderBlock:t=>e=>{if((0,u.checkImageBlock)(t)){let r=(()=>{if(t.data.linkTo){let r={__TYPE__:i.LinksTypes.LinkContent,value:i.Link.encode(t.data.linkTo)};return{linkTo:p(r,e,n)}}return{}})(),a=t.label?{label:t.label}:{},c=t.direction?{direction:t.direction}:{};return{type:"image",url:n.urlRewriter.rewriteImageUrl(t.data),alt:(0,f.writeEmptyStringOrNull)(t.data.alt,n.emptyStringInsteadOfNull),copyright:(0,f.writeEmptyStringOrNull)(t.data.credits,n.emptyStringInsteadOfNull),dimensions:{width:t.data.width,height:t.data.height},...r,...a,...c}}if((0,u.checkEmbedBlock)(t)){let l=t.label?{label:t.label}:{},d=t.direction?{direction:t.direction}:{};return{type:"embed",oembed:t.data.all,...l,...d}}{let s=t.label?{label:t.label}:{},m=t.direction?{direction:t.direction}:{},h=(t.content.spans||[]).map(t=>{let r={start:t.start,end:t.end,type:t.type};if("hyperlink"===t.type){let u=i.LinkContent.decode(t.data),a=(()=>{if(o.isRight(u)){let t={__TYPE__:i.LinksTypes.LinkContent,value:i.Link.encode(u.right.value)};return p(t,e,n)}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,...s,spans:h,...m}}}});t.default=d},558:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(46354),u=e(14632),o=r.__importStar(e(72720)),a=e(73985),c=r.__importDefault(e(83775));function f(n,t){let e=(0,u.pipe)(o.fromNullable(n.value.find(n=>n.type.startsWith("heading"))),o.alt(()=>o.fromNullable(n.value.find(n=>"embed"!==n.type&&"image"!==n.type))),o.map(n=>[n]),o.getOrElse(()=>[]));return t({__TYPE__:i.StructuredTextContentType,value:e})}let l=n=>({renderV1(t,e){let r=t.value.map(t=>(0,c.default)(n).renderBlock(t)(a.ApiVersion.v1));return void 0!==e&&e.legacy?f(t,t=>t.value.map(t=>(0,c.default)(n).renderBlock(t)(a.ApiVersion.v1))):{type:"StructuredText",value:r}},renderV2(t,e,r){return void 0!=r&&r.legacy?f(e,n=>this.renderV2(t,n,void 0)):e.value.map(t=>(0,c.default)(n).renderBlock(t)(a.ApiVersion.v2))},renderDefault:n=>[],renderMocks:(t,e)=>e.value.map(t=>(0,c.default)(n).renderBlock(t)(a.ApiVersion.mocks))});t.default=l},26041:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};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=e(7796);Object.defineProperty(t,"BooleanRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=e(89591);Object.defineProperty(t,"EmbedRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=e(49357);Object.defineProperty(t,"FieldRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=e(42715);Object.defineProperty(t,"GeoPointRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=e(6637);Object.defineProperty(t,"ImageRenderer",{enumerable:!0,get:function(){return r(c).default}});var f=e(6413);Object.defineProperty(t,"IntegrationFieldsRenderer",{enumerable:!0,get:function(){return r(f).default}});var l=e(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=e(97562);Object.defineProperty(t,"SeparatorRenderer",{enumerable:!0,get:function(){return r(p).default}});var d=e(558);Object.defineProperty(t,"StructuredTextRenderer",{enumerable:!0,get:function(){return r(d).default}})},24485:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(71659),u=e(79687),o=r.__importDefault(e(65082)),a=n=>({renderV1(t,e){var r,i;let a=null===(r=null==e?void 0:e.repeat)||void 0===r?void 0:r.fields,c=null===(i=null==e?void 0:e.nonRepeat)||void 0===i?void 0:i.fields,f=t.repeat.flatMap(t=>{let e=(0,o.default)(n).renderObjectOfSimpleWidgetV1(t.value,a);return(0,u.isEmpty)(e)?[]:[e]}),l=(0,o.default)(n).renderObjectOfSimpleWidgetV1(t.nonRepeat,c);return{"non-repeat":l,repeat:f}},renderV2(t,e,r){var u;let a=void 0===r?void 0:{TYPE:i.GroupType,name:t.name,fields:r.repeat.fields},c=null===(u=null==r?void 0:r.nonRepeat)||void 0===u?void 0:u.fields,f=e.repeat.map(e=>(0,o.default)(n).renderObjectOfSimpleWidgetV2(e.value,null==a?void 0:a.fields,t.items.fields,{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"})),l=(0,o.default)(n).renderObjectOfSimpleWidgetV2(e.nonRepeat,c,t.primary,{withFetch:"default"},{default:"render",withFetch:"filter",withFetchField:"render"});return{primary:l,items:f}},renderDefault:n=>({}),renderMocks(t,e){let r=e.repeat.map(e=>(0,o.default)(n).renderObjectOfSimpleWidgetMocks(e.value,t.items.fields)),i=(0,o.default)(n).renderObjectOfSimpleWidgetMocks(e.nonRepeat,t.primary);return{primary:i,items:r}}});t.default=a},68422:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=r.__importDefault(e(65082));function u(n,t,e){var r,i,u;return null===(u=null===(i=null===(r=null==e?void 0:e.variations)||void 0===r?void 0:r[n])||void 0===i?void 0:i[t])||void 0===u?void 0:u.fields}let o=n=>({renderV1(t,e){let r=t.items.map(r=>(0,i.default)(n).renderObjectOfSimpleWidgetV1(r.value,u(t.variation,"repeat",e))),o=(0,i.default)(n).renderObjectOfSimpleWidgetV1(t.primary,u(t.variation,"nonRepeat",e));return{variation:t.variation,items:r,primary:o}},renderV2(t,e,r){let o=t.variations.find(n=>n.id===e.variation);if(void 0===o)return this.renderDefault(t);let a=e.items.map(t=>(0,i.default)(n).renderObjectOfSimpleWidgetV2(t.value,u(e.variation,"repeat",r),o.items,{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"})),c=(0,i.default)(n).renderObjectOfSimpleWidgetV2(e.primary,u(e.variation,"nonRepeat",r),o.primary,{withFetch:"filter"},{default:"default",withFetch:"filter",withFetchField:"render"});return{variation:e.variation,version:o.version,items:a,primary:c}},renderDefault:n=>({}),renderMocks(t,e){let r=t.variations.find(n=>n.id===e.variation);if(void 0===r)return this.renderDefault(t);let u=e.items.map(t=>(0,i.default)(n).renderObjectOfSimpleWidgetMocks(t.value,r.items)),o=(0,i.default)(n).renderObjectOfSimpleWidgetMocks(e.primary,r.primary);return{variation:e.variation,version:r.version,items:u,primary:o}}});t.default=o},57962:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(17306),u=r.__importStar(e(72720)),o=r.__importDefault(e(12706)),a=n=>({renderV1:(t,e)=>t.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(n).renderV1(t,e)}),renderV2:(t,e,r)=>e.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(n).renderV2(t.widget,e,r)}),renderDefault:n=>({}),renderMocks:(t,e)=>e.__TYPE__===i.EmptyContentType?u.none:u.some({value:(0,o.default)(n).renderMocks(t.widget,e)})});t.default=a},6324:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(16360),u=r.__importStar(e(72720)),o=e(73985),a=e(71659),c=r.__importDefault(e(24485)),f=r.__importDefault(e(68422)),l=r.__importDefault(e(57962)),p={extractCompositeSlice(n){if(void 0!==n&&n.TYPE===a.CompositeSliceType)return n},extractSharedSlice(n){if(void 0!==n&&n.TYPE===a.SharedSliceType)return n},extractGroupOrField(n){if(void 0!==n&&n.TYPE!==a.CompositeSliceType&&n.TYPE!==a.SharedSliceType)return n}},d=n=>({renderV1:(t,e)=>t.__TYPE__===i.CompositeSliceContentType?u.some((0,c.default)(n).renderV1(t,p.extractCompositeSlice(e))):t.__TYPE__===i.SharedSliceContentType?u.some((0,f.default)(n).renderV1(t,p.extractSharedSlice(e))):(0,l.default)(n).renderV1(t,p.extractGroupOrField(e)),renderV2(t,e,r){if(e.__TYPE__===i.CompositeSliceContentType){if(t.__TYPE__===o.CompositeSliceDefType)return u.some((0,c.default)(n).renderV2(t,e,p.extractCompositeSlice(r)))}else if(e&&e.__TYPE__===i.SharedSliceContentType){if(t.__TYPE__===o.SharedSliceDefType)return u.some((0,f.default)(n).renderV2(t,e,p.extractSharedSlice(r)))}else if(t.__TYPE__===o.SimpleSliceDefType)return(0,l.default)(n).renderV2(t,e,p.extractGroupOrField(r));return u.some(this.renderDefault(t))},renderDefault:n=>({}),renderMocks(t,e){if(e.__TYPE__===i.CompositeSliceContentType){if(t.__TYPE__===o.CompositeSliceDefType)return u.some((0,c.default)(n).renderMocks(t,e))}else if(e&&e.__TYPE__===i.SharedSliceContentType){if(t.__TYPE__===o.SharedSliceDefType)return u.some((0,f.default)(n).renderMocks(t,e))}else if(t.__TYPE__===o.SimpleSliceDefType)return(0,l.default)(n).renderMocks(t,e);return u.some(this.renderDefault(t))}});t.default=d},3758:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(17306),u=e(42275),o=e(92425),a=r.__importStar(e(20492)),c=e(39304),f=e(79687),l=r.__importDefault(e(6324));function p(n,t){let e=RegExp(`^(${t})\\$\\w{8}-\\w{4}-\\w{4}-\\w{4}-\\w{12}$`);return n.match(e)?n:`${t}$${(0,c.v4)()}`}let d=n=>({renderV1:(t,e)=>({type:"SliceZone",value:(function(n,t,e){let r=null==t?void 0:t.slices;return(0,o.compact)(n.value.map(n=>(0,u.pipe)((0,f.renderIfNoFetchOrFetchDefined)(r,n.key,t=>(0,l.default)(e).renderV1(n.widget,t)),a.map(t=>[n,t]))))})(t,e,n).map(([n,t])=>{var e;return{...t,id:p(n.key,n.name),slice_type:n.name,slice_label:null!==(e=n.maybeLabel)&&void 0!==e?e:null,type:"Slice"}})}),renderV2(t,e,r){let c=Object.fromEntries(t.slices.map(n=>[n.name,n])),d=null==r?void 0:r.slices;return(0,o.compact)(e.value.map(t=>(0,f.renderIfNoFetchOrFetchDefined)(d,t.name,e=>{var r,o,f,d;return"__TYPE__"in t.widget&&t.widget.__TYPE__===i.EmptyContentType?a.none:t.name in c?(0,u.pipe)((0,l.default)(n).renderV2(c[t.name],t.widget,e),a.map(n=>{var e;return{...n,id:p(t.key,t.name),slice_type:t.name,slice_label:null!==(e=t.maybeLabel)&&void 0!==e?e:null}})):a.none})))},renderDefault:n=>[],renderMocks(n,t){return this.renderV2(n,t)}});t.default=d},94814:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetRenderer=t.SlicesRenderer=t.SimpleSliceRenderer=t.SharedSliceRenderer=t.CompositeSliceRenderer=void 0;var i=e(24485);Object.defineProperty(t,"CompositeSliceRenderer",{enumerable:!0,get:function(){return r(i).default}});var u=e(68422);Object.defineProperty(t,"SharedSliceRenderer",{enumerable:!0,get:function(){return r(u).default}});var o=e(57962);Object.defineProperty(t,"SimpleSliceRenderer",{enumerable:!0,get:function(){return r(o).default}});var a=e(3758);Object.defineProperty(t,"SlicesRenderer",{enumerable:!0,get:function(){return r(a).default}});var c=e(6324);Object.defineProperty(t,"SliceWidgetRenderer",{enumerable:!0,get:function(){return r(c).default}})},73045:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(75237),o=e(37581),a=(0,r.__importDefault)(e(97662)),c=e(32512),f=i.exact(i.partial({label:o.StringOrNull,repeat:i.boolean,fields:i.record(u.WidgetKey,a.default)})),l=i.exact(i.intersection([i.type({type:i.literal(c.WidgetTypes.Group)}),i.partial({fieldset:o.StringOrNull,icon:i.string,description:i.string,config:f}),]));t.default=l},80260:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.UID)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},34716:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=(0,r.__importDefault)(e(73045)),o=(0,r.__importDefault)(e(97662)),a=e(8972),c=(0,r.__importDefault)(e(80260)),f=e(32512);function l(n){return i.union([c.default,o.default,u.default,n])}t.widgetReader=l,t.StaticWidget=l(a.StaticSlices),t.DynamicWidget=l(a.DynamicSlices),t.Widgets={toStatic(n,t){switch(n.type){case f.WidgetTypes.LegacySlices:case f.WidgetTypes.Slices:return a.Slices.toStatic(n,t);default:return n}}}},32512:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetTypes=void 0,t.WidgetTypes={Text:"Text",RichText:"StructuredText",Color:"Color",Image:"Image",Date:"Date",Timestamp:"Timestamp",Number:"Number",Range:"Range",Select:"Select",Link:"Link",Embed:"Embed",GeoPoint:"GeoPoint",Separator:"Separator",UID:"UID",BooleanField:"Boolean",IntegrationField:"IntegrationFields",Group:"Group",Slices:"Slices",LegacySlices:"Choice"}},54249:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetTypes=t.Widget=t.UID=t.Slices=t.Shared=t.Nestable=t.Group=void 0;let r=e(87783);var i=e(73045);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}}),t.Nestable=(0,r.__importStar)(e(46239)),t.Shared=(0,r.__importStar)(e(94631)),t.Slices=(0,r.__importStar)(e(66903));var u=e(80260);Object.defineProperty(t,"UID",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),t.Widget=(0,r.__importStar)(e(34716));var o=e(32512);Object.defineProperty(t,"WidgetTypes",{enumerable:!0,get:function(){return o.WidgetTypes}})},13071:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,default_value:i.boolean,placeholder_true:i.string,placeholder_false:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.BooleanField)}),i.partial({config:a}),]));t.default=c},98871:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Color)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},68829:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Date)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},82427:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Embed)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},56477:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.GeoPoint)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},4813:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=(0,r.__importDefault)(e(62291)),a=e(32512),c=i.exact(i.intersection([i.type({name:i.string}),o.default,])),f=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,constraint:o.default,thumbnails:i.readonlyArray(c)})),l=i.exact(i.intersection([i.type({type:i.literal(a.WidgetTypes.Image)}),i.partial({fieldset:u.StringOrNull,config:f}),]));t.default=l},25272:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,catalog:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.IntegrationField)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},68751:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(69624),a=e(37581),c=e(32512),f=n=>{if(n instanceof Array){let t=n.reduce((n,t)=>n&&"string"==typeof t,!0);if(t)return u.success(n)}},l=n=>{if("string"==typeof n)return u.success([n])},p=new u.Type("MasksArrayString",n=>n instanceof Array,(n,t)=>i.either.chain(u.union([u.array(u.string),u.string]).validate(n,t),e=>f(e)||l(e)||u.failure(n,t)),n=>n),d=u.exact(u.partial({label:a.StringOrNull,useAsTitle:u.boolean,placeholder:u.string,select:(0,o.withFallback)(u.union([u.literal("media"),u.literal("document"),u.literal("web"),u.null,]),null),customtypes:u.readonlyArray(u.string),masks:p,tags:p,allowTargetBlank:u.boolean})),s=u.exact(u.intersection([u.type({type:u.literal(c.WidgetTypes.Link)}),u.partial({fieldset:a.StringOrNull,config:d}),]));t.default=s},97662:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=(0,r.__importDefault)(e(13071)),o=(0,r.__importDefault)(e(98871)),a=(0,r.__importDefault)(e(68829)),c=(0,r.__importDefault)(e(82427)),f=(0,r.__importDefault)(e(56477)),l=(0,r.__importDefault)(e(4813)),p=(0,r.__importDefault)(e(25272)),d=(0,r.__importDefault)(e(68751)),s=(0,r.__importDefault)(e(25286)),m=(0,r.__importDefault)(e(35600)),h=e(17685),v=(0,r.__importDefault)(e(99187)),g=(0,r.__importDefault)(e(57225)),y=(0,r.__importDefault)(e(4575)),_=(0,r.__importDefault)(e(37842)),b=i.union([o.default,u.default,c.default,f.default,a.default,s.default,m.default,h.RichText,v.default,g.default,y.default,_.default,d.default,l.default,p.default,]);t.default=b},25286:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(59054),o=e(37581),a=e(32512),c=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),f=i.exact(i.intersection([i.type({type:i.literal(a.WidgetTypes.Number)}),i.partial({fieldset:o.StringOrNull,config:c}),]));t.default=f},35600:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(59054),o=e(37581),a=e(32512),c=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),f=i.exact(i.intersection([i.type({type:i.literal(a.WidgetTypes.Range)}),i.partial({fieldset:o.StringOrNull,config:c}),]));t.default=f},17685:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=void 0;let r=e(87783),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(37581),a=(0,r.__importDefault)(e(62291)),c=e(32512);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=u.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 f=new u.Type("RichTextOptions",n=>"string"==typeof n,(n,e)=>i.either.chain(u.union([u.string,u.null]).validate(n,e),n=>{if(!n)return u.success(t.DEFAULT_OPTION);let e=n.split(",").map(n=>n.trim()),r=e.filter(n=>(0,i.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(n)));return r.length?u.success(r.join(",")):u.success(t.DEFAULT_OPTION)}),n=>n),l=n=>{if(!n)return u.success([])},p=n=>{if(n instanceof Object){if(!Object.entries(n).length)return u.success([]);if(n[""])return u.success(n[""].map(n=>n.name));let t=Object.entries(n).reduce((n,[,t])=>n.concat(t.map(n=>n.name)),[]).filter(Boolean);return u.success(t)}},d=n=>{if(n instanceof Array){let t=n.reduce((n,t)=>n&&"string"==typeof t,!0);if(t)return u.success(n)}},s=n=>{if("string"==typeof n)return u.success([n])},m=new u.Type("RichTextLabels",n=>n instanceof Array,(n,t)=>{let e=u.record(u.string,u.readonlyArray(u.record(u.literal("name"),u.string))),r=u.readonlyArray(u.string);return i.either.chain(u.union([e,r,u.string,u.null]).validate(n,t),e=>l(e)||d(e)||p(e)||s(e)||u.failure(n,t))},n=>n);t.RichTextConfig=u.exact(u.partial({label:o.StringOrNull,placeholder:u.string,useAsTitle:u.boolean,single:f,multi:f,imageConstraint:a.default,labels:m,allowTargetBlank:u.boolean})),t.RichText=u.exact(u.intersection([u.type({type:u.literal(c.WidgetTypes.RichText)}),u.partial({fieldset:o.StringOrNull,config:t.RichTextConfig}),]))},99187:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,u.StringFromNumber,u.StringFromBoolean]))})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Select)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},57225:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Separator)}),i.partial({config:a}),]));t.default=c},4575:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Text)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},37842:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(32512),a=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),c=i.exact(i.intersection([i.type({type:i.literal(o.WidgetTypes.Timestamp)}),i.partial({fieldset:u.StringOrNull,config:a}),]));t.default=c},46239:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.Text=t.Separator=t.Select=t.Range=t.Number=t.NestableWidget=t.Link=t.IntegrationField=t.Image=t.GeoPoint=t.Embed=t.Date=t.Color=t.BooleanField=void 0;let r=e(87783);var i=e(13071);Object.defineProperty(t,"BooleanField",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=e(98871);Object.defineProperty(t,"Color",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var o=e(68829);Object.defineProperty(t,"Date",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}});var a=e(82427);Object.defineProperty(t,"Embed",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=e(56477);Object.defineProperty(t,"GeoPoint",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=e(4813);Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=e(25272);Object.defineProperty(t,"IntegrationField",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=e(68751);Object.defineProperty(t,"Link",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=e(97662);Object.defineProperty(t,"NestableWidget",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=e(25286);Object.defineProperty(t,"Number",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=e(35600);Object.defineProperty(t,"Range",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}}),(0,r.__exportStar)(e(17685),t);var h=e(99187);Object.defineProperty(t,"Select",{enumerable:!0,get:function(){return(0,r.__importDefault)(h).default}});var v=e(57225);Object.defineProperty(t,"Separator",{enumerable:!0,get:function(){return(0,r.__importDefault)(v).default}});var g=e(4575);Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return(0,r.__importDefault)(g).default}});var y=e(37842);Object.defineProperty(t,"Timestamp",{enumerable:!0,get:function(){return(0,r.__importDefault)(y).default}})},62291:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(87412),u=(0,r.__importStar)(e(87830)),o=e(11621),a=e(37581),c=new u.Type("SideConstraints",n=>!n||"number"==typeof n,(n,t)=>i.either.chain(u.union([u.literal("auto"),u.literal(""),u.Int,o.IntFromString,a.IntFromNumber,a.IntFromPixels,u.null,]).validate(n,t),n=>"auto"===n||""===n?u.success(null):u.success(n)),n=>n),f=u.partial({width:c,height:c});t.default=f},94631:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=e(62291);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},57191:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(75237),o=e(37581),a=(0,r.__importDefault)(e(97662)),c=e(37182),f=i.exact(i.partial({label:o.StringOrNull})),l=i.exact(i.intersection([i.type({type:i.literal(c.SlicesTypes.Slice)}),i.partial({fieldset:o.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(u.WidgetKey,a.default),repeat:i.record(u.WidgetKey,a.default),config:f}),]));t.default=l},7816:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=(0,r.__importDefault)(e(73045)),o=(0,r.__importDefault)(e(97662)),a=i.union([o.default,u.default]);t.default=a},78716:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSlice=t.Variation=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(69624),o=e(75237),a=(0,r.__importDefault)(e(97662)),c=e(37182);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,u.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(o.WidgetKey,a.default),items:i.record(o.WidgetKey,a.default)}),])),t.SharedSlice=i.exact(i.intersection([i.type({id:i.string,type:i.literal(c.SlicesTypes.SharedSlice),name:i.string,variations:i.readonlyArray(t.Variation)}),i.partial({description:i.string}),]))},29377:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37182),o=i.exact(i.type({type:i.literal(u.SlicesTypes.SharedSlice)}));t.default=o},76098:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},8972:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Slices=t.DynamicSlices=t.StaticSlices=t.slicesReader=t.DynamicSlicesConfig=t.StaticSlicesConfig=t.slicesConfigReader=t.SlicesLabels=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(75237),o=e(37581),a=e(32512),c=(0,r.__importDefault)(e(57191)),f=(0,r.__importDefault)(e(7816)),l=e(78716),p=(0,r.__importDefault)(e(29377)),d=e(37182);function s(n){return i.exact(i.partial({label:o.StringOrNull,labels:t.SlicesLabels,choices:i.record(u.WidgetKey,i.union([f.default,c.default,n]))}))}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=s,t.StaticSlicesConfig=s(l.SharedSlice),t.DynamicSlicesConfig=s(p.default);let m={toStatic(n,t){let e=Object.entries(n.choices||{}).reduce((n,[e,r])=>{if(r.type!==d.SlicesTypes.SharedSlice)return{...n,[e]:r};{let i=t.get(e);return i?{...n,[e]:i}:n}},{});return{...n,choices:e}}};function h(n){return i.exact(i.intersection([i.type({type:i.union([i.literal(a.WidgetTypes.Slices),i.literal(a.WidgetTypes.LegacySlices),])}),i.partial({fieldset:o.StringOrNull,config:n}),]))}t.slicesReader=h,t.StaticSlices=h(t.StaticSlicesConfig),t.DynamicSlices=h(t.DynamicSlicesConfig),t.Slices={toStatic:(n,t)=>n.config?{...n,config:m.toStatic(n.config,t)}:n}},37182:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0,t.SlicesTypes={Slice:"Slice",SharedSlice:"SharedSlice"}},66903:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=t.SliceZone=t.Slice=t.SharedSliceRef=t.LegacySlice=t.CompositeSlice=void 0;let r=e(87783);var i=e(57191);Object.defineProperty(t,"CompositeSlice",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=e(7816);Object.defineProperty(t,"LegacySlice",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}}),(0,r.__exportStar)(e(78716),t);var o=e(29377);Object.defineProperty(t,"SharedSliceRef",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),t.Slice=(0,r.__importStar)(e(76098)),t.SliceZone=(0,r.__importStar)(e(8972));var a=e(37182);Object.defineProperty(t,"SlicesTypes",{enumerable:!0,get:function(){return a.SlicesTypes}})},20705:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(87412),u=(0,r.__importStar)(e(72720)),o=(0,r.__importStar)(e(87830)),a=e(75237);t.default={getWidget(n,t,e,r,i){let o=i.get(n);return void 0===o?function(n,t,e,r){let i=t.get(n);return void 0===i?u.none:a.Widget.fromJson(n,i,e,r)}(n,t,e,r):o},fromJson(n,t,e){return Array.from(n.keys()).reduce((r,i)=>{let u=this.getWidget(i,n,t,e,r);return new Map([...Array.from(r.entries()),[i,u]])},new Map)},partitionData(n){let t=Object.entries(n),{types:e,positions:r,widgets:u}=t.reduce((n,[t,e])=>{if(t.endsWith("_TYPE")){let r=o.string.decode(e);if((0,i.isRight)(r))return{...n,types:n.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")&&"number"==typeof e?{...n,positions:n.positions.set(t.substring(0,t.length-9),e)}:t.endsWith("_POSITION")||t.endsWith("_TYPE")?n:{...n,widgets:n.widgets.set(t,e)}},{types:new Map,positions:new Map,widgets:new Map}),a=n.slugs_INTERNAL||[],c=n.uid;return{widgets:u,types:e,positions:r,uid:c,slugs:a}}}},96355:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.DocumentData=void 0;let r=e(87783);var i=e(20705);Object.defineProperty(t,"DocumentData",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}}),t.Widgets=(0,r.__importStar)(e(75237))},17306:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyContentType=void 0,t.EmptyContentType="EmptyContent",t.EmptyContent={is:n=>n.__TYPE__===t.EmptyContentType}},28645:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupContent=t.GroupContentType=t.GroupItemContentType=void 0;let r=e(87783),i=(0,r.__importStar)(e(1358)),u=(0,r.__importStar)(e(20492)),o=(0,r.__importStar)(e(87830)),a=e(10945);t.GroupItemContentType="GroupItemContent",t.GroupContentType="GroupContentType",t.GroupContent=Object.freeze({itemsContentsFromJson:(n,t,e,r)=>t?t.map(t=>{if("object"!=typeof t||null===t)return{__TYPE__:"GroupItemContent",value:[]};{let o=Object.entries(t).sort(([t],[e])=>{var i,u;let o=null!==(i=r.get(`${n}.${t}`))&&void 0!==i?i:1e4,a=null!==(u=r.get(`${n}.${e}`))&&void 0!==u?u:1e4;return o-a}),c=o.map(([t,r])=>{let i=e.get(`${n}.${t}`);return i?u.map(n=>[t,n])(a.SimpleWidgetContent.from(i,r)):u.none});return{__TYPE__:"GroupItemContent",value:i.compact(c)}}}):[],fromJson(n,e,r,i,a){let c=Array.of(n,[e]).flat().join("."),f=u.fromEither(o.array(o.unknown).decode(r));return u.map(n=>({value:t.GroupContent.itemsContentsFromJson(c,n,i,a),__TYPE__:t.GroupContentType}))(f)}})},10945:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleWidgetContent=t.is=t.SimpleWidgetContentType=void 0;let r=e(87783),i=e(42275),u=(0,r.__importStar)(e(20492)),o=(0,r.__importStar)(e(87830)),a=(0,r.__importDefault)(e(99616)),c=e(43420),f=(0,r.__importDefault)(e(70786)),l=e(45337),p=e(48025),d=(0,r.__importDefault)(e(24299)),s=e(4633),m=e(46354),h=e(7335);t.SimpleWidgetContentType=["EmptyContent","ImageContent","GeoPointContent","EmbedContent","BooleanContent","IntegrationFieldsContent","StructuredTextContent","LinkContent","UIDContent","SeparatorContent","FieldContent",],t.is=function(n){return t.SimpleWidgetContentType.includes(n.__TYPE__)};let v=o.type({value:o.null});t.SimpleWidgetContent={from(n,t){if(null===t||v.is(t))return u.some({type:n,__TYPE__:"EmptyContent"});switch(n){case"StructuredText":return u.fromEither(m.StructuredTextContent.decode(t));case"IntegrationFields":return u.fromEither(d.default.decode(t));case"Image":return(0,i.pipe)(u.fromEither(p.ImageContent.decode(t)),u.map(n=>p.ImageContent.encode(n)));case"GeoPoint":return(0,i.pipe)(u.fromEither(l.GeoPointContent.decode(t)),u.map(n=>l.GeoPointContent.encode(n)));case"Embed":return u.fromEither(c.EmbedContent.decode(t));case"Link":return u.fromEither(s.LinkContent.decode(t));case"UID":return u.fromEither(h.UIDContent.decode(t));case"Separator":return u.some({__TYPE__:"SeparatorContent"});case"Boolean":return u.fromEither(a.default.decode(t));default:if(f.default.types.includes(n))return f.default.forType(n,t);return u.none}},is:n=>t.SimpleWidgetContentType.includes(n.__TYPE__)}},18331:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(20492)),u=e(28645),o=e(10945);t.default={fromJson(n,t,e,r,a){let c=Array.of(n,[t]).flat().join("."),f=r.get(c);return"Group"===f?u.GroupContent.fromJson(n,t,e,r,a):f?o.SimpleWidgetContent.from(f,e):i.none},is:n=>o.SimpleWidgetContent.is(n)||u.GroupContentType===n.__TYPE__}},7335:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDContentType=void 0;let r=e(87783),i=e(81878),u=(0,r.__importStar)(e(87830));t.UIDContentType="UIDContent",t.UIDContent=new u.Type("UIDContent",n=>(null==n?void 0:n.__TYPE__)===t.UIDContentType,(n,t)=>i.Chain.chain(u.string.validate(n,t),n=>u.success({value:n,__TYPE__:"UIDContent"})),n=>n.value)},75237:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widget=t.WidgetKey=t.WidgetTypes=t.StaticWidgetContent=t.Slices=t.Nestable=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(47320),o=e(17306),a=e(28645),c=e(32296),f=e(16360),l=(0,r.__importDefault)(e(18331)),p=e(7335);(0,r.__exportStar)(e(17306),t),(0,r.__exportStar)(e(28645),t),t.Nestable=(0,r.__importStar)(e(32296)),(0,r.__exportStar)(e(10945),t),t.Slices=(0,r.__importStar)(e(16360));var d=e(18331);Object.defineProperty(t,"StaticWidgetContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}}),(0,r.__exportStar)(e(7335),t),t.WidgetTypes={...c.NestableTypes,Empty:o.EmptyContentType,UID:p.UIDContentType,Group:a.GroupContentType,slices:f.SlicesContentType};let s=RegExp("^[^<>]+$");t.WidgetKey=(0,u.refineType)(i.string,"WidgetKey",n=>0===n.length||s.test(n)),t.Widget={fromJson(n,t,e,r){let i=e.get(n);return"Slices"===i?f.SlicesContent.fromJson(n,t,e,r):l.default.fromJson([],n,t,e,r)}}},99616:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContentType=void 0;let r=e(87783),i=e(81878),u=(0,r.__importStar)(e(87830));t.BooleanContentType="BooleanContent";let o=new u.Type("BooleanContent",n=>(null==n?void 0:n.__TYPE__)===t.BooleanContentType,(n,e)=>i.Chain.chain(u.boolean.validate(n,e),n=>u.success({value:n,__TYPE__:t.BooleanContentType})),n=>u.boolean.encode(n.value));t.default=o},43420:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContentC=t.EmbedContent=t.EmbedContentType=void 0;let r=e(87783),i=e(9554),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(37581),c=e(47320);t.EmbedContentType="EmbedContent",t.EmbedContent=new o.Type("EmbedContent",n=>n.__TYPE__===t.EmbedContentType,n=>(0,u.pipe)(t.EmbedContentC.decode(n),i.either.map(e=>({...t.EmbedContentC.encode(e),all:n}))),n=>t.EmbedContentC.encode(n)),t.EmbedContentC=(0,c.addType)(o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),])),t.EmbedContentType)},70786:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0;let r=e(87783),i=e(42275),u=(0,r.__importStar)(e(20492)),o=(0,r.__importStar)(e(87830));t.FieldContentType="FieldContent",t.default={types:["Text","Date","Timestamp","Color","Number","Range","Select"],forType:(n,t)=>(0,i.pipe)(u.fromEither(o.string.decode(t)),u.map(t=>({value:function(n){let t=0;for(;t<n.length&&n[t]<=" ";)t++;let e=n.length;for(;t<e&&n[e-1]<=" ";)e--;return n.substring(t,e)}(t),type:n,__TYPE__:"FieldContent"})))}},45337:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointContentType=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(47320);t.GeoPointContentType="GeoPointContent",t.GeoPointContent=(0,u.addType)(i.strict({position:i.strict({lat:i.number,lng:i.number})}),t.GeoPointContentType)},48025:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageContentType=t.ImageContentView=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(47320),a=i.exact(i.type({id:i.string,url:i.string,width:i.number,height:i.number}));t.ImageContentView=i.exact(i.intersection([i.type({origin:a,width:i.number,height:i.number,edit:i.type({zoom:i.number,crop:i.type({x:i.number,y:i.number}),background:i.string})}),i.partial({url:i.string,credits:u.NonEmptyStringOrNull,alt:u.NonEmptyStringOrNull,provider:u.StringOrNull}),])),t.ImageContentType="ImageContent",t.ImageContent=(0,o.addType)(i.intersection([t.ImageContentView,i.partial({thumbnails:i.record(i.string,t.ImageContentView)}),]),t.ImageContentType)},24299:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldsContentType=void 0;let r=e(87783),i=e(81878),u=(0,r.__importStar)(e(87830));t.IntegrationFieldsContentType="IntegrationFieldsContent";let o=new u.Type("IntegrationFieldsContent",n=>(null==n?void 0:n.__TYPE__)===t.IntegrationFieldsContentType,(n,e)=>i.Chain.chain(u.string.validate(n,e),n=>u.success({value:n,__TYPE__:t.IntegrationFieldsContentType})),()=>{throw Error("Not implemented - Not used - Not relevant")});t.default=o},52109:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isDocumentLink=t.DocumentLink=t.DocumentLinkType=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(47320);t.DocumentLinkType="DocumentLink",t.DocumentLink=(0,o.addType)(i.strict({id:u.NonEmptyString}),t.DocumentLinkType),t.isDocumentLink=function(n){return n.__TYPE__===t.DocumentLinkType}},40754:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isExternalLink=t.ExternalLink=t.ExternalLinkType=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(47320);t.ExternalLinkType="ExternalLink",t.ExternalLink=(0,o.addType)(i.exact(i.intersection([i.type({url:i.string}),i.partial({kind:i.literal("web"),target:u.StringOrNull,preview:(0,o.nullable)(i.partial({title:i.string}))}),])),t.ExternalLinkType),t.isExternalLink=function(n){return n.__TYPE__===t.ExternalLinkType}},32386:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isFileLink=t.FileLink=t.FileLinkType=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(23284),o=e(2932),a=e(47320);t.FileLinkType="FileLink",t.FileLink=(0,o.mapOutput)(i.exact(i.intersection([i.type({id:i.string,url:i.string,name:i.string,kind:i.string}),i.partial({date:(0,a.nullable)(i.string),size:(0,u.withFallback)(i.string,"0")}),])),n=>({...n,size:n.size||"0",__TYPE__:t.FileLinkType})),t.isFileLink=function(n){return n.__TYPE__===t.FileLinkType}},5782:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.isImageLink=t.ImageLink=t.ImageLinkType=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(37581),o=e(47320);t.ImageLinkType="ImageLink",t.ImageLink=(0,o.addType)(i.exact(i.intersection([i.type({id:i.string,url:i.string,height:i.string,width:i.string,size:i.string,name:i.string,kind:i.string}),i.partial({date:u.StringOrNull}),])),t.ImageLinkType),t.isImageLink=function(n){return n.__TYPE__===t.ImageLinkType}},12149:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkContent=t.LinkContentType=void 0;let r=e(87783),i=e(81878),u=(0,r.__importStar)(e(87830)),o=e(4633);t.LinkContentType="LinkContent",t.LinkContent=new u.Type("LinkContent",n=>o.Link.is(null==n?void 0:n.value),(n,e)=>i.Chain.chain(o.Link.validate(n,e),n=>u.success({value:o.Link.encode(n),__TYPE__:t.LinkContentType})),n=>o.Link.encode(n.value))},4633:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinksTypes=t.is=t.BROKEN_CUSTOM_TYPE=t.LinkContent=t.ImageLink=t.FileLink=t.ExternalLink=t.DocumentLink=t.Link=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(52109),o=e(40754),a=e(32386),c=e(5782),f=e(12149);t.Link=i.union([c.ImageLink,a.FileLink,u.DocumentLink,o.ExternalLink]);var l=e(52109);Object.defineProperty(t,"DocumentLink",{enumerable:!0,get:function(){return l.DocumentLink}});var p=e(40754);Object.defineProperty(t,"ExternalLink",{enumerable:!0,get:function(){return p.ExternalLink}});var d=e(32386);Object.defineProperty(t,"FileLink",{enumerable:!0,get:function(){return d.FileLink}});var s=e(5782);Object.defineProperty(t,"ImageLink",{enumerable:!0,get:function(){return s.ImageLink}});var m=e(12149);Object.defineProperty(t,"LinkContent",{enumerable:!0,get:function(){return m.LinkContent}}),t.BROKEN_CUSTOM_TYPE="broken_type",t.is={documentLink:u.isDocumentLink,fileLink:a.isFileLink,externalLink:o.isExternalLink,imageLink:c.isImageLink},t.LinksTypes={DocumentLink:u.DocumentLinkType,FileLink:a.FileLinkType,ExternalLink:o.ExternalLinkType,ImageLink:c.ImageLinkType,LinkContent:f.LinkContentType}},57659:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorContentType=void 0;let r=e(87783),i=(0,r.__importStar)(e(87830));t.SeparatorContentType="SeparatorContent",t.SeparatorContent={codec:i.strict({__TYPE__:i.literal(t.SeparatorContentType)}),is:n=>"SeparatorContent"===n.__TYPE__}},3773:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedMetas=t.Span=t.Meta=void 0;let r=e(87783),i=(0,r.__importStar)(e(87412)),u=(0,r.__importStar)(e(87830)),o=e(46239),a=e(37581),c=e(47320),f=e(43420),l=e(48025),p=e(4633);t.Meta=u.exact(u.intersection([u.partial({data:u.unknown}),u.type({start:u.number,end:u.number,type:u.union([o.RichTextNodeTypeCodec,u.literal("label")])}),])),t.Span=t.Meta,t.ValidatedMetas=new u.Type("ValidatedMetas",n=>Array.isArray(n)&&n.every(t.Meta.is),(n,e)=>{if(!Array.isArray(n))return u.failure(n,e);{let r=n.reduce((n,r)=>{let u=t.Meta.decode(r);if(i.isRight(u)){let o=u.right;if(o.data&&"hyperlink"===o.type&&i.isRight(p.Link.validate(o.data,e))||"hyperlink"!==o.type)return[...n,o]}return n},[]).sort((n,t)=>n.start-t.start);return u.success(r)}},n=>u.array(t.Meta).encode(n)),t.ImageBlock=u.exact(u.intersection([u.type({type:u.literal(o.RichTextNodeType.image),data:u.intersection([l.ImageContentView,u.partial({linkTo:(0,c.nullable)(p.Link)}),])}),u.partial({label:a.StringOrNull,direction:a.StringOrNull}),])),t.checkImageBlock=function(n){return n.type===o.RichTextNodeType.image},t.EmbedBlock=u.exact(u.intersection([u.type({type:u.literal(o.RichTextNodeType.embed),data:f.EmbedContent}),u.partial({label:a.StringOrNull,direction:a.StringOrNull}),])),t.checkEmbedBlock=function(n){return n.type===o.RichTextNodeType.embed},t.TextBlock=u.exact(u.intersection([u.type({type:(0,c.refineType)(o.RichTextNodeTypeCodec,`string which isn't ${o.RichTextNodeType.image} ${o.RichTextNodeType.embed}`,n=>n!==o.RichTextNodeType.image&&n!==o.RichTextNodeType.embed),content:u.intersection([u.type({text:u.string}),u.partial({spans:t.ValidatedMetas}),])}),u.partial({label:u.string,direction:u.string}),])),t.Block=u.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},46354:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Blocks=t.StructuredTextContent=t.StructuredTextContentType=void 0;let r=e(87783),i=e(81878),u=(0,r.__importStar)(e(87830)),o=e(3773);t.StructuredTextContentType="StructuredTextContent",t.StructuredTextContent=new u.Type(t.StructuredTextContentType,n=>(null==n?void 0:n.__TYPE__)===t.StructuredTextContentType,(n,e)=>i.Chain.chain(u.array(o.Block).validate(n,e),n=>u.success({value:n,__TYPE__:t.StructuredTextContentType})),()=>{throw Error("NotImplementedError: Not relevant method")}),t.Blocks=(0,r.__importStar)(e(3773))},32296:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableTypes=t.Links=t.IntegrationFieldsContent=t.ImageContentView=t.ImageContent=t.GeoPointContent=t.FieldContent=t.BooleanContent=void 0;let r=e(87783),i=e(99616),u=e(43420),o=e(70786),a=e(45337),c=e(48025),f=e(24299),l=e(4633),p=e(57659),d=e(46354);var s=e(99616);Object.defineProperty(t,"BooleanContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}}),(0,r.__exportStar)(e(43420),t);var m=e(70786);Object.defineProperty(t,"FieldContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}});var h=e(45337);Object.defineProperty(t,"GeoPointContent",{enumerable:!0,get:function(){return h.GeoPointContent}});var v=e(48025);Object.defineProperty(t,"ImageContent",{enumerable:!0,get:function(){return v.ImageContent}}),Object.defineProperty(t,"ImageContentView",{enumerable:!0,get:function(){return v.ImageContentView}});var g=e(24299);Object.defineProperty(t,"IntegrationFieldsContent",{enumerable:!0,get:function(){return(0,r.__importDefault)(g).default}}),t.Links=(0,r.__importStar)(e(4633)),(0,r.__exportStar)(e(57659),t),(0,r.__exportStar)(e(46354),t),t.NestableTypes={Links:l.LinksTypes,StructuredText:d.StructuredTextContentType,Boolean:i.BooleanContentType,Embed:u.EmbedContentType,Field:o.FieldContentType,GeoPoint:a.GeoPointContentType,Image:c.ImageContentType,IntegrationFields:f.IntegrationFieldsContentType,Separator:p.SeparatorContentType}},19913:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceContent=t.CompositeSliceContentType=void 0;let r=e(87783),i=e(81878),u=(0,r.__importStar)(e(20492)),o=(0,r.__importStar)(e(87830)),a=e(75237);t.CompositeSliceContentType="CompositeSliceContent";let c=o.exact(o.partial({repeat:o.array(o.unknown),"non-repeat":o.UnknownRecord}));t.CompositeSliceContent={fromJson(n,t,e,r,o){var f;let l=Array.of(n,[t,"repeat"]).flat().join("."),p=c.decode(e);if(!(0,i.isRight)(p))return u.none;{let d=p.right.repeat,s=null!==(f=p.right["non-repeat"])&&void 0!==f?f:{},m=a.GroupContent.itemsContentsFromJson(l,d,r,o),h=Object.entries(s).sort(([e],[r])=>{var i,u;let a=null!==(i=o.get(`${Array.of(n,[t]).flat().join(".")}.${e}`))&&void 0!==i?i:1e4,c=null!==(u=o.get(`${Array.of(n,[t]).flat().join(".")}.${r}`))&&void 0!==u?u:1e4;return a-c}),v=h.reduce((e,[i,o])=>{let c=Array.of(n,[t,"non-repeat",i]).flat().join("."),f=r.get(c);if(f){let l=a.SimpleWidgetContent.from(f,o);u.isSome(l)&&(e[i]=l.value)}return e},{});return u.some({repeat:m,nonRepeat:v,__TYPE__:"CompositeSliceContent"})}}}},92488:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceContent=t.SharedSliceContentType=void 0;let r=e(87783),i=e(81878),u=(0,r.__importStar)(e(20492)),o=(0,r.__importStar)(e(87830)),a=e(23284),c=e(75237);t.SharedSliceContentType="SharedSliceContent";let f=o.exact(o.type({variation:o.string,items:(0,a.withFallback)(o.array(o.unknown),[]),primary:(0,a.withFallback)(o.UnknownRecord,{})}));t.SharedSliceContent={fromJson(n,t,e,r,o){let a=(0,i.map)(e=>{let i=Array.of(n,[t,"variations",e.variation,"items",]).flat().join("."),a=c.GroupContent.itemsContentsFromJson(i,e.items,r,o),f=Object.entries(e.primary).sort(([e],[r])=>{var i,u;let a=null!==(i=o.get(`${Array.of(n,[t]).flat().join(".")}.${e}`))&&void 0!==i?i:1e4,c=null!==(u=o.get(`${Array.of(n,[t]).flat().join(".")}.${r}`))&&void 0!==u?u:1e4;return a-c}),l=f.reduce((i,[o,a])=>{let f=Array.of(n,[t,"variations",e.variation,"primary",o,]).flat().join("."),l=r.get(f);if(l){let p=c.SimpleWidgetContent.from(l,a);u.isSome(p)&&(i[o]=p.value)}return i},{}),p={variation:e.variation,primary:l,items:a,__TYPE__:"SharedSliceContent"};return p})(f.decode(e));return u.fromEither(a)}}},82817:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleSliceContent=void 0;let r=e(87783),i=(0,r.__importDefault)(e(18331));t.SimpleSliceContent=i.default},83729:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceWidgetContent=void 0;let r=e(87783),i=(0,r.__importStar)(e(20492)),u=(0,r.__importDefault)(e(18331)),o=e(19913),a=e(92488);t.SliceWidgetContent={fromJson(n,t,e,r,c){let f=Array.of(n,[t]).flat().join("."),l=r.get(f);return"SharedSlice"===l?a.SharedSliceContent.fromJson(n,t,e,r,c):"Slice"===l?o.CompositeSliceContent.fromJson(n,t,e,r,c):l?u.default.fromJson(n,t,e,r,c):(0,i.none)}}},917:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesContent=t.SlicesContentType=void 0;let r=e(87783),i=(0,r.__importStar)(e(1358)),u=e(42275),o=(0,r.__importStar)(e(20492)),a=(0,r.__importStar)(e(87830)),c=e(47320),f=e(83729);t.SlicesContentType="SliceContentType";let l=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),]));t.SlicesContent={itemsCodec:(n,t)=>(0,u.pipe)(l.decode(n),o.fromEither,o.chain(n=>{let e=n.key.indexOf("$"),r=n.key.substring(0,e>0?e:void 0),i=t(r,n.value);return o.map(t=>{var e;return{key:n.key,name:r,maybeLabel:null!==(e=n.label)&&void 0!==e?e:void 0,widget:t}})(i)})),fromJson(n,e,r,u){if("Slices"!==r.get(n))return console.error("fieldTypes.get(key) !== 'Slices'"),o.none;{let c=o.getOrElse(()=>[])(o.fromEither(a.array(a.unknown).decode(e))),l=(t,e)=>f.SliceWidgetContent.fromJson([n],t,e,r,u);return o.some({value:i.compact(c.map(n=>t.SlicesContent.itemsCodec(n,l))),__TYPE__:t.SlicesContentType})}}}},16360:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783);(0,r.__exportStar)(e(19913),t),(0,r.__exportStar)(e(92488),t),(0,r.__exportStar)(e(82817),t),(0,r.__exportStar)(e(917),t),(0,r.__exportStar)(e(83729),t)},63323:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromString",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.toISOString())},16905:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromStringOrNumber",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.union([o.number,o.string]).validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n)},82175:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("dateFromTsMs",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.getTime())},79312:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("IntFromNumber",o.Int.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.Int.is(n)?o.success(n):o.success(Math.round(n)))),o.Int.encode)},57288:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830)),a=/^([0-9]+)px$/;t.default=new o.Type("IntFromPixels",o.Int.is,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(e=>{try{let r=e.match(a);if(!r)return o.failure(n,t);let i=parseInt(r[1]);return o.success(i)}catch{return o.failure(n,t)}})),String)},30487:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(47320);t.default=(0,u.refineType)(i.string,"nonEmptyString",n=>n.trim().length>0)},32514:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=e(87830),a=(0,r.__importDefault)(e(59941));t.default=new o.Type("nonEmptyStringOrNull",n=>"string"==typeof n||null===n,(n,t)=>(0,u.pipe)(a.default.validate(n,t),(0,i.chain)(n=>"string"==typeof n&&n.length>0?(0,o.success)(n):(0,o.success)(null))),n=>n)},63205:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(47320);t.default=(0,u.nullable)(i.number)},70453:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.boolean.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},62161:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=e(81878),u=e(42275),o=(0,r.__importStar)(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},59941:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(87783),i=(0,r.__importStar)(e(87830)),u=e(47320);t.default=(0,u.nullable)(i.string)},47320:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=e(87783),i=e(9554),u=e(42275),o=(0,r.__importStar)(e(87830)),a=e(47361);t.nullable=function(n){return o.union([n,o.null,o.undefined])},t.refineType=function(n,t,e){return new o.Type(t,n.is,(t,r)=>(0,u.pipe)(n.validate(t,r),i.either.chain(n=>e(n)?o.success(n):o.failure(t,r))),n.encode)},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.grouped=function(n,t){return n.reduce((n,e,r)=>(r%t==0?n.push([e]):n[Math.floor(r/t)].push(e),n),[])},t.objectToMap=function(n){return new Map(Object.entries(n))},t.isEmpty=function(n){for(let t in n)return!1;return!0},t.addType=function(n,t){return(0,a.mapOutput)(n,n=>({...n,__TYPE__:t}))}},37581:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=e(87783);var i=e(63323);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return(0,r.__importDefault)(i).default}});var u=e(16905);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(u).default}});var o=e(82175);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return(0,r.__importDefault)(o).default}}),t.Function=(0,r.__importStar)(e(47320));var a=e(79312);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(a).default}});var c=e(57288);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return(0,r.__importDefault)(c).default}});var f=e(30487);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return(0,r.__importDefault)(f).default}});var l=e(32514);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(l).default}});var p=e(63205);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(p).default}});var d=e(70453);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return(0,r.__importDefault)(d).default}});var s=e(62161);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return(0,r.__importDefault)(s).default}});var m=e(59941);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return(0,r.__importDefault)(m).default}})},24662:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentMock=void 0;let r=e(93784),i=e(73605),u=e(32361);t.DocumentMock={generate(n,t={},e){var o,a,c;return(0,r.flattenWidgets)(n).map(([n,r])=>{let o=(null==e?void 0:e.value)&&e.value[n],a=function(n,t,e){switch(n.type){case"Choice":case"Slices":return u.SliceZoneMock.generate(n,t,e);case"Group":return i.GroupMock.generate(n,e);case"UID":return i.UIDMock.generate(n,e);default:return i.NestableWidgetMock.generate(n,e)}}(r,t,o);return[n,a]}).reduce((n,[t,e])=>({...n,[t]:e}),{})}}},73605:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);(0,r.__exportStar)(e(24662),t),(0,r.__exportStar)(e(93103),t)},15801:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.randomInt=t.slug=void 0;var i=e(91249);Object.defineProperty(t,"slug",{enumerable:!0,get:function(){return r(i).default}}),t.randomInt=function(n=0,t=100){return Math.floor(Math.random()*(t-n+1)+n)}},91249:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=(0,r.__importDefault)(e(93953)),u=e(15801);t.default=function(n){return function t(){let e=function(n){let t=n[(0,u.randomInt)(0,n.length-1)];if(!t)throw Error("Error while generating a slug.");return t}(i.default);return n&&(n.exactly&&e.length!=n.exactly||n.min&&e.length<n.min||n.max&&e.length>n.max)?t():e}()}},44609:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupMock=void 0;let r=e(29585),i=e(93103);t.GroupMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n,t=1,e={}){return n.config&&n.config.fields?Array(t).fill(null).map(()=>{var t;let r=Object.entries((null===(t=null==n?void 0:n.config)||void 0===t?void 0:t.fields)||{}),u=r.map(([n,t])=>{let r=e[n];return[n,i.NestableWidgetMock.generate(t,r)]});return u}):[]}(n,null==t?void 0:t.nbBlocks,null==t?void 0:t.fields);return{__TYPE__:r.GroupContentType,value:e.map(n=>({__TYPE__:r.GroupItemContentType,value:n}))}}}},73042:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceMock=void 0;let r=e(42793),i=e(42793),u=e(18784),o=e(93103);function a(n,t){return n.map(([n,e])=>{let r=t&&t[n];return[n,o.NestableWidgetMock.generate(e,r)]})}function c(n,t){return function(n,t){let e=(null==t?void 0:t.nbItemsBlocks)||1;return{__TYPE__:i.SharedSliceContentType,variation:n.id,primary:n.primary?a(Object.entries(n.primary),null==t?void 0:t.primaryFields).reduce((n,[t,e])=>({...n,[t]:e}),{}):{},items:n.items?Array(e).fill(null).map(()=>a(Object.entries(n.items||{}),null==t?void 0:t.itemFields)).map(n=>({__TYPE__:r.GroupItemContentType,value:n})):[]}}(n,t)}function f(n,t,e){let r=Object.entries(n).reduce((n,[r,i])=>{var u;let a=null===(u=t.find(([n])=>n===r))||void 0===u?void 0:u[1],c=null==e?void 0:e[r],f=o.NestableWidgetMock.patch(i,a,c);return{...n,...f?{[r]:f}:{}}},{}),i=t.reduce((t,[e,i])=>{let u=n[e]?r[e]:i;return u?{...t,[e]:u}:t},{});return{...i,...r}}t.SharedSliceMock={generate(n,t){var e;if(null==t?void 0:t.value)return{__TYPE__:i.SharedSliceContentType,...t.value};let r=null!==(e=n.variations.find(n=>n.id===(null==t?void 0:t.variation)))&&void 0!==e?e:n.variations[0];if(!r)throw Error(`Something happened during Shared slice generation. No variations were configured for slice ${n.id}.`);let u=(null==t?void 0:t.variations)&&t.variations[r.id];return c(r,u)},patch(n,t,e){var i,o;switch(n.op){case u.DiffOperation.Removed:if(!(null==e?void 0:e.variation)||e.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 ${e.variation}`)};case u.DiffOperation.Added:if(t)return{ok:!1,error:Error(`Content already exists for slice ${n.value.id}.`)};if(!(null==e?void 0:e.variation)||n.value.variations.find(n=>n.id===e.variation))return{ok:!0,result:this.generate(n.value,e)};return{ok:!1,error:Error(`Configured variation ${e.variation} not found in slice ${n.value.id} definition.`)};case u.DiffOperation.Updated:{let a=null!=t&&t.variation?(null==e?void 0:e.variation)&&t.variation!==(null==e?void 0:e.variation)?{ok:!1,error:Error(`Variation ${t.variation} from the content doesn't match the config ${null==e?void 0:e.variation}.`)}:{ok:!0,result:t.variation}:(null==e?void 0:e.variation)?{ok:!0,result:e.variation}:{ok:!1,error:Error("No variation provided. You must either provide some content or a config.")};if(!a.ok)return a;let l=a.result,p=null===(i=n.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(n,t,e,i){switch(t.op){case u.DiffOperation.Removed:return{ok:!0,result:void 0};case u.DiffOperation.Added:if(!e)return{ok:!0,result:c(t.value,i)};return{ok:!1,error:Error(`Content already exists for variation ${e.variation}.`)};case u.DiffOperation.Updated:{let o=t.value.primary&&(null==e?void 0:e.primary)?f(t.value.primary,Object.entries(null==e?void 0:e.primary),null==i?void 0:i.primaryFields):(null==e?void 0:e.primary)||{},a=(()=>{if(!t.value.items||null==e||!e.items)return(null==e?void 0:e.items)||[];{let n=t.value.items;return e.items.map(t=>({__TYPE__:r.GroupItemContentType,value:Object.entries(f(n,t.value,null==i?void 0:i.itemFields))}))}})();return{ok:!0,result:{__TYPE__:"SharedSliceContent",variation:n,primary:o,items:a}}}}}(l,p,t,p.op!==u.DiffOperation.Removed?null===(o=null==e?void 0:e.variations)||void 0===o?void 0:o[l]:void 0)}}}}},32361:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceZoneMock=void 0;let r=e(42793),i=e(39304),u=e(93103),o=e(92947);t.SliceZoneMock={generate(n,t={},e){var a;if(!(null===(a=n.config)||void 0===a?void 0:a.choices))return{__TYPE__:r.SlicesContentType,value:[]};let c=Object.entries(n.config.choices).reduce((n,[r,a])=>{let c=(null==e?void 0:e.value)&&e.value[r],f=(()=>{switch(a.type){case"SharedSlice":{let n=t[r];if(!n){console.error(`You must provide the definition of the Shared Slice ${r} to get mocks.`);return}return u.SharedSliceMock.generate(n,c)}case"Slice":return;case"Group":return u.GroupMock.generate(a);default:return o.NestableWidgetMock.generate(a)}})();return f?n.concat({key:`${r}$${(0,i.v4)()}`,name:r,maybeLabel:void 0,widget:f}):n},[]);return{__TYPE__:r.SlicesContentType,value:c}}}},32033:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDMock=void 0;let r=e(42793),i=e(15801);t.UIDMock={generate(n,t){let e=(null==t?void 0:t.value)||(0,i.slug)({min:3,max:10});return{__TYPE__:r.UIDContentType,value:e}}}},93103:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);(0,r.__exportStar)(e(44609),t),(0,r.__exportStar)(e(92947),t),(0,r.__exportStar)(e(73042),t),(0,r.__exportStar)(e(32033),t)},42386:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanMock=void 0;let r=e(42793),i=e(18784);t.BooleanMock={generate(n,t){let e="boolean"==typeof(null==t?void 0:t.value)?t.value:.5>Math.random();return{__TYPE__:r.BooleanContentType,value:e}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Boolean"===n.diff.value.type){let e=this.patch(n.diff,n.content&&n.content.__TYPE__!==r.BooleanContentType?void 0:n.content,(null===(t=n.config)||void 0===t?void 0:t.type)==="Boolean"?n.config:void 0);return{result:e}}}}},77859:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorMock=void 0;let r=e(42793),i=e(42793),u=e(18784);t.ColorMock={generate(n,t){let e=(null==t?void 0:t.value)||function(){let n="#";for(let t=0;t<6;t++)n+="0123456789abcdef"[Math.floor(16*Math.random())];return n}();return{__TYPE__:i.FieldContentType,value:e,type:"Color"}},applyPatch(n){var t;if(n.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Color"===n.diff.value.type){let e=this.patch(n.diff,(0,r.isColorContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Color"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},21276:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateMock=void 0;let r=e(42793),i=e(18784);function u(n){let t=n.toISOString().split("T")[0];if(!t)throw Error("Something happened during Date generation.");return t}function o(n=new Date(2012,0,1),t=new Date){let e=new Date(n.getTime()+Math.random()*(t.getTime()-n.getTime()));return u(e)}t.DateMock={generate(n,t){let e=(null==t?void 0:t.value)?u(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?o(t.start,t.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Date",value:e}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Date"===n.diff.value.type){let e=this.patch(n.diff,(0,r.isDateContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Date"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},60300:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedMock=void 0;let r=e(78948),i=e(42793),u=e(18784),o=(0,r.__importDefault)(e(19108));t.EmbedMock={generate:(n,t)=>(function(n){var t;let e=n||(null===(t=o.default[Math.floor(Math.random()*o.default.length)])||void 0===t?void 0:t.oembed);if(!e)throw Error("Something happened during Embed generation.");return{...e,all:e,__TYPE__:i.EmbedContentType}})(null==t?void 0:t.value),applyPatch(n){var t;if(n.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Embed"===n.diff.value.type){let e=this.patch(n.diff,(0,i.isEmbedContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Embed"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},95441:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointMock=void 0;let r=e(78948),i=e(42793),u=e(18784),o=(0,r.__importDefault)(e(88416));t.GeoPointMock={generate(n,t){let e=(null==t?void 0:t.value)||function(){let n=o.default[Math.floor(Math.random()*o.default.length)];if(!n)throw Error("Something happened during GeoPoint generation.");return{latitude:n.points.latitude,longitude:n.points.longitude}}();return{__TYPE__:i.GeoPointContentType,position:{lat:e.latitude,lng:e.longitude}}},applyPatch(n){var t;if(n.diff.op===u.DiffOperation.Removed)return{result:void 0};if("GeoPoint"===n.diff.value.type){let e=this.patch(n.diff,(0,i.isGeoPointContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="GeoPoint"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value,e)}}}},66947:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageMock=t.random=void 0;let r=e(78948),i=e(42793),u=e(18784),o=(0,r.__importDefault)(e(15542)),a=e(15801),c=o.default,f=(n,t)=>{let[e,r]=(()=>{let{width:e,height:r}=null!=t?t:{};return e&&r?[e,r]:e?[e,Math.round(n.height*(e/n.width))]:r?[Math.round(n.width*(r/n.height)),r]:[n.width,n.height]})(),i=Math.max(e/n.width,r/n.height),u=Math.round((n.width-e/i)/2),o=Math.round((n.height-r/i)/2);return{width:e,height:r,rect:{x:u,y:o,width:Math.round(e/i),height:Math.round(r/i)}}},l=(n,t,e)=>{let r=new URL(n),{x:i,y:u,width:o,height:a}=t;return r.searchParams.set("rect",[i,u,o,a].join(",")),r.searchParams.set("w",e.width.toString()),r.searchParams.set("h",e.height.toString()),r.toString()};function p(n){var t,e;let[r,i,u]=(()=>{let n=c[(0,a.randomInt)(0,c.length-1)],t=null==n?void 0:n.raw.split("?")[0];if(!t)throw Error("Something happened during Image generation.");return[t,n.width,n.height]})(),{width:o,height:p,rect:d}=f({width:i,height:u},n.constraints),s=Boolean((null===(t=n.constraints)||void 0===t?void 0:t.width)||(null===(e=n.constraints)||void 0===e?void 0:e.height)),m=s?l(r,d,{width:o,height:p}):r;return{origin:{id:n.id,url:r,width:i,height:u},url:m,width:o,height:p,edit:{zoom:1,crop:{x:d.x,y:d.y},background:"transparent"}}}function d(n){var t,e,r;let u=p({id:"main",constraints:null===(t=n.config)||void 0===t?void 0:t.constraint}),o=null===(r=null===(e=n.config)||void 0===e?void 0:e.thumbnails)||void 0===r?void 0:r.map(n=>[n.name,p({id:n.name,constraints:{width:n.width,height:n.height}}),]),a=o?{thumbnails:o.reduce((n,[t,e])=>({...n,[t]:e}),{})}:{};return{__TYPE__:i.ImageContentType,...u,...a}}t.random=d,t.ImageMock={generate:n=>d(n),applyPatch(n){if(n.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Image"===n.diff.value.type){let t=this.patch(n.diff,(0,i.isImageContent)(n.content)?n.content:void 0);return{result:t}}},patch(n,t){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Updated:case u.DiffOperation.Added:return this.generate(n.value)}}}},54595:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldMock=void 0;let r=e(42793),i=e(18784);t.IntegrationFieldMock={generate(n,t){let e=(null==t?void 0:t.value)||"integration-field-product-id";return{__TYPE__:r.IntegrationFieldContentType,value:e}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("IntegrationFields"===n.diff.value.type){let e=this.patch(n.diff,(0,r.isIntegrationFieldContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="IntegrationFields"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},50107:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLinkMock=void 0;let r=e(42793);t.DocumentLinkMock={generate:n=>r.DocumentLinkContent.encode({__TYPE__:r.DocumentLinkType,id:"mock_document_id"})}},79241:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalLinkMock=void 0;let r=e(78948),i=e(42793),u=(0,r.__importDefault)(e(83777));t.ExternalLinkMock={generate(n,t){let e=(null==t?void 0:t.value)&&{__TYPE__:i.ExternalLinkType,url:t.value}||function(){let n=u.default,t=Math.floor(Math.random()*n.length),e=n[t];if(!e)throw Error("Something happened during Web link generation.");return{__TYPE__:i.ExternalLinkType,url:e}}();return i.ExternalLinkContent.encode(e)}}},25891:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.MediaLinkMock=void 0;let r=e(42793);t.MediaLinkMock={generate(n,t){let e=(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(e)}}},33610:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LinkMock=void 0;let r=e(78948),i=e(42793),u=e(18784),o=e(50107),a=e(79241),c=e(25891);t.LinkMock={generate(n,t){let e=(()=>{var e;switch(null===(e=n.config)||void 0===e?void 0:e.select){case"document":return o.DocumentLinkMock.generate(n);case"web":default:return a.ExternalLinkMock.generate(n,(null==t?void 0:t.value)&&t.value);case"media":return c.MediaLinkMock.generate(n,(null==t?void 0:t.value)&&t.value)}})();return{__TYPE__:i.LinkContentType,value:e}},applyPatch(n){var t;if(n.diff.op===u.DiffOperation.Removed)return{result:void 0};if("Link"===n.diff.value.type){let e=this.patch(n.diff,(0,i.isLinkContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Link"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case u.DiffOperation.Removed:return;case u.DiffOperation.Added:case u.DiffOperation.Updated:return this.generate(n.value,e)}}},(0,r.__exportStar)(e(50107),t),(0,r.__exportStar)(e(79241),t),(0,r.__exportStar)(e(25891),t)},628:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberMock=void 0;let r=e(42793),i=e(18784);t.NumberMock={generate(n,t){var e,i,u;let o=(null===(e=n.config)||void 0===e?void 0:e.min)?(null==t?void 0:t.min)&&t.min>n.config.min?t.min:n.config.min:0,a=(null===(i=n.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<n.config.max?t.max:n.config.max:100,c=(null===(u=n.config)||void 0===u?void 0:u.step)?(null==t?void 0:t.step)&&t.step>n.config.step?t.step:n.config.step:1,f=((null==t?void 0:t.value)?t.value:function(n,t,e){let r=Math.floor(Math.random()*(t-n))+n;return r%e==0?r:Math.min(r+(e-r%e),t)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Number"}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Number"===n.diff.value.type){let e=this.patch(n.diff,n.content&&n.content.__TYPE__!==r.FieldContentType?void 0:n.content,(null===(t=n.config)||void 0===t?void 0:t.type)==="Number"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},38206:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeMock=void 0;let r=e(42793),i=e(18784);t.RangeMock={generate(n,t){var e,i,u;let o=(null===(e=n.config)||void 0===e?void 0:e.min)?(null==t?void 0:t.min)&&t.min>n.config.min?t.min:n.config.min:0,a=(null===(i=n.config)||void 0===i?void 0:i.max)?(null==t?void 0:t.max)&&t.max<n.config.max?t.max:n.config.max:100,c=(null===(u=n.config)||void 0===u?void 0:u.step)?(null==t?void 0:t.step)&&t.step>n.config.step?t.step:n.config.step:1,f=((null==t?void 0:t.value)?t.value:function(n,t,e){let r=Math.floor(Math.random()*(t-n))+n;return r%e==0?r:Math.min(r+(e-r%e),t)}(o,a,c)).toString();return{__TYPE__:r.FieldContentType,value:f,type:"Range"}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Range"===n.diff.value.type){let e=this.patch(n.diff,(0,r.isRangeContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Range"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},13319:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMockConfig=t.Patterns=t.LoremDefaultConfig=void 0;let r=e(93784),i=e(72788),u=e(15801);t.LoremDefaultConfig={sentencesPerParagraph:{min:1,max:3},wordsPerSentence:{min:4,max:16}},t.Patterns={PARAGRAPH:{title:"Simple Paragraph",test:n=>n.some(n=>n===r.RichTextNodeType.paragraph),value:()=>[r.RichTextNodeType.paragraph],description:"A single paragraph with a variant number of words."},HEADING:{title:"Section Title",test:n=>n.some(t.RichTextMockConfig.isHeading),value:n=>[n.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,],description:"A single heading (h1 to h6) with a variant number of words."},STORY:{title:"Story",test:n=>n.some(t.RichTextMockConfig.isHeading)&&n.some(n=>n===r.RichTextNodeType.paragraph),value:n=>[n.find(t.RichTextMockConfig.isHeading)||r.RichTextNodeType.heading1,...t.RichTextMockConfig.optionalType(n,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:n=>0===n.indexOf("heading"),isText:n=>n===r.RichTextNodeType.paragraph||t.RichTextMockConfig.isHeading(n),isImage:n=>n===r.RichTextNodeType.image,optionalType:(n,t)=>n.find(n=>n===t)&&Math.random()>.5?[t]:[],findMatchingPattern(n){let e=Object.entries(t.Patterns).find(([,t])=>t.test(n));return e&&e.length?e[1]:t.RichTextMockConfig.INITIAL_CONFIG.pattern},generateText(n,e){let r=new i.LoremIpsum(e);if(t.RichTextMockConfig.isHeading(n)){let o=(0,u.slug)({min:5,max:10});return[o[0]&&o[0].toUpperCase(),...o.slice(1)].join("")}return r.generateParagraphs(1)}}},35650:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextMock=void 0;let r=e(78948),i=e(42793),u=e(93784),o=e(18784),a=e(66947),c=e(13319);t.RichTextMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n,t){var e,r;let i=((null===(e=null==n?void 0:n.config)||void 0===e?void 0:e.multi)||(null===(r=null==n?void 0:n.config)||void 0===r?void 0:r.single)||`${u.RichTextNodeType.paragraph}`).split(",").map(n=>n),o=(null==t?void 0:t.pattern)&&c.Patterns[t.pattern]||c.RichTextMockConfig.findMatchingPattern(i),f=o.value(i),l=Array((null==t?void 0:t.nbBlocks)||c.RichTextMockConfig.INITIAL_CONFIG.blocks).fill(null).map(()=>f.map(n=>{if(c.RichTextMockConfig.isText(n))return{type:n,content:{text:c.RichTextMockConfig.generateText(n,c.LoremDefaultConfig)}};let t=(0,a.random)({type:"Image"});return{type:u.RichTextNodeType.image,data:t}}));return l.flat()}(n,t);return{__TYPE__:i.RichTextContentType,value:e}},applyPatch(n){var t;if(n.diff.op===o.DiffOperation.Removed)return{result:void 0};if("StructuredText"===n.diff.value.type){let e=this.patch(n.diff,(0,i.isRichTextContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="StructuredText"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case o.DiffOperation.Removed:return;case o.DiffOperation.Updated:case o.DiffOperation.Added:return this.generate(n.value,e)}}},(0,r.__exportStar)(e(13319),t)},20999:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectMock=void 0;let r=e(42793),i=e(18784),u="mock_option";t.SelectMock={generate(n,t){let e=(null==t?void 0:t.value)||function(n){if(!n.config)return u;if(n.config.default_value&&.5>Math.random())return n.config.default_value;if(!n.config.options)return u;let t=Math.floor(Math.random()*n.config.options.length);return n.config.options[t]||u}(n);return{__TYPE__:r.FieldContentType,value:e,type:"Select"}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Select"===n.diff.value.type){let e=this.patch(n.diff,(0,r.isSelectContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Select"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},14259:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorMock=void 0;let r=e(42793),i=e(18784);t.SeparatorMock={generate:()=>({__TYPE__:r.SeparatorContentType}),applyPatch(n){if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Separator"===n.diff.value.type){let t=this.patch(n.diff,(0,r.isSeparatorContent)(n.content)?n.content:void 0);return{result:t}}},patch(n,t){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value)}}}},44395:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextMock=void 0;let r=e(42793),i=e(18784),u=e(15801);t.TextMock={generate(n,t){var e,i;let o=(null==t?void 0:t.value)||(e=null==t?void 0:t.minChar,i=null==t?void 0:t.maxChar,(0,u.slug)({...e?{min:e}:{},...i?{max:i}:{}}));return{__TYPE__:r.FieldContentType,value:o,type:"Text"}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Text"===n.diff.value.type){let e=this.patch(n.diff,(0,r.isTextContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Text"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},4424:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampMock=void 0;let r=e(42793),i=e(18784);function u(n){return n.toISOString().slice(0,19)+"Z"}function o(n=new Date(2012,0,1),t=new Date){let e=new Date(n.getTime()+Math.random()*(t.getTime()-n.getTime()));return u(e)}t.TimestampMock={generate(n,t){let e=(null==t?void 0:t.value)?u(t.value):(null==t?void 0:t.start)&&(null==t?void 0:t.end)?o(t.start,t.end):o(new Date(2012,0,1),new Date);return{__TYPE__:r.FieldContentType,type:"Timestamp",value:e}},applyPatch(n){var t;if(n.diff.op===i.DiffOperation.Removed)return{result:void 0};if("Timestamp"===n.diff.value.type){let e=this.patch(n.diff,(0,r.isTimestampContent)(n.content)?n.content:void 0,(null===(t=n.config)||void 0===t?void 0:t.type)==="Timestamp"?n.config:void 0);return{result:e}}},patch(n,t,e){switch(n.op){case i.DiffOperation.Removed:return;case i.DiffOperation.Updated:case i.DiffOperation.Added:return this.generate(n.value,e)}}}},92947:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidgetMock=void 0;let r=e(78948),i=e(18784),u=e(42386),o=e(77859),a=e(21276),c=e(60300),f=e(95441),l=e(66947),p=e(54595),d=e(33610),s=e(628),m=e(38206),h=e(35650),v=e(20999),g=e(14259),y=e(44395),_=e(4424);(0,r.__exportStar)(e(42386),t),(0,r.__exportStar)(e(77859),t),(0,r.__exportStar)(e(21276),t),(0,r.__exportStar)(e(60300),t),(0,r.__exportStar)(e(95441),t),(0,r.__exportStar)(e(66947),t),(0,r.__exportStar)(e(54595),t),(0,r.__exportStar)(e(33610),t),(0,r.__exportStar)(e(628),t),(0,r.__exportStar)(e(38206),t),(0,r.__exportStar)(e(35650),t),(0,r.__exportStar)(e(20999),t),(0,r.__exportStar)(e(14259),t),(0,r.__exportStar)(e(44395),t),(0,r.__exportStar)(e(4424),t),t.NestableWidgetMock={generate(n,t){switch(n.type){case"Boolean":return u.BooleanMock.generate(n,(null==t?void 0:t.type)==="Boolean"?t:void 0);case"Color":return o.ColorMock.generate(n,(null==t?void 0:t.type)==="Color"?t:void 0);case"Link":return d.LinkMock.generate(n,(null==t?void 0:t.type)==="Link"?t:void 0);case"Date":return a.DateMock.generate(n,(null==t?void 0:t.type)==="Date"?t:void 0);case"Embed":return c.EmbedMock.generate(n,(null==t?void 0:t.type)==="Embed"?t:void 0);case"GeoPoint":return f.GeoPointMock.generate(n,(null==t?void 0:t.type)==="GeoPoint"?t:void 0);case"Image":return l.ImageMock.generate(n);case"IntegrationFields":return p.IntegrationFieldMock.generate(n,(null==t?void 0:t.type)==="IntegrationFields"?t:void 0);case"Number":return s.NumberMock.generate(n,(null==t?void 0:t.type)==="Number"?t:void 0);case"Range":return m.RangeMock.generate(n,(null==t?void 0:t.type)==="Range"?t:void 0);case"StructuredText":return h.RichTextMock.generate(n,(null==t?void 0:t.type)==="StructuredText"?t:void 0);case"Select":return v.SelectMock.generate(n,(null==t?void 0:t.type)==="Select"?t:void 0);case"Text":return y.TextMock.generate(n,(null==t?void 0:t.type)==="Text"?t:void 0);case"Timestamp":return _.TimestampMock.generate(n,(null==t?void 0:t.type)==="Timestamp"?t:void 0);case"Separator":return g.SeparatorMock.generate(n)}},patch(n,t,e){if(n.op===i.DiffOperation.Removed)return;let r={diff:n,content:t,config:e},b=o.ColorMock.applyPatch(r)||a.DateMock.applyPatch(r)||_.TimestampMock.applyPatch(r)||v.SelectMock.applyPatch(r)||m.RangeMock.applyPatch(r)||y.TextMock.applyPatch(r)||s.NumberMock.applyPatch(r)||u.BooleanMock.applyPatch(r)||h.RichTextMock.applyPatch(r)||d.LinkMock.applyPatch(r)||c.EmbedMock.applyPatch(r)||f.GeoPointMock.applyPatch(r)||l.ImageMock.applyPatch(r)||p.IntegrationFieldMock.applyPatch(r)||g.SeparatorMock.applyPatch(r);return null==b?void 0:b.result}}},25242:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.generateSliceMock=t.generateDocumentMock=void 0;let r=e(78948),i=e(73605);t.generateDocumentMock=function(n,t,e){let r=i.DocumentMock.generate(n,t,e);return e=>e?e(n,t,r):r},t.generateSliceMock=function(n,t){let e=i.SharedSliceMock.generate(n,t);return t=>t?t(n,e):e},(0,r.__exportStar)(e(73605),t),(0,r.__exportStar)(e(86449),t)},54775:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(73985),i={urlRewriter:{optimizeImageUrl:n=>n,rewriteImageUrl:n=>n.url||"/mockURL",rewriteFileUrl:n=>n,rewriteS3Bucket:n=>n,enforceCDN:n=>n},emptyStringInsteadOfNull:!1,Extension:{DocEncoder:{encodeDocId:r.Extensions.encodeDocId},encoders:r.Extensions.IDEncoders},LinkResolver:{buildUrl:n=>"/"}};t.default=i},86449:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.renderSliceMock=t.renderDocumentMock=void 0;let r=e(78948),i=e(88985),u=e(73985),o=e(16375),a=e(39304),c=(0,r.__importDefault)(e(54775));t.renderDocumentMock=function(n,t,e){let r=(0,u.fromCustomType)(n,t),o=Object.entries(e).filter(Boolean);return(0,i.DocumentRenderer)(c.default).renderMocks(r,o)},t.renderSliceMock=function(n,t){let e=o.SharedSliceDef.encode((0,o.fromSharedSlice)(n.id,n));return{...(0,i.SharedSliceRenderer)(c.default).renderMocks(e,t),id:`${n.id}$${(0,a.v4)()}`,slice_type:n.id}}},43830:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetKey=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(55242),o=RegExp("^[^<>]+$");t.WidgetKey=(0,u.refineType)(i.string,"WidgetKey",n=>0===n.length||o.test(n))},88966:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(43830),t)},60716:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentLegacy=t.Document=void 0;let r=e(78948),i=e(9554),u=e(87412),o=e(14632),a=r.__importStar(e(87830)),c=e(88966),f=e(29585),l=e(63750);t.Document=a.record(c.WidgetKey,f.WidgetContent);let p=a.record(c.WidgetKey,a.unknown),d=n=>new a.Type("Document",n=>!!n&&"object"==typeof n,t=>(0,o.pipe)(p.decode(t),i.either.map(t=>Object.entries(t).reduce((t,[e,r])=>{let i=(0,l.defaultCtx)(e,n),o=(0,f.WidgetLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?t:{...t,[e]:o.right}},{}))),t=>Object.entries(t).reduce((t,[e,r])=>{let i=(0,l.defaultCtx)(e,n),u=(0,f.WidgetLegacy)(i).encode(r);return u?{content:{...t.content,[e]:u.content},types:{...t.types,...u.types}}:t},{content:{},types:{}}));function s(n){let t=Object.entries(n),{types:e,widgets:r}=t.reduce((n,[t,e])=>{if(t.endsWith("_TYPE")){let r=l.FieldOrSliceType.decode(e);if((0,u.isRight)(r))return{...n,types:n.types.set(t.substring(0,t.length-5),r.right)}}return t.endsWith("_POSITION")||t.endsWith("_TYPE")?n:{...n,widgets:{...n.widgets,[t]:e}}},{types:new Map,widgets:{}}),i=n.slugs_INTERNAL||[],o=n.uid;return{widgets:r,types:e,uid:o,slugs:i}}t.DocumentLegacy={_codec:d,extractMetadata:s,parse:function(n){let t=(0,o.pipe)(a.record(c.WidgetKey,a.unknown).decode(n),i.either.chain(n=>{let{types:t,widgets:e}=s(n);return d(t).decode(e)}));return(0,u.isLeft)(t)?void 0:t.right},encode:function(n){let t=d().encode(n);return{...t.content,...t.types}}}},63750:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultCtx=t.getFieldCtx=t.LegacyContentCtx=t.FieldOrSliceType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(75493);t.FieldOrSliceType=i.union([u.FieldType,u.SlicesTypes]);class o{constructor(n,t,e){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=n,this.fieldPath=t||[],this.allTypes=e||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=o,t.getFieldCtx=function(n,t,e){return new o(n,[...t.fieldPath,t.fieldKey,...e||[]],t.allTypes)},t.defaultCtx=function(n,t=new Map){return new o(n,[],t)}},84774:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmptyContent=t.EmptyLegacy=t.isEmptyContent=t.EmptyContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(93906);t.EmptyContentType="EmptyContent";let c=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.EmptyContentType;t.isEmptyContent=c;let f=o.union([o.null,o.type({value:o.null}),]),l=n=>new o.Type("EmptyLegacy",t.isEmptyContent,e=>(0,u.pipe)(f.decode(e),i.either.map(()=>({type:n,__TYPE__:t.EmptyContentType}))),()=>null);t.EmptyLegacy=l,t.EmptyContent=o.strict({type:o.string,__TYPE__:o.literal(t.EmptyContentType)})},28844:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GroupContent=t.isGroupContent=t.GroupContentType=t.GroupLegacy=t.GroupItemLegacy=t.GroupItemContent=t.GroupItemContentType=void 0;let r=e(78948),i=e(9554),u=e(87412),o=e(14632),a=r.__importStar(e(87830)),c=e(63750),f=e(93906),l=e(74912);t.GroupItemContentType="GroupItemContent",t.GroupItemContent=a.strict({__TYPE__:a.literal(t.GroupItemContentType),value:a.array(a.tuple([a.string,l.NestableContent]))});let p=a.array(a.tuple([a.string,a.unknown])),d=n=>new a.Type("GroupItemLegacy",n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.GroupItemContentType,e=>{let r=(0,o.pipe)(p.decode(e),i.either.map(e=>{let r=e.reduce((t,[e,r])=>{let i=(0,c.getFieldCtx)(e,n),o=(0,l.NestableLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?t:[...t,[e,o.right]]},[]);return{value:r,__TYPE__:t.GroupItemContentType}}));return r},t=>t.value.reduce((t,[e,r])=>{let i=(0,c.getFieldCtx)(e,n),u=(0,l.NestableLegacy)(i).encode(r);return u?{content:[...t.content,[e,u.content]],types:{...t.types,...u.types}}:t},{content:[],types:{}}));t.GroupItemLegacy=d;let s=n=>{let e=a.array((0,t.GroupItemLegacy)(n));return new a.Type("GroupLegacy",t.isGroupContent,n=>(0,o.pipe)(e.decode(n),i.either.map(n=>({value:n,__TYPE__:t.GroupContentType}))),t=>{let r=e.encode(t.value);return{content:r.map(n=>n.content),types:r.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:"Group"})}})};t.GroupLegacy=s,t.GroupContentType="GroupContentType";let m=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.GroupContentType;t.isGroupContent=m,t.GroupContent=a.strict({__TYPE__:a.literal(t.GroupContentType),value:a.array(t.GroupItemContent)})},33437:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UIDContent=t.UIDLegacy=t.isUIDContent=t.UIDContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(93906);t.UIDContentType="UIDContent";let c=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.UIDContentType;t.isUIDContent=c;let f=n=>new o.Type("UIDLegacy",t.isUIDContent,n=>(0,u.pipe)(o.string.decode(n),i.either.map(n=>t.UIDContent.encode({value:n,__TYPE__:t.UIDContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"UID"}}));t.UIDLegacy=f,t.UIDContent=o.type({__TYPE__:o.literal(t.UIDContentType),value:o.string})},51357:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetLegacy=t.isWidgetContent=t.WidgetContent=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(28844),o=e(74912),a=e(47828),c=e(33437);t.WidgetContent=i.union([u.GroupContent,o.NestableContent,c.UIDContent,a.SlicesContent,]);let f=n=>(0,u.isGroupContent)(n)||(0,o.isNestableContent)(n)||(0,c.isUIDContent)(n)||(0,a.isSlicesContent)(n);t.isWidgetContent=f;let l=n=>({decode(t){if(!n.fieldType)return;let e=(()=>{switch(n.fieldType){case"UID":return(0,c.UIDLegacy)(n);case"Group":return(0,u.GroupLegacy)(n);case"Choice":case"Slices":return(0,a.SlicesLegacy)(n);default:return(0,o.NestableLegacy)(n)}})();if(e)return e.decode(t)},encode(t){switch(t.__TYPE__){case c.UIDContentType:return(0,c.UIDLegacy)(n).encode(t);case u.GroupContentType:return(0,u.GroupLegacy)(n).encode(t);case a.SlicesContentType:return(0,a.SlicesLegacy)(n).encode(t);default:return(0,o.NestableLegacy)(n).encode(t)}}});t.WidgetLegacy=l},29585:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(28844),t),r.__exportStar(e(74912),t),r.__exportStar(e(47828),t),r.__exportStar(e(33437),t),r.__exportStar(e(51357),t)},55211:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanContent=t.BooleanLegacy=t.isBooleanContent=t.BooleanContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(93906);t.BooleanContentType="BooleanContent";let c=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.BooleanContentType;t.isBooleanContent=c;let f=n=>new o.Type("BooleanLegacy",t.isBooleanContent,n=>(0,u.pipe)(o.boolean.decode(n),i.either.map(n=>t.BooleanContent.encode({value:n,__TYPE__:t.BooleanContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"Boolean"}}));t.BooleanLegacy=f,t.BooleanContent=o.strict({__TYPE__:o.literal(t.BooleanContentType),value:o.boolean})},44390:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.EmbedContent=t.EmbedLegacy=t.EmbedContentLegacy=t.isEmbedContent=t.EmbedContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(49664),c=e(93906);t.EmbedContentType="EmbedContent";let f=n=>(0,c.hasContentType)(n)&&n.__TYPE__===t.EmbedContentType;t.isEmbedContent=f,t.EmbedContentLegacy=o.exact(o.intersection([o.type({embed_url:o.string,type:o.string}),o.partial({version:o.union([o.string,o.number,o.null]),title:a.StringOrNull,author_name:a.StringOrNull,author_url:a.StringOrNull,provider_name:a.StringOrNull,provider_url:a.StringOrNull,cache_age:o.union([o.string,o.number,o.null]),thumbnail_url:a.StringOrNull,thumbnail_width:a.NumberOrNull,thumbnail_height:a.NumberOrNull,html:a.StringOrNull}),]));let l=n=>new o.Type("EmbedLegacy",t.isEmbedContent,n=>(0,u.pipe)(t.EmbedContentLegacy.decode(n),i.either.map(e=>({...e,all:n,__TYPE__:t.EmbedContentType}))),t=>({content:t.all,types:{[n.keyOfType]:"Embed"}}));t.EmbedLegacy=l,t.EmbedContent=o.intersection([t.EmbedContentLegacy,o.strict({__TYPE__:o.literal(t.EmbedContentType),all:o.unknown}),])},82622:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContent=t.ColorLegacy=t.isColorContent=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(75493),c=r.__importDefault(e(55746)),f=e(93906),l=e(51243),p=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Color"===n.type;t.isColorContent=p;let d=n=>new o.Type("ColorLegacy",t.isColorContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.ColorContent.encode({value:n,type:a.ColorFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.ColorFieldType}}));t.ColorLegacy=d,t.ColorContent=o.strict({type:o.literal(a.ColorFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},95066:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.DateContent=t.DateLegacy=t.isDateContent=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(75493),c=r.__importDefault(e(55746)),f=e(93906),l=e(51243),p=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Date"===n.type;t.isDateContent=p;let d=n=>new o.Type("DateLegacy",t.isDateContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.DateContent.encode({value:n,type:a.DateFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.DateFieldType}}));t.DateLegacy=d,t.DateContent=o.strict({type:o.literal(a.DateFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},77512:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberContent=t.NumberLegacy=t.isNumberContent=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(75493),c=r.__importDefault(e(55746)),f=e(93906),l=e(51243),p=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Number"===n.type;t.isNumberContent=p;let d=n=>new o.Type("NumberLegacy",t.isNumberContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.NumberContent.encode({value:n,type:a.NumberFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.NumberFieldType}}));t.NumberLegacy=d,t.NumberContent=o.strict({type:o.literal(a.NumberFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},28107:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RangeContent=t.RangeLegacy=t.isRangeContent=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(75493),c=r.__importDefault(e(55746)),f=e(93906),l=e(51243),p=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Range"===n.type;t.isRangeContent=p;let d=n=>new o.Type("RangeLegacy",t.isRangeContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.RangeContent.encode({value:n,type:a.RangeFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.RangeFieldType}}));t.RangeLegacy=d,t.RangeContent=o.strict({type:o.literal(a.RangeFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},5805:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SelectContent=t.SelectLegacy=t.isSelectContent=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(75493),c=r.__importDefault(e(55746)),f=e(93906),l=e(51243),p=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Select"===n.type;t.isSelectContent=p;let d=n=>new o.Type("SelectLegacy",t.isSelectContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.SelectContent.encode({value:n,type:a.SelectFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.SelectFieldType}}));t.SelectLegacy=d,t.SelectContent=o.strict({type:o.literal(a.SelectFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},19522:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TextContent=t.TextLegacy=t.isTextContent=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(75493),c=r.__importDefault(e(55746)),f=e(93906),l=e(51243),p=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Text"===n.type;t.isTextContent=p;let d=n=>new o.Type("TextLegacy",t.isTextContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.TextContent.encode({value:n,type:a.TextFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.TextFieldType}}));t.TextLegacy=d,t.TextContent=o.strict({type:o.literal(a.TextFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},53033:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.TimestampContent=t.TimestampLegacy=t.isTimestampContent=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(75493),c=r.__importDefault(e(55746)),f=e(93906),l=e(51243),p=n=>(0,f.hasContentType)(n)&&n.__TYPE__===l.FieldContentType&&(0,f.hasFieldContentType)(n)&&"Timestamp"===n.type;t.isTimestampContent=p;let d=n=>new o.Type("TimestampLegacy",t.isTimestampContent,n=>(0,u.pipe)(c.default.decode(n),i.either.map(n=>t.TimestampContent.encode({value:n,type:a.TimestampFieldType,__TYPE__:l.FieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:a.TimestampFieldType}}));t.TimestampLegacy=d,t.TimestampContent=o.strict({type:o.literal(a.TimestampFieldType),value:c.default,__TYPE__:o.literal(l.FieldContentType)})},51243:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContentType=void 0,t.FieldContentType="FieldContent"},14898:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.FieldContent=t.FieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(82622),o=e(95066),a=e(77512),c=e(28107),f=e(5805),l=e(19522),p=e(53033);t.FieldType=i.keyof({Text:null,Date:null,Timestamp:null,Color:null,Number:null,Range:null,Select:null}),t.FieldContent=i.union([o.DateContent,u.ColorContent,a.NumberContent,c.RangeContent,f.SelectContent,l.TextContent,p.TimestampContent,]),r.__exportStar(e(82622),t),r.__exportStar(e(51243),t),r.__exportStar(e(95066),t),r.__exportStar(e(77512),t),r.__exportStar(e(28107),t),r.__exportStar(e(5805),t),r.__exportStar(e(19522),t),r.__exportStar(e(53033),t)},66450:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPointContent=t.GeoPointLegacy=t.isGeoPointContent=t.GeoPointContentType=void 0;let r=e(78948),i=e(9554),u=e(42275),o=r.__importStar(e(87830)),a=e(93906);t.GeoPointContentType="GeoPointContent";let c=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.GeoPointContentType;t.isGeoPointContent=c;let f=o.strict({position:o.strict({lat:o.number,lng:o.number})}),l=n=>new o.Type("GeoPointLegacy",t.isGeoPointContent,n=>(0,u.pipe)(f.decode(n),i.either.map(n=>t.GeoPointContent.encode({...n,__TYPE__:t.GeoPointContentType}))),t=>({content:{position:t.position},types:{[n.keyOfType]:"GeoPoint"}}));t.GeoPointLegacy=l,t.GeoPointContent=o.intersection([f,o.strict({__TYPE__:o.literal(t.GeoPointContentType)}),])},80286:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.ImageContent=t.ImageLegacy=t.ImageContentView=t.isImageContent=t.ImageContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(73147),c=e(49664),f=e(93906);t.ImageContentType="ImageContent";let l=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.ImageContentType;t.isImageContent=l;let p=o.exact(o.type({id:o.string,url:o.string,width:o.number,height:o.number}));t.ImageContentView=o.exact(o.intersection([o.type({origin:p,width:o.number,height:o.number,edit:o.type({zoom:o.number,crop:o.type({x:o.number,y:o.number}),background:o.string})}),o.partial({url:o.string,credits:c.NonEmptyStringOrNull,alt:c.NonEmptyStringOrNull,provider:c.StringOrNull}),]));let d=o.intersection([t.ImageContentView,o.partial({thumbnails:o.record(o.string,t.ImageContentView)}),]),s=n=>new o.Type("ImageLegacy",t.isImageContent,n=>(0,u.pipe)(d.decode(n),i.either.map(n=>t.ImageContent.encode({...n,__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:{[n.keyOfType]:"Image"}}));t.ImageLegacy=s,t.ImageContent=o.intersection([d,o.strict({__TYPE__:o.literal(t.ImageContentType)}),])},53304:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationFieldContent=t.IntegrationFieldLegacy=t.isIntegrationFieldContent=t.IntegrationFieldContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(93906);t.IntegrationFieldContentType="IntegrationFieldsContent";let c=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.IntegrationFieldContentType;t.isIntegrationFieldContent=c;let f=n=>new o.Type("IntegrationFieldLegacy",t.isIntegrationFieldContent,n=>(0,u.pipe)(o.string.decode(n),i.either.map(n=>t.IntegrationFieldContent.encode({value:n,__TYPE__:t.IntegrationFieldContentType}))),t=>({content:t.value,types:{[n.keyOfType]:"IntegrationFields"}}));t.IntegrationFieldLegacy=f,t.IntegrationFieldContent=o.strict({__TYPE__:o.literal(t.IntegrationFieldContentType),value:o.string})},89138:function(n,t,e){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=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(23284),c=e(49664),f=e(55242),l=e(93906);t.ImageLinkType="ImageLink";let p=o.exact(o.intersection([o.type({id:o.string,url:o.string,height:o.string,width:o.string,size:o.string,name:o.string,kind:o.string}),o.partial({date:c.StringOrNull}),])),d=new o.Type("ImageLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ImageLinkType,n=>(0,u.pipe)(p.decode(n),i.either.map(n=>t.ImageLinkContent.encode({...n,__TYPE__:t.ImageLinkType}))),n=>p.encode(n));t.ImageLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ImageLinkType)}),p,]),t.FileLinkType="FileLink";let s=o.exact(o.intersection([o.type({id:o.string,url:o.string,name:o.string,kind:o.string,size:(0,a.withFallback)(o.string,"0")}),o.partial({date:(0,f.nullable)(o.string)}),])),m=new o.Type("FileLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.FileLinkType,n=>(0,u.pipe)(s.decode(n),i.either.map(n=>t.FileLinkContent.encode({...n,__TYPE__:t.FileLinkType}))),n=>s.encode(n));t.FileLinkContent=o.intersection([s,o.exact(o.intersection([o.type({__TYPE__:o.literal(t.FileLinkType)}),o.partial({size:(0,a.withFallback)(o.string,"0")}),])),]),t.DocumentLinkType="DocumentLink";let h=o.strict({id:c.NonEmptyString}),v=new o.Type("DocumentLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.DocumentLinkType,n=>(0,u.pipe)(h.decode(n),i.either.map(n=>t.DocumentLinkContent.encode({...n,__TYPE__:t.DocumentLinkType}))),n=>h.encode(n));t.DocumentLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.DocumentLinkType)}),h,]),t.ExternalLinkType="ExternalLink";let g=o.exact(o.intersection([o.type({url:o.string}),o.partial({kind:o.literal("web"),target:c.StringOrNull,preview:(0,f.nullable)(o.partial({title:o.string}))}),])),y=new o.Type("ExternalLink",n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.ExternalLinkType,n=>(0,u.pipe)(g.decode(n),i.either.map(n=>t.ExternalLinkContent.encode({...n,__TYPE__:t.ExternalLinkType}))),n=>g.encode(n));t.ExternalLinkContent=o.intersection([o.strict({__TYPE__:o.literal(t.ExternalLinkType)}),g,]),t.LinkContentType="LinkContent";let _=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.LinkContentType;t.isLinkContent=_,t.LinkLegacy=o.union([d,m,v,y,]);let b=n=>new o.Type("LinkLegacy",t.isLinkContent,n=>(0,u.pipe)(t.LinkLegacy.decode(n),i.either.map(n=>t.LinkContent.encode({value:n,__TYPE__:t.LinkContentType}))),e=>({content:t.LinkLegacy.encode(e.value),types:{[n.keyOfType]:"Link"}}));t.LinkContentLegacy=b,t.Link=o.union([t.ImageLinkContent,t.FileLinkContent,t.DocumentLinkContent,t.ExternalLinkContent,]),t.LinkContent=o.strict({__TYPE__:o.literal(t.LinkContentType),value:t.Link})},69506:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableLegacy=t.isNestableContent=t.NestableContent=void 0;let r=e(78948),i=e(87412),u=r.__importStar(e(87830)),o=e(84774),a=e(55211),c=e(44390),f=e(14898),l=e(51243),p=e(66450),d=e(80286),s=e(53304),m=e(89138),h=e(18638),v=e(72372);t.NestableContent=u.union([o.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,m.LinkContent,h.RichTextContent,v.SeparatorContent,]);let g=n=>(0,f.isTextContent)(n)||(0,f.isColorContent)(n)||(0,f.isDateContent)(n)||(0,f.isTimestampContent)(n)||(0,f.isNumberContent)(n)||(0,f.isRangeContent)(n)||(0,f.isSelectContent)(n)||(0,p.isGeoPointContent)(n)||(0,h.isRichTextContent)(n)||(0,a.isBooleanContent)(n)||(0,c.isEmbedContent)(n)||(0,d.isImageContent)(n)||(0,s.isIntegrationFieldContent)(n)||(0,m.isLinkContent)(n)||(0,v.isSeparatorContent)(n);t.isNestableContent=g;let y=n=>({decode(t){if(!n.fieldType)return;let e=(0,o.EmptyLegacy)(n.fieldType).decode(t);if((0,i.isRight)(e))return e;let r=(()=>{switch(n.fieldType){case"Text":return(0,f.TextLegacy)(n);case"Color":return(0,f.ColorLegacy)(n);case"Date":return(0,f.DateLegacy)(n);case"Timestamp":return(0,f.TimestampLegacy)(n);case"Number":return(0,f.NumberLegacy)(n);case"Range":return(0,f.RangeLegacy)(n);case"Select":return(0,f.SelectLegacy)(n);case"GeoPoint":return(0,p.GeoPointLegacy)(n);case"StructuredText":return(0,h.RichTextLegacy)(n);case"Boolean":return(0,a.BooleanLegacy)(n);case"Embed":return(0,c.EmbedLegacy)(n);case"Image":return(0,d.ImageLegacy)(n);case"IntegrationFields":return(0,s.IntegrationFieldLegacy)(n);case"Link":return(0,m.LinkContentLegacy)(n);case"Separator":return(0,v.SeparatorLegacy)(n);default:return}})();if(r)return r.decode(t)},encode(t){switch(t.__TYPE__){case l.FieldContentType:if("Text"===t.type)return(0,f.TextLegacy)(n).encode(t);if("Color"===t.type)return(0,f.ColorLegacy)(n).encode(t);if("Range"===t.type)return(0,f.RangeLegacy)(n).encode(t);if("Date"===t.type)return(0,f.DateLegacy)(n).encode(t);if("Number"===t.type)return(0,f.NumberLegacy)(n).encode(t);if("Timestamp"===t.type)return(0,f.TimestampLegacy)(n).encode(t);if("Select"===t.type)return(0,f.SelectLegacy)(n).encode(t);return;case p.GeoPointContentType:return(0,p.GeoPointLegacy)(n).encode(t);case h.RichTextContentType:return(0,h.RichTextLegacy)(n).encode(t);case c.EmbedContentType:return(0,c.EmbedLegacy)(n).encode(t);case a.BooleanContentType:return(0,a.BooleanLegacy)(n).encode(t);case d.ImageContentType:return(0,d.ImageLegacy)(n).encode(t);case s.IntegrationFieldContentType:return(0,s.IntegrationFieldLegacy)(n).encode(t);case m.LinkContentType:return(0,m.LinkContentLegacy)(n).encode(t);case v.SeparatorContentType:return(0,v.SeparatorLegacy)(n).encode(t);default:return}}});t.NestableLegacy=y},92546:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Block=t.BlockLegacy=t.TextBlock=t.checkEmbedBlock=t.EmbedBlock=t.checkImageBlock=t.ImageBlock=t.ValidatedMetas=t.Span=t.Meta=void 0;let r=e(78948),i=e(9554),u=e(87412),o=e(14632),a=r.__importStar(e(87830)),c=e(82250),f=e(49664),l=e(55242),p=e(44390),d=e(80286),s=e(89138);t.Meta=a.exact(a.intersection([a.partial({data:a.unknown}),a.type({start:a.number,end:a.number,type:a.union([c.RichTextNodeTypeCodec,a.literal("label")])}),])),t.Span=t.Meta;let m=n=>new a.Type("ValidatedMetas",n=>Array.isArray(n)&&n.every(t.Meta.is),(e,r)=>{if(!Array.isArray(e))return a.failure(e,r);{let i=e.reduce((e,r)=>{let i=t.Meta.decode(r);if((0,u.isRight)(i)){let o=i.right;if(o.data&&"hyperlink"===o.type){let a=n.decode(o.data);return(0,u.isLeft)(a)?e:[...e,{...o,data:a.right}]}if("hyperlink"!==o.type)return[...e,o]}return e},[]).sort((n,t)=>n.start-t.start);return a.success(i)}},e=>e.reduce((e,r)=>{if("hyperlink"===r.type&&r.data){let i=n.decode(r.data);return(0,u.isLeft)(i)?e:[...e,{...r,data:n.encode(i.right)}]}return[...e,t.Meta.encode(r)]},[]));t.ValidatedMetas=m,t.ImageBlock=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.image),data:a.intersection([d.ImageContentView,a.partial({linkTo:(0,l.nullable)(s.Link)}),])}),a.partial({label:f.StringOrNull,direction:f.StringOrNull}),])),t.checkImageBlock=function(n){return n.type===c.RichTextNodeType.image};let h=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.embed),data:a.unknown}),a.partial({label:f.StringOrNull,direction:f.StringOrNull}),])),v=new a.Type("EmbedBlockLegacy",n=>"embed"===n.type,n=>(0,o.pipe)(h.decode(n),i.either.chain(n=>i.either.map(t=>[n,t])(p.EmbedContentLegacy.decode(n.data))),i.either.map(([n,e])=>t.EmbedBlock.encode({...n,data:{...e,__TYPE__:p.EmbedContentType,all:n.data}}))),n=>({...h.encode(n),data:p.EmbedContentLegacy.encode(n.data)}));t.EmbedBlock=a.exact(a.intersection([a.type({type:a.literal(c.RichTextNodeType.embed),data:p.EmbedContent}),a.partial({label:f.StringOrNull,direction:f.StringOrNull}),])),t.checkEmbedBlock=function(n){return n.type===c.RichTextNodeType.embed};let g=n=>a.exact(a.intersection([a.type({type:(0,l.refineType)(c.RichTextNodeTypeCodec,`string which isn't ${c.RichTextNodeType.image} ${c.RichTextNodeType.embed}`,n=>n!==c.RichTextNodeType.image&&n!==c.RichTextNodeType.embed),content:a.intersection([a.type({text:a.string}),a.partial({spans:(0,t.ValidatedMetas)(n)}),])}),a.partial({label:a.string,direction:a.string}),]));t.TextBlock=g(s.Link);let y=g(s.LinkLegacy),_=a.union([v,t.ImageBlock,y,]);t.BlockLegacy=new a.Type("BlockLegacy",n=>v.is(n)||t.ImageBlock.is(n)||y.is(n),n=>_.decode(n),n=>t.ImageBlock.is(n)?t.ImageBlock.encode(n):t.EmbedBlock.is(n)?v.encode(n):y.encode(n)),t.Block=a.union([t.ImageBlock,t.EmbedBlock,t.TextBlock])},18638:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichTextLegacy=t.RichTextContent=t.isRichTextContent=t.RichTextContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(93906),c=e(92546);t.RichTextContentType="StructuredTextContent";let f=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.RichTextContentType;t.isRichTextContent=f;let l=o.array(c.BlockLegacy);t.RichTextContent=o.strict({__TYPE__:o.literal(t.RichTextContentType),value:o.array(c.Block)}),r.__exportStar(e(92546),t);let p=n=>new o.Type("RichTextLegacy",t.isRichTextContent,n=>(0,u.pipe)(l.decode(n),i.either.map(n=>t.RichTextContent.encode({value:n,__TYPE__:t.RichTextContentType}))),t=>({content:l.encode(t.value),types:{[n.keyOfType]:"StructuredText"}}));t.RichTextLegacy=p},72372:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SeparatorContent=t.SeparatorLegacy=t.isSeparatorContent=t.SeparatorContentType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(93906);t.SeparatorContentType="SeparatorContent";let o=n=>(0,u.hasContentType)(n)&&n.__TYPE__===t.SeparatorContentType;t.isSeparatorContent=o;let a=n=>new i.Type("SeparatorLegacy",t.isSeparatorContent,()=>i.success(t.SeparatorContent.encode({__TYPE__:t.SeparatorContentType})),()=>({content:{},types:{[n.keyOfType]:"Separator"}}));t.SeparatorLegacy=a,t.SeparatorContent=i.strict({__TYPE__:i.literal(t.SeparatorContentType)})},74912:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(55211),t),r.__exportStar(e(44390),t),r.__exportStar(e(14898),t),r.__exportStar(e(66450),t),r.__exportStar(e(80286),t),r.__exportStar(e(53304),t),r.__exportStar(e(89138),t),r.__exportStar(e(69506),t),r.__exportStar(e(18638),t),r.__exportStar(e(72372),t)},80975:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSliceContent=t.CompositeSliceLegacy=t.isCompositeSliceContent=t.CompositeSliceContentType=void 0;let r=e(78948),i=e(9554),u=e(87412),o=e(14632),a=r.__importStar(e(87830)),c=e(63750),f=e(93906),l=e(74912),p=e(95887);t.CompositeSliceContentType="CompositeSliceContent";let d=n=>(0,f.hasContentType)(n)&&n.__TYPE__===t.CompositeSliceContentType;t.isCompositeSliceContent=d;let s=a.exact(a.partial({repeat:a.array(a.unknown),"non-repeat":a.UnknownRecord})),m=n=>new a.Type("CompositeSliceLegacy",t.isCompositeSliceContent,e=>(0,o.pipe)(s.decode(e),i.either.map(e=>{let r=(()=>{let t=(0,c.getFieldCtx)("repeat",n),r=(0,p.RepeatableWidgetsLegacy)(t).decode(e.repeat);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[],i=Object.entries(e["non-repeat"]||{}).reduce((t,[e,r])=>{let i=(0,c.getFieldCtx)(e,n,["non-repeat"]);if(!i)return t;let o=(0,l.NestableLegacy)(i).decode(r);return!o||(0,u.isLeft)(o)?t:{...t,[e]:o.right}},{});return{nonRepeat:i,repeat:r,__TYPE__:t.CompositeSliceContentType}})),t=>{let e=Object.entries(t.nonRepeat).reduce((t,[e,r])=>{let i=(0,c.getFieldCtx)(e,n,["non-repeat"]),u=(0,l.NestableLegacy)(i).encode(r);return u?{content:{...t.content,[e]:u.content},types:{...t.types,...u.types}}:t},{content:{},types:{}}),r=(()=>{let e=(0,c.getFieldCtx)("repeat",n),r=(0,p.RepeatableWidgetsLegacy)(e).encode(t.repeat);return r})()||[];return{content:{"non-repeat":e.content,repeat:r.map(n=>n.content)},types:{[n.keyOfType]:"Slice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})}}});t.CompositeSliceLegacy=m,t.CompositeSliceContent=a.strict({__TYPE__:a.literal(t.CompositeSliceContentType),nonRepeat:a.record(a.string,l.NestableContent),repeat:p.RepeatableWidgets})},95887:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RepeatableWidgets=t.RepeatableWidgetsLegacy=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(28844),o=e(74912),a=n=>i.array((0,u.GroupItemLegacy)(n));t.RepeatableWidgetsLegacy=a;let c=i.tuple([i.string,o.NestableContent]),f=i.strict({__TYPE__:i.literal(u.GroupItemContentType),value:i.array(c)});i.array(c),t.RepeatableWidgets=i.array(f)},61467:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceContent=t.SharedSliceLegacy=t.isSharedSliceContent=t.SharedSliceContentType=void 0;let r=e(78948),i=e(9554),u=e(87412),o=e(14632),a=r.__importStar(e(87830)),c=e(23284),f=e(63750),l=e(93906),p=e(74912),d=e(95887);t.SharedSliceContentType="SharedSliceContent";let s=n=>(0,l.hasContentType)(n)&&n.__TYPE__===t.SharedSliceContentType;t.isSharedSliceContent=s;let m=a.exact(a.type({variation:a.string,items:(0,c.withFallback)(a.array(a.unknown),[]),primary:(0,c.withFallback)(a.UnknownRecord,{})})),h=n=>new a.Type("SharedSliceLegacy",t.isSharedSliceContent,e=>(0,o.pipe)(m.decode(e),i.either.map(e=>{let r=(()=>{let t=(0,f.getFieldCtx)("items",n,["variations",e.variation,]),r=(0,d.RepeatableWidgetsLegacy)(t).decode(e.items);if(!(!r||(0,u.isLeft)(r)))return r.right})()||[],i=Object.entries(e.primary).reduce((t,[r,i])=>{let o=(0,f.getFieldCtx)(r,n,["variations",e.variation,"primary",]),a=(0,p.NestableLegacy)(o).decode(i);return!a||(0,u.isLeft)(a)?t:{...t,[r]:a.right}},{});return{variation:e.variation,primary:i,items:r,__TYPE__:t.SharedSliceContentType}})),t=>{let e=Object.entries(t.primary).reduce((e,[r,i])=>{let u=(0,f.getFieldCtx)(r,n,["variations",t.variation,"primary",]),o=(0,p.NestableLegacy)(u).encode(i);return o?{content:{...e.content,[r]:o.content},types:{...e.types,...o.types}}:e},{content:{},types:{}}),r=(()=>{let e=(0,f.getFieldCtx)("items",n,["variations",t.variation,]),r=(0,d.RepeatableWidgetsLegacy)(e).encode(t.items);return r})()||[];return{content:{primary:e.content,items:r.map(n=>n.content),variation:t.variation},types:{[n.keyOfType]:"SharedSlice",...e.types,...r.reduce((n,t)=>({...n,...t.types}),{})}}});t.SharedSliceLegacy=h,t.SharedSliceContent=a.strict({__TYPE__:a.literal(t.SharedSliceContentType),variation:a.string,primary:a.record(a.string,p.NestableContent),items:d.RepeatableWidgets})},44979:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleSliceLegacy=t.isSimpleSliceContent=t.SimpleSliceContent=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(28844),o=e(74912);t.SimpleSliceContent=i.union([o.NestableContent,u.GroupContent]);let a=n=>(0,o.isNestableContent)(n)||(0,u.isGroupContent)(n);t.isSimpleSliceContent=a;let c=n=>({decode:((0,o.NestableLegacy)(n)||(0,u.GroupLegacy)(n)).decode.bind(null),encode:t=>"GroupContentType"===t.__TYPE__?(0,u.GroupLegacy)(n).encode(t):(0,o.NestableLegacy)(n).encode(t)});t.SimpleSliceLegacy=c},54672:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceContent=t.SliceLegacy=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(80975),o=e(61467),a=e(44979),c=n=>({decode(t){let e=(()=>{switch(n.fieldType){case"Slice":return(0,u.CompositeSliceLegacy)(n);case"SharedSlice":return(0,o.SharedSliceLegacy)(n);default:return(0,a.SimpleSliceLegacy)(n)}})();return e.decode(t)},encode(t){switch(t.__TYPE__){case"SharedSliceContent":return(0,o.SharedSliceLegacy)(n).encode(t);case"CompositeSliceContent":return(0,u.CompositeSliceLegacy)(n).encode(t);default:return(0,a.SimpleSliceLegacy)(n).encode(t)}}});t.SliceLegacy=c,t.SliceContent=i.union([u.CompositeSliceContent,o.SharedSliceContent,a.SimpleSliceContent,]),r.__exportStar(e(80975),t),r.__exportStar(e(61467),t),r.__exportStar(e(44979),t)},78005:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesItemLegacy=t.SliceItemContent=void 0;let r=e(78948),i=e(9554),u=e(87412),o=e(14632),a=r.__importStar(e(87830)),c=e(55242),f=e(63750),l=e(54672),p=e(80975),d=e(61467),s=e(44979);t.SliceItemContent=a.type({key:a.string,name:a.string,maybeLabel:a.union([a.string,a.undefined]),widget:l.SliceContent});let m=a.exact(a.intersection([a.type({key:a.string,value:a.unknown}),a.partial({label:(0,c.nullable)(a.string)}),])),h=n=>new a.Type("SlicesItemLegacy",n=>((0,d.isSharedSliceContent)(n.widget),(0,p.isCompositeSliceContent)(n.widget),(0,s.isSimpleSliceContent)(n.widget)),(t,e)=>(0,o.pipe)(m.decode(t),i.either.chain(r=>{var i;let o=r.key.indexOf("$"),c=r.key.substring(0,o>0?o:void 0),p=(0,f.getFieldCtx)(c,n),d=(0,l.SliceLegacy)(p).decode(r.value);return!d||(0,u.isLeft)(d)?a.failure(t,e):a.success({key:r.key,name:c,maybeLabel:null!==(i=r.label)&&void 0!==i?i:void 0,widget:d.right})})),t=>{let e=(0,f.getFieldCtx)(t.name,n),r=(0,l.SliceLegacy)(e).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=h},25230:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesContent=t.SlicesLegacy=t.isSlicesContent=t.SlicesContentType=void 0;let r=e(78948),i=e(9554),u=e(14632),o=r.__importStar(e(87830)),a=e(93906),c=e(78005);t.SlicesContentType="SliceContentType";let f=n=>(0,a.hasContentType)(n)&&n.__TYPE__===t.SlicesContentType;t.isSlicesContent=f;let l=n=>{let e=o.array((0,c.SlicesItemLegacy)(n));return new o.Type("SlicesLegacy",t.isSlicesContent,n=>(0,u.pipe)(e.decode(n),i.either.map(n=>({__TYPE__:t.SlicesContentType,value:n}))),t=>{let r=e.encode(t.value);return{content:r.map(n=>n.content),types:r.reduce((n,t)=>({...n,...t.types}),{[n.keyOfType]:"Slices"})}})};t.SlicesLegacy=l,t.SlicesContent=o.type({__TYPE__:o.literal(t.SlicesContentType),value:o.array(c.SliceItemContent)})},47828:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(54672),t),r.__exportStar(e(78005),t),r.__exportStar(e(25230),t)},42793:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(60716),t),r.__exportStar(e(29585),t),r.__exportStar(e(63750),t)},93906:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.hasContentType=t.hasFieldContentType=void 0;let r=e(87412),i=e(29585);function u(n){return"object"==typeof n&&null!==n&&"__TYPE__"in n}t.hasFieldContentType=function(n){return u(n)&&n.__TYPE__===i.FieldContentType&&(null==n?void 0:n.type)!==void 0&&"string"==typeof n.type&&(0,r.isRight)(i.FieldType.decode(n.type))},t.hasContentType=u},70090:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.filterMissingSharedSlices=t.collectWidgets=t.validateSlices=t.toStatic=t.flattenWidgets=t.CustomType=t.StaticCustomType=void 0;let r=e(78948),i=e(87412),u=r.__importStar(e(87830)),o=e(69624),a=e(49664),c=e(56668);class f extends Error{constructor(n){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=n,this.message=this._formatError(n)}_formatError(n){let t=n.map(n=>` - ${n}`);return`The following slices doesn't exists in your Prismic repository:
2
- ${t.join("\n")}
3
- `}}function l(n){return u.exact(u.intersection([u.type({id:u.string,label:a.StringOrNull,repeatable:(0,o.withFallback)(u.boolean,!0),json:u.record(u.string,n),status:(0,o.withFallback)(u.boolean,!0)}),u.partial({hash:u.string}),]))}function p(n){return Object.entries(n.json).reduce((n,[,t])=>{let e=Object.entries(t);return n.concat(e)},[])}function d(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>{let i=Object.entries(r).reduce((n,[e,r])=>{let i=t(e,r);return i?{...n,[e]:i}:n},{});return{...n,[e]:i}},{});return{...n,json:e}}t.StaticCustomType=l(c.StaticSection),t.CustomType=l(c.DynamicSection),t.flattenWidgets=p,t.toStatic=function(n,t){let e=Object.entries(n.json).reduce((n,[e,r])=>({...n,[e]:c.Sections.toStatic(r,t)}),{});return{...n,json:e}},t.validateSlices=function(n,t){let e=(function(n){let t=function(n){let t=p(n).filter(([,n])=>"Slices"===n.type),e=t.reduce((n,[,t])=>{let e=Object.entries(t.config&&t.config.choices?t.config.choices:{}).filter(([,n])=>"SharedSlice"===n.type).map(([n])=>n);return n.concat(e)},[]);return e}(n);return function(n){return t.map(n)}})(n)(n=>{let e=t.get(n);if(!e)return n}).filter(Boolean);return e.length>0?(0,i.left)(new f(e)):(0,i.right)(n)},t.collectWidgets=d,t.filterMissingSharedSlices=function(n,t){return d(n,(n,e)=>{if("Slices"===e.type){if(!e.config||!e.config.choices)return e;let r=Object.entries(e.config.choices).reduce((n,[e,r])=>"SharedSlice"!==r.type||t.get(e)?{...n,[e]:r}:n,{}),i={...e.config,choices:r};return{...e,config:i}}return e})}},56668:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Sections=t.DynamicSection=t.StaticSection=t.sectionReader=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(88966),o=e(35264);function a(n){return i.record(u.WidgetKey,n)}t.sectionReader=a,t.StaticSection=a(o.StaticWidget),t.DynamicSection=a(o.DynamicWidget),t.Sections={toStatic(n,t){let e=Object.entries(n).reduce((n,[e,r])=>({...n,[e]:o.Widgets.toStatic(r,t)}),{});return e}}},88082:function(n,t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.DiffOperation=void 0,(e=t.DiffOperation||(t.DiffOperation={})).Added="added",e.Removed="removed",e.Updated="updated"},73106:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SliceComparator=void 0;let r=e(68396),i=e(88082),u=e(17398);t.SliceComparator={compare(n,t){if(!n&&t)return{op:i.DiffOperation.Added,value:t};if(n&&!t)return{op:i.DiffOperation.Removed};let e=function(n,t){let e=r.Objects.zipObjects(n,t);return Object.entries(e).reduce((n,[t,e])=>"variations"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{})}(n,t),o=r.Objects.zipObjects(n&&r.Arrays.toRecord(n.variations,n=>n.id),t&&r.Arrays.toRecord(t.variations,n=>n.id)),a=Object.entries(o).reduce((n,[t,e])=>{if(!e)return n;let r=u.VariationComparator.compare(e.left,e.right);return r?{...n,[t]:r}:n},{}),c={...e,...r.Objects.isNotEmpty(a)?{variations:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},17398:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.VariationComparator=void 0;let r=e(68396),i=e(88082);function u(n,t){let e=r.Objects.zipObjects(n,t),u=Object.entries(e).reduce((n,[t,e])=>{if(JSON.stringify(null==e?void 0:e.left)===JSON.stringify(null==e?void 0:e.right))return n;let r=(()=>{if((null==e?void 0:e.left)||(null==e?void 0:e.right))return(null==e?void 0:e.left)&&!e.right?{op:i.DiffOperation.Removed}:!(null==e?void 0:e.left)&&(null==e?void 0:e.right)?{op:i.DiffOperation.Added,value:e.right}:{op:i.DiffOperation.Updated,value:e.right}})();return r?{...n,[t]:r}:n},{});return r.Objects.isNotEmpty(u)?u:void 0}t.VariationComparator={compare(n,t){if(n&&!t)return{op:i.DiffOperation.Removed};if(!n&&t)return{op:i.DiffOperation.Added,value:t};let e=function(n,t){let e=r.Objects.zipObjects(n,t);return Object.entries(e).reduce((n,[t,e])=>"primary"===t||"items"===t||(null==e?void 0:e.left)===(null==e?void 0:e.right)?n:{...n,[t]:null==e?void 0:e.right},{})}(n,t),o=u(null==n?void 0:n.primary,null==t?void 0:t.primary),a=u(null==n?void 0:n.items,null==t?void 0:t.items),c={...e,...o?{primary:o}:{},...a?{items:a}:{}};if(r.Objects.isNotEmpty(c))return{op:i.DiffOperation.Updated,value:c}}}},18784:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(88082),t),r.__exportStar(e(73106),t),r.__exportStar(e(17398),t)},93784:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(70090),t),r.__exportStar(e(18784),t),r.__exportStar(e(56668),t),r.__exportStar(e(75493),t)},82051:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Group=t.GroupConfig=t.GroupFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(88966),o=e(49664),a=e(56966);t.GroupFieldType="Group",t.GroupConfig=i.exact(i.partial({label:o.StringOrNull,repeat:i.boolean,fields:i.record(u.WidgetKey,a.NestableWidget)})),t.Group=i.exact(i.intersection([i.type({type:i.literal(t.GroupFieldType)}),i.partial({fieldset:o.StringOrNull,icon:i.string,description:i.string,config:t.GroupConfig}),]))},29218:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.UID=t.UIDConfig=t.UIDFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.UIDFieldType="UID",t.UIDConfig=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.UID=i.exact(i.intersection([i.type({type:i.literal(t.UIDFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.UIDConfig}),]))},35264:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Widgets=t.FieldType=t.DynamicWidget=t.StaticWidget=t.widgetReader=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(82051),o=e(82250),a=e(56966),c=e(14149),f=e(29218);function l(n){return i.union([f.UID,a.NestableWidget,u.Group,n])}t.widgetReader=l,t.StaticWidget=l(c.StaticSlices),t.DynamicWidget=l(c.DynamicSlices),t.FieldType=i.keyof({[o.ColorFieldType]:null,[o.BooleanFieldType]:null,[o.NumberFieldType]:null,[o.EmbedFieldType]:null,[o.GeoPointFieldType]:null,[o.DateFieldType]:null,[o.RangeFieldType]:null,[o.RichTextFieldType]:null,[o.SelectFieldType]:null,[o.SeparatorFieldType]:null,[o.TextFieldType]:null,[o.TimestampFieldType]:null,[o.LinkFieldType]:null,[o.ImageFieldType]:null,[o.IntegrationFieldType]:null,[f.UIDFieldType]:null,[u.GroupFieldType]:null,[c.SlicesFieldType]:null,[c.LegacySlicesFieldType]:null}),t.Widgets={toStatic(n,t){switch(n.type){case"Choice":case"Slices":return c.Slices.toStatic(n,t);default:return n}}}},75493:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(82051),t),r.__exportStar(e(82250),t),r.__exportStar(e(25852),t),r.__exportStar(e(27035),t),r.__exportStar(e(29218),t),r.__exportStar(e(35264),t)},50541:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanField=t.BooleanConfig=t.BooleanFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.BooleanFieldType="Boolean",t.BooleanConfig=i.exact(i.partial({label:u.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(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Color=t.ColorConfig=t.ColorFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.ColorFieldType="Color",t.ColorConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string})),t.Color=i.exact(i.intersection([i.type({type:i.literal(t.ColorFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.ColorConfig}),]))},33006:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Date=t.DateConfig=t.DateFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.DateFieldType="Date",t.DateConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),t.Date=i.exact(i.intersection([i.type({type:i.literal(t.DateFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.DateConfig}),]))},26493:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Embed=t.EmbedConfig=t.EmbedFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.EmbedFieldType="Embed",t.EmbedConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,useAsTitle:i.boolean})),t.Embed=i.exact(i.intersection([i.type({type:i.literal(t.EmbedFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.EmbedConfig}),]))},91301:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.GeoPoint=t.GeoPointConfig=t.GeoPointFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.GeoPointFieldType="GeoPoint",t.GeoPointConfig=i.exact(i.partial({label:u.StringOrNull})),t.GeoPoint=i.exact(i.intersection([i.type({type:i.literal(t.GeoPointFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.GeoPointConfig}),]))},2507:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Image=t.ImageConfig=t.Thumbnail=t.ImageFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664),o=r.__importDefault(e(14419));t.ImageFieldType="Image",t.Thumbnail=i.exact(i.intersection([i.type({name:i.string}),o.default,])),t.ImageConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,constraint:o.default,thumbnails:i.readonlyArray(t.Thumbnail)})),t.Image=i.exact(i.intersection([i.type({type:i.literal(t.ImageFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.ImageConfig}),]))},22262:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.IntegrationField=t.IntegrationFieldConfig=t.IntegrationFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.IntegrationFieldType="IntegrationFields",t.IntegrationFieldConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,catalog:i.string})),t.IntegrationField=i.exact(i.intersection([i.type({type:i.literal(t.IntegrationFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.IntegrationFieldConfig}),]))},45576:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Link=t.LinkConfig=t.LinkFieldType=void 0;let r=e(78948),i=e(87412),u=r.__importStar(e(87830)),o=e(69624),a=e(49664),c=n=>{if(n instanceof Array){let t=n.reduce((n,t)=>n&&"string"==typeof t,!0);if(t)return u.success(n)}},f=n=>{if("string"==typeof n)return u.success([n])},l=new u.Type("MasksArrayString",n=>n instanceof Array,(n,t)=>i.either.chain(u.union([u.array(u.string),u.string]).validate(n,t),e=>c(e)||f(e)||u.failure(n,t)),n=>n);t.LinkFieldType="Link",t.LinkConfig=u.exact(u.partial({label:a.StringOrNull,useAsTitle:u.boolean,placeholder:u.string,select:(0,o.withFallback)(u.union([u.literal("media"),u.literal("document"),u.literal("web"),u.null,]),null),customtypes:u.readonlyArray(u.string),masks:l,tags:l,allowTargetBlank:u.boolean})),t.Link=u.exact(u.intersection([u.type({type:u.literal(t.LinkFieldType)}),u.partial({fieldset:a.StringOrNull,config:t.LinkConfig}),]))},56966:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.NestableWidget=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(50541),o=e(247),a=e(33006),c=e(26493),f=e(91301),l=e(2507),p=e(22262),d=e(45576),s=e(99336),m=e(86422),h=e(9591),v=e(64753),g=e(3448),y=e(69809),_=e(82135);t.NestableWidget=i.union([o.Color,u.BooleanField,c.Embed,f.GeoPoint,a.Date,s.Number,m.Range,h.RichText,v.Select,g.Separator,y.Text,_.Timestamp,d.Link,l.Image,p.IntegrationField,])},99336:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Number=t.NumberConfig=t.NumberFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(59054),o=e(49664);t.NumberFieldType="Number",t.NumberConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),t.Number=i.exact(i.intersection([i.type({type:i.literal(t.NumberFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.NumberConfig}),]))},86422:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Range=t.RangeConfig=t.RangeFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(59054),o=e(49664);t.RangeFieldType="Range",t.RangeConfig=i.exact(i.partial({label:o.StringOrNull,placeholder:i.string,min:i.union([i.number,u.NumberFromString]),max:i.union([i.number,u.NumberFromString]),step:i.union([i.number,u.NumberFromString])})),t.Range=i.exact(i.intersection([i.type({type:i.literal(t.RangeFieldType)}),i.partial({fieldset:o.StringOrNull,config:t.RangeConfig}),]))},9591:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.RichText=t.RichTextConfig=t.RichTextNodeTypeCodec=t.RichTextNodeType=t.DEFAULT_OPTION=t.RichTextFieldType=void 0;let r=e(78948),i=e(9554),u=e(87412),o=e(14632),a=r.__importStar(e(87830)),c=e(49664),f=r.__importDefault(e(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",n=>"string"==typeof n,n=>(0,o.pipe)(a.union([a.string,a.null]).decode(n),i.either.map(n=>{if(!n)return t.DEFAULT_OPTION;let e=n.split(",").map(n=>n.trim()),r=e.filter(n=>(0,u.getOrElseW)(()=>void 0)(t.RichTextNodeTypeCodec.decode(n)));return r.length?r.join(","):t.DEFAULT_OPTION})),n=>n),p=n=>{if(!n)return a.success([])},d=n=>{if(n instanceof Object){if(!Object.entries(n).length)return a.success([]);if(n[""])return a.success(n[""].map(n=>n.name));let t=Object.entries(n).reduce((n,[,t])=>n.concat(t.map(n=>n.name)),[]).filter(Boolean);return a.success(t)}},s=n=>{if(n instanceof Array){let t=n.reduce((n,t)=>n&&"string"==typeof t,!0);if(t)return a.success(n)}},m=n=>{if("string"==typeof n)return a.success([n])},h=new a.Type("RichTextLabels",n=>n instanceof Array,(n,t)=>{let e=a.record(a.string,a.readonlyArray(a.record(a.literal("name"),a.string))),r=a.readonlyArray(a.string);return(0,o.pipe)(a.union([e,r,a.string,a.null]).decode(n),i.either.chain(e=>p(e)||s(e)||d(e)||m(e)||a.failure(n,t)))},n=>n);t.RichTextConfig=a.exact(a.partial({label:c.StringOrNull,placeholder:a.string,useAsTitle:a.boolean,single:l,multi:l,imageConstraint:f.default,labels:h,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(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Select=t.SelectConfig=t.SelectFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.SelectFieldType="Select",t.SelectConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default_value:i.string,options:i.readonlyArray(i.union([i.string,u.StringFromNumber,u.StringFromBoolean]))})),t.Select=i.exact(i.intersection([i.type({type:i.literal(t.SelectFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.SelectConfig}),]))},3448:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Separator=t.SeparatorConfig=t.SeparatorFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.SeparatorFieldType="Separator",t.SeparatorConfig=i.exact(i.partial({label:u.StringOrNull})),t.Separator=i.exact(i.intersection([i.type({type:i.literal(t.SeparatorFieldType)}),i.partial({config:t.SeparatorConfig}),]))},69809:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Text=t.TextConfig=t.TextFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.TextFieldType="Text",t.TextConfig=i.exact(i.partial({label:u.StringOrNull,useAsTitle:i.boolean,placeholder:i.string})),t.Text=i.exact(i.intersection([i.type({type:i.literal(t.TextFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.TextConfig}),]))},82135:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Timestamp=t.TimestampConfig=t.TimestampFieldType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(49664);t.TimestampFieldType="Timestamp",t.TimestampConfig=i.exact(i.partial({label:u.StringOrNull,placeholder:i.string,default:i.string})),t.Timestamp=i.exact(i.intersection([i.type({type:i.literal(t.TimestampFieldType)}),i.partial({fieldset:u.StringOrNull,config:t.TimestampConfig}),]))},82250:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(50541),t),r.__exportStar(e(247),t),r.__exportStar(e(33006),t),r.__exportStar(e(26493),t),r.__exportStar(e(91301),t),r.__exportStar(e(2507),t),r.__exportStar(e(22262),t),r.__exportStar(e(45576),t),r.__exportStar(e(56966),t),r.__exportStar(e(99336),t),r.__exportStar(e(86422),t),r.__exportStar(e(9591),t),r.__exportStar(e(64753),t),r.__exportStar(e(3448),t),r.__exportStar(e(69809),t),r.__exportStar(e(82135),t)},14419:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(87412),u=r.__importStar(e(87830)),o=e(11621),a=e(49664),c=new u.Type("SideConstraints",n=>!n||"number"==typeof n,(n,t)=>i.either.chain(u.union([u.literal("auto"),u.literal(""),u.Int,o.IntFromString,a.IntFromNumber,a.IntFromPixels,u.null,]).validate(n,t),n=>"auto"===n||""===n?u.success(null):u.success(n)),n=>n),f=u.partial({width:c,height:c});t.default=f},25852:function(n,t,e){var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConstraint=void 0;var i=e(14419);Object.defineProperty(t,"ImageConstraint",{enumerable:!0,get:function(){return r(i).default}})},87190:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.CompositeSlice=t.CompositeSliceConfig=t.CompositeSliceType=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(88966),o=e(49664),a=e(56966);t.CompositeSliceType="Slice",t.CompositeSliceConfig=i.exact(i.partial({label:o.StringOrNull})),t.CompositeSlice=i.exact(i.intersection([i.type({type:i.literal(t.CompositeSliceType)}),i.partial({fieldset:o.StringOrNull,description:i.string,icon:i.string,display:i.string,"non-repeat":i.record(u.WidgetKey,a.NestableWidget),repeat:i.record(u.WidgetKey,a.NestableWidget),config:t.CompositeSliceConfig}),]))},41379:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.LegacySlice=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(82051),o=e(56966);t.LegacySlice=i.union([o.NestableWidget,u.Group])},14881:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSlice=t.SharedSliceType=t.Variation=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(69624),o=e(88966),a=e(56966);t.Variation=i.exact(i.intersection([i.type({id:i.string,name:i.string,description:i.string,imageUrl:(0,u.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(o.WidgetKey,a.NestableWidget),items:i.record(o.WidgetKey,a.NestableWidget)}),])),t.SharedSliceType="SharedSlice",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}),]))},15669:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SharedSliceRef=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(14881);t.SharedSliceRef=i.exact(i.type({type:i.literal(u.SharedSliceType)}))},304:function(n,t){Object.defineProperty(t,"__esModule",{value:!0})},14149:function(n,t,e){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=e(78948),i=r.__importStar(e(87830)),u=e(88966),o=e(49664),a=e(87190),c=e(41379),f=e(14881),l=e(15669);function p(n){return i.exact(i.partial({label:o.StringOrNull,labels:t.SlicesLabels,choices:i.record(u.WidgetKey,i.union([c.LegacySlice,a.CompositeSlice,n]))}))}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(n,t){let e=Object.entries(n.choices||{}).reduce((n,[e,r])=>{if("SharedSlice"!==r.type)return{...n,[e]:r};{let i=t.get(e);return i?{...n,[e]:i}:n}},{});return{...n,choices:e}}};function s(n){return i.exact(i.intersection([i.type({type:i.keyof({[t.SlicesFieldType]:null,[t.LegacySlicesFieldType]:null})}),i.partial({fieldset:o.StringOrNull,config:n}),]))}t.slicesReader=s,t.StaticSlices=s(t.StaticSlicesConfig),t.DynamicSlices=s(t.DynamicSlicesConfig),t.Slices={toStatic:(n,t)=>n.config?{...n,config:d.toStatic(n.config,t)}:n}},73961:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.SlicesTypes=void 0;let r=e(78948),i=r.__importStar(e(87830)),u=e(87190),o=e(14881);t.SlicesTypes=i.keyof({[u.CompositeSliceType]:null,[o.SharedSliceType]:null})},27035:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948);r.__exportStar(e(87190),t),r.__exportStar(e(41379),t),r.__exportStar(e(14881),t),r.__exportStar(e(15669),t),r.__exportStar(e(304),t),r.__exportStar(e(14149),t),r.__exportStar(e(73961),t)},71551:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.toRecord=void 0,t.toRecord=function(n,t){return n.reduce((n,e)=>{let r=t(e);return{...n,[r]:e}},{})}},73147:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.withOptionals=t.isNotEmpty=t.zipObjects=void 0,t.zipObjects=function(n,t){let e=[...new Set(Object.keys(n||{}).concat(Object.keys(t||{}))),];return e.reduce((e,r)=>{let i=null==n?void 0:n[r],u=null==t?void 0:t[r];return{...e,[r]:{left:i,right:u}}},{})},t.isNotEmpty=function(n){return Boolean(Object.keys(n).length)},t.withOptionals=function(n,t){return{...n,...t.reduce((n,[t,e])=>e?{...n,[t]:e}:n,{})}}},68396:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.Objects=t.Arrays=void 0;let r=e(78948);t.Arrays=r.__importStar(e(71551)),t.Objects=r.__importStar(e(73147))},76088:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830));t.default=new o.Type("dateFromString",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.toISOString())},49848:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830));t.default=new o.Type("dateFromStringOrNumber",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.union([o.number,o.string]).validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n)},99451:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830));t.default=new o.Type("dateFromTsMs",n=>n instanceof Date,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(e=>{let r=new Date(e);return isNaN(r.getTime())?o.failure(n,t):o.success(r)})),n=>n.getTime())},79107:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830));t.default=new o.Type("IntFromNumber",o.Int.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.Int.is(n)?o.success(n):o.success(Math.round(n)))),o.Int.encode)},71112:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830)),a=/^([0-9]+)px$/;t.default=new o.Type("IntFromPixels",o.Int.is,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(e=>{try{let r=e.match(a);if(!r)return o.failure(n,t);let i=parseInt(r[1]);return o.success(i)}catch{return o.failure(n,t)}})),String)},4898:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=r.__importStar(e(87830)),u=e(55242);t.default=(0,u.refineType)(i.string,"nonEmptyString",n=>n.trim().length>0)},28881:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=e(87830),a=r.__importDefault(e(82395));t.default=new o.Type("nonEmptyStringOrNull",n=>"string"==typeof n||null===n,(n,t)=>(0,u.pipe)(a.default.validate(n,t),(0,i.chain)(n=>"string"==typeof n&&n.length>0?(0,o.success)(n):(0,o.success)(null))),n=>n)},46567:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=r.__importStar(e(87830)),u=e(55242);t.default=(0,u.nullable)(i.number)},23517:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.boolean.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},65259:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830));t.default=new o.Type("StringFromInt",o.string.is,(n,t)=>(0,u.pipe)(o.number.validate(n,t),(0,i.chain)(n=>o.success(n.toString()))),n=>n)},82395:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=r.__importStar(e(87830)),u=e(55242);t.default=(0,u.nullable)(i.string)},55746:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0});let r=e(78948),i=e(81878),u=e(42275),o=r.__importStar(e(87830));t.default=new o.Type("TrimmedString",o.string.is,(n,t)=>(0,u.pipe)(o.string.validate(n,t),(0,i.chain)(n=>o.success(function(n){let t=0;for(;t<n.length&&n[t]<=" ";)t++;let e=n.length;for(;t<e&&n[e-1]<=" ";)e--;return n.substring(t,e)}(n)))),n=>n)},55242:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.addType=t.isEmpty=t.objectToMap=t.grouped=t.formatDate=t.formatDateTime=t.filterDouble=t.refineType=t.nullable=void 0;let r=e(78948),i=e(9554),u=e(42275),o=r.__importStar(e(87830)),a=e(47361);t.nullable=function(n){return o.union([n,o.null,o.undefined])},t.refineType=function(n,t,e){return new o.Type(t,n.is,(t,r)=>(0,u.pipe)(n.validate(t,r),i.either.chain(n=>e(n)?o.success(n):o.failure(t,r))),n.encode)},t.filterDouble=function(n){if(""===n)return null;let t=Number(n);return Number.isNaN(t)?null:t},t.formatDateTime=function(n){return n.toISOString().replace(/\.\d{3}Z$/,"+0000")},t.formatDate=function(n){return n.toISOString().replace(/T.*/,"")},t.grouped=function(n,t){return n.reduce((n,e,r)=>(r%t==0?n.push([e]):n[Math.floor(r/t)].push(e),n),[])},t.objectToMap=function(n){return new Map(Object.entries(n))},t.isEmpty=function(n){for(let t in n)return!1;return!0},t.addType=function(n,t){return(0,a.mapOutput)(n,n=>({...n,__TYPE__:t}))}},49664:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.StringOrNull=t.StringFromNumber=t.StringFromBoolean=t.NumberOrNull=t.NonEmptyStringOrNull=t.NonEmptyString=t.IntFromPixels=t.IntFromNumber=t.Function=t.DateFromTsMs=t.DateFromStringOrNumber=t.DateFromString=void 0;let r=e(78948);var i=e(76088);Object.defineProperty(t,"DateFromString",{enumerable:!0,get:function(){return r.__importDefault(i).default}});var u=e(49848);Object.defineProperty(t,"DateFromStringOrNumber",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var o=e(99451);Object.defineProperty(t,"DateFromTsMs",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),t.Function=r.__importStar(e(55242));var a=e(79107);Object.defineProperty(t,"IntFromNumber",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var c=e(71112);Object.defineProperty(t,"IntFromPixels",{enumerable:!0,get:function(){return r.__importDefault(c).default}});var f=e(4898);Object.defineProperty(t,"NonEmptyString",{enumerable:!0,get:function(){return r.__importDefault(f).default}});var l=e(28881);Object.defineProperty(t,"NonEmptyStringOrNull",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var p=e(46567);Object.defineProperty(t,"NumberOrNull",{enumerable:!0,get:function(){return r.__importDefault(p).default}});var d=e(23517);Object.defineProperty(t,"StringFromBoolean",{enumerable:!0,get:function(){return r.__importDefault(d).default}});var s=e(65259);Object.defineProperty(t,"StringFromNumber",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var m=e(82395);Object.defineProperty(t,"StringOrNull",{enumerable:!0,get:function(){return r.__importDefault(m).default}})},46111:function(n,t,e){e.r(t),e.d(t,{getApplicativeComposition:function(){return a},getApplicativeMonoid:function(){return o}});var r=e(42925),i=e(42275),u=e(67560);function o(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}}function a(n,t){var e=(0,u.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,i.pipe)(n,o(t))}}}},42925:function(n,t,e){e.r(t),e.d(t,{ap:function(){return u},apFirst:function(){return o},apS:function(){return c},apSecond:function(){return a},getApplySemigroup:function(){return f},sequenceS:function(){return s},sequenceT:function(){return d}});var r=e(42275),i=e(97963);function u(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}}function o(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}}function a(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}}function c(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}}function f(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}}function l(n,t,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===t?n.apply(null,i):l(n,t-1,i)}}var p={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(i){return[n,t,e,r,i]}}}}}};function d(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var u,o=t.length,a=(i.e$.call(p,o)||(p[o]=l(r.tuple,o-1,[])),p[o]),c=n.map(t[0],a),f=1;f<o;f++)c=n.ap(c,t[f]);return c}}function s(n){return function(t){for(var e=Object.keys(t),r=e.length,i=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i}}};case 4:return function(t){return function(e){return function(r){return function(i){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u[n[3]]=i,u}}}};case 5:return function(t){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=i,o[n[4]]=u,o}}}}};default:return l(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<t;u++)i[n[u]]=e[u];return i},t-1,[])}}(e),u=n.map(t[e[0]],i),o=1;o<r;o++)u=n.ap(u,t[e[o]]);return u}}},1358:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tB},Alternative:function(){return tV},Applicative:function(){return tN},Apply:function(){return tU},Chain:function(){return tj},ChainRecBreadthFirst:function(){return t9},ChainRecDepthFirst:function(){return t4},Compactable:function(){return tX},Do:function(){return ef},Extend:function(){return tz},Filterable:function(){return tJ},FilterableWithIndex:function(){return t$},Foldable:function(){return tZ},FoldableWithIndex:function(){return tQ},FromEither:function(){return en},Functor:function(){return tC},FunctorWithIndex:function(){return tF},Monad:function(){return tY},Pointed:function(){return tP},Traversable:function(){return t0},TraversableWithIndex:function(){return t1},URI:function(){return tS},Unfoldable:function(){return tK},Witherable:function(){return t7},Zero:function(){return tG},alt:function(){return to},altW:function(){return tu},ap:function(){return n8},apFirst:function(){return tA},apS:function(){return es},apSecond:function(){return tL},append:function(){return y},appendW:function(){return _},array:function(){return eb},bind:function(){return ed},bindTo:function(){return el},chain:function(){return em},chainFirst:function(){return tq},chainRecBreadthFirst:function(){return t5},chainRecDepthFirst:function(){return t3},chainWithIndex:function(){return D},chop:function(){return nb},chunksOf:function(){return nS},compact:function(){return n9},comprehension:function(){return nR},concat:function(){return nO},concatW:function(){return nx},cons:function(){return eg},copy:function(){return nr},deleteAt:function(){return no},difference:function(){return nE},dropLeft:function(){return z},dropLeftWhile:function(){return J},dropRight:function(){return X},duplicate:function(){return tf},elem:function(){return ng},empty:function(){return ev},every:function(){return eu},exists:function(){return ea},extend:function(){return tc},filter:function(){return tn},filterE:function(){return t6},filterMap:function(){return n5},filterMapWithIndex:function(){return n4},filterWithIndex:function(){return ta},findFirst:function(){return Z},findFirstMap:function(){return Q},findIndex:function(){return $},findLast:function(){return nn},findLastIndex:function(){return ne},findLastMap:function(){return nt},flap:function(){return tD},flatMap:function(){return n2},flatten:function(){return n7},foldLeft:function(){return E},foldMap:function(){return tl},foldMapWithIndex:function(){return tp},foldRight:function(){return C},fromEither:function(){return R},fromEitherK:function(){return et},fromOption:function(){return T},fromOptionK:function(){return nT},fromPredicate:function(){return S},getDifferenceMagma:function(){return tW},getEq:function(){return tO},getIntersectionSemigroup:function(){return tk},getMonoid:function(){return tx},getOrd:function(){return tw},getSemigroup:function(){return tR},getShow:function(){return tT},getUnionMonoid:function(){return tE},getUnionSemigroup:function(){return tM},guard:function(){return tH},head:function(){return N},init:function(){return Y},insertAt:function(){return ni},intercalate:function(){return ec},intersection:function(){return nM},intersperse:function(){return nh},isEmpty:function(){return m},isNonEmpty:function(){return h},isOutOfBound:function(){return A},last:function(){return j},lefts:function(){return nl},let:function(){return ep},lookup:function(){return L},makeBy:function(){return b},map:function(){return n1},mapWithIndex:function(){return n3},match:function(){return O},matchLeft:function(){return M},matchLeftW:function(){return w},matchRight:function(){return W},matchRightW:function(){return k},matchW:function(){return x},modifyAt:function(){return na},of:function(){return nQ},partition:function(){return tt},partitionMap:function(){return tr},partitionMapWithIndex:function(){return ti},partitionWithIndex:function(){return te},prepend:function(){return v},prependAll:function(){return nm},prependToAll:function(){return e_},prependW:function(){return g},range:function(){return eh},reduce:function(){return td},reduceRight:function(){return tm},reduceRightWithIndex:function(){return th},reduceWithIndex:function(){return ts},replicate:function(){return I},reverse:function(){return nc},rights:function(){return nf},rotate:function(){return nv},scanLeft:function(){return P},scanRight:function(){return F},separate:function(){return n6},sequence:function(){return tg},size:function(){return U},snoc:function(){return ey},some:function(){return eo},sort:function(){return np},sortBy:function(){return n_},spanLeft:function(){return V},splitAt:function(){return nI},tail:function(){return q},takeLeft:function(){return K},takeLeftWhile:function(){return G},takeRight:function(){return B},traverse:function(){return tv},traverseWithIndex:function(){return ty},unfold:function(){return tI},union:function(){return nw},uniq:function(){return ny},unsafeDeleteAt:function(){return ei},unsafeInsertAt:function(){return ee},unsafeUpdateAt:function(){return er},unzip:function(){return ns},updateAt:function(){return nu},wilt:function(){return tb},wither:function(){return t_},zero:function(){return n0},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:nd(t,e,function(n,t){return[n,t]})}},zipWith:function(){return nd}});var r=e(42925),i=e(88543),u=e(25162),o=e(42275),a=e(67560),c=e(97963),f=e(43586),l=e(31583),p=e(34219),d=e(76511),s=e(28957),m=function(n){return 0===n.length},h=f.isNonEmpty,v=f.prepend,g=f.prependW,y=f.append,_=f.appendW,b=function(n,t){return n<=0?[]:f.makeBy(t)(n)},I=function(n,t){return b(n,function(){return t})};function S(n){return function(t){return n(t)?[t]:[]}}var T=function(n){return c.Wi(n)?[]:[n.value]},R=function(n){return c.nM(n)?[]:[n.right]},x=function(n,t){return function(e){return h(e)?t(e):n()}},O=x,w=function(n,t){return function(e){return h(e)?t(f.head(e),f.tail(e)):n()}},M=w,E=M,k=function(n,t){return function(e){return h(e)?t(f.init(e),f.last(e)):n()}},W=k,C=W,D=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},P=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},F=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},U=function(n){return n.length},A=f.isOutOfBound,L=l.lookup,N=l.head,j=l.last,q=function(n){return h(n)?c.G(f.tail(n)):c.YP},Y=function(n){return h(n)?c.G(f.init(n)):c.YP},K=function(n){return function(t){return A(n,t)?nr(t):t.slice(0,n)}},B=function(n){return function(t){return A(n,t)?nr(t):0===n?[]:t.slice(-n)}};function G(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}return e}}var H=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function V(n){return function(t){var e,r=nI(H(t,n))(t);return{init:r[0],rest:r[1]}}}var z=function(n){return function(t){return n<=0||m(t)?nr(t):n>=t.length?[]:t.slice(n,t.length)}},X=function(n){return function(t){return n<=0||m(t)?nr(t):n>=t.length?[]:t.slice(0,t.length-n)}};function J(n){return function(t){return t.slice(H(t,n))}}var $=l.findIndex;function Z(n){return l.findFirst(n)}var Q=l.findFirstMap;function nn(n){return l.findLast(n)}var nt=l.findLastMap,ne=l.findLastIndex,nr=function(n){return n.slice()},ni=function(n,t){return function(e){return n<0||n>e.length?c.YP:c.G(ee(n,t,e))}},nu=function(n,t){return na(n,function(){return t})},no=function(n){return function(t){return A(n,t)?c.YP:c.G(ei(n,t))}},na=function(n,t){return function(e){return A(n,e)?c.YP:c.G(er(n,t(e[n]),e))}},nc=function(n){return m(n)?[]:n.slice().reverse()},nf=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},np=function(n){return function(t){return t.length<=1?nr(t):t.slice().sort(n.compare)}},nd=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},ns=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nm=function(n){var t=f.prependAll(n);return function(n){return h(n)?t(n):[]}},nh=function(n){var t=f.intersperse(n);return function(n){return h(n)?t(n):nr(n)}},nv=function(n){var t=f.rotate(n);return function(n){return h(n)?t(n):nr(n)}},ng=l.elem,ny=function(n){var t=f.uniq(n);return function(n){return h(n)?t(n):nr(n)}},n_=function(n){var t=f.sortBy(n);return function(n){return h(n)?t(n):nr(n)}},nb=function(n){var t=f.chop(n);return function(n){return h(n)?t(n):[]}},nI=function(n){return function(t){return n>=1&&h(t)?f.splitAt(n)(t):m(t)?[nr(t),[]]:[[],nr(t)]}},nS=function(n){var t=f.chunksOf(n);return function(n){return h(n)?t(n):[]}},nT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return T(n.apply(void 0,t))}};function nR(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,i){return h(i)?n2(f.head(i),function(t){return r((0,o.pipe)(n,y(t)),f.tail(i))}):e.apply(void 0,n)?[t.apply(void 0,n)]:[]};return r([],n)}var nx=function(n){return function(t){return m(t)?nr(n):m(n)?nr(t):t.concat(n)}},nO=nx;function nw(n){var t=f.union(n);return function(e,r){if(void 0===r){var i=nw(n);return function(n){return i(n,e)}}return h(e)&&h(r)?t(r)(e):h(e)?nr(e):nr(r)}}function nM(n){var t=ng(n);return function(e,r){if(void 0===r){var i=nM(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function nE(n){var t=ng(n);return function(e,r){if(void 0===r){var i=nE(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nk=function(n,t){return(0,o.pipe)(n,n1(t))},nW=function(n,t){return(0,o.pipe)(n,n3(t))},nC=function(n,t){return(0,o.pipe)(n,n8(t))},nD=function(n,t){return(0,o.pipe)(n,tn(t))},nP=function(n,t){return(0,o.pipe)(n,n5(t))},nF=function(n,t){return(0,o.pipe)(n,tt(t))},nU=function(n,t){return(0,o.pipe)(n,tr(t))},nA=function(n,t){return(0,o.pipe)(n,te(t))},nL=function(n,t){return(0,o.pipe)(n,ti(t))},nN=function(n,t){return(0,o.pipe)(n,to(t))},nj=function(n,t,e){return(0,o.pipe)(n,td(t,e))},nq=function(n){var t=tl(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nY=function(n,t,e){return(0,o.pipe)(n,tm(t,e))},nK=function(n,t,e){return(0,o.pipe)(n,ts(t,e))},nB=function(n){var t=tp(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nG=function(n,t,e){return(0,o.pipe)(n,th(t,e))},nH=function(n,t){return(0,o.pipe)(n,n4(t))},nV=function(n,t){return(0,o.pipe)(n,ta(t))},nz=function(n,t){return(0,o.pipe)(n,tc(t))},nX=function(n){var t=tv(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nJ=function(n){var t=ty(n);return function(n,e){return(0,o.pipe)(n,t(e))}},n$=l._chainRecDepthFirst,nZ=l._chainRecBreadthFirst,nQ=f.of,n0=function(){return[]},n1=function(n){return function(t){return t.map(function(t){return n(t)})}},n8=function(n){return n2(function(t){return(0,o.pipe)(n,n1(t))})},n2=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,D(function(n,e){return t(e,n)}))}),n7=n2(o.identity),n3=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n4=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);c.pC(i)&&e.push(i.value)}return e}},n5=function(n){return n4(function(t,e){return n(e)})},n9=n5(o.identity),n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,p.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return te(function(t,e){return n(e)})},te=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,p.separated)(e,r)}},tr=function(n){return ti(function(t,e){return n(e)})},ti=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,p.separated)(e,r)}},tu=function(n){return function(t){return t.concat(n())}},to=tu,ta=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},tc=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tf=tc(o.identity),tl=l.foldMap,tp=l.foldMapWithIndex,td=l.reduce,ts=l.reduceWithIndex,tm=l.reduceRight,th=l.reduceRightWithIndex,tv=function(n){var t=ty(n);return function(n){return t(function(t,e){return n(e)})}},tg=function(n){return function(t){return nj(t,n.of(n0()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),e)})}},ty=function(n){return function(t){return ts(n.of(n0()),function(e,r,i){return n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(e,i))})}},t_=function(n){var t=t8(n);return function(n){return function(e){return t(e,n)}}},tb=function(n){var t=t2(n);return function(n){return function(e){return t(e,n)}}},tI=function(n,t){for(var e=[],r=n;;){var i=t(r);if(c.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},tS="Array",tT=l.getShow,tR=function(){return{concat:function(n,t){return n.concat(t)}}},tx=function(){return{concat:tR().concat,empty:[]}},tO=l.getEq,tw=l.getOrd,tM=function(n){var t=nw(n);return{concat:function(n,e){return t(e)(n)}}},tE=function(n){return{concat:tM(n).concat,empty:[]}},tk=function(n){var t=nM(n);return{concat:function(n,e){return t(e)(n)}}},tW=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tC={URI:tS,map:nk},tD=(0,a.flap)(tC),tP={URI:tS,of:nQ},tF={URI:tS,map:nk,mapWithIndex:nW},tU={URI:tS,map:nk,ap:nC},tA=(0,r.apFirst)(tU),tL=(0,r.apSecond)(tU),tN={URI:tS,map:nk,ap:nC,of:nQ},tj={URI:tS,map:nk,ap:nC,chain:n2},tq=(0,i.chainFirst)(tj),tY={URI:tS,map:nk,ap:nC,of:nQ,chain:n2},tK={URI:tS,unfold:tI},tB={URI:tS,map:nk,alt:nN},tG={URI:tS,zero:n0},tH=(0,s.guard)(tG,tP),tV={URI:tS,map:nk,ap:nC,of:nQ,alt:nN,zero:n0},tz={URI:tS,map:nk,extend:nz},tX={URI:tS,compact:n9,separate:n6},tJ={URI:tS,map:nk,compact:n9,separate:n6,filter:nD,filterMap:nP,partition:nF,partitionMap:nU},t$={URI:tS,map:nk,mapWithIndex:nW,compact:n9,separate:n6,filter:nD,filterMap:nP,partition:nF,partitionMap:nU,partitionMapWithIndex:nL,partitionWithIndex:nA,filterMapWithIndex:nH,filterWithIndex:nV},tZ={URI:tS,reduce:nj,foldMap:nq,reduceRight:nY},tQ={URI:tS,reduce:nj,foldMap:nq,reduceRight:nY,reduceWithIndex:nK,foldMapWithIndex:nB,reduceRightWithIndex:nG},t0={URI:tS,map:nk,reduce:nj,foldMap:nq,reduceRight:nY,traverse:nX,sequence:tg},t1={URI:tS,map:nk,mapWithIndex:nW,reduce:nj,foldMap:nq,reduceRight:nY,reduceWithIndex:nK,foldMapWithIndex:nB,reduceRightWithIndex:nG,traverse:nX,sequence:tg,traverseWithIndex:nJ},t8=(0,d.witherDefault)(t0,tX),t2=(0,d.wiltDefault)(t0,tX),t7={URI:tS,map:nk,compact:n9,separate:n6,filter:nD,filterMap:nP,partition:nF,partitionMap:nU,reduce:nj,foldMap:nq,reduceRight:nY,traverse:nX,sequence:tg,wither:t8,wilt:t2},t3=l.chainRecDepthFirst,t4={URI:tS,map:nk,ap:nC,chain:n2,chainRec:n$},t5=l.chainRecBreadthFirst,t9={URI:tS,map:nk,ap:nC,chain:n2,chainRec:nZ},t6=(0,d.filterE)(t7),en={URI:tS,fromEither:R},et=(0,u.fromEitherK)(en),ee=f.unsafeInsertAt,er=function(n,t,e){return h(e)?f.unsafeUpdateAt(n,t,e):[]},ei=function(n,t){var e=t.slice();return e.splice(n,1),e},eu=l.every,eo=function(n){return function(t){return t.some(n)}},ea=eo,ec=l.intercalate,ef=nQ(c.F4),el=(0,a.bindTo)(tC),ep=(0,a.let)(tC),ed=(0,i.bind)(tj),es=(0,r.apS)(tU),em=n2,eh=f.range,ev=[],eg=f.cons,ey=f.snoc,e_=nm,eb={URI:tS,compact:n9,separate:n6,map:nk,ap:nC,of:nQ,chain:n2,filter:nD,filterMap:nP,partition:nF,partitionMap:nU,mapWithIndex:nW,partitionMapWithIndex:nL,partitionWithIndex:nA,filterMapWithIndex:nH,filterWithIndex:nV,alt:nN,zero:n0,unfold:tI,reduce:nj,foldMap:nq,reduceRight:nY,traverse:nX,sequence:tg,reduceWithIndex:nK,foldMapWithIndex:nB,reduceRightWithIndex:nG,traverseWithIndex:nJ,extend:nz,wither:t8,wilt:t2}},88543:function(n,t,e){function r(n){var t=i(n);return function(n){return function(e){return t(e,n)}}}function i(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}function u(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}e.r(t),e.d(t,{bind:function(){return u},chainFirst:function(){return r},tap:function(){return i}})},56661:function(n,t,e){e.r(t),e.d(t,{tailRec:function(){return r}});var r=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right}},90817:function(n,t,e){e.r(t),e.d(t,{Bifunctor:function(){return k},Contravariant:function(){return E},Functor:function(){return w},URI:function(){return O},bimap:function(){return R},const_:function(){return W},contramap:function(){return S},flap:function(){return M},getApplicative:function(){return g},getApply:function(){return v},getBooleanAlgebra:function(){return h},getBounded:function(){return f},getEq:function(){return a},getHeytingAlgebra:function(){return m},getMonoid:function(){return p},getOrd:function(){return c},getRing:function(){return s},getSemigroup:function(){return l},getSemiring:function(){return d},getShow:function(){return o},make:function(){return u},map:function(){return T},mapLeft:function(){return x}});var r=e(42275),i=e(67560),u=r.unsafeCoerce;function o(n){return{show:function(t){return"make(".concat(n.show(t),")")}}}var a=r.identity,c=r.identity,f=r.identity,l=r.identity,p=r.identity,d=r.identity,s=r.identity,m=r.identity,h=r.identity;function v(n){return{URI:O,_E:void 0,map:_,ap:function(t,e){return u(n.concat(t,e))}}}function g(n){var t=v(n);return{URI:O,_E:void 0,map:t.map,ap:t.ap,of:function(){return u(n.empty)}}}var y=function(n,t){return(0,r.pipe)(n,S(t))},_=function(n,t){return(0,r.pipe)(n,T(t))},b=function(n,t,e){return(0,r.pipe)(n,R(t,e))},I=function(n,t){return(0,r.pipe)(n,x(t))},S=function(){return r.unsafeCoerce},T=function(){return r.unsafeCoerce},R=function(n){return function(t){return u(n(t))}},x=function(n){return function(t){return u(n(t))}},O="Const",w={URI:O,map:_},M=(0,i.flap)(w),E={URI:O,contramap:y},k={URI:O,bimap:b,mapLeft:I},W={URI:O,map:_,contramap:y,bimap:b,mapLeft:I}},81878:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return no},ApT:function(){return n5},Applicative:function(){return G},Apply:function(){return B},Bifunctor:function(){return nr},Chain:function(){return H},ChainRec:function(){return nf},Do:function(){return n0},Extend:function(){return nc},Foldable:function(){return $},FromEither:function(){return nd},Functor:function(){return A},Monad:function(){return V},MonadThrow:function(){return np},Pointed:function(){return q},Traversable:function(){return nn},URI:function(){return w},alt:function(){return nu},altW:function(){return ni},ap:function(){return K},apFirst:function(){return nR},apFirstW:function(){return nx},apS:function(){return n3},apSW:function(){return n4},apSecond:function(){return nO},apSecondW:function(){return nw},apW:function(){return Y},as:function(){return L},asUnit:function(){return N},bimap:function(){return nt},bind:function(){return n2},bindTo:function(){return n1},bindW:function(){return n7},chain:function(){return ti},chainFirst:function(){return tu},chainFirstW:function(){return to},chainNullableK:function(){return nJ},chainOptionK:function(){return nD},chainOptionKW:function(){return nP},chainW:function(){return tr},duplicate:function(){return nW},either:function(){return tf},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}return!nh(r)&&t.equals(e,r.right)}}},exists:function(){return nQ},extend:function(){return na},filterOrElse:function(){return nq},filterOrElseW:function(){return nY},flap:function(){return nT},flatMap:function(){return h},flatMapNullable:function(){return nN},flatMapOption:function(){return nj},flatten:function(){return nk},flattenW:function(){return nE},fold:function(){return nb},foldMap:function(){return X},foldW:function(){return ny},fromNullable:function(){return nH},fromNullableK:function(){return nX},fromOption:function(){return nm},fromOptionK:function(){return nC},fromPredicate:function(){return ns},getAltValidation:function(){return F},getApplicativeValidation:function(){return P},getApplyMonoid:function(){return tp},getApplySemigroup:function(){return tl},getCompactable:function(){return W},getEq:function(){return E},getFilterable:function(){return C},getOrElse:function(){return nS},getOrElseW:function(){return nI},getSemigroup:function(){return k},getShow:function(){return M},getValidation:function(){return tm},getValidationMonoid:function(){return ts},getValidationSemigroup:function(){return td},getWitherable:function(){return D},isLeft:function(){return nh},isRight:function(){return nv},left:function(){return s},let:function(){return n8},liftNullable:function(){return nU},liftOption:function(){return nA},map:function(){return U},mapLeft:function(){return ne},match:function(){return n_},matchW:function(){return ng},of:function(){return j},orElse:function(){return nG},orElseW:function(){return nB},parseJSON:function(){return ta},reduce:function(){return z},reduceRight:function(){return J},right:function(){return m},sequence:function(){return Q},sequenceArray:function(){return te},stringifyJSON:function(){return tc},swap:function(){return nK},tap:function(){return nM},throwError:function(){return nl},toError:function(){return nZ},toUnion:function(){return n$},traverse:function(){return Z},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n9},tryCatch:function(){return nV},tryCatchK:function(){return nz}});var r=e(46111),i=e(42925),u=e(88543),o=e(56661),a=e(25162),c=e(42275),f=e(67560),l=e(97963),p=e(34219),d=e(76511),s=l.t$,m=l.F2,h=(0,c.dual)(2,function(n,t){return nh(n)?n:t(n.right)}),v=function(n,t){return(0,c.pipe)(n,U(t))},g=function(n,t){return(0,c.pipe)(n,K(t))},y=function(n,t,e){return(0,c.pipe)(n,z(t,e))},_=function(n){return function(t,e){var r=X(n);return(0,c.pipe)(t,r(e))}},b=function(n,t,e){return(0,c.pipe)(n,J(t,e))},I=function(n){var t=Z(n);return function(n,e){return(0,c.pipe)(n,t(e))}},S=function(n,t,e){return(0,c.pipe)(n,nt(t,e))},T=function(n,t){return(0,c.pipe)(n,ne(t))},R=function(n,t){return(0,c.pipe)(n,nu(t))},x=function(n,t){return(0,c.pipe)(n,na(t))},O=function(n,t){return(0,o.tailRec)(t(n),function(n){return nh(n)?m(s(n.left)):nh(n.right)?s(t(n.right.left)):m(m(n.right.right))})},w="Either",M=function(n,t){return{show:function(e){return nh(e)?"left(".concat(n.show(e.left),")"):"right(".concat(t.show(e.right),")")}}},E=function(n,t){return{equals:function(e,r){return e===r||(nh(e)?nh(r)&&n.equals(e.left,r.left):nv(r)&&t.equals(e.right,r.right))}}},k=function(n){return{concat:function(t,e){return nh(e)?t:nh(t)?e:m(n.concat(t.right,e.right))}}},W=function(n){var t=s(n.empty);return{URI:w,_E:void 0,compact:function(n){return nh(n)?n:"None"===n.right._tag?t:m(n.right.value)},separate:function(n){return nh(n)?(0,p.separated)(n,n):nh(n.right)?(0,p.separated)(m(n.right.left),t):(0,p.separated)(t,m(n.right.right))}}},C=function(n){var t,e=s(n.empty),r=W(n),i=r.compact;return{URI:w,_E:void 0,map:v,compact:i,separate:r.separate,filter:function(n,t){return nh(n)?n:t(n.right)?n:e},filterMap:function(n,t){if(nh(n))return n;var r=t(n.right);return"None"===r._tag?e:m(r.value)},partition:function(n,t){return nh(n)?(0,p.separated)(n,n):t(n.right)?(0,p.separated)(e,m(n.right)):(0,p.separated)(m(n.right),e)},partitionMap:function(n,t){if(nh(n))return(0,p.separated)(n,n);var r=t(n.right);return nh(r)?(0,p.separated)(m(r.left),e):(0,p.separated)(e,m(r.right))}}},D=function(n){var t=C(n),e=W(n);return{URI:w,_E:void 0,map:v,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:I,sequence:Q,reduce:y,foldMap:_,reduceRight:b,wither:(0,d.witherDefault)(nn,e),wilt:(0,d.wiltDefault)(nn,e)}},P=function(n){return{URI:w,_E:void 0,map:v,ap:function(t,e){return nh(t)?nh(e)?s(n.concat(t.left,e.left)):t:nh(e)?e:m(t.right(e.right))},of:j}},F=function(n){return{URI:w,_E:void 0,map:v,alt:function(t,e){if(nv(t))return t;var r=e();return nh(r)?s(n.concat(t.left,r.left)):r}}},U=function(n){return function(t){return nh(t)?t:m(n(t.right))}},A={URI:w,map:v},L=(0,c.dual)(2,(0,f.as)(A)),N=(0,f.asUnit)(A),j=m,q={URI:w,of:j},Y=function(n){return function(t){return nh(t)?t:nh(n)?n:m(t.right(n.right))}},K=Y,B={URI:w,map:v,ap:g},G={URI:w,map:v,ap:g,of:j},H={URI:w,map:v,ap:g,chain:h},V={URI:w,map:v,ap:g,of:j,chain:h},z=function(n,t){return function(e){return nh(e)?n:t(n,e.right)}},X=function(n){return function(t){return function(e){return nh(e)?n.empty:t(e.right)}}},J=function(n,t){return function(e){return nh(e)?n:t(e.right,n)}},$={URI:w,reduce:y,foldMap:_,reduceRight:b},Z=function(n){return function(t){return function(e){return nh(e)?n.of(s(e.left)):n.map(t(e.right),m)}}},Q=function(n){return function(t){return nh(t)?n.of(s(t.left)):n.map(t.right,m)}},nn={URI:w,map:v,reduce:y,foldMap:_,reduceRight:b,traverse:I,sequence:Q},nt=function(n,t){return function(e){return nh(e)?s(n(e.left)):m(t(e.right))}},ne=function(n){return function(t){return nh(t)?s(n(t.left)):t}},nr={URI:w,bimap:S,mapLeft:T},ni=function(n){return function(t){return nh(t)?n():t}},nu=ni,no={URI:w,map:v,alt:R},na=function(n){return function(t){return nh(t)?t:m(n(t))}},nc={URI:w,map:v,extend:x},nf={URI:w,map:v,ap:g,chain:h,chainRec:O},nl=s,np={URI:w,map:v,ap:g,of:j,chain:h,throwError:nl},nd={URI:w,fromEither:c.identity},ns=(0,a.fromPredicate)(nd),nm=(0,a.fromOption)(nd),nh=l.nM,nv=l.tO,ng=function(n,t){return function(e){return nh(e)?n(e.left):t(e.right)}},ny=ng,n_=ng,nb=n_,nI=function(n){return function(t){return nh(t)?n(t.left):t.right}},nS=nI,nT=(0,f.flap)(A),nR=(0,i.apFirst)(B),nx=nR,nO=(0,i.apSecond)(B),nw=nO,nM=(0,c.dual)(2,u.tap(H)),nE=h(c.identity),nk=nE,nW=na(c.identity),nC=(0,a.fromOptionK)(nd),nD=(0,a.chainOptionK)(nd,H),nP=nD,nF={fromEither:nd.fromEither},nU=l.uL(nF),nA=l.WE(nF),nL={flatMap:h},nN=l.ny(nF,nL),nj=l.hU(nF,nL),nq=(0,a.filterOrElse)(nd,H),nY=nq,nK=function(n){return nh(n)?m(n.left):s(n.right)},nB=function(n){return function(t){return nh(t)?n(t.left):t}},nG=nB,nH=function(n){return function(t){return null==t?s(n):m(t)}},nV=function(n,t){try{return m(n())}catch(e){return s(t(e))}},nz=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return nV(function(){return n.apply(void 0,e)},t)}},nX=function(n){var t=nH(n);return function(n){return(0,c.flow)(n,t)}},nJ=function(n){var t=nX(n);return function(n){return h(t(n))}},n$=ny(c.identity,c.identity);function nZ(n){return n instanceof Error?n:Error(String(n))}var nQ=function(n){return function(t){return!nh(t)&&n(t.right)}},n0=j(l.F4),n1=(0,f.bindTo)(A),n8=(0,f.let)(A),n2=u.bind(H),n7=n2,n3=(0,i.apS)(B),n4=n3,n5=j(l.Xl),n9=function(n){return function(t){var e=n(0,l.YM(t));if(nh(e))return e;for(var r=[e.right],i=1;i<t.length;i++){var u=n(i,t[i]);if(nh(u))return u;r.push(u.right)}return m(r)}},n6=function(n){var t=n9(n);return function(n){return l.Od(n)?t(n):n5}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(c.identity),tr=h,ti=h,tu=nM,to=nM;function ta(n,t){return nV(function(){return JSON.parse(n)},t)}var tc=function(n,t){return nV(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},t)},tf={URI:w,map:v,of:j,ap:g,chain:h,reduce:y,foldMap:_,reduceRight:b,traverse:I,sequence:Q,bimap:S,mapLeft:T,alt:R,extend:x,chainRec:O,throwError:nl},tl=(0,i.getApplySemigroup)(B),tp=(0,r.getApplicativeMonoid)(G),td=function(n,t){return(0,i.getApplySemigroup)(P(n))(t)},ts=function(n,t){return(0,r.getApplicativeMonoid)(P(n))(t)};function tm(n){var t=P(n).ap,e=F(n).alt;return{URI:w,_E:void 0,map:v,of:j,chain:h,bimap:S,mapLeft:T,reduce:y,foldMap:_,reduceRight:b,extend:x,traverse:I,sequence:Q,chainRec:O,throwError:nl,ap:t,alt:e}}},47797:function(n,t,e){e.r(t),e.d(t,{URI:function(){return i},getMonoid:function(){return o},getSemigroup:function(){return u}});var r=e(42275),i="Endomorphism",u=function(){return{concat:function(n,t){return(0,r.flow)(n,t)}}},o=function(){return{concat:u().concat,empty:r.identity}}},65191:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return c},contramap:function(){return a},eq:function(){return g},eqBoolean:function(){return y},eqDate:function(){return I},eqNumber:function(){return b},eqStrict:function(){return f},eqString:function(){return _},fromEquals:function(){return i},getMonoid:function(){return d},getSemigroup:function(){return p},getStructEq:function(){return h},getTupleEq:function(){return m},strictEqual:function(){return v},struct:function(){return u},tuple:function(){return o}});var r=e(42275),i=function(n){return{equals:function(t,e){return t===e||n(t,e)}}},u=function(n){return i(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})},o=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return i(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})},a=function(n){return function(t){return i(function(e,r){return t.equals(n(e),n(r))})}},c="Eq",f={equals:function(n,t){return n===t}},l={equals:function(){return!0}},p=function(){return{concat:function(n,t){return i(function(e,r){return n.equals(e,r)&&t.equals(e,r)})}}},d=function(){return{concat:p().concat,empty:l}},s={URI:c,contramap:function(n,t){return(0,r.pipe)(n,a(t))}},m=o,h=u,v=f.equals,g=s,y=f,_=f,b=f,I={equals:function(n,t){return n.valueOf()===t.valueOf()}}},25162:function(n,t,e){e.r(t),e.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 o},fromOptionK:function(){return c},fromPredicate:function(){return a},tapEither:function(){return m}});var r=e(88543),i=e(42275),u=e(97963);function o(n){return function(t){return function(e){return n.fromEither(u.Wi(e)?u.t$(t()):u.F2(e.value))}}}function a(n){return function(t,e){return function(r){return n.fromEither(t(r)?u.F2(r):u.t$(e(r)))}}}function c(n){var t=o(n);return function(n){var e=t(n);return function(n){return(0,i.flow)(n,e)}}}function f(n,t){var e=c(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}}function l(n){return function(t){return(0,i.flow)(t,n.fromEither)}}function p(n,t){var e=l(n);return function(n){return function(r){return t.chain(r,e(n))}}}function d(n,t){var e=m(n,t);return function(n){return function(t){return e(t,n)}}}function s(n,t){return function(e,r){return function(i){return t.chain(i,function(t){return n.fromEither(e(t)?u.F2(t):u.t$(r(t)))})}}}function m(n,t){var e=l(n),i=(0,r.tap)(t);return function(n,t){return i(n,e(t))}}},67560:function(n,t,e){e.r(t),e.d(t,{as:function(){return f},asUnit:function(){return l},bindTo:function(){return o},flap:function(){return u},getFunctorComposition:function(){return c},let:function(){return a},map:function(){return i}});var r=e(42275);function i(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function u(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}}function o(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}}function a(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}}function c(n,t){var e=i(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}}function f(n){return function(t,e){return n.map(t,function(){return e})}}function l(n){var t=f(n);return function(n){return t(n,void 0)}}},76113:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return a},endo:function(){return o},filterFirst:function(){return i},filterSecond:function(){return u},reverse:function(){return r}});var r=function(n){return{concat:function(t,e){return n.concat(e,t)}}},i=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}},u=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}},o=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}},a=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}}},55116:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return n_},Filterable:function(){return nb},Functor:function(){return ng},URI:function(){return nt},collect:function(){return y},compact:function(){return V},deleteAt:function(){return S},difference:function(){return nR},elem:function(){return h},empty:function(){return nx},filter:function(){return z},filterMap:function(){return X},filterMapWithIndex:function(){return U},filterWithIndex:function(){return A},flap:function(){return ny},foldMap:function(){return nf},foldMapWithIndex:function(){return ns},fromFoldable:function(){return C},getDifferenceMagma:function(){return nu},getEq:function(){return E},getFilterableWithIndex:function(){return no},getFoldable:function(){return np},getFoldableWithIndex:function(){return nh},getIntersectionSemigroup:function(){return ni},getMonoid:function(){return k},getShow:function(){return p},getTraversableWithIndex:function(){return nv},getUnionMonoid:function(){return nr},getUnionSemigroup:function(){return ne},getWitherable:function(){return na},insertAt:function(){return nO},intersection:function(){return nT},isEmpty:function(){return s},isSubmap:function(){return M},keys:function(){return v},lookup:function(){return w},lookupWithKey:function(){return O},map:function(){return J},mapWithIndex:function(){return $},map_:function(){return nw},member:function(){return m},modifyAt:function(){return R},partition:function(){return Z},partitionMap:function(){return Q},partitionMapWithIndex:function(){return P},partitionWithIndex:function(){return F},pop:function(){return x},reduce:function(){return nc},reduceRight:function(){return nl},reduceRightWithIndex:function(){return nm},reduceWithIndex:function(){return nd},separate:function(){return nn},singleton:function(){return W},size:function(){return d},toArray:function(){return _},toUnfoldable:function(){return b},union:function(){return nS},updateAt:function(){return T},upsertAt:function(){return I},values:function(){return g}});var r=e(42275),i=e(67560),u=e(97963),o=e(20492),a=e(13512),c=e(34219),f=e(76511),l=function(){return(l=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},p=a.getShow,d=a.size,s=a.isEmpty,m=a.member,h=a.elem,v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],i=t(e),u=0;u<i.length;u++){var o=i[u];r.push(n(o,e.get(o)))}return r}}}function _(n){return y(n)(function(n,t){return[n,t]})}function b(n,t){var e=_(n);return function(n){var r=e(n),i=r.length;return t.unfold(0,function(n){return n<i?u.G([r[n],n+1]):u.YP})}}var I=function(n){var t=O(n);return function(n,e){var r=t(n);return function(t){var i=r(t);if(u.Wi(i)){var o=new Map(t);return o.set(n,e),o}if(i.value[1]!==e){var o=new Map(t);return o.set(i.value[0],e),o}return t}}},S=function(n){var t=O(n);return function(n){return function(e){var r=t(n,e);if(u.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},T=function(n){var t=R(n);return function(n,e){return t(n,function(){return e})}},R=function(n){var t=O(n);return function(n,e){return function(r){var i=t(n,r);if(u.Wi(i))return u.YP;var o=new Map(r);return o.set(i.value[0],e(i.value[1])),u.G(o)}}};function x(n){var t=w(n),e=S(n);return function(n){var i=e(n);return function(e){return(0,r.pipe)(t(n,e),o.map(function(n){return[n,i(e)]}))}}}function O(n){return function(t,e){if(void 0===e){var r,i=O(n);return function(n){return i(t,n)}}for(var o=e.entries();!(r=o.next()).done;){var a=r.value,c=a[0],f=a[1];if(n.equals(c,t))return u.G([c,f])}return u.YP}}var w=a.lookup,M=a.isSubmap,E=a.getEq;function k(n,t){var e=O(n);return{concat:function(n,r){if(s(n))return r;if(s(r))return n;for(var i,o=new Map(n),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,n);u.pC(p)?o.set(p.value[0],t.concat(p.value[1],l)):o.set(f,l)}return o},empty:new Map}}var W=function(n,t){return new Map([[n,t]])};function C(n,t,e){return function(r){var i=O(n);return e.reduce(r,new Map,function(n,e){var r=e[0],o=e[1],a=i(r,n);return u.pC(a)?n.set(a.value[0],t.concat(a.value[1],o)):n.set(r,o),n})}}var D=function(n,t){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,t(o,a))}return r},P=function(n){return function(t){for(var e,r=new Map,i=new Map,o=t.entries();!(e=o.next()).done;){var a=e.value,f=a[0],l=n(f,a[1]);u.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function F(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];n(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var U=function(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var o=e.value,a=o[0],c=n(a,o[1]);u.pC(c)&&r.set(a,c.value)}return r}};function A(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];n(o,a)&&r.set(o,a)}return r}}var L=function(n,t){return D(n,function(n,e){return t(e)})},N=function(n,t){return K(n,function(n,e){return t(e)})},j=function(n,t){return B(n,function(n,e){return t(e)})},q=function(n,t){return G(n,function(n,e){return t(e)})},Y=function(n,t){return H(n,function(n,e){return t(e)})},K=function(n,t){return(0,r.pipe)(n,A(t))},B=function(n,t){return(0,r.pipe)(n,U(t))},G=function(n,t){return(0,r.pipe)(n,F(t))},H=function(n,t){return(0,r.pipe)(n,P(t))},V=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var i=t.value,o=i[0],a=i[1];u.pC(a)&&e.set(o,a.value)}return e},z=function(n){return function(t){return N(t,n)}},X=function(n){return function(t){return j(t,n)}},J=function(n){return function(t){return L(t,n)}},$=function(n){return function(t){return D(t,n)}},Z=function(n){return function(t){return q(t,n)}},Q=function(n){return function(t){return Y(t,n)}},nn=function(n){for(var t,e=new Map,r=new Map,i=n.entries();!(t=i.next()).done;){var o=t.value,a=o[0],f=o[1];u.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},nt="Map",ne=function(n,t){var e=nS(n,t);return{concat:function(n,t){return e(t)(n)}}},nr=function(n,t){return{concat:ne(n,t).concat,empty:new Map}},ni=function(n,t){var e=nT(n,t);return{concat:function(n,t){return e(t)(n)}}},nu=function(n){return function(){var t=nR(n);return{concat:function(n,e){return t(e)(n)}}}};function no(){return{URI:nt,_E:void 0,map:L,mapWithIndex:D,compact:V,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:Y,partitionMapWithIndex:H,partitionWithIndex:G,filterMapWithIndex:B,filterWithIndex:K}}function na(n){var t=nv(n);return{URI:nt,_E:void 0,map:L,compact:V,separate:nn,filter:N,filterMap:j,partition:q,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,n_),wither:(0,f.witherDefault)(t,n_)}}var nc=a.reduce,nf=a.foldMap,nl=a.reduceRight,np=function(n){return l(l({},a.getFoldable(n)),{URI:nt})},nd=a.reduceWithIndex,ns=a.foldMapWithIndex,nm=a.reduceRightWithIndex,nh=function(n){return l(l({},a.getFoldableWithIndex(n)),{URI:nt})},nv=function(n){var t=nh(n),e=v(n),r=function(n){return function(t,r){for(var i=n.of(new Map),u=e(t),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=t.get(o);i=n.ap(n.map(i,function(n){return function(t){return n.set(o,t)}}),r(o,a))}(a);return i}},i=function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},u=function(n){var t=r(n);return function(n){return t(n,function(n,t){return t})}};return{URI:nt,_E:void 0,map:L,mapWithIndex:D,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:i,sequence:u,traverseWithIndex:r}},ng={URI:nt,map:L},ny=(0,i.flap)(ng),n_={URI:nt,compact:V,separate:nn},nb={URI:nt,map:L,compact:V,separate:nn,filter:N,filterMap:j,partition:q,partitionMap:Y},nI=function(n){return new Map(n)},nS=function(n,t){var e=a.union(n,t);return function(n){return function(t){return s(t)?nI(n):s(n)?nI(t):e(n)(t)}}},nT=function(n,t){var e=a.intersection(n,t);return function(n){return function(t){return s(t)||s(n)?new Map:e(n)(t)}}},nR=function(n){var t=a.difference(n);return function(n){return function(e){return s(e)?nI(n):s(n)?nI(e):t(n)(e)}}},nx=new Map,nO=I,nw=nb},96576:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return d},fold:function(){return _},getDualMonoid:function(){return v},getEndomorphismMonoid:function(){return T},getFunctionMonoid:function(){return S},getJoinMonoid:function(){return g},getMeetMonoid:function(){return y},getStructMonoid:function(){return h},getTupleMonoid:function(){return m},max:function(){return c},min:function(){return a},monoidAll:function(){return b},monoidAny:function(){return I},monoidProduct:function(){return O},monoidString:function(){return R},monoidSum:function(){return x},monoidVoid:function(){return s},reverse:function(){return f},struct:function(){return l},tuple:function(){return p}});var r=e(47797),i=e(42275),u=e(97963),o=e(3291),a=function(n){return{concat:o.min(n).concat,empty:n.top}},c=function(n){return{concat:o.max(n).concat,empty:n.bottom}},f=function(n){return{concat:o.reverse(n).concat,empty:n.empty}},l=function(n){var t={};for(var e in n)u.e$.call(n,e)&&(t[e]=n[e].empty);return{concat:o.struct(n).concat,empty:t}},p=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:o.tuple.apply(o,n).concat,empty:n.map(function(n){return n.empty})}},d=function(n){return o.concatAll(n)(n.empty)},s={concat:o.semigroupVoid.concat,empty:void 0},m=p,h=l,v=f,g=c,y=a,_=d,b={concat:o.semigroupAll.concat,empty:!0},I={concat:o.semigroupAny.concat,empty:!1},S=i.getMonoid,T=function(){return f((0,r.getMonoid)())},R={concat:o.semigroupString.concat,empty:""},x={concat:o.semigroupSum.concat,empty:0},O={concat:o.semigroupProduct.concat,empty:1}},43586:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nV},Applicative:function(){return nN},Apply:function(){return nU},Chain:function(){return nj},Comonad:function(){return nz},Do:function(){return nX},Foldable:function(){return nK},FoldableWithIndex:function(){return nB},Functor:function(){return nC},FunctorWithIndex:function(){return nF},Monad:function(){return nY},Pointed:function(){return nP},Traversable:function(){return nG},TraversableWithIndex:function(){return nH},URI:function(){return nw},alt:function(){return np},altW:function(){return nl},ap:function(){return nd},apFirst:function(){return nA},apS:function(){return nQ},apSecond:function(){return nL},append:function(){return v},appendW:function(){return h},bind:function(){return nZ},bindTo:function(){return nJ},chain:function(){return ti},chainFirst:function(){return nq},chainWithIndex:function(){return V},chop:function(){return z},chunksOf:function(){return J},concat:function(){return W},concatAll:function(){return n4},concatW:function(){return k},cons:function(){return tl},copy:function(){return N},duplicate:function(){return nh},extend:function(){return nm},extract:function(){return nO},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nD},flatMap:function(){return ns},flatten:function(){return nv},fold:function(){return ts},foldMap:function(){return H},foldMapWithIndex:function(){return G},fromArray:function(){return R},fromReadonlyNonEmptyArray:function(){return T},getEq:function(){return nk},getSemigroup:function(){return nE},getShow:function(){return nM},getUnionSemigroup:function(){return nW},group:function(){return D},groupBy:function(){return P},groupSort:function(){return tu},head:function(){return n0},init:function(){return n2},insertAt:function(){return U},intercalate:function(){return tr},intersperse:function(){return B},isNonEmpty:function(){return p},isOutOfBound:function(){return d},last:function(){return n8},let:function(){return n$},makeBy:function(){return x},map:function(){return ng},mapWithIndex:function(){return ny},matchLeft:function(){return n5},matchRight:function(){return n9},max:function(){return n3},min:function(){return n7},modifyAt:function(){return L},modifyHead:function(){return n6},modifyLast:function(){return tt},nonEmptyArray:function(){return tm},of:function(){return j},prepend:function(){return m},prependAll:function(){return K},prependToAll:function(){return td},prependW:function(){return s},range:function(){return w},reduce:function(){return n_},reduceRight:function(){return nI},reduceRightWithIndex:function(){return nS},reduceWithIndex:function(){return nb},replicate:function(){return O},reverse:function(){return C},rotate:function(){return S},sequence:function(){return nR},snoc:function(){return tp},sort:function(){return F},sortBy:function(){return b},splitAt:function(){return X},tail:function(){return n1},traverse:function(){return nT},traverseWithIndex:function(){return nx},unappend:function(){return E},uncons:function(){return tc},union:function(){return I},uniq:function(){return _},unprepend:function(){return M},unsafeInsertAt:function(){return g},unsafeUpdateAt:function(){return y},unsnoc:function(){return tf},unzip:function(){return Y},updateAt:function(){return A},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:q(t,e,function(n,t){return[n,t]})}},zipWith:function(){return q}});var r=e(42925),i=e(88543),u=e(42275),o=e(67560),a=e(97963),c=e(5586),f=e(28350),l=function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},p=function(n){return n.length>0},d=function(n,t){return n<0||n>=t.length},s=function(n){return function(t){return l([n],t,!0)}},m=s,h=function(n){return function(t){return l(l([],t,!0),[n],!1)}},v=h,g=function(n,t,e){if(p(e)){var r=T(e);return r.splice(n,0,t),r}return[t]},y=function(n,t,e){var r=T(e);return r[n]=t,r},_=function(n){return function(t){if(1===t.length)return N(t);for(var e=[n0(t)],r=n1(t),i=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},u=0;u<r.length;u++)i(r[u]);return e}},b=function(n){if(p(n)){var t=(0,c.getMonoid)();return F(n.reduce(t.concat,t.empty))}return N},I=function(n){var t=_(n);return function(n){return function(e){return t((0,u.pipe)(e,W(n)))}}},S=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(d(Math.abs(r),t)||0===r)return N(t);if(!(r<0))return S(r-e)(t);var i=X(-r)(t),o=i[0],a=i[1];return(0,u.pipe)(a,W(o))}},T=a.r1,R=function(n){return p(n)?a.G(n):a.YP},x=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},O=function(n){return x(function(){return n})},w=function(n,t){return n<=t?x(function(t){return n+t})(t-n+1):[n]},M=function(n){return[n0(n),n1(n)]},E=function(n){return[n2(n),n8(n)]};function k(n){return function(t){return t.concat(n)}}function W(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var C=function(n){return l([n8(n)],n.slice(0,-1).reverse(),!0)};function D(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var P=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);a.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},F=function(n){return function(t){return t.slice().sort(n.compare)}},U=function(n,t){return function(e){return n<0||n>e.length?a.YP:a.G(g(n,t,e))}},A=function(n,t){return L(n,function(){return t})},L=function(n,t){return function(e){return d(n,e)?a.YP:a.G(y(n,t(e[n]),e))}},N=T,j=function(n){return[n]},q=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},Y=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},K=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},B=function(n){return function(t){var e=n1(t);return p(e)?(0,u.pipe)(e,K(n),m(n0(t))):N(t)}},G=f.foldMapWithIndex,H=f.foldMap,V=function(n){return function(t){for(var e=T(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},z=function(n){return function(t){for(var e=n(t),r=e[0],i=e[1],u=[r],o=i;p(o);){var a=n(o),c=a[0],f=a[1];u.push(c),o=f}return u}},X=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[N(t),[]]:[(0,u.pipe)(t.slice(1,e),m(n0(t))),t.slice(e)]}},J=function(n){return z(X(n))},$=function(n,t){return(0,u.pipe)(n,ng(t))},Z=function(n,t){return(0,u.pipe)(n,ny(t))},Q=function(n,t){return(0,u.pipe)(n,nd(t))},nn=function(n,t){return(0,u.pipe)(n,nm(t))},nt=function(n,t,e){return(0,u.pipe)(n,n_(t,e))},ne=function(n){var t=H(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nr=function(n,t,e){return(0,u.pipe)(n,nI(t,e))},ni=function(n){var t=nT(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nu=function(n,t){return(0,u.pipe)(n,np(t))},no=function(n,t,e){return(0,u.pipe)(n,nb(t,e))},na=function(n){var t=G(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nc=function(n,t,e){return(0,u.pipe)(n,nS(t,e))},nf=function(n){var t=nx(n);return function(n,e){return(0,u.pipe)(n,t(e))}},nl=function(n){return function(t){return(0,u.pipe)(t,k(n()))}},np=nl,nd=function(n){return ns(function(t){return(0,u.pipe)(n,ng(t))})},ns=(0,u.dual)(2,function(n,t){return(0,u.pipe)(n,V(function(n,e){return t(e,n)}))}),nm=function(n){return function(t){for(var e=n1(t),r=[n(t)];p(e);)r.push(n(e)),e=n1(e);return r}},nh=nm(u.identity),nv=ns(u.identity),ng=function(n){return ny(function(t,e){return n(e)})},ny=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},n_=f.reduce,nb=f.reduceWithIndex,nI=f.reduceRight,nS=f.reduceRightWithIndex,nT=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nR=function(n){return nx(n)(function(n,t){return t})},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),j),i=1;i<e.length;i++)r=n.ap(n.map(r,function(n){return function(t){return(0,u.pipe)(n,v(t))}}),t(i,e[i]));return r}}},nO=f.head,nw="NonEmptyArray",nM=f.getShow,nE=function(){return{concat:W}},nk=f.getEq,nW=function(n){var t=I(n);return{concat:function(n,e){return t(e)(n)}}},nC={URI:nw,map:$},nD=(0,o.flap)(nC),nP={URI:nw,of:j},nF={URI:nw,map:$,mapWithIndex:Z},nU={URI:nw,map:$,ap:Q},nA=(0,r.apFirst)(nU),nL=(0,r.apSecond)(nU),nN={URI:nw,map:$,ap:Q,of:j},nj={URI:nw,map:$,ap:Q,chain:ns},nq=(0,i.chainFirst)(nj),nY={URI:nw,map:$,ap:Q,of:j,chain:ns},nK={URI:nw,reduce:nt,foldMap:ne,reduceRight:nr},nB={URI:nw,reduce:nt,foldMap:ne,reduceRight:nr,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc},nG={URI:nw,map:$,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nR},nH={URI:nw,map:$,mapWithIndex:Z,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nR,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc,traverseWithIndex:nf},nV={URI:nw,map:$,alt:nu},nz={URI:nw,map:$,extend:nn,extract:nO},nX=j(a.F4),nJ=(0,o.bindTo)(nC),n$=(0,o.let)(nC),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nU),n0=f.head,n1=function(n){return n.slice(1)},n8=f.last,n2=function(n){return n.slice(0,-1)},n7=f.min,n3=f.max,n4=function(n){return function(t){return t.reduce(n.concat)}},n5=function(n){return function(t){return n(n0(t),n1(t))}},n9=function(n){return function(t){return n(n2(t),n8(t))}},n6=function(n){return function(t){return l([n(n0(t))],n1(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,u.pipe)(n2(t),v(n(n8(t))))}},te=function(n){return tt(function(){return n})},tr=f.intercalate,ti=ns;function tu(n){var t=F(n),e=D(n);return function(n){return p(n)?e(t(n)):[]}}function to(n){return ta(function(t,e){return n(e)})}var ta=function(n){return function(t){return R(t.filter(function(t,e){return n(e,t)}))}},tc=M,tf=E;function tl(n,t){return void 0===t?m(n):(0,u.pipe)(t,m(n))}var tp=function(n,t){return(0,u.pipe)(n,v(t))},td=K,ts=f.concatAll,tm={URI:nw,of:j,map:$,mapWithIndex:Z,ap:Q,chain:ns,extend:nn,extract:nO,reduce:nt,foldMap:ne,reduceRight:nr,traverse:ni,sequence:nR,reduceWithIndex:no,foldMapWithIndex:na,reduceRightWithIndex:nc,traverseWithIndex:nf,alt:nu}},20492:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return ne},Alternative:function(){return no},ApT:function(){return n5},Applicative:function(){return G},Apply:function(){return B},Chain:function(){return V},Compactable:function(){return nd},Do:function(){return n8},Extend:function(){return nc},Filterable:function(){return ng},Foldable:function(){return Z},FromEither:function(){return nE},Functor:function(){return L},Monad:function(){return z},MonadThrow:function(){return nw},Pointed:function(){return Y},Traversable:function(){return nb},URI:function(){return C},Witherable:function(){return nx},Zero:function(){return ni},alt:function(){return nt},altW:function(){return nn},ap:function(){return K},apFirst:function(){return nN},apS:function(){return n4},apSecond:function(){return nj},as:function(){return N},asUnit:function(){return j},bind:function(){return n3},bindTo:function(){return n2},chain:function(){return tr},chainEitherK:function(){return nH},chainFirst:function(){return ti},chainFirstEitherK:function(){return nV},chainNullableK:function(){return nZ},compact:function(){return nf},duplicate:function(){return nB},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}return!nW(r)&&t.equals(e,r.value)}}},exists:function(){return n1},extend:function(){return na},filter:function(){return ns},filterMap:function(){return nm},flap:function(){return nL},flatMap:function(){return H},flatten:function(){return nq},fold:function(){return nF},foldMap:function(){return J},foldW:function(){return nD},fromEither:function(){return nM},fromEitherK:function(){return nG},fromNullable:function(){return nz},fromNullableK:function(){return n$},fromPredicate:function(){return g},getApplyMonoid:function(){return tf},getApplySemigroup:function(){return tc},getEq:function(){return P},getFirstMonoid:function(){return tl},getLastMonoid:function(){return tp},getLeft:function(){return y},getMonoid:function(){return U},getOrElse:function(){return nA},getOrElseW:function(){return nU},getOrd:function(){return F},getRefinement:function(){return tu},getRight:function(){return _},getShow:function(){return D},guard:function(){return nu},isNone:function(){return nW},isSome:function(){return nk},let:function(){return n7},map:function(){return A},mapNullable:function(){return to},match:function(){return nP},matchW:function(){return nC},none:function(){return h},of:function(){return q},option:function(){return ta},orElse:function(){return Q},partition:function(){return nh},partitionMap:function(){return nv},reduce:function(){return X},reduceRight:function(){return $},separate:function(){return np},sequence:function(){return n_},sequenceArray:function(){return te},some:function(){return v},tap:function(){return nY},tapEither:function(){return nK},throwError:function(){return nO},toNullable:function(){return nQ},toUndefined:function(){return n0},traverse:function(){return ny},traverseArray:function(){return tt},traverseArrayWithIndex:function(){return tn},traverseReadonlyArrayWithIndex:function(){return n6},traverseReadonlyNonEmptyArrayWithIndex:function(){return n9},tryCatch:function(){return nX},tryCatchK:function(){return nJ},wilt:function(){return nR},wither:function(){return nT},zero:function(){return nr}});var r=e(46111),i=e(42925),u=e(88543),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(88491),p=e(3291),d=e(34219),s=e(76511),m=e(28957),h=f.YP,v=f.G;function g(n){return function(t){return n(t)?v(t):h}}var y=function(n){return"Right"===n._tag?h:v(n.left)},_=function(n){return"Left"===n._tag?h:v(n.right)},b=function(n,t){return(0,a.pipe)(n,A(t))},I=function(n,t){return(0,a.pipe)(n,K(t))},S=function(n,t,e){return(0,a.pipe)(n,X(t,e))},T=function(n){var t=J(n);return function(n,e){return(0,a.pipe)(n,t(e))}},R=function(n,t,e){return(0,a.pipe)(n,$(t,e))},x=function(n){var t=ny(n);return function(n,e){return(0,a.pipe)(n,t(e))}},O=function(n,t){return(0,a.pipe)(n,nt(t))},w=function(n,t){return(0,a.pipe)(n,ns(t))},M=function(n,t){return(0,a.pipe)(n,nm(t))},E=function(n,t){return(0,a.pipe)(n,na(t))},k=function(n,t){return(0,a.pipe)(n,nh(t))},W=function(n,t){return(0,a.pipe)(n,nv(t))},C="Option",D=function(n){return{show:function(t){return nW(t)?"none":"some(".concat(n.show(t.value),")")}}},P=function(n){return{equals:function(t,e){return t===e||(nW(t)?nW(e):!nW(e)&&n.equals(t.value,e.value))}}},F=function(n){return{equals:P(n).equals,compare:function(t,e){return t===e?0:nk(t)?nk(e)?n.compare(t.value,e.value):1:-1}}},U=function(n){return{concat:function(t,e){return nW(t)?e:nW(e)?t:v(n.concat(t.value,e.value))},empty:h}},A=function(n){return function(t){return nW(t)?h:v(n(t.value))}},L={URI:C,map:b},N=(0,a.dual)(2,(0,c.as)(L)),j=(0,c.asUnit)(L),q=v,Y={URI:C,of:q},K=function(n){return function(t){return nW(t)?h:nW(n)?h:v(t.value(n.value))}},B={URI:C,map:b,ap:I},G={URI:C,map:b,ap:I,of:q},H=(0,a.dual)(2,function(n,t){return nW(n)?h:t(n.value)}),V={URI:C,map:b,ap:I,chain:H},z={URI:C,map:b,ap:I,of:q,chain:H},X=function(n,t){return function(e){return nW(e)?n:t(n,e.value)}},J=function(n){return function(t){return function(e){return nW(e)?n.empty:t(e.value)}}},$=function(n,t){return function(e){return nW(e)?n:t(e.value,n)}},Z={URI:C,reduce:S,foldMap:T,reduceRight:R},Q=(0,a.dual)(2,function(n,t){return nW(n)?t():n}),nn=Q,nt=Q,ne={URI:C,map:b,alt:O},nr=function(){return h},ni={URI:C,zero:nr},nu=(0,m.guard)(ni,Y),no={URI:C,map:b,ap:I,of:q,alt:O,zero:nr},na=function(n){return function(t){return nW(t)?h:v(n(t))}},nc={URI:C,map:b,extend:E},nf=H(a.identity),nl=(0,d.separated)(h,h),np=function(n){return nW(n)?nl:(0,d.separated)(y(n.value),_(n.value))},nd={URI:C,compact:nf,separate:np},ns=function(n){return function(t){return nW(t)?h:n(t.value)?t:h}},nm=function(n){return function(t){return nW(t)?h:n(t.value)}},nh=function(n){return function(t){return(0,d.separated)(w(t,(0,l.not)(n)),w(t,n))}},nv=function(n){return(0,a.flow)(A(n),np)},ng={URI:C,map:b,compact:nf,separate:np,filter:w,filterMap:M,partition:k,partitionMap:W},ny=function(n){return function(t){return function(e){return nW(e)?n.of(h):n.map(t(e.value),v)}}},n_=function(n){return function(t){return nW(t)?n.of(h):n.map(t.value,v)}},nb={URI:C,map:b,reduce:S,foldMap:T,reduceRight:R,traverse:x,sequence:n_},nI=(0,s.witherDefault)(nb,nd),nS=(0,s.wiltDefault)(nb,nd),nT=function(n){var t=nI(n);return function(n){return function(e){return t(e,n)}}},nR=function(n){var t=nS(n);return function(n){return function(e){return t(e,n)}}},nx={URI:C,map:b,reduce:S,foldMap:T,reduceRight:R,traverse:x,sequence:n_,compact:nf,separate:np,filter:w,filterMap:M,partition:k,partitionMap:W,wither:nI,wilt:nS},nO=function(){return h},nw={URI:C,map:b,ap:I,of:q,chain:H,throwError:nO},nM=_,nE={URI:C,fromEither:nM},nk=f.pC,nW=function(n){return"None"===n._tag},nC=function(n,t){return function(e){return nW(e)?n():t(e.value)}},nD=nC,nP=nC,nF=nP,nU=function(n){return function(t){return nW(t)?n():t.value}},nA=nU,nL=(0,c.flap)(L),nN=(0,i.apFirst)(B),nj=(0,i.apSecond)(B),nq=nf,nY=(0,a.dual)(2,u.tap(V)),nK=(0,a.dual)(2,(0,o.tapEither)(nE,V)),nB=na(a.identity),nG=(0,o.fromEitherK)(nE),nH=(0,o.chainEitherK)(nE,V),nV=nK,nz=function(n){return null==n?h:v(n)},nX=function(n){try{return v(n())}catch(t){return h}},nJ=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return nX(function(){return n.apply(void 0,t)})}},n$=function(n){return(0,a.flow)(n,nz)},nZ=function(n){return function(t){return nW(t)?h:nz(n(t.value))}},nQ=nP(a.constNull,a.identity),n0=nP(a.constUndefined,a.identity),n1=function(n){return function(t){return!nW(t)&&n(t.value)}},n8=q(f.F4),n2=(0,c.bindTo)(L),n7=(0,c.let)(L),n3=u.bind(V),n4=(0,i.apS)(B),n5=q(f.Xl),n9=function(n){return function(t){var e=n(0,f.YM(t));if(nW(e))return h;for(var r=[e.value],i=1;i<t.length;i++){var u=n(i,t[i]);if(nW(u))return h;r.push(u.value)}return v(r)}},n6=function(n){var t=n9(n);return function(n){return f.Od(n)?t(n):n5}},tn=n6,tt=function(n){return n6(function(t,e){return n(e)})},te=tt(a.identity),tr=H,ti=nY;function tu(n){return function(t){return nk(n(t))}}var to=nZ,ta={URI:C,map:b,of:q,ap:I,chain:H,reduce:S,foldMap:T,reduceRight:R,traverse:x,sequence:n_,zero:nr,alt:O,extend:E,compact:nf,separate:np,filter:w,filterMap:M,partition:k,partitionMap:W,wither:nI,wilt:nS,throwError:nO},tc=(0,i.getApplySemigroup)(B),tf=(0,r.getApplicativeMonoid)(G),tl=function(){return U((0,p.first)())},tp=function(){return U((0,p.last)())}},5586:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return s},URI:function(){return l},between:function(){return T},clamp:function(){return S},contramap:function(){return f},equals:function(){return h},equalsDefault:function(){return u},fromCompare:function(){return o},geq:function(){return _},getDualOrd:function(){return x},getMonoid:function(){return d},getSemigroup:function(){return p},getTupleOrd:function(){return R},gt:function(){return g},leq:function(){return y},lt:function(){return v},max:function(){return I},min:function(){return b},ord:function(){return O},ordBoolean:function(){return M},ordDate:function(){return W},ordNumber:function(){return k},ordString:function(){return E},reverse:function(){return c},trivial:function(){return m},tuple:function(){return a}});var r=e(65191),i=e(42275),u=function(n){return function(t,e){return t===e||0===n(t,e)}},o=function(n){return{equals:u(n),compare:function(t,e){return t===e?0:n(t,e)}}},a=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return o(function(t,e){for(var r=0;r<n.length-1;r++){var i=n[r].compare(t[r],e[r]);if(0!==i)return i}return n[r].compare(t[r],e[r])})},c=function(n){return o(function(t,e){return n.compare(e,t)})},f=function(n){return function(t){return o(function(e,r){return t.compare(n(e),n(r))})}},l="Ord",p=function(){return{concat:function(n,t){return o(function(e,r){var i=n.compare(e,r);return 0!==i?i:t.compare(e,r)})}}},d=function(){return{concat:p().concat,empty:o(function(){return 0})}},s={URI:l,contramap:function(n,t){return(0,i.pipe)(n,f(t))}},m={equals:i.constTrue,compare:(0,i.constant)(0)},h=function(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}},v=function(n){return function(t,e){return -1===n.compare(t,e)}},g=function(n){return function(t,e){return 1===n.compare(t,e)}},y=function(n){return function(t,e){return 1!==n.compare(t,e)}},_=function(n){return function(t,e){return -1!==n.compare(t,e)}},b=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}},I=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}},S=function(n){var t=b(n),e=I(n);return function(n,r){return function(i){return e(t(i,r),n)}}},T=function(n){var t=v(n),e=g(n);return function(n,r){return function(i){return!(t(i,n)||e(i,r))}}},R=a,x=c,O=s,w={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},M=w,E=w,k=w,W=(0,i.pipe)(k,f(function(n){return n.valueOf()}))},88491:function(n,t,e){e.r(t),e.d(t,{Contravariant:function(){return l},URI:function(){return u},and:function(){return s},contramap:function(){return i},getMonoidAll:function(){return f},getMonoidAny:function(){return a},getSemigroupAll:function(){return c},getSemigroupAny:function(){return o},not:function(){return p},or:function(){return d}});var r=e(42275),i=function(n){return function(t){return(0,r.flow)(n,t)}},u="Predicate",o=function(){return{concat:function(n,t){return(0,r.pipe)(n,d(t))}}},a=function(){return{concat:o().concat,empty:r.constFalse}},c=function(){return{concat:function(n,t){return(0,r.pipe)(n,s(t))}}},f=function(){return{concat:c().concat,empty:r.constTrue}},l={URI:u,contramap:function(n,t){return(0,r.pipe)(n,i(t))}},p=function(n){return function(t){return!n(t)}},d=function(n){return function(t){return function(e){return t(e)||n(e)}}},s=function(n){return function(t){return function(e){return t(e)&&n(e)}}}},31583:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return tG},Alternative:function(){return tz},Applicative:function(){return tj},Apply:function(){return tA},Chain:function(){return tq},ChainRecBreadthFirst:function(){return t4},ChainRecDepthFirst:function(){return t7},Compactable:function(){return tJ},Do:function(){return es},Extend:function(){return tX},Filterable:function(){return t$},FilterableWithIndex:function(){return tZ},Foldable:function(){return tQ},FoldableWithIndex:function(){return t0},FromEither:function(){return et},Functor:function(){return tD},FunctorWithIndex:function(){return tU},Monad:function(){return tY},Pointed:function(){return tF},Traversable:function(){return t1},TraversableWithIndex:function(){return t8},URI:function(){return tT},Unfoldable:function(){return tB},Witherable:function(){return t6},Zero:function(){return tH},_chainRecBreadthFirst:function(){return nQ},_chainRecDepthFirst:function(){return nZ},alt:function(){return n2},altW:function(){return n8},ap:function(){return n7},apFirst:function(){return tL},apS:function(){return eg},apSecond:function(){return tN},append:function(){return I},appendW:function(){return S},bind:function(){return ev},bindTo:function(){return em},chain:function(){return ey},chainFirst:function(){return tK},chainRecBreadthFirst:function(){return t3},chainRecDepthFirst:function(){return t2},chainWithIndex:function(){return U},chop:function(){return nI},chunksOf:function(){return nT},compact:function(){return tr},comprehension:function(){return nx},concat:function(){return nw},concatW:function(){return nO},cons:function(){return eb},deleteAt:function(){return na},difference:function(){return nk},dropLeft:function(){return J},dropLeftWhile:function(){return Z},dropRight:function(){return $},duplicate:function(){return tl},elem:function(){return ny},empty:function(){return ec},every:function(){return ef},exists:function(){return ep},extend:function(){return tf},filter:function(){return tn},filterE:function(){return en},filterMap:function(){return te},filterMapWithIndex:function(){return tt},filterWithIndex:function(){return tc},findFirst:function(){return nn},findFirstMap:function(){return nt},findIndex:function(){return Q},findLast:function(){return ne},findLastIndex:function(){return ni},findLastMap:function(){return nr},flap:function(){return tP},flatMap:function(){return n3},flatten:function(){return n4},foldLeft:function(){return C},foldMap:function(){return ts},foldMapWithIndex:function(){return tp},foldRight:function(){return F},fromArray:function(){return ea},fromEither:function(){return w},fromEitherK:function(){return ee},fromOption:function(){return O},fromOptionK:function(){return nR},fromPredicate:function(){return x},getDifferenceMagma:function(){return tC},getEq:function(){return tw},getIntersectionSemigroup:function(){return tW},getMonoid:function(){return tO},getOrd:function(){return tM},getSemigroup:function(){return tx},getShow:function(){return tR},getUnionMonoid:function(){return tk},getUnionSemigroup:function(){return tE},guard:function(){return tV},head:function(){return q},init:function(){return B},insertAt:function(){return nu},intercalate:function(){return ed},intersection:function(){return nE},intersperse:function(){return nv},isEmpty:function(){return g},isNonEmpty:function(){return y},isOutOfBound:function(){return j},last:function(){return Y},lefts:function(){return np},let:function(){return eh},lookup:function(){return function n(t,e){return void 0===e?function(e){return n(t,e)}:j(t,e)?f.YP:f.G(e[t])}},makeBy:function(){return T},map:function(){return n5},mapWithIndex:function(){return n9},match:function(){return E},matchLeft:function(){return W},matchLeftW:function(){return k},matchRight:function(){return P},matchRightW:function(){return D},matchW:function(){return M},modifyAt:function(){return nc},of:function(){return n0},partition:function(){return ti},partitionMap:function(){return to},partitionMapWithIndex:function(){return ta},partitionWithIndex:function(){return tu},prepend:function(){return _},prependAll:function(){return nh},prependToAll:function(){return eS},prependW:function(){return b},range:function(){return e_},readonlyArray:function(){return eT},reduce:function(){return td},reduceRight:function(){return th},reduceRightWithIndex:function(){return tv},reduceWithIndex:function(){return tm},replicate:function(){return R},reverse:function(){return nf},rights:function(){return nl},rotate:function(){return ng},scanLeft:function(){return A},scanRight:function(){return L},separate:function(){return n6},sequence:function(){return ty},size:function(){return N},snoc:function(){return eI},some:function(){return el},sort:function(){return nd},sortBy:function(){return nb},spanLeft:function(){return X},splitAt:function(){return nS},tail:function(){return K},takeLeft:function(){return G},takeLeftWhile:function(){return V},takeRight:function(){return H},toArray:function(){return eo},traverse:function(){return tg},traverseWithIndex:function(){return t_},unfold:function(){return tS},union:function(){return nM},uniq:function(){return n_},unsafeDeleteAt:function(){return eu},unsafeInsertAt:function(){return er},unsafeUpdateAt:function(){return ei},unzip:function(){return nm},updateAt:function(){return no},wilt:function(){return tI},wither:function(){return tb},zero:function(){return n1},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:ns(t,e,function(n,t){return[n,t]})}},zipWith:function(){return ns}});var r=e(42925),i=e(88543),u=e(65191),o=e(25162),a=e(42275),c=e(67560),f=e(97963),l=e(76627),p=e(5586),d=e(28350),s=e(34219),m=e(76511),h=e(28957),v=function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},g=function(n){return 0===n.length},y=d.isNonEmpty,_=d.prepend,b=d.prependW,I=d.append,S=d.appendW,T=function(n,t){return n<=0?ec:d.makeBy(t)(n)},R=function(n,t){return T(n,function(){return t})};function x(n){return function(t){return n(t)?[t]:ec}}var O=function(n){return f.Wi(n)?ec:[n.value]},w=function(n){return f.nM(n)?ec:[n.right]},M=function(n,t){return function(e){return y(e)?t(e):n()}},E=M,k=function(n,t){return function(e){return y(e)?t(d.head(e),d.tail(e)):n()}},W=k,C=W,D=function(n,t){return function(e){return y(e)?t(d.init(e),d.last(e)):n()}},P=D,F=P,U=function(n){return function(t){if(g(t))return ec;for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},A=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}},L=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}},N=function(n){return n.length},j=d.isOutOfBound,q=function(n){return y(n)?f.G(d.head(n)):f.YP},Y=function(n){return y(n)?f.G(d.last(n)):f.YP},K=function(n){return y(n)?f.G(d.tail(n)):f.YP},B=function(n){return y(n)?f.G(d.init(n)):f.YP},G=function(n){return function(t){return j(n,t)?t:0===n?ec:t.slice(0,n)}},H=function(n){return function(t){return j(n,t)?t:0===n?ec:t.slice(-n)}};function V(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}var u=e.length;return u===t.length?t:0===u?ec:e}}var z=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};function X(n){return function(t){var e,r=nS(z(t,n))(t);return{init:r[0],rest:r[1]}}}var J=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ec:t.slice(n,t.length)}},$=function(n){return function(t){return n<=0||g(t)?t:n>=t.length?ec:t.slice(0,t.length-n)}};function Z(n){return function(t){var e=z(t,n);return 0===e?t:e===t.length?ec:t.slice(e)}}var Q=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(e);return f.YP}};function nn(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return f.G(t[e]);return f.YP}}var nt=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(f.pC(r))return r}return f.YP}};function ne(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(t[e]);return f.YP}}var nr=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(f.pC(r))return r}return f.YP}},ni=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return f.G(e);return f.YP}},nu=function(n,t){return function(e){return n<0||n>e.length?f.YP:f.G(d.unsafeInsertAt(n,t,e))}},no=function(n,t){return nc(n,function(){return t})},na=function(n){return function(t){return j(n,t)?f.YP:f.G(eu(n,t))}},nc=function(n,t){return function(e){return j(n,e)?f.YP:f.G(ei(n,t(e[n]),e))}},nf=function(n){return n.length<=1?n:n.slice().reverse()},nl=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t},np=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t},nd=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}},ns=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r},nm=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},nh=function(n){var t=d.prependAll(n);return function(n){return y(n)?t(n):n}},nv=function(n){var t=d.intersperse(n);return function(n){return y(n)?t(n):n}},ng=function(n){var t=d.rotate(n);return function(n){return y(n)?t(n):n}};function ny(n){return function(t,e){if(void 0===e){var r,i=ny(n);return function(n){return i(t,n)}}for(var u=0;u<e.length;u++)if(r=e[u],n.equals(r,t))return!0;return!1}}var n_=function(n){var t=d.uniq(n);return function(n){return y(n)?t(n):n}},nb=function(n){var t=d.sortBy(n);return function(n){return y(n)?t(n):n}},nI=function(n){var t=d.chop(n);return function(n){return y(n)?t(n):ec}},nS=function(n){return function(t){return n>=1&&y(t)?d.splitAt(n)(t):g(t)?[t,ec]:[ec,t]}},nT=function(n){var t=d.chunksOf(n);return function(n){return y(n)?t(n):ec}},nR=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return O(n.apply(void 0,t))}};function nx(n,t,e){void 0===e&&(e=function(){return!0});var r=function(n,i){return y(i)?n3(d.head(i),function(t){return r((0,a.pipe)(n,I(t)),d.tail(i))}):e.apply(void 0,n)?[t.apply(void 0,n)]:ec};return r(ec,n)}var nO=function(n){return function(t){return g(t)?n:g(n)?t:t.concat(n)}},nw=nO;function nM(n){var t=d.union(n);return function(e,r){if(void 0===r){var i=nM(n);return function(n){return i(n,e)}}return y(e)&&y(r)?t(r)(e):y(e)?e:r}}function nE(n){var t=ny(n);return function(e,r){if(void 0===r){var i=nE(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function nk(n){var t=ny(n);return function(e,r){if(void 0===r){var i=nk(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}var nW=function(n,t){return(0,a.pipe)(n,n5(t))},nC=function(n,t){return(0,a.pipe)(n,n9(t))},nD=function(n,t){return(0,a.pipe)(n,n7(t))},nP=function(n,t){return(0,a.pipe)(n,tn(t))},nF=function(n,t){return(0,a.pipe)(n,te(t))},nU=function(n,t){return(0,a.pipe)(n,ti(t))},nA=function(n,t){return(0,a.pipe)(n,to(t))},nL=function(n,t){return(0,a.pipe)(n,tu(t))},nN=function(n,t){return(0,a.pipe)(n,ta(t))},nj=function(n,t){return(0,a.pipe)(n,n2(t))},nq=function(n,t,e){return(0,a.pipe)(n,td(t,e))},nY=function(n){var t=ts(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nK=function(n,t,e){return(0,a.pipe)(n,th(t,e))},nB=function(n,t,e){return(0,a.pipe)(n,tm(t,e))},nG=function(n){var t=tp(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nH=function(n,t,e){return(0,a.pipe)(n,tv(t,e))},nV=function(n,t){return(0,a.pipe)(n,tt(t))},nz=function(n,t){return(0,a.pipe)(n,tc(t))},nX=function(n,t){return(0,a.pipe)(n,tf(t))},nJ=function(n){var t=tg(n);return function(n,e){return(0,a.pipe)(n,t(e))}},n$=function(n){var t=t_(n);return function(n,e){return(0,a.pipe)(n,t(e))}},nZ=function(n,t){return(0,a.pipe)(n,t2(t))},nQ=function(n,t){return(0,a.pipe)(n,t3(t))},n0=d.of,n1=function(){return ec},n8=function(n){return function(t){return t.concat(n())}},n2=n8,n7=function(n){return n3(function(t){return(0,a.pipe)(n,n5(t))})},n3=(0,a.dual)(2,function(n,t){return(0,a.pipe)(n,U(function(n,e){return t(e,n)}))}),n4=n3(a.identity),n5=function(n){return function(t){return t.map(function(t){return n(t)})}},n9=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}},n6=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,s.separated)(t,e)},tn=function(n){return function(t){return t.filter(n)}},tt=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);f.pC(i)&&e.push(i.value)}return e}},te=function(n){return tt(function(t,e){return n(e)})},tr=te(a.identity),ti=function(n){return tu(function(t,e){return n(e)})},tu=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,s.separated)(e,r)}},to=function(n){return ta(function(t,e){return n(e)})},ta=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,s.separated)(e,r)}},tc=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}},tf=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}},tl=tf(a.identity),tp=function(n){return function(t){return function(e){return e.reduce(function(e,r,i){return n.concat(e,t(i,r))},n.empty)}}},td=function(n,t){return tm(n,function(n,e,r){return t(e,r)})},ts=function(n){var t=tp(n);return function(n){return t(function(t,e){return n(e)})}},tm=function(n,t){return function(e){for(var r=e.length,i=n,u=0;u<r;u++)i=t(u,i,e[u]);return i}},th=function(n,t){return tv(n,function(n,e,r){return t(e,r)})},tv=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},tg=function(n){var t=t_(n);return function(n){return t(function(t,e){return n(e)})}},ty=function(n){return function(t){return nq(t,n.of(n1()),function(t,e){return n.ap(n.map(t,function(n){return function(t){return(0,a.pipe)(n,I(t))}}),e)})}},t_=function(n){return function(t){return tm(n.of(n1()),function(e,r,i){return n.ap(n.map(r,function(n){return function(t){return(0,a.pipe)(n,I(t))}}),t(e,i))})}},tb=function(n){var t=t5(n);return function(n){return function(e){return t(e,n)}}},tI=function(n){var t=t9(n);return function(n){return function(e){return t(e,n)}}},tS=function(n,t){for(var e=[],r=n;;){var i=t(r);if(f.pC(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e},tT="ReadonlyArray",tR=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},tx=function(){return{concat:function(n,t){return g(n)?t:g(t)?n:n.concat(t)}}},tO=function(){return{concat:tx().concat,empty:ec}},tw=function(n){return(0,u.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},tM=function(n){return(0,p.fromCompare)(function(t,e){for(var r=t.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=n.compare(t[o],e[o]);if(0!==a)return a}return l.Ord.compare(r,i)})},tE=function(n){var t=nM(n);return{concat:function(n,e){return t(e)(n)}}},tk=function(n){return{concat:tE(n).concat,empty:ec}},tW=function(n){var t=nE(n);return{concat:function(n,e){return t(e)(n)}}},tC=function(n){var t=nk(n);return{concat:function(n,e){return t(e)(n)}}},tD={URI:tT,map:nW},tP=(0,c.flap)(tD),tF={URI:tT,of:n0},tU={URI:tT,map:nW,mapWithIndex:nC},tA={URI:tT,map:nW,ap:nD},tL=(0,r.apFirst)(tA),tN=(0,r.apSecond)(tA),tj={URI:tT,map:nW,ap:nD,of:n0},tq={URI:tT,map:nW,ap:nD,chain:n3},tY={URI:tT,map:nW,ap:nD,of:n0,chain:n3},tK=(0,i.chainFirst)(tq),tB={URI:tT,unfold:tS},tG={URI:tT,map:nW,alt:nj},tH={URI:tT,zero:n1},tV=(0,h.guard)(tH,tF),tz={URI:tT,map:nW,ap:nD,of:n0,alt:nj,zero:n1},tX={URI:tT,map:nW,extend:nX},tJ={URI:tT,compact:tr,separate:n6},t$={URI:tT,map:nW,compact:tr,separate:n6,filter:nP,filterMap:nF,partition:nU,partitionMap:nA},tZ={URI:tT,map:nW,mapWithIndex:nC,compact:tr,separate:n6,filter:nP,filterMap:nF,partition:nU,partitionMap:nA,partitionMapWithIndex:nN,partitionWithIndex:nL,filterMapWithIndex:nV,filterWithIndex:nz},tQ={URI:tT,reduce:nq,foldMap:nY,reduceRight:nK},t0={URI:tT,reduce:nq,foldMap:nY,reduceRight:nK,reduceWithIndex:nB,foldMapWithIndex:nG,reduceRightWithIndex:nH},t1={URI:tT,map:nW,reduce:nq,foldMap:nY,reduceRight:nK,traverse:nJ,sequence:ty},t8={URI:tT,map:nW,mapWithIndex:nC,reduce:nq,foldMap:nY,reduceRight:nK,reduceWithIndex:nB,foldMapWithIndex:nG,reduceRightWithIndex:nH,traverse:nJ,sequence:ty,traverseWithIndex:n$},t2=function(n){return function(t){for(var e=v([],n(t),!0),r=[];e.length>0;){var i=e.shift();f.nM(i)?e.unshift.apply(e,n(i.left)):r.push(i.right)}return r}},t7={URI:tT,map:nW,ap:nD,chain:n3,chainRec:nZ},t3=function(n){return function(t){var e=n(t),r=[],i=[];function u(t){f.nM(t)?n(t.left).forEach(function(n){return r.push(n)}):i.push(t.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}},t4={URI:tT,map:nW,ap:nD,chain:n3,chainRec:nQ},t5=(0,m.witherDefault)(t1,tJ),t9=(0,m.wiltDefault)(t1,tJ),t6={URI:tT,map:nW,compact:tr,separate:n6,filter:nP,filterMap:nF,partition:nU,partitionMap:nA,reduce:nq,foldMap:nY,reduceRight:nK,traverse:nJ,sequence:ty,wither:t5,wilt:t9},en=(0,m.filterE)(t6),et={URI:tT,fromEither:w},ee=(0,o.fromEitherK)(et),er=d.unsafeInsertAt,ei=function(n,t,e){return y(e)?d.unsafeUpdateAt(n,t,e):e},eu=function(n,t){var e=t.slice();return e.splice(n,1),e},eo=function(n){return n.slice()},ea=function(n){return g(n)?ec:n.slice()},ec=d.empty;function ef(n){return function(t){return t.every(n)}}var el=function(n){return function(t){return t.some(n)}},ep=el,ed=function(n){var t=d.intercalate(n);return function(e){return E(function(){return n.empty},t(e))}},es=n0(f.F4),em=(0,c.bindTo)(tD),eh=(0,c.let)(tD),ev=(0,i.bind)(tq),eg=(0,r.apS)(tA),ey=n3,e_=d.range,eb=d.cons,eI=d.snoc,eS=nh,eT={URI:tT,compact:tr,separate:n6,map:nW,ap:nD,of:n0,chain:n3,filter:nP,filterMap:nF,partition:nU,partitionMap:nA,mapWithIndex:nC,partitionMapWithIndex:nN,partitionWithIndex:nL,filterMapWithIndex:nV,filterWithIndex:nz,alt:nj,zero:n1,unfold:tS,reduce:nq,foldMap:nY,reduceRight:nK,traverse:nJ,sequence:ty,reduceWithIndex:nB,foldMapWithIndex:nG,reduceRightWithIndex:nH,traverseWithIndex:n$,extend:nX,wither:t5,wilt:t9}},13512:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return np},Filterable:function(){return nd},Functor:function(){return nc},URI:function(){return ne},collect:function(){return y},compact:function(){return z},deleteAt:function(){return S},difference:function(){return nO},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i,u=n(t);return function(n){return u(e,n)}}for(var o=r.values();!(i=o.next()).done;){var a=i.value;if(t.equals(e,a))return!0}return!1}}},empty:function(){return E},filter:function(){return X},filterMap:function(){return J},filterMapWithIndex:function(){return A},filterWithIndex:function(){return L},flap:function(){return nf},foldMap:function(){return nm},foldMapWithIndex:function(){return ny},fromFoldable:function(){return D},fromMap:function(){return l},getDifferenceMagma:function(){return no},getEq:function(){return k},getFilterableWithIndex:function(){return na},getFoldable:function(){return nv},getFoldableWithIndex:function(){return nb},getFunctorWithIndex:function(){return nl},getIntersectionSemigroup:function(){return nu},getMonoid:function(){return W},getShow:function(){return d},getTraversable:function(){return nI},getTraversableWithIndex:function(){return nS},getUnionMonoid:function(){return ni},getUnionSemigroup:function(){return nr},getWitherable:function(){return nT},insertAt:function(){return nw},intersection:function(){return nx},isEmpty:function(){return m},isSubmap:function(){return M},keys:function(){return v},lookup:function(){return w},lookupWithKey:function(){return O},map:function(){return $},mapWithIndex:function(){return Z},member:function(){return h},modifyAt:function(){return R},partition:function(){return Q},partitionMap:function(){return nn},partitionMapWithIndex:function(){return F},partitionWithIndex:function(){return U},pop:function(){return x},readonlyMap:function(){return nM},reduce:function(){return ns},reduceRight:function(){return nh},reduceRightWithIndex:function(){return n_},reduceWithIndex:function(){return ng},separate:function(){return nt},singleton:function(){return C},size:function(){return s},toMap:function(){return p},toReadonlyArray:function(){return _},toUnfoldable:function(){return b},union:function(){return nR},updateAt:function(){return T},upsertAt:function(){return I},values:function(){return g}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(20492),c=e(34219),f=e(76511),l=function(n){return new Map(n)};function p(n){return new Map(n)}function d(n,t){return{show:function(e){var r=[];return e.forEach(function(e,i){r.push("[".concat(n.show(i),", ").concat(t.show(e),"]"))}),"new Map([".concat(r.sort().join(", "),"])")}}}var s=function(n){return n.size},m=function(n){return 0===n.size};function h(n){var t=w(n);return function(e,r){if(void 0===r){var i=h(n);return function(n){return i(e,n)}}return o.pC(t(e,r))}}var v=function(n){return function(t){return Array.from(t.keys()).sort(n.compare)}},g=function(n){return function(t){return Array.from(t.values()).sort(n.compare)}};function y(n){var t=v(n);return function(n){return function(e){for(var r=[],i=t(e),u=0;u<i.length;u++){var o=i[u];r.push(n(o,e.get(o)))}return r}}}var _=function(n){return y(n)(function(n,t){return[n,t]})};function b(n,t){var e=_(n);return function(n){var r=e(n),i=r.length;return t.unfold(0,function(n){return n<i?o.G([r[n],n+1]):o.YP})}}var I=function(n){var t=O(n);return function(n,e){var r=t(n);return function(t){var i=r(t);if(o.Wi(i)){var u=new Map(t);return u.set(n,e),u}if(i.value[1]!==e){var u=new Map(t);return u.set(i.value[0],e),u}return t}}},S=function(n){var t=O(n);return function(n){return function(e){var r=t(n,e);if(o.pC(r)){var i=new Map(e);return i.delete(r.value[0]),i}return e}}},T=function(n){var t=R(n);return function(n,e){return t(n,function(){return e})}},R=function(n){var t=O(n);return function(n,e){return function(r){var i=t(n,r);if(o.Wi(i))return o.YP;var u=i.value,a=u[0],c=u[1],f=e(c);if(f===c)return o.G(r);var l=new Map(r);return l.set(a,f),o.G(l)}}};function x(n){var t=w(n),e=S(n);return function(n){var r=e(n);return function(e){return(0,i.pipe)(t(n,e),a.map(function(n){return[n,r(e)]}))}}}function O(n){return function(t,e){if(void 0===e){var r,i=O(n);return function(n){return i(t,n)}}for(var u=e.entries();!(r=u.next()).done;){var a=r.value,c=a[0],f=a[1];if(n.equals(c,t))return o.G([c,f])}return o.YP}}function w(n){var t=O(n);return function(e,r){if(void 0===r){var u=w(n);return function(n){return u(e,n)}}return(0,i.pipe)(t(e,r),a.map(function(n){return n[0],n[1]}))}}function M(n,t){var e=O(n);return function(r,i){if(void 0===i){var u,a=M(n,t);return function(n){return a(n,r)}}for(var c=r.entries();!(u=c.next()).done;){var f=u.value,l=f[0],p=f[1],d=e(l,i);if(o.Wi(d)||!n.equals(l,d.value[0])||!t.equals(p,d.value[1]))return!1}return!0}}var E=new Map;function k(n,t){var e=M(n,t);return(0,r.fromEquals)(function(n,t){return e(n,t)&&e(t,n)})}function W(n,t){var e=O(n);return{concat:function(n,r){if(m(n))return r;if(m(r))return n;for(var i,u=new Map(n),a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f,n);o.pC(p)?u.set(p.value[0],t.concat(p.value[1],l)):u.set(f,l)}return u},empty:E}}var C=function(n,t){return new Map([[n,t]])};function D(n,t,e){return function(r){var i=O(n);return e.reduce(r,new Map,function(n,e){var r=e[0],u=e[1],a=i(r,n);return o.pC(a)?n.set(a.value[0],t.concat(a.value[1],u)):n.set(r,u),n})}}var P=function(n,t){for(var e,r=new Map,i=n.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];r.set(o,t(o,a))}return r},F=function(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var a=e.value,f=a[0],l=n(f,a[1]);o.nM(l)?r.set(f,l.left):i.set(f,l.right)}return(0,c.separated)(r,i)}};function U(n){return function(t){for(var e,r=new Map,i=new Map,u=t.entries();!(e=u.next()).done;){var o=e.value,a=o[0],f=o[1];n(a,f)?i.set(a,f):r.set(a,f)}return(0,c.separated)(r,i)}}var A=function(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,a=u[0],c=n(a,u[1]);o.pC(c)&&r.set(a,c.value)}return r}};function L(n){return function(t){for(var e,r=new Map,i=t.entries();!(e=i.next()).done;){var u=e.value,o=u[0],a=u[1];n(o,a)&&r.set(o,a)}return r}}var N=function(n,t){return P(n,function(n,e){return t(e)})},j=function(n,t){return B(n,function(n,e){return t(e)})},q=function(n,t){return G(n,function(n,e){return t(e)})},Y=function(n,t){return H(n,function(n,e){return t(e)})},K=function(n,t){return V(n,function(n,e){return t(e)})},B=function(n,t){return(0,i.pipe)(n,L(t))},G=function(n,t){return(0,i.pipe)(n,A(t))},H=function(n,t){return(0,i.pipe)(n,U(t))},V=function(n,t){return(0,i.pipe)(n,F(t))},z=function(n){for(var t,e=new Map,r=n.entries();!(t=r.next()).done;){var i=t.value,u=i[0],a=i[1];o.pC(a)&&e.set(u,a.value)}return e},X=function(n){return function(t){return j(t,n)}},J=function(n){return function(t){return q(t,n)}},$=function(n){return function(t){return N(t,n)}},Z=function(n){return function(t){return P(t,n)}},Q=function(n){return function(t){return Y(t,n)}},nn=function(n){return function(t){return K(t,n)}},nt=function(n){for(var t,e=new Map,r=new Map,i=n.entries();!(t=i.next()).done;){var u=t.value,a=u[0],f=u[1];o.nM(f)?e.set(a,f.left):r.set(a,f.right)}return(0,c.separated)(e,r)},ne="ReadonlyMap",nr=function(n,t){var e=nR(n,t);return{concat:function(n,t){return e(t)(n)}}},ni=function(n,t){return{concat:nr(n,t).concat,empty:E}},nu=function(n,t){var e=nx(n,t);return{concat:function(n,t){return e(t)(n)}}},no=function(n){return function(){var t=nO(n);return{concat:function(n,e){return t(e)(n)}}}};function na(){return{URI:ne,_E:void 0,map:N,mapWithIndex:P,compact:z,separate:nt,filter:j,filterMap:q,partition:Y,partitionMap:K,partitionMapWithIndex:V,partitionWithIndex:H,filterMapWithIndex:G,filterWithIndex:B}}var nc={URI:ne,map:N},nf=(0,u.flap)(nc),nl=function(){return{URI:ne,_E:void 0,map:N,mapWithIndex:P}},np={URI:ne,compact:z,separate:nt},nd={URI:ne,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:Y,partitionMap:K},ns=function(n){var t=ng(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nm=function(n){var t=ny(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}},nh=function(n){var t=n_(n);return function(n,e){return t(n,function(n,t,r){return e(t,r)})}},nv=function(n){var t=ns(n),e=nm(n),r=nh(n);return{URI:ne,_E:void 0,reduce:function(n,e,r){return(0,i.pipe)(n,t(e,r))},foldMap:function(n){var t=e(n);return function(n,e){return(0,i.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,i.pipe)(n,r(t,e))}}},ng=function(n){var t=v(n);return function(n,e){return function(r){for(var i=n,u=0,o=t(r);u<o.length;u++){var a=o[u];i=e(a,i,r.get(a))}return i}}},ny=function(n){var t=v(n);return function(n){return function(e){return function(r){for(var i=n.empty,u=0,o=t(r);u<o.length;u++){var a=o[u];i=n.concat(i,e(a,r.get(a)))}return i}}}},n_=function(n){var t=v(n);return function(n,e){return function(r){for(var i=n,u=t(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=e(c,r.get(c),i)}return i}}},nb=function(n){var t=nv(n),e=ng(n),r=ny(n),u=n_(n);return{URI:ne,_E:void 0,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:function(n,t,r){return(0,i.pipe)(n,e(t,r))},foldMapWithIndex:function(n){var t=r(n);return function(n,e){return(0,i.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,i.pipe)(n,u(t,e))}}},nI=function(n){var t=nS(n),e=nv(n);return{URI:ne,_E:void 0,map:N,reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,traverse:t.traverse,sequence:t.sequence}},nS=function(n){var t=nb(n),e=v(n),r=function(n){return function(t,r){for(var i=n.of(new Map),u=e(t),o=u.length,a=0;a<o;a++)!function(e){var o=u[e],a=t.get(o);i=n.ap(n.map(i,function(n){return function(t){return n.set(o,t)}}),r(o,a))}(a);return i}},u=function(n){var t=r(n);return function(n,e){return t(n,function(n,t){return e(t)})}},o=function(n){var t=r(n);return function(n){return t(n,i.SK)}};return{URI:ne,_E:void 0,map:N,mapWithIndex:P,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverse:u,sequence:o,traverseWithIndex:r}};function nT(n){var t=nS(n);return{URI:ne,_E:void 0,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:Y,partitionMap:K,reduce:t.reduce,foldMap:t.foldMap,reduceRight:t.reduceRight,traverse:t.traverse,sequence:t.sequence,mapWithIndex:P,reduceWithIndex:t.reduceWithIndex,foldMapWithIndex:t.foldMapWithIndex,reduceRightWithIndex:t.reduceRightWithIndex,traverseWithIndex:t.traverseWithIndex,wilt:(0,f.wiltDefault)(t,np),wither:(0,f.witherDefault)(t,np)}}var nR=function(n,t){var e=w(n);return function(n){return function(r){if(m(r))return n;if(m(n))return r;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(n);o.pC(p)?u.set(f,t.concat(l,p.value)):u.set(f,l)}for(var d=n.entries();!(i=d.next()).done;){var s=i.value,f=s[0],l=s[1],p=e(f)(u);o.Wi(p)&&u.set(f,l)}return u}}},nx=function(n,t){var e=w(n);return function(n){return function(r){if(m(r)||m(n))return E;for(var i,u=new Map,a=r.entries();!(i=a.next()).done;){var c=i.value,f=c[0],l=c[1],p=e(f)(n);o.pC(p)&&u.set(f,t.concat(l,p.value))}return u}}},nO=function(n){var t=h(n);return function(n){return function(e){if(m(e))return n;if(m(n))return e;for(var r,i=new Map,u=e.entries();!(r=u.next()).done;){var o=r.value,a=o[0],c=o[1];t(a)(n)||i.set(a,c)}for(var f=n.entries();!(r=f.next()).done;){var l=r.value,a=l[0],c=l[1];t(a)(e)||i.set(a,c)}return i}}},nw=I,nM={URI:ne,map:N,compact:z,separate:nt,filter:j,filterMap:q,partition:Y,partitionMap:K}},28350:function(n,t,e){e.r(t),e.d(t,{Alt:function(){return nV},Applicative:function(){return nN},Apply:function(){return nU},Chain:function(){return nj},Comonad:function(){return nz},Do:function(){return nX},Foldable:function(){return nK},FoldableWithIndex:function(){return nB},Functor:function(){return nC},FunctorWithIndex:function(){return nF},Monad:function(){return nY},Pointed:function(){return nP},Traversable:function(){return nG},TraversableWithIndex:function(){return nH},URI:function(){return nw},alt:function(){return nf},altW:function(){return nc},ap:function(){return nl},apFirst:function(){return nA},apS:function(){return nQ},apSecond:function(){return nL},append:function(){return y},appendW:function(){return g},bind:function(){return nZ},bindTo:function(){return nJ},chain:function(){return ti},chainFirst:function(){return nq},chainWithIndex:function(){return B},chop:function(){return G},chunksOf:function(){return V},concat:function(){return D},concatAll:function(){return n4},concatW:function(){return C},cons:function(){return tl},duplicate:function(){return ns},empty:function(){return d},extend:function(){return nd},extract:function(){return nO},filter:function(){return to},filterWithIndex:function(){return ta},flap:function(){return nD},flatMap:function(){return np},flatten:function(){return nm},fold:function(){return tm},foldMap:function(){return ny},foldMapWithIndex:function(){return nI},fromArray:function(){return W},fromReadonlyArray:function(){return x},getEq:function(){return nk},getSemigroup:function(){return nE},getShow:function(){return nM},getUnionSemigroup:function(){return nW},group:function(){return F},groupBy:function(){return U},groupSort:function(){return tu},head:function(){return n0},init:function(){return n2},insertAt:function(){return td},intercalate:function(){return tr},intersperse:function(){return K},isNonEmpty:function(){return s},isOutOfBound:function(){return m},last:function(){return n8},let:function(){return n$},makeBy:function(){return O},map:function(){return nh},mapWithIndex:function(){return nv},matchLeft:function(){return n5},matchRight:function(){return n9},max:function(){return n3},min:function(){return n7},modifyAt:function(){return N},modifyHead:function(){return n6},modifyLast:function(){return tt},of:function(){return na},prepend:function(){return v},prependAll:function(){return Y},prependToAll:function(){return ts},prependW:function(){return h},range:function(){return M},readonlyNonEmptyArray:function(){return th},reduce:function(){return ng},reduceRight:function(){return n_},reduceRightWithIndex:function(){return nS},reduceWithIndex:function(){return nb},replicate:function(){return w},reverse:function(){return P},rotate:function(){return R},sequence:function(){return nR},snoc:function(){return tp},sort:function(){return A},sortBy:function(){return S},splitAt:function(){return H},tail:function(){return n1},traverse:function(){return nT},traverseWithIndex:function(){return nx},unappend:function(){return k},uncons:function(){return tc},union:function(){return T},uniq:function(){return I},unprepend:function(){return E},unsafeInsertAt:function(){return _},unsafeUpdateAt:function(){return b},unsnoc:function(){return tf},unzip:function(){return q},updateAt:function(){return L},updateHead:function(){return tn},updateLast:function(){return te},zip:function(){return function n(t,e){return void 0===e?function(e){return n(e,t)}:j(t,e,function(n,t){return[n,t]})}},zipWith:function(){return j}});var r=e(42925),i=e(88543),u=e(65191),o=e(42275),a=e(67560),c=e(97963),f=e(5586),l=e(3291),p=function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},d=c.Xl,s=c.Od,m=function(n,t){return n<0||n>=t.length},h=function(n){return function(t){return p([n],t,!0)}},v=h,g=function(n){return function(t){return p(p([],t,!0),[n],!1)}},y=g,_=function(n,t,e){if(s(e)){var r=c.r1(e);return r.splice(n,0,t),r}return[t]},b=function(n,t,e){if(e[n]===t)return e;var r=c.r1(e);return r[n]=t,r},I=function(n){return function(t){if(1===t.length)return t;for(var e=[n0(t)],r=n1(t),i=function(t){e.every(function(e){return!n.equals(e,t)})&&e.push(t)},u=0;u<r.length;u++)i(r[u]);return e}},S=function(n){if(s(n)){var t=(0,f.getMonoid)();return A(n.reduce(t.concat,t.empty))}return o.identity},T=function(n){var t=I(n);return function(n){return function(e){return t((0,o.pipe)(e,D(n)))}}},R=function(n){return function(t){var e=t.length,r=Math.round(n)%e;if(m(Math.abs(r),t)||0===r)return t;if(!(r<0))return R(r-e)(t);var i=H(-r)(t),u=i[0],a=i[1];return(0,o.pipe)(a,D(u))}},x=function(n){return s(n)?c.G(n):c.YP},O=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}},w=function(n){return O(function(){return n})},M=function(n,t){return n<=t?O(function(t){return n+t})(t-n+1):[n]},E=function(n){return[n0(n),n1(n)]},k=function(n){return[n2(n),n8(n)]},W=function(n){return x(n.slice())};function C(n){return function(t){return t.concat(n)}}function D(n,t){return t?n.concat(t):function(t){return t.concat(n)}}var P=function(n){return 1===n.length?n:p([n8(n)],n.slice(0,-1).reverse(),!0)};function F(n){return function(t){var e=t.length;if(0===e)return d;for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}var U=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);c.e$.call(e,u)?e[u].push(i):e[u]=[i]}return e}},A=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}},L=function(n,t){return N(n,function(){return t})},N=function(n,t){return function(e){return m(n,e)?c.YP:c.G(b(n,t(e[n]),e))}},j=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r},q=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]},Y=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}},K=function(n){return function(t){var e=n1(t);return s(e)?(0,o.pipe)(e,Y(n),v(n0(t))):t}},B=function(n){return function(t){for(var e=c.r1(n(0,n0(t))),r=1;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}},G=function(n){return function(t){for(var e=n(t),r=e[0],i=e[1],u=[r],o=i;s(o);){var a=n(o),c=a[0],f=a[1];u.push(c),o=f}return u}},H=function(n){return function(t){var e=Math.max(1,n);return e>=t.length?[t,d]:[(0,o.pipe)(t.slice(1,e),v(n0(t))),t.slice(e)]}},V=function(n){return G(H(n))},z=function(n,t){return(0,o.pipe)(n,nh(t))},X=function(n,t){return(0,o.pipe)(n,nv(t))},J=function(n,t){return(0,o.pipe)(n,nl(t))},$=function(n,t){return(0,o.pipe)(n,nd(t))},Z=function(n,t,e){return(0,o.pipe)(n,ng(t,e))},Q=function(n){var t=ny(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nn=function(n,t,e){return(0,o.pipe)(n,n_(t,e))},nt=function(n){var t=nT(n);return function(n,e){return(0,o.pipe)(n,t(e))}},ne=function(n,t){return(0,o.pipe)(n,nf(t))},nr=function(n,t,e){return(0,o.pipe)(n,nb(t,e))},ni=function(n){var t=nI(n);return function(n,e){return(0,o.pipe)(n,t(e))}},nu=function(n,t,e){return(0,o.pipe)(n,nS(t,e))},no=function(n){var t=nx(n);return function(n,e){return(0,o.pipe)(n,t(e))}},na=c.ri,nc=function(n){return function(t){return(0,o.pipe)(t,C(n()))}},nf=nc,nl=function(n){return np(function(t){return(0,o.pipe)(n,nh(t))})},np=(0,o.dual)(2,function(n,t){return(0,o.pipe)(n,B(function(n,e){return t(e,n)}))}),nd=function(n){return function(t){for(var e=n1(t),r=[n(t)];s(e);)r.push(n(e)),e=n1(e);return r}},ns=nd(o.identity),nm=np(o.identity),nh=function(n){return nv(function(t,e){return n(e)})},nv=function(n){return function(t){for(var e=[n(0,n0(t))],r=1;r<t.length;r++)e.push(n(r,t[r]));return e}},ng=function(n,t){return nb(n,function(n,e,r){return t(e,r)})},ny=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}},n_=function(n,t){return nS(n,function(n,e,r){return t(e,r)})},nb=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}},nI=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,i){return n.concat(e,t(i+1,r))},t(0,e[0]))}}},nS=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}},nT=function(n){var t=nx(n);return function(n){return t(function(t,e){return n(e)})}},nR=function(n){return nx(n)(o.SK)},nx=function(n){return function(t){return function(e){for(var r=n.map(t(0,n0(e)),na),i=1;i<e.length;i++)r=n.ap(n.map(r,function(n){return function(t){return(0,o.pipe)(n,y(t))}}),t(i,e[i]));return r}}},nO=c.YM,nw="ReadonlyNonEmptyArray",nM=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}},nE=function(){return{concat:D}},nk=function(n){return(0,u.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})},nW=function(n){var t=T(n);return{concat:function(n,e){return t(e)(n)}}},nC={URI:nw,map:z},nD=(0,a.flap)(nC),nP={URI:nw,of:na},nF={URI:nw,map:z,mapWithIndex:X},nU={URI:nw,map:z,ap:J},nA=(0,r.apFirst)(nU),nL=(0,r.apSecond)(nU),nN={URI:nw,map:z,ap:J,of:na},nj={URI:nw,map:z,ap:J,chain:np},nq=(0,i.chainFirst)(nj),nY={URI:nw,map:z,ap:J,of:na,chain:np},nK={URI:nw,reduce:Z,foldMap:Q,reduceRight:nn},nB={URI:nw,reduce:Z,foldMap:Q,reduceRight:nn,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu},nG={URI:nw,map:z,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nR},nH={URI:nw,map:z,mapWithIndex:X,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nR,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no},nV={URI:nw,map:z,alt:ne},nz={URI:nw,map:z,extend:$,extract:nO},nX=na(c.F4),nJ=(0,a.bindTo)(nC),n$=(0,a.let)(nC),nZ=(0,i.bind)(nj),nQ=(0,r.apS)(nU),n0=nO,n1=c.Gb,n8=function(n){return n[n.length-1]},n2=function(n){return n.slice(0,-1)},n7=function(n){var t=l.min(n);return function(n){return n.reduce(t.concat)}},n3=function(n){var t=l.max(n);return function(n){return n.reduce(t.concat)}},n4=function(n){return function(t){return t.reduce(n.concat)}},n5=function(n){return function(t){return n(n0(t),n1(t))}},n9=function(n){return function(t){return n(n2(t),n8(t))}},n6=function(n){return function(t){return p([n(n0(t))],n1(t),!0)}},tn=function(n){return n6(function(){return n})},tt=function(n){return function(t){return(0,o.pipe)(n2(t),y(n(n8(t))))}},te=function(n){return tt(function(){return n})},tr=function(n){var t=n4(n);return function(n){return(0,o.flow)(K(n),t)}},ti=np;function tu(n){var t=A(n),e=F(n);return function(n){return s(n)?e(t(n)):d}}function to(n){return ta(function(t,e){return n(e)})}var ta=function(n){return function(t){return x(t.filter(function(t,e){return n(e,t)}))}},tc=E,tf=k;function tl(n,t){return void 0===t?v(n):(0,o.pipe)(t,v(n))}var tp=function(n,t){return(0,o.pipe)(n,D([t]))},td=function(n,t){return function(e){return n<0||n>e.length?c.YP:c.G(_(n,t,e))}},ts=Y,tm=n4,th={URI:nw,of:na,map:z,mapWithIndex:X,ap:J,chain:np,extend:$,extract:nO,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:nR,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no,alt:ne}},97054:function(n,t,e){e.r(t),e.d(t,{Compactable:function(){return nP},Filterable:function(){return nF},FilterableWithIndex:function(){return nU},Foldable:function(){return nB},FoldableWithIndex:function(){return nG},Functor:function(){return nE},FunctorWithIndex:function(){return nW},Traversable:function(){return nH},TraversableWithIndex:function(){return nV},URI:function(){return nO},Witherable:function(){return nJ},_filter:function(){return nr},_filterMap:function(){return ni},_filterMapWithIndex:function(){return nd},_filterWithIndex:function(){return ns},_foldMap:function(){return nt},_foldMapWithIndex:function(){return nc},_map:function(){return Z},_mapWithIndex:function(){return Q},_partition:function(){return nu},_partitionMap:function(){return no},_partitionMapWithIndex:function(){return nl},_partitionWithIndex:function(){return np},_reduce:function(){return nn},_reduceRight:function(){return ne},_reduceRightWithIndex:function(){return nf},_reduceWithIndex:function(){return na},_sequence:function(){return nh},_traverse:function(){return nm},collect:function(){return v},compact:function(){return nR},deleteAt:function(){return I},difference:function(){return $},elem:function(){return function n(t){return function(e,r){if(void 0===r){var i=n(t);return function(n){return i(e,n)}}for(var u in r)if(t.equals(r[u],e))return!0;return!1}}},empty:function(){return w},every:function(){return V},filter:function(){return ng},filterMap:function(){return ny},filterMapWithIndex:function(){return q},filterWithIndex:function(){return Y},flap:function(){return nk},foldMap:function(){return nS},foldMapWithIndex:function(){return W},fromEntries:function(){return H},fromFoldable:function(){return K},fromFoldableMap:function(){return B},fromRecord:function(){return l},getDifferenceMagma:function(){return nK},getEq:function(){return nw},getFoldable:function(){return nC},getFoldableWithIndex:function(){return nD},getIntersectionSemigroup:function(){return nY},getMonoid:function(){return nM},getShow:function(){return function n(t){return"compare"in t?function(n){return{show:function(e){var r=v(t)(function(t,e){return"".concat(JSON.stringify(t),": ").concat(n.show(e))})(e).join(", ");return""===r?"{}":"{ ".concat(r," }")}}}:n(c.Ord)(t)}},getTraversable:function(){return nA},getTraversableWithIndex:function(){return nL},getUnionMonoid:function(){return nq},getUnionSemigroup:function(){return nj},getWitherable:function(){return nN},has:function(){return b},hasOwnProperty:function(){return nZ},insertAt:function(){return n$},intersection:function(){return J},isEmpty:function(){return s},isSubrecord:function(){return x},keys:function(){return h},lookup:function(){return O},map:function(){return E},mapWithIndex:function(){return M},modifyAt:function(){return T},partition:function(){return n_},partitionMap:function(){return nb},partitionMapWithIndex:function(){return N},partitionWithIndex:function(){return j},pop:function(){return R},readonlyRecord:function(){return nQ},reduce:function(){return nI},reduceRight:function(){return nT},reduceRightWithIndex:function(){return C},reduceWithIndex:function(){return k},separate:function(){return nx},sequence:function(){return U},singleton:function(){return D},size:function(){return d},some:function(){return z},toEntries:function(){return G},toReadonlyArray:function(){return g},toRecord:function(){return p},toUnfoldable:function(){return y},traverse:function(){return F},traverseWithIndex:function(){return P},union:function(){return X},updateAt:function(){return S},upsertAt:function(){return _},wilt:function(){return L},wither:function(){return A}});var r=e(65191),i=e(42275),u=e(67560),o=e(97963),a=e(34219),c=e(57029),f=e(76511),l=function(n){return Object.assign({},n)},p=function(n){return Object.assign({},n)},d=function(n){return Object.keys(n).length},s=function(n){for(var t in n)if(o.e$.call(n,t))return!1;return!0},m=function(n){return function(t){return Object.keys(t).sort(n.compare)}},h=m(c.Ord);function v(n){if("function"==typeof n)return v(c.Ord)(n);var t=m(n);return function(n){return function(e){for(var r=[],i=0,u=t(e);i<u.length;i++){var o=u[i];r.push(n(o,e[o]))}return r}}}var g=v(c.Ord)(function(n,t){return[n,t]});function y(n){return function(t){var e=g(t),r=e.length;return n.unfold(0,function(n){return n<r?o.G([e[n],n+1]):o.YP})}}var _=function(n,t){return function(e){if(o.e$.call(e,n)&&e[n]===t)return e;var r=Object.assign({},e);return r[n]=t,r}},b=function(n,t){return o.e$.call(t,n)};function I(n){return function(t){if(!o.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var S=function(n,t){return function(e){if(!b(n,e))return o.YP;if(e[n]===t)return o.G(e);var r=Object.assign({},e);return r[n]=t,o.G(r)}},T=function(n,t){return function(e){if(!b(n,e))return o.YP;var r=t(e[n]);if(r===e[n])return o.G(e);var i=Object.assign({},e);return i[n]=r,o.G(i)}};function R(n){var t=I(n);return function(e){var r=O(n,e);return o.Wi(r)?o.YP:o.G([r.value,t(e)])}}function x(n){return function(t,e){if(void 0===e){var r=x(n);return function(n){return r(n,t)}}for(var i in t)if(!o.e$.call(e,i)||!n.equals(t[i],e[i]))return!1;return!0}}function O(n,t){return void 0===t?function(t){return O(n,t)}:o.e$.call(t,n)?o.G(t[n]):o.YP}var w={};function M(n){return function(t){var e={};for(var r in t)o.e$.call(t,r)&&(e[r]=n(r,t[r]));return e}}function E(n){return M(function(t,e){return n(e)})}function k(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return k(c.Ord).apply(void 0,n);var e=m(n[0]);return function(n,t){return function(r){for(var i=n,u=e(r),o=u.length,a=0;a<o;a++){var c=u[a];i=t(c,i,r[c])}return i}}}function W(n){if("compare"in n){var t=m(n);return function(n){return function(e){return function(r){for(var i=n.empty,u=t(r),o=u.length,a=0;a<o;a++){var c=u[a];i=n.concat(i,e(c,r[c]))}return i}}}}return W(c.Ord)(n)}function C(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(2===n.length)return C(c.Ord).apply(void 0,n);var e=m(n[0]);return function(n,t){return function(r){for(var i=n,u=e(r),o=u.length,a=o-1;a>=0;a--){var c=u[a];i=t(c,r[c],i)}return i}}}var D=function(n,t){var e;return(e={})[n]=t,e};function P(n){var t=nv(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function F(n){var t=nm(c.Ord)(n);return function(n){return function(e){return t(e,n)}}}function U(n){return nh(c.Ord)(n)}var A=function(n){var t=F(n);return function(e){return function(r){return n.map((0,i.pipe)(r,t(e)),nR)}}},L=function(n){var t=F(n);return function(e){return function(r){return n.map((0,i.pipe)(r,t(e)),nx)}}};function N(n){return function(t){var e={},r={};for(var i in t)if(o.e$.call(t,i)){var u=n(i,t[i]);switch(u._tag){case"Left":e[i]=u.left;break;case"Right":r[i]=u.right}}return(0,a.separated)(e,r)}}function j(n){return function(t){var e={},r={};for(var i in t)if(o.e$.call(t,i)){var u=t[i];n(i,u)?r[i]=u:e[i]=u}return(0,a.separated)(e,r)}}function q(n){return function(t){var e={};for(var r in t)if(o.e$.call(t,r)){var i=n(r,t[r]);o.pC(i)&&(e[r]=i.value)}return e}}function Y(n){return function(t){var e={},r=!1;for(var i in t)if(o.e$.call(t,i)){var u=t[i];n(i,u)?e[i]=u:r=!0}return r?e:t}}function K(n,t){var e=B(n,t);return function(n){return e(n,i.identity)}}function B(n,t){return function(e,r){return t.reduce(e,{},function(t,e){var i=r(e),u=i[0],a=i[1];return t[u]=o.e$.call(t,u)?n.concat(t[u],a):a,t})}}var G=g,H=function(n){for(var t={},e=0;e<n.length;e++){var r=n[e];t[r[0]]=r[1]}return t};function V(n){return function(t){for(var e in t)if(!n(t[e]))return!1;return!0}}function z(n){return function(t){for(var e in t)if(n(t[e]))return!0;return!1}}var X=function(n){return function(t){return function(e){if(s(e))return t;if(s(t))return e;var r={};for(var i in e)b(i,t)?r[i]=n.concat(e[i],t[i]):r[i]=e[i];for(var i in t)b(i,r)||(r[i]=t[i]);return r}}},J=function(n){return function(t){return function(e){if(s(e)||s(t))return w;var r={};for(var i in e)b(i,t)&&(r[i]=n.concat(e[i],t[i]));return r}}},$=function(n){return function(t){if(s(t))return n;if(s(n))return t;var e={};for(var r in t)b(r,n)||(e[r]=t[r]);for(var r in n)b(r,t)||(e[r]=n[r]);return e}},Z=function(n,t){return(0,i.pipe)(n,E(t))},Q=function(n,t){return(0,i.pipe)(n,M(t))},nn=function(n){var t=nI(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nt=function(n){return function(t){var e=nS(n)(t);return function(n,t){return(0,i.pipe)(n,e(t))}}},ne=function(n){var t=nT(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nr=function(n,t){return(0,i.pipe)(n,ng(t))},ni=function(n,t){return(0,i.pipe)(n,ny(t))},nu=function(n,t){return(0,i.pipe)(n,n_(t))},no=function(n,t){return(0,i.pipe)(n,nb(t))},na=function(n){var t=k(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nc=function(n){var t=W(n);return function(n){var e=t(n);return function(n,t){return(0,i.pipe)(n,e(t))}}},nf=function(n){var t=C(n);return function(n,e,r){return(0,i.pipe)(n,t(e,r))}},nl=function(n,t){return(0,i.pipe)(n,N(t))},np=function(n,t){return(0,i.pipe)(n,j(t))},nd=function(n,t){return(0,i.pipe)(n,q(t))},ns=function(n,t){return(0,i.pipe)(n,Y(t))},nm=function(n){var t=nv(n);return function(n){var e=t(n);return function(n,t){return e(n,(0,i.flow)(i.SK,t))}}},nh=function(n){var t=nm(n);return function(n){var e=t(n);return function(n){return e(n,i.identity)}}},nv=function(n){return function(t){var e=m(n);return function(n,r){var i=e(n);if(0===i.length)return t.of(w);for(var u=t.of({}),o=function(e){u=t.ap(t.map(u,function(n){return function(t){var r;return Object.assign({},n,((r={})[e]=t,r))}}),r(e,n[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},ng=function(n){return Y(function(t,e){return n(e)})},ny=function(n){return q(function(t,e){return n(e)})},n_=function(n){return j(function(t,e){return n(e)})},nb=function(n){return N(function(t,e){return n(e)})};function nI(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=k(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nI(c.Ord).apply(void 0,n)}function nS(n){if("compare"in n){var t=W(n);return function(n){var e=t(n);return function(n){return e(function(t,e){return n(e)})}}}return nS(c.Ord)(n)}function nT(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];if(1===n.length){var e=C(n[0]);return function(n,t){return e(n,function(n,e,r){return t(e,r)})}}return nT(c.Ord).apply(void 0,n)}var nR=function(n){var t={};for(var e in n)if(o.e$.call(n,e)){var r=n[e];o.pC(r)&&(t[e]=r.value)}return t},nx=function(n){var t={},e={};for(var r in n)if(o.e$.call(n,r)){var i=n[r];o.nM(i)?t[r]=i.left:e[r]=i.right}return(0,a.separated)(t,e)},nO="ReadonlyRecord";function nw(n){var t=x(n);return(0,r.fromEquals)(function(n,e){return t(n)(e)&&t(e)(n)})}function nM(n){return{concat:function(t,e){if(s(t))return e;if(s(e))return t;var r=Object.assign({},t);for(var i in e)o.e$.call(e,i)&&(r[i]=o.e$.call(t,i)?n.concat(t[i],e[i]):e[i]);return r},empty:w}}var nE={URI:nO,map:Z},nk=(0,u.flap)(nE),nW={URI:nO,map:Z,mapWithIndex:Q},nC=function(n){return{URI:nO,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n)}},nD=function(n){return{URI:nO,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:na(n),foldMapWithIndex:nc(n),reduceRightWithIndex:nf(n)}},nP={URI:nO,compact:nR,separate:nx},nF={URI:nO,map:Z,compact:nR,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no},nU={URI:nO,map:Z,mapWithIndex:Q,compact:nR,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np},nA=function(n){return{URI:nO,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:nm(n),sequence:nh(n)}},nL=function(n){return{URI:nO,map:Z,mapWithIndex:Q,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),reduceWithIndex:na(n),foldMapWithIndex:nc(n),reduceRightWithIndex:nf(n),traverse:nm(n),sequence:nh(n),traverseWithIndex:nv(n)}},nN=function(n){var t=nA(n);return{URI:nO,map:Z,reduce:nn(n),foldMap:nt(n),reduceRight:ne(n),traverse:t.traverse,sequence:t.sequence,compact:nR,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,wither:(0,f.witherDefault)(t,nP),wilt:(0,f.wiltDefault)(t,nP)}},nj=function(n){var t=X(n);return{concat:function(n,e){return t(e)(n)}}},nq=function(n){return{concat:nj(n).concat,empty:w}},nY=function(n){var t=J(n);return{concat:function(n,e){return t(e)(n)}}},nK=function(){return{concat:function(n,t){return $(t)(n)}}},nB={URI:nO,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord)},nG={URI:nO,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord)},nH={URI:nO,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nm(c.Ord),sequence:U},nV={URI:nO,map:Z,mapWithIndex:Q,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord),traverse:nm(c.Ord),sequence:U,traverseWithIndex:nv(c.Ord)},nz=(0,f.witherDefault)(nH,nP),nX=(0,f.wiltDefault)(nH,nP),nJ={URI:nO,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nm(c.Ord),sequence:U,compact:nR,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,wither:nz,wilt:nX},n$=_;function nZ(n,t){return o.e$.call(void 0===t?this:t,n)}var nQ={URI:nO,map:Z,reduce:nn(c.Ord),foldMap:nt(c.Ord),reduceRight:ne(c.Ord),traverse:nm(c.Ord),sequence:U,compact:nR,separate:nx,filter:nr,filterMap:ni,partition:nu,partitionMap:no,mapWithIndex:Q,reduceWithIndex:na(c.Ord),foldMapWithIndex:nc(c.Ord),reduceRightWithIndex:nf(c.Ord),filterMapWithIndex:nd,filterWithIndex:ns,partitionMapWithIndex:nl,partitionWithIndex:np,traverseWithIndex:nv(c.Ord),wither:nz,wilt:nX}},99156:function(n,t,e){e.r(t),e.d(t,{URI:function(){return U},chain:function(){return d},compact:function(){return x},difference:function(){return y},elem:function(){return P},empty:function(){return M},every:function(){return C},filter:function(){return s},filterMap:function(){return w},foldMap:function(){return b},fromArray:function(){return K},fromReadonlyArray:function(){return f},fromSet:function(){return a},getDifferenceMagma:function(){return Y},getEq:function(){return L},getIntersectionSemigroup:function(){return q},getShow:function(){return A},getUnionMonoid:function(){return j},getUnionSemigroup:function(){return N},insert:function(){return S},intersection:function(){return v},isEmpty:function(){return E},isSubset:function(){return D},map:function(){return p},partition:function(){return m},partitionMap:function(){return g},reduce:function(){return _},reduceRight:function(){return I},remove:function(){return T},separate:function(){return O},singleton:function(){return c},size:function(){return k},some:function(){return W},toReadonlyArray:function(){return F},toSet:function(){return l},toggle:function(){return R},union:function(){return h}});var r=e(65191),i=e(42275),u=e(88491),o=e(34219),a=function(n){return new Set(n)},c=function(n){return new Set([n])},f=function(n){return function(t){for(var e=t.length,r=new Set,i=P(n),u=0;u<e;u++){var o=t[u];i(o,r)||r.add(o)}return r}};function l(n){return new Set(n)}function p(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);t(i,r)||r.add(i)}),r}}}function d(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function s(n){return function(t){for(var e,r=t.values(),i=new Set;!(e=r.next()).done;){var u=e.value;n(u)&&i.add(u)}return i}}function m(n){return function(t){for(var e,r=t.values(),i=new Set,u=new Set;!(e=r.next()).done;){var a=e.value;n(a)?i.add(a):u.add(a)}return(0,o.separated)(u,i)}}function h(n){var t=P(n);return function(e,r){if(void 0===r){var i=h(n);return function(n){return i(e,n)}}if(E(e))return r;if(E(r))return e;var u=new Set(e);return r.forEach(function(n){t(n,u)||u.add(n)}),u}}function v(n){var t=P(n);return function(e,r){if(void 0===r){var i=v(n);return function(n){return i(n,e)}}if(E(e)||E(r))return M;var u=new Set;return e.forEach(function(n){t(n,r)&&u.add(n)}),u}}function g(n,t){return function(e){return function(r){for(var i,u=r.values(),a=new Set,c=new Set,f=P(n),l=P(t);!(i=u.next()).done;){var p=e(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 y(n){var t=P(n);return function(e,r){if(void 0===r){var i=y(n);return function(n){return i(n,e)}}return s(function(n){return!t(n,r)})(e)}}function _(n){var t=F(n);return function(n,e){return function(r){return t(r).reduce(e,n)}}}function b(n,t){var e=F(n);return function(n){return function(r){return e(r).reduce(function(e,r){return t.concat(e,n(r))},t.empty)}}}var I=function(n){var t=F(n);return function(n,e){return function(r){return t(r).reduceRight(function(n,t){return e(t,n)},n)}}};function S(n){var t=P(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var T=function(n){return function(t){return function(e){return s(function(e){return!n.equals(t,e)})(e)}}},R=function(n){var t=P(n),e=T(n),r=S(n);return function(n){return function(i){return(t(n,i)?e:r)(n)(i)}}},x=function(n){return w(n)(i.identity)};function O(n,t){return function(e){var r=P(n),i=P(t),u=new Set,a=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,u)||u.add(n.left);break;case"Right":i(n.right,a)||a.add(n.right)}}),(0,o.separated)(u,a)}}function w(n){var t=P(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var M=new Set,E=function(n){return 0===n.size},k=function(n){return n.size},W=function(n){return function(t){for(var e,r=t.values(),i=!1;!i&&!(e=r.next()).done;)i=n(e.value);return i}};function C(n){return(0,u.not)(W((0,u.not)(n)))}function D(n){var t=P(n);return function(e,r){if(void 0===r){var i=D(n);return function(n){return i(n,e)}}return C(function(n){return t(n,r)})(e)}}function P(n){return function(t,e){if(void 0===e){var r,i=P(n);return function(n){return i(t,n)}}for(var u=e.values(),o=!1;!o&&!(r=u.next()).done;)o=n.equals(t,r.value);return o}}var F=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},U="ReadonlySet";function A(n){return{show:function(t){var e=[];return t.forEach(function(t){e.push(n.show(t))}),"new Set([".concat(e.sort().join(", "),"])")}}}function L(n){var t=D(n);return(0,r.fromEquals)(function(n,e){return t(n,e)&&t(e,n)})}var N=function(n){return{concat:h(n)}},j=function(n){return{concat:N(n).concat,empty:M}},q=function(n){return{concat:v(n)}},Y=function(n){return{concat:y(n)}},K=f},3291:function(n,t,e){e.r(t),e.d(t,{concatAll:function(){return v},constant:function(){return f},first:function(){return m},fold:function(){return w},getDualSemigroup:function(){return T},getFirstSemigroup:function(){return b},getFunctionSemigroup:function(){return k},getIntercalateSemigroup:function(){return O},getJoinSemigroup:function(){return R},getLastSemigroup:function(){return _},getMeetSemigroup:function(){return x},getObjectSemigroup:function(){return y},getStructSemigroup:function(){return S},getTupleSemigroup:function(){return I},intercalate:function(){return s},last:function(){return h},max:function(){return c},min:function(){return a},reverse:function(){return l},semigroupAll:function(){return M},semigroupAny:function(){return E},semigroupProduct:function(){return D},semigroupString:function(){return W},semigroupSum:function(){return C},semigroupVoid:function(){return g},struct:function(){return p},tuple:function(){return d}});var r=e(42275),i=e(97963),u=e(76113),o=e(5586),a=function(n){return{concat:o.min(n)}},c=function(n){return{concat:o.max(n)}},f=function(n){return{concat:function(){return n}}},l=u.reverse,p=function(n){return{concat:function(t,e){var r={};for(var u in n)i.e$.call(n,u)&&(r[u]=n[u].concat(t[u],e[u]));return r}}},d=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}},s=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}},m=function(){return{concat:r.identity}},h=function(){return{concat:function(n,t){return t}}},v=u.concatAll,g=f(void 0),y=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},_=h,b=m,I=d,S=p,T=l,R=c,x=a,O=s;function w(n){var t=v(n);return function(n,e){return void 0===e?t(n):t(n)(e)}}var M={concat:function(n,t){return n&&t}},E={concat:function(n,t){return n||t}},k=r.getSemigroup,W={concat:function(n,t){return n+t}},C={concat:function(n,t){return n+t}},D={concat:function(n,t){return n*t}}},34219:function(n,t,e){e.r(t),e.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 o},mapLeft:function(){return a},right:function(){return m},separated:function(){return u}});var r=e(42275),i=e(67560),u=function(n,t){return{left:n,right:t}},o=function(n){return function(t){return u(s(t),n(m(t)))}},a=function(n){return function(t){return u(n(s(t)),m(t))}},c=function(n,t){return function(e){return u(n(s(e)),t(m(e)))}},f="Separated",l={URI:f,mapLeft:function(n,t){return(0,r.pipe)(n,a(t))},bimap:function(n,t,e){return(0,r.pipe)(n,c(t,e))}},p={URI:f,map:function(n,t){return(0,r.pipe)(n,o(t))}},d=(0,i.flap)(p),s=function(n){return n.left},m=function(n){return n.right}},1214:function(n,t,e){e.r(t),e.d(t,{chain:function(){return f},compact:function(){return M},difference:function(){return h},elem:function(){return A},empty:function(){return W},every:function(){return F},filter:function(){return l},filterMap:function(){return k},foldMap:function(){return I},fromArray:function(){return w},getDifferenceMagma:function(){return _},getEq:function(){return a},getIntersectionSemigroup:function(){return y},getShow:function(){return o},getUnionMonoid:function(){return g},getUnionSemigroup:function(){return v},insert:function(){return R},intersection:function(){return s},isEmpty:function(){return C},isSubset:function(){return U},map:function(){return c},partition:function(){return p},partitionMap:function(){return m},reduce:function(){return b},reduceRight:function(){return S},remove:function(){return x},separate:function(){return E},singleton:function(){return T},size:function(){return D},some:function(){return P},subset:function(){return N},toArray:function(){return L},toggle:function(){return O},union:function(){return d}});var r=e(42275),i=e(99156),u=e(34219),o=i.getShow,a=i.getEq;function c(n){var t=A(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);t(i,r)||r.add(i)}),r}}}function f(n){var t=A(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){n(e).forEach(function(n){t(n,r)||r.add(n)})}),r}}}function l(n){return function(t){for(var e,r=t.values(),i=new Set;!(e=r.next()).done;){var u=e.value;n(u)&&i.add(u)}return i}}function p(n){return function(t){for(var e,r=t.values(),i=new Set,o=new Set;!(e=r.next()).done;){var a=e.value;n(a)?i.add(a):o.add(a)}return(0,u.separated)(o,i)}}function d(n){var t=A(n);return function(e,r){if(void 0===r){var i=d(n);return function(n){return i(e,n)}}if(C(e))return r;if(C(r))return e;var u=new Set(e);return r.forEach(function(n){t(n,u)||u.add(n)}),u}}function s(n){var t=A(n);return function(e,r){if(void 0===r){var i=s(n);return function(n){return i(n,e)}}if(C(e)||C(r))return new Set;var u=new Set;return e.forEach(function(n){t(n,r)&&u.add(n)}),u}}function m(n,t){return function(e){return function(r){for(var i,o=r.values(),a=new Set,c=new Set,f=A(n),l=A(t);!(i=o.next()).done;){var p=e(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 h(n){var t=A(n);return function(e,r){if(void 0===r){var i=h(n);return function(n){return i(n,e)}}return l(function(n){return!t(n,r)})(e)}}var v=function(n){return{concat:d(n)}},g=function(n){return{concat:v(n).concat,empty:new Set}},y=function(n){return{concat:s(n)}},_=function(n){return{concat:h(n)}},b=i.reduce,I=i.foldMap,S=i.reduceRight,T=function(n){return new Set([n])};function R(n){var t=A(n);return function(n){return function(e){if(t(n)(e))return e;var r=new Set(e);return r.add(n),r}}}var x=function(n){return function(t){return function(e){return l(function(e){return!n.equals(t,e)})(e)}}},O=function(n){var t=A(n),e=x(n),r=R(n);return function(n){return function(i){return(t(n,i)?e:r)(n)(i)}}},w=function(n){return function(t){for(var e=t.length,r=new Set,i=A(n),u=0;u<e;u++){var o=t[u];i(o,r)||r.add(o)}return r}},M=function(n){return k(n)(r.identity)};function E(n,t){return function(e){var r=A(n),i=A(t),o=new Set,a=new Set;return e.forEach(function(n){switch(n._tag){case"Left":r(n.left,o)||o.add(n.left);break;case"Right":i(n.right,a)||a.add(n.right)}}),(0,u.separated)(o,a)}}function k(n){var t=A(n);return function(n){return function(e){var r=new Set;return e.forEach(function(e){var i=n(e);"Some"!==i._tag||t(i.value,r)||r.add(i.value)}),r}}}var W=new Set,C=function(n){return 0===n.size},D=function(n){return n.size},P=i.some,F=i.every,U=i.isSubset,A=i.elem,L=function(n){return function(t){var e=[];return t.forEach(function(n){return e.push(n)}),e.sort(n.compare)}},N=i.isSubset},76511:function(n,t,e){e.r(t),e.d(t,{filterE:function(){return o},wiltDefault:function(){return i},witherDefault:function(){return u}});var r=e(97963);function i(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.separate)}}}function u(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.compact)}}}function o(n){return function(t){var e=n.wither(t);return function(n){return function(i){return e(i,function(e){return t.map(n(e),function(n){return n?r.G(e):r.YP})})}}}}},28957:function(n,t,e){function r(n,t){return function(e){return e?t.of(void 0):n.zero()}}e.r(t),e.d(t,{guard:function(){return r}})},42275:function(n,t,e){e.r(t),e.d(t,{SK:function(){return M},absurd:function(){return T},apply:function(){return f},constFalse:function(){return m},constNull:function(){return h},constTrue:function(){return s},constUndefined:function(){return v},constVoid:function(){return g},constant:function(){return d},decrement:function(){return S},dual:function(){return W},flip:function(){return y},flow:function(){return _},getBooleanAlgebra:function(){return i},getEndomorphismMonoid:function(){return k},getMonoid:function(){return o},getRing:function(){return c},getSemigroup:function(){return u},getSemiring:function(){return a},hole:function(){return w},identity:function(){return l},increment:function(){return I},not:function(){return E},pipe:function(){return O},tuple:function(){return b},tupled:function(){return R},unsafeCoerce:function(){return p},untupled:function(){return x}});var r=function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},i=function(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}},u=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}},o=function(n){var t=u(n);return function(){return{concat:t().concat,empty:function(){return n.empty}}}},a=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}},c=function(n){var t=a(n);return{add:t.add,mul:t.mul,one:t.one,zero:t.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}},f=function(n){return function(t){return t(n)}};function l(n){return n}var p=l;function d(n){return function(){return n}}var s=d(!0),m=d(!1),h=d(null),v=d(void 0),g=v;function y(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}}function _(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return i(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(t(n.apply(this,arguments)))))))))}}}function b(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n}function I(n){return n+1}function S(n){return n-1}function T(n){throw Error("Called `absurd` function which should be uncallable")}function R(n){return function(t){return n.apply(void 0,t)}}function x(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}}function O(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return i(r(e(t(n))));case 6:return u(i(r(e(t(n)))));case 7:return o(u(i(r(e(t(n))))));case 8:return a(o(u(i(r(e(t(n)))))));case 9:return c(a(o(u(i(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}}var w=T,M=function(n,t){return t};function E(n){return function(t){return!n(t)}}var k=function(){return{concat:function(n,t){return _(n,t)},empty:l}},W=function(n,t){var e="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return e(arguments)?t.apply(this,n):function(e){return t.apply(void 0,r([e],n,!1))}}}},9554:function(n,t,e){e.r(t),e.d(t,{alt:function(){return r},alternative:function(){return i},applicative:function(){return nY},apply:function(){return nN},array:function(){return nK},bifunctor:function(){return u},boolean:function(){return o},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 m},chain:function(){return tu},chainRec:function(){return to},choice:function(){return h},comonad:function(){return v},compactable:function(){return g},console:function(){return y},const:function(){return tI},contravariant:function(){return _},date:function(){return b},distributiveLattice:function(){return f},either:function(){return tk},eitherT:function(){return I},endomorphism:function(){return t7},eq:function(){return t3},extend:function(){return S},field:function(){return T},filterable:function(){return R},filterableWithIndex:function(){return x},foldable:function(){return O},foldableWithIndex:function(){return w},fromEither:function(){return e_},fromIO:function(){return M},fromReader:function(){return k},fromState:function(){return C},fromTask:function(){return D},fromThese:function(){return P},function:function(){return n2},functor:function(){return tp},functorWithIndex:function(){return F},group:function(){return U},heytingAlgebra:function(){return A},hkt:function(){return L},identity:function(){return N},invariant:function(){return j},io:function(){return q},ioEither:function(){return Y},ioOption:function(){return B},ioRef:function(){return G},joinSemilattice:function(){return H},json:function(){return V},lattice:function(){return z},magma:function(){return fT},map:function(){return fR},meetSemilattice:function(){return X},monad:function(){return J},monadIO:function(){return $},monadTask:function(){return Z},monadThrow:function(){return Q},monoid:function(){return fx},naturalTransformation:function(){return nn},nonEmptyArray:function(){return fO},number:function(){return tS},option:function(){return td},optionT:function(){return K},ord:function(){return n6},ordering:function(){return nt},pipeable:function(){return fL},pointed:function(){return ne},predicate:function(){return t6},profunctor:function(){return nr},random:function(){return ni},reader:function(){return E},readerEither:function(){return nu},readerIO:function(){return na},readerT:function(){return no},readerTask:function(){return nf},readerTaskEither:function(){return np},readonlyArray:function(){return bR},readonlyMap:function(){return bx},readonlyNonEmptyArray:function(){return bO},readonlyRecord:function(){return bw},readonlySet:function(){return bM},readonlyTuple:function(){return nd},record:function(){return ns},refinement:function(){return nm},ring:function(){return nh},semigroup:function(){return Io},semigroupoid:function(){return nv},semiring:function(){return ng},separated:function(){return ts},set:function(){return S2},show:function(){return ny},state:function(){return W},stateReaderTaskEither:function(){return nb},stateT:function(){return n_},store:function(){return nI},string:function(){return Ia},strong:function(){return nS},struct:function(){return nT},task:function(){return nc},taskEither:function(){return nl},taskOption:function(){return nR},taskThese:function(){return nw},these:function(){return nx},theseT:function(){return nO},traced:function(){return nM},traversable:function(){return nE},traversableWithIndex:function(){return nk},tree:function(){return nW},tuple:function(){return nC},unfoldable:function(){return nD},validationT:function(){return nP},void:function(){return nF},witherable:function(){return Ic},writer:function(){return nU},writerT:function(){return nA},zero:function(){return a7}});var r={};e.r(r),e.d(r,{altAll:function(){return nL}});var i={};e.r(i),e.d(i,{altAll:function(){return nj},getAlternativeMonoid:function(){return nq}});var u={};e.r(u);var o={};e.r(o),e.d(o,{BooleanAlgebra:function(){return nJ},Eq:function(){return nX},MonoidAll:function(){return nQ},MonoidAny:function(){return n0},Ord:function(){return n1},SemigroupAll:function(){return n$},SemigroupAny:function(){return nZ},Show:function(){return n8},fold:function(){return nz},foldW:function(){return nH},isBoolean:function(){return nB},match:function(){return nV},matchW:function(){return nG}});var a={};e.r(a),e.d(a,{booleanAlgebraBoolean:function(){return n5},booleanAlgebraVoid:function(){return n3},getDualBooleanAlgebra:function(){return n4},getFunctionBooleanAlgebra:function(){return n9},reverse:function(){return n7}});var c={};e.r(c),e.d(c,{boundedNumber:function(){return te},clamp:function(){return tn},reverse:function(){return tt}});var f={};e.r(f),e.d(f,{getMinMaxDistributiveLattice:function(){return tr}});var l={};e.r(l),e.d(l,{getMinMaxBoundedDistributiveLattice:function(){return ti}});var p={};e.r(p);var d={};e.r(d);var s={};e.r(s);var m={};e.r(m);var h={};e.r(h),e.d(h,{fanIn:function(){return tc},fanin:function(){return tl},split:function(){return ta},splitChoice:function(){return tf}});var v={};e.r(v);var g={};e.r(g),e.d(g,{compact:function(){return tm},getCompactableComposition:function(){return tv},separate:function(){return th}});var y={};e.r(y),e.d(y,{error:function(){return t_},info:function(){return tb},log:function(){return tg},warn:function(){return ty}});var _={};e.r(_);var b={};e.r(b),e.d(b,{Eq:function(){return tT},Ord:function(){return tw},create:function(){return tM},eqDate:function(){return tR},eqMonth:function(){return tx},eqYear:function(){return tO},now:function(){return tE}});var I={};e.r(I),e.d(I,{alt:function(){return tY},altValidation:function(){return tV},ap:function(){return tN},bimap:function(){return tK},chain:function(){return tj},chainNullableK:function(){return tA},flatMap:function(){return tq},fromNullable:function(){return tF},fromNullableK:function(){return tU},getEitherM:function(){return t2},getOrElse:function(){return tJ},left:function(){return tC},leftF:function(){return tP},map:function(){return tL},mapBoth:function(){return tB},mapError:function(){return tH},mapLeft:function(){return tG},match:function(){return tz},matchE:function(){return tX},orElse:function(){return t$},orElseFirst:function(){return tZ},orLeft:function(){return t0},right:function(){return tW},rightF:function(){return tD},swap:function(){return t1},tapError:function(){return tQ},toUnion:function(){return t8}});var S={};e.r(S);var T={};e.r(T),e.d(T,{fieldNumber:function(){return t9},gcd:function(){return t4},lcm:function(){return t5}});var R={};e.r(R),e.d(R,{filter:function(){return en},filterMap:function(){return et},getFilterableComposition:function(){return ei},partition:function(){return ee},partitionMap:function(){return er}});var x={};e.r(x);var O={};e.r(O),e.d(O,{foldM:function(){return ed},foldMap:function(){return eo},getFoldableComposition:function(){return em},intercalate:function(){return ef},reduce:function(){return eu},reduceM:function(){return ec},reduceRight:function(){return ea},toArray:function(){return es},toReadonlyArray:function(){return el},traverse_:function(){return ep}});var w={};e.r(w),e.d(w,{foldMapWithIndex:function(){return ev},getFoldableWithIndexComposition:function(){return ey},reduceRightWithIndex:function(){return eg},reduceWithIndex:function(){return eh}});var M={};e.r(M),e.d(M,{chainFirstIOK:function(){return eS},chainIOK:function(){return eI},fromIOK:function(){return eb},tapIO:function(){return eT}});var E={};e.r(E),e.d(E,{ApT:function(){return rc},Applicative:function(){return e2},Apply:function(){return eZ},Category:function(){return e9},Chain:function(){return e7},Choice:function(){return rn},Do:function(){return ru},Functor:function(){return eX},Monad:function(){return e3},Pointed:function(){return e$},Profunctor:function(){return e5},Strong:function(){return e6},URI:function(){return ez},ap:function(){return eU},apFirst:function(){return eQ},apFirstW:function(){return e0},apS:function(){return ro},apSW:function(){return ra},apSecond:function(){return e1},apSecondW:function(){return e8},apW:function(){return eF},ask:function(){return ex},asks:function(){return eO},asksReader:function(){return eE},asksReaderW:function(){return eM},bind:function(){return rr},bindTo:function(){return rt},bindW:function(){return ri},chain:function(){return rh},chainFirst:function(){return rv},chainFirstW:function(){return rg},chainW:function(){return rm},compose:function(){return eq},first:function(){return eB},flap:function(){return eJ},flatMap:function(){return eL},flatten:function(){return ej},flattenW:function(){return eN},getMonoid:function(){return rb},getSemigroup:function(){return r_},id:function(){return eK},left:function(){return eH},let:function(){return re},local:function(){return ew},map:function(){return eP},of:function(){return eA},promap:function(){return eY},reader:function(){return ry},right:function(){return eV},second:function(){return eG},sequenceArray:function(){return rs},tap:function(){return e4},traverseArray:function(){return rd},traverseArrayWithIndex:function(){return rp},traverseReadonlyArrayWithIndex:function(){return rl},traverseReadonlyNonEmptyArrayWithIndex:function(){return rf}});var k={};e.r(k),e.d(k,{ask:function(){return rI},asks:function(){return rS},chainFirstReaderK:function(){return rx},chainReaderK:function(){return rR},fromReaderK:function(){return rT},tapReader:function(){return rO}});var W={};e.r(W),e.d(W,{Applicative:function(){return rG},Apply:function(){return rY},Chain:function(){return rH},FromState:function(){return rX},Functor:function(){return rN},Monad:function(){return rV},Pointed:function(){return rq},URI:function(){return rL},ap:function(){return rP},apFirst:function(){return rK},apS:function(){return r1},apSecond:function(){return rB},bind:function(){return r0},bindTo:function(){return rZ},chain:function(){return r5},chainFirst:function(){return r9},evalState:function(){return r6},evaluate:function(){return rJ},execState:function(){return it},execute:function(){return r$},flap:function(){return rj},flatMap:function(){return rU},flatten:function(){return rA},get:function(){return rw},gets:function(){return rk},let:function(){return rQ},map:function(){return rD},modify:function(){return rE},of:function(){return rF},put:function(){return rM},sequenceArray:function(){return r4},state:function(){return ie},tap:function(){return rz},traverseArray:function(){return r3},traverseArrayWithIndex:function(){return r7},traverseReadonlyArrayWithIndex:function(){return r2},traverseReadonlyNonEmptyArrayWithIndex:function(){return r8}});var C={};e.r(C),e.d(C,{chainStateK:function(){return ic},fromStateK:function(){return ia},get:function(){return ir},gets:function(){return io},modify:function(){return iu},put:function(){return ii}});var D={};e.r(D),e.d(D,{chainFirstTaskK:function(){return id},chainTaskK:function(){return ip},fromTaskK:function(){return il},tapTask:function(){return is}});var P={};e.r(P),e.d(P,{fromTheseK:function(){return im}});var F={};e.r(F),e.d(F,{getFunctorWithIndexComposition:function(){return iv},mapWithIndex:function(){return ih}});var U={};e.r(U);var A={};e.r(A);var L={};e.r(L);var N={};e.r(N),e.d(N,{Alt:function(){return i8},Applicative:function(){return iJ},Apply:function(){return iV},Chain:function(){return i$},ChainRec:function(){return i7},Comonad:function(){return i2},Do:function(){return i3},Foldable:function(){return i0},Functor:function(){return iB},Monad:function(){return iZ},Pointed:function(){return iH},Traversable:function(){return i1},URI:function(){return iq},alt:function(){return ij},altW:function(){return iN},ap:function(){return iw},apFirst:function(){return iz},apS:function(){return i6},apSecond:function(){return iX},bind:function(){return i9},bindTo:function(){return i4},chain:function(){return un},chainFirst:function(){return iQ},duplicate:function(){return iC},extend:function(){return ik},extract:function(){return iW},flap:function(){return iG},flatMap:function(){return iE},flatten:function(){return iD},foldMap:function(){return iF},getEq:function(){return iK},getShow:function(){return iY},identity:function(){return ut},let:function(){return i5},map:function(){return iO},of:function(){return iM},reduce:function(){return iP},reduceRight:function(){return iU},sequence:function(){return iL},traverse:function(){return iA}});var j={};e.r(j);var q={};e.r(q),e.d(q,{ApT:function(){return uC},Applicative:function(){return u_},Apply:function(){return uv},Chain:function(){return ub},ChainRec:function(){return ux},Do:function(){return uw},FromIO:function(){return uO},Functor:function(){return up},Monad:function(){return uI},MonadIO:function(){return uR},Pointed:function(){return uh},URI:function(){return ul},ap:function(){return uo},apFirst:function(){return ug},apS:function(){return uW},apSecond:function(){return uy},as:function(){return ud},asUnit:function(){return us},bind:function(){return uk},bindTo:function(){return uM},chain:function(){return uL},chainFirst:function(){return uN},flap:function(){return um},flatMap:function(){return uc},flatten:function(){return uf},fromIO:function(){return uT},getMonoid:function(){return uY},getSemigroup:function(){return uq},io:function(){return uj},let:function(){return uE},map:function(){return uu},of:function(){return ua},sequenceArray:function(){return uA},tap:function(){return uS},traverseArray:function(){return uU},traverseArrayWithIndex:function(){return uF},traverseReadonlyArrayWithIndex:function(){return uP},traverseReadonlyNonEmptyArrayWithIndex:function(){return uD}});var Y={};e.r(Y),e.d(Y,{Alt:function(){return oG},ApT:function(){return av},Applicative:function(){return aw},ApplicativePar:function(){return oU},ApplicativeSeq:function(){return oA},ApplyPar:function(){return oW},Bifunctor:function(){return ok},Chain:function(){return oL},Do:function(){return af},FromEither:function(){return oj},FromIO:function(){return oq},Functor:function(){return ox},Monad:function(){return oN},MonadIO:function(){return oH},MonadThrow:function(){return oV},Pointed:function(){return oE},URI:function(){return ob},alt:function(){return og},altW:function(){return oy},ap:function(){return op},apFirst:function(){return oC},apFirstW:function(){return oD},apS:function(){return am},apSW:function(){return ah},apSecond:function(){return oP},apSecondW:function(){return oF},apW:function(){return od},as:function(){return oO},asUnit:function(){return ow},bimap:function(){return oc},bind:function(){return ad},bindTo:function(){return al},bindW:function(){return as},bracket:function(){return aa},bracketW:function(){return ac},chain:function(){return aM},chainEitherK:function(){return o6},chainEitherKW:function(){return an},chainFirst:function(){return ak},chainFirstEitherK:function(){return at},chainFirstEitherKW:function(){return ae},chainFirstIOK:function(){return oX},chainFirstW:function(){return aW},chainIOK:function(){return o9},chainOptionK:function(){return oZ},chainOptionKW:function(){return oQ},chainW:function(){return aE},filterOrElse:function(){return ai},filterOrElseW:function(){return au},flap:function(){return oM},flatMap:function(){return om},flatMapEither:function(){return o4},flatMapIO:function(){return o5},flatMapNullable:function(){return o7},flatMapOption:function(){return o3},flatten:function(){return ov},flattenW:function(){return oh},fold:function(){return uZ},foldW:function(){return u0},fromEither:function(){return uV},fromEitherK:function(){return ao},fromIO:function(){return uz},fromIOK:function(){return oz},fromOption:function(){return oJ},fromOptionK:function(){return o$},fromPredicate:function(){return ar},getAltIOValidation:function(){return oS},getApplicativeIOValidation:function(){return oI},getApplyMonoid:function(){return aU},getApplySemigroup:function(){return aF},getCompactable:function(){return oT},getFilterable:function(){return oR},getIOValidation:function(){return aL},getOrElse:function(){return u1},getOrElseW:function(){return u8},getSemigroup:function(){return aA},ioEither:function(){return aP},left:function(){return uK},leftIO:function(){return uH},let:function(){return ap},liftNullable:function(){return o1},liftOption:function(){return o8},map:function(){return oo},mapBoth:function(){return oa},mapError:function(){return of},mapLeft:function(){return ol},match:function(){return uX},matchE:function(){return u$},matchEW:function(){return uQ},matchW:function(){return uJ},of:function(){return os},orElse:function(){return u4},orElseFirst:function(){return aC},orElseFirstIOK:function(){return u6},orElseFirstW:function(){return aD},orElseW:function(){return u5},orLeft:function(){return on},right:function(){return uB},rightIO:function(){return uG},sequenceArray:function(){return aT},sequenceSeqArray:function(){return aO},swap:function(){return ot},tap:function(){return oY},tapEither:function(){return oK},tapError:function(){return u9},tapIO:function(){return oB},throwError:function(){return o_},toUnion:function(){return u3},traverseArray:function(){return aS},traverseArrayWithIndex:function(){return aI},traverseReadonlyArrayWithIndex:function(){return ay},traverseReadonlyArrayWithIndexSeq:function(){return ab},traverseReadonlyNonEmptyArrayWithIndex:function(){return ag},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return a_},traverseSeqArray:function(){return ax},traverseSeqArrayWithIndex:function(){return aR},tryCatch:function(){return u2},tryCatchK:function(){return u7}});var K={};e.r(K),e.d(K,{alt:function(){return a8},ap:function(){return aQ},chain:function(){return a0},chainNullableK:function(){return aB},chainOptionK:function(){return aH},flatMap:function(){return a1},fromEither:function(){return az},fromF:function(){return aq},fromNullable:function(){return aY},fromNullableK:function(){return aK},fromOptionK:function(){return aG},fromPredicate:function(){return aV},getOptionM:function(){return a2},getOrElse:function(){return a$},map:function(){return aZ},match:function(){return aX},matchE:function(){return aJ},some:function(){return aN},zero:function(){return aj}});var B={};e.r(B),e.d(B,{Alt:function(){return cZ},Alternative:function(){return c1},ApT:function(){return fm},Applicative:function(){return cG},Apply:function(){return cY},Chain:function(){return cH},Compactable:function(){return c7},Do:function(){return ff},Filterable:function(){return c3},FromEither:function(){return cV},FromIO:function(){return cz},Functor:function(){return cA},Monad:function(){return c8},MonadIO:function(){return c2},Pointed:function(){return cq},URI:function(){return cU},Zero:function(){return cQ},alt:function(){return c_},altW:function(){return cb},ap:function(){return ch},apFirst:function(){return cK},apS:function(){return fs},apSecond:function(){return cB},as:function(){return cL},asUnit:function(){return cN},bind:function(){return fd},bindTo:function(){return fl},chain:function(){return fg},chainEitherK:function(){return fo},chainFirst:function(){return fy},chainFirstEitherK:function(){return fa},chainFirstIOK:function(){return fi},chainIOK:function(){return fr},chainNullableK:function(){return cd},chainOptionK:function(){return fc},compact:function(){return cT},filter:function(){return cx},filterMap:function(){return cO},flap:function(){return cj},flatMap:function(){return cg},flatMapEither:function(){return fn},flatMapIO:function(){return c9},flatMapNullable:function(){return ft},flatMapOption:function(){return c6},flatten:function(){return cy},fold:function(){return ci},fromEither:function(){return a9},fromEitherK:function(){return fu},fromIO:function(){return a6},fromIOEither:function(){return cn},fromIOK:function(){return fe},fromNullable:function(){return cl},fromNullableK:function(){return cp},fromOption:function(){return a5},fromOptionK:function(){return cs},fromPredicate:function(){return a4},getOrElse:function(){return co},getOrElseW:function(){return ca},guard:function(){return c0},let:function(){return fp},map:function(){return cm},match:function(){return ct},matchE:function(){return cr},matchEW:function(){return cu},matchW:function(){return ce},none:function(){return cS},of:function(){return cv},partition:function(){return cw},partitionMap:function(){return cM},separate:function(){return cR},some:function(){return a3},tap:function(){return cX},tapEither:function(){return cJ},tapIO:function(){return c$},toNullable:function(){return cf},toUndefined:function(){return cc},traverseReadonlyArrayWithIndex:function(){return fv},traverseReadonlyNonEmptyArrayWithIndex:function(){return fh},zero:function(){return cI}});var G={};e.r(G),e.d(G,{IORef:function(){return f_},newIORef:function(){return fb}});var H={};e.r(H);var V={};e.r(V),e.d(V,{parse:function(){return fI},stringify:function(){return fS}});var z={};e.r(z);var X={};e.r(X);var J={};e.r(J);var $={};e.r($);var Z={};e.r(Z);var Q={};e.r(Q);var nn={};e.r(nn);var nt={};e.r(nt),e.d(nt,{Eq:function(){return fk},Monoid:function(){return fC},Semigroup:function(){return fW},eqOrdering:function(){return fU},invert:function(){return fP},match:function(){return fM},matchW:function(){return fw},monoidOrdering:function(){return fA},reverse:function(){return fE},semigroupOrdering:function(){return fF},sign:function(){return fD}});var ne={};e.r(ne);var nr={};e.r(nr);var ni={};e.r(ni),e.d(ni,{random:function(){return fN},randomBool:function(){return fY},randomElem:function(){return fK},randomInt:function(){return fj},randomRange:function(){return fq}});var nu={};e.r(nu),e.d(nu,{Alt:function(){return lB},ApT:function(){return pg},Applicative:function(){return lF},Apply:function(){return lk},Bifunctor:function(){return lK},Chain:function(){return lU},Do:function(){return pl},FromEither:function(){return lL},FromReader:function(){return lN},Functor:function(){return lx},Monad:function(){return lA},MonadThrow:function(){return lJ},Pointed:function(){return lE},URI:function(){return lb},alt:function(){return lg},altW:function(){return ly},ap:function(){return lp},apFirst:function(){return lW},apFirstW:function(){return lC},apS:function(){return ph},apSW:function(){return pv},apSecond:function(){return lD},apSecondW:function(){return lP},apW:function(){return ld},as:function(){return lO},asUnit:function(){return lw},ask:function(){return lG},asks:function(){return lH},asksReaderEither:function(){return f5},asksReaderEitherW:function(){return f4},bimap:function(){return lc},bind:function(){return ps},bindTo:function(){return pp},bindW:function(){return pm},chain:function(){return pT},chainEitherK:function(){return pn},chainEitherKW:function(){return pt},chainFirst:function(){return px},chainFirstEitherK:function(){return pe},chainFirstEitherKW:function(){return pr},chainFirstReaderK:function(){return lz},chainFirstReaderKW:function(){return lX},chainFirstW:function(){return pO},chainOptionK:function(){return lQ},chainOptionKW:function(){return l0},chainReaderK:function(){return pi},chainReaderKW:function(){return pu},chainW:function(){return pR},filterOrElse:function(){return pa},filterOrElseW:function(){return pc},flap:function(){return lM},flatMap:function(){return lm},flatMapEither:function(){return l9},flatMapNullable:function(){return l4},flatMapOption:function(){return l5},flatMapReader:function(){return l6},flatten:function(){return lv},flattenW:function(){return lh},fold:function(){return fQ},foldW:function(){return f1},fromEither:function(){return fz},fromEitherK:function(){return pf},fromOption:function(){return l$},fromOptionK:function(){return lZ},fromPredicate:function(){return po},fromReader:function(){return fX},fromReaderK:function(){return lV},getAltReaderValidation:function(){return lR},getApplicativeReaderValidation:function(){return lT},getApplyMonoid:function(){return pW},getApplySemigroup:function(){return pk},getCompactable:function(){return lI},getFilterable:function(){return lS},getOrElse:function(){return f8},getOrElseW:function(){return f2},getReaderValidation:function(){return pD},getSemigroup:function(){return pC},left:function(){return fB},leftReader:function(){return fV},let:function(){return pd},liftNullable:function(){return l2},liftOption:function(){return l7},local:function(){return f3},map:function(){return lo},mapBoth:function(){return la},mapError:function(){return lf},mapLeft:function(){return ll},match:function(){return fJ},matchE:function(){return fZ},matchEW:function(){return f0},matchW:function(){return f$},of:function(){return ls},orElse:function(){return f9},orElseFirst:function(){return pw},orElseFirstW:function(){return pM},orElseW:function(){return f6},orLeft:function(){return lt},readerEither:function(){return pE},right:function(){return fG},rightReader:function(){return fH},sequenceArray:function(){return pS},swap:function(){return le},tap:function(){return lj},tapEither:function(){return lq},tapError:function(){return ln},tapReader:function(){return lY},throwError:function(){return l_},toUnion:function(){return f7},traverseArray:function(){return pI},traverseArrayWithIndex:function(){return pb},traverseReadonlyArrayWithIndex:function(){return p_},traverseReadonlyNonEmptyArrayWithIndex:function(){return py}});var no={};e.r(no),e.d(no,{ap:function(){return pU},chain:function(){return pA},flatMap:function(){return pL},fromNaturalTransformation:function(){return pj},fromReader:function(){return pN},getReaderM:function(){return pq},map:function(){return pF},of:function(){return pP}});var na={};e.r(na),e.d(na,{ApT:function(){return dW},Applicative:function(){return dt},Apply:function(){return p9},Chain:function(){return de},Do:function(){return dx},FromIO:function(){return du},FromReader:function(){return da},Functor:function(){return p2},Monad:function(){return dr},MonadIO:function(){return di},Pointed:function(){return p5},URI:function(){return p8},ap:function(){return pJ},apFirst:function(){return p6},apS:function(){return dE},apSW:function(){return dk},apSecond:function(){return dn},apW:function(){return p$},as:function(){return p7},asUnit:function(){return p3},ask:function(){return dy},asks:function(){return d_},asksReaderIO:function(){return pH},asksReaderIOW:function(){return pG},bind:function(){return dw},bindTo:function(){return dO},bindW:function(){return dM},chain:function(){return dA},chainFirst:function(){return dN},chainFirstIOK:function(){return dg},chainFirstReaderK:function(){return dT},chainFirstReaderKW:function(){return dR},chainFirstW:function(){return dj},chainIOK:function(){return dv},chainReaderK:function(){return dI},chainReaderKW:function(){return dS},chainW:function(){return dL},flap:function(){return p4},flatMap:function(){return pQ},flatMapIO:function(){return dl},flatMapReader:function(){return dp},flatten:function(){return p1},flattenW:function(){return p0},fromIO:function(){return pK},fromIOK:function(){return dh},fromReader:function(){return pY},fromReaderK:function(){return db},local:function(){return pB},map:function(){return pX},of:function(){return pZ},sequenceArray:function(){return dU},tap:function(){return dd},tapIO:function(){return ds},tapReader:function(){return dm},traverseArray:function(){return dF},traverseArrayWithIndex:function(){return dP},traverseReadonlyArrayWithIndex:function(){return dD},traverseReadonlyNonEmptyArrayWithIndex:function(){return dC}});var nc={};e.r(nc),e.d(nc,{ApT:function(){return sb},ApplicativePar:function(){return d5},ApplicativeSeq:function(){return d6},ApplyPar:function(){return d7},ApplySeq:function(){return d9},Chain:function(){return sn},Do:function(){return sh},FromIO:function(){return su},FromTask:function(){return ss},Functor:function(){return dQ},Monad:function(){return st},MonadIO:function(){return se},MonadTask:function(){return si},Pointed:function(){return d2},URI:function(){return d$},ap:function(){return dV},apFirst:function(){return d3},apS:function(){return s_},apSecond:function(){return d4},as:function(){return d0},asUnit:function(){return d1},bind:function(){return sy},bindTo:function(){return sv},chain:function(){return sW},chainFirst:function(){return sC},chainFirstIOK:function(){return sd},chainIOK:function(){return sp},delay:function(){return dY},flap:function(){return d8},flatMap:function(){return dX},flatMapIO:function(){return sa},flatten:function(){return dJ},fromIO:function(){return dq},fromIOK:function(){return sl},fromTask:function(){return sr},getMonoid:function(){return sU},getRaceMonoid:function(){return dZ},getSemigroup:function(){return sF},let:function(){return sg},map:function(){return dH},never:function(){return sm},of:function(){return dz},sequenceArray:function(){return sw},sequenceSeqArray:function(){return sk},tap:function(){return sc},tapIO:function(){return sf},task:function(){return sD},taskSeq:function(){return sP},traverseArray:function(){return sO},traverseArrayWithIndex:function(){return sx},traverseReadonlyArrayWithIndex:function(){return sS},traverseReadonlyArrayWithIndexSeq:function(){return sR},traverseReadonlyNonEmptyArrayWithIndex:function(){return sI},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return sT},traverseSeqArray:function(){return sE},traverseSeqArrayWithIndex:function(){return sM}});var nf={};e.r(nf),e.d(nf,{ApT:function(){return mG},ApplicativePar:function(){return s6},ApplicativeSeq:function(){return mt},ApplyPar:function(){return s4},ApplySeq:function(){return mn},Chain:function(){return me},Do:function(){return mL},FromIO:function(){return mo},FromReader:function(){return mc},FromTask:function(){return ma},Functor:function(){return s1},Monad:function(){return mr},MonadIO:function(){return mi},MonadTask:function(){return mu},Pointed:function(){return s3},URI:function(){return s0},ap:function(){return sz},apFirst:function(){return s5},apS:function(){return mK},apSW:function(){return mB},apSecond:function(){return s9},apW:function(){return sX},as:function(){return s8},asUnit:function(){return s2},ask:function(){return mT},asks:function(){return mR},asksReaderTask:function(){return sK},asksReaderTaskW:function(){return sY},bind:function(){return mq},bindTo:function(){return mN},bindW:function(){return mY},chain:function(){return m1},chainFirst:function(){return m2},chainFirstIOK:function(){return mS},chainFirstReaderIOK:function(){return mP},chainFirstReaderIOKW:function(){return mD},chainFirstReaderK:function(){return mM},chainFirstReaderKW:function(){return mE},chainFirstTaskK:function(){return mA},chainFirstW:function(){return m7},chainIOK:function(){return mI},chainReaderIOK:function(){return mC},chainReaderIOKW:function(){return mW},chainReaderK:function(){return mO},chainReaderKW:function(){return mw},chainTaskK:function(){return mU},chainW:function(){return m8},flap:function(){return s7},flatMap:function(){return s$},flatMapIO:function(){return mp},flatMapReader:function(){return ms},flatMapReaderIO:function(){return mm},flatMapTask:function(){return md},flatten:function(){return sQ},flattenW:function(){return sZ},fromIO:function(){return sN},fromIOK:function(){return mb},fromReader:function(){return sA},fromReaderIO:function(){return sj},fromReaderIOK:function(){return mk},fromReaderK:function(){return mx},fromTask:function(){return sL},fromTaskK:function(){return mF},getMonoid:function(){return m6},getSemigroup:function(){return m9},let:function(){return mj},local:function(){return sq},map:function(){return sV},of:function(){return sJ},readerTask:function(){return m4},readerTaskSeq:function(){return m5},run:function(){return hn},sequenceArray:function(){return mZ},sequenceSeqArray:function(){return m3},tap:function(){return mh},tapIO:function(){return mv},tapReader:function(){return mg},tapReaderIO:function(){return m_},tapTask:function(){return my},traverseArray:function(){return m$},traverseArrayWithIndex:function(){return mJ},traverseReadonlyArrayWithIndex:function(){return mV},traverseReadonlyArrayWithIndexSeq:function(){return mX},traverseReadonlyNonEmptyArrayWithIndex:function(){return mH},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return mz},traverseSeqArray:function(){return m0},traverseSeqArrayWithIndex:function(){return mQ}});var nl={};e.r(nl),e.d(nl,{Alt:function(){return vT},ApT:function(){return ge},ApplicativePar:function(){return va},ApplicativeSeq:function(){return vf},ApplyPar:function(){return ve},ApplySeq:function(){return vc},Bifunctor:function(){return vS},Chain:function(){return vl},Do:function(){return v3},FromEither:function(){return vh},FromIO:function(){return vv},FromTask:function(){return vg},Functor:function(){return h5},Monad:function(){return vp},MonadIO:function(){return vd},MonadTask:function(){return vs},MonadThrow:function(){return vm},Pointed:function(){return vt},URI:function(){return h8},alt:function(){return hZ},altW:function(){return hQ},ap:function(){return hV},apFirst:function(){return vr},apFirstW:function(){return vi},apS:function(){return gn},apSW:function(){return gt},apSecond:function(){return vu},apSecondW:function(){return vo},apW:function(){return hz},as:function(){return h9},asUnit:function(){return h6},bimap:function(){return hB},bind:function(){return v9},bindTo:function(){return v4},bindW:function(){return v6},bracket:function(){return v2},bracketW:function(){return v7},chain:function(){return gs},chainEitherK:function(){return vj},chainEitherKW:function(){return vq},chainFirst:function(){return gh},chainFirstEitherK:function(){return vY},chainFirstEitherKW:function(){return vK},chainFirstIOK:function(){return vJ},chainFirstTaskK:function(){return vQ},chainFirstW:function(){return gv},chainIOEitherK:function(){return v1},chainIOEitherKW:function(){return v0},chainIOK:function(){return vX},chainNullableK:function(){return hO},chainOptionK:function(){return vO},chainOptionKW:function(){return vw},chainTaskK:function(){return vZ},chainTaskOptionK:function(){return hU},chainTaskOptionKW:function(){return hF},chainW:function(){return gm},filterOrElse:function(){return vG},filterOrElseW:function(){return vH},flap:function(){return vn},flatMap:function(){return hX},flatMapEither:function(){return vF},flatMapIO:function(){return vU},flatMapIOEither:function(){return vL},flatMapNullable:function(){return vD},flatMapOption:function(){return vP},flatMapTask:function(){return vA},flatMapTaskOption:function(){return vN},flatten:function(){return h$},flattenW:function(){return hJ},fold:function(){return hv},foldW:function(){return hy},fromEither:function(){return hl},fromEitherK:function(){return vV},fromIO:function(){return hc},fromIOEither:function(){return hp},fromIOEitherK:function(){return hA},fromIOK:function(){return vz},fromNullable:function(){return hR},fromNullableK:function(){return hx},fromOption:function(){return vR},fromOptionK:function(){return vx},fromPredicate:function(){return vB},fromTask:function(){return hf},fromTaskK:function(){return v$},fromTaskOption:function(){return hd},fromTaskOptionK:function(){return hP},getAltTaskValidation:function(){return h7},getApplicativeTaskValidation:function(){return h2},getApplyMonoid:function(){return gS},getApplySemigroup:function(){return gI},getCompactable:function(){return h3},getFilterable:function(){return h4},getOrElse:function(){return h_},getOrElseW:function(){return hb},getSemigroup:function(){return gT},getTaskValidation:function(){return gR},left:function(){return he},leftIO:function(){return ha},leftTask:function(){return hu},let:function(){return v5},liftNullable:function(){return vE},liftOption:function(){return vk},map:function(){return hY},mapBoth:function(){return hK},mapError:function(){return hG},mapLeft:function(){return hH},match:function(){return hs},matchE:function(){return hh},matchEW:function(){return hg},matchW:function(){return hm},of:function(){return h0},orElse:function(){return hw},orElseFirst:function(){return gg},orElseFirstIOK:function(){return hk},orElseFirstTaskK:function(){return hW},orElseFirstW:function(){return gy},orElseW:function(){return hM},orLeft:function(){return hC},right:function(){return hr},rightIO:function(){return ho},rightTask:function(){return hi},sequenceArray:function(){return gf},sequenceSeqArray:function(){return gd},swap:function(){return hD},tap:function(){return vy},tapEither:function(){return v_},tapError:function(){return hE},tapIO:function(){return vb},tapTask:function(){return vI},taskEither:function(){return g_},taskEitherSeq:function(){return gb},taskify:function(){return v8},throwError:function(){return h1},toUnion:function(){return hT},traverseArray:function(){return gc},traverseArrayWithIndex:function(){return ga},traverseReadonlyArrayWithIndex:function(){return gi},traverseReadonlyArrayWithIndexSeq:function(){return go},traverseReadonlyNonEmptyArrayWithIndex:function(){return gr},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return gu},traverseSeqArray:function(){return gp},traverseSeqArrayWithIndex:function(){return gl},tryCatch:function(){return hI},tryCatchK:function(){return hS}});var np={};e.r(np),e.d(np,{Alt:function(){return y7},ApT:function(){return bn},ApplicativePar:function(){return yU},ApplicativeSeq:function(){return yL},ApplyPar:function(){return yW},ApplySeq:function(){return yA},Bifunctor:function(){return y2},Chain:function(){return yN},Do:function(){return _2},FromEither:function(){return yB},FromIO:function(){return yG},FromReader:function(){return yV},FromTask:function(){return yH},Functor:function(){return yO},Monad:function(){return yj},MonadIO:function(){return yq},MonadTask:function(){return yY},MonadThrow:function(){return yK},Pointed:function(){return yk},URI:function(){return yI},alt:function(){return yy},altW:function(){return y_},ap:function(){return yd},apFirst:function(){return yC},apFirstW:function(){return yD},apS:function(){return _9},apSW:function(){return _6},apSecond:function(){return yP},apSecondW:function(){return yF},apW:function(){return ys},as:function(){return yw},asUnit:function(){return yM},ask:function(){return y3},asks:function(){return y4},asksReaderTaskEither:function(){return g7},asksReaderTaskEitherW:function(){return g2},bimap:function(){return yf},bind:function(){return _4},bindTo:function(){return _7},bindW:function(){return _5},bracket:function(){return _1},bracketW:function(){return _8},chain:function(){return bp},chainEitherK:function(){return _E},chainEitherKW:function(){return _k},chainFirst:function(){return bs},chainFirstEitherK:function(){return _W},chainFirstEitherKW:function(){return _C},chainFirstIOK:function(){return _K},chainFirstReaderEitherK:function(){return _t},chainFirstReaderEitherKW:function(){return _n},chainFirstReaderIOK:function(){return _f},chainFirstReaderIOKW:function(){return _c},chainFirstReaderK:function(){return y9},chainFirstReaderKW:function(){return y6},chainFirstReaderTaskK:function(){return _o},chainFirstReaderTaskKW:function(){return _u},chainFirstTaskEitherK:function(){return _r},chainFirstTaskEitherKW:function(){return _e},chainFirstTaskK:function(){return _H},chainFirstW:function(){return bm},chainIOEitherK:function(){return _Z},chainIOEitherKW:function(){return _$},chainIOK:function(){return _Y},chainNullableK:function(){return g1},chainOptionK:function(){return _d},chainOptionKW:function(){return _s},chainReaderEitherK:function(){return _0},chainReaderEitherKW:function(){return _Q},chainReaderIOK:function(){return _J},chainReaderIOKW:function(){return _X},chainReaderK:function(){return _V},chainReaderKW:function(){return _z},chainReaderTaskK:function(){return _U},chainReaderTaskKW:function(){return _F},chainTaskEitherK:function(){return _P},chainTaskEitherKW:function(){return _D},chainTaskK:function(){return _G},chainW:function(){return bd},filterOrElse:function(){return _L},filterOrElseW:function(){return _N},flap:function(){return yE},flatMap:function(){return yh},flatMapEither:function(){return _b},flatMapIO:function(){return _T},flatMapIOEither:function(){return _w},flatMapNullable:function(){return _y},flatMapOption:function(){return __},flatMapReader:function(){return _x},flatMapReaderEither:function(){return _M},flatMapReaderIO:function(){return _O},flatMapReaderTask:function(){return _S},flatMapTask:function(){return _R},flatMapTaskEither:function(){return _I},flatten:function(){return yg},flattenW:function(){return yv},fold:function(){return gV},foldW:function(){return gX},fromEither:function(){return gL},fromEitherK:function(){return _j},fromIO:function(){return gj},fromIOEither:function(){return gY},fromIOEitherK:function(){return yn},fromIOK:function(){return _q},fromNullable:function(){return gQ},fromNullableK:function(){return g0},fromOption:function(){return _l},fromOptionK:function(){return _p},fromPredicate:function(){return _A},fromReader:function(){return gN},fromReaderEither:function(){return gK},fromReaderEitherK:function(){return ye},fromReaderIOK:function(){return _a},fromReaderK:function(){return y5},fromReaderTaskK:function(){return _i},fromTask:function(){return gq},fromTaskEither:function(){return gx},fromTaskEitherK:function(){return yt},fromTaskK:function(){return _B},getAltReaderTaskValidation:function(){return yx},getApplicativeReaderTaskValidation:function(){return yR},getApplyMonoid:function(){return bb},getApplySemigroup:function(){return b_},getCompactable:function(){return yS},getFilterable:function(){return yT},getOrElse:function(){return gJ},getOrElseW:function(){return g$},getReaderTaskValidation:function(){return bS},getSemigroup:function(){return bI},left:function(){return gO},leftIO:function(){return gF},leftReader:function(){return gW},leftReaderIO:function(){return gA},leftReaderTask:function(){return gD},leftTask:function(){return gE},let:function(){return _3},liftNullable:function(){return _h},liftOption:function(){return _v},local:function(){return g8},map:function(){return ya},mapBoth:function(){return yc},mapError:function(){return yl},mapLeft:function(){return yp},match:function(){return gB},matchE:function(){return gH},matchEW:function(){return gz},matchW:function(){return gG},of:function(){return ym},orElse:function(){return g3},orElseFirst:function(){return bh},orElseFirstW:function(){return bv},orElseW:function(){return g4},orLeft:function(){return g9},readerTaskEither:function(){return bg},readerTaskEitherSeq:function(){return by},right:function(){return gw},rightIO:function(){return gP},rightReader:function(){return gk},rightReaderIO:function(){return gU},rightReaderTask:function(){return gC},rightTask:function(){return gM},run:function(){return bT},sequenceArray:function(){return ba},sequenceSeqArray:function(){return bl},swap:function(){return g6},tap:function(){return yz},tapEither:function(){return yX},tapError:function(){return g5},tapIO:function(){return yJ},tapReader:function(){return yZ},tapReaderEither:function(){return yQ},tapReaderIO:function(){return y8},tapReaderTask:function(){return y1},tapTask:function(){return y$},tapTaskEither:function(){return y0},throwError:function(){return yb},toUnion:function(){return gZ},traverseArray:function(){return bo},traverseArrayWithIndex:function(){return bu},traverseReadonlyArrayWithIndex:function(){return be},traverseReadonlyArrayWithIndexSeq:function(){return bi},traverseReadonlyNonEmptyArrayWithIndex:function(){return bt},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return br},traverseSeqArray:function(){return bf},traverseSeqArrayWithIndex:function(){return bc}});var nd={};e.r(nd),e.d(nd,{Bifunctor:function(){return In},Comonad:function(){return Ie},Foldable:function(){return Ir},Functor:function(){return b4},Semigroupoid:function(){return It},Traversable:function(){return Ii},URI:function(){return b3},bimap:function(){return bV},compose:function(){return bJ},duplicate:function(){return bQ},extend:function(){return b$},extract:function(){return bZ},flap:function(){return b5},foldMap:function(){return b1},fst:function(){return bE},getApplicative:function(){return bP},getApply:function(){return bC},getChain:function(){return bF},getChainRec:function(){return bA},getMonad:function(){return bU},map:function(){return b9},mapFst:function(){return bz},mapLeft:function(){return b6},mapSnd:function(){return bX},readonlyTuple:function(){return Iu},reduce:function(){return b0},reduceRight:function(){return b8},sequence:function(){return b7},snd:function(){return bk},swap:function(){return bW},traverse:function(){return b2}});var ns={};e.r(ns),e.d(ns,{Compactable:function(){return ST},Filterable:function(){return SR},FilterableWithIndex:function(){return Sx},Foldable:function(){return SD},FoldableWithIndex:function(){return SP},Functor:function(){return Sy},FunctorWithIndex:function(){return Sb},Traversable:function(){return SF},TraversableWithIndex:function(){return SU},URI:function(){return Sm},Witherable:function(){return SN},collect:function(){return Im},compact:function(){return Sd},deleteAt:function(){return I_},difference:function(){return IX},elem:function(){return IH},empty:function(){return Sj},every:function(){return IB},filter:function(){return Su},filterMap:function(){return So},filterMapWithIndex:function(){return IL},filterWithIndex:function(){return IN},flap:function(){return S_},foldMap:function(){return Sl},foldMapWithIndex:function(){return IM},fromEntries:function(){return IY},fromFoldable:function(){return Ij},fromFoldableMap:function(){return IK},getDifferenceMagma:function(){return SC},getEq:function(){return Sv},getFoldable:function(){return SI},getFoldableWithIndex:function(){return SS},getIntersectionSemigroup:function(){return SW},getMonoid:function(){return Sg},getShow:function(){return Sh},getTraversable:function(){return SO},getTraversableWithIndex:function(){return Sw},getUnionMonoid:function(){return Sk},getUnionSemigroup:function(){return SE},getWitherable:function(){return SM},has:function(){return Iy},hasOwnProperty:function(){return SY},insertAt:function(){return Sq},intersection:function(){return Iz},isEmpty:function(){return Ip},isSubrecord:function(){return IT},keys:function(){return Is},lookup:function(){return IR},map:function(){return IO},mapWithIndex:function(){return Ix},modifyAt:function(){return II},partition:function(){return Sa},partitionMap:function(){return Sc},partitionMapWithIndex:function(){return IU},partitionWithIndex:function(){return IA},pop:function(){return IS},record:function(){return SK},reduce:function(){return Sf},reduceRight:function(){return Sp},reduceRightWithIndex:function(){return IE},reduceWithIndex:function(){return Iw},separate:function(){return Ss},sequence:function(){return ID},singleton:function(){return Ik},size:function(){return Il},some:function(){return IG},toArray:function(){return Ih},toEntries:function(){return Iq},toUnfoldable:function(){return Iv},traverse:function(){return IC},traverseWithIndex:function(){return IW},union:function(){return IV},updateAt:function(){return Ib},upsertAt:function(){return Ig},wilt:function(){return IF},wither:function(){return IP}});var nm={};e.r(nm),e.d(nm,{and:function(){return SX},compose:function(){return S$},fromEitherK:function(){return SG},fromOptionK:function(){return SB},id:function(){return SH},not:function(){return SV},or:function(){return Sz},zero:function(){return SJ}});var nh={};e.r(nh),e.d(nh,{getFunctionRing:function(){return S1},getTupleRing:function(){return S0},negate:function(){return SQ},tuple:function(){return SZ}});var nv={};e.r(nv);var ng={};e.r(ng),e.d(ng,{getFunctionSemiring:function(){return S8}});var ny={};e.r(ny),e.d(ny,{getStructShow:function(){return S5},getTupleShow:function(){return S4},showBoolean:function(){return S9},showNumber:function(){return Tn},showString:function(){return S6},struct:function(){return S7},tuple:function(){return S3}});var n_={};e.r(n_),e.d(n_,{ap:function(){return Tr},chain:function(){return Ti},evaluate:function(){return Tc},execute:function(){return Tf},flatMap:function(){return Tu},fromF:function(){return Ta},fromState:function(){return To},getStateM:function(){return Tl},map:function(){return Te},of:function(){return Tt}});var nb={};e.r(nb),e.d(nb,{Alt:function(){return RU},Applicative:function(){return Rs},Apply:function(){return Rc},Bifunctor:function(){return RF},Chain:function(){return Rm},FromEither:function(){return RO},FromIO:function(){return Rw},FromReader:function(){return RE},FromState:function(){return Rh},FromTask:function(){return RM},Functor:function(){return Rr},Monad:function(){return RS},MonadIO:function(){return RT},MonadTask:function(){return RR},MonadThrow:function(){return Rx},Pointed:function(){return Ra},URI:function(){return Re},alt:function(){return Rn},altW:function(){return T6},ap:function(){return TH},apFirst:function(){return Rf},apFirstW:function(){return Rl},apS:function(){return xc},apSW:function(){return xf},apSecond:function(){return Rp},apSecondW:function(){return Rd},apW:function(){return TV},as:function(){return Ri},asUnit:function(){return Ru},ask:function(){return RA},asks:function(){return RL},asksStateReaderTaskEither:function(){return TC},asksStateReaderTaskEitherW:function(){return TW},bimap:function(){return TB},bind:function(){return xo},bindTo:function(){return xi},bindW:function(){return xa},chain:function(){return xh},chainEitherK:function(){return Rz},chainEitherKW:function(){return RX},chainFirst:function(){return xg},chainFirstEitherK:function(){return RJ},chainFirstEitherKW:function(){return R$},chainFirstIOK:function(){return R7},chainFirstReaderK:function(){return RY},chainFirstReaderKW:function(){return RK},chainFirstTaskK:function(){return xt},chainFirstW:function(){return xy},chainIOEitherK:function(){return R9},chainIOEitherKW:function(){return R5},chainIOK:function(){return R2},chainOptionK:function(){return RH},chainOptionKW:function(){return RV},chainReaderK:function(){return Rj},chainReaderKW:function(){return Rq},chainReaderTaskEitherK:function(){return TA},chainReaderTaskEitherKW:function(){return TU},chainStateK:function(){return RI},chainTaskEitherK:function(){return R4},chainTaskEitherKW:function(){return R3},chainTaskK:function(){return xn},chainW:function(){return xv},evalState:function(){return xI},evaluate:function(){return xe},execState:function(){return xS},execute:function(){return xr},filterOrElse:function(){return RQ},filterOrElseW:function(){return R0},flap:function(){return Ro},flatMap:function(){return TJ},flatMapEither:function(){return T2},flatMapIO:function(){return TQ},flatMapIOEither:function(){return T8},flatMapOption:function(){return T7},flatMapReader:function(){return T1},flatMapReaderTaskEither:function(){return T3},flatMapState:function(){return T4},flatMapTask:function(){return T0},flatMapTaskEither:function(){return TZ},flatten:function(){return T9},flattenW:function(){return T5},fromEither:function(){return TI},fromEitherK:function(){return R1},fromIO:function(){return TT},fromIOEither:function(){return Tw},fromIOEitherK:function(){return TD},fromIOK:function(){return R8},fromOption:function(){return RB},fromOptionK:function(){return RG},fromPredicate:function(){return RZ},fromReader:function(){return TS},fromReaderEither:function(){return TM},fromReaderK:function(){return RN},fromReaderTaskEither:function(){return TE},fromReaderTaskEitherK:function(){return TF},fromState:function(){return Tx},fromStateK:function(){return Rb},fromTask:function(){return TR},fromTaskEither:function(){return TO},fromTaskEitherK:function(){return TP},fromTaskK:function(){return R6},get:function(){return Rv},gets:function(){return R_},left:function(){return Tp},leftIO:function(){return Ty},leftReader:function(){return Tv},leftState:function(){return Tb},leftTask:function(){return Tm},let:function(){return xu},local:function(){return Tk},map:function(){return TK},mapLeft:function(){return TG},modify:function(){return Ry},of:function(){return Tz},put:function(){return Rg},right:function(){return Td},rightIO:function(){return Tg},rightReader:function(){return Th},rightState:function(){return T_},rightTask:function(){return Ts},run:function(){return xT},sequenceArray:function(){return xm},stateReaderTaskEither:function(){return x_},stateReaderTaskEitherSeq:function(){return xb},tap:function(){return Rk},tapEither:function(){return RW},tapIO:function(){return RC},tapReader:function(){return RP},tapTask:function(){return RD},throwError:function(){return Rt},traverseArray:function(){return xs},traverseArrayWithIndex:function(){return xd},traverseReadonlyArrayWithIndex:function(){return xp},traverseReadonlyNonEmptyArrayWithIndex:function(){return xl}});var nI={};e.r(nI),e.d(nI,{Comonad:function(){return xA},Functor:function(){return xF},URI:function(){return xP},duplicate:function(){return xC},experiment:function(){return xw},extend:function(){return xk},extract:function(){return xW},flap:function(){return xU},map:function(){return xD},peeks:function(){return xO},seek:function(){return xR},seeks:function(){return xx},store:function(){return xL}});var nS={};e.r(nS),e.d(nS,{fanOut:function(){return xj},fanout:function(){return xY},split:function(){return xN},splitStrong:function(){return xq}});var nT={};e.r(nT),e.d(nT,{evolve:function(){return xB},getAssignSemigroup:function(){return xK}});var nR={};e.r(nR),e.d(nR,{Alt:function(){return OJ},Alternative:function(){return OQ},ApT:function(){return wf},ApplicativePar:function(){return OL},ApplicativeSeq:function(){return Oq},ApplyPar:function(){return OF},ApplySeq:function(){return Oj},Chain:function(){return OY},Compactable:function(){return O2},Do:function(){return wi},Filterable:function(){return O7},FromEither:function(){return OK},FromIO:function(){return OB},FromTask:function(){return OG},Functor:function(){return Ok},Monad:function(){return O0},MonadIO:function(){return O1},MonadTask:function(){return O8},Pointed:function(){return OP},URI:function(){return OE},Zero:function(){return O$},alt:function(){return Od},altW:function(){return Os},ap:function(){return Ou},apFirst:function(){return OU},apS:function(){return wc},apSecond:function(){return OA},as:function(){return OW},asUnit:function(){return OC},bind:function(){return wa},bindTo:function(){return wu},chain:function(){return wb},chainEitherK:function(){return O6},chainFirst:function(){return wI},chainFirstEitherK:function(){return wn},chainFirstIOK:function(){return O5},chainFirstTaskK:function(){return wr},chainIOK:function(){return O4},chainNullableK:function(){return Ot},chainOptionK:function(){return Or},chainTaskK:function(){return we},compact:function(){return Ov},filter:function(){return Oy},filterMap:function(){return O_},flap:function(){return OD},flatMap:function(){return Oa},flatMapIO:function(){return Of},flatMapTask:function(){return Ol},flatten:function(){return Op},fold:function(){return x8},foldW:function(){return x7},fromEither:function(){return xX},fromEitherK:function(){return O9},fromIO:function(){return xJ},fromIOK:function(){return O3},fromNullable:function(){return x5},fromNullableK:function(){return On},fromOption:function(){return xz},fromOptionK:function(){return Oe},fromPredicate:function(){return xV},fromTask:function(){return x$},fromTaskEither:function(){return xZ},fromTaskK:function(){return wt},getOrElse:function(){return x3},getOrElseW:function(){return x4},guard:function(){return OZ},let:function(){return wo},map:function(){return Oi},match:function(){return xQ},matchE:function(){return x1},matchEW:function(){return x2},matchW:function(){return x0},none:function(){return Oh},of:function(){return Oo},partition:function(){return Ob},partitionMap:function(){return OI},separate:function(){return Og},sequenceArray:function(){return wv},sequenceSeqArray:function(){return w_},some:function(){return xH},tap:function(){return OH},tapEither:function(){return OV},tapIO:function(){return Oz},tapTask:function(){return OX},traverseArray:function(){return wh},traverseArrayWithIndex:function(){return wm},traverseReadonlyArrayWithIndex:function(){return wp},traverseReadonlyArrayWithIndexSeq:function(){return ws},traverseReadonlyNonEmptyArrayWithIndex:function(){return wl},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return wd},traverseSeqArray:function(){return wy},traverseSeqArrayWithIndex:function(){return wg},tryCatch:function(){return x9},tryCatchK:function(){return x6},zero:function(){return Om}});var nx={};e.r(nx),e.d(nx,{ApT:function(){return Mh},Bifunctor:function(){return Mr},Foldable:function(){return Mu},FromEither:function(){return Ma},FromThese:function(){return Mi},Functor:function(){return Mn},Pointed:function(){return Me},Traversable:function(){return Mo},URI:function(){return w6},bimap:function(){return w0},both:function(){return ww},elem:function(){return Mp},exists:function(){return Md},flap:function(){return Mt},fold:function(){return wW},foldMap:function(){return w7},foldW:function(){return wE},fromOption:function(){return Mf},fromOptionK:function(){return Ml},fromOptions:function(){return wH},fromPredicate:function(){return Mc},getApplicative:function(){return wA},getApply:function(){return wU},getChain:function(){return wL},getEq:function(){return wP},getLeft:function(){return wj},getLeftOnly:function(){return wB},getMonad:function(){return wN},getRight:function(){return wq},getRightOnly:function(){return wG},getSemigroup:function(){return wF},getShow:function(){return wD},isBoth:function(){return wR},isLeft:function(){return wS},isRight:function(){return wT},left:function(){return wx},leftOrBoth:function(){return wY},map:function(){return w8},mapLeft:function(){return w1},match:function(){return wk},matchW:function(){return wM},of:function(){return w9},reduce:function(){return w2},reduceRight:function(){return w3},right:function(){return wO},rightOrBoth:function(){return wK},sequence:function(){return w5},swap:function(){return wC},these:function(){return My},toTuple:function(){return Mm},toTuple2:function(){return Ms},traverse:function(){return w4},traverseReadonlyArrayWithIndex:function(){return Mg},traverseReadonlyNonEmptyArrayWithIndex:function(){return Mv}});var nO={};e.r(nO),e.d(nO,{ap:function(){return Mx},bimap:function(){return Mw},both:function(){return MI},chain:function(){return MO},getTheseM:function(){return MD},left:function(){return Mb},leftF:function(){return MT},map:function(){return MR},mapLeft:function(){return MM},match:function(){return ME},matchE:function(){return Mk},right:function(){return M_},rightF:function(){return MS},swap:function(){return MW},toTuple2:function(){return MC}});var nw={};e.r(nw),e.d(nw,{ApT:function(){return Ev},Bifunctor:function(){return Ei},FromEither:function(){return Eu},FromIO:function(){return Ep},FromTask:function(){return Es},FromThese:function(){return Ef},Functor:function(){return Et},Pointed:function(){return Er},URI:function(){return M4},bifunctorTaskThese:function(){return ES},bimap:function(){return M2},both:function(){return MU},flap:function(){return Ee},fold:function(){return MX},foldW:function(){return M$},fromEither:function(){return Mq},fromIO:function(){return MK},fromIOEither:function(){return MB},fromIOK:function(){return Ed},fromOption:function(){return Eo},fromOptionK:function(){return Ea},fromPredicate:function(){return Ec},fromTask:function(){return MG},fromTaskK:function(){return Em},fromThese:function(){return MY},fromTheseK:function(){return El},functorTaskThese:function(){return EI},getApplicative:function(){return M9},getApply:function(){return M5},getChain:function(){return M6},getMonad:function(){return En},getSemigroup:function(){return Ex},left:function(){return MP},leftIO:function(){return Mj},leftTask:function(){return ML},map:function(){return M8},mapLeft:function(){return M7},match:function(){return MH},matchE:function(){return Mz},matchEW:function(){return MJ},matchW:function(){return MV},of:function(){return M3},right:function(){return MF},rightIO:function(){return MN},rightTask:function(){return MA},swap:function(){return MZ},taskThese:function(){return ER},toTuple:function(){return ET},toTuple2:function(){return Eh},traverseReadonlyArrayWithIndex:function(){return Ey},traverseReadonlyArrayWithIndexSeq:function(){return Eb},traverseReadonlyNonEmptyArrayWithIndex:function(){return Eg},traverseReadonlyNonEmptyArrayWithIndexSeq:function(){return E_}});var nM={};e.r(nM),e.d(nM,{Functor:function(){return EP},URI:function(){return ED},censor:function(){return EE},flap:function(){return EF},getComonad:function(){return Ek},listen:function(){return Ew},listens:function(){return EM},map:function(){return EC},traced:function(){return EU},tracks:function(){return EO}});var nE={};e.r(nE),e.d(nE,{getTraversableComposition:function(){return EN},sequence:function(){return EL},traverse:function(){return EA}});var nk={};e.r(nk);var nW={};e.r(nW),e.d(nW,{Applicative:function(){return km},Apply:function(){return kp},Chain:function(){return kh},Comonad:function(){return kb},Do:function(){return kI},Foldable:function(){return ky},Functor:function(){return kc},Monad:function(){return kv},Pointed:function(){return kl},Traversable:function(){return k_},URI:function(){return ka},ap:function(){return E7},apFirst:function(){return kd},apS:function(){return kx},apSecond:function(){return ks},bind:function(){return kR},bindTo:function(){return kS},chain:function(){return kM},chainFirst:function(){return kg},drawForest:function(){return EB},drawTree:function(){return EG},duplicate:function(){return E5},elem:function(){return kO},exists:function(){return kw},extend:function(){return E4},extract:function(){return kr},flap:function(){return kf},flatMap:function(){return E3},flatten:function(){return E9},fold:function(){return EJ},foldMap:function(){return kt},getEq:function(){return EY},getShow:function(){return Eq},let:function(){return kT},make:function(){return Ej},map:function(){return E6},of:function(){return ko},reduce:function(){return kn},reduceRight:function(){return ke},sequence:function(){return ku},traverse:function(){return ki},tree:function(){return kE},unfoldForest:function(){return EV},unfoldForestM:function(){return EX},unfoldTree:function(){return EH},unfoldTreeM:function(){return Ez}});var nC={};e.r(nC),e.d(nC,{Bifunctor:function(){return k6},Comonad:function(){return Wt},Foldable:function(){return We},Functor:function(){return k5},Semigroupoid:function(){return Wn},Traversable:function(){return Wr},URI:function(){return k4},bimap:function(){return kz},compose:function(){return k$},duplicate:function(){return kQ},extend:function(){return kZ},extract:function(){return k0},flap:function(){return k9},foldMap:function(){return k1},fst:function(){return kk},getApplicative:function(){return kF},getApply:function(){return kD},getChain:function(){return kU},getChainRec:function(){return kL},getMonad:function(){return kA},map:function(){return Wi},mapFst:function(){return kX},mapLeft:function(){return Wu},mapSnd:function(){return kJ},reduce:function(){return k8},reduceRight:function(){return k2},sequence:function(){return k3},snd:function(){return kW},swap:function(){return kC},traverse:function(){return k7},tuple:function(){return Wo}});var nD={};e.r(nD);var nP={};e.r(nP),e.d(nP,{getValidationM:function(){return Wa}});var nF={};e.r(nF),e.d(nF,{Monoid:function(){return Wf},Semigroup:function(){return Wc}});var nU={};e.r(nU),e.d(nU,{Functor:function(){return WT},URI:function(){return Wg},censor:function(){return Wm},evalWriter:function(){return Ww},evaluate:function(){return Wx},execWriter:function(){return WM},execute:function(){return WO},flap:function(){return WR},getApplicative:function(){return Wb},getApply:function(){return W_},getChain:function(){return WI},getMonad:function(){return WS},getPointed:function(){return Wy},listen:function(){return Wp},listens:function(){return Ws},map:function(){return Wv},pass:function(){return Wd},tell:function(){return Wl},writer:function(){return WE}});var nA={};function nL(n){return function(t){return function(e){return e.reduce(function(t,e){return n.alt(t,function(){return e})},t)}}}e.r(nA),e.d(nA,{getWriterM:function(){return Wk}});var nN=e(42925);function nj(n){return nL(n)(n.zero())}function nq(n){var t=(0,nN.getApplySemigroup)(n);return function(e){var r=t(e);return{concat:function(t,e){return n.alt(r.concat(t,e),function(){return n.alt(t,function(){return e})})},empty:n.zero()}}}var nY=e(46111),nK=e(1358),nB=function(n){return"boolean"==typeof n},nG=function(n,t){return function(e){return e?t():n()}},nH=nG,nV=nH,nz=nV,nX={equals:function(n,t){return n===t}},nJ={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},n$={concat:function(n,t){return n&&t}},nZ={concat:function(n,t){return n||t}},nQ={concat:n$.concat,empty:!0},n0={concat:nZ.concat,empty:!1},n1={equals:nX.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},n8={show:function(n){return JSON.stringify(n)}},n2=e(42275),n7=function(n){return{meet:function(t,e){return n.join(t,e)},join:function(t,e){return n.meet(t,e)},zero:n.one,one:n.zero,implies:function(t,e){return n.join(n.not(t),e)},not:n.not}},n3={meet:function(){},join:function(){},zero:void 0,one:void 0,implies:function(){},not:function(){}},n4=n7,n5={meet:function(n,t){return n&&t},join:function(n,t){return n||t},zero:!1,one:!0,implies:function(n,t){return!n||t},not:function(n){return!n}},n9=n2.getBooleanAlgebra,n6=e(5586),tn=function(n){return n6.clamp(n)(n.bottom,n.top)},tt=function(n){var t=n6.reverse(n);return{equals:t.equals,compare:t.compare,top:n.bottom,bottom:n.top}},te={equals:n6.ordNumber.equals,compare:n6.ordNumber.compare,top:1/0,bottom:-1/0};function tr(n){return{meet:(0,n6.min)(n),join:(0,n6.max)(n)}}function ti(n){var t=tr(n);return function(n,e){return{join:t.join,meet:t.meet,zero:n,one:e}}}var tu=e(88543),to=e(56661);function ta(n,t){return function(e,r){return t.compose(n.right(r),n.left(e))}}function tc(n,t){var e=ta(n,t);return function(r,i){return t.compose(n.promap(t.id(),function(n){return"Left"===n._tag?n.left:n.right},n2.identity),e(r,i))}}function tf(n){return ta(n,n)}function tl(n){return tc(n,n)}var tp=e(67560),td=e(20492),ts=e(34219);function tm(n,t){return function(e){return n.map(e,t.compact)}}function th(n,t,e){var r=tm(n,t),i=(0,tp.map)(n,e);return function(n){return ts.separated(r((0,n2.pipe)(n,i(td.getLeft))),r((0,n2.pipe)(n,i(td.getRight))))}}function tv(n,t){return{map:(0,tp.getFunctorComposition)(n,t).map,compact:tm(n,t),separate:th(n,t,t)}}var tg=function(n){return function(){return console.log(n)}},ty=function(n){return function(){return console.warn(n)}},t_=function(n){return function(){return console.error(n)}},tb=function(n){return function(){return console.info(n)}},tI=e(90817),tS=e(76627),tT={equals:function(n,t){return n.valueOf()===t.valueOf()}},tR={equals:function(n,t){return n.getDate()===t.getDate()}},tx={equals:function(n,t){return n.getMonth()===t.getMonth()}},tO={equals:function(n,t){return n.getFullYear()===t.getFullYear()}},tw=(0,n2.pipe)(tS.Ord,n6.contramap(function(n){return n.valueOf()})),tM=function(){return new Date},tE=function(){return new Date().getTime()},tk=e(81878);function tW(n){return(0,n2.flow)(tk.right,n.of)}function tC(n){return(0,n2.flow)(tk.left,n.of)}function tD(n){return function(t){return n.map(t,tk.right)}}function tP(n){return function(t){return n.map(t,tk.left)}}function tF(n){return function(t){return(0,n2.flow)(tk.fromNullable(t),n.of)}}function tU(n){var t=tF(n);return function(n){var e=t(n);return function(n){return(0,n2.flow)(n,e)}}}function tA(n){var t=tj(n),e=tU(n);return function(n){var r=e(n);return function(n){return t(r(n))}}}function tL(n){return(0,tp.map)(n,tk.Functor)}function tN(n){return(0,nN.ap)(n,tk.Apply)}function tj(n){var t=tq(n);return function(n){return function(e){return t(e,n)}}}function tq(n){return function(t,e){return n.chain(t,function(t){return tk.isLeft(t)?n.of(t):e(t.right)})}}function tY(n){return function(t){return function(e){return n.chain(e,function(e){return tk.isLeft(e)?t():n.of(e)})}}}function tK(n){var t=tB(n);return function(n,e){return function(r){return t(r,n,e)}}}function tB(n){return function(t,e,r){return n.map(t,tk.bimap(e,r))}}function tG(n){var t=tH(n);return function(n){return function(e){return t(e,n)}}}function tH(n){return function(t,e){return n.map(t,tk.mapLeft(e))}}function tV(n,t){return function(e){return function(r){return n.chain(r,tk.match(function(r){return n.map(e(),tk.mapLeft(function(n){return t.concat(r,n)}))},tW(n)))}}}function tz(n){return function(t,e){return function(r){return n.map(r,tk.match(t,e))}}}function tX(n){return function(t,e){return function(r){return n.chain(r,tk.match(t,e))}}}function tJ(n){return function(t){return function(e){return n.chain(e,tk.match(t,n.of))}}}function t$(n){return function(t){return function(e){return n.chain(e,function(e){return tk.isLeft(e)?t(e.left):n.of(e)})}}}function tZ(n){var t=tQ(n);return function(n){return function(e){return t(e,n)}}}function tQ(n){var t=t$(n);return function(e,r){return(0,n2.pipe)(e,t(function(t){return n.map(r(t),function(n){return tk.isLeft(n)?n:tk.left(t)})}))}}function t0(n){return function(t){return function(e){return n.chain(e,tk.match(function(e){return n.map(t(e),tk.left)},function(t){return n.of(tk.right(t))}))}}}function t1(n){return function(t){return n.map(t,tk.swap)}}function t8(n){return function(t){return n.map(t,tk.toUnion)}}function t2(n){var t=tN(n),e=tL(n),r=tj(n),i=tY(n),u=tK(n),o=tG(n),a=tX(n),c=tJ(n),f=t$(n);return{map:function(n,t){return(0,n2.pipe)(n,e(t))},ap:function(n,e){return(0,n2.pipe)(n,t(e))},of:tW(n),chain:function(n,t){return(0,n2.pipe)(n,r(t))},alt:function(n,t){return(0,n2.pipe)(n,i(t))},bimap:function(n,t,e){return(0,n2.pipe)(n,u(t,e))},mapLeft:function(n,t){return(0,n2.pipe)(n,o(t))},fold:function(n,t,e){return(0,n2.pipe)(n,a(t,e))},getOrElse:function(n,t){return(0,n2.pipe)(n,c(t))},orElse:function(n,t){return(0,n2.pipe)(n,f(t))},swap:t1(n),rightM:tD(n),leftM:tP(n),left:tC(n)}}var t7=e(47797),t3=e(65191);function t4(n,t){var e=t.zero,r=function(i,u){return n.equals(u,e)?i:r(u,t.mod(i,u))};return r}function t5(n,t){var e=t.zero,r=t4(n,t);return function(i,u){return n.equals(i,e)||n.equals(u,e)?e:t.div(t.mul(i,u),r(i,u))}}var t9={add:function(n,t){return n+t},zero:0,mul:function(n,t){return n*t},one:1,sub:function(n,t){return n-t},degree:function(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}},t6=e(88491);function en(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filter(n,e)})}}}function et(n,t){return function(e){return function(r){return n.map(r,function(n){return t.filterMap(n,e)})}}}function ee(n,t){var e=en(n,t);return function(n){var t=e((0,t6.not)(n)),r=e(n);return function(n){return(0,ts.separated)(t(n),r(n))}}}function er(n,t){var e=et(n,t);return function(n){return function(t){return(0,ts.separated)((0,n2.pipe)(t,e(function(t){return(0,td.getLeft)(n(t))})),(0,n2.pipe)(t,e(function(t){return(0,td.getRight)(n(t))})))}}}function ei(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=tm(n,t),i=th(n,t,t),u=en(n,t),o=et(n,t),a=ee(n,t),c=er(n,t);return{map:e,compact:r,separate:i,filter:function(n,t){return(0,n2.pipe)(n,u(t))},filterMap:function(n,t){return(0,n2.pipe)(n,o(t))},partition:function(n,t){return(0,n2.pipe)(n,a(t))},partitionMap:function(n,t){return(0,n2.pipe)(n,c(t))}}}function eu(n,t){return function(e,r){return function(i){return n.reduce(i,e,function(n,e){return t.reduce(e,n,r)})}}}function eo(n,t){return function(e){var r=n.foldMap(e),i=t.foldMap(e);return function(n){return function(t){return r(t,function(t){return i(t,n)})}}}}function ea(n,t){return function(e,r){return function(i){return n.reduceRight(i,e,function(n,e){return t.reduceRight(n,e,r)})}}}function ec(n,t){return function(e,r){return function(i){return t.reduce(i,n.of(e),function(t,e){return n.chain(t,function(n){return r(n,e)})})}}}function ef(n,t){return function(e,r){var i=function(t,r){var i=t.init,u=t.acc;return i?{init:!1,acc:r}:{init:!1,acc:n.concat(n.concat(u,e),r)}};return t.reduce(r,{init:!0,acc:n.empty},i).acc}}function el(n){return function(t){return n.reduce(t,[],function(n,t){return n.push(t),n})}}function ep(n,t){var e=n.of(void 0);return function(r,i){return t.reduce(r,e,function(t,e){var r,u;return u=i(e),n.ap(n.map(t,n2.constant),u)})}}function ed(n,t){return function(e,r,i){return t.reduce(e,n.of(r),function(t,e){return n.chain(t,function(n){return i(n,e)})})}}var es=el;function em(n,t){var e=eu(n,t),r=eo(n,t),i=ea(n,t);return{reduce:function(n,t,r){return(0,n2.pipe)(n,e(t,r))},foldMap:function(n){var t=r(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},reduceRight:function(n,t,e){return(0,n2.pipe)(n,i(t,e))}}}function eh(n,t){return function(e,r){return function(i){return n.reduceWithIndex(i,e,function(n,e,i){return t.reduceWithIndex(i,e,function(t,e,i){return r([n,t],e,i)})})}}}function ev(n,t){return function(e){var r=n.foldMapWithIndex(e),i=t.foldMapWithIndex(e);return function(n){return function(t){return r(t,function(t,e){return i(e,function(e,r){return n([t,e],r)})})}}}}function eg(n,t){return function(e,r){return function(i){return n.reduceRightWithIndex(i,e,function(n,e,i){return t.reduceRightWithIndex(e,i,function(t,e,i){return r([n,t],e,i)})})}}}function ey(n,t){var e=em(n,t),r=eh(n,t),i=ev(n,t),u=eg(n,t);return{reduce:e.reduce,foldMap:e.foldMap,reduceRight:e.reduceRight,reduceWithIndex:function(n,t,e){return(0,n2.pipe)(n,r(t,e))},foldMapWithIndex:function(n){var t=i(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},reduceRightWithIndex:function(n,t,e){return(0,n2.pipe)(n,u(t,e))}}}var e_=e(25162);function eb(n){return function(t){return(0,n2.flow)(t,n.fromIO)}}function eI(n,t){return function(e){var r=(0,n2.flow)(e,n.fromIO);return function(n){return t.chain(n,r)}}}function eS(n,t){var e=eT(n,t);return function(n){return function(t){return e(t,n)}}}function eT(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n2.flow)(r,n.fromIO))}}var eR=e(97963),ex=function(){return n2.identity},eO=n2.identity,ew=function(n){return function(t){return function(e){return t(n(e))}}},eM=function(n){return function(t){return n(t)(t)}},eE=eM,ek=function(n,t){return(0,n2.pipe)(n,eP(t))},eW=function(n,t){return(0,n2.pipe)(n,eU(t))},eC=function(n,t){return(0,n2.pipe)(n,eq(t))},eD=function(n,t,e){return(0,n2.pipe)(n,eY(t,e))},eP=function(n){return function(t){return function(e){return n(t(e))}}},eF=function(n){return function(t){return function(e){return t(e)(n(e))}}},eU=eF,eA=n2.constant,eL=(0,n2.dual)(2,function(n,t){return function(e){return t(n(e))(e)}}),eN=eL(n2.identity),ej=eN,eq=function(n){return function(t){return(0,n2.flow)(n,t)}},eY=function(n,t){return function(e){return function(r){return t(e(n(r)))}}},eK=function(){return n2.identity},eB=function(n){return function(t){var e=t[0],r=t[1];return[n(e),r]}},eG=function(n){return function(t){var e;return[t[0],n(t[1])]}},eH=function(n){return tk.fold(function(t){return eR.t$(n(t))},tk.right)},eV=function(n){return tk.fold(tk.left,function(t){return eR.F2(n(t))})},ez="Reader",eX={URI:ez,map:ek},eJ=(0,tp.flap)(eX),e$={URI:ez,of:eA},eZ={URI:ez,map:ek,ap:eW},eQ=(0,nN.apFirst)(eZ),e0=eQ,e1=(0,nN.apSecond)(eZ),e8=e1,e2={URI:ez,map:ek,ap:eW,of:eA},e7={URI:ez,map:ek,ap:eW,chain:eL},e3={URI:ez,map:ek,of:eA,ap:eW,chain:eL},e4=(0,n2.dual)(2,tu.tap(e7)),e5={URI:ez,map:ek,promap:eD},e9={URI:ez,compose:eC,id:eK},e6={URI:ez,map:ek,promap:eD,first:eB,second:eG},rn={URI:ez,map:ek,promap:eD,left:eH,right:eV},rt=(0,tp.bindTo)(eX),re=(0,tp.let)(eX),rr=tu.bind(e7),ri=rr,ru=eA(eR.F4),ro=(0,nN.apS)(eZ),ra=ro,rc=eA(eR.Xl),rf=function(n){return function(t){return function(e){for(var r=[n(0,eR.YM(t))(e)],i=1;i<t.length;i++)r.push(n(i,t[i])(e));return r}}},rl=function(n){var t=rf(n);return function(n){return eR.Od(n)?t(n):rc}},rp=rl,rd=function(n){return rl(function(t,e){return n(e)})},rs=rd(n2.identity),rm=eL,rh=eL,rv=e4,rg=e4,ry={URI:ez,map:ek,of:eA,ap:eW,chain:eL,promap:eD,compose:eC,id:eK,first:eB,second:eG,left:eH,right:eV},r_=(0,nN.getApplySemigroup)(eZ),rb=(0,nY.getApplicativeMonoid)(e2);function rI(n){return function(){return n.fromReader(ex())}}function rS(n){return n.fromReader}function rT(n){return function(t){return(0,n2.flow)(t,n.fromReader)}}function rR(n,t){var e=rT(n);return function(n){return function(r){return t.chain(r,e(n))}}}function rx(n,t){var e=rO(n,t);return function(n){return function(t){return e(t,n)}}}function rO(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n2.flow)(r,n.fromReader))}}var rw=function(){return function(n){return[n,n]}},rM=function(n){return function(){return[void 0,n]}},rE=function(n){return function(t){return[void 0,n(t)]}},rk=function(n){return function(t){return[n(t),t]}},rW=function(n,t){return(0,n2.pipe)(n,rD(t))},rC=function(n,t){return(0,n2.pipe)(n,rP(t))},rD=function(n){return function(t){return function(e){var r=t(e),i=r[0],u=r[1];return[n(i),u]}}},rP=function(n){return function(t){return function(e){var r=t(e),i=r[0],u=n(r[1]),o=u[0],a=u[1];return[i(o),a]}}},rF=function(n){return function(t){return[n,t]}},rU=(0,n2.dual)(2,function(n,t){return function(e){var r=n(e),i=r[0],u=r[1];return t(i)(u)}}),rA=rU(n2.identity),rL="State",rN={URI:rL,map:rW},rj=(0,tp.flap)(rN),rq={URI:rL,of:rF},rY={URI:rL,map:rW,ap:rC},rK=(0,nN.apFirst)(rY),rB=(0,nN.apSecond)(rY),rG={URI:rL,map:rW,ap:rC,of:rF},rH={URI:rL,map:rW,ap:rC,chain:rU},rV={URI:rL,map:rW,ap:rC,of:rF,chain:rU},rz=(0,n2.dual)(2,tu.tap(rH)),rX={URI:rL,fromState:n2.identity},rJ=function(n){return function(t){return t(n)[0]}},r$=function(n){return function(t){return t(n)[1]}},rZ=(0,tp.bindTo)(rN),rQ=(0,tp.let)(rN),r0=tu.bind(rH),r1=(0,nN.apS)(rY),r8=function(n){return function(t){return function(e){for(var r=n(0,eR.YM(t))(e),i=r[0],u=r[1],o=[i],a=u,c=1;c<t.length;c++){var f=n(c,t[c])(a),l=f[0],p=f[1];o.push(l),a=p}return[o,a]}}},r2=function(n){var t=r8(n);return function(n){return eR.Od(n)?t(n):rF(eR.Xl)}},r7=r2,r3=function(n){return r2(function(t,e){return n(e)})},r4=r3(n2.identity),r5=rU,r9=rz,r6=function(n,t){return n(t)[0]},it=function(n,t){return n(t)[1]},ie=rV;function ir(n){return function(){return n.fromState(rw())}}function ii(n){return function(t){return n.fromState(rM(t))}}function iu(n){return(0,n2.flow)(rE,n.fromState)}function io(n){return(0,n2.flow)(rk,n.fromState)}function ia(n){return function(t){return(0,n2.flow)(t,n.fromState)}}function ic(n,t){var e=ia(n);return function(n){return function(r){return t.chain(r,e(n))}}}function il(n){return function(t){return(0,n2.flow)(t,n.fromTask)}}function ip(n,t){return function(e){var r=(0,n2.flow)(e,n.fromTask);return function(n){return t.chain(n,r)}}}function id(n,t){var e=is(n,t);return function(n){return function(t){return e(t,n)}}}function is(n,t){var e=(0,tu.tap)(t);return function(t,r){return e(t,(0,n2.flow)(r,n.fromTask))}}function im(n){return function(t){return(0,n2.flow)(t,n.fromThese)}}function ih(n,t){return function(e){return function(r){return n.mapWithIndex(r,function(n,r){return t.mapWithIndex(r,function(t,r){return e([n,t],r)})})}}}function iv(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=ih(n,t);return{map:e,mapWithIndex:function(n,t){return(0,n2.pipe)(n,r(t))}}}var ig=function(n,t){return(0,n2.pipe)(n,iO(t))},iy=function(n,t){return(0,n2.pipe)(n,iw(t))},i_=function(n,t,e){return(0,n2.pipe)(n,iP(t,e))},ib=function(n){return function(t,e){return(0,n2.pipe)(t,iF(n)(e))}},iI=function(n,t,e){return(0,n2.pipe)(n,iU(t,e))},iS=function(n,t){return(0,n2.pipe)(n,ij(t))},iT=function(n,t){return(0,n2.pipe)(n,ik(t))},iR=function(n){var t=iA(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},ix=to.tailRec,iO=function(n){return function(t){return n(t)}},iw=function(n){return function(t){return t(n)}},iM=n2.identity,iE=(0,n2.dual)(2,function(n,t){return t(n)}),ik=function(n){return function(t){return n(t)}},iW=n2.identity,iC=ik(n2.identity),iD=iE(n2.identity),iP=function(n,t){return function(e){return t(n,e)}},iF=function(){return function(n){return function(t){return n(t)}}},iU=function(n,t){return function(e){return t(e,n)}},iA=function(n){return function(t){return function(e){return n.map(t(e),n2.identity)}}},iL=function(n){return function(t){return n.map(t,n2.identity)}},iN=function(){return n2.identity},ij=iN,iq="Identity",iY=n2.identity,iK=n2.identity,iB={URI:iq,map:ig},iG=(0,tp.flap)(iB),iH={URI:iq,of:iM},iV={URI:iq,map:ig,ap:iy},iz=(0,nN.apFirst)(iV),iX=(0,nN.apSecond)(iV),iJ={URI:iq,map:ig,ap:iy,of:iM},i$={URI:iq,map:ig,ap:iy,chain:iE},iZ={URI:iq,map:ig,ap:iy,of:iM,chain:iE},iQ=(0,tu.chainFirst)(i$),i0={URI:iq,reduce:i_,foldMap:ib,reduceRight:iI},i1={URI:iq,map:ig,reduce:i_,foldMap:ib,reduceRight:iI,traverse:iR,sequence:iL},i8={URI:iq,map:ig,alt:iS},i2={URI:iq,map:ig,extend:iT,extract:iW},i7={URI:iq,map:ig,ap:iy,chain:iE,chainRec:ix},i3=iM(eR.F4),i4=(0,tp.bindTo)(iB),i5=(0,tp.let)(iB),i9=(0,tu.bind)(i$),i6=(0,nN.apS)(iV),un=iE,ut={URI:iq,map:ig,ap:iy,of:iM,chain:iE,reduce:i_,foldMap:ib,reduceRight:iI,traverse:iR,sequence:iL,alt:iS,extract:iW,extend:iT,chainRec:ix},ue=function(n,t){return function(){return t(n())}},ur=function(n,t){return function(){return n()(t())}},ui=function(n,t){return function(){for(var e=t(n)();"Left"===e._tag;)e=t(e.left)();return e.right}},uu=function(n){return function(t){return ue(t,n)}},uo=function(n){return function(t){return ur(t,n)}},ua=n2.constant,uc=(0,n2.dual)(2,function(n,t){return function(){return t(n())()}}),uf=uc(n2.identity),ul="IO",up={URI:ul,map:ue},ud=(0,n2.dual)(2,(0,tp.as)(up)),us=(0,tp.asUnit)(up),um=(0,tp.flap)(up),uh={URI:ul,of:ua},uv={URI:ul,map:ue,ap:ur},ug=(0,nN.apFirst)(uv),uy=(0,nN.apSecond)(uv),u_={URI:ul,map:ue,ap:ur,of:ua},ub={URI:ul,map:ue,ap:ur,chain:uc},uI={URI:ul,map:ue,ap:ur,of:ua,chain:uc},uS=(0,n2.dual)(2,tu.tap(ub)),uT=n2.identity,uR={URI:ul,map:ue,ap:ur,of:ua,chain:uc,fromIO:uT},ux={URI:ul,map:ue,ap:ur,chain:uc,chainRec:ui},uO={URI:ul,fromIO:n2.identity},uw=ua(eR.F4),uM=(0,tp.bindTo)(up),uE=(0,tp.let)(up),uk=tu.bind(ub),uW=(0,nN.apS)(uv),uC=ua(eR.Xl),uD=function(n){return function(t){return function(){for(var e=[n(0,eR.YM(t))()],r=1;r<t.length;r++)e.push(n(r,t[r])());return e}}},uP=function(n){var t=uD(n);return function(n){return eR.Od(n)?t(n):uC}},uF=uP,uU=function(n){return uP(function(t,e){return n(e)})},uA=uU(n2.identity),uL=uc,uN=uS,uj={URI:ul,map:ue,of:ua,ap:ur,chain:uc,fromIO:uT,chainRec:ui},uq=(0,nN.getApplySemigroup)(uv),uY=(0,nY.getApplicativeMonoid)(u_),uK=tC(uh),uB=tW(uh),uG=tD(up),uH=tP(up),uV=ua,uz=uG,uX=tz(up),uJ=uX,u$=tX(uI),uZ=u$,uQ=u$,u0=uQ,u1=tJ(uI),u8=u1,u2=function(n,t){return function(){return tk.tryCatch(n,t)}},u7=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return u2(function(){return n.apply(void 0,e)},t)}},u3=t8(up),u4=t$(uI),u5=u4,u9=(0,n2.dual)(2,tQ(uI)),u6=function(n){return u9(oz(n))},on=t0(uI),ot=t1(up),oe=function(n,t){return(0,n2.pipe)(n,oo(t))},or=function(n,t){return(0,n2.pipe)(n,op(t))},oi=function(n,t){return om(n,function(n){return(0,n2.pipe)(t,oo(n))})},ou=function(n,t){return(0,n2.pipe)(n,og(t))},oo=tL(up),oa=(0,n2.dual)(3,tB(up)),oc=oa,of=(0,n2.dual)(2,tH(up)),ol=of,op=tN(uv),od=op,os=uB,om=(0,n2.dual)(2,tq(uI)),oh=om(n2.identity),ov=oh,og=tY(uI),oy=og,o_=uK,ob="IOEither";function oI(n){var t=(0,nN.ap)(uv,tk.getApplicativeValidation(n));return{URI:ob,_E:void 0,map:oe,ap:function(n,e){return(0,n2.pipe)(n,t(e))},of:os}}function oS(n){var t=tV(uI,n);return{URI:ob,_E:void 0,map:oe,alt:function(n,e){return(0,n2.pipe)(n,t(e))}}}var oT=function(n){var t=tk.getCompactable(n);return{URI:ob,_E:void 0,compact:tm(up,t),separate:th(up,t,tk.Functor)}};function oR(n){var t=tk.getFilterable(n),e=oT(n),r=en(up,t),i=et(up,t),u=ee(up,t),o=er(up,t);return{URI:ob,_E:void 0,map:oe,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n2.pipe)(n,r(t))},filterMap:function(n,t){return(0,n2.pipe)(n,i(t))},partition:function(n,t){return(0,n2.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n2.pipe)(n,o(t))}}}var ox={URI:ob,map:oe},oO=(0,n2.dual)(2,(0,tp.as)(ox)),ow=(0,tp.asUnit)(ox),oM=(0,tp.flap)(ox),oE={URI:ob,of:os},ok={URI:ob,bimap:oa,mapLeft:of},oW={URI:ob,map:oe,ap:or},oC=(0,nN.apFirst)(oW),oD=oC,oP=(0,nN.apSecond)(oW),oF=oP,oU={URI:ob,map:oe,ap:or,of:os},oA={URI:ob,map:oe,ap:oi,of:os},oL={URI:ob,map:oe,ap:or,chain:om},oN={URI:ob,map:oe,ap:or,of:os,chain:om},oj={URI:ob,fromEither:uV},oq={URI:ob,fromIO:uz},oY=(0,n2.dual)(2,tu.tap(oL)),oK=(0,n2.dual)(2,(0,e_.tapEither)(oj,oL)),oB=(0,n2.dual)(2,eT(oq,oL)),oG={URI:ob,map:oe,alt:ou},oH={URI:ob,map:oe,ap:or,of:os,chain:om,fromIO:uz},oV={URI:ob,map:oe,ap:or,of:os,chain:om,throwError:o_},oz=eb(oq),oX=oB,oJ=(0,e_.fromOption)(oj),o$=(0,e_.fromOptionK)(oj),oZ=(0,e_.chainOptionK)(oj,oL),oQ=oZ,o0={fromEither:oj.fromEither},o1=eR.uL(o0),o8=eR.WE(o0),o2={flatMap:om},o7=eR.ny(o0,o2),o3=eR.hU(o0,o2),o4=eR.iu(o0,o2),o5=eR.we({fromIO:uz},o2),o9=o5,o6=o4,an=o4,at=oK,ae=oK,ar=(0,e_.fromPredicate)(oj),ai=(0,e_.filterOrElse)(oj,oL),au=ai,ao=(0,e_.fromEitherK)(oj),aa=function(n,t,e){return ac(n,t,e)},ac=function(n,t,e){return om(n,function(n){return uc(t(n),function(t){return om(e(n,t),function(){return ua(t)})})})},af=os(eR.F4),al=(0,tp.bindTo)(ox),ap=(0,tp.let)(ox),ad=tu.bind(oL),as=ad,am=(0,nN.apS)(oW),ah=am,av=os(eR.Xl),ag=function(n){return(0,n2.flow)(uD(n),uu(tk.traverseReadonlyNonEmptyArrayWithIndex(n2.SK)))},ay=function(n){var t=ag(n);return function(n){return eR.Od(n)?t(n):av}},a_=function(n){return function(t){return function(){var e=n(0,eR.YM(t))();if(eR.nM(e))return e;for(var r=[e.right],i=1;i<t.length;i++){var u=n(i,t[i])();if(eR.nM(u))return u;r.push(u.right)}return eR.F2(r)}}},ab=function(n){var t=a_(n);return function(n){return eR.Od(n)?t(n):av}},aI=ay,aS=function(n){return ay(function(t,e){return n(e)})},aT=aS(n2.identity),aR=ab,ax=function(n){return ab(function(t,e){return n(e)})},aO=ax(n2.identity),aw=oU,aM=om,aE=om,ak=oY,aW=oY,aC=u9,aD=u9,aP={URI:ob,bimap:oa,mapLeft:of,map:oe,of:os,ap:or,chain:om,alt:ou,fromIO:uz,throwError:o_},aF=(0,nN.getApplySemigroup)(oW),aU=(0,nY.getApplicativeMonoid)(oU),aA=function(n){return(0,nN.getApplySemigroup)(uv)(tk.getSemigroup(n))};function aL(n){var t=oI(n),e=oS(n);return{URI:ob,_E:void 0,map:oe,ap:t.ap,of:os,chain:om,bimap:oa,mapLeft:of,alt:e.alt,fromIO:uz,throwError:o_}}function aN(n){return(0,n2.flow)(td.some,n.of)}function aj(n){return(0,n2.constant)(n.of(td.none))}function aq(n){return function(t){return n.map(t,td.some)}}function aY(n){return(0,n2.flow)(td.fromNullable,n.of)}function aK(n){var t=aY(n);return function(n){return(0,n2.flow)(n,t)}}function aB(n){var t=a0(n),e=aK(n);return function(n){return t(e(n))}}function aG(n){return function(t){return(0,n2.flow)(t,n.of)}}function aH(n){var t=a0(n),e=aG(n);return function(n){return t(e(n))}}function aV(n){return function(t){return function(e){return n.of(td.fromPredicate(t)(e))}}}function az(n){return(0,n2.flow)(td.fromEither,n.of)}function aX(n){return function(t,e){return function(r){return n.map(r,td.match(t,e))}}}function aJ(n){return function(t,e){return function(r){return n.chain(r,td.match(t,e))}}}function a$(n){return function(t){return function(e){return n.chain(e,td.match(t,n.of))}}}function aZ(n){return(0,tp.map)(n,td.Functor)}function aQ(n){return(0,nN.ap)(n,td.Apply)}function a0(n){var t=a1(n);return function(n){return function(e){return t(e,n)}}}function a1(n){var t=aj(n);return function(e,r){return n.chain(e,td.match(function(){return t()},r))}}function a8(n){var t=aN(n);return function(e){return function(r){return n.chain(r,td.match(e,t))}}}function a2(n){var t=aQ(n),e=aZ(n),r=a0(n),i=a8(n),u=aJ(n),o=a$(n),a=aj(n);return{map:function(n,t){return(0,n2.pipe)(n,e(t))},ap:function(n,e){return(0,n2.pipe)(n,t(e))},of:aN(n),chain:function(n,t){return(0,n2.pipe)(n,r(t))},alt:function(n,t){return(0,n2.pipe)(n,i(t))},fold:function(n,t,e){return(0,n2.pipe)(n,u(t,e))},getOrElse:function(n,t){return(0,n2.pipe)(n,o(t))},fromM:aq(n),none:function(){return a()}}}var a7=e(28957),a3=aN(uh),a4=aV(uh),a5=ua,a9=az(uh),a6=aq(up),cn=uu(td.fromEither),ct=aX(up),ce=ct,cr=aJ(ub),ci=cr,cu=cr,co=a$(uI),ca=co,cc=uu(td.toUndefined),cf=uu(td.toNullable),cl=aY(uh),cp=aK(uh),cd=aB(uI),cs=aG(uh),cm=aZ(up),ch=aQ(uv),cv=a3,cg=(0,n2.dual)(2,a1(uI)),cy=cg(n2.identity),c_=a8(uI),cb=c_,cI=aj(uh),cS=cI(),cT=tm(up,td.Compactable),cR=th(up,td.Compactable,td.Functor),cx=en(up,td.Filterable),cO=et(up,td.Filterable),cw=ee(up,td.Filterable),cM=er(up,td.Filterable),cE=function(n,t){return(0,n2.pipe)(n,cm(t))},ck=function(n,t){return(0,n2.pipe)(n,ch(t))},cW=function(n,t){return(0,n2.pipe)(n,c_(t))},cC=function(n,t){return(0,n2.pipe)(n,cx(t))},cD=function(n,t){return(0,n2.pipe)(n,cO(t))},cP=function(n,t){return(0,n2.pipe)(n,cw(t))},cF=function(n,t){return(0,n2.pipe)(n,cM(t))},cU="IOOption",cA={URI:cU,map:cE},cL=(0,n2.dual)(2,(0,tp.as)(cA)),cN=(0,tp.asUnit)(cA),cj=(0,tp.flap)(cA),cq={URI:cU,of:cv},cY={URI:cU,map:cE,ap:ck},cK=(0,nN.apFirst)(cY),cB=(0,nN.apSecond)(cY),cG={URI:cU,map:cE,ap:ck,of:cv},cH={URI:cU,map:cE,ap:ck,chain:cg},cV={URI:cU,fromEither:a9},cz={URI:cU,fromIO:a6},cX=(0,n2.dual)(2,tu.tap(cH)),cJ=(0,n2.dual)(2,(0,e_.tapEither)(cV,cH)),c$=(0,n2.dual)(2,eT(cz,cH)),cZ={URI:cU,map:cE,alt:cW},cQ={URI:cU,zero:cI},c0=(0,a7.guard)(cQ,cq),c1={URI:cU,map:cE,ap:ck,of:cv,alt:cW,zero:cI},c8={URI:cU,map:cE,ap:ck,of:cv,chain:cg},c2={URI:cU,map:cE,ap:ck,of:cv,chain:cg,fromIO:a6},c7={URI:cU,compact:cT,separate:cR},c3={URI:cU,map:cE,compact:cT,separate:cR,filter:cC,filterMap:cD,partition:cP,partitionMap:cF},c4={flatMap:cg},c5={fromIO:cz.fromIO},c9=eR.we(c5,c4),c6=(0,n2.dual)(2,function(n,t){return cg(n,cs(t))}),fn=eR.iu({fromEither:a9},c4),ft=(0,n2.dual)(2,function(n,t){return cg(n,cp(t))}),fe=eb(cz),fr=c9,fi=c$,fu=(0,e_.fromEitherK)(cV),fo=fn,fa=cJ,fc=c6,ff=cv(eR.F4),fl=(0,tp.bindTo)(cA),fp=(0,tp.let)(cA),fd=tu.bind(cH),fs=(0,nN.apS)(cY),fm=cv(eR.Xl),fh=function(n){return(0,n2.flow)(uD(n),uu(td.traverseReadonlyNonEmptyArrayWithIndex(n2.SK)))},fv=function(n){var t=fh(n);return function(n){return eR.Od(n)?t(n):fm}},fg=cg,fy=cX,f_=function(){function n(n){var t=this;this.value=n,this.read=function(){return t.value},this.write=this.write.bind(this),this.modify=this.modify.bind(this)}return n.prototype.write=function(n){var t=this;return function(){t.value=n}},n.prototype.modify=function(n){var t=this;return function(){t.value=n(t.value)}},n}();function fb(n){return function(){return new f_(n)}}var fI=function(n){return(0,tk.tryCatch)(function(){return JSON.parse(n)},n2.identity)},fS=function(n){return(0,tk.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},n2.identity)},fT=e(76113),fR=e(55116),fx=e(96576),fO=e(43586),fw=function(n,t,e){return function(r){return -1===r?n():0===r?t():e()}},fM=fw,fE=function(n){return -1===n?1:1===n?-1:0},fk={equals:function(n,t){return n===t}},fW={concat:function(n,t){return 0!==n?n:t}},fC={concat:fW.concat,empty:0},fD=function(n){return n<=-1?-1:n>=1?1:0},fP=fE,fF=fW,fU=fk,fA=fC,fL=e(18896),fN=function(){return Math.random()};function fj(n,t){return(0,n2.pipe)(fN,uu(function(e){return Math.floor((t-n+1)*e+n)}))}function fq(n,t){return(0,n2.pipe)(fN,uu(function(e){return(t-n)*e+n}))}var fY=(0,n2.pipe)(fN,uu(function(n){return n<.5})),fK=function(n){return(0,n2.pipe)(fj(0,n.length-1),uu(function(t){return n[t]}))},fB=tC(e$),fG=tW(e$),fH=tD(eX),fV=tP(eX),fz=eA,fX=fH,fJ=tz(eX),f$=fJ,fZ=tX(e3),fQ=fZ,f0=fZ,f1=f0,f8=tJ(e3),f2=f8,f7=t8(eX),f3=ew,f4=eM,f5=f4,f9=t$(e3),f6=f9,ln=(0,n2.dual)(2,tQ(e3)),lt=t0(e3),le=t1(eX),lr=function(n,t){return(0,n2.pipe)(n,lo(t))},li=function(n,t){return(0,n2.pipe)(n,lp(t))},lu=function(n,t){return(0,n2.pipe)(n,lg(t))},lo=tL(eX),la=(0,n2.dual)(3,tB(eX)),lc=la,lf=(0,n2.dual)(2,tH(eX)),ll=lf,lp=tN(eZ),ld=lp,ls=fG,lm=(0,n2.dual)(2,tq(e3)),lh=lm(n2.identity),lv=lh,lg=tY(e3),ly=lg,l_=fB,lb="ReaderEither",lI=function(n){var t=tk.getCompactable(n);return{URI:lb,_E:void 0,compact:tm(eX,t),separate:th(eX,t,tk.Functor)}};function lS(n){var t=tk.getFilterable(n),e=lI(n),r=en(eX,t),i=et(eX,t),u=ee(eX,t),o=er(eX,t);return{URI:lb,_E:void 0,map:lr,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n2.pipe)(n,r(t))},filterMap:function(n,t){return(0,n2.pipe)(n,i(t))},partition:function(n,t){return(0,n2.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n2.pipe)(n,o(t))}}}function lT(n){var t=(0,nN.ap)(eZ,tk.getApplicativeValidation(n));return{URI:lb,_E:void 0,map:lr,ap:function(n,e){return(0,n2.pipe)(n,t(e))},of:ls}}function lR(n){var t=tV(e3,n);return{URI:lb,_E:void 0,map:lr,alt:function(n,e){return(0,n2.pipe)(n,t(e))}}}var lx={URI:lb,map:lr},lO=(0,n2.dual)(2,(0,tp.as)(lx)),lw=(0,tp.asUnit)(lx),lM=(0,tp.flap)(lx),lE={URI:lb,of:ls},lk={URI:lb,map:lr,ap:li},lW=(0,nN.apFirst)(lk),lC=lW,lD=(0,nN.apSecond)(lk),lP=lD,lF={URI:lb,map:lr,ap:li,of:ls},lU={URI:lb,map:lr,ap:li,chain:lm},lA={URI:lb,map:lr,ap:li,of:ls,chain:lm},lL={URI:lb,fromEither:fz},lN={URI:lb,fromReader:fX},lj=(0,n2.dual)(2,tu.tap(lU)),lq=(0,n2.dual)(2,(0,e_.tapEither)(lL,lU)),lY=(0,n2.dual)(2,rO(lN,lU)),lK={URI:lb,bimap:la,mapLeft:lf},lB={URI:lb,map:lr,alt:lu},lG=rI(lN),lH=rS(lN),lV=rT(lN),lz=lY,lX=lY,lJ={URI:lb,map:lr,ap:li,of:ls,chain:lm,throwError:l_},l$=(0,e_.fromOption)(lL),lZ=(0,e_.fromOptionK)(lL),lQ=(0,e_.chainOptionK)(lL,lU),l0=lQ,l1={fromEither:lL.fromEither},l8={fromReader:lN.fromReader},l2=eR.uL(l1),l7=eR.WE(l1),l3={flatMap:lm},l4=eR.ny(l1,l3),l5=eR.hU(l1,l3),l9=eR.iu(l1,l3),l6=eR.on(l8,l3),pn=l9,pt=l9,pe=lq,pr=lq,pi=l6,pu=l6,po=(0,e_.fromPredicate)(lL),pa=(0,e_.filterOrElse)(lL,lU),pc=pa,pf=(0,e_.fromEitherK)(lL),pl=ls(eR.F4),pp=(0,tp.bindTo)(lx),pd=(0,tp.let)(lx),ps=tu.bind(lU),pm=ps,ph=(0,nN.apS)(lk),pv=ph,pg=ls(eR.Xl),py=function(n){return(0,n2.flow)(rf(n),eP(tk.traverseReadonlyNonEmptyArrayWithIndex(n2.SK)))},p_=function(n){var t=py(n);return function(n){return eR.Od(n)?t(n):pg}},pb=p_,pI=function(n){return p_(function(t,e){return n(e)})},pS=pI(n2.identity),pT=lm,pR=lm,px=lj,pO=lj,pw=ln,pM=ln,pE={URI:lb,bimap:la,mapLeft:lf,map:lr,of:ls,ap:li,chain:lm,alt:lu,throwError:fB},pk=(0,nN.getApplySemigroup)(lk),pW=(0,nY.getApplicativeMonoid)(lF),pC=function(n){return(0,nN.getApplySemigroup)(eZ)(tk.getSemigroup(n))};function pD(n){var t=lT(n),e=lR(n);return{URI:lb,_E:void 0,map:lr,ap:t.ap,of:ls,chain:lm,bimap:la,mapLeft:lf,alt:e.alt,throwError:l_}}function pP(n){return function(t){return function(){return n.of(t)}}}function pF(n){return function(t){return function(e){return function(r){return n.map(e(r),t)}}}}function pU(n){return function(t){return function(e){return function(r){return n.ap(e(r),t(r))}}}}function pA(n){var t=pL(n);return function(n){return function(e){return t(e,n)}}}function pL(n){return function(t,e){return function(r){return n.chain(t(r),function(n){return e(n)(r)})}}}function pN(n){return function(t){return(0,n2.flow)(t,n.of)}}function pj(n){return function(t){return(0,n2.flow)(t,n)}}function pq(n){var t=pU(n),e=pF(n),r=pA(n);return{map:function(n,t){return(0,n2.pipe)(n,e(t))},ap:function(n,e){return(0,n2.pipe)(n,t(e))},of:pP(n),chain:function(n,t){return(0,n2.pipe)(n,r(t))},ask:function(){return n.of},asks:function(t){return(0,n2.flow)(t,n.of)},local:function(n,t){return function(e){return n(t(e))}},fromReader:pN(n),fromM:function(n){return function(){return n}}}}var pY=pN(uh),pK=eA,pB=ew,pG=eM,pH=pG,pV=function(n,t){return(0,n2.pipe)(n,pX(t))},pz=function(n,t){return(0,n2.pipe)(n,pJ(t))},pX=pF(up),pJ=pU(uv),p$=pJ,pZ=pP(uh),pQ=(0,n2.dual)(2,pL(uI)),p0=pQ(n2.identity),p1=p0,p8="ReaderIO",p2={URI:p8,map:pV},p7=(0,n2.dual)(2,(0,tp.as)(p2)),p3=(0,tp.asUnit)(p2),p4=(0,tp.flap)(p2),p5={URI:p8,of:pZ},p9={URI:p8,map:pV,ap:pz},p6=(0,nN.apFirst)(p9),dn=(0,nN.apSecond)(p9),dt={URI:p8,map:pV,ap:pz,of:pZ},de={URI:p8,map:pV,ap:pz,chain:pQ},dr={URI:p8,map:pV,of:pZ,ap:pz,chain:pQ},di={URI:p8,map:pV,of:pZ,ap:pz,chain:pQ,fromIO:pK},du={URI:p8,fromIO:pK},da={URI:p8,fromReader:pY},dc={flatMap:pQ},df={fromIO:du.fromIO},dl=eR.we(df,dc),dp=eR.on({fromReader:pY},dc),dd=(0,n2.dual)(2,tu.tap(de)),ds=(0,n2.dual)(2,eT(du,de)),dm=(0,n2.dual)(2,rO(da,de)),dh=eb(du),dv=dl,dg=ds,dy=rI(da),d_=rS(da),db=rT(da),dI=dp,dS=dp,dT=dm,dR=dm,dx=pZ(eR.F4),dO=(0,tp.bindTo)(p2),dw=tu.bind(de),dM=dw,dE=(0,nN.apS)(p9),dk=dE,dW=pZ(eR.Xl),dC=function(n){return(0,n2.flow)(rf(n),eP(uD(n2.SK)))},dD=function(n){var t=dC(n);return function(n){return eR.Od(n)?t(n):dW}},dP=dD,dF=function(n){return dD(function(t,e){return n(e)})},dU=dF(n2.identity),dA=pQ,dL=pQ,dN=dd,dj=dd,dq=function(n){return function(){return Promise.resolve().then(n)}};function dY(n){return function(t){return function(){return new Promise(function(e){setTimeout(function(){Promise.resolve().then(t).then(e)},n)})}}}var dK=function(n,t){return(0,n2.pipe)(n,dH(t))},dB=function(n,t){return(0,n2.pipe)(n,dV(t))},dG=function(n,t){return dX(n,function(n){return(0,n2.pipe)(t,dH(n))})},dH=function(n){return function(t){return function(){return Promise.resolve().then(t).then(n)}}},dV=function(n){return function(t){return function(){return Promise.all([Promise.resolve().then(t),Promise.resolve().then(n)]).then(function(n){var t;return(0,n[0])(n[1])})}}},dz=function(n){return function(){return Promise.resolve(n)}},dX=(0,n2.dual)(2,function(n,t){return function(){return Promise.resolve().then(n).then(function(n){return t(n)()})}}),dJ=dX(n2.identity),d$="Task";function dZ(){return{concat:function(n,t){return function(){return Promise.race([Promise.resolve().then(n),Promise.resolve().then(t)])}},empty:sm}}var dQ={URI:d$,map:dK},d0=(0,n2.dual)(2,(0,tp.as)(dQ)),d1=(0,tp.asUnit)(dQ),d8=(0,tp.flap)(dQ),d2={URI:d$,of:dz},d7={URI:d$,map:dK,ap:dB},d3=(0,nN.apFirst)(d7),d4=(0,nN.apSecond)(d7),d5={URI:d$,map:dK,ap:dB,of:dz},d9={URI:d$,map:dK,ap:dG},d6={URI:d$,map:dK,ap:dG,of:dz},sn={URI:d$,map:dK,ap:dB,chain:dX},st={URI:d$,map:dK,of:dz,ap:dB,chain:dX},se={URI:d$,map:dK,of:dz,ap:dB,chain:dX,fromIO:dq},sr=n2.identity,si={URI:d$,map:dK,of:dz,ap:dB,chain:dX,fromIO:dq,fromTask:sr},su={URI:d$,fromIO:dq},so={fromIO:su.fromIO},sa=eR.we(so,{flatMap:dX}),sc=(0,n2.dual)(2,tu.tap(sn)),sf=(0,n2.dual)(2,eT(su,sn)),sl=eb(su),sp=sa,sd=sf,ss={URI:d$,fromIO:dq,fromTask:sr},sm=function(){return new Promise(function(n){})},sh=dz(eR.F4),sv=(0,tp.bindTo)(dQ),sg=(0,tp.let)(dQ),sy=tu.bind(sn),s_=(0,nN.apS)(d7),sb=dz(eR.Xl),sI=function(n){return function(t){return function(){return Promise.all(t.map(function(t,e){return Promise.resolve().then(function(){return n(e,t)()})}))}}},sS=function(n){var t=sI(n);return function(n){return eR.Od(n)?t(n):sb}},sT=function(n){return function(t){return function(){return eR.Gb(t).reduce(function(t,e,r){return t.then(function(t){return Promise.resolve().then(n(r+1,e)).then(function(n){return t.push(n),t})})},Promise.resolve().then(n(0,eR.YM(t))).then(eR.ri))}}},sR=function(n){var t=sT(n);return function(n){return eR.Od(n)?t(n):sb}},sx=sS,sO=function(n){return sS(function(t,e){return n(e)})},sw=sO(n2.identity),sM=sR,sE=function(n){return sR(function(t,e){return n(e)})},sk=sE(n2.identity),sW=dX,sC=sc,sD={URI:d$,map:dK,of:dz,ap:dB,chain:dX,fromIO:dq,fromTask:sr},sP={URI:d$,map:dK,of:dz,ap:dG,chain:dX,fromIO:dq,fromTask:sr},sF=(0,nN.getApplySemigroup)(d9),sU=(0,nY.getApplicativeMonoid)(d6),sA=pN(d2),sL=eA,sN=(0,n2.flow)(dq,sL),sj=eP(dq),sq=ew,sY=eM,sK=sY,sB=function(n,t){return(0,n2.pipe)(n,sV(t))},sG=function(n,t){return(0,n2.pipe)(n,sz(t))},sH=function(n,t){return s$(n,function(n){return(0,n2.pipe)(t,sV(n))})},sV=pF(dQ),sz=pU(d7),sX=sz,sJ=pP(d2),s$=(0,n2.dual)(2,pL(st)),sZ=s$(n2.identity),sQ=sZ,s0="ReaderTask",s1={URI:s0,map:sB},s8=(0,n2.dual)(2,(0,tp.as)(s1)),s2=(0,tp.asUnit)(s1),s7=(0,tp.flap)(s1),s3={URI:s0,of:sJ},s4={URI:s0,map:sB,ap:sG},s5=(0,nN.apFirst)(s4),s9=(0,nN.apSecond)(s4),s6={URI:s0,map:sB,ap:sG,of:sJ},mn={URI:s0,map:sB,ap:sH},mt={URI:s0,map:sB,ap:sH,of:sJ},me={URI:s0,map:sB,ap:sG,chain:s$},mr={URI:s0,map:sB,of:sJ,ap:sG,chain:s$},mi={URI:s0,map:sB,of:sJ,ap:sG,chain:s$,fromIO:sN},mu={URI:s0,map:sB,of:sJ,ap:sG,chain:s$,fromIO:sN,fromTask:sL},mo={URI:s0,fromIO:sN},ma={URI:s0,fromIO:sN,fromTask:sL},mc={URI:s0,fromReader:sA},mf={flatMap:s$},ml={fromIO:mo.fromIO},mp=eR.we(ml,mf),md=eR.D9({fromTask:sL},mf),ms=eR.on({fromReader:sA},mf),mm=(0,n2.dual)(2,function(n,t){return s$(n,mk(t))}),mh=(0,n2.dual)(2,tu.tap(me)),mv=(0,n2.dual)(2,eT(mo,me)),mg=(0,n2.dual)(2,rO(mc,me)),my=(0,n2.dual)(2,is(ma,me)),m_=(0,n2.dual)(2,function(n,t){return mh(n,mk(t))}),mb=eb(mo),mI=mp,mS=mv,mT=rI(mc),mR=rS(mc),mx=rT(mc),mO=ms,mw=ms,mM=mg,mE=mg,mk=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return sj(n.apply(void 0,t))}},mW=mm,mC=mm,mD=m_,mP=m_,mF=il(ma),mU=md,mA=my,mL=sJ(eR.F4),mN=(0,tp.bindTo)(s1),mj=(0,tp.let)(s1),mq=tu.bind(me),mY=mq,mK=(0,nN.apS)(s4),mB=mK,mG=sJ(eR.Xl),mH=function(n){return(0,n2.flow)(rf(n),eP(sI(n2.SK)))},mV=function(n){var t=mH(n);return function(n){return eR.Od(n)?t(n):mG}},mz=function(n){return(0,n2.flow)(rf(n),eP(sT(n2.SK)))},mX=function(n){var t=mz(n);return function(n){return eR.Od(n)?t(n):mG}},mJ=mV,m$=function(n){return mV(function(t,e){return n(e)})},mZ=m$(n2.identity),mQ=mX,m0=function(n){return mX(function(t,e){return n(e)})},m1=s$,m8=s$,m2=mh,m7=mh,m3=m0(n2.identity),m4={URI:s0,map:sB,of:sJ,ap:sG,chain:s$,fromIO:sN,fromTask:sL},m5={URI:s0,map:sB,of:sJ,ap:sH,chain:s$,fromIO:sN,fromTask:sL},m9=(0,nN.getApplySemigroup)(mn),m6=(0,nY.getApplicativeMonoid)(mt);function hn(n,t){return n(t)()}var ht=function(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(c){a=[6,c],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},he=tC(d2),hr=tW(d2),hi=tD(dQ),hu=tP(dQ),ho=(0,n2.flow)(dq,hi),ha=(0,n2.flow)(dq,hu),hc=ho,hf=hi,hl=dz,hp=dq,hd=function(n){return dH(tk.fromOption(n))},hs=tz(dQ),hm=hs,hh=tX(st),hv=hh,hg=hh,hy=hg,h_=tJ(st),hb=h_,hI=function(n,t){return function(){var e,r,i,u;return e=void 0,r=void 0,i=void 0,u=function(){var e;return ht(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n().then(eR.F2)];case 1:return[2,r.sent()];case 2:return e=r.sent(),[2,eR.t$(t(e))];case 3:return[2]}})},new(i||(i=Promise))(function(n,t){function o(n){try{c(u.next(n))}catch(e){t(e)}}function a(n){try{c(u.throw(n))}catch(e){t(e)}}function c(t){var e;t.done?n(t.value):((e=t.value)instanceof i?e:new i(function(n){n(e)})).then(o,a)}c((u=u.apply(e,r||[])).next())})}},hS=function(n,t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return hI(function(){return n.apply(void 0,e)},t)}},hT=t8(dQ),hR=tF(d2),hx=tU(d2),hO=tA(st),hw=t$(st),hM=hw,hE=(0,n2.dual)(2,tQ(st)),hk=function(n){return hE(vz(n))},hW=function(n){return hE(v$(n))},hC=t0(st),hD=t1(dQ),hP=function(n){var t=hd(n);return function(n){return(0,n2.flow)(n,t)}},hF=function(n){return function(t){return function(e){return hX(e,hP(n)(t))}}},hU=hF,hA=function(n){return(0,n2.flow)(n,hp)},hL=function(n,t){return(0,n2.pipe)(n,hY(t))},hN=function(n,t){return(0,n2.pipe)(n,hV(t))},hj=function(n,t){return hX(n,function(n){return(0,n2.pipe)(t,hY(n))})},hq=function(n,t){return(0,n2.pipe)(n,hZ(t))},hY=tL(dQ),hK=(0,n2.dual)(3,tB(dQ)),hB=hK,hG=(0,n2.dual)(2,tH(dQ)),hH=hG,hV=tN(d7),hz=hV,hX=(0,n2.dual)(2,tq(st)),hJ=hX(n2.identity),h$=hJ,hZ=tY(st),hQ=hZ,h0=hr,h1=he,h8="TaskEither";function h2(n,t){var e=(0,nN.ap)(n,tk.getApplicativeValidation(t));return{URI:h8,_E:void 0,map:hL,ap:function(n,t){return(0,n2.pipe)(n,e(t))},of:h0}}function h7(n){var t=tV(st,n);return{URI:h8,_E:void 0,map:hL,alt:function(n,e){return(0,n2.pipe)(n,t(e))}}}var h3=function(n){var t=tk.getCompactable(n);return{URI:h8,_E:void 0,compact:tm(dQ,t),separate:th(dQ,t,tk.Functor)}};function h4(n){var t=tk.getFilterable(n),e=h3(n),r=en(dQ,t),i=et(dQ,t),u=ee(dQ,t),o=er(dQ,t);return{URI:h8,_E:void 0,map:hL,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n2.pipe)(n,r(t))},filterMap:function(n,t){return(0,n2.pipe)(n,i(t))},partition:function(n,t){return(0,n2.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n2.pipe)(n,o(t))}}}var h5={URI:h8,map:hL},h9=(0,n2.dual)(2,(0,tp.as)(h5)),h6=(0,tp.asUnit)(h5),vn=(0,tp.flap)(h5),vt={URI:h8,of:h0},ve={URI:h8,map:hL,ap:hN},vr=(0,nN.apFirst)(ve),vi=vr,vu=(0,nN.apSecond)(ve),vo=vu,va={URI:h8,map:hL,ap:hN,of:h0},vc={URI:h8,map:hL,ap:hj},vf={URI:h8,map:hL,ap:hj,of:h0},vl={URI:h8,map:hL,ap:hN,chain:hX},vp={URI:h8,map:hL,ap:hN,chain:hX,of:h0},vd={URI:h8,map:hL,ap:hN,chain:hX,of:h0,fromIO:hc},vs={URI:h8,map:hL,ap:hN,chain:hX,of:h0,fromIO:hc,fromTask:hf},vm={URI:h8,map:hL,ap:hN,chain:hX,of:h0,throwError:h1},vh={URI:h8,fromEither:hl},vv={URI:h8,fromIO:hc},vg={URI:h8,fromIO:hc,fromTask:hf},vy=(0,n2.dual)(2,tu.tap(vl)),v_=(0,n2.dual)(2,(0,e_.tapEither)(vh,vl)),vb=(0,n2.dual)(2,eT(vv,vl)),vI=(0,n2.dual)(2,is(vg,vl)),vS={URI:h8,bimap:hK,mapLeft:hG},vT={URI:h8,map:hL,alt:hq},vR=(0,e_.fromOption)(vh),vx=(0,e_.fromOptionK)(vh),vO=(0,e_.chainOptionK)(vh,vl),vw=vO,vM={fromEither:vh.fromEither},vE=eR.uL(vM),vk=eR.WE(vM),vW={flatMap:hX},vC={fromIO:vv.fromIO},vD=eR.ny(vM,vW),vP=eR.hU(vM,vW),vF=eR.iu(vM,vW),vU=eR.we(vC,vW),vA=eR.D9({fromTask:hf},vW),vL=(0,n2.dual)(2,function(n,t){return hX(n,hA(t))}),vN=(0,n2.dual)(3,function(n,t,e){return hX(n,function(n){return hd(function(){return e(n)})(t(n))})}),vj=vF,vq=vF,vY=v_,vK=v_,vB=(0,e_.fromPredicate)(vh),vG=(0,e_.filterOrElse)(vh,vl),vH=vG,vV=(0,e_.fromEitherK)(vh),vz=eb(vv),vX=vU,vJ=vb,v$=il(vg),vZ=vA,vQ=vI,v0=vL,v1=vL;function v8(n){return function(){var t=Array.prototype.slice.call(arguments);return function(){return new Promise(function(e){var r=function(n,t){return null!=n?e(eR.t$(n)):e(eR.F2(t))};n.apply(null,t.concat(r))})}}}var v2=function(n,t,e){return v7(n,t,e)},v7=function(n,t,e){return hX(n,function(n){return dX(t(n),function(t){return hX(e(n,t),function(){return dz(t)})})})},v3=h0(eR.F4),v4=(0,tp.bindTo)(h5),v5=(0,tp.let)(h5),v9=tu.bind(vl),v6=v9,gn=(0,nN.apS)(ve),gt=gn,ge=h0(eR.Xl),gr=function(n){return(0,n2.flow)(sI(n),dH(tk.traverseReadonlyNonEmptyArrayWithIndex(n2.SK)))},gi=function(n){var t=gr(n);return function(n){return eR.Od(n)?t(n):ge}},gu=function(n){return function(t){return function(){return eR.Gb(t).reduce(function(t,e,r){return t.then(function(i){return eR.nM(i)?t:n(r+1,e)().then(function(n){return eR.nM(n)?n:(i.right.push(n.right),i)})})},n(0,eR.YM(t))().then(tk.map(eR.ri)))}}},go=function(n){var t=gu(n);return function(n){return eR.Od(n)?t(n):ge}},ga=gi,gc=function(n){return gi(function(t,e){return n(e)})},gf=gc(n2.identity),gl=go,gp=function(n){return go(function(t,e){return n(e)})},gd=gp(n2.identity),gs=hX,gm=hX,gh=vy,gv=vy,gg=hE,gy=hE,g_={URI:h8,bimap:hK,mapLeft:hG,map:hL,of:h0,ap:hN,chain:hX,alt:hq,fromIO:hc,fromTask:hf,throwError:h1},gb={URI:h8,bimap:hK,mapLeft:hG,map:hL,of:h0,ap:hj,chain:hX,alt:hq,fromIO:hc,fromTask:hf,throwError:h1},gI=(0,nN.getApplySemigroup)(vc),gS=(0,nY.getApplicativeMonoid)(vf),gT=function(n){return(0,nN.getApplySemigroup)(d9)(tk.getSemigroup(n))};function gR(n){var t=h2(d5,n),e=h7(n);return{URI:h8,_E:void 0,map:hL,ap:t.ap,of:h0,chain:hX,bimap:hK,mapLeft:hG,alt:e.alt,fromIO:hc,fromTask:hf,throwError:h1}}var gx=eA,gO=tC(s3),gw=tW(s3),gM=(0,n2.flow)(hi,gx),gE=(0,n2.flow)(hu,gx),gk=function(n){return(0,n2.flow)(n,hr)},gW=function(n){return(0,n2.flow)(n,he)},gC=tD(s1),gD=tP(s1),gP=(0,n2.flow)(ho,gx),gF=(0,n2.flow)(ha,gx),gU=function(n){return(0,n2.flow)(n,ho)},gA=function(n){return(0,n2.flow)(n,ha)},gL=sJ,gN=gk,gj=gP,gq=gM,gY=(0,n2.flow)(hp,gx),gK=function(n){return(0,n2.flow)(n,hl)},gB=tz(s1),gG=gB,gH=tX(me),gV=gH,gz=gH,gX=gz,gJ=tJ(mr),g$=gJ,gZ=t8(s1),gQ=tF(s3),g0=tU(s3),g1=tA(mr),g8=ew,g2=eM,g7=g2,g3=t$(mr),g4=g3,g5=(0,n2.dual)(2,tQ(mr)),g9=t0(mr),g6=t1(s1),yn=function(n){return(0,n2.flow)(n,gY)},yt=function(n){return(0,n2.flow)(n,gx)},ye=function(n){return(0,n2.flow)(n,gK)},yr=function(n,t){return(0,n2.pipe)(n,ya(t))},yi=function(n,t){return(0,n2.pipe)(n,yd(t))},yu=function(n,t){return yh(n,function(n){return(0,n2.pipe)(t,ya(n))})},yo=function(n,t){return(0,n2.pipe)(n,yy(t))},ya=tL(s1),yc=(0,n2.dual)(3,tB(s1)),yf=yc,yl=(0,n2.dual)(2,tH(s1)),yp=yl,yd=tN(s4),ys=yd,ym=gw,yh=(0,n2.dual)(2,tq(mr)),yv=yh(n2.identity),yg=yv,yy=tY(mr),y_=yy,yb=gO,yI="ReaderTaskEither",yS=function(n){var t=tk.getCompactable(n);return{URI:yI,_E:void 0,compact:tm(s1,t),separate:th(s1,t,tk.Functor)}};function yT(n){var t=tk.getFilterable(n),e=yS(n),r=en(s1,t),i=et(s1,t),u=ee(s1,t),o=er(s1,t);return{URI:yI,_E:void 0,map:yr,compact:e.compact,separate:e.separate,filter:function(n,t){return(0,n2.pipe)(n,r(t))},filterMap:function(n,t){return(0,n2.pipe)(n,i(t))},partition:function(n,t){return(0,n2.pipe)(n,u(t))},partitionMap:function(n,t){return(0,n2.pipe)(n,o(t))}}}function yR(n,t){var e=(0,nN.ap)(eZ,h2(n,t));return{URI:yI,_E:void 0,map:yr,ap:function(n,t){return(0,n2.pipe)(n,e(t))},of:ym}}function yx(n){var t=tV(mr,n);return{URI:yI,_E:void 0,map:yr,alt:function(n,e){return(0,n2.pipe)(n,t(e))}}}var yO={URI:yI,map:yr},yw=(0,n2.dual)(2,(0,tp.as)(yO)),yM=(0,tp.asUnit)(yO),yE=(0,tp.flap)(yO),yk={URI:yI,of:ym},yW={URI:yI,map:yr,ap:yi},yC=(0,nN.apFirst)(yW),yD=yC,yP=(0,nN.apSecond)(yW),yF=yP,yU={URI:yI,map:yr,ap:yi,of:ym},yA={URI:yI,map:yr,ap:yu},yL={URI:yI,map:yr,ap:yu,of:ym},yN={URI:yI,map:yr,ap:yi,chain:yh},yj={URI:yI,map:yr,ap:yi,chain:yh,of:ym},yq={URI:yI,map:yr,ap:yi,chain:yh,of:ym,fromIO:gj},yY={URI:yI,map:yr,ap:yi,chain:yh,of:ym,fromIO:gj,fromTask:gq},yK={URI:yI,map:yr,ap:yi,chain:yh,of:ym,throwError:yb},yB={URI:yI,fromEither:gL},yG={URI:yI,fromIO:gj},yH={URI:yI,fromIO:gj,fromTask:gq},yV={URI:yI,fromReader:gN},yz=(0,n2.dual)(2,tu.tap(yN)),yX=(0,n2.dual)(2,(0,e_.tapEither)(yB,yN)),yJ=(0,n2.dual)(2,eT(yG,yN)),y$=(0,n2.dual)(2,is(yH,yN)),yZ=(0,n2.dual)(2,rO(yV,yN)),yQ=(0,n2.dual)(2,function(n,t){return yz(n,ye(t))}),y0=(0,n2.dual)(2,function(n,t){return yz(n,yt(t))}),y1=(0,n2.dual)(2,function(n,t){return yz(n,_i(t))}),y8=(0,n2.dual)(2,function(n,t){return yz(n,_a(t))}),y2={URI:yI,bimap:yc,mapLeft:yl},y7={URI:yI,map:yr,alt:yo},y3=rI(yV),y4=rS(yV),y5=rT(yV),y9=yZ,y6=yZ,_n=yQ,_t=yQ,_e=y0,_r=y0,_i=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gC(n.apply(void 0,t))}},_u=y1,_o=y1,_a=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return gU(n.apply(void 0,t))}},_c=y8,_f=y8,_l=(0,e_.fromOption)(yB),_p=(0,e_.fromOptionK)(yB),_d=(0,e_.chainOptionK)(yB,yN),_s=_d,_m={fromEither:yB.fromEither},_h=eR.uL(_m),_v=eR.WE(_m),_g={flatMap:yh},_y=eR.ny(_m,_g),__=eR.hU(_m,_g),_b=eR.iu(_m,_g),_I=(0,n2.dual)(2,function(n,t){return yh(n,yt(t))}),_S=(0,n2.dual)(2,function(n,t){return yh(n,_i(t))}),_T=eR.we({fromIO:gj},_g),_R=eR.D9({fromTask:gq},_g),_x=eR.on({fromReader:gN},_g),_O=(0,n2.dual)(2,function(n,t){return yh(n,_a(t))}),_w=(0,n2.dual)(2,function(n,t){return yh(n,yn(t))}),_M=(0,n2.dual)(2,function(n,t){return yh(n,ye(t))}),_E=_b,_k=_b,_W=yX,_C=yX,_D=_I,_P=_I,_F=_S,_U=_S,_A=(0,e_.fromPredicate)(yB),_L=(0,e_.filterOrElse)(yB,yN),_N=_L,_j=(0,e_.fromEitherK)(yB),_q=eb(yG),_Y=_T,_K=yJ,_B=il(yH),_G=_R,_H=y$,_V=_x,_z=_x,_X=_O,_J=_O,_$=_w,_Z=_w,_Q=_M,_0=_M;function _1(n,t,e){return _8(n,t,e)}function _8(n,t,e){return function(r){return v7(n(r),function(n){return t(n)(r)},function(n,t){return e(n,t)(r)})}}var _2=ym(eR.F4),_7=(0,tp.bindTo)(yO),_3=(0,tp.let)(yO),_4=tu.bind(yN),_5=_4,_9=(0,nN.apS)(yW),_6=_9,bn=ym(eR.Xl),bt=function(n){return(0,n2.flow)(rf(n),eP(gr(n2.SK)))},be=function(n){var t=bt(n);return function(n){return eR.Od(n)?t(n):bn}},br=function(n){return(0,n2.flow)(rf(n),eP(gu(n2.SK)))},bi=function(n){var t=br(n);return function(n){return eR.Od(n)?t(n):bn}},bu=be,bo=function(n){return be(function(t,e){return n(e)})},ba=bo(n2.identity),bc=bi,bf=function(n){return bi(function(t,e){return n(e)})},bl=bf(n2.identity),bp=yh,bd=yh,bs=yz,bm=yz,bh=g5,bv=g5,bg={URI:yI,map:yr,of:ym,ap:yi,chain:yh,alt:yo,bimap:yc,mapLeft:yl,fromIO:gj,fromTask:gq,throwError:yb},by={URI:yI,map:yr,of:ym,ap:yu,chain:yh,alt:yo,bimap:yc,mapLeft:yl,fromIO:gj,fromTask:gq,throwError:yb},b_=(0,nN.getApplySemigroup)(yA),bb=(0,nY.getApplicativeMonoid)(yL),bI=function(n){return(0,nN.getApplySemigroup)(mn)(tk.getSemigroup(n))};function bS(n){var t=yR(d5,n),e=yx(n);return{URI:yI,_E:void 0,map:yr,of:ym,chain:yh,bimap:yc,mapLeft:yl,ap:t.ap,alt:e.alt,fromIO:gj,fromTask:gq,throwError:yb}}function bT(n,t){return n(t)()}var bR=e(31583),bx=e(13512),bO=e(28350),bw=e(97054),bM=e(99156);function bE(n){return n[0]}function bk(n){return n[1]}var bW=function(n){var t;return[bk(n),n[0]]};function bC(n){return{URI:b3,_E:void 0,map:bN,ap:function(t,e){var r,i;return[(0,t[0])(e[0]),n.concat(bk(t),bk(e))]}}}var bD=function(n){return function(t){return[t,n.empty]}};function bP(n){var t=bC(n);return{URI:b3,_E:void 0,map:bN,ap:t.ap,of:bD(n)}}function bF(n){var t=bC(n);return{URI:b3,_E:void 0,map:bN,ap:t.ap,chain:function(t,e){var r,i=e(t[0]),u=i[0],o=i[1];return[u,n.concat(bk(t),o)]}}}function bU(n){var t=bF(n);return{URI:b3,_E:void 0,map:bN,ap:t.ap,chain:t.chain,of:bD(n)}}function bA(n){var t=function(t,e){for(var r,i,u=e(t),o=n.empty,a=(i=u)[0];"Left"===a._tag;)o=n.concat(o,bk(u)),a=(r=u=e(a.left))[0];return[a.right,n.concat(o,bk(u))]},e=bF(n);return{URI:b3,_E:void 0,map:bN,ap:e.ap,chain:e.chain,chainRec:t}}var bL=function(n,t){return(0,n2.pipe)(n,bJ(t))},bN=function(n,t){return(0,n2.pipe)(n,bz(t))},bj=function(n,t,e){return(0,n2.pipe)(n,bV(t,e))},bq=function(n,t){return(0,n2.pipe)(n,bX(t))},bY=function(n,t){return(0,n2.pipe)(n,b$(t))},bK=function(n,t,e){return(0,n2.pipe)(n,b0(t,e))},bB=function(n){var t=b1(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},bG=function(n,t,e){return(0,n2.pipe)(n,b8(t,e))},bH=function(n){var t=b2(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},bV=function(n,t){return function(e){var r;return[t(e[0]),n(bk(e))]}},bz=function(n){return function(t){var e;return[n(t[0]),bk(t)]}},bX=function(n){return function(t){var e;return[t[0],n(bk(t))]}},bJ=function(n){return function(t){var e;return[t[0],bk(n)]}},b$=function(n){return function(t){return[n(t),bk(t)]}},bZ=bE,bQ=b$(n2.identity),b0=function(n,t){return function(e){var r;return t(n,e[0])}},b1=function(){return function(n){return function(t){var e;return n(t[0])}}},b8=function(n,t){return function(e){var r;return t(e[0],n)}},b2=function(n){return function(t){return function(e){var r;return n.map(t(e[0]),function(n){return[n,bk(e)]})}}},b7=function(n){return function(t){var e;return n.map(t[0],function(n){return[n,bk(t)]})}},b3="ReadonlyTuple",b4={URI:b3,map:bN},b5=(0,tp.flap)(b4),b9=bz,b6=bX,In={URI:b3,bimap:bj,mapLeft:bq},It={URI:b3,compose:bL},Ie={URI:b3,map:bN,extend:bY,extract:bZ},Ir={URI:b3,reduce:bK,foldMap:bB,reduceRight:bG},Ii={URI:b3,map:bN,reduce:bK,foldMap:bB,reduceRight:bG,traverse:bH,sequence:b7},Iu={URI:b3,compose:bL,map:bN,bimap:bj,mapLeft:bq,extract:bZ,extend:bY,reduce:bK,foldMap:bB,reduceRight:bG,traverse:bH,sequence:b7},Io=e(3291),Ia=e(57029),Ic=e(76511),If=function(){return(If=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},Il=bw.size,Ip=bw.isEmpty,Id=function(n){return function(t){return Object.keys(t).sort(n.compare)}},Is=Id(Ia.Ord);function Im(n){if("function"==typeof n)return Im(Ia.Ord)(n);var t=Id(n);return function(n){return function(e){for(var r=[],i=0,u=t(e);i<u.length;i++){var o=u[i];r.push(n(o,e[o]))}return r}}}var Ih=Im(Ia.Ord)(function(n,t){return[n,t]});function Iv(n){return function(t){var e=Ih(t),r=e.length;return n.unfold(0,function(n){return n<r?eR.G([e[n],n+1]):eR.YP})}}var Ig=bw.upsertAt,Iy=bw.has;function I_(n){return function(t){if(!eR.e$.call(t,n))return t;var e=Object.assign({},t);return delete e[n],e}}var Ib=function(n,t){return II(n,function(){return t})},II=function(n,t){return function(e){if(!Iy(n,e))return eR.YP;var r=Object.assign({},e);return r[n]=t(e[n]),eR.G(r)}};function IS(n){var t=I_(n);return function(e){var r=IR(n,e);return eR.Wi(r)?eR.YP:eR.G([r.value,t(e)])}}var IT=bw.isSubrecord,IR=bw.lookup,Ix=bw.mapWithIndex,IO=bw.map;function Iw(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?bw.reduceWithIndex(n[0]):bw.reduceWithIndex(Ia.Ord).apply(void 0,n)}function IM(n){return"compare"in n?bw.foldMapWithIndex(n):bw.foldMapWithIndex(Ia.Ord)(n)}function IE(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?bw.reduceRightWithIndex(n[0]):bw.reduceRightWithIndex(Ia.Ord).apply(void 0,n)}var Ik=bw.singleton;function IW(n){return bw.traverseWithIndex(n)}function IC(n){return bw.traverse(n)}function ID(n){return bw.sequence(n)}var IP=function(n){var t=IC(n);return function(e){return function(r){return n.map((0,n2.pipe)(r,t(e)),Sd)}}},IF=function(n){var t=IC(n);return function(e){return function(r){return n.map((0,n2.pipe)(r,t(e)),Ss)}}},IU=bw.partitionMapWithIndex;function IA(n){return bw.partitionWithIndex(n)}var IL=bw.filterMapWithIndex;function IN(n){return bw.filterWithIndex(n)}function Ij(n,t){return bw.fromFoldable(n,t)}var Iq=Ih,IY=function(n){return Ij(Io.last(),nK.Foldable)(n)};function IK(n,t){return bw.fromFoldableMap(n,t)}var IB=bw.every,IG=bw.some,IH=bw.elem,IV=function(n){var t=bw.union(n);return function(n){return function(e){return Ip(e)?If({},n):Ip(n)?If({},e):t(n)(e)}}},Iz=function(n){return function(t){return function(e){return Ip(e)||Ip(t)?{}:bw.intersection(n)(t)(e)}}},IX=function(n){return function(t){return Ip(t)?If({},n):Ip(n)?If({},t):bw.difference(n)(t)}},IJ=bw._map,I$=bw._mapWithIndex,IZ=bw._reduce,IQ=bw._foldMap,I0=bw._reduceRight,I1=bw._filter,I8=bw._filterMap,I2=bw._partition,I7=bw._partitionMap,I3=bw._reduceWithIndex,I4=bw._foldMapWithIndex,I5=bw._reduceRightWithIndex,I9=bw._partitionMapWithIndex,I6=bw._partitionWithIndex,Sn=bw._filterMapWithIndex,St=bw._filterWithIndex,Se=bw._traverse,Sr=bw._sequence,Si=function(n){return function(t){var e=Id(n);return function(n,r){var i=e(n);if(0===i.length)return t.of({});for(var u=t.of({}),o=function(e){u=t.ap(t.map(u,function(n){return function(t){return n[e]=t,n}}),r(e,n[e]))},a=0;a<i.length;a++)o(i[a]);return u}}},Su=bw.filter,So=bw.filterMap,Sa=bw.partition,Sc=bw.partitionMap;function Sf(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?bw.reduce(n[0]):bw.reduce(Ia.Ord).apply(void 0,n)}function Sl(n){return"compare"in n?bw.foldMap(n):bw.foldMap(Ia.Ord)(n)}function Sp(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return 1===n.length?bw.reduceRight(n[0]):bw.reduceRight(Ia.Ord).apply(void 0,n)}var Sd=bw.compact,Ss=bw.separate,Sm="Record";function Sh(n){return"compare"in n?bw.getShow(n):bw.getShow(Ia.Ord)(n)}var Sv=bw.getEq,Sg=bw.getMonoid,Sy={URI:Sm,map:IJ},S_=(0,tp.flap)(Sy),Sb={URI:Sm,map:IJ,mapWithIndex:I$},SI=function(n){return{URI:Sm,reduce:IZ(n),foldMap:IQ(n),reduceRight:I0(n)}},SS=function(n){return{URI:Sm,reduce:IZ(n),foldMap:IQ(n),reduceRight:I0(n),reduceWithIndex:I3(n),foldMapWithIndex:I4(n),reduceRightWithIndex:I5(n)}},ST={URI:Sm,compact:Sd,separate:Ss},SR={URI:Sm,map:IJ,compact:Sd,separate:Ss,filter:I1,filterMap:I8,partition:I2,partitionMap:I7},Sx={URI:Sm,map:IJ,mapWithIndex:I$,compact:Sd,separate:Ss,filter:I1,filterMap:I8,partition:I2,partitionMap:I7,filterMapWithIndex:Sn,filterWithIndex:St,partitionMapWithIndex:I9,partitionWithIndex:I6},SO=function(n){return{URI:Sm,map:IJ,reduce:IZ(n),foldMap:IQ(n),reduceRight:I0(n),traverse:Se(n),sequence:Sr(n)}},Sw=function(n){return{URI:Sm,map:IJ,mapWithIndex:I$,reduce:IZ(n),foldMap:IQ(n),reduceRight:I0(n),reduceWithIndex:I3(n),foldMapWithIndex:I4(n),reduceRightWithIndex:I5(n),traverse:Se(n),sequence:Sr(n),traverseWithIndex:Si(n)}},SM=function(n){var t=SO(n);return{URI:Sm,map:IJ,reduce:IZ(n),foldMap:IQ(n),reduceRight:I0(n),traverse:t.traverse,sequence:t.sequence,compact:Sd,separate:Ss,filter:I1,filterMap:I8,partition:I2,partitionMap:I7,wither:(0,Ic.witherDefault)(t,ST),wilt:(0,Ic.wiltDefault)(t,ST)}},SE=function(n){var t=IV(n);return{concat:function(n,e){return t(e)(n)}}},Sk=function(n){return{concat:SE(n).concat,empty:{}}},SW=function(n){var t=Iz(n);return{concat:function(n,e){return t(e)(n)}}},SC=function(){return{concat:function(n,t){return IX(t)(n)}}},SD={URI:Sm,reduce:IZ(Ia.Ord),foldMap:IQ(Ia.Ord),reduceRight:I0(Ia.Ord)},SP={URI:Sm,reduce:IZ(Ia.Ord),foldMap:IQ(Ia.Ord),reduceRight:I0(Ia.Ord),reduceWithIndex:I3(Ia.Ord),foldMapWithIndex:I4(Ia.Ord),reduceRightWithIndex:I5(Ia.Ord)},SF={URI:Sm,map:IJ,reduce:IZ(Ia.Ord),foldMap:IQ(Ia.Ord),reduceRight:I0(Ia.Ord),traverse:Se(Ia.Ord),sequence:ID},SU={URI:Sm,map:IJ,mapWithIndex:I$,reduce:IZ(Ia.Ord),foldMap:IQ(Ia.Ord),reduceRight:I0(Ia.Ord),reduceWithIndex:I3(Ia.Ord),foldMapWithIndex:I4(Ia.Ord),reduceRightWithIndex:I5(Ia.Ord),traverse:Se(Ia.Ord),sequence:ID,traverseWithIndex:Si(Ia.Ord)},SA=(0,Ic.witherDefault)(SF,ST),SL=(0,Ic.wiltDefault)(SF,ST),SN={URI:Sm,map:IJ,reduce:IZ(Ia.Ord),foldMap:IQ(Ia.Ord),reduceRight:I0(Ia.Ord),traverse:Se(Ia.Ord),sequence:ID,compact:Sd,separate:Ss,filter:I1,filterMap:I8,partition:I2,partitionMap:I7,wither:SA,wilt:SL},Sj={},Sq=Ig,SY=bw.hasOwnProperty,SK={URI:Sm,map:IJ,reduce:IZ(Ia.Ord),foldMap:IQ(Ia.Ord),reduceRight:I0(Ia.Ord),traverse:Se(Ia.Ord),sequence:ID,compact:Sd,separate:Ss,filter:I1,filterMap:I8,partition:I2,partitionMap:I7,mapWithIndex:I$,reduceWithIndex:I3(Ia.Ord),foldMapWithIndex:I4(Ia.Ord),reduceRightWithIndex:I5(Ia.Ord),filterMapWithIndex:Sn,filterWithIndex:St,partitionMapWithIndex:I9,partitionWithIndex:I6,traverseWithIndex:Si(Ia.Ord),wither:SA,wilt:SL},SB=function(n){return function(t){return eR.pC(n(t))}},SG=function(n){return function(t){return eR.tO(n(t))}},SH=function(){return function(n){return!0}},SV=function(n){return function(t){return!n(t)}},Sz=function(n){return function(t){return function(e){return t(e)||n(e)}}},SX=function(n){return function(t){return function(e){return t(e)&&n(e)}}},SJ=function(){return function(n){return!1}},S$=function(n){return function(t){return function(e){return t(e)&&n(e)}}},SZ=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{add:function(t,e){return n.map(function(n,r){return n.add(t[r],e[r])})},zero:n.map(function(n){return n.zero}),mul:function(t,e){return n.map(function(n,r){return n.mul(t[r],e[r])})},one:n.map(function(n){return n.one}),sub:function(t,e){return n.map(function(n,r){return n.sub(t[r],e[r])})}}},SQ=function(n){return function(t){return n.sub(n.zero,t)}},S0=SZ,S1=n2.getRing,S8=n2.getSemiring,S2=e(1214),S7=function(n){return{show:function(t){var e="{";for(var r in n)eR.e$.call(n,r)&&(e+=" ".concat(r,": ").concat(n[r].show(t[r]),","));return e.length>1&&(e=e.slice(0,-1)+" "),e+="}"}}},S3=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{show:function(t){return"[".concat(t.map(function(t,e){return n[e].show(t)}).join(", "),"]")}}},S4=S3,S5=S7,S9={show:function(n){return JSON.stringify(n)}},S6={show:function(n){return JSON.stringify(n)}},Tn={show:function(n){return JSON.stringify(n)}};function Tt(n){return function(t){return function(e){return n.of([t,e])}}}function Te(n){return function(t){return function(e){return function(r){return n.map(e(r),function(n){var e=n[0],r=n[1];return[t(e),r]})}}}}function Tr(n){return function(t){return function(e){return function(r){return n.chain(e(r),function(e){var r=e[0],i=e[1];return n.map(t(i),function(n){var t=n[0],e=n[1];return[r(t),e]})})}}}}function Ti(n){var t=Tu(n);return function(n){return function(e){return t(e,n)}}}function Tu(n){return function(t,e){return function(r){return n.chain(t(r),function(n){var t=n[0],r=n[1];return e(t)(r)})}}}function To(n){return function(t){return function(e){return n.of(t(e))}}}function Ta(n){return function(t){return function(e){return n.map(t,function(n){return[n,e]})}}}function Tc(n){return function(t){return function(e){return n.map(e(t),function(n){return n[0]})}}}function Tf(n){return function(t){return function(e){return n.map(e(t),bk)}}}function Tl(n){var t=Tr(n),e=Te(n),r=Ti(n),i=Tc(n),u=Tf(n);return{map:function(n,t){return(0,n2.pipe)(n,e(t))},ap:function(n,e){return(0,n2.pipe)(n,t(e))},of:Tt(n),chain:function(n,t){return(0,n2.pipe)(n,r(t))},get:function(){return function(t){return n.of([t,t])}},put:function(t){return function(){return n.of([void 0,t])}},modify:function(t){return function(e){return n.of([void 0,t(e)])}},gets:function(t){return function(e){return n.of([t(e),e])}},fromState:To(n),fromM:Ta(n),evalState:function(n,t){return(0,n2.pipe)(n,i(t))},execState:function(n,t){return(0,n2.pipe)(n,u(t))}}}var Tp=function(n){return function(){return gO(n)}},Td=Tt(yk);function Ts(n){return TE(gM(n))}function Tm(n){return TE(gE(n))}function Th(n){return TE(gk(n))}function Tv(n){return TE(gW(n))}function Tg(n){return TE(gP(n))}function Ty(n){return TE(gF(n))}var T_=function(n){return(0,n2.flow)(n,gw)},Tb=function(n){return function(t){return gO(n(t)[0])}},TI=tk.match(function(n){return Tp(n)},Td),TS=Th,TT=Tg,TR=Ts,Tx=To(yk),TO=function(n){return TE(gx(n))},Tw=function(n){return TE(gY(n))},TM=function(n){return TE(gK(n))},TE=Ta(yO),Tk=function(n){return function(t){return(0,n2.flow)(t,ew(n))}},TW=function(n){return function(t){return function(e){return n(e)(t)(e)}}},TC=TW,TD=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Tw(n.apply(void 0,t))}},TP=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return TO(n.apply(void 0,t))}},TF=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return TE(n.apply(void 0,t))}},TU=function(n){return function(t){return TJ(t,TF(n))}},TA=TU,TL=function(n,t){return(0,n2.pipe)(n,TK(t))},TN=function(n,t){return(0,n2.pipe)(n,TH(t))},Tj=function(n,t){return function(e){return(0,n2.pipe)(n(e),yy(function(){return t()(e)}))}},Tq=function(n,t,e){return function(r){return(0,n2.pipe)(n(r),yf(t,function(n){var t=n[0],r=n[1];return[e(t),r]}))}},TY=function(n,t){return function(e){return(0,n2.pipe)(n(e),yp(t))}},TK=Te(yO),TB=function(n,t){return function(e){return Tq(e,n,t)}},TG=function(n){return function(t){return TY(t,n)}},TH=Tr(yN),TV=TH,Tz=Td,TX={fromEither:TI},TJ=(0,n2.dual)(2,Tu(yj)),T$={flatMap:TJ},TZ=(0,n2.dual)(2,function(n,t){return TJ(n,function(n){return TP(t)(n)})}),TQ=eR.we({fromIO:TT},T$),T0=eR.D9({fromTask:TR},T$),T1=eR.on({fromReader:TS},T$),T8=(0,n2.dual)(2,function(n,t){return TJ(n,function(n){return TD(t)(n)})}),T2=(0,n2.dual)(2,eR.iu(TX,T$)),T7=eR.hU(TX,T$),T3=(0,n2.dual)(2,function(n,t){return TJ(n,function(n){return TF(t)(n)})}),T4=(0,n2.dual)(2,function(n,t){return TJ(n,Rb(t))}),T5=TJ(n2.identity),T9=T5,T6=function(n){return function(t){return function(e){return(0,n2.pipe)(t(e),y_(function(){return n()(e)}))}}},Rn=T6,Rt=Tp,Re="StateReaderTaskEither",Rr={URI:Re,map:TL},Ri=(0,n2.dual)(2,(0,tp.as)(Rr)),Ru=(0,tp.asUnit)(Rr),Ro=(0,tp.flap)(Rr),Ra={URI:Re,of:Tz},Rc={URI:Re,map:TL,ap:TN},Rf=(0,nN.apFirst)(Rc),Rl=Rf,Rp=(0,nN.apSecond)(Rc),Rd=Rp,Rs={URI:Re,map:TL,ap:TN,of:Tz},Rm={URI:Re,map:TL,ap:TN,chain:TJ},Rh={URI:Re,fromState:Tx},Rv=ir(Rh),Rg=ii(Rh),Ry=iu(Rh),R_=io(Rh),Rb=ia(Rh),RI=ic(Rh,Rm),RS={URI:Re,map:TL,ap:TN,of:Tz,chain:TJ},RT={URI:Re,map:TL,ap:TN,of:Tz,chain:TJ,fromIO:TT},RR={URI:Re,map:TL,ap:TN,of:Tz,chain:TJ,fromIO:TT,fromTask:TR},Rx={URI:Re,map:TL,ap:TN,of:Tz,chain:TJ,throwError:Rt},RO={URI:Re,fromEither:TI},Rw={URI:Re,fromIO:TT},RM={URI:Re,fromIO:TT,fromTask:TR},RE={URI:Re,fromReader:TS},Rk=(0,n2.dual)(2,tu.tap(Rm)),RW=(0,n2.dual)(2,(0,e_.tapEither)(RO,Rm)),RC=(0,n2.dual)(2,eT(Rw,Rm)),RD=(0,n2.dual)(2,is(RM,Rm)),RP=(0,n2.dual)(2,rO(RE,Rm)),RF={URI:Re,bimap:Tq,mapLeft:TY},RU={URI:Re,map:TL,alt:Tj},RA=rI(RE),RL=rS(RE),RN=rT(RE),Rj=T1,Rq=T1,RY=RP,RK=RP,RB=(0,e_.fromOption)(RO),RG=(0,e_.fromOptionK)(RO),RH=(0,e_.chainOptionK)(RO,Rm),RV=RH,Rz=T2,RX=T2,RJ=RW,R$=RW,RZ=(0,e_.fromPredicate)(RO),RQ=(0,e_.filterOrElse)(RO,Rm),R0=RQ,R1=(0,e_.fromEitherK)(RO),R8=eb(Rw),R2=TQ,R7=RC,R3=TZ,R4=TZ,R5=T8,R9=T8,R6=il(RM),xn=T0,xt=RD,xe=Tc(yO),xr=Tf(yO),xi=(0,tp.bindTo)(Rr),xu=(0,tp.let)(Rr),xo=tu.bind(Rm),xa=xo,xc=(0,nN.apS)(Rc),xf=xc,xl=function(n){return function(t){return function(e){return function(r){return function(){return eR.Gb(t).reduce(function(t,e,i){return t.then(function(u){return eR.nM(u)?t:n(i+1,e)(u.right[1])(r)().then(function(n){if(eR.nM(n))return n;var t=n.right,e=t[0],r=t[1];return u.right[0].push(e),u.right[1]=r,u})})},n(0,eR.YM(t))(e)(r)().then(tk.map(function(n){var t;return[[n[0]],n[1]]})))}}}}},xp=function(n){var t=xl(n);return function(n){return eR.Od(n)?t(n):Tz(eR.Xl)}},xd=xp,xs=function(n){return xp(function(t,e){return n(e)})},xm=xs(n2.identity),xh=TJ,xv=TJ,xg=Rk,xy=Rk,x_={URI:Re,map:TL,of:Tz,ap:TN,chain:TJ,bimap:Tq,mapLeft:TY,alt:Tj,fromIO:TT,fromTask:TR,throwError:Rt},xb={URI:Re,map:TL,of:Tz,ap:TN,chain:TJ,bimap:Tq,mapLeft:TY,alt:Tj,fromIO:TT,fromTask:TR,throwError:Rt},xI=function(n,t){return(0,n2.pipe)(n(t),ya(function(n){return n[0]}))},xS=function(n,t){return(0,n2.pipe)(n(t),ya(function(n){return n[0],n[1]}))};function xT(n,t,e){return n(t)(e)()}function xR(n){return function(t){return{peek:t.peek,pos:n}}}function xx(n){return function(t){return{peek:t.peek,pos:n(t.pos)}}}function xO(n){return function(t){return t.peek(n(t.pos))}}function xw(n){return function(t){return function(e){return n.map(t(e.pos),function(n){return e.peek(n)})}}}var xM=function(n,t){return(0,n2.pipe)(n,xD(t))},xE=function(n,t){return(0,n2.pipe)(n,xk(t))},xk=function(n){return function(t){return{peek:function(e){return n({peek:t.peek,pos:e})},pos:t.pos}}},xW=function(n){return n.peek(n.pos)},xC=xk(n2.identity),xD=function(n){return function(t){return{peek:function(e){return n(t.peek(e))},pos:t.pos}}},xP="Store",xF={URI:xP,map:xM},xU=(0,tp.flap)(xF),xA={URI:xP,map:xM,extend:xE,extract:xW},xL=xA;function xN(n,t){return function(e,r){return t.compose(n.second(r),n.first(e))}}function xj(n,t){var e=xN(n,t);return function(r,i){return t.compose(e(r,i),n.promap(t.id(),n2.identity,function(n){return[n,n]}))}}function xq(n){return xN(n,n)}function xY(n){return xj(n,n)}var xK=function(){return{concat:function(n,t){return Object.assign({},n,t)}}},xB=function(n){return function(t){var e={};for(var r in t)eR.e$.call(t,r)&&(e[r]=n[r](t[r]));return e}},xG=function(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(c){a=[6,c],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}},xH=aN(d2),xV=aV(d2),xz=dz,xX=az(d2),xJ=function(n){return x$(dq(n))},x$=aq(dQ),xZ=dH(td.fromEither),xQ=aX(dQ),x0=xQ,x1=aJ(sn),x8=x1,x2=x1,x7=x2,x3=a$(st),x4=x3,x5=aY(d2),x9=function(n){return function(){var t,e,r,i;return t=void 0,e=void 0,r=void 0,i=function(){return xG(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,n().then(eR.G)];case 1:return[2,t.sent()];case 2:return t.sent(),[2,eR.YP];case 3:return[2]}})},new(r||(r=Promise))(function(n,u){function o(n){try{c(i.next(n))}catch(t){u(t)}}function a(n){try{c(i.throw(n))}catch(t){u(t)}}function c(t){var e;t.done?n(t.value):((e=t.value)instanceof r?e:new r(function(n){n(e)})).then(o,a)}c((i=i.apply(t,e||[])).next())})}},x6=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return x9(function(){return n.apply(void 0,t)})}},On=aK(d2),Ot=aB(st),Oe=aG(d2),Or=aH(st),Oi=aZ(dQ),Ou=aQ(d7),Oo=xH,Oa=(0,n2.dual)(2,a1(st)),Oc={flatMap:Oa},Of=eR.we({fromIO:xJ},Oc),Ol=eR.D9({fromTask:x$},Oc),Op=Oa(n2.identity),Od=a8(st),Os=Od,Om=aj(d2),Oh=Om(),Ov=tm(dQ,td.Compactable),Og=th(dQ,td.Compactable,td.Functor),Oy=en(dQ,td.Filterable),O_=et(dQ,td.Filterable),Ob=ee(dQ,td.Filterable),OI=er(dQ,td.Filterable),OS=function(n,t){return(0,n2.pipe)(n,Oi(t))},OT=function(n,t){return(0,n2.pipe)(n,Ou(t))},OR=function(n,t){return(0,n2.pipe)(n,Od(t))},Ox=function(n,t){return(0,n2.pipe)(n,Oy(t))},OO=function(n,t){return(0,n2.pipe)(n,O_(t))},Ow=function(n,t){return(0,n2.pipe)(n,Ob(t))},OM=function(n,t){return(0,n2.pipe)(n,OI(t))},OE="TaskOption",Ok={URI:OE,map:OS},OW=(0,n2.dual)(2,(0,tp.as)(Ok)),OC=(0,tp.asUnit)(Ok),OD=(0,tp.flap)(Ok),OP={URI:OE,of:Oo},OF={URI:OE,map:OS,ap:OT},OU=(0,nN.apFirst)(OF),OA=(0,nN.apSecond)(OF),OL={URI:OE,map:OS,ap:OT,of:Oo},ON=function(n,t){return Oa(n,function(n){return(0,n2.pipe)(t,Oi(n))})},Oj={URI:OE,map:OS,ap:ON},Oq={URI:OE,map:OS,ap:ON,of:Oo},OY={URI:OE,map:OS,ap:OT,chain:Oa},OK={URI:OE,fromEither:xX},OB={URI:OE,fromIO:xJ},OG={URI:OE,fromIO:xJ,fromTask:x$},OH=(0,n2.dual)(2,tu.tap(OY)),OV=(0,n2.dual)(2,(0,e_.tapEither)(OK,OY)),Oz=(0,n2.dual)(2,eT(OB,OY)),OX=(0,n2.dual)(2,is(OG,OY)),OJ={URI:OE,map:OS,alt:OR},O$={URI:OE,zero:Om},OZ=(0,a7.guard)(O$,OP),OQ={URI:OE,map:OS,ap:OT,of:Oo,alt:OR,zero:Om},O0={URI:OE,map:OS,ap:OT,of:Oo,chain:Oa},O1={URI:OE,map:OS,ap:OT,of:Oo,chain:Oa,fromIO:xJ},O8={URI:OE,map:OS,ap:OT,of:Oo,chain:Oa,fromIO:xJ,fromTask:x$},O2={URI:OE,compact:Ov,separate:Og},O7={URI:OE,map:OS,compact:Ov,separate:Og,filter:Ox,filterMap:OO,partition:Ow,partitionMap:OM},O3=eb(OB),O4=Of,O5=Oz,O9=(0,e_.fromEitherK)(OK),O6=(0,e_.chainEitherK)(OK,OY),wn=OV,wt=il(OG),we=Ol,wr=OX,wi=Oo(eR.F4),wu=(0,tp.bindTo)(Ok),wo=(0,tp.let)(Ok),wa=tu.bind(OY),wc=(0,nN.apS)(OF),wf=Oo(eR.Xl),wl=function(n){return(0,n2.flow)(sI(n),dH(td.traverseReadonlyNonEmptyArrayWithIndex(n2.SK)))},wp=function(n){var t=wl(n);return function(n){return eR.Od(n)?t(n):wf}},wd=function(n){return function(t){return function(){return eR.Gb(t).reduce(function(t,e,r){return t.then(function(i){return eR.Wi(i)?t:n(r+1,e)().then(function(n){return eR.Wi(n)?n:(i.value.push(n.value),i)})})},n(0,eR.YM(t))().then(td.map(eR.ri)))}}},ws=function(n){var t=wd(n);return function(n){return eR.Od(n)?t(n):wf}},wm=wp,wh=function(n){return wp(function(t,e){return n(e)})},wv=wh(n2.identity),wg=ws,wy=function(n){return ws(function(t,e){return n(e)})},w_=wy(n2.identity),wb=Oa,wI=OH,wS=function(n){return"Left"===n._tag},wT=function(n){return"Right"===n._tag};function wR(n){return"Both"===n._tag}function wx(n){return{_tag:"Left",left:n}}function wO(n){return{_tag:"Right",right:n}}function ww(n,t){return{_tag:"Both",left:n,right:t}}var wM=function(n,t,e){return function(r){switch(r._tag){case"Left":return n(r.left);case"Right":return t(r.right);case"Both":return e(r.left,r.right)}}},wE=wM,wk=wM,wW=wk,wC=wk(wO,wx,function(n,t){return ww(t,n)});function wD(n,t){return{show:wk(function(t){return"left(".concat(n.show(t),")")},function(n){return"right(".concat(t.show(n),")")},function(e,r){return"both(".concat(n.show(e),", ").concat(t.show(r),")")})}}function wP(n,t){return(0,t3.fromEquals)(function(e,r){return wS(e)?wS(r)&&n.equals(e.left,r.left):wT(e)?wT(r)&&t.equals(e.right,r.right):wR(r)&&n.equals(e.left,r.left)&&t.equals(e.right,r.right)})}function wF(n,t){return{concat:function(e,r){return wS(e)?wS(r)?wx(n.concat(e.left,r.left)):wT(r)?ww(e.left,r.right):ww(n.concat(e.left,r.left),r.right):wT(e)?wS(r)?ww(r.left,e.right):wT(r)?wO(t.concat(e.right,r.right)):ww(r.left,t.concat(e.right,r.right)):wS(r)?ww(n.concat(e.left,r.left),e.right):wT(r)?ww(e.left,t.concat(e.right,r.right)):ww(n.concat(e.left,r.left),t.concat(e.right,r.right))}}}var wU=function(n){return{URI:w6,_E:void 0,map:wV,ap:function(t,e){return wS(t)?wS(e)?wx(n.concat(t.left,e.left)):wT(e)?wx(t.left):wx(n.concat(t.left,e.left)):wT(t)?wS(e)?wx(e.left):wT(e)?wO(t.right(e.right)):ww(e.left,t.right(e.right)):wS(e)?wx(n.concat(t.left,e.left)):wT(e)?ww(t.left,t.right(e.right)):ww(n.concat(t.left,e.left),t.right(e.right))}}};function wA(n){var t=wU(n);return{URI:w6,_E:void 0,map:wV,ap:t.ap,of:w9}}function wL(n){var t=wU(n),e=function(t,e){if(wS(t))return t;if(wT(t))return e(t.right);var r=e(t.right);return wS(r)?wx(n.concat(t.left,r.left)):wT(r)?ww(t.left,r.right):ww(n.concat(t.left,r.left),r.right)};return{URI:w6,_E:void 0,map:wV,ap:t.ap,chain:e}}function wN(n){var t=wL(n);return{URI:w6,_E:void 0,map:wV,of:w9,ap:t.ap,chain:t.chain,throwError:wx}}function wj(n){return wS(n)?eR.G(n.left):wT(n)?eR.YP:eR.G(n.left)}function wq(n){return wS(n)?eR.YP:(wT(n),eR.G(n.right))}function wY(n){return function(t){return eR.Wi(t)?wx(n):ww(n,t.value)}}function wK(n){return function(t){return eR.Wi(t)?wO(n):ww(t.value,n)}}function wB(n){return wS(n)?eR.G(n.left):eR.YP}function wG(n){return wT(n)?eR.G(n.right):eR.YP}var wH=function(n,t){return eR.Wi(n)?eR.Wi(t)?eR.YP:eR.G(wO(t.value)):eR.Wi(t)?eR.G(wx(n.value)):eR.G(ww(n.value,t.value))},wV=function(n,t){return(0,n2.pipe)(n,w8(t))},wz=function(n,t,e){return(0,n2.pipe)(n,w0(t,e))},wX=function(n,t){return(0,n2.pipe)(n,w1(t))},wJ=function(n,t,e){return(0,n2.pipe)(n,w2(t,e))},w$=function(n){var t=w7(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},wZ=function(n,t,e){return(0,n2.pipe)(n,w3(t,e))},wQ=function(n){var t=w4(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},w0=function(n,t){return function(e){return wS(e)?wx(n(e.left)):wT(e)?wO(t(e.right)):ww(n(e.left),t(e.right))}},w1=function(n){return function(t){return wS(t)?wx(n(t.left)):wR(t)?ww(n(t.left),t.right):t}},w8=function(n){return function(t){return wS(t)?t:wT(t)?wO(n(t.right)):ww(t.left,n(t.right))}},w2=function(n,t){return function(e){return wS(e)?n:t(n,e.right)}},w7=function(n){return function(t){return function(e){return wS(e)?n.empty:t(e.right)}}},w3=function(n,t){return function(e){return wS(e)?n:t(e.right,n)}},w4=function(n){return function(t){return function(e){return wS(e)?n.of(e):wT(e)?n.map(t(e.right),wO):n.map(t(e.right),function(n){return ww(e.left,n)})}}},w5=function(n){return function(t){return wS(t)?n.of(t):wT(t)?n.map(t.right,wO):n.map(t.right,function(n){return ww(t.left,n)})}},w9=wO,w6="These",Mn={URI:w6,map:wV},Mt=(0,tp.flap)(Mn),Me={URI:w6,of:w9},Mr={URI:w6,bimap:wz,mapLeft:wX},Mi={URI:w6,fromThese:n2.identity},Mu={URI:w6,reduce:wJ,foldMap:w$,reduceRight:wZ},Mo={URI:w6,map:wV,reduce:wJ,foldMap:w$,reduceRight:wZ,traverse:wQ,sequence:w5},Ma={URI:w6,fromEither:n2.identity},Mc=(0,e_.fromPredicate)(Ma),Mf=(0,e_.fromOption)(Ma),Ml=(0,e_.fromOptionK)(Ma),Mp=function(n){return function(t){return function(e){return!wS(e)&&n.equals(t,e.right)}}},Md=function(n){return function(t){return!wS(t)&&n(t.right)}},Ms=function(n,t){return function(e){return wS(e)?[e.left,t()]:wT(e)?[n(),e.right]:[e.left,e.right]}},Mm=function(n,t){return Ms(function(){return n},function(){return t})},Mh=w9(eR.Xl),Mv=function(n){return function(t){return function(e){var r=eR.YP,i=t(0,eR.YM(e));if(wS(i))return i;wR(i)&&(r=eR.G(i.left));for(var u=[i.right],o=1;o<e.length;o++){var a=t(o,e[o]);if(wS(a))return a;wR(a)&&(r=eR.Wi(r)?eR.G(a.left):eR.G(n.concat(r.value,a.left))),u.push(a.right)}return eR.Wi(r)?wO(u):ww(r.value,u)}}},Mg=function(n){return function(t){var e=Mv(n)(t);return function(n){return eR.Od(n)?e(n):Mh}}},My={URI:w6,map:wV,bimap:wz,mapLeft:wX,reduce:wJ,foldMap:w$,reduceRight:wZ,traverse:wQ,sequence:w5};function M_(n){return(0,n2.flow)(wO,n.of)}function Mb(n){return(0,n2.flow)(wx,n.of)}function MI(n){return(0,n2.flow)(ww,n.of)}function MS(n){return function(t){return n.map(t,wO)}}function MT(n){return function(t){return n.map(t,wx)}}function MR(n){return(0,tp.map)(n,Mn)}function Mx(n,t){return(0,nN.ap)(n,wU(t))}function MO(n,t){var e=Mb(n);return function(r){return function(i){return n.chain(i,wk(e,r,function(e,i){return n.map(r(i),wk(function(n){return wx(t.concat(e,n))},function(n){return ww(e,n)},function(n,r){return ww(t.concat(e,n),r)}))}))}}}function Mw(n){return function(t,e){return function(r){return n.map(r,w0(t,e))}}}function MM(n){return function(t){return function(e){return n.map(e,w1(t))}}}function ME(n){return function(t,e,r){return function(i){return n.map(i,wk(t,e,r))}}}function Mk(n){return function(t,e,r){return function(i){return n.chain(i,wk(t,e,r))}}}function MW(n){return function(t){return n.map(t,wC)}}function MC(n){return function(t,e){return function(r){return n.map(r,Ms(t,e))}}}function MD(n){var t=MR(n),e=Mw(n),r=MM(n),i=Mk(n),u=MC(n),o=M_(n),a=function(n,e){return(0,n2.pipe)(n,t(e))};return{map:a,bimap:function(n,t,r){return(0,n2.pipe)(n,e(t,r))},mapLeft:function(n,t){return(0,n2.pipe)(n,r(t))},fold:function(n,t,e,r){return(0,n2.pipe)(n,i(t,e,r))},swap:MW(n),rightM:MS(n),leftM:MT(n),left:Mb(n),right:M_(n),both:MI(n),toTuple:function(n,t,e){return(0,n2.pipe)(n,u(function(){return t},function(){return e}))},getMonad:function(t){var e=Mx(n,t),r=MO(n,t);return{_E:void 0,map:a,of:o,ap:function(n,t){return(0,n2.pipe)(n,e(t))},chain:function(n,t){return(0,n2.pipe)(n,r(t))}}}}}var MP=Mb(d2),MF=M_(d2),MU=MI(d2),MA=MS(dQ),ML=MT(dQ),MN=(0,n2.flow)(dq,MA),Mj=(0,n2.flow)(dq,ML),Mq=dz,MY=dz,MK=MN,MB=dq,MG=MA,MH=ME(dQ),MV=MH,Mz=Mk(st),MX=Mz,MJ=MX,M$=MJ,MZ=MW(dQ),MQ=function(n,t){return(0,n2.pipe)(n,M8(t))},M0=function(n,t,e){return(0,n2.pipe)(n,M2(t,e))},M1=function(n,t){return(0,n2.pipe)(n,M7(t))},M8=MR(dQ),M2=Mw(dQ),M7=MM(dQ),M3=MF,M4="TaskThese",M5=function(n,t){var e=Mx(n,t);return{URI:M4,_E:void 0,map:MQ,ap:function(n,t){return(0,n2.pipe)(n,e(t))}}};function M9(n,t){var e=M5(n,t).ap;return{URI:M4,_E:void 0,map:MQ,ap:e,of:M3}}function M6(n){var t=M5(d5,n),e=MO(st,n);return{URI:M4,_E:void 0,map:MQ,ap:t.ap,chain:function(n,t){return(0,n2.pipe)(n,e(t))}}}function En(n){var t=M9(d5,n),e=M6(n);return{URI:M4,_E:void 0,map:MQ,ap:t.ap,of:M3,chain:e.chain,fromIO:MK,fromTask:MG}}var Et={URI:M4,map:MQ},Ee=(0,tp.flap)(Et),Er={URI:M4,of:M3},Ei={URI:M4,bimap:M0,mapLeft:M1},Eu={URI:M4,fromEither:Mq},Eo=(0,e_.fromOption)(Eu),Ea=(0,e_.fromOptionK)(Eu),Ec=(0,e_.fromPredicate)(Eu),Ef={URI:M4,fromThese:MY},El=im(Ef),Ep={URI:M4,fromIO:MK},Ed=eb(Ep),Es={URI:M4,fromIO:MK,fromTask:MG},Em=il(Es),Eh=MC(dQ),Ev=M3(eR.Xl),Eg=function(n){var t=Mv(n);return function(n){return(0,n2.flow)(sI(n),dH(t(n2.SK)))}},Ey=function(n){return function(t){var e=Eg(n)(t);return function(n){return eR.Od(n)?e(n):Ev}}},E_=function(n){return function(t){return function(e){return function(){return eR.Gb(e).reduce(function(e,r,i){return e.then(function(u){return wS(u)?e:t(i+1,r)().then(function(t){if(wS(t))return t;if(wR(t)){var e=u.right;return e.push(t.right),wR(u)?ww(n.concat(u.left,t.left),e):ww(t.left,e)}return u.right.push(t.right),u})})},t(0,eR.YM(e))().then(w8(eR.ri)))}}}},Eb=function(n){return function(t){var e=E_(n)(t);return function(n){return eR.Od(n)?e(n):Ev}}},EI={URI:M4,map:MQ},ES={URI:M4,bimap:M0,mapLeft:M1},ET=function(n,t){return Eh(function(){return n},function(){return t})},ER={URI:M4,map:MQ,bimap:M0,mapLeft:M1},Ex=function(n,t){return(0,nN.getApplySemigroup)(d9)(wF(n,t))};function EO(n,t){return function(e){return e(t(e(n.empty)))}}function Ew(n){return function(t){return[n(t),t]}}function EM(n){return function(t){return function(e){return[t(e),n(e)]}}}function EE(n){return function(t){return function(e){return t(n(e))}}}function Ek(n){return{URI:ED,_E:void 0,map:EW,extend:function(t,e){return function(r){return e(function(e){return t(n.concat(r,e))})}},extract:function(t){return t(n.empty)}}}var EW=function(n,t){return(0,n2.pipe)(n,EC(t))},EC=function(n){return function(t){return function(e){return n(t(e))}}},ED="Traced",EP={URI:ED,map:EW},EF=(0,tp.flap)(EP),EU=EP;function EA(n,t){return function(e){var r=n.traverse(e),i=t.traverse(e);return function(n){return function(t){return r(t,function(t){return i(t,n)})}}}}function EL(n,t){return function(e){var r=n.sequence(e),i=t.sequence(e);return function(t){return r(n.map(t,i))}}}function EN(n,t){var e=(0,tp.getFunctorComposition)(n,t).map,r=em(n,t),i=EA(n,t),u=EL(n,t);return{map:e,reduce:r.reduce,foldMap:r.foldMap,reduceRight:r.reduceRight,traverse:function(n){var t=i(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},sequence:function(n){var t=u(n);return function(n){return(0,n2.pipe)(n,t)}}}}function Ej(n,t){return void 0===t&&(t=[]),{value:n,forest:t}}function Eq(n){var t=function(e){return nK.isEmpty(e.forest)?"make(".concat(n.show(e.value),")"):"make(".concat(n.show(e.value),", [").concat(e.forest.map(t).join(", "),"])")};return{show:t}}function EY(n){var t,e=(0,t3.fromEquals)(function(e,r){return n.equals(e.value,r.value)&&t.equals(e.forest,r.forest)});return t=nK.getEq(e),e}var EK=function(n,t){for(var e,r="",i=t.length,u=0;u<i;u++){e=t[u];var o=u===i-1;r+=n+(o?"└":"├")+"─ "+e.value,r+=EK(n+(i>1&&!o?"│ ":" "),e.forest)}return r};function EB(n){return EK("\n",n)}function EG(n){return n.value+EB(n.forest)}function EH(n,t){var e,r=t(n);return{value:r[0],forest:EV(r[1],t)}}function EV(n,t){return n.map(function(n){return EH(n,t)})}function Ez(n){var t=EX(n);return function(e,r){return n.chain(r(e),function(e){var i=e[0],u=e[1];return n.map(t(u,r),function(n){return{value:i,forest:n}})})}}function EX(n){var t=nK.traverse(n);return function(e,r){return(0,n2.pipe)(e,t(function(t){return Ez(n)(t,r)}))}}function EJ(n){var t=function(e){return n(e.value,e.forest.map(t))};return t}var E$=function(n,t){return(0,n2.pipe)(n,E6(t))},EZ=function(n,t){return E3(n,function(n){return(0,n2.pipe)(t,E6(n))})},EQ=function(n,t,e){return(0,n2.pipe)(n,kn(t,e))},E0=function(n){var t=kt(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},E1=function(n,t,e){return(0,n2.pipe)(n,ke(t,e))},E8=function(n,t){return(0,n2.pipe)(n,E4(t))},E2=function(n){var t=ki(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},E7=function(n){return function(t){return EZ(t,n)}},E3=(0,n2.dual)(2,function(n,t){var e=t(n.value),r=e.value,i=e.forest;return{value:r,forest:(0,nK.getMonoid().concat)(i,n.forest.map(E3(t)))}}),E4=function(n){return function(t){return{value:n(t),forest:t.forest.map(E4(n))}}},E5=E4(n2.identity),E9=E3(n2.identity),E6=function(n){return function(t){return{value:n(t.value),forest:t.forest.map(E6(n))}}},kn=function(n,t){return function(e){for(var r=t(n,e.value),i=e.forest.length,u=0;u<i;u++)r=(0,n2.pipe)(e.forest[u],kn(r,t));return r}},kt=function(n){return function(t){return kn(n.empty,function(e,r){return n.concat(e,t(r))})}},ke=function(n,t){return function(e){for(var r=n,i=e.forest.length,u=i-1;u>=0;u--)r=(0,n2.pipe)(e.forest[u],ke(r,t));return t(e.value,r)}},kr=function(n){return n.value},ki=function(n){var t=nK.traverse(n),e=function(r){return function(i){return n.ap(n.map(r(i.value),function(n){return function(t){return{value:n,forest:t}}}),(0,n2.pipe)(i.forest,t(e(r))))}};return e},ku=function(n){return ki(n)(n2.identity)},ko=function(n){return Ej(n)},ka="Tree",kc={URI:ka,map:E$},kf=(0,tp.flap)(kc),kl={URI:ka,of:ko},kp={URI:ka,map:E$,ap:EZ},kd=(0,nN.apFirst)(kp),ks=(0,nN.apSecond)(kp),km={URI:ka,map:E$,ap:EZ,of:ko},kh={URI:ka,map:E$,ap:EZ,chain:E3},kv={URI:ka,map:E$,ap:EZ,of:ko,chain:E3},kg=(0,tu.chainFirst)(kh),ky={URI:ka,reduce:EQ,foldMap:E0,reduceRight:E1},k_={URI:ka,map:E$,reduce:EQ,foldMap:E0,reduceRight:E1,traverse:E2,sequence:ku},kb={URI:ka,map:E$,extend:E8,extract:kr},kI=ko(eR.F4),kS=(0,tp.bindTo)(kc),kT=(0,tp.let)(kc),kR=(0,tu.bind)(kh),kx=(0,nN.apS)(kp);function kO(n){var t=function(e,r){return n.equals(e,r.value)||r.forest.some(function(n){return t(e,n)})};return t}var kw=function(n){return function(t){return n(t.value)||t.forest.some(kw(n))}},kM=E3,kE={URI:ka,map:E$,of:ko,ap:EZ,chain:E3,reduce:EQ,foldMap:E0,reduceRight:E1,traverse:E2,sequence:ku,extract:kr,extend:E8},kk=bE,kW=bk,kC=function(n){return[kW(n),kk(n)]};function kD(n){return{URI:k4,_E:void 0,map:kj,ap:function(t,e){return[kk(t)(kk(e)),n.concat(kW(t),kW(e))]}}}var kP=function(n){return function(t){return[t,n.empty]}};function kF(n){var t=kD(n);return{URI:k4,_E:void 0,map:t.map,ap:t.ap,of:kP(n)}}function kU(n){var t=kD(n);return{URI:k4,_E:void 0,map:t.map,ap:t.ap,chain:function(t,e){var r=e(kk(t)),i=r[0],u=r[1];return[i,n.concat(kW(t),u)]}}}function kA(n){var t=kU(n);return{URI:k4,_E:void 0,map:t.map,ap:t.ap,chain:t.chain,of:kP(n)}}function kL(n){var t=function(t,e){for(var r=e(t),i=n.empty,u=kk(r);"Left"===u._tag;)i=n.concat(i,kW(r)),r=e(u.left),u=kk(r);return[u.right,n.concat(i,kW(r))]},e=kU(n);return{URI:k4,_E:void 0,map:e.map,ap:e.ap,chain:e.chain,chainRec:t}}var kN=function(n,t){return(0,n2.pipe)(n,k$(t))},kj=function(n,t){return(0,n2.pipe)(n,kX(t))},kq=function(n,t,e){return(0,n2.pipe)(n,kz(t,e))},kY=function(n,t){return(0,n2.pipe)(n,kJ(t))},kK=function(n,t){return(0,n2.pipe)(n,kZ(t))},kB=function(n,t,e){return(0,n2.pipe)(n,k8(t,e))},kG=function(n){var t=k1(n);return function(n,e){return(0,n2.pipe)(n,t(e))}},kH=function(n,t,e){return(0,n2.pipe)(n,k2(t,e))};function kV(n){var t=k7(n);return function(n,e){return(0,n2.pipe)(n,t(e))}}var kz=function(n,t){return function(e){return[t(kk(e)),n(kW(e))]}},kX=function(n){return function(t){return[n(kk(t)),kW(t)]}},kJ=function(n){return function(t){return[kk(t),n(kW(t))]}},k$=function(n){return function(t){return[kk(t),kW(n)]}},kZ=function(n){return function(t){return[n(t),kW(t)]}},kQ=kZ(n2.identity),k0=bZ,k1=b1,k8=b0,k2=b8,k7=function(n){return function(t){return function(e){return n.map(t(kk(e)),function(n){return[n,kW(e)]})}}},k3=function(n){return function(t){return n.map(kk(t),function(n){return[n,kW(t)]})}},k4="Tuple",k5={URI:k4,map:kj},k9=(0,tp.flap)(k5),k6={URI:k4,bimap:kq,mapLeft:kY},Wn={URI:k4,compose:kN},Wt={URI:k4,map:kj,extend:kK,extract:k0},We={URI:k4,reduce:kB,foldMap:kG,reduceRight:kH},Wr={URI:k4,map:kj,reduce:kB,foldMap:kG,reduceRight:kH,traverse:kV,sequence:k3},Wi=kX,Wu=kJ,Wo={URI:k4,compose:kN,map:kj,bimap:kq,mapLeft:kY,extract:k0,extend:kK,reduce:kB,foldMap:kG,reduceRight:kH,traverse:kV,sequence:k3};function Wa(n,t){var e=(0,nY.getApplicativeComposition)(t,tk.getApplicativeValidation(n));return{map:e.map,ap:e.ap,of:e.of,chain:function(n,e){return t.chain(n,function(n){return eR.nM(n)?t.of(eR.t$(n.left)):e(n.right)})},alt:function(e,r){return t.chain(e,function(e){return eR.tO(e)?t.of(e):t.map(r(),function(t){return eR.nM(t)?eR.t$(n.concat(e.left,t.left)):t})})}}}var Wc=Io.constant(void 0),Wf={concat:Wc.concat,empty:void 0},Wl=function(n){return function(){return[void 0,n]}},Wp=function(n){return function(){var t=n(),e=t[0],r=t[1];return[[e,r],r]}},Wd=function(n){return function(){var t,e=n(),r=e[0],i=r[0];return[i,(0,r[1])(e[1])]}},Ws=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[[r,n(i)],i]}}},Wm=function(n){return function(t){return function(){var e,r=t();return[r[0],n(r[1])]}}},Wh=function(n,t){return(0,n2.pipe)(n,Wv(t))},Wv=function(n){return function(t){return function(){var e=t(),r=e[0],i=e[1];return[n(r),i]}}},Wg="Writer",Wy=function(n){return{URI:Wg,_E:void 0,of:function(t){return function(){return[t,n.empty]}}}},W_=function(n){return{URI:Wg,_E:void 0,map:Wh,ap:function(t,e){return function(){var r=t(),i=r[0],u=r[1],o=e(),a=o[0],c=o[1];return[i(a),n.concat(u,c)]}}}},Wb=function(n){var t=W_(n),e=Wy(n);return{URI:Wg,_E:void 0,map:Wh,ap:t.ap,of:e.of}};function WI(n){var t=W_(n);return{URI:Wg,_E:void 0,map:Wh,ap:t.ap,chain:function(t,e){return function(){var r=t(),i=r[0],u=r[1],o=e(i)(),a=o[0],c=o[1];return[a,n.concat(u,c)]}}}}function WS(n){var t=Wb(n),e=WI(n);return{URI:Wg,_E:void 0,map:Wh,ap:t.ap,of:t.of,chain:e.chain}}var WT={URI:Wg,map:Wh},WR=(0,tp.flap)(WT),Wx=function(n){return n()[0]},WO=function(n){return n()[1]},Ww=function(n){return n()[0]},WM=function(n){return n()[1]},WE=WT;function Wk(n){var t=function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[e(t),r]})}};return{map:t,evalWriter:function(t){return n.map(t(),function(n){return n[0]})},execWriter:function(t){return n.map(t(),function(n){return n[0],n[1]})},tell:function(t){return function(){return n.of([void 0,t])}},listen:function(t){return function(){return n.map(t(),function(n){var t=n[0],e=n[1];return[[t,e],e]})}},pass:function(t){return function(){return n.map(t(),function(n){var t,e=n[0],r=e[0];return[r,(0,e[1])(n[1])]})}},listens:function(t,e){return function(){return n.map(t(),function(n){var t=n[0],r=n[1];return[[t,e(r)],r]})}},censor:function(t,e){return function(){return n.map(t(),function(n){var t;return[n[0],e(n[1])]})}},getMonad:function(e){return{_E:void 0,map:t,of:function(t){return function(){return n.of([t,e.empty])}},ap:function(t,r){return function(){return n.chain(t(),function(t){var i=t[0],u=t[1];return n.map(r(),function(n){var t=n[0],r=n[1];return[i(t),e.concat(u,r)]})})}},chain:function(t,r){return function(){return n.chain(t(),function(t){var i=t[0],u=t[1];return n.map(r(i)(),function(n){var t=n[0],r=n[1];return[t,e.concat(u,r)]})})}}}}}}},97963:function(n,t,e){e.d(t,{D9:function(){return w},F2:function(){return d},F4:function(){return y},G:function(){return c},Gb:function(){return v},Od:function(){return m},WE:function(){return S},Wi:function(){return u},Xl:function(){return g},YM:function(){return h},YP:function(){return a},e$:function(){return _},hU:function(){return R},iu:function(){return x},nM:function(){return f},ny:function(){return T},on:function(){return M},pC:function(){return o},r1:function(){return b},ri:function(){return s},t$:function(){return p},tO:function(){return l},uL:function(){return I},we:function(){return O}});var r=e(42275),i=function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},u=function(n){return"None"===n._tag},o=function(n){return"Some"===n._tag},a={_tag:"None"},c=function(n){return{_tag:"Some",value:n}},f=function(n){return"Left"===n._tag},l=function(n){return"Right"===n._tag},p=function(n){return{_tag:"Left",left:n}},d=function(n){return{_tag:"Right",right:n}},s=function(n){return[n]},m=function(n){return n.length>0},h=function(n){return n[0]},v=function(n){return n.slice(1)},g=[],y={},_=Object.prototype.hasOwnProperty,b=function(n){return i([n[0]],n.slice(1),!0)},I=function(n){return function(t,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var u=t.apply(void 0,r);return n.fromEither(null==u?p(e.apply(void 0,r)):d(u))}}},S=function(n){return function(t,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=t.apply(void 0,r);return n.fromEither(u(o)?p(e.apply(void 0,r)):d(o.value))}}},T=function(n,t){return(0,r.dual)(3,function(e,r,i){return t.flatMap(e,I(n)(r,i))})},R=function(n,t){return(0,r.dual)(3,function(e,r,i){return t.flatMap(e,S(n)(r,i))})},x=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})},O=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})},w=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})},M=function(n,t){return(0,r.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})}},76627:function(n,t,e){e.r(t),e.d(t,{Bounded:function(){return o},Eq:function(){return i},Field:function(){return s},MagmaSub:function(){return c},MonoidProduct:function(){return d},MonoidSum:function(){return p},Ord:function(){return u},SemigroupProduct:function(){return l},SemigroupSum:function(){return f},Show:function(){return a},isNumber:function(){return r}});var r=function(n){return"number"==typeof n},i={equals:function(n,t){return n===t}},u={equals:i.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},o={equals:i.equals,compare:u.compare,top:1/0,bottom:-1/0},a={show:function(n){return JSON.stringify(n)}},c={concat:function(n,t){return n-t}},f={concat:function(n,t){return n+t}},l={concat:function(n,t){return n*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(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},18896:function(n,t,e){e.r(t),e.d(t,{alt:function(){return b},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 I},filterMap:function(){return S},filterMapWithIndex:function(){return O},filterWithIndex:function(){return x},foldMap:function(){return h},foldMapWithIndex:function(){return y},map:function(){return o},mapLeft:function(){return d},mapWithIndex:function(){return c},partition:function(){return T},partitionMap:function(){return R},partitionMapWithIndex:function(){return M},partitionWithIndex:function(){return w},pipe:function(){return C},pipeable:function(){return W},promap:function(){return E},reduce:function(){return m},reduceRight:function(){return v},reduceRightWithIndex:function(){return _},reduceWithIndex:function(){return g}});var r=e(42925),i=e(88543),u=e(42275);function o(n){return function(t){return function(e){return n.map(e,t)}}}function a(n){return function(t){return function(e){return n.contramap(e,t)}}}function c(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function m(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function h(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function _(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function b(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function S(n){return function(t){return function(e){return n.filterMap(e,t)}}}function T(n){return function(t){return function(e){return n.partition(e,t)}}}function R(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function E(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function k(n){return function(t){return function(e){return n.compose(e,t)}}}function W(n){var t,e,W,C,D,P,F,U,A,L,N,j,q,Y,K,B,G={};if("function"==typeof n.map&&(G.map=o(n)),"function"==typeof n.contramap&&(G.contramap=a(n)),"function"==typeof n.mapWithIndex&&(G.mapWithIndex=c(n)),"function"==typeof n.ap&&(G.ap=f(n),G.apFirst=(0,r.apFirst)(n),G.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(G.chain=l(n),G.chainFirst=(0,i.chainFirst)(n),G.flatten=G.chain(u.identity)),"function"==typeof n.bimap&&(G.bimap=p(n),G.mapLeft=d(n)),"function"==typeof n.extend&&(G.extend=s(n),G.duplicate=G.extend(u.identity)),"function"==typeof n.reduce&&(G.reduce=m(n),G.foldMap=h(n),G.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(G.reduceWithIndex=g(n),G.foldMapWithIndex=y(n),G.reduceRightWithIndex=_(n)),"function"==typeof n.alt&&(G.alt=b(n)),"function"==typeof n.compact&&(G.compact=n.compact,G.separate=n.separate),"function"==typeof n.filter&&(G.filter=I(n),G.filterMap=S(n),G.partition=T(n),G.partitionMap=R(n)),"function"==typeof n.filterWithIndex&&(G.filterWithIndex=x(n),G.filterMapWithIndex=O(n),G.partitionWithIndex=w(n),G.partitionMapWithIndex=M(n)),"function"==typeof n.promap&&(G.promap=E(n)),"function"==typeof n.compose&&(G.compose=k(n)),"function"==typeof n.throwError){var H=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},V=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},z=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},X=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}};G.fromOption=H,G.fromEither=V,G.fromPredicate=z,G.filterOrElse=X}return G}var C=u.pipe},57029:function(n,t,e){e.r(t),e.d(t,{Eq:function(){return i},Monoid:function(){return a},Ord:function(){return c},Semigroup:function(){return u},Show:function(){return f},empty:function(){return o},endsWith:function(){return T},includes:function(){return I},isEmpty:function(){return y},isString:function(){return l},replace:function(){return s},size:function(){return _},slice:function(){return g},split:function(){return b},startsWith:function(){return S},toLowerCase:function(){return d},toUpperCase:function(){return p},trim:function(){return m},trimLeft:function(){return h},trimRight:function(){return v}});var r=e(28350),i={equals:function(n,t){return n===t}},u={concat:function(n,t){return n+t}},o="",a={concat:u.concat,empty:o},c={equals:i.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},f={show:function(n){return JSON.stringify(n)}},l=function(n){return"string"==typeof n},p=function(n){return n.toUpperCase()},d=function(n){return n.toLowerCase()},s=function(n,t){return function(e){return e.replace(n,t)}},m=function(n){return n.trim()},h=function(n){return n.trimLeft()},v=function(n){return n.trimRight()},g=function(n,t){return function(e){return e.slice(n,t)}},y=function(n){return 0===n.length},_=function(n){return n.length},b=function(n){return function(t){var e=t.split(n);return(0,r.isNonEmpty)(e)?e:[t]}},I=function(n,t){return function(e){return e.includes(n,t)}},S=function(n,t){return function(e){return e.startsWith(n,t)}},T=function(n,t){return function(e){return e.endsWith(n,t)}}},91756:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.getApplicativeComposition=t.getApplicativeMonoid=void 0;var r=e(93145),i=e(14632),u=e(8762);t.getApplicativeMonoid=function(n){var t=(0,r.getApplySemigroup)(n);return function(e){return{concat:t(e).concat,empty:n.of(e.empty)}}},t.getApplicativeComposition=function(n,t){var e=(0,u.getFunctorComposition)(n,t).map,o=(0,r.ap)(n,t);return{map:e,of:function(e){return n.of(t.of(e))},ap:function(n,t){return(0,i.pipe)(n,o(t))}}}},93145:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.sequenceS=t.sequenceT=t.getApplySemigroup=t.apS=t.apSecond=t.apFirst=t.ap=void 0;var o=e(14632),a=u(e(5309));function c(n,t,e){return function(r){for(var i=Array(e.length+1),u=0;u<e.length;u++)i[u]=e[u];return i[e.length]=r,0===t?n.apply(null,i):c(n,t-1,i)}}t.ap=function(n,t){return function(e){return function(r){return n.ap(n.map(r,function(n){return function(e){return t.ap(n,e)}}),e)}}},t.apFirst=function(n){return function(t){return function(e){return n.ap(n.map(e,function(n){return function(){return n}}),t)}}},t.apSecond=function(n){return function(t){return function(e){return n.ap(n.map(e,function(){return function(n){return n}}),t)}}},t.apS=function(n){return function(t,e){return function(r){return n.ap(n.map(r,function(n){return function(e){var r;return Object.assign({},n,((r={})[t]=e,r))}}),e)}}},t.getApplySemigroup=function(n){return function(t){return{concat:function(e,r){return n.ap(n.map(e,function(n){return function(e){return t.concat(n,e)}}),r)}}}};var f={1:function(n){return[n]},2:function(n){return function(t){return[n,t]}},3:function(n){return function(t){return function(e){return[n,t,e]}}},4:function(n){return function(t){return function(e){return function(r){return[n,t,e,r]}}}},5:function(n){return function(t){return function(e){return function(r){return function(i){return[n,t,e,r,i]}}}}}};t.sequenceT=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,i=t.length,u=(a.has.call(f,i)||(f[i]=c(o.tuple,i-1,[])),f[i]),l=n.map(t[0],u),p=1;p<i;p++)l=n.ap(l,t[p]);return l}},t.sequenceS=function(n){return function(t){for(var e=Object.keys(t),r=e.length,i=function(n){var t=n.length;switch(t){case 1:return function(t){var e;return(e={})[n[0]]=t,e};case 2:return function(t){return function(e){var r;return(r={})[n[0]]=t,r[n[1]]=e,r}};case 3:return function(t){return function(e){return function(r){var i;return(i={})[n[0]]=t,i[n[1]]=e,i[n[2]]=r,i}}};case 4:return function(t){return function(e){return function(r){return function(i){var u;return(u={})[n[0]]=t,u[n[1]]=e,u[n[2]]=r,u[n[3]]=i,u}}}};case 5:return function(t){return function(e){return function(r){return function(i){return function(u){var o;return(o={})[n[0]]=t,o[n[1]]=e,o[n[2]]=r,o[n[3]]=i,o[n[4]]=u,o}}}}};default:return c(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var i={},u=0;u<t;u++)i[n[u]]=e[u];return i},t-1,[])}}(e),u=n.map(t[e[0]],i),o=1;o<r;o++)u=n.ap(u,t[e[o]]);return u}}},92425:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),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 o=e(93145),a=e(18222),c=e(57756),f=e(14632),l=e(8762),p=u(e(5309)),d=u(e(7219)),s=u(e(78703)),m=e(4773),h=e(69706),v=e(3899),g=function(n){return 0===n.length};t.isEmpty=g,t.isNonEmpty=d.isNonEmpty,t.prepend=d.prepend,t.prependW=d.prependW,t.append=d.append,t.appendW=d.appendW;var y=function(n,t){return n<=0?[]:d.makeBy(t)(n)};t.makeBy=y;var _=function(n,e){return(0,t.makeBy)(n,function(){return e})};t.replicate=_,t.fromPredicate=function(n){return function(t){return n(t)?[t]:[]}};var b=function(n){return p.isNone(n)?[]:[n.value]};t.fromOption=b;var I=function(n){return p.isLeft(n)?[]:[n.right]};t.fromEither=I;var S=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}};t.matchW=S,t.match=t.matchW;var T=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.head(r),d.tail(r)):n()}};t.matchLeftW=T,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var R=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(d.init(r),d.last(r)):n()}};t.matchRightW=R,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var x=function(n){return function(t){for(var e=[],r=0;r<t.length;r++)e.push.apply(e,n(r,t[r]));return e}};t.chainWithIndex=x;var O=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}};t.scanLeft=O;var w=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}};t.scanRight=w;var M=function(n){return n.length};t.size=M,t.isOutOfBound=d.isOutOfBound,t.lookup=s.lookup,t.head=s.head,t.last=s.last;var E=function(n){return(0,t.isNonEmpty)(n)?p.some(d.tail(n)):p.none};t.tail=E;var k=function(n){return(0,t.isNonEmpty)(n)?p.some(d.init(n)):p.none};t.init=k;var W=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):e.slice(0,n)}};t.takeLeft=W;var C=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?(0,t.copy)(e):0===n?[]:e.slice(-n)}};t.takeRight=C,t.takeLeftWhile=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];if(!n(i))break;e.push(i)}return e}};var D=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};t.spanLeft=function(n){return function(e){var r,i=(0,t.splitAt)(D(e,n))(e);return{init:i[0],rest:i[1]}}};var P=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(n,e.length)}};t.dropLeft=P;var F=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?(0,t.copy)(e):n>=e.length?[]:e.slice(0,e.length-n)}};t.dropRight=F,t.dropLeftWhile=function(n){return function(t){return t.slice(D(t,n))}},t.findIndex=s.findIndex,t.findFirst=function(n){return s.findFirst(n)},t.findFirstMap=s.findFirstMap,t.findLast=function(n){return s.findLast(n)},t.findLastMap=s.findLastMap,t.findLastIndex=s.findLastIndex;var U=function(n){return n.slice()};t.copy=U;var A=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}};t.insertAt=A;var L=function(n,e){return(0,t.modifyAt)(n,function(){return e})};t.updateAt=L;var N=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?p.none:p.some((0,t.unsafeDeleteAt)(n,e))}};t.deleteAt=N;var j=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}};t.modifyAt=j;var q=function(n){return(0,t.isEmpty)(n)?[]:n.slice().reverse()};t.reverse=q;var Y=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t};t.rights=Y;var K=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=K;var B=function(n){return function(e){return e.length<=1?(0,t.copy)(e):e.slice().sort(n.compare)}};t.sort=B;var G=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r};t.zipWith=G,t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})};var H=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]};t.unzip=H;var V=function(n){var e=d.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}};t.prependAll=V;var z=function(n){var e=d.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}};t.intersperse=z;var X=function(n){var e=d.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}};t.rotate=X,t.elem=s.elem;var J=function(n){var e=d.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}};t.uniq=J;var $=function(n){var e=d.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):(0,t.copy)(n)}};t.sortBy=$;var Z=function(n){var e=d.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}};t.chop=Z;var Q=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?d.splitAt(n)(e):(0,t.isEmpty)(e)?[(0,t.copy)(e),[]]:[[],(0,t.copy)(e)]}};t.splitAt=Q;var nn=function(n){var e=d.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):[]}};t.chunksOf=nn;var nt=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}};t.fromOptionK=nt,t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var i=function(n,u){return(0,t.isNonEmpty)(u)?(0,t.flatMap)(d.head(u),function(e){return i((0,f.pipe)(n,(0,t.append)(e)),d.tail(u))}):r.apply(void 0,n)?[e.apply(void 0,n)]:[]};return i([],n)};var ne=function(n){return function(e){return(0,t.isEmpty)(e)?(0,t.copy)(n):(0,t.isEmpty)(n)?(0,t.copy)(e):e.concat(n)}};function nr(n){var e=d.union(n);return function(r,i){if(void 0===i){var u=nr(n);return function(n){return u(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?e(i)(r):(0,t.isNonEmpty)(r)?(0,t.copy)(r):(0,t.copy)(i)}}function ni(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var i=ni(n);return function(n){return i(n,t)}}return t.filter(function(n){return e(n,r)})}}function nu(n){var e=(0,t.elem)(n);return function(t,r){if(void 0===r){var i=nu(n);return function(n){return i(n,t)}}return t.filter(function(n){return!e(n,r)})}}t.concatW=ne,t.concat=t.concatW,t.union=nr,t.intersection=ni,t.difference=nu;var no=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},na=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},nc=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},nf=function(n,e){return(0,f.pipe)(n,(0,t.filter)(e))},nl=function(n,e){return(0,f.pipe)(n,(0,t.filterMap)(e))},np=function(n,e){return(0,f.pipe)(n,(0,t.partition)(e))},nd=function(n,e){return(0,f.pipe)(n,(0,t.partitionMap)(e))},ns=function(n,e){return(0,f.pipe)(n,(0,t.partitionWithIndex)(e))},nm=function(n,e){return(0,f.pipe)(n,(0,t.partitionMapWithIndex)(e))},nh=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},nv=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},ng=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},ny=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},n_=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},nb=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},nI=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},nS=function(n,e){return(0,f.pipe)(n,(0,t.filterMapWithIndex)(e))},nT=function(n,e){return(0,f.pipe)(n,(0,t.filterWithIndex)(e))},nR=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},nx=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},nO=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},nw=s._chainRecDepthFirst,nM=s._chainRecBreadthFirst;t.of=d.of;var nE=function(){return[]};t.zero=nE;var nk=function(n){return function(t){return t.map(function(t){return n(t)})}};t.map=nk;var nW=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})};t.ap=nW,t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(f.identity);var nC=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}};t.mapWithIndex=nC;var nD=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);p.isSome(i)&&e.push(i.value)}return e}};t.filterMapWithIndex=nD;var nP=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})};t.filterMap=nP,t.compact=(0,t.filterMap)(f.identity);var nF=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,m.separated)(t,e)};t.separate=nF;var nU=function(n){return function(t){return t.filter(n)}};t.filter=nU;var nA=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})};t.partition=nA;var nL=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,m.separated)(e,r)}};t.partitionWithIndex=nL;var nN=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})};t.partitionMap=nN;var nj=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,m.separated)(e,r)}};t.partitionMapWithIndex=nj;var nq=function(n){return function(t){return t.concat(n())}};t.altW=nq,t.alt=t.altW;var nY=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}};t.filterWithIndex=nY;var nK=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}};t.extend=nK,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 nB=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}};t.traverse=nB;var nG=function(n){return function(e){return nv(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),r)})}};t.sequence=nG;var nH=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,i,u){return n.ap(n.map(i,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(r,u))})}};t.traverseWithIndex=nH;var nV=function(n){var t=n8(n);return function(n){return function(e){return t(e,n)}}};t.wither=nV;var nz=function(n){var t=n2(n);return function(n){return function(e){return t(e,n)}}};t.wilt=nz;var nX=function(n,t){for(var e=[],r=n;;){var i=t(r);if(p.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e};t.unfold=nX,t.URI="Array",t.getShow=s.getShow;var nJ=function(){return{concat:function(n,t){return n.concat(t)}}};t.getSemigroup=nJ;var n$=function(){return{concat:(0,t.getSemigroup)().concat,empty:[]}};t.getMonoid=n$,t.getEq=s.getEq,t.getOrd=s.getOrd;var nZ=function(n){var t=nr(n);return{concat:function(n,e){return t(e)(n)}}};t.getUnionSemigroup=nZ;var nQ=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:[]}};t.getUnionMonoid=nQ;var n0=function(n){var t=ni(n);return{concat:function(n,e){return t(e)(n)}}};t.getIntersectionSemigroup=n0;var n1=function(n){var t=nu(n);return{concat:function(n,e){return t(e)(n)}}};t.getDifferenceMagma=n1,t.Functor={URI:t.URI,map:no},t.flap=(0,l.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:no,mapWithIndex:na},t.Apply={URI:t.URI,map:no,ap:nc},t.apFirst=(0,o.apFirst)(t.Apply),t.apSecond=(0,o.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:no,ap:nc,of:t.of},t.Chain={URI:t.URI,map:no,ap:nc,chain:t.flatMap},t.chainFirst=(0,a.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:no,ap:nc,of:t.of,chain:t.flatMap},t.Unfoldable={URI:t.URI,unfold:t.unfold},t.Alt={URI:t.URI,map:no,alt:nh},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,v.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:no,ap:nc,of:t.of,alt:nh,zero:t.zero},t.Extend={URI:t.URI,map:no,extend:nR},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:no,compact:t.compact,separate:t.separate,filter:nf,filterMap:nl,partition:np,partitionMap:nd},t.FilterableWithIndex={URI:t.URI,map:no,mapWithIndex:na,compact:t.compact,separate:t.separate,filter:nf,filterMap:nl,partition:np,partitionMap:nd,partitionMapWithIndex:nm,partitionWithIndex:ns,filterMapWithIndex:nS,filterWithIndex:nT},t.Foldable={URI:t.URI,reduce:nv,foldMap:ng,reduceRight:ny},t.FoldableWithIndex={URI:t.URI,reduce:nv,foldMap:ng,reduceRight:ny,reduceWithIndex:n_,foldMapWithIndex:nb,reduceRightWithIndex:nI},t.Traversable={URI:t.URI,map:no,reduce:nv,foldMap:ng,reduceRight:ny,traverse:nx,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:no,mapWithIndex:na,reduce:nv,foldMap:ng,reduceRight:ny,reduceWithIndex:n_,foldMapWithIndex:nb,reduceRightWithIndex:nI,traverse:nx,sequence:t.sequence,traverseWithIndex:nO};var n8=(0,h.witherDefault)(t.Traversable,t.Compactable),n2=(0,h.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:no,compact:t.compact,separate:t.separate,filter:nf,filterMap:nl,partition:np,partitionMap:nd,reduce:nv,foldMap:ng,reduceRight:ny,traverse:nx,sequence:t.sequence,wither:n8,wilt:n2},t.chainRecDepthFirst=s.chainRecDepthFirst,t.ChainRecDepthFirst={URI:t.URI,map:no,ap:nc,chain:t.flatMap,chainRec:nw},t.chainRecBreadthFirst=s.chainRecBreadthFirst,t.ChainRecBreadthFirst={URI:t.URI,map:no,ap:nc,chain:t.flatMap,chainRec:nM},t.filterE=(0,h.filterE)(t.Witherable),t.FromEither={URI:t.URI,fromEither:t.fromEither},t.fromEitherK=(0,c.fromEitherK)(t.FromEither),t.unsafeInsertAt=d.unsafeInsertAt;var n7=function(n,e,r){return(0,t.isNonEmpty)(r)?d.unsafeUpdateAt(n,e,r):[]};t.unsafeUpdateAt=n7;var n3=function(n,t){var e=t.slice();return e.splice(n,1),e};t.unsafeDeleteAt=n3,t.every=s.every;var n4=function(n){return function(t){return t.some(n)}};t.some=n4,t.exists=t.some,t.intercalate=s.intercalate,t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var n5=(0,l.let)(t.Functor);t.let=n5,t.bind=(0,a.bind)(t.Chain),t.apS=(0,o.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:no,ap:nc,of:t.of,chain:t.flatMap,filter:nf,filterMap:nl,partition:np,partitionMap:nd,mapWithIndex:na,partitionMapWithIndex:nm,partitionWithIndex:ns,filterMapWithIndex:nS,filterWithIndex:nT,alt:nh,zero:t.zero,unfold:t.unfold,reduce:nv,foldMap:ng,reduceRight:ny,traverse:nx,sequence:t.sequence,reduceWithIndex:n_,foldMapWithIndex:nb,reduceRightWithIndex:nI,traverseWithIndex:nO,extend:nR,wither:n8,wilt:n2}},18222:function(n,t){function e(n){return function(t,e){return n.chain(t,function(t){return n.map(e(t),function(){return t})})}}Object.defineProperty(t,"__esModule",{value:!0}),t.bind=t.tap=t.chainFirst=void 0,t.chainFirst=function(n){var t=e(n);return function(n){return function(e){return t(e,n)}}},t.tap=e,t.bind=function(n){return function(t,e){return function(r){return n.chain(r,function(r){return n.map(e(r),function(n){var e;return Object.assign({},r,((e={})[t]=n,e))})})}}}},71166:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.tailRec=void 0;var e=function(n,t){for(var e=t(n);"Left"===e._tag;)e=t(e.left);return e.right};t.tailRec=e},87412:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),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 o=e(91756),a=e(93145),c=u(e(18222)),f=e(71166),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),m=e(4773),h=e(69706);t.left=s.left,t.right=s.right,t.flatMap=(0,p.dual)(2,function(n,e){return(0,t.isLeft)(n)?n:e(n.right)});var v=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},g=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},y=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},_=function(n){return function(e,r){var i=(0,t.foldMap)(n);return(0,p.pipe)(e,i(r))}},b=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},I=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},S=function(n,e,r){return(0,p.pipe)(n,(0,t.bimap)(e,r))},T=function(n,e){return(0,p.pipe)(n,(0,t.mapLeft)(e))},R=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},x=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},O=function(n,e){return(0,f.tailRec)(e(n),function(n){return(0,t.isLeft)(n)?(0,t.right)((0,t.left)(n.left)):(0,t.isLeft)(n.right)?(0,t.left)(e(n.right.left)):(0,t.right)((0,t.right)(n.right.right))})};t.URI="Either";var w=function(n,e){return{show:function(r){return(0,t.isLeft)(r)?"left(".concat(n.show(r.left),")"):"right(".concat(e.show(r.right),")")}}};t.getShow=w;var M=function(n,e){return{equals:function(r,i){return r===i||((0,t.isLeft)(r)?(0,t.isLeft)(i)&&n.equals(r.left,i.left):(0,t.isRight)(i)&&e.equals(r.right,i.right))}}};t.getEq=M;var E=function(n){return{concat:function(e,r){return(0,t.isLeft)(r)?e:(0,t.isLeft)(e)?r:(0,t.right)(n.concat(e.right,r.right))}}};t.getSemigroup=E;var k=function(n){var e=(0,t.left)(n.empty);return{URI:t.URI,_E:void 0,compact:function(n){return(0,t.isLeft)(n)?n:"None"===n.right._tag?e:(0,t.right)(n.right.value)},separate:function(n){return(0,t.isLeft)(n)?(0,m.separated)(n,n):(0,t.isLeft)(n.right)?(0,m.separated)((0,t.right)(n.right.left),e):(0,m.separated)(e,(0,t.right)(n.right.right))}}};t.getCompactable=k;var W=function(n){var e=(0,t.left)(n.empty),r=(0,t.getCompactable)(n),i=r.compact,u=r.separate,o=function(n,r){return(0,t.isLeft)(n)?n:r(n.right)?n:e},a=function(n,r){return(0,t.isLeft)(n)?(0,m.separated)(n,n):r(n.right)?(0,m.separated)(e,(0,t.right)(n.right)):(0,m.separated)((0,t.right)(n.right),e)};return{URI:t.URI,_E:void 0,map:v,compact:i,separate:u,filter:o,filterMap:function(n,r){if((0,t.isLeft)(n))return n;var i=r(n.right);return"None"===i._tag?e:(0,t.right)(i.value)},partition:a,partitionMap:function(n,r){if((0,t.isLeft)(n))return(0,m.separated)(n,n);var i=r(n.right);return(0,t.isLeft)(i)?(0,m.separated)((0,t.right)(i.left),e):(0,m.separated)(e,(0,t.right)(i.right))}}};t.getFilterable=W;var C=function(n){var e=(0,t.getFilterable)(n),r=(0,t.getCompactable)(n);return{URI:t.URI,_E:void 0,map:v,compact:e.compact,separate:e.separate,filter:e.filter,filterMap:e.filterMap,partition:e.partition,partitionMap:e.partitionMap,traverse:I,sequence:t.sequence,reduce:y,foldMap:_,reduceRight:b,wither:(0,h.witherDefault)(t.Traversable,r),wilt:(0,h.wiltDefault)(t.Traversable,r)}};t.getWitherable=C;var D=function(n){return{URI:t.URI,_E:void 0,map:v,ap:function(e,r){return(0,t.isLeft)(e)?(0,t.isLeft)(r)?(0,t.left)(n.concat(e.left,r.left)):e:(0,t.isLeft)(r)?r:(0,t.right)(e.right(r.right))},of:t.of}};t.getApplicativeValidation=D;var P=function(n){return{URI:t.URI,_E:void 0,map:v,alt:function(e,r){if((0,t.isRight)(e))return e;var i=r();return(0,t.isLeft)(i)?(0,t.left)(n.concat(e.left,i.left)):i}}};t.getAltValidation=P;var F=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e.right))}};t.map=F,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 U=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.isLeft)(n)?n:(0,t.right)(e.right(n.right))}};t.apW=U,t.ap=t.apW,t.Apply={URI:t.URI,map:v,ap:g},t.Applicative={URI:t.URI,map:v,ap:g,of:t.of},t.Chain={URI:t.URI,map:v,ap:g,chain:t.flatMap},t.Monad={URI:t.URI,map:v,ap:g,of:t.of,chain:t.flatMap};var A=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(n,r.right)}};t.reduce=A;var L=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.empty:e(r.right)}}};t.foldMap=L;var N=function(n,e){return function(r){return(0,t.isLeft)(r)?n:e(r.right,n)}};t.reduceRight=N,t.Foldable={URI:t.URI,reduce:y,foldMap:_,reduceRight:b};var j=function(n){return function(e){return function(r){return(0,t.isLeft)(r)?n.of((0,t.left)(r.left)):n.map(e(r.right),t.right)}}};t.traverse=j;var q=function(n){return function(e){return(0,t.isLeft)(e)?n.of((0,t.left)(e.left)):n.map(e.right,t.right)}};t.sequence=q,t.Traversable={URI:t.URI,map:v,reduce:y,foldMap:_,reduceRight:b,traverse:I,sequence:t.sequence};var Y=function(n,e){return function(r){return(0,t.isLeft)(r)?(0,t.left)(n(r.left)):(0,t.right)(e(r.right))}};t.bimap=Y;var K=function(n){return function(e){return(0,t.isLeft)(e)?(0,t.left)(n(e.left)):e}};t.mapLeft=K,t.Bifunctor={URI:t.URI,bimap:S,mapLeft:T};var B=function(n){return function(e){return(0,t.isLeft)(e)?n():e}};t.altW=B,t.alt=t.altW,t.Alt={URI:t.URI,map:v,alt:R};var G=function(n){return function(e){return(0,t.isLeft)(e)?e:(0,t.right)(n(e))}};t.extend=G,t.Extend={URI:t.URI,map:v,extend:x},t.ChainRec={URI:t.URI,map:v,ap:g,chain:t.flatMap,chainRec:O},t.throwError=t.left,t.MonadThrow={URI:t.URI,map:v,ap:g,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 H=function(n,e){return function(r){return(0,t.isLeft)(r)?n(r.left):e(r.right)}};t.matchW=H,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var V=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e.right}};t.getOrElseW=V,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 X={flatMap:t.flatMap};t.flatMapNullable=s.flatMapNullable(z,X),t.flatMapOption=s.flatMapOption(z,X),t.filterOrElse=(0,l.filterOrElse)(t.FromEither,t.Chain),t.filterOrElseW=t.filterOrElse;var J=function(n){return(0,t.isLeft)(n)?(0,t.right)(n.left):(0,t.left)(n.right)};t.swap=J;var $=function(n){return function(e){return(0,t.isLeft)(e)?n(e.left):e}};t.orElseW=$,t.orElse=t.orElseW;var Z=function(n){return function(e){return null==e?(0,t.left)(n):(0,t.right)(e)}};t.fromNullable=Z;var Q=function(n,e){try{return(0,t.right)(n())}catch(r){return(0,t.left)(e(r))}};t.tryCatch=Q;var nn=function(n,e){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return(0,t.tryCatch)(function(){return n.apply(void 0,r)},e)}};t.tryCatchK=nn;var nt=function(n){var e=(0,t.fromNullable)(n);return function(n){return(0,p.flow)(n,e)}};t.fromNullableK=nt;var ne=function(n){var e=(0,t.fromNullableK)(n);return function(n){return(0,t.flatMap)(e(n))}};t.chainNullableK=ne,t.toUnion=(0,t.foldW)(p.identity,p.identity),t.toError=function(n){return n instanceof Error?n:Error(String(n))},t.elem=function n(e){return function(r,i){if(void 0===i){var u=n(e);return function(n){return u(r,n)}}return!(0,t.isLeft)(i)&&e.equals(r,i.right)}};var nr=function(n){return function(e){return!(0,t.isLeft)(e)&&n(e.right)}};t.exists=nr,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var ni=(0,d.let)(t.Functor);t.let=ni,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 nu=function(n){return function(e){var r=n(0,s.head(e));if((0,t.isLeft)(r))return r;for(var i=[r.right],u=1;u<e.length;u++){var o=n(u,e[u]);if((0,t.isLeft)(o))return o;i.push(o.right)}return(0,t.right)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=nu;var no=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return s.isNonEmpty(n)?e(n):t.ApT}};t.traverseReadonlyArrayWithIndex=no,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var na=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})};t.traverseArray=na,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(n,e){return(0,t.tryCatch)(function(){return JSON.parse(n)},e)};var nc=function(n,e){return(0,t.tryCatch)(function(){var t=JSON.stringify(n);if("string"!=typeof t)throw Error("Converting unsupported structure to JSON");return t},e)};t.stringifyJSON=nc,t.either={URI:t.URI,map:v,of:t.of,ap:g,chain:t.flatMap,reduce:y,foldMap:_,reduceRight:b,traverse:I,sequence:t.sequence,bimap:S,mapLeft:T,alt:R,extend:x,chainRec:O,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative);var nf=function(n,e){return(0,a.getApplySemigroup)((0,t.getApplicativeValidation)(n))(e)};t.getValidationSemigroup=nf;var nl=function(n,e){return(0,o.getApplicativeMonoid)((0,t.getApplicativeValidation)(n))(e)};t.getValidationMonoid=nl,t.getValidation=function(n){var e=(0,t.getApplicativeValidation)(n).ap,r=(0,t.getAltValidation)(n).alt;return{URI:t.URI,_E:void 0,map:v,of:t.of,chain:t.flatMap,bimap:S,mapLeft:T,reduce:y,foldMap:_,reduceRight:b,extend:x,traverse:I,sequence:t.sequence,chainRec:O,throwError:t.throwError,ap:e,alt:r}}},8190:function(n,t,e){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=e(14632),i=function(n){return{equals:function(t,e){return t===e||n(t,e)}}};t.fromEquals=i;var u=function(n){return(0,t.fromEquals)(function(t,e){for(var r in n)if(!n[r].equals(t[r],e[r]))return!1;return!0})};t.struct=u;var o=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromEquals)(function(t,e){return n.every(function(n,r){return n.equals(t[r],e[r])})})};t.tuple=o;var a=function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))},c=function(n){return function(e){return(0,t.fromEquals)(function(t,r){return e.equals(n(t),n(r))})}};t.contramap=c,t.URI="Eq",t.eqStrict={equals:function(n,t){return n===t}};var f={equals:function(){return!0}},l=function(){return{concat:function(n,e){return(0,t.fromEquals)(function(t,r){return n.equals(t,r)&&e.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(n,t){return n.valueOf()===t.valueOf()}}},57756:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),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 o=e(18222),a=e(14632),c=u(e(5309));function f(n){return function(t){return function(e){return n.fromEither(c.isNone(e)?c.left(t()):c.right(e.value))}}}function l(n){var t=f(n);return function(n){var e=t(n);return function(n){return(0,a.flow)(n,e)}}}function p(n){return function(t){return(0,a.flow)(t,n.fromEither)}}function d(n,t){var e=p(n),r=(0,o.tap)(t);return function(n,t){return r(n,e(t))}}t.fromOption=f,t.fromPredicate=function(n){return function(t,e){return function(r){return n.fromEither(t(r)?c.right(r):c.left(e(r)))}}},t.fromOptionK=l,t.chainOptionK=function(n,t){var e=l(n);return function(n){var r=e(n);return function(n){return function(e){return t.chain(e,r(n))}}}},t.fromEitherK=p,t.chainEitherK=function(n,t){var e=p(n);return function(n){return function(r){return t.chain(r,e(n))}}},t.chainFirstEitherK=function(n,t){var e=d(n,t);return function(n){return function(t){return e(t,n)}}},t.filterOrElse=function(n,t){return function(e,r){return function(i){return t.chain(i,function(t){return n.fromEither(e(t)?c.right(t):c.left(r(t)))})}}},t.tapEither=d},8762:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.asUnit=t.as=t.getFunctorComposition=t.let=t.bindTo=t.flap=t.map=void 0;var r=e(14632);function i(n,t){return function(e){return function(r){return n.map(r,function(n){return t.map(n,e)})}}}function u(n){return function(t,e){return n.map(t,function(){return e})}}t.map=i,t.flap=function(n){return function(t){return function(e){return n.map(e,function(n){return n(t)})}}},t.bindTo=function(n){return function(t){return function(e){return n.map(e,function(n){var e;return(e={})[t]=n,e})}}},t.let=function(n){return function(t,e){return function(r){return n.map(r,function(n){var r;return Object.assign({},n,((r={})[t]=e(n),r))})}}},t.getFunctorComposition=function(n,t){var e=i(n,t);return{map:function(n,t){return(0,r.pipe)(n,e(t))}}},t.as=u,t.asUnit=function(n){var t=u(n);return function(n){return t(n,void 0)}}},73540:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.concatAll=t.endo=t.filterSecond=t.filterFirst=t.reverse=void 0;var e=function(n){return{concat:function(t,e){return n.concat(e,t)}}};t.reverse=e;var r=function(n){return function(t){return{concat:function(e,r){return n(e)?t.concat(e,r):r}}}};t.filterFirst=r;var i=function(n){return function(t){return{concat:function(e,r){return n(r)?t.concat(e,r):e}}}};t.filterSecond=i;var u=function(n){return function(t){return{concat:function(e,r){return t.concat(n(e),n(r))}}}};t.endo=u;var o=function(n){return function(t){return function(e){return e.reduce(function(t,e){return n.concat(t,e)},t)}}};t.concatAll=o},7219:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.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=e(93145),c=e(18222),f=e(14632),l=e(8762),p=u(e(5309)),d=e(83235),s=u(e(84612)),m=function(n){return n.length>0};t.isNonEmpty=m;var h=function(n,t){return n<0||n>=t.length};t.isOutOfBound=h;var v=function(n){return function(t){return o([n],t,!0)}};t.prependW=v,t.prepend=t.prependW;var g=function(n){return function(t){return o(o([],t,!0),[n],!1)}};t.appendW=g,t.append=t.appendW;var y=function(n,e,r){if((0,t.isNonEmpty)(r)){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i.splice(n,0,e),i}return[e]};t.unsafeInsertAt=y;var _=function(n,e,r){var i=(0,t.fromReadonlyNonEmptyArray)(r);return i[n]=e,i};t.unsafeUpdateAt=_;var b=function(n){return function(e){if(1===e.length)return(0,t.copy)(e);for(var r=[(0,t.head)(e)],i=(0,t.tail)(e),u=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<i.length;o++)u(i[o]);return r}};t.uniq=b;var I=function(n){if((0,t.isNonEmpty)(n)){var e=(0,d.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return t.copy};t.sortBy=I;var S=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,f.pipe)(t,W(n)))}}};t.union=S;var T=function(n){return function(e){var r=e.length,i=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(i),e)||0===i)return(0,t.copy)(e);if(!(i<0))return(0,t.rotate)(i-r)(e);var u=(0,t.splitAt)(-i)(e),o=u[0],a=u[1];return(0,f.pipe)(a,W(o))}};t.rotate=T,t.fromReadonlyNonEmptyArray=p.fromReadonlyNonEmptyArray;var R=function(n){return(0,t.isNonEmpty)(n)?p.some(n):p.none};t.fromArray=R;var x=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}};t.makeBy=x;var O=function(n){return(0,t.makeBy)(function(){return n})};t.replicate=O;var w=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]};t.range=w;var M=function(n){return[(0,t.head)(n),(0,t.tail)(n)]};t.unprepend=M;var E=function(n){return[(0,t.init)(n),(0,t.last)(n)]};function k(n){return function(t){return t.concat(n)}}function W(n,t){return t?n.concat(t):function(t){return t.concat(n)}}t.unappend=E,t.concatW=k,t.concat=W;var C=function(n){return o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)};function D(n){return function(t){var e=t.length;if(0===e)return[];for(var r=[],i=t[0],u=[i],o=1;o<e;o++){var a=t[o];n.equals(a,i)?u.push(a):(r.push(u),u=[i=a])}return r.push(u),r}}t.reverse=C,t.group=D;var P=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);p.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}};t.groupBy=P;var F=function(n){return function(t){return t.slice().sort(n.compare)}};t.sort=F;var U=function(n,e){return function(r){return n<0||n>r.length?p.none:p.some((0,t.unsafeInsertAt)(n,e,r))}};t.insertAt=U;var A=function(n,e){return(0,t.modifyAt)(n,function(){return e})};t.updateAt=A;var L=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?p.none:p.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}};t.modifyAt=L,t.copy=t.fromReadonlyNonEmptyArray;var N=function(n){return[n]};t.of=N;var j=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r};t.zipWith=j,t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})};var q=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]};t.unzip=q;var Y=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}};t.prependAll=Y;var K=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,f.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):(0,t.copy)(e)}};t.intersperse=K,t.foldMapWithIndex=s.foldMapWithIndex,t.foldMap=s.foldMap;var B=function(n){return function(e){for(var r=(0,t.fromReadonlyNonEmptyArray)(n(0,(0,t.head)(e))),i=1;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}};t.chainWithIndex=B;var G=function(n){return function(e){for(var r=n(e),i=r[0],u=r[1],o=[i],a=u;(0,t.isNonEmpty)(a);){var c=n(a),f=c[0],l=c[1];o.push(f),a=l}return o}};t.chop=G;var H=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[(0,t.copy)(e),[]]:[(0,f.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}};t.splitAt=H;var V=function(n){return(0,t.chop)((0,t.splitAt)(n))};t.chunksOf=V;var z=function(n,e){return(0,f.pipe)(n,(0,t.map)(e))},X=function(n,e){return(0,f.pipe)(n,(0,t.mapWithIndex)(e))},J=function(n,e){return(0,f.pipe)(n,(0,t.ap)(e))},$=function(n,e){return(0,f.pipe)(n,(0,t.extend)(e))},Z=function(n,e,r){return(0,f.pipe)(n,(0,t.reduce)(e,r))},Q=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},nn=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRight)(e,r))},nt=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},ne=function(n,e){return(0,f.pipe)(n,(0,t.alt)(e))},nr=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceWithIndex)(e,r))},ni=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},nu=function(n,e,r){return(0,f.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},no=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,f.pipe)(n,e(t))}},na=function(n){return function(t){return(0,f.pipe)(t,k(n()))}};t.altW=na,t.alt=t.altW;var nc=function(n){return(0,t.flatMap)(function(e){return(0,f.pipe)(n,(0,t.map)(e))})};t.ap=nc,t.flatMap=(0,f.dual)(2,function(n,e){return(0,f.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))});var nf=function(n){return function(e){for(var r=(0,t.tail)(e),i=[n(e)];(0,t.isNonEmpty)(r);)i.push(n(r)),r=(0,t.tail)(r);return i}};t.extend=nf,t.duplicate=(0,t.extend)(f.identity),t.flatten=(0,t.flatMap)(f.identity);var nl=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})};t.map=nl;var np=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],i=1;i<e.length;i++)r.push(n(i,e[i]));return r}};t.mapWithIndex=np,t.reduce=s.reduce,t.reduceWithIndex=s.reduceWithIndex,t.reduceRight=s.reduceRight,t.reduceRightWithIndex=s.reduceRightWithIndex;var nd=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}};t.traverse=nd;var ns=function(n){return(0,t.traverseWithIndex)(n)(function(n,t){return t})};t.sequence=ns;var nm=function(n){return function(e){return function(r){for(var i=n.map(e(0,(0,t.head)(r)),t.of),u=1;u<r.length;u++)i=n.ap(n.map(i,function(n){return function(e){return(0,f.pipe)(n,(0,t.append)(e))}}),e(u,r[u]));return i}}};t.traverseWithIndex=nm,t.extract=s.head,t.URI="NonEmptyArray",t.getShow=s.getShow;var nh=function(){return{concat:W}};t.getSemigroup=nh,t.getEq=s.getEq;var nv=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}};t.getUnionSemigroup=nv,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:X},t.Apply={URI:t.URI,map:z,ap:J},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:z,ap:J,of:t.of},t.Chain={URI:t.URI,map:z,ap:J,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:z,ap:J,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:Z,foldMap:Q,reduceRight:nn},t.FoldableWithIndex={URI:t.URI,reduce:Z,foldMap:Q,reduceRight:nn,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu},t.Traversable={URI:t.URI,map:z,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:z,mapWithIndex:X,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:t.sequence,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no},t.Alt={URI:t.URI,map:z,alt:ne},t.Comonad={URI:t.URI,map:z,extend:$,extract:t.extract},t.Do=(0,t.of)(p.emptyRecord),t.bindTo=(0,l.bindTo)(t.Functor);var ng=(0,l.let)(t.Functor);t.let=ng,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=s.head;var ny=function(n){return n.slice(1)};t.tail=ny,t.last=s.last;var n_=function(n){return n.slice(0,-1)};t.init=n_,t.min=s.min,t.max=s.max;var nb=function(n){return function(t){return t.reduce(n.concat)}};t.concatAll=nb;var nI=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}};t.matchLeft=nI;var nS=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}};t.matchRight=nS;var nT=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}};t.modifyHead=nT;var nR=function(n){return(0,t.modifyHead)(function(){return n})};t.updateHead=nR;var nx=function(n){return function(e){return(0,f.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}};t.modifyLast=nx;var nO=function(n){return(0,t.modifyLast)(function(){return n})};t.updateLast=nO,t.intercalate=s.intercalate,t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=D(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):[]}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})};var nw=function(n){return function(e){return(0,t.fromArray)(e.filter(function(t,e){return n(e,t)}))}};t.filterWithIndex=nw,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,f.pipe)(e,(0,t.prepend)(n))};var nM=function(n,e){return(0,f.pipe)(n,(0,t.append)(e))};t.snoc=nM,t.prependToAll=t.prependAll,t.fold=s.concatAll,t.nonEmptyArray={URI:t.URI,of:t.of,map:z,mapWithIndex:X,ap:J,chain:t.flatMap,extend:$,extract:t.extract,reduce:Z,foldMap:Q,reduceRight:nn,traverse:nt,sequence:t.sequence,reduceWithIndex:nr,foldMapWithIndex:ni,reduceRightWithIndex:nu,traverseWithIndex:no,alt:ne}},72720:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),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 o=e(91756),a=e(93145),c=u(e(18222)),f=e(57756),l=e(14632),p=e(8762),d=u(e(5309)),s=e(87612),m=e(98744),h=e(4773),v=e(69706),g=e(3899);t.none=d.none,t.some=d.some,t.fromPredicate=function(n){return function(e){return n(e)?(0,t.some)(e):t.none}};var y=function(n){return"Right"===n._tag?t.none:(0,t.some)(n.left)};t.getLeft=y;var _=function(n){return"Left"===n._tag?t.none:(0,t.some)(n.right)};t.getRight=_;var b=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},I=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},S=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},T=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},R=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},x=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},O=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},w=function(n,e){return(0,l.pipe)(n,(0,t.filter)(e))},M=function(n,e){return(0,l.pipe)(n,(0,t.filterMap)(e))},E=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},k=function(n,e){return(0,l.pipe)(n,(0,t.partition)(e))},W=function(n,e){return(0,l.pipe)(n,(0,t.partitionMap)(e))};t.URI="Option";var C=function(n){return{show:function(e){return(0,t.isNone)(e)?"none":"some(".concat(n.show(e.value),")")}}};t.getShow=C;var D=function(n){return{equals:function(e,r){return e===r||((0,t.isNone)(e)?(0,t.isNone)(r):!(0,t.isNone)(r)&&n.equals(e.value,r.value))}}};t.getEq=D;var P=function(n){return{equals:(0,t.getEq)(n).equals,compare:function(e,r){return e===r?0:(0,t.isSome)(e)?(0,t.isSome)(r)?n.compare(e.value,r.value):1:-1}}};t.getOrd=P;var F=function(n){return{concat:function(e,r){return(0,t.isNone)(e)?r:(0,t.isNone)(r)?e:(0,t.some)(n.concat(e.value,r.value))},empty:t.none}};t.getMonoid=F;var U=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e.value))}};t.map=U,t.Functor={URI:t.URI,map:b},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(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.isNone)(n)?t.none:(0,t.some)(e.value(n.value))}};t.ap=A,t.Apply={URI:t.URI,map:b,ap:I},t.Applicative={URI:t.URI,map:b,ap:I,of:t.of},t.flatMap=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?t.none:e(n.value)}),t.Chain={URI:t.URI,map:b,ap:I,chain:t.flatMap},t.Monad={URI:t.URI,map:b,ap:I,of:t.of,chain:t.flatMap};var L=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(n,r.value)}};t.reduce=L;var N=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.empty:e(r.value)}}};t.foldMap=N;var j=function(n,e){return function(r){return(0,t.isNone)(r)?n:e(r.value,n)}};t.reduceRight=j,t.Foldable={URI:t.URI,reduce:S,foldMap:T,reduceRight:R},t.orElse=(0,l.dual)(2,function(n,e){return(0,t.isNone)(n)?e():n}),t.altW=t.orElse,t.alt=t.orElse,t.Alt={URI:t.URI,map:b,alt:O};var q=function(){return t.none};t.zero=q,t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,g.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:b,ap:I,of:t.of,alt:O,zero:t.zero};var Y=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.some)(n(e))}};t.extend=Y,t.Extend={URI:t.URI,map:b,extend:E},t.compact=(0,t.flatMap)(l.identity);var K=(0,h.separated)(t.none,t.none),B=function(n){return(0,t.isNone)(n)?K:(0,h.separated)((0,t.getLeft)(n.value),(0,t.getRight)(n.value))};t.separate=B,t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate};var G=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)?e:t.none}};t.filter=G;var H=function(n){return function(e){return(0,t.isNone)(e)?t.none:n(e.value)}};t.filterMap=H;var V=function(n){return function(t){return(0,h.separated)(w(t,(0,s.not)(n)),w(t,n))}};t.partition=V;var z=function(n){return(0,l.flow)((0,t.map)(n),t.separate)};t.partitionMap=z,t.Filterable={URI:t.URI,map:b,compact:t.compact,separate:t.separate,filter:w,filterMap:M,partition:k,partitionMap:W};var X=function(n){return function(e){return function(r){return(0,t.isNone)(r)?n.of(t.none):n.map(e(r.value),t.some)}}};t.traverse=X;var J=function(n){return function(e){return(0,t.isNone)(e)?n.of(t.none):n.map(e.value,t.some)}};t.sequence=J,t.Traversable={URI:t.URI,map:b,reduce:S,foldMap:T,reduceRight:R,traverse:x,sequence:t.sequence};var $=(0,v.witherDefault)(t.Traversable,t.Compactable),Z=(0,v.wiltDefault)(t.Traversable,t.Compactable),Q=function(n){var t=$(n);return function(n){return function(e){return t(e,n)}}};t.wither=Q;var nn=function(n){var t=Z(n);return function(n){return function(e){return t(e,n)}}};t.wilt=nn,t.Witherable={URI:t.URI,map:b,reduce:S,foldMap:T,reduceRight:R,traverse:x,sequence:t.sequence,compact:t.compact,separate:t.separate,filter:w,filterMap:M,partition:k,partitionMap:W,wither:$,wilt:Z};var nt=function(){return t.none};t.throwError=nt,t.MonadThrow={URI:t.URI,map:b,ap:I,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 ne=function(n){return"None"===n._tag};t.isNone=ne;var nr=function(n,e){return function(r){return(0,t.isNone)(r)?n():e(r.value)}};t.matchW=nr,t.foldW=t.matchW,t.match=t.matchW,t.fold=t.match;var ni=function(n){return function(e){return(0,t.isNone)(e)?n():e.value}};t.getOrElseW=ni,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 nu=function(n){return null==n?t.none:(0,t.some)(n)};t.fromNullable=nu;var no=function(n){try{return(0,t.some)(n())}catch(e){return t.none}};t.tryCatch=no;var na=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.tryCatch)(function(){return n.apply(void 0,e)})}};t.tryCatchK=na;var nc=function(n){return(0,l.flow)(n,t.fromNullable)};t.fromNullableK=nc;var nf=function(n){return function(e){return(0,t.isNone)(e)?t.none:(0,t.fromNullable)(n(e.value))}};t.chainNullableK=nf,t.toNullable=(0,t.match)(l.constNull,l.identity),t.toUndefined=(0,t.match)(l.constUndefined,l.identity),t.elem=function n(e){return function(r,i){if(void 0===i){var u=n(e);return function(n){return u(r,n)}}return!(0,t.isNone)(i)&&e.equals(r,i.value)}};var nl=function(n){return function(e){return!(0,t.isNone)(e)&&n(e.value)}};t.exists=nl,t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var np=(0,p.let)(t.Functor);t.let=np,t.bind=c.bind(t.Chain),t.apS=(0,a.apS)(t.Apply),t.ApT=(0,t.of)(d.emptyReadonlyArray);var nd=function(n){return function(e){var r=n(0,d.head(e));if((0,t.isNone)(r))return t.none;for(var i=[r.value],u=1;u<e.length;u++){var o=n(u,e[u]);if((0,t.isNone)(o))return t.none;i.push(o.value)}return(0,t.some)(i)}};t.traverseReadonlyNonEmptyArrayWithIndex=nd;var ns=function(n){var e=(0,t.traverseReadonlyNonEmptyArrayWithIndex)(n);return function(n){return d.isNonEmpty(n)?e(n):t.ApT}};t.traverseReadonlyArrayWithIndex=ns,t.traverseArrayWithIndex=t.traverseReadonlyArrayWithIndex;var nm=function(n){return(0,t.traverseReadonlyArrayWithIndex)(function(t,e){return n(e)})};t.traverseArray=nm,t.sequenceArray=(0,t.traverseArray)(l.identity),t.chain=t.flatMap,t.chainFirst=t.tap,t.getRefinement=function(n){return function(e){return(0,t.isSome)(n(e))}},t.mapNullable=t.chainNullableK,t.option={URI:t.URI,map:b,of:t.of,ap:I,chain:t.flatMap,reduce:S,foldMap:T,reduceRight:R,traverse:x,sequence:t.sequence,zero:t.zero,alt:O,extend:E,compact:t.compact,separate:t.separate,filter:w,filterMap:M,partition:k,partitionMap:W,wither:$,wilt:Z,throwError:t.throwError},t.getApplySemigroup=(0,a.getApplySemigroup)(t.Apply),t.getApplyMonoid=(0,o.getApplicativeMonoid)(t.Applicative);var nh=function(){return(0,t.getMonoid)((0,m.first)())};t.getFirstMonoid=nh;var nv=function(){return(0,t.getMonoid)((0,m.last)())};t.getLastMonoid=nv},83235:function(n,t,e){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=e(8190),i=e(14632),u=function(n){return function(t,e){return t===e||0===n(t,e)}};t.equalsDefault=u;var o=function(n){return{equals:(0,t.equalsDefault)(n),compare:function(t,e){return t===e?0:n(t,e)}}};t.fromCompare=o;var a=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return(0,t.fromCompare)(function(t,e){for(var r=0;r<n.length-1;r++){var i=n[r].compare(t[r],e[r]);if(0!==i)return i}return n[r].compare(t[r],e[r])})};t.tuple=a;var c=function(n){return(0,t.fromCompare)(function(t,e){return n.compare(e,t)})};t.reverse=c;var f=function(n,e){return(0,i.pipe)(n,(0,t.contramap)(e))},l=function(n){return function(e){return(0,t.fromCompare)(function(t,r){return e.compare(n(t),n(r))})}};t.contramap=l,t.URI="Ord";var p=function(){return{concat:function(n,e){return(0,t.fromCompare)(function(t,r){var i=n.compare(t,r);return 0!==i?i:e.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(n){return function(t){return function(e){return e===t||0===n.compare(e,t)}}};t.equals=s;var m=function(n){return function(t,e){return -1===n.compare(t,e)}};t.lt=m;var h=function(n){return function(t,e){return 1===n.compare(t,e)}};t.gt=h;var v=function(n){return function(t,e){return 1!==n.compare(t,e)}};t.leq=v;var g=function(n){return function(t,e){return -1!==n.compare(t,e)}};t.geq=g;var y=function(n){return function(t,e){return t===e||1>n.compare(t,e)?t:e}};t.min=y;var _=function(n){return function(t,e){return t===e||n.compare(t,e)>-1?t:e}};t.max=_;var b=function(n){var e=(0,t.min)(n),r=(0,t.max)(n);return function(n,t){return function(i){return r(e(i,t),n)}}};t.clamp=b;var I=function(n){var e=(0,t.lt)(n),r=(0,t.gt)(n);return function(n,t){return function(i){return!(e(i,n)||r(i,t))}}};t.between=I,t.getTupleOrd=t.tuple,t.getDualOrd=t.reverse,t.ord=t.Contravariant;var S={equals:r.eqStrict.equals,compare:function(n,t){return n<t?-1:n>t?1:0}};t.ordBoolean=S,t.ordString=S,t.ordNumber=S,t.ordDate=(0,i.pipe)(t.ordNumber,(0,t.contramap)(function(n){return n.valueOf()}))},87612:function(n,t,e){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=e(14632),i=function(n,e){return(0,r.pipe)(n,(0,t.contramap)(e))},u=function(n){return function(t){return(0,r.flow)(n,t)}};t.contramap=u,t.URI="Predicate";var o=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.or)(e))}}};t.getSemigroupAny=o;var a=function(){return{concat:(0,t.getSemigroupAny)().concat,empty:r.constFalse}};t.getMonoidAny=a;var c=function(){return{concat:function(n,e){return(0,r.pipe)(n,(0,t.and)(e))}}};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(n){return function(t){return!n(t)}};t.not=l;var p=function(n){return function(t){return function(e){return t(e)||n(e)}}};t.or=p;var d=function(n){return function(t){return function(e){return t(e)&&n(e)}}};t.and=d},78703:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.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=e(93145),c=e(18222),f=e(8190),l=e(57756),p=e(14632),d=e(8762),s=u(e(5309)),m=u(e(40457)),h=e(83235),v=u(e(84612)),g=e(4773),y=e(69706),_=e(3899),b=function(n){return 0===n.length};t.isEmpty=b,t.isNonEmpty=v.isNonEmpty,t.prepend=v.prepend,t.prependW=v.prependW,t.append=v.append,t.appendW=v.appendW;var I=function(n,e){return n<=0?t.empty:v.makeBy(e)(n)};t.makeBy=I;var S=function(n,e){return(0,t.makeBy)(n,function(){return e})};t.replicate=S,t.fromPredicate=function(n){return function(e){return n(e)?[e]:t.empty}};var T=function(n){return s.isNone(n)?t.empty:[n.value]};t.fromOption=T;var R=function(n){return s.isLeft(n)?t.empty:[n.right]};t.fromEither=R;var x=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(r):n()}};t.matchW=x,t.match=t.matchW;var O=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.head(r),v.tail(r)):n()}};t.matchLeftW=O,t.matchLeft=t.matchLeftW,t.foldLeft=t.matchLeft;var w=function(n,e){return function(r){return(0,t.isNonEmpty)(r)?e(v.init(r),v.last(r)):n()}};t.matchRightW=w,t.matchRight=t.matchRightW,t.foldRight=t.matchRight;var M=function(n){return function(e){if((0,t.isEmpty)(e))return t.empty;for(var r=[],i=0;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}};t.chainWithIndex=M;var E=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[0]=n;for(var u=0;u<r;u++)i[u+1]=t(i[u],e[u]);return i}};t.scanLeft=E;var k=function(n,t){return function(e){var r=e.length,i=Array(r+1);i[r]=n;for(var u=r-1;u>=0;u--)i[u]=t(e[u],i[u+1]);return i}};t.scanRight=k;var W=function(n){return n.length};t.size=W,t.isOutOfBound=v.isOutOfBound,t.lookup=function n(e,r){return void 0===r?function(t){return n(e,t)}:(0,t.isOutOfBound)(e,r)?s.none:s.some(r[e])};var C=function(n){return(0,t.isNonEmpty)(n)?s.some(v.head(n)):s.none};t.head=C;var D=function(n){return(0,t.isNonEmpty)(n)?s.some(v.last(n)):s.none};t.last=D;var P=function(n){return(0,t.isNonEmpty)(n)?s.some(v.tail(n)):s.none};t.tail=P;var F=function(n){return(0,t.isNonEmpty)(n)?s.some(v.init(n)):s.none};t.init=F;var U=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(0,n)}};t.takeLeft=U;var A=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?e:0===n?t.empty:e.slice(-n)}};t.takeRight=A,t.takeLeftWhile=function(n){return function(e){for(var r=[],i=0;i<e.length;i++){var u=e[i];if(!n(u))break;r.push(u)}var o=r.length;return o===e.length?e:0===o?t.empty:r}};var L=function(n,t){for(var e=n.length,r=0;r<e&&t(n[r]);r++);return r};t.spanLeft=function(n){return function(e){var r,i=(0,t.splitAt)(L(e,n))(e);return{init:i[0],rest:i[1]}}};var N=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(n,e.length)}};t.dropLeft=N;var j=function(n){return function(e){return n<=0||(0,t.isEmpty)(e)?e:n>=e.length?t.empty:e.slice(0,e.length-n)}};t.dropRight=j,t.dropLeftWhile=function(n){return function(e){var r=L(e,n);return 0===r?e:r===e.length?t.empty:e.slice(r)}};var q=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(e);return s.none}};t.findIndex=q,t.findFirst=function(n){return function(t){for(var e=0;e<t.length;e++)if(n(t[e]))return s.some(t[e]);return s.none}};var Y=function(n){return function(t){for(var e=0;e<t.length;e++){var r=n(t[e]);if(s.isSome(r))return r}return s.none}};t.findFirstMap=Y,t.findLast=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(t[e]);return s.none}};var K=function(n){return function(t){for(var e=t.length-1;e>=0;e--){var r=n(t[e]);if(s.isSome(r))return r}return s.none}};t.findLastMap=K;var B=function(n){return function(t){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return s.some(e);return s.none}};t.findLastIndex=B;var G=function(n,t){return function(e){return n<0||n>e.length?s.none:s.some(v.unsafeInsertAt(n,t,e))}};t.insertAt=G;var H=function(n,e){return(0,t.modifyAt)(n,function(){return e})};t.updateAt=H;var V=function(n){return function(e){return(0,t.isOutOfBound)(n,e)?s.none:s.some((0,t.unsafeDeleteAt)(n,e))}};t.deleteAt=V;var z=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?s.none:s.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}};t.modifyAt=z;var X=function(n){return n.length<=1?n:n.slice().reverse()};t.reverse=X;var J=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Right"===r._tag&&t.push(r.right)}return t};t.rights=J;var $=function(n){for(var t=[],e=0;e<n.length;e++){var r=n[e];"Left"===r._tag&&t.push(r.left)}return t};t.lefts=$;var Z=function(n){return function(t){return t.length<=1?t:t.slice().sort(n.compare)}};t.sort=Z;var Q=function(n,t,e){for(var r=[],i=Math.min(n.length,t.length),u=0;u<i;u++)r[u]=e(n[u],t[u]);return r};t.zipWith=Q,t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})};var nn=function(n){for(var t=[],e=[],r=0;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]};t.unzip=nn;var nt=function(n){var e=v.prependAll(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}};t.prependAll=nt;var ne=function(n){var e=v.intersperse(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}};t.intersperse=ne;var nr=function(n){var e=v.rotate(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}};function ni(n){return function(t,e){if(void 0===e){var r,i=ni(n);return function(n){return i(t,n)}}for(var u=0;u<e.length;u++)if(r=e[u],n.equals(r,t))return!0;return!1}}t.rotate=nr,t.elem=ni;var nu=function(n){var e=v.uniq(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}};t.uniq=nu;var no=function(n){var e=v.sortBy(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):n}};t.sortBy=no;var na=function(n){var e=v.chop(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}};t.chop=na;var nc=function(n){return function(e){return n>=1&&(0,t.isNonEmpty)(e)?v.splitAt(n)(e):(0,t.isEmpty)(e)?[e,t.empty]:[t.empty,e]}};t.splitAt=nc;var nf=function(n){var e=v.chunksOf(n);return function(n){return(0,t.isNonEmpty)(n)?e(n):t.empty}};t.chunksOf=nf;var nl=function(n){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0,t.fromOption)(n.apply(void 0,e))}};t.fromOptionK=nl,t.comprehension=function(n,e,r){void 0===r&&(r=function(){return!0});var i=function(n,u){return(0,t.isNonEmpty)(u)?(0,t.flatMap)(v.head(u),function(e){return i((0,p.pipe)(n,(0,t.append)(e)),v.tail(u))}):r.apply(void 0,n)?[e.apply(void 0,n)]:t.empty};return i(t.empty,n)};var np=function(n){return function(e){return(0,t.isEmpty)(e)?n:(0,t.isEmpty)(n)?e:e.concat(n)}};function nd(n){var e=v.union(n);return function(r,i){if(void 0===i){var u=nd(n);return function(n){return u(n,r)}}return(0,t.isNonEmpty)(r)&&(0,t.isNonEmpty)(i)?e(i)(r):(0,t.isNonEmpty)(r)?r:i}}function ns(n){var t=ni(n);return function(e,r){if(void 0===r){var i=ns(n);return function(n){return i(n,e)}}return e.filter(function(n){return t(n,r)})}}function nm(n){var t=ni(n);return function(e,r){if(void 0===r){var i=nm(n);return function(n){return i(n,e)}}return e.filter(function(n){return!t(n,r)})}}t.concatW=np,t.concat=t.concatW,t.union=nd,t.intersection=ns,t.difference=nm;var nh=function(n,e){return(0,p.pipe)(n,(0,t.map)(e))},nv=function(n,e){return(0,p.pipe)(n,(0,t.mapWithIndex)(e))},ng=function(n,e){return(0,p.pipe)(n,(0,t.ap)(e))},ny=function(n,e){return(0,p.pipe)(n,(0,t.filter)(e))},n_=function(n,e){return(0,p.pipe)(n,(0,t.filterMap)(e))},nb=function(n,e){return(0,p.pipe)(n,(0,t.partition)(e))},nI=function(n,e){return(0,p.pipe)(n,(0,t.partitionMap)(e))},nS=function(n,e){return(0,p.pipe)(n,(0,t.partitionWithIndex)(e))},nT=function(n,e){return(0,p.pipe)(n,(0,t.partitionMapWithIndex)(e))},nR=function(n,e){return(0,p.pipe)(n,(0,t.alt)(e))},nx=function(n,e,r){return(0,p.pipe)(n,(0,t.reduce)(e,r))},nO=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},nw=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRight)(e,r))},nM=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceWithIndex)(e,r))},nE=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},nk=function(n,e,r){return(0,p.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},nW=function(n,e){return(0,p.pipe)(n,(0,t.filterMapWithIndex)(e))},nC=function(n,e){return(0,p.pipe)(n,(0,t.filterWithIndex)(e))},nD=function(n,e){return(0,p.pipe)(n,(0,t.extend)(e))},nP=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},nF=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,p.pipe)(n,e(t))}},nU=function(n,e){return(0,p.pipe)(n,(0,t.chainRecDepthFirst)(e))};t._chainRecDepthFirst=nU;var nA=function(n,e){return(0,p.pipe)(n,(0,t.chainRecBreadthFirst)(e))};t._chainRecBreadthFirst=nA,t.of=v.of;var nL=function(){return t.empty};t.zero=nL;var nN=function(n){return function(t){return t.concat(n())}};t.altW=nN,t.alt=t.altW;var nj=function(n){return(0,t.flatMap)(function(e){return(0,p.pipe)(n,(0,t.map)(e))})};t.ap=nj,t.flatMap=(0,p.dual)(2,function(n,e){return(0,p.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))}),t.flatten=(0,t.flatMap)(p.identity);var nq=function(n){return function(t){return t.map(function(t){return n(t)})}};t.map=nq;var nY=function(n){return function(t){return t.map(function(t,e){return n(e,t)})}};t.mapWithIndex=nY;var nK=function(n){for(var t=[],e=[],r=0;r<n.length;r++){var i=n[r];"Left"===i._tag?t.push(i.left):e.push(i.right)}return(0,g.separated)(t,e)};t.separate=nK;var nB=function(n){return function(t){return t.filter(n)}};t.filter=nB;var nG=function(n){return function(t){for(var e=[],r=0;r<t.length;r++){var i=n(r,t[r]);s.isSome(i)&&e.push(i.value)}return e}};t.filterMapWithIndex=nG;var nH=function(n){return(0,t.filterMapWithIndex)(function(t,e){return n(e)})};t.filterMap=nH,t.compact=(0,t.filterMap)(p.identity);var nV=function(n){return(0,t.partitionWithIndex)(function(t,e){return n(e)})};t.partition=nV;var nz=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=t[i];n(i,u)?r.push(u):e.push(u)}return(0,g.separated)(e,r)}};t.partitionWithIndex=nz;var nX=function(n){return(0,t.partitionMapWithIndex)(function(t,e){return n(e)})};t.partitionMap=nX;var nJ=function(n){return function(t){for(var e=[],r=[],i=0;i<t.length;i++){var u=n(i,t[i]);"Left"===u._tag?e.push(u.left):r.push(u.right)}return(0,g.separated)(e,r)}};t.partitionMapWithIndex=nJ;var n$=function(n){return function(t){return t.filter(function(t,e){return n(e,t)})}};t.filterWithIndex=n$;var nZ=function(n){return function(t){return t.map(function(e,r){return n(t.slice(r))})}};t.extend=nZ,t.duplicate=(0,t.extend)(p.identity);var nQ=function(n){return function(t){return function(e){return e.reduce(function(e,r,i){return n.concat(e,t(i,r))},n.empty)}}};t.foldMapWithIndex=nQ;var n0=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})};t.reduce=n0;var n1=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}};t.foldMap=n1;var n8=function(n,t){return function(e){for(var r=e.length,i=n,u=0;u<r;u++)i=t(u,i,e[u]);return i}};t.reduceWithIndex=n8;var n2=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})};t.reduceRight=n2;var n7=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}};t.reduceRightWithIndex=n7;var n3=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}};t.traverse=n3;var n4=function(n){return function(e){return nx(e,n.of((0,t.zero)()),function(e,r){return n.ap(n.map(e,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),r)})}};t.sequence=n4;var n5=function(n){return function(e){return(0,t.reduceWithIndex)(n.of((0,t.zero)()),function(r,i,u){return n.ap(n.map(i,function(n){return function(e){return(0,p.pipe)(n,(0,t.append)(e))}}),e(r,u))})}};t.traverseWithIndex=n5;var n9=function(n){var t=td(n);return function(n){return function(e){return t(e,n)}}};t.wither=n9;var n6=function(n){var t=ts(n);return function(n){return function(e){return t(e,n)}}};t.wilt=n6;var tn=function(n,t){for(var e=[],r=n;;){var i=t(r);if(s.isSome(i)){var u=i.value,o=u[0],a=u[1];e.push(o),r=a}else break}return e};t.unfold=tn,t.URI="ReadonlyArray";var tt=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}};t.getShow=tt;var te=function(){return{concat:function(n,e){return(0,t.isEmpty)(n)?e:(0,t.isEmpty)(e)?n:n.concat(e)}}};t.getSemigroup=te;var tr=function(){return{concat:(0,t.getSemigroup)().concat,empty:t.empty}};t.getMonoid=tr;var ti=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})};t.getEq=ti;var tu=function(n){return(0,h.fromCompare)(function(t,e){for(var r=t.length,i=e.length,u=Math.min(r,i),o=0;o<u;o++){var a=n.compare(t[o],e[o]);if(0!==a)return a}return m.Ord.compare(r,i)})};t.getOrd=tu;var to=function(n){var t=nd(n);return{concat:function(n,e){return t(e)(n)}}};t.getUnionSemigroup=to;var ta=function(n){return{concat:(0,t.getUnionSemigroup)(n).concat,empty:t.empty}};t.getUnionMonoid=ta;var tc=function(n){var t=ns(n);return{concat:function(n,e){return t(e)(n)}}};t.getIntersectionSemigroup=tc;var tf=function(n){var t=nm(n);return{concat:function(n,e){return t(e)(n)}}};t.getDifferenceMagma=tf,t.Functor={URI:t.URI,map:nh},t.flap=(0,d.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:nh,mapWithIndex:nv},t.Apply={URI:t.URI,map:nh,ap:ng},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:nh,ap:ng,of:t.of},t.Chain={URI:t.URI,map:nh,ap:ng,chain:t.flatMap},t.Monad={URI:t.URI,map:nh,ap:ng,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:nh,alt:nR},t.Zero={URI:t.URI,zero:t.zero},t.guard=(0,_.guard)(t.Zero,t.Pointed),t.Alternative={URI:t.URI,map:nh,ap:ng,of:t.of,alt:nR,zero:t.zero},t.Extend={URI:t.URI,map:nh,extend:nD},t.Compactable={URI:t.URI,compact:t.compact,separate:t.separate},t.Filterable={URI:t.URI,map:nh,compact:t.compact,separate:t.separate,filter:ny,filterMap:n_,partition:nb,partitionMap:nI},t.FilterableWithIndex={URI:t.URI,map:nh,mapWithIndex:nv,compact:t.compact,separate:t.separate,filter:ny,filterMap:n_,partition:nb,partitionMap:nI,partitionMapWithIndex:nT,partitionWithIndex:nS,filterMapWithIndex:nW,filterWithIndex:nC},t.Foldable={URI:t.URI,reduce:nx,foldMap:nO,reduceRight:nw},t.FoldableWithIndex={URI:t.URI,reduce:nx,foldMap:nO,reduceRight:nw,reduceWithIndex:nM,foldMapWithIndex:nE,reduceRightWithIndex:nk},t.Traversable={URI:t.URI,map:nh,reduce:nx,foldMap:nO,reduceRight:nw,traverse:nP,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:nh,mapWithIndex:nv,reduce:nx,foldMap:nO,reduceRight:nw,reduceWithIndex:nM,foldMapWithIndex:nE,reduceRightWithIndex:nk,traverse:nP,sequence:t.sequence,traverseWithIndex:nF};var tl=function(n){return function(t){for(var e=o([],n(t),!0),r=[];e.length>0;){var i=e.shift();s.isLeft(i)?e.unshift.apply(e,n(i.left)):r.push(i.right)}return r}};t.chainRecDepthFirst=tl,t.ChainRecDepthFirst={URI:t.URI,map:nh,ap:ng,chain:t.flatMap,chainRec:t._chainRecDepthFirst};var tp=function(n){return function(t){var e=n(t),r=[],i=[];function u(t){s.isLeft(t)?n(t.left).forEach(function(n){return r.push(n)}):i.push(t.right)}for(var o=0;o<e.length;o++)u(e[o]);for(;r.length>0;)u(r.shift());return i}};t.chainRecBreadthFirst=tp,t.ChainRecBreadthFirst={URI:t.URI,map:nh,ap:ng,chain:t.flatMap,chainRec:t._chainRecBreadthFirst};var td=(0,y.witherDefault)(t.Traversable,t.Compactable),ts=(0,y.wiltDefault)(t.Traversable,t.Compactable);t.Witherable={URI:t.URI,map:nh,compact:t.compact,separate:t.separate,filter:ny,filterMap:n_,partition:nb,partitionMap:nI,reduce:nx,foldMap:nO,reduceRight:nw,traverse:nP,sequence:t.sequence,wither:td,wilt:ts},t.filterE=(0,y.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(n,e,r){return(0,t.isNonEmpty)(r)?v.unsafeUpdateAt(n,e,r):r};t.unsafeUpdateAt=tm;var th=function(n,t){var e=t.slice();return e.splice(n,1),e};t.unsafeDeleteAt=th;var tv=function(n){return n.slice()};t.toArray=tv;var tg=function(n){return(0,t.isEmpty)(n)?t.empty:n.slice()};t.fromArray=tg,t.empty=v.empty,t.every=function(n){return function(t){return t.every(n)}};var ty=function(n){return function(t){return t.some(n)}};t.some=ty,t.exists=t.some;var t_=function(n){var e=v.intercalate(n);return function(r){return(0,t.match)(function(){return n.empty},e(r))}};t.intercalate=t_,t.Do=(0,t.of)(s.emptyRecord),t.bindTo=(0,d.bindTo)(t.Functor);var tb=(0,d.let)(t.Functor);t.let=tb,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:nh,ap:ng,of:t.of,chain:t.flatMap,filter:ny,filterMap:n_,partition:nb,partitionMap:nI,mapWithIndex:nv,partitionMapWithIndex:nT,partitionWithIndex:nS,filterMapWithIndex:nW,filterWithIndex:nC,alt:nR,zero:t.zero,unfold:t.unfold,reduce:nx,foldMap:nO,reduceRight:nw,traverse:nP,sequence:t.sequence,reduceWithIndex:nM,foldMapWithIndex:nE,reduceRightWithIndex:nk,traverseWithIndex:nF,extend:nD,wither:td,wilt:ts}},84612:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t},o=this&&this.__spreadArray||function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.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=e(93145),c=e(18222),f=e(8190),l=e(14632),p=e(8762),d=u(e(5309)),s=e(83235),m=u(e(98744));t.empty=d.emptyReadonlyArray,t.isNonEmpty=d.isNonEmpty;var h=function(n,t){return n<0||n>=t.length};t.isOutOfBound=h;var v=function(n){return function(t){return o([n],t,!0)}};t.prependW=v,t.prepend=t.prependW;var g=function(n){return function(t){return o(o([],t,!0),[n],!1)}};t.appendW=g,t.append=t.appendW;var y=function(n,e,r){if((0,t.isNonEmpty)(r)){var i=d.fromReadonlyNonEmptyArray(r);return i.splice(n,0,e),i}return[e]};t.unsafeInsertAt=y;var _=function(n,t,e){if(e[n]===t)return e;var r=d.fromReadonlyNonEmptyArray(e);return r[n]=t,r};t.unsafeUpdateAt=_;var b=function(n){return function(e){if(1===e.length)return e;for(var r=[(0,t.head)(e)],i=(0,t.tail)(e),u=function(t){r.every(function(e){return!n.equals(e,t)})&&r.push(t)},o=0;o<i.length;o++)u(i[o]);return r}};t.uniq=b;var I=function(n){if((0,t.isNonEmpty)(n)){var e=(0,s.getMonoid)();return(0,t.sort)(n.reduce(e.concat,e.empty))}return l.identity};t.sortBy=I;var S=function(n){var e=(0,t.uniq)(n);return function(n){return function(t){return e((0,l.pipe)(t,C(n)))}}};t.union=S;var T=function(n){return function(e){var r=e.length,i=Math.round(n)%r;if((0,t.isOutOfBound)(Math.abs(i),e)||0===i)return e;if(!(i<0))return(0,t.rotate)(i-r)(e);var u=(0,t.splitAt)(-i)(e),o=u[0],a=u[1];return(0,l.pipe)(a,C(o))}};t.rotate=T;var R=function(n){return(0,t.isNonEmpty)(n)?d.some(n):d.none};t.fromReadonlyArray=R;var x=function(n){return function(t){for(var e=Math.max(0,Math.floor(t)),r=[n(0)],i=1;i<e;i++)r.push(n(i));return r}};t.makeBy=x;var O=function(n){return(0,t.makeBy)(function(){return n})};t.replicate=O;var w=function(n,e){return n<=e?(0,t.makeBy)(function(t){return n+t})(e-n+1):[n]};t.range=w;var M=function(n){return[(0,t.head)(n),(0,t.tail)(n)]};t.unprepend=M;var E=function(n){return[(0,t.init)(n),(0,t.last)(n)]};t.unappend=E;var k=function(n){return(0,t.fromReadonlyArray)(n.slice())};function W(n){return function(t){return t.concat(n)}}function C(n,t){return t?n.concat(t):function(t){return t.concat(n)}}t.fromArray=k,t.concatW=W,t.concat=C;var D=function(n){return 1===n.length?n:o([(0,t.last)(n)],n.slice(0,-1).reverse(),!0)};function P(n){return function(e){var r=e.length;if(0===r)return t.empty;for(var i=[],u=e[0],o=[u],a=1;a<r;a++){var c=e[a];n.equals(c,u)?o.push(c):(i.push(o),o=[u=c])}return i.push(o),i}}t.reverse=D,t.group=P;var F=function(n){return function(t){for(var e={},r=0;r<t.length;r++){var i=t[r],u=n(i);d.has.call(e,u)?e[u].push(i):e[u]=[i]}return e}};t.groupBy=F;var U=function(n){return function(t){return 1===t.length?t:t.slice().sort(n.compare)}};t.sort=U;var A=function(n,e){return(0,t.modifyAt)(n,function(){return e})};t.updateAt=A;var L=function(n,e){return function(r){return(0,t.isOutOfBound)(n,r)?d.none:d.some((0,t.unsafeUpdateAt)(n,e(r[n]),r))}};t.modifyAt=L;var N=function(n,t,e){for(var r=[e(n[0],t[0])],i=Math.min(n.length,t.length),u=1;u<i;u++)r[u]=e(n[u],t[u]);return r};t.zipWith=N,t.zip=function n(e,r){return void 0===r?function(t){return n(t,e)}:(0,t.zipWith)(e,r,function(n,t){return[n,t]})};var j=function(n){for(var t=[n[0][0]],e=[n[0][1]],r=1;r<n.length;r++)t[r]=n[r][0],e[r]=n[r][1];return[t,e]};t.unzip=j;var q=function(n){return function(t){for(var e=[n,t[0]],r=1;r<t.length;r++)e.push(n,t[r]);return e}};t.prependAll=q;var Y=function(n){return function(e){var r=(0,t.tail)(e);return(0,t.isNonEmpty)(r)?(0,l.pipe)(r,(0,t.prependAll)(n),(0,t.prepend)((0,t.head)(e))):e}};t.intersperse=Y;var K=function(n){return function(e){for(var r=d.fromReadonlyNonEmptyArray(n(0,(0,t.head)(e))),i=1;i<e.length;i++)r.push.apply(r,n(i,e[i]));return r}};t.chainWithIndex=K;var B=function(n){return function(e){for(var r=n(e),i=r[0],u=r[1],o=[i],a=u;(0,t.isNonEmpty)(a);){var c=n(a),f=c[0],l=c[1];o.push(f),a=l}return o}};t.chop=B;var G=function(n){return function(e){var r=Math.max(1,n);return r>=e.length?[e,t.empty]:[(0,l.pipe)(e.slice(1,r),(0,t.prepend)((0,t.head)(e))),e.slice(r)]}};t.splitAt=G;var H=function(n){return(0,t.chop)((0,t.splitAt)(n))};t.chunksOf=H;var V=function(n,e){return(0,l.pipe)(n,(0,t.map)(e))},z=function(n,e){return(0,l.pipe)(n,(0,t.mapWithIndex)(e))},X=function(n,e){return(0,l.pipe)(n,(0,t.ap)(e))},J=function(n,e){return(0,l.pipe)(n,(0,t.extend)(e))},$=function(n,e,r){return(0,l.pipe)(n,(0,t.reduce)(e,r))},Z=function(n){var e=(0,t.foldMap)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},Q=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRight)(e,r))},nn=function(n){var e=(0,t.traverse)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},nt=function(n,e){return(0,l.pipe)(n,(0,t.alt)(e))},ne=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceWithIndex)(e,r))},nr=function(n){var e=(0,t.foldMapWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}},ni=function(n,e,r){return(0,l.pipe)(n,(0,t.reduceRightWithIndex)(e,r))},nu=function(n){var e=(0,t.traverseWithIndex)(n);return function(n,t){return(0,l.pipe)(n,e(t))}};t.of=d.singleton;var no=function(n){return function(t){return(0,l.pipe)(t,W(n()))}};t.altW=no,t.alt=t.altW;var na=function(n){return(0,t.flatMap)(function(e){return(0,l.pipe)(n,(0,t.map)(e))})};t.ap=na,t.flatMap=(0,l.dual)(2,function(n,e){return(0,l.pipe)(n,(0,t.chainWithIndex)(function(n,t){return e(t,n)}))});var nc=function(n){return function(e){for(var r=(0,t.tail)(e),i=[n(e)];(0,t.isNonEmpty)(r);)i.push(n(r)),r=(0,t.tail)(r);return i}};t.extend=nc,t.duplicate=(0,t.extend)(l.identity),t.flatten=(0,t.flatMap)(l.identity);var nf=function(n){return(0,t.mapWithIndex)(function(t,e){return n(e)})};t.map=nf;var nl=function(n){return function(e){for(var r=[n(0,(0,t.head)(e))],i=1;i<e.length;i++)r.push(n(i,e[i]));return r}};t.mapWithIndex=nl;var np=function(n,e){return(0,t.reduceWithIndex)(n,function(n,t,r){return e(t,r)})};t.reduce=np;var nd=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r){return n.concat(e,t(r))},t(e[0]))}}};t.foldMap=nd;var ns=function(n,e){return(0,t.reduceRightWithIndex)(n,function(n,t,r){return e(t,r)})};t.reduceRight=ns;var nm=function(n,t){return function(e){return e.reduce(function(n,e,r){return t(r,n,e)},n)}};t.reduceWithIndex=nm;var nh=function(n){return function(t){return function(e){return e.slice(1).reduce(function(e,r,i){return n.concat(e,t(i+1,r))},t(0,e[0]))}}};t.foldMapWithIndex=nh;var nv=function(n,t){return function(e){return e.reduceRight(function(n,e,r){return t(r,e,n)},n)}};t.reduceRightWithIndex=nv;var ng=function(n){var e=(0,t.traverseWithIndex)(n);return function(n){return e(function(t,e){return n(e)})}};t.traverse=ng;var ny=function(n){return(0,t.traverseWithIndex)(n)(l.SK)};t.sequence=ny;var n_=function(n){return function(e){return function(r){for(var i=n.map(e(0,(0,t.head)(r)),t.of),u=1;u<r.length;u++)i=n.ap(n.map(i,function(n){return function(e){return(0,l.pipe)(n,(0,t.append)(e))}}),e(u,r[u]));return i}}};t.traverseWithIndex=n_,t.extract=d.head,t.URI="ReadonlyNonEmptyArray";var nb=function(n){return{show:function(t){return"[".concat(t.map(n.show).join(", "),"]")}}};t.getShow=nb;var nI=function(){return{concat:C}};t.getSemigroup=nI;var nS=function(n){return(0,f.fromEquals)(function(t,e){return t.length===e.length&&t.every(function(t,r){return n.equals(t,e[r])})})};t.getEq=nS;var nT=function(n){var e=(0,t.union)(n);return{concat:function(n,t){return e(t)(n)}}};t.getUnionSemigroup=nT,t.Functor={URI:t.URI,map:V},t.flap=(0,p.flap)(t.Functor),t.Pointed={URI:t.URI,of:t.of},t.FunctorWithIndex={URI:t.URI,map:V,mapWithIndex:z},t.Apply={URI:t.URI,map:V,ap:X},t.apFirst=(0,a.apFirst)(t.Apply),t.apSecond=(0,a.apSecond)(t.Apply),t.Applicative={URI:t.URI,map:V,ap:X,of:t.of},t.Chain={URI:t.URI,map:V,ap:X,chain:t.flatMap},t.chainFirst=(0,c.chainFirst)(t.Chain),t.Monad={URI:t.URI,map:V,ap:X,of:t.of,chain:t.flatMap},t.Foldable={URI:t.URI,reduce:$,foldMap:Z,reduceRight:Q},t.FoldableWithIndex={URI:t.URI,reduce:$,foldMap:Z,reduceRight:Q,reduceWithIndex:ne,foldMapWithIndex:nr,reduceRightWithIndex:ni},t.Traversable={URI:t.URI,map:V,reduce:$,foldMap:Z,reduceRight:Q,traverse:nn,sequence:t.sequence},t.TraversableWithIndex={URI:t.URI,map:V,mapWithIndex:z,reduce:$,foldMap:Z,reduceRight:Q,traverse:nn,sequence:t.sequence,reduceWithIndex:ne,foldMapWithIndex:nr,reduceRightWithIndex:ni,traverseWithIndex:nu},t.Alt={URI:t.URI,map:V,alt:nt},t.Comonad={URI:t.URI,map:V,extend:J,extract:t.extract},t.Do=(0,t.of)(d.emptyRecord),t.bindTo=(0,p.bindTo)(t.Functor);var nR=(0,p.let)(t.Functor);t.let=nR,t.bind=(0,c.bind)(t.Chain),t.apS=(0,a.apS)(t.Apply),t.head=t.extract,t.tail=d.tail;var nx=function(n){return n[n.length-1]};t.last=nx;var nO=function(n){return n.slice(0,-1)};t.init=nO;var nw=function(n){var t=m.min(n);return function(n){return n.reduce(t.concat)}};t.min=nw;var nM=function(n){var t=m.max(n);return function(n){return n.reduce(t.concat)}};t.max=nM;var nE=function(n){return function(t){return t.reduce(n.concat)}};t.concatAll=nE;var nk=function(n){return function(e){return n((0,t.head)(e),(0,t.tail)(e))}};t.matchLeft=nk;var nW=function(n){return function(e){return n((0,t.init)(e),(0,t.last)(e))}};t.matchRight=nW;var nC=function(n){return function(e){return o([n((0,t.head)(e))],(0,t.tail)(e),!0)}};t.modifyHead=nC;var nD=function(n){return(0,t.modifyHead)(function(){return n})};t.updateHead=nD;var nP=function(n){return function(e){return(0,l.pipe)((0,t.init)(e),(0,t.append)(n((0,t.last)(e))))}};t.modifyLast=nP;var nF=function(n){return(0,t.modifyLast)(function(){return n})};t.updateLast=nF;var nU=function(n){var e=(0,t.concatAll)(n);return function(n){return(0,l.flow)((0,t.intersperse)(n),e)}};t.intercalate=nU,t.chain=t.flatMap,t.groupSort=function(n){var e=(0,t.sort)(n),r=P(n);return function(n){return(0,t.isNonEmpty)(n)?r(e(n)):t.empty}},t.filter=function(n){return(0,t.filterWithIndex)(function(t,e){return n(e)})};var nA=function(n){return function(e){return(0,t.fromReadonlyArray)(e.filter(function(t,e){return n(e,t)}))}};t.filterWithIndex=nA,t.uncons=t.unprepend,t.unsnoc=t.unappend,t.cons=function(n,e){return void 0===e?(0,t.prepend)(n):(0,l.pipe)(e,(0,t.prepend)(n))};var nL=function(n,t){return(0,l.pipe)(n,C([t]))};t.snoc=nL;var nN=function(n,e){return function(r){return n<0||n>r.length?d.none:d.some((0,t.unsafeInsertAt)(n,e,r))}};t.insertAt=nN,t.prependToAll=t.prependAll,t.fold=t.concatAll,t.readonlyNonEmptyArray={URI:t.URI,of:t.of,map:V,mapWithIndex:z,ap:X,chain:t.flatMap,extend:J,extract:t.extract,reduce:$,foldMap:Z,reduceRight:Q,traverse:nn,sequence:t.sequence,reduceWithIndex:ne,foldMapWithIndex:nr,reduceRightWithIndex:ni,traverseWithIndex:nu,alt:nt}},98744:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),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 o=e(14632),a=u(e(5309)),c=u(e(73540)),f=u(e(83235)),l=function(n){return{concat:f.min(n)}};t.min=l;var p=function(n){return{concat:f.max(n)}};t.max=p;var d=function(n){return{concat:function(){return n}}};t.constant=d,t.reverse=c.reverse;var s=function(n){return{concat:function(t,e){var r={};for(var i in n)a.has.call(n,i)&&(r[i]=n[i].concat(t[i],e[i]));return r}}};t.struct=s;var m=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return{concat:function(t,e){return n.map(function(n,r){return n.concat(t[r],e[r])})}}};t.tuple=m;var h=function(n){return function(t){return{concat:function(e,r){return t.concat(e,t.concat(n,r))}}}};t.intercalate=h;var v=function(){return{concat:o.identity}};t.first=v;var g=function(){return{concat:function(n,t){return t}}};t.last=g,t.concatAll=c.concatAll,t.semigroupVoid=(0,t.constant)(void 0);var y=function(){return{concat:function(n,t){return Object.assign({},n,t)}}};t.getObjectSemigroup=y,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(n){var e=(0,t.concatAll)(n);return function(n,t){return void 0===t?e(n):e(n)(t)}},t.semigroupAll={concat:function(n,t){return n&&t}},t.semigroupAny={concat:function(n,t){return n||t}},t.getFunctionSemigroup=o.getSemigroup,t.semigroupString={concat:function(n,t){return n+t}},t.semigroupSum={concat:function(n,t){return n+t}},t.semigroupProduct={concat:function(n,t){return n*t}}},4773:function(n,t,e){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=e(14632),i=e(8762),u=function(n,t){return{left:n,right:t}};t.separated=u;var o=function(n,e){return(0,r.pipe)(n,(0,t.map)(e))},a=function(n,e){return(0,r.pipe)(n,(0,t.mapLeft)(e))},c=function(n,e,i){return(0,r.pipe)(n,(0,t.bimap)(e,i))},f=function(n){return function(e){return(0,t.separated)((0,t.left)(e),n((0,t.right)(e)))}};t.map=f;var l=function(n){return function(e){return(0,t.separated)(n((0,t.left)(e)),(0,t.right)(e))}};t.mapLeft=l;var p=function(n,e){return function(r){return(0,t.separated)(n((0,t.left)(r)),e((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:o},t.flap=(0,i.flap)(t.Functor);var d=function(n){return n.left};t.left=d;var s=function(n){return n.right};t.right=s},69706:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.filterE=t.witherDefault=t.wiltDefault=void 0;var o=u(e(5309));t.wiltDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.separate)}}},t.witherDefault=function(n,t){return function(e){var r=n.traverse(e);return function(n,i){return e.map(r(n,i),t.compact)}}},t.filterE=function(n){return function(t){var e=n.wither(t);return function(n){return function(r){return e(r,function(e){return t.map(n(e),function(n){return n?o.some(e):o.none})})}}}}},3899:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.guard=void 0,t.guard=function(n,t){return function(e){return e?t.of(void 0):n.zero()}}},14632:function(n,t){var e=this&&this.__spreadArray||function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.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(n){return function(){return{meet:function(t,e){return function(r){return n.meet(t(r),e(r))}},join:function(t,e){return function(r){return n.join(t(r),e(r))}},zero:function(){return n.zero},one:function(){return n.one},implies:function(t,e){return function(r){return n.implies(t(r),e(r))}},not:function(t){return function(e){return n.not(t(e))}}}}};t.getBooleanAlgebra=r;var i=function(n){return function(){return{concat:function(t,e){return function(r){return n.concat(t(r),e(r))}}}}};t.getSemigroup=i;var u=function(n){var e=(0,t.getSemigroup)(n);return function(){return{concat:e().concat,empty:function(){return n.empty}}}};t.getMonoid=u;var o=function(n){return{add:function(t,e){return function(r){return n.add(t(r),e(r))}},zero:function(){return n.zero},mul:function(t,e){return function(r){return n.mul(t(r),e(r))}},one:function(){return n.one}}};t.getSemiring=o;var a=function(n){var e=(0,t.getSemiring)(n);return{add:e.add,mul:e.mul,one:e.one,zero:e.zero,sub:function(t,e){return function(r){return n.sub(t(r),e(r))}}}};t.getRing=a;var c=function(n){return function(t){return t(n)}};function f(n){return n}function l(n){return function(){return n}}function p(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return function(){return t(n.apply(this,arguments))};case 3:return function(){return e(t(n.apply(this,arguments)))};case 4:return function(){return r(e(t(n.apply(this,arguments))))};case 5:return function(){return i(r(e(t(n.apply(this,arguments)))))};case 6:return function(){return u(i(r(e(t(n.apply(this,arguments))))))};case 7:return function(){return o(u(i(r(e(t(n.apply(this,arguments)))))))};case 8:return function(){return a(o(u(i(r(e(t(n.apply(this,arguments))))))))};case 9:return function(){return c(a(o(u(i(r(e(t(n.apply(this,arguments)))))))))}}}function d(n){return n+1}function s(n){return n-1}function m(n){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(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.length>1?n(t[1],t[0]):function(e){return n(e)(t[0])}}},t.flow=p,t.tuple=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n},t.increment=d,t.decrement=s,t.absurd=m,t.tupled=function(n){return function(t){return n.apply(void 0,t)}},t.untupled=function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n(t)}},t.pipe=function(n,t,e,r,i,u,o,a,c){switch(arguments.length){case 1:return n;case 2:return t(n);case 3:return e(t(n));case 4:return r(e(t(n)));case 5:return i(r(e(t(n))));case 6:return u(i(r(e(t(n)))));case 7:return o(u(i(r(e(t(n))))));case 8:return a(o(u(i(r(e(t(n)))))));case 9:return c(a(o(u(i(r(e(t(n))))))));default:for(var f=arguments[0],l=1;l<arguments.length;l++)f=arguments[l](f);return f}},t.hole=m;var h=function(n,t){return t};t.SK=h,t.not=function(n){return function(t){return!n(t)}};var v=function(){return{concat:function(n,t){return p(n,t)},empty:f}};t.getEndomorphismMonoid=v;var g=function(n,t){var r="number"==typeof n?function(t){return t.length>=n}:n;return function(){var n=Array.from(arguments);return r(arguments)?t.apply(this,n):function(r){return t.apply(void 0,e([r],n,!1))}}};t.dual=g},5309:function(n,t,e){var r=this&&this.__spreadArray||function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.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=e(14632),u=function(n){return"None"===n._tag};t.isNone=u;var o=function(n){return"Some"===n._tag};t.isSome=o,t.none={_tag:"None"};var a=function(n){return{_tag:"Some",value:n}};t.some=a;var c=function(n){return"Left"===n._tag};t.isLeft=c;var f=function(n){return"Right"===n._tag};t.isRight=f;var l=function(n){return{_tag:"Left",left:n}};t.left=l;var p=function(n){return{_tag:"Right",right:n}};t.right=p;var d=function(n){return[n]};t.singleton=d;var s=function(n){return n.length>0};t.isNonEmpty=s;var m=function(n){return n[0]};t.head=m;var h=function(n){return n.slice(1)};t.tail=h,t.emptyReadonlyArray=[],t.emptyRecord={},t.has=Object.prototype.hasOwnProperty;var v=function(n){return r([n[0]],n.slice(1),!0)};t.fromReadonlyNonEmptyArray=v;var g=function(n){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return n.fromEither(null==o?(0,t.left)(r.apply(void 0,i)):(0,t.right)(o))}}};t.liftNullable=g;var y=function(n){return function(e,r){return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var o=e.apply(void 0,i);return n.fromEither((0,t.isNone)(o)?(0,t.left)(r.apply(void 0,i)):(0,t.right)(o.value))}}};t.liftOption=y;var _=function(n,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,t.liftNullable)(n)(i,u))})};t.flatMapNullable=_;var b=function(n,e){return(0,i.dual)(3,function(r,i,u){return e.flatMap(r,(0,t.liftOption)(n)(i,u))})};t.flatMapOption=b;var I=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromEither(r(t))})})};t.flatMapEither=I;var S=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromIO(r(t))})})};t.flatMapIO=S;var T=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromTask(r(t))})})};t.flatMapTask=T;var R=function(n,t){return(0,i.dual)(2,function(e,r){return t.flatMap(e,function(t){return n.fromReader(r(t))})})};t.flatMapReader=R},40457:function(n,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 e=function(n){return"number"==typeof n};t.isNumber=e,t.Eq={equals:function(n,t){return n===t}},t.Ord={equals:t.Eq.equals,compare:function(n,t){return n<t?-1:n>t?1:0}},t.Bounded={equals:t.Eq.equals,compare:t.Ord.compare,top:1/0,bottom:-1/0},t.Show={show:function(n){return JSON.stringify(n)}},t.MagmaSub={concat:function(n,t){return n-t}},t.SemigroupSum={concat:function(n,t){return n+t}},t.SemigroupProduct={concat:function(n,t){return n*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(n){return 1},div:function(n,t){return n/t},mod:function(n,t){return n%t}}},67794:function(n,t,e){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=e(93145),i=e(18222),u=e(14632);function o(n){return function(t){return function(e){return n.map(e,t)}}}function a(n){return function(t){return function(e){return n.contramap(e,t)}}}function c(n){return function(t){return function(e){return n.mapWithIndex(e,t)}}}function f(n){return function(t){return function(e){return n.ap(e,t)}}}function l(n){return function(t){return function(e){return n.chain(e,t)}}}function p(n){return function(t,e){return function(r){return n.bimap(r,t,e)}}}function d(n){return function(t){return function(e){return n.mapLeft(e,t)}}}function s(n){return function(t){return function(e){return n.extend(e,t)}}}function m(n){return function(t,e){return function(r){return n.reduce(r,t,e)}}}function h(n){return function(t){var e=n.foldMap(t);return function(n){return function(t){return e(t,n)}}}}function v(n){return function(t,e){return function(r){return n.reduceRight(r,t,e)}}}function g(n){return function(t,e){return function(r){return n.reduceWithIndex(r,t,e)}}}function y(n){return function(t){var e=n.foldMapWithIndex(t);return function(n){return function(t){return e(t,n)}}}}function _(n){return function(t,e){return function(r){return n.reduceRightWithIndex(r,t,e)}}}function b(n){return function(t){return function(e){return n.alt(e,t)}}}function I(n){return function(t){return function(e){return n.filter(e,t)}}}function S(n){return function(t){return function(e){return n.filterMap(e,t)}}}function T(n){return function(t){return function(e){return n.partition(e,t)}}}function R(n){return function(t){return function(e){return n.partitionMap(e,t)}}}function x(n){return function(t){return function(e){return n.filterWithIndex(e,t)}}}function O(n){return function(t){return function(e){return n.filterMapWithIndex(e,t)}}}function w(n){return function(t){return function(e){return n.partitionWithIndex(e,t)}}}function M(n){return function(t){return function(e){return n.partitionMapWithIndex(e,t)}}}function E(n){return function(t,e){return function(r){return n.promap(r,t,e)}}}function k(n){return function(t){return function(e){return n.compose(e,t)}}}t.map=o,t.contramap=a,t.mapWithIndex=c,t.ap=f,t.chain=l,t.bimap=p,t.mapLeft=d,t.extend=s,t.reduce=m,t.foldMap=h,t.reduceRight=v,t.reduceWithIndex=g,t.foldMapWithIndex=y,t.reduceRightWithIndex=_,t.alt=b,t.filter=I,t.filterMap=S,t.partition=T,t.partitionMap=R,t.filterWithIndex=x,t.filterMapWithIndex=O,t.partitionWithIndex=w,t.partitionMapWithIndex=M,t.promap=E,t.compose=k,t.pipeable=function(n){var t,e,W,C,D,P,F,U,A,L,N,j,q,Y,K,B,G={};if("function"==typeof n.map&&(G.map=o(n)),"function"==typeof n.contramap&&(G.contramap=a(n)),"function"==typeof n.mapWithIndex&&(G.mapWithIndex=c(n)),"function"==typeof n.ap&&(G.ap=f(n),G.apFirst=(0,r.apFirst)(n),G.apSecond=(0,r.apSecond)(n)),"function"==typeof n.chain&&(G.chain=l(n),G.chainFirst=(0,i.chainFirst)(n),G.flatten=G.chain(u.identity)),"function"==typeof n.bimap&&(G.bimap=p(n),G.mapLeft=d(n)),"function"==typeof n.extend&&(G.extend=s(n),G.duplicate=G.extend(u.identity)),"function"==typeof n.reduce&&(G.reduce=m(n),G.foldMap=h(n),G.reduceRight=v(n)),"function"==typeof n.reduceWithIndex&&(G.reduceWithIndex=g(n),G.foldMapWithIndex=y(n),G.reduceRightWithIndex=_(n)),"function"==typeof n.alt&&(G.alt=b(n)),"function"==typeof n.compact&&(G.compact=n.compact,G.separate=n.separate),"function"==typeof n.filter&&(G.filter=I(n),G.filterMap=S(n),G.partition=T(n),G.partitionMap=R(n)),"function"==typeof n.filterWithIndex&&(G.filterWithIndex=x(n),G.filterMapWithIndex=O(n),G.partitionWithIndex=w(n),G.partitionMapWithIndex=M(n)),"function"==typeof n.promap&&(G.promap=E(n)),"function"==typeof n.compose&&(G.compose=k(n)),"function"==typeof n.throwError){var H=function(t){return function(e){return"None"===e._tag?n.throwError(t()):n.of(e.value)}},V=function(t){return"Left"===t._tag?n.throwError(t.left):n.of(t.right)},z=function(t,e){return function(r){return t(r)?n.of(r):n.throwError(e(r))}},X=function(t,e){return function(r){return n.chain(r,function(r){return t(r)?n.of(r):n.throwError(e(r))})}};G.fromOption=H,G.fromEither=V,G.fromPredicate=z,G.filterOrElse=X}return G},t.pipe=u.pipe},23284:function(n,t,e){e.r(t),e.d(t,{BigIntFromString:function(){return tS},BooleanFromNumber:function(){return tR},BooleanFromString:function(){return to},DateFromISOString:function(){return n5},DateFromNumber:function(){return tn},DateFromUnixTime:function(){return td},IntFromString:function(){return tm},Json:function(){return tg},JsonArray:function(){return th},JsonFromString:function(){return ty},JsonRecord:function(){return tv},NonEmptyString:function(){return o},NumberFromString:function(){return ts},UUID:function(){return ti},clone:function(){return n6},date:function(){return g},either:function(){return tI},fromNewtype:function(){return n8},fromNullable:function(){return tu},fromRefinement:function(){return v},getLenses:function(){return tl},mapFromEntries:function(){return tw},mapOutput:function(){return i.mapOutput},nonEmptyArray:function(){return d},option:function(){return n3},optionFromNullable:function(){return n4},readonlyMapFromEntries:function(){return tM},readonlyNonEmptyArray:function(){return n9},readonlySetFromArray:function(){return h},regexp:function(){return tp},setFromArray:function(){return m},withEncode:function(){return tT},withFallback:function(){return te},withMessage:function(){return ta},withValidate:function(){return tt}});var r={};e.r(r),e.d(r,{Category:function(){return nF},Invariant:function(){return nD},Semigroupoid:function(){return nP},URI:function(){return nC},asOptional:function(){return nu},asTraversal:function(){return no},atKey:function(){return nT},component:function(){return n_},compose:function(){return na},composeIso:function(){return nf},composeLens:function(){return nc},composeOptional:function(){return np},composePrism:function(){return nl},composeTraversal:function(){return nd},filter:function(){return nv},findFirst:function(){return nM},findFirstNonEmpty:function(){return nE},fromNullable:function(){return nh},id:function(){return ni},imap:function(){return nk},index:function(){return nb},indexNonEmpty:function(){return nI},key:function(){return nS},left:function(){return nO},lens:function(){return nr},modify:function(){return ns},modifyF:function(){return nm},prop:function(){return ng},props:function(){return ny},right:function(){return nx},some:function(){return nR},traverse:function(){return nw}});var i=e(47361),u=e(87830),o=u.brand(u.string,function(n){return n.length>0},"NonEmptyString"),a=e(43586),c=e(1358),f=e(18896),l=e(81878),p=e(20492);function d(n,t){void 0===t&&(t="NonEmptyArray<"+n.name+">");var e=u.array(n);return new u.Type(t,function(n){return e.is(n)&&(0,c.isNonEmpty)(n)},function(n,t){return(0,f.pipe)(e.validate(n,t),(0,l.chain)(function(e){var r=(0,a.fromArray)(e);return(0,p.isNone)(r)?u.failure(n,t):u.success(r.value)}))},(0,a.map)(n.encode))}var s=e(1214);function m(n,t,e){void 0===e&&(e="Set<"+n.name+">");var r=u.array(n),i=(0,s.toArray)(t),o=(0,s.fromArray)(t);return new u.Type(e,function(t){return t instanceof Set&&(0,s.every)(n.is)(t)},function(n,t){return(0,f.pipe)(r.validate(n,t),(0,l.chain)(function(e){var r=o(e);return r.size!==e.length?u.failure(n,t):u.success(r)}))},function(n){return r.encode(i(n))})}function h(n,t,e){return void 0===e&&(e="ReadonlySet<"+n.name+">"),m(n,t,e)}function v(n,t){return new u.Type(n,t,function(n,e){return t(n)?u.success(n):u.failure(n,e)},u.identity)}var g=v("Date",function(n){return n instanceof Date}),y=e(42275),_=e(90817),b=e(96576),I=e(31583),S=e(97054),T=function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},R=function(n,t){return{get:n,reverseGet:t}},x=function(n){return E(n.get,(0,y.flow)(n.reverseGet,y.constant))},O=function(n){return j((0,y.flow)(n.get,p.some),n.reverseGet)},w=function(n){return H((0,y.flow)(n.get,p.some),(0,y.flow)(n.reverseGet,y.constant))},M=function(n){return Z(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.reverseGet(t)})}}})},E=function(n,t){return{get:n,set:t}},k=function(n){return H((0,y.flow)(n.get,p.some),n.set)},W=function(n){return Z(function(t){return function(e){return function(r){return t.map(e(n.get(r)),function(t){return n.set(t)(r)})}}})},C=function(n){return function(t){return E(function(e){return n.get(t.get(e))},function(e){return function(r){return t.set(n.set(e)(t.get(r)))(r)}})}},D=function(n){return function(t){return j((0,y.flow)(t.getOption,p.chain(n.getOption)),(0,y.flow)(n.reverseGet,t.reverseGet))}},P=function(n){return function(t){return J(q(n))(k(t))}},F=function(){return E(y.identity,y.constant)},U=function(n){return function(t){return E(function(e){return t.get(e)[n]},function(e){return function(r){var i,u=t.get(r);return e===u[n]?r:t.set(Object.assign({},u,((i={})[n]=e,i)))(r)}})}},A=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return function(t){return E(function(e){for(var r=t.get(e),i={},u=0;u<n.length;u++){var o=n[u];i[o]=r[o]}return i},function(e){return function(r){for(var i=t.get(r),u=0;u<n.length;u++){var o=n[u];if(e[o]!==i[o])return t.set(Object.assign({},i,e))(r)}return r}})}},L=function(n){return function(t){return E(function(e){return t.get(e)[n]},function(e){return function(r){var i=t.get(r);if(e===i[n])return r;var u=i.slice();return u[n]=e,t.set(u)(r)}})}},N=function(n){return function(t){return(0,f.pipe)(t,C(ne(function(n){return E(function(t){return S.lookup(n,t)},p.fold(function(){return S.deleteAt(n)},function(t){return S.insertAt(n,t)}))}).at(n)))}},j=function(n,t){return{getOption:n,reverseGet:t}},q=function(n){return H(n.getOption,function(t){return K(t)(n)})},Y=function(n){return Z(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(e(i),function(t){return K(t)(n)(r)})}))}}})},K=function(n){var t;return t=function(){return n},function(n){var e,r,i=(e=n,function(n){return(0,f.pipe)(e.getOption(n),p.map(function(r){var i=t(r);return i===r?n:e.reverseGet(i)}))});return function(n){return(0,f.pipe)(i(n),p.getOrElse(function(){return n}))}}},B=function(n){return j(p.fromPredicate(n),y.identity)},G=function(){return j(y.identity,p.some)},H=function(n,t){return{getOption:n,set:t}},V=function(n){return Z(function(t){return function(e){return function(r){return(0,f.pipe)(n.getOption(r),p.fold(function(){return t.of(r)},function(i){return t.map(e(i),function(t){return n.set(t)(r)})}))}}})},z=function(n){return function(t){return function(e){return(0,f.pipe)(t.getOption(e),p.map(function(r){var i=n(r);return i===r?e:t.set(i)(e)}))}}},X=function(n){return function(t){var e=z(n)(t);return function(n){return(0,f.pipe)(e(n),p.getOrElse(function(){return n}))}}},J=function(n){return function(t){return H((0,y.flow)(t.getOption,p.chain(n.getOption)),function(e){return X(n.set(e))(t)})}},$=function(n,t,e){if(e[n]===t)return e;var r=T([e[0]],e.slice(1),!0);return r[n]=t,r},Z=function(n){return{modifyF:n}};function Q(n){return function(t){return Z(function(e){return function(r){return t.modifyF(e)(n.modifyF(e)(r))}})}}var nn={URI:"Identity",map:function(n,t){return t(n)},of:y.identity,ap:function(n,t){return n(t)}},nt=function(n){return{index:n}},ne=function(n){return{at:n}},nr=E,ni=F,nu=k,no=W,na=C,nc=na,nf=(0,y.flow)(x,na),nl=P,np=function(n){return(0,y.flow)(nu,J(n))},nd=function(n){return(0,y.flow)(no,Q(n))},ns=function(n){return function(t){return function(e){var r=t.get(e),i=n(r);return r===i?e:t.set(i)(e)}}};function nm(n){return function(t){return function(e){return function(r){return(0,f.pipe)(e.get(r),t,function(t){return n.map(t,function(n){return e.set(n)(r)})})}}}}var nh=function(n){return nl(j(p.fromNullable,y.identity))(n)};function nv(n){return nl(B(n))}var ng=U,ny=A,n_=L,nb=function(n){var t;return(0,y.flow)(nu,function(t){return(0,f.pipe)(t,J(nt(function(n){return H(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return I.unsafeUpdateAt(n,t,e)}))}})}).index(n)))})},nI=function(n){var t;return(0,y.flow)(nu,function(t){return(0,f.pipe)(t,J(nt(function(n){return H(function(t){return I.lookup(n,t)},function(t){return function(e){return(0,f.pipe)(I.lookup(n,e),p.fold(function(){return e},function(){return $(n,t,e)}))}})}).index(n)))})},nS=function(n){var t;return(0,y.flow)(nu,function(t){return(0,f.pipe)(t,J(nt(function(n){return H(function(t){return S.lookup(n,t)},function(t){return function(e){return e[n]===t||p.isNone(S.lookup(n,e))?e:S.insertAt(n,t)(e)}})}).index(n)))})},nT=N,nR=nl(G()),nx=nl(j(p.fromEither,l.right)),nO=nl(j(function(n){return l.isLeft(n)?p.some(n.left):p.none},l.left));function nw(n){var t,e;return(0,y.flow)(no,Q(Z(function(t){var e,r="Identity"===t.URI?n.map:n.traverse(t);return function(n){return function(t){return r(t,n)}}})))}function nM(n){var t;return np(H(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return I.unsafeUpdateAt(n,t,e)}))}}))}function nE(n){var t;return np(H(I.findFirst(n),function(t){return function(e){return(0,f.pipe)(I.findIndex(n)(e),p.fold(function(){return e},function(n){return $(n,t,e)}))}}))}var nk=function(n,t){return function(e){return nW(e,n,t)}},nW=function(n,t,e){return nr((0,y.flow)(n.get,t),(0,y.flow)(e,n.set))},nC="monocle-ts/Lens",nD={URI:nC,imap:nW},nP={URI:nC,compose:function(n,t){return na(n)(t)}},nF={URI:nC,compose:nP.compose,id:ni},nU=function(n){return function(t){return t.modifyF(nn)(n)}},nA=function(n){return new nB(n.get,n.reverseGet)},nL=function(n){return new nG(n.get,n.set)},nN=function(n){return new nH(n.getOption,n.reverseGet)},nj=function(n){return new nz(n.getOption,n.set)},nq=function(n){return new nX(n.modifyF)},nY=function(n){return new n$(function(t){return nj(n.index(t))})},nK=function(n,t,e){var r;return e===n[t]?n:Object.assign({},n,((r={})[t]=e,r))},nB=function(){function n(n,t){this.get=n,this.reverseGet=t,this._tag="Iso",this.unwrap=this.get,this.to=this.get,this.wrap=this.reverseGet,this.from=this.reverseGet}return n.prototype.reverse=function(){var n;return nA(R(this.reverseGet,this.get))},n.prototype.modify=function(n){var t,e;return e=this,function(t){return e.reverseGet(n(e.get(t)))}},n.prototype.asLens=function(){return nL(x(this))},n.prototype.asPrism=function(){return nN(O(this))},n.prototype.asOptional=function(){return nj(w(this))},n.prototype.asTraversal=function(){return nq(M(this))},n.prototype.asFold=function(){var n=this;return new nQ(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.asGetter=function(){var n=this;return new nZ(function(t){return n.get(t)})},n.prototype.asSetter=function(){var n=this;return new n0(function(t){return n.modify(t)})},n.prototype.compose=function(n){var t;return nA((t=n,function(n){return R((0,y.flow)(n.get,t.get),(0,y.flow)(t.reverseGet,n.reverseGet))})(this))},n.prototype.composeIso=function(n){return this.compose(n)},n.prototype.composeLens=function(n){return nL((0,f.pipe)(this,x,na(n)))},n.prototype.composePrism=function(n){return nN((0,f.pipe)(this,O,D(n)))},n.prototype.composeOptional=function(n){return nj((0,f.pipe)(this,w,J(n)))},n.prototype.composeTraversal=function(n){return nq((0,f.pipe)(this,M,Q(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n}(),nG=function(){function n(n,t){this.get=n,this.set=t,this._tag="Lens"}return n.fromPath=function(){var t=n.fromProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromProp=function(){return function(n){return nL((0,f.pipe)(ni(),ng(n)))}},n.fromProps=function(){return function(n){return nL((0,f.pipe)(ni(),ny.apply(r,n)))}},n.fromNullableProp=function(){return function(t,e){return new n(function(n){var r=(0,p.fromNullable)(n[t]);return(0,p.isNone)(r)?e:r.value},function(n){return function(e){return nK(e,t,n)}})}},n.prototype.modify=function(n){return ns(n)(this)},n.prototype.asOptional=function(){return nj(nu(this))},n.prototype.asTraversal=function(){return nq(no(this))},n.prototype.asSetter=function(){var n=this;return new n0(function(t){return n.modify(t)})},n.prototype.asGetter=function(){var n=this;return new nZ(function(t){return n.get(t)})},n.prototype.asFold=function(){var n=this;return new nQ(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(n){return nL(na(n)(this))},n.prototype.composeLens=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.asGetter().compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeOptional=function(n){return nj((0,f.pipe)(this,nu,J(n)))},n.prototype.composeTraversal=function(n){return nq((0,f.pipe)(this,no,Q(n)))},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nL((0,f.pipe)(this,na((0,f.pipe)(n,x))))},n.prototype.composePrism=function(n){return nj(nl(n)(this))},n}(),nH=function(){function n(n,t){this.getOption=n,this.reverseGet=t,this._tag="Prism"}return n.fromPredicate=function(n){return nN(B(n))},n.some=function(){return nV},n.prototype.modify=function(n){var t=this;return function(e){var r=t.modifyOption(n)(e);return(0,p.isNone)(r)?e:r.value}},n.prototype.modifyOption=function(n){var t=this;return function(e){return p.option.map(t.getOption(e),function(r){var i=n(r);return i===r?e:t.reverseGet(i)})}},n.prototype.set=function(n){return this.modify(function(){return n})},n.prototype.asOptional=function(){return nj(q(this))},n.prototype.asTraversal=function(){return nq(Y(this))},n.prototype.asSetter=function(){var n=this;return new n0(function(t){return n.modify(t)})},n.prototype.asFold=function(){var n=this;return new nQ(function(t){return function(e){return function(r){var i=n.getOption(r);return(0,p.isNone)(i)?t.empty:e(i.value)}}})},n.prototype.compose=function(n){return nN(D(n)(this))},n.prototype.composePrism=function(n){return this.compose(n)},n.prototype.composeOptional=function(n){return nj((0,f.pipe)(this,q,J(n)))},n.prototype.composeTraversal=function(n){return nq((0,f.pipe)(this,Y,Q(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeIso=function(n){return nN((0,f.pipe)(this,D((0,f.pipe)(n,O))))},n.prototype.composeLens=function(n){var t;return nj((t=n,function(n){return J(k(t))(q(n))})(this))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nV=new nH(y.identity,p.some),nz=function(){function n(n,t){this.getOption=n,this.set=t,this._tag="Optional"}return n.fromPath=function(){var t=n.fromNullableProp();return function(n){var e=t(n[0]);return n.slice(1).reduce(function(n,e){return n.compose(t(e))},e)}},n.fromNullableProp=function(){return function(t){return new n(function(n){return(0,p.fromNullable)(n[t])},function(n){return function(e){return null==e[t]?e:nK(e,t,n)}})}},n.fromOptionProp=function(){var n=nG.fromProp();return function(t){return n(t).composePrism(nV)}},n.prototype.modify=function(n){return X(n)(this)},n.prototype.modifyOption=function(n){return z(n)(this)},n.prototype.asTraversal=function(){return nq(V(this))},n.prototype.asFold=function(){var n=this;return new nQ(function(t){return function(e){return function(r){var i=n.getOption(r);return(0,p.isNone)(i)?t.empty:e(i.value)}}})},n.prototype.asSetter=function(){var n=this;return new n0(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nj(J(n)(this))},n.prototype.composeOptional=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return nq((0,f.pipe)(this,V,Q(n)))},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeLens=function(n){return nj((0,f.pipe)(this,J((0,f.pipe)(n,nu))))},n.prototype.composePrism=function(n){return nj((0,f.pipe)(this,J((0,f.pipe)(n,q))))},n.prototype.composeIso=function(n){return nj((0,f.pipe)(this,J((0,f.pipe)(n,w))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nX=function(){function n(n){this.modifyF=n,this._tag="Traversal"}return n.prototype.modify=function(n){return nU(n)(this)},n.prototype.set=function(n){var t;return nU(function(){return n})(this)},n.prototype.filter=function(n){var t;return nq(Q(Y(B(n)))(this))},n.prototype.asFold=function(){var n=this;return new nQ(function(t){return function(e){return n.modifyF((0,_.getApplicative)(t))(function(n){return(0,_.make)(e(n))})}})},n.prototype.asSetter=function(){var n=this;return new n0(function(t){return n.modify(t)})},n.prototype.compose=function(n){return nq(Q(n)(this))},n.prototype.composeTraversal=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeSetter=function(n){return this.asSetter().compose(n)},n.prototype.composeOptional=function(n){return this.compose(n.asTraversal())},n.prototype.composeLens=function(n){return nq((0,f.pipe)(this,Q((0,f.pipe)(n,no))))},n.prototype.composePrism=function(n){return nq((0,f.pipe)(this,Q((0,f.pipe)(n,Y))))},n.prototype.composeIso=function(n){return nq((0,f.pipe)(this,Q((0,f.pipe)(n,M))))},n.prototype.composeGetter=function(n){return this.asFold().compose(n.asFold())},n}(),nJ=function(){function n(n){this.at=n,this._tag="At"}return n.prototype.fromIso=function(n){var t,e,r;return r=this,e=ne(function(t){return(0,f.pipe)(n,x,C(r.at(t)))}),new nJ(function(n){return nL(e.at(n))})},n}(),n$=function(){function n(n){this.index=n,this._tag="Index"}return n.fromAt=function(n){var t;return nY(nt(function(t){return P(G())(n.at(t))}))},n.prototype.fromIso=function(n){var t,e;return nY((e=this,nt(function(t){return(0,f.pipe)(n,w,J(e.index(t)))})))},n}(),nZ=function(){function n(n){this.get=n,this._tag="Getter"}return n.prototype.asFold=function(){var n=this;return new nQ(function(){return function(t){return function(e){return t(n.get(e))}}})},n.prototype.compose=function(t){var e=this;return new n(function(n){return t.get(e.get(n))})},n.prototype.composeGetter=function(n){return this.compose(n)},n.prototype.composeFold=function(n){return this.asFold().compose(n)},n.prototype.composeLens=function(n){return this.compose(n.asGetter())},n.prototype.composeIso=function(n){return this.compose(n.asGetter())},n.prototype.composeTraversal=function(n){return this.asFold().compose(n.asFold())},n.prototype.composeOptional=function(n){return this.asFold().compose(n.asFold())},n.prototype.composePrism=function(n){return this.asFold().compose(n.asFold())},n}(),nQ=function(){function n(n){this.foldMap=n,this._tag="Fold",this.getAll=n(c.getMonoid())(c.of),this.exist=n(b.monoidAny),this.all=n(b.monoidAll),this.foldMapFirst=n((0,p.getFirstMonoid)())}return n.prototype.compose=function(t){var e=this;return new n(function(n){return function(r){return e.foldMap(n)(t.foldMap(n)(r))}})},n.prototype.composeFold=function(n){return this.compose(n)},n.prototype.composeGetter=function(n){return this.compose(n.asFold())},n.prototype.composeTraversal=function(n){return this.compose(n.asFold())},n.prototype.composeOptional=function(n){return this.compose(n.asFold())},n.prototype.composeLens=function(n){return this.compose(n.asFold())},n.prototype.composePrism=function(n){return this.compose(n.asFold())},n.prototype.composeIso=function(n){return this.compose(n.asFold())},n.prototype.find=function(n){return this.foldMapFirst((0,p.fromPredicate)(n))},n.prototype.headOption=function(n){return this.find(function(){return!0})(n)},n}(),n0=function(){function n(n){this.modify=n,this._tag="Setter"}return n.prototype.set=function(n){return this.modify((0,y.constant)(n))},n.prototype.compose=function(t){var e=this;return new n(function(n){return e.modify(t.modify(n))})},n.prototype.composeSetter=function(n){return this.compose(n)},n.prototype.composeTraversal=function(n){return this.compose(n.asSetter())},n.prototype.composeOptional=function(n){return this.compose(n.asSetter())},n.prototype.composeLens=function(n){return this.compose(n.asSetter())},n.prototype.composePrism=function(n){return this.compose(n.asSetter())},n.prototype.composeIso=function(n){return this.compose(n.asSetter())},n}(),n1=new nB(y.unsafeCoerce,y.unsafeCoerce);function n8(n,t){return void 0===t&&(t="fromNewtype("+n.name+")"),new u.Type(t,function(t){return n.is(t)},function(t,e){return(0,f.pipe)(n.validate(t,e),(0,l.map)(n1.wrap))},function(t){return n.encode(n1.unwrap(t))})}var n2=u.strict({_tag:u.literal("None")},"None"),n7=u.literal("Some");function n3(n,t){return void 0===t&&(t="Option<"+n.name+">"),u.union([n2,u.strict({_tag:n7,value:n},"Some<"+n.name+">")],t)}function n4(n,t){return void 0===t&&(t="Option<"+n.name+">"),new u.Type(t,n3(n).is,function(t,e){return null==t?u.success(p.none):(0,f.pipe)(n.validate(t,e),(0,l.map)(p.some))},function(t){return p.toNullable((0,f.pipe)(t,p.map(n.encode)))})}var n5=new u.Type("DateFromISOString",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return n.toISOString()});function n9(n,t){return void 0===t&&(t="ReadonlyNonEmptyArray<"+n.name+">"),d(n,t)}function n6(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}var tn=new u.Type("DateFromNumber",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.number.validate(n,t),(0,l.chain)(function(e){var r=new Date(e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return n.getTime()});function tt(n,t,e){void 0===e&&(e=n.name);var r=n6(n);return r.validate=t,r.decode=function(n){return t(n,u.getDefaultContext(r))},r.name=e,r}function te(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),tt(n,function(e,r){return(0,l.orElse)(function(){return u.success(t)})(n.validate(e,r))},e)}var tr=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ti=u.brand(u.string,function(n){return tr.test(n)},"UUID");function tu(n,t,e){return void 0===e&&(e="fromNullable("+n.name+")"),tt(n,function(e,r){return null==e?u.success(t):n.validate(e,r)},e)}var to=new u.Type("BooleanFromString",u.boolean.is,function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){return"true"===e?u.success(!0):"false"===e?u.success(!1):u.failure(n,t)}))},String);function ta(n,t){return tt(n,function(e,r){return(0,l.mapLeft)(function(){return[{value:e,context:r,message:t(e,r),actual:e}]})(n.validate(e,r))})}function tc(n){switch(n._tag){case"InterfaceType":return n.props;case"ExactType":return tc(n.type)}}var tf=nG.fromProp();function tl(n){var t={};for(var e in tc(n))t[e]=tf(e);return t}var tp=v("RegExp",function(n){return"[object RegExp]"===Object.prototype.toString.call(n)}),td=new u.Type("DateFromUnixTime",function(n){return n instanceof Date},function(n,t){return(0,f.pipe)(u.Int.validate(n,t),(0,l.chain)(function(e){var r=new Date(1e3*e);return isNaN(r.getTime())?u.failure(n,t):u.success(r)}))},function(n){return Math.floor(n.getTime()/1e3)}),ts=new u.Type("NumberFromString",u.number.is,function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){var r=+e;return isNaN(r)||""===e.trim()?u.failure(n,t):u.success(r)}))},String),tm=new u.Type("IntFromString",u.Int.is,function(n,t){return(0,f.pipe)(ts.validate(n,t),(0,l.chain)(function(e){return u.Int.is(e)?u.success(e):u.failure(n,t)}))},ts.encode),th=u.recursion("JsonArray",function(){return u.readonlyArray(tg)}),tv=u.recursion("JsonRecord",function(){return u.record(u.string,tg)}),tg=u.union([u.boolean,u.number,u.string,u.null,th,tv],"Json"),ty=new u.Type("JsonFromString",tg.is,function(n,t){try{return u.success(JSON.parse(n))}catch(e){return u.failure(n,t)}},function(n){return JSON.stringify(n)}),t_=u.literal("Left"),tb=u.literal("Right");function tI(n,t,e){return void 0===e&&(e="Either<"+n.name+", "+t.name+">"),u.union([u.strict({_tag:t_,left:n},"Left<"+n.name+">"),u.strict({_tag:tb,right:t},"Right<"+n.name+">")],e)}var tS=new u.Type("BigIntFromString",function(n){return"bigint"==typeof n},function(n,t){return(0,f.pipe)(u.string.validate(n,t),(0,l.chain)(function(e){if(!o.is(e.trim()))return u.failure(n,t);try{return u.success(BigInt(e))}catch(r){return u.failure(n,t)}}))},String);function tT(n,t,e){return void 0===e&&(e=n.name),new u.Type(e,n.is,n.validate,t)}var tR=new u.Type("BooleanFromNumber",u.boolean.is,function(n,t){return(0,f.pipe)(u.number.validate(n,t),(0,l.map)(function(n){return 0!==n}))},Number),tx=e(55116),tO=e(3291);function tw(n,t,e,r){void 0===r&&(r="Map<"+n.name+", "+e.name+">");var i,o,a=u.array(u.tuple([n,e])),f=(0,tx.toArray)(t),p=(0,tx.fromFoldable)(t,(0,tO.getLastSemigroup)(),c.Foldable),d=(i=n.is,o=e.is,function(n){for(var t,e=n.entries();!(t=e.next()).done;)if(!1===i(t.value[0])||!1===o(t.value[1]))return!1;return!0});return new u.Type(r,function(n){return n instanceof Map&&d(n)},function(n,t){return(0,y.pipe)(a.validate(n,t),(0,l.chain)(function(e){var r=p(e);return r.size!==e.length?u.failure(n,t):u.success(r)}))},function(n){return a.encode(f(n))})}function tM(n,t,e,r){return void 0===r&&(r="ReadonlyMap<"+n.name+", "+e.name+">"),tw(n,t,e,r)}},47361:function(n,t,e){e.r(t),e.d(t,{mapOutput:function(){return i}});var r=e(87830);function i(n,t,e){return void 0===e&&(e=n.name),new r.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},11621:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IntFromString=void 0;var o=u(e(87830)),a=e(59054),c=e(67794),f=e(87412);t.IntFromString=new o.Type("IntFromString",o.Int.is,function(n,t){return c.pipe(a.NumberFromString.validate(n,t),f.chain(function(e){return o.Int.is(e)?o.success(e):o.failure(n,t)}))},a.NumberFromString.encode)},59054:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberFromString=void 0;var o=u(e(87830)),a=e(67794),c=e(87412);t.NumberFromString=new o.Type("NumberFromString",o.number.is,function(n,t){return a.pipe(o.string.validate(n,t),c.chain(function(e){var r=+e;return isNaN(r)||""===e.trim()?o.failure(n,t):o.success(r)}))},String)},62886:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function(n){var t=Object.create(Object.getPrototypeOf(n));return Object.assign(t,n),t}},2932:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.mapOutput=void 0;var o=u(e(87830));t.mapOutput=function(n,t,e){return void 0===e&&(e=n.name),new o.Type(e,n.is,n.validate,function(e){return t(n.encode(e))})}},69624:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withFallback=void 0;var o=u(e(87830)),a=e(40308),c=e(87412);t.withFallback=function(n,t,e){return void 0===e&&(e="withFallback("+n.name+")"),a.withValidate(n,function(e,r){return c.orElse(function(){return o.success(t)})(n.validate(e,r))},e)}},40308:function(n,t,e){var r=this&&this.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),i=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)Object.hasOwnProperty.call(n,e)&&r(t,n,e);return i(t,n),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withValidate=void 0;var o=u(e(87830)),a=e(62886);t.withValidate=function(n,t,e){void 0===e&&(e=n.name);var r=a.clone(n);return r.validate=t,r.decode=function(n){return t(n,o.getDefaultContext(r))},r.name=e,r}},87830:function(n,t,e){e.r(t),e.d(t,{AnyArrayType:function(){return Z},AnyDictionaryType:function(){return nn},AnyType:function(){return nL},Array:function(){return Q},ArrayType:function(){return ns},BigIntType:function(){return z},BooleanType:function(){return J},Dictionary:function(){return nH},DictionaryType:function(){return n_},ExactType:function(){return nC},Function:function(){return nF},FunctionType:function(){return nP},Int:function(){return nl},Integer:function(){return nq},InterfaceType:function(){return nh},IntersectionType:function(){return nT},KeyofType:function(){return ni},LiteralType:function(){return ne},NeverType:function(){return nU},NullType:function(){return U},NumberType:function(){return H},ObjectType:function(){return nV},PartialType:function(){return ng},ReadonlyArrayType:function(){return nE},ReadonlyType:function(){return nw},RecursiveType:function(){return np},RefinementType:function(){return no},StrictType:function(){return nJ},StringType:function(){return B},TaggedUnionType:function(){return nY},TupleType:function(){return nx},Type:function(){return p},UndefinedType:function(){return L},UnionType:function(){return nI},UnknownArray:function(){return Q},UnknownRecord:function(){return nt},UnknownType:function(){return Y},VoidType:function(){return j},alias:function(){return nZ},any:function(){return nN},appendContext:function(){return h},array:function(){return nm},bigint:function(){return X},boolean:function(){return $},brand:function(){return na},clean:function(){return n$},dictionary:function(){return nX},emptyTags:function(){return w},exact:function(){return nD},failure:function(){return f},failures:function(){return c},getContextEntry:function(){return m},getDefaultContext:function(){return nG},getDomainKeys:function(){return S},getFunctionName:function(){return s},getIndex:function(){return F},getTags:function(){return P},getValidationError:function(){return nB},identity:function(){return d},interface:function(){return nv},intersection:function(){return nR},keyof:function(){return nu},literal:function(){return nr},mergeAll:function(){return R},never:function(){return nA},null:function(){return A},nullType:function(){return A},number:function(){return V},object:function(){return nz},partial:function(){return ny},readonly:function(){return nM},readonlyArray:function(){return nk},record:function(){return nb},recursion:function(){return nd},refinement:function(){return nj},strict:function(){return nW},string:function(){return G},success:function(){return l},taggedUnion:function(){return nK},tuple:function(){return nO},type:function(){return nv},undefined:function(){return N},union:function(){return nS},unknown:function(){return K},void:function(){return q},voidType:function(){return q}});var r,i=e(81878),u=(r=function(n,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}),o=function(){return(o=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},a=function(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))},c=i.left,f=function(n,t,e){return c([{value:n,context:t,message:e}])},l=i.right,p=function(){function n(n,t,e,r){this.name=n,this.is=t,this.validate=e,this.encode=r,this.decode=this.decode.bind(this)}return n.prototype.pipe=function(t,e){var r=this;return void 0===e&&(e="pipe(".concat(this.name,", ").concat(t.name,")")),new n(e,t.is,function(n,e){var u=r.validate(n,e);return(0,i.isLeft)(u)?u:t.validate(u.right,e)},this.encode===d&&t.encode===d?d:function(n){return r.encode(t.encode(n))})},n.prototype.asDecoder=function(){return this},n.prototype.asEncoder=function(){return this},n.prototype.decode=function(n){return this.validate(n,[{key:"",type:this,actual:n}])},n}(),d=function(n){return n};function s(n){return n.displayName||n.name||"<function".concat(n.length,">")}function m(n,t){return{key:n,type:t}}function h(n,t,e,r){for(var i=n.length,u=Array(i+1),o=0;o<i;o++)u[o]=n[o];return u[i]={key:t,type:e,actual:r},u}function v(n,t){for(var e=t.length,r=0;r<e;r++)n.push(t[r])}var g=Object.prototype.hasOwnProperty;function y(n){return Object.keys(n).map(function(t){return"".concat(t,": ").concat(n[t].name)}).join(", ")}function _(n){for(var t=0;t<n.length;t++)if(n[t].encode!==d)return!1;return!0}function b(n){return"{ ".concat(y(n)," }")}function I(n){return"Partial<".concat(n,">")}function S(n){if(k(n)){var t,e,r=n.value;if(G.is(r))return(t={})[r]=null,t}else{if(e=n,"KeyofType"===e._tag)return n.keys;else if(C(n)){var i=n.types.map(function(n){return S(n)});return i.some(N.is)?void 0:Object.assign.apply(Object,a([{}],i,!1))}}}function T(n){return"("+n.map(function(n){return n.name}).join(" | ")+")"}function R(n,t){for(var e=!0,r=!0,i=!nt.is(n),u=0;u<t.length;u++){var o=t[u];o!==n&&(e=!1),nt.is(o)&&(r=!1)}if(e)return n;if(r)return t[t.length-1];for(var a={},c=0;c<t.length;c++){var o=t[c];for(var f in o)(!g.call(a,f)||i||o[f]!==n[f])&&(a[f]=o[f])}return a}function x(n,t){for(var e=Object.getOwnPropertyNames(n),r=!1,i={},u=0;u<e.length;u++){var o=e[u];g.call(t,o)?i[o]=n[o]:r=!0}return r?i:n}function O(n){return n.length>0}var w={};function M(n,t){for(var e=[],r=0;r<n.length;r++){var i=n[r];-1!==t.indexOf(i)&&e.push(i)}return e}function E(n){return"AnyType"===n._tag}function k(n){return"LiteralType"===n._tag}function W(n){return"InterfaceType"===n._tag}function C(n){return"UnionType"===n._tag}var D=[];function P(n){if(-1!==D.indexOf(n))return w;if(W(n)||"StrictType"===(i=n)._tag){var t=w;for(var e in n.props){var r=n.props[e];k(r)&&(t===w&&(t={}),t[e]=[r.value])}return t}if("ExactType"===(u=n)._tag||"RefinementType"===(o=n)._tag)return P(n.type);if("IntersectionType"===(a=n)._tag)return n.types.reduce(function(n,t){return function(n,t){if(n===w)return t;if(t===w)return n;var e=Object.assign({},n);for(var r in t)if(g.call(n,r)){var i=M(n[r],t[r]);if(O(i))e[r]=i;else{e=w;break}}else e[r]=t[r];return e}(n,P(t))},w);if(C(n))return n.types.slice(1).reduce(function(n,t){return function(n,t){if(n===w||t===w)return w;var e=w;for(var r in n)g.call(t,r)&&0===M(n[r],t[r]).length&&(e===w&&(e={}),e[r]=n[r].concat(t[r]));return e}(n,P(t))},P(n.types[0]));if("RecursiveType"===(c=n)._tag){D.push(n);var i,u,o,a,c,f=P(n.type);return D.pop(),f}return w}function F(n){var t=P(n[0]),e=Object.keys(t),r=n.length;keys:for(var i=0;i<e.length;i++){var u=function(e){for(var i=t[e].slice(),u=[t[e]],o=1;o<r;o++){var a=P(n[o])[e];if(void 0===a||a.some(function(n){return -1!==i.indexOf(n)}))return"continue-keys";i.push.apply(i,a),u.push(a)}return{value:[e,u]}}(e[i]);if("object"==typeof u)return u.value;if("continue-keys"===u)continue keys}}var U=function(n){function t(){var t=n.call(this,"null",function(n){return null===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NullType",t}return u(t,n),t}(p),A=new U,L=function(n){function t(){var t=n.call(this,"undefined",function(n){return void 0===n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="UndefinedType",t}return u(t,n),t}(p),N=new L,j=function(n){function t(){var t=n.call(this,"void",N.is,N.validate,d)||this;return t._tag="VoidType",t}return u(t,n),t}(p),q=new j,Y=function(n){function t(){var t=n.call(this,"unknown",function(n){return!0},l,d)||this;return t._tag="UnknownType",t}return u(t,n),t}(p),K=new Y,B=function(n){function t(){var t=n.call(this,"string",function(n){return"string"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="StringType",t}return u(t,n),t}(p),G=new B,H=function(n){function t(){var t=n.call(this,"number",function(n){return"number"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="NumberType",t}return u(t,n),t}(p),V=new H,z=function(n){function t(){var t=n.call(this,"bigint",function(n){return"bigint"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BigIntType",t}return u(t,n),t}(p),X=new z,J=function(n){function t(){var t=n.call(this,"boolean",function(n){return"boolean"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="BooleanType",t}return u(t,n),t}(p),$=new J,Z=function(n){function t(){var t=n.call(this,"UnknownArray",Array.isArray,function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyArrayType",t}return u(t,n),t}(p),Q=new Z,nn=function(n){function t(){var t=n.call(this,"UnknownRecord",function(n){return null!==n&&"object"==typeof n&&!Array.isArray(n)},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="AnyDictionaryType",t}return u(t,n),t}(p),nt=new nn,ne=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.value=u,o._tag="LiteralType",o}return u(t,n),t}(p);function nr(n,t){void 0===t&&(t=JSON.stringify(n));var e=function(t){return t===n};return new ne(t,e,function(t,r){return e(t)?l(n):f(t,r)},d,n)}var ni=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.keys=u,o._tag="KeyofType",o}return u(t,n),t}(p);function nu(n,t){void 0===t&&(t=Object.keys(n).map(function(n){return JSON.stringify(n)}).join(" | "));var e=function(t){return G.is(t)&&g.call(n,t)};return new ni(t,e,function(n,t){return e(n)?l(n):f(n,t)},d,n)}var no=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i)||this;return a.type=u,a.predicate=o,a._tag="RefinementType",a}return u(t,n),t}(p);function na(n,t,e){return nj(n,t,e)}var nc,nf,nl=nj(V,nf=function(n){return Number.isInteger(n)},"Int"),np=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.runDefinition=u,o._tag="RecursiveType",o}return u(t,n),t}(p);function nd(n,t){var e,r=function(){return e||((e=t(i)).name=n),e},i=new np(n,function(n){return r().is(n)},function(n,t){return r().validate(n,t)},function(n){return r().encode(n)},r);return i}Object.defineProperty(np.prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var ns=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ArrayType",o}return u(t,n),t}(p);function nm(n,t){return void 0===t&&(t="Array<".concat(n.name,">")),new ns(t,function(t){return Q.is(t)&&t.every(n.is)},function(t,e){var r=Q.validate(t,e);if((0,i.isLeft)(r))return r;for(var u=r.right,o=u.length,a=u,f=[],p=0;p<o;p++){var d=u[p],s=n.validate(d,h(e,String(p),n,d));if((0,i.isLeft)(s))v(f,s.left);else{var m=s.right;m!==d&&(a===u&&(a=u.slice()),a[p]=m)}}return f.length>0?c(f):l(a)},n.encode===d?d:function(t){return t.map(n.encode)},n)}var nh=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="InterfaceType",o}return u(t,n),t}(p);function nv(n,t){void 0===t&&(t=b(n));var e=Object.keys(n),r=e.map(function(t){return n[t]}),u=e.length;return new nh(t,function(n){if(nt.is(n)){for(var t=0;t<u;t++){var i=e[t],o=n[i];if(void 0===o&&!g.call(n,i)||!r[t].is(o))return!1}return!0}return!1},function(n,t){var a=nt.validate(n,t);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var m=e[s],y=p[m],_=r[s],b=_.validate(y,h(t,m,_,y));if((0,i.isLeft)(b))v(d,b.left);else{var I=b.right;I===y&&(void 0!==I||g.call(p,m))||(p===f&&(p=o({},f)),p[m]=I)}}return d.length>0?c(d):l(p)},_(r)?d:function(n){for(var t=o({},n),i=0;i<u;i++){var a=e[i],c=r[i].encode;c!==d&&(t[a]=c(n[a]))}return t},n)}var ng=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="PartialType",o}return u(t,n),t}(p);function ny(n,t){void 0===t&&(t=I(b(n)));var e=Object.keys(n),r=e.map(function(t){return n[t]}),u=e.length;return new ng(t,function(t){if(nt.is(t)){for(var r=0;r<u;r++){var i=e[r],o=t[i];if(void 0!==o&&!n[i].is(o))return!1}return!0}return!1},function(t,r){var a=nt.validate(t,r);if((0,i.isLeft)(a))return a;for(var f=a.right,p=f,d=[],s=0;s<u;s++){var m=e[s],g=p[m],y=n[m],_=y.validate(g,h(r,m,y,g));if((0,i.isLeft)(_))void 0!==g&&v(d,_.left);else{var b=_.right;b!==g&&(p===f&&(p=o({},f)),p[m]=b)}}return d.length>0?c(d):l(p)},_(r)?d:function(n){for(var t=o({},n),i=0;i<u;i++){var a=e[i],c=n[a];void 0!==c&&(t[a]=r[i].encode(c))}return t},n)}var n_=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i)||this;return a.domain=u,a.codomain=o,a._tag="DictionaryType",a}return u(t,n),t}(p);function nb(n,t,e){var r,u,o,a,p,s,m,g,y=S(n);return y?(r=Object.keys(y),void 0===(a=e)&&(a="{ [K in ".concat(n.name,"]: ").concat(t.name," }")),p=r.length,new n_(a,function(n){return nt.is(n)&&r.every(function(e){return t.is(n[e])})},function(n,e){var u=nt.validate(n,e);if((0,i.isLeft)(u))return u;for(var o=u.right,a={},f=[],d=!1,s=0;s<p;s++){var m=r[s],g=o[m],y=t.validate(g,h(e,m,t,g));if((0,i.isLeft)(y))v(f,y.left);else{var _=y.right;d=d||_!==g,a[m]=_}}return f.length>0?c(f):l(d||Object.keys(o).length!==p?a:o)},t.encode===d?d:function(n){for(var e={},i=0;i<p;i++){var u=r[i];e[u]=t.encode(n[u])}return e},n,t)):(s=n,void 0===(g=e)&&(g="{ [K in ".concat(s.name,"]: ").concat(t.name," }")),new n_(g,function(n){return nt.is(n)?Object.keys(n).every(function(e){return s.is(e)&&t.is(n[e])}):E(t)&&Array.isArray(n)},function(n,e){if(nt.is(n)){for(var r={},u=[],o=Object.keys(n),a=o.length,p=!1,d=0;d<a;d++){var m=o[d],g=n[m],y=s.validate(m,h(e,m,s,m));if((0,i.isLeft)(y))v(u,y.left);else{var _=y.right;p=p||_!==m,m=_;var b=t.validate(g,h(e,m,t,g));if((0,i.isLeft)(b))v(u,b.left);else{var I=b.right;p=p||I!==g,r[m]=I}}}return u.length>0?c(u):l(p?r:n)}return E(t)&&Array.isArray(n)?l(n):f(n,e)},s.encode===d&&t.encode===d?d:function(n){for(var e={},r=Object.keys(n),i=r.length,u=0;u<i;u++){var o=r[u];e[String(s.encode(o))]=t.encode(n[o])}return e},s,t))}var nI=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="UnionType",o}return u(t,n),t}(p);function nS(n,t){void 0===t&&(t=T(n));var e=F(n);if(void 0===e||!(n.length>0))return new nI(t,function(t){return n.some(function(n){return n.is(t)})},function(t,e){for(var r=[],u=0;u<n.length;u++){var o=n[u],a=o.validate(t,h(e,String(u),o,t));if(!(0,i.isLeft)(a))return l(a.right);v(r,a.left)}return c(r)},_(n)?d:function(e){for(var r=0;r<n.length;r++){var i=n[r];if(i.is(e))return i.encode(e)}throw Error("no codec found to encode value in union type ".concat(t))},n);var r=e[0],u=e[1],o=u.length,a=function(n){for(var t=0;t<o;t++)if(-1!==u[t].indexOf(n))return t};return new nY(t,function(t){if(nt.is(t)){var e=a(t[r]);return void 0!==e&&n[e].is(t)}return!1},function(t,e){var u=nt.validate(t,e);if((0,i.isLeft)(u))return u;var o=u.right,c=a(o[r]);if(void 0===c)return f(t,e);var l=n[c];return l.validate(o,h(e,String(c),l,o))},_(n)?d:function(e){var i=a(e[r]);if(void 0!==i)return n[i].encode(e);throw Error("no codec found to encode value in union codec ".concat(t))},n,r)}var nT=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="IntersectionType",o}return u(t,n),t}(p);function nR(n,t){void 0===t&&(t="(".concat(n.map(function(n){return n.name}).join(" & "),")"));var e=n.length;return new nT(t,function(t){return n.every(function(n){return n.is(t)})},0===n.length?l:function(t,r){for(var u=[],o=[],a=0;a<e;a++){var f=n[a],p=f.validate(t,h(r,String(a),f,t));(0,i.isLeft)(p)?v(o,p.left):u.push(p.right)}return o.length>0?c(o):l(R(t,u))},0===n.length?d:function(t){return R(t,n.map(function(n){return n.encode(t)}))},n)}var nx=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.types=u,o._tag="TupleType",o}return u(t,n),t}(p);function nO(n,t){void 0===t&&(t="[".concat(n.map(function(n){return n.name}).join(", "),"]"));var e=n.length;return new nx(t,function(t){return Q.is(t)&&t.length===e&&n.every(function(n,e){return n.is(t[e])})},function(t,r){var u=Q.validate(t,r);if((0,i.isLeft)(u))return u;for(var o=u.right,a=o.length>e?o.slice(0,e):o,f=[],p=0;p<e;p++){var d=o[p],s=n[p],m=s.validate(d,h(r,String(p),s,d));if((0,i.isLeft)(m))v(f,m.left);else{var g=m.right;g!==d&&(a===o&&(a=o.slice()),a[p]=g)}}return f.length>0?c(f):l(a)},_(n)?d:function(t){return n.map(function(n,e){return n.encode(t[e])})},n)}var nw=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ReadonlyType",o}return u(t,n),t}(p);function nM(n,t){return void 0===t&&(t="Readonly<".concat(n.name,">")),new nw(t,n.is,n.validate,n.encode,n)}var nE=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ReadonlyArrayType",o}return u(t,n),t}(p);function nk(n,t){void 0===t&&(t="ReadonlyArray<".concat(n.name,">"));var e=nm(n);return new nE(t,e.is,e.validate,e.encode,n)}var nW=function(n,t){return nD(nv(n),t)},nC=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.type=u,o._tag="ExactType",o}return u(t,n),t}(p);function nD(n,t){if(void 0===t){var e,r;t=W(n)?"{| ".concat(y(n.props)," |}"):(r=n,"PartialType"===r._tag)?I("{| ".concat(y(n.props)," |}")):"Exact<".concat(n.name,">")}var u=function n(t){switch(t._tag){case"RefinementType":case"ReadonlyType":return n(t.type);case"InterfaceType":case"StrictType":case"PartialType":return t.props;case"IntersectionType":return t.types.reduce(function(t,e){return Object.assign(t,n(e))},{})}}(n);return new nC(t,n.is,function(t,e){var r=nt.validate(t,e);if((0,i.isLeft)(r))return r;var o=n.validate(t,e);return(0,i.isLeft)(o)?o:(0,i.right)(x(o.right,u))},function(t){return n.encode(x(t,u))},n)}var nP=function(n){function t(){var t=n.call(this,"Function",function(n){return"function"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="FunctionType",t}return u(t,n),t}(p),nF=new nP,nU=function(n){function t(){var t=n.call(this,"never",function(n){return!1},function(n,t){return f(n,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return u(t,n),t}(p),nA=new nU,nL=function(n){function t(){var t=n.call(this,"any",function(n){return!0},l,d)||this;return t._tag="AnyType",t}return u(t,n),t}(p),nN=new nL;function nj(n,t,e){return void 0===e&&(e="(".concat(n.name," | ").concat(s(t),")")),new no(e,function(e){return n.is(e)&&t(e)},function(e,r){var u=n.validate(e,r);if((0,i.isLeft)(u))return u;var o=u.right;return t(o)?l(o):f(o,r)},n.encode,n,t)}var nq=nj(V,Number.isInteger,"Integer"),nY=function(n){function t(t,e,r,i,u,o){var a=n.call(this,t,e,r,i,u)||this;return a.tag=o,a}return u(t,n),t}(nI),nK=function(n,t,e){void 0===e&&(e=T(t));var r=nS(t,e);return r instanceof nY?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(e,", returning a de-optimized union")),new nY(e,r.is,r.validate,r.encode,t,n))},nB=function(n,t){return{value:n,context:t}},nG=function(n){return[{key:"",type:n}]},nH=nt,nV=function(n){function t(){var t=n.call(this,"object",function(n){return null!==n&&"object"==typeof n},function(n,e){return t.is(n)?l(n):f(n,e)},d)||this;return t._tag="ObjectType",t}return u(t,n),t}(p),nz=new nV,nX=nb,nJ=function(n){function t(t,e,r,i,u){var o=n.call(this,t,e,r,i)||this;return o.props=u,o._tag="StrictType",o}return u(t,n),t}(p);function n$(n){return n}function nZ(n){return function(){return n}}},77883:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.FORMAT_PLAIN=t.FORMAT_HTML=t.FORMATS=void 0;var e="html";t.FORMAT_HTML=e;var r="plain";t.FORMAT_PLAIN=r,t.FORMATS=[e,r]},779:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.LINE_ENDINGS=void 0,t.LINE_ENDINGS={POSIX:"\n",WIN32:"\r\n"}},36021:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.SUPPORTED_PLATFORMS=void 0,t.SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"}},29688:function(n,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 e="words";t.UNIT_WORDS=e;var r="word";t.UNIT_WORD=r;var i="sentences";t.UNIT_SENTENCES=i;var u="sentence";t.UNIT_SENTENCE=u;var o="paragraphs";t.UNIT_PARAGRAPHS=o;var a="paragraph";t.UNIT_PARAGRAPH=a,t.UNITS=[e,r,i,u,o,a]},90783:function(n,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(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoremIpsum",{enumerable:!0,get:function(){return a.default}}),t.loremIpsum=void 0;var r,i=e(77883),u=e(29688),o=e(90783),a=(r=e(55548),r&&r.__esModule?r:{default:r}),c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.count,e=void 0===t?1:t,r=n.format,c=void 0===r?i.FORMAT_PLAIN:r,f=n.paragraphLowerBound,l=n.paragraphUpperBound,p=n.random,d=n.sentenceLowerBound,s=n.sentenceUpperBound,m=n.units,h=void 0===m?u.UNIT_SENTENCES:m,v=n.words,g=void 0===v?o.WORDS:v,y=n.suffix,_=new a.default({random:p,sentencesPerParagraph:{max:void 0===l?7:l,min:void 0===f?3:f},words:g,wordsPerSentence:{max:void 0===s?15:s,min:void 0===d?5:d}},c,void 0===y?"":y);switch(h){case u.UNIT_PARAGRAPHS:case u.UNIT_PARAGRAPH:return _.generateParagraphs(e);case u.UNIT_SENTENCES:case u.UNIT_SENTENCE:return _.generateSentences(e);case u.UNIT_WORDS:case u.UNIT_WORD:return _.generateWords(e);default:return""}};t.loremIpsum=c},55548:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=e(77883),u=e(779),o=(r=e(40928),r&&r.__esModule?r:{default:r}),a=e(23749);function c(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var f=function(){var n,t,e;function r(){var n,t,e,u=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(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,r),this.format=a,this.suffix=c,n=this,e=void 0,(t="generator")in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,-1===i.FORMATS.indexOf(a.toLowerCase()))throw Error("".concat(a," is an invalid format. Please use ").concat(i.FORMATS.join(" or "),"."));this.generator=new o.default(u)}return t=[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,a.isReactNative)()&&(0,a.isNode)()&&(0,a.isWindows)()?u.LINE_ENDINGS.WIN32:u.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(n){return this.format===i.FORMAT_HTML?"<p>".concat(n,"</p>"):n}},{key:"formatStrings",value:function(n){var t=this;return n.map(function(n){return t.formatString(n)})}},{key:"generateWords",value:function(n){return this.formatString(this.generator.generateRandomWords(n))}},{key:"generateSentences",value:function(n){return this.formatString(this.generator.generateRandomParagraph(n))}},{key:"generateParagraphs",value:function(n){var t=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,a.makeArrayOfStrings)(n,t)).join(this.getLineEnding())}}],c(r.prototype,t),e&&c(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();t.default=f},40928:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=e(90783),i=e(23749);function u(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function o(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}var a=function(){var n,t,e;function a(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.sentencesPerParagraph,e=void 0===t?{max:7,min:3}:t,i=n.wordsPerSentence,u=void 0===i?{max:15,min:5}:i,c=n.random,f=(n.seed,n.words),l=void 0===f?r.WORDS:f;if(!function(n,t){if(!(n instanceof t))throw TypeError("Cannot call a class as a function")}(this,a),o(this,"sentencesPerParagraph",void 0),o(this,"wordsPerSentence",void 0),o(this,"random",void 0),o(this,"words",void 0),e.min>e.max)throw Error("Minimum number of sentences per paragraph (".concat(e.min,") cannot exceed maximum (").concat(e.max,")."));if(u.min>u.max)throw Error("Minimum number of words per sentence (".concat(u.min,") cannot exceed maximum (").concat(u.max,")."));this.sentencesPerParagraph=e,this.words=l,this.wordsPerSentence=u,this.random=c||Math.random}return t=[{key:"generateRandomInteger",value:function(n,t){return Math.floor(this.random()*(t-n+1)+n)}},{key:"generateRandomWords",value:function(n){var t=this,e=this.wordsPerSentence,r=e.min,u=e.max,o=n||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.pluckRandomWord()," ").concat(n)},"").trim()}},{key:"generateRandomSentence",value:function(n){return"".concat((0,i.capitalize)(this.generateRandomWords(n)),".")}},{key:"generateRandomParagraph",value:function(n){var t=this,e=this.sentencesPerParagraph,r=e.min,u=e.max,o=n||this.generateRandomInteger(r,u);return(0,i.makeArrayOfLength)(o).reduce(function(n,e){return"".concat(t.generateRandomSentence()," ").concat(n)},"").trim()}},{key:"pluckRandomWord",value:function(){var n=this.words.length-1,t=this.generateRandomInteger(0,n);return this.words[t]}}],u(a.prototype,t),e&&u(a,e),Object.defineProperty(a,"prototype",{writable:!1}),a}();t.default=a},79998:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(n){var t=n.trim();return t.charAt(0).toUpperCase()+t.slice(1)};t.default=e},23749:function(n,t,e){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 u.default}}),Object.defineProperty(t,"isWindows",{enumerable:!0,get:function(){return o.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(e(79998)),i=f(e(18077)),u=f(e(66002)),o=f(e(89759)),a=f(e(13385)),c=f(e(74523));function f(n){return n&&n.__esModule?n:{default:n}}},18077:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){return!!n.exports};t.default=e},66002:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){var n=!1;try{n="ReactNative"===navigator.product}catch(t){n=!1}return n};t.default=e},89759:function(n,t,e){var r=e(34406);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e(36021),u=function(){var n=!1;try{n=r.platform===i.SUPPORTED_PLATFORMS.WIN32}catch(t){n=!1}return n};t.default=u},13385:function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Array.apply(null,Array(n)).map(function(n,t){return t})};t.default=e},74523:function(n,t,e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=e(13385),r&&r.__esModule?r:{default:r}),u=function(n,t){return(0,i.default)(n).map(function(){return t()})};t.default=u},80734:function(n,t,e){/*!
4
- * statuses
5
- * Copyright(c) 2014 Jonathan Ong
6
- * Copyright(c) 2016 Douglas Christopher Wilson
7
- * MIT Licensed
8
- */ var r,i,u,o=e(1710);function a(n){if(!Object.prototype.hasOwnProperty.call(c.message,n))throw Error("invalid status code: "+n);return c.message[n]}function c(n){if("number"==typeof n)return a(n);if("string"!=typeof n)throw TypeError("code must be a number or string");var t=parseInt(n,10);return isNaN(t)?function(n){var t=n.toLowerCase();if(!Object.prototype.hasOwnProperty.call(c.code,t))throw Error('invalid status message: "'+n+'"');return c.code[t]}(n):a(t)}n.exports=c,c.message=o,c.code=(r=o,i={},Object.keys(r).forEach(function(n){var t=r[n],e=Number(n);i[t.toLowerCase()]=e}),i),c.codes=(u=o,Object.keys(u).map(function(n){return Number(n)})),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}},39304:function(n,t,e){e.r(t),e.d(t,{NIL:function(){return k},parse:function(){return v},stringify:function(){return d},v1:function(){return h},v3:function(){return x},v4:function(){return O},v5:function(){return E},validate:function(){return f},version:function(){return W}});var r,i,u,o=new Uint8Array(16);function a(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}for(var c=/^(?:[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,f=function(n){return"string"==typeof n&&c.test(n)},l=[],p=0;p<256;++p)l.push((p+256).toString(16).substr(1));var d=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=(l[n[t+0]]+l[n[t+1]]+l[n[t+2]]+l[n[t+3]]+"-"+l[n[t+4]]+l[n[t+5]]+"-"+l[n[t+6]]+l[n[t+7]]+"-"+l[n[t+8]]+l[n[t+9]]+"-"+l[n[t+10]]+l[n[t+11]]+l[n[t+12]]+l[n[t+13]]+l[n[t+14]]+l[n[t+15]]).toLowerCase();if(!f(e))throw TypeError("Stringified UUID is invalid");return e},s=0,m=0,h=function(n,t,e){var r=t&&e||0,o=t||Array(16),c=(n=n||{}).node||i,f=void 0!==n.clockseq?n.clockseq:u;if(null==c||null==f){var l=n.random||(n.rng||a)();null==c&&(c=i=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==f&&(f=u=(l[6]<<8|l[7])&16383)}var p=void 0!==n.msecs?n.msecs:Date.now(),h=void 0!==n.nsecs?n.nsecs:m+1,v=p-s+(h-m)/1e4;if(v<0&&void 0===n.clockseq&&(f=f+1&16383),(v<0||p>s)&&void 0===n.nsecs&&(h=0),h>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");s=p,m=h,u=f;var g=((268435455&(p+=122192928e5))*1e4+h)%4294967296;o[r++]=g>>>24&255,o[r++]=g>>>16&255,o[r++]=g>>>8&255,o[r++]=255&g;var y=p/4294967296*1e4&268435455;o[r++]=y>>>8&255,o[r++]=255&y,o[r++]=y>>>24&15|16,o[r++]=y>>>16&255,o[r++]=f>>>8|128,o[r++]=255&f;for(var _=0;_<6;++_)o[r+_]=c[_];return t||d(o)},v=function(n){if(!f(n))throw TypeError("Invalid UUID");var t,e=new Uint8Array(16);return e[0]=(t=parseInt(n.slice(0,8),16))>>>24,e[1]=t>>>16&255,e[2]=t>>>8&255,e[3]=255&t,e[4]=(t=parseInt(n.slice(9,13),16))>>>8,e[5]=255&t,e[6]=(t=parseInt(n.slice(14,18),16))>>>8,e[7]=255&t,e[8]=(t=parseInt(n.slice(19,23),16))>>>8,e[9]=255&t,e[10]=(t=parseInt(n.slice(24,36),16))/1099511627776&255,e[11]=t/4294967296&255,e[12]=t>>>24&255,e[13]=t>>>16&255,e[14]=t>>>8&255,e[15]=255&t,e};function g(n,t,e){function r(n,r,i,u){if("string"==typeof n&&(n=function(n){n=unescape(encodeURIComponent(n));for(var t=[],e=0;e<n.length;++e)t.push(n.charCodeAt(e));return t}(n)),"string"==typeof r&&(r=v(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var o=new Uint8Array(16+n.length);if(o.set(r),o.set(n,r.length),(o=e(o))[6]=15&o[6]|t,o[8]=63&o[8]|128,i){u=u||0;for(var a=0;a<16;++a)i[u+a]=o[a];return i}return d(o)}try{r.name=n}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function y(n){return(n+64>>>9<<4)+14+1}function _(n,t){var e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}function b(n,t,e,r,i,u){var o,a;return _((o=_(_(t,n),_(r,u)))<<i|o>>>32-i,e)}function I(n,t,e,r,i,u,o){return b(t&e|~t&r,n,t,i,u,o)}function S(n,t,e,r,i,u,o){return b(t&r|e&~r,n,t,i,u,o)}function T(n,t,e,r,i,u,o){return b(t^e^r,n,t,i,u,o)}function R(n,t,e,r,i,u,o){return b(e^(t|~r),n,t,i,u,o)}var x=g("v3",48,function(n){if("string"==typeof n){var t=unescape(encodeURIComponent(n));n=new Uint8Array(t.length);for(var e=0;e<t.length;++e)n[e]=t.charCodeAt(e)}return function(n){for(var t=[],e=32*n.length,r="0123456789abcdef",i=0;i<e;i+=8){var u=n[i>>5]>>>i%32&255,o=parseInt(r.charAt(u>>>4&15)+r.charAt(15&u),16);t.push(o)}return t}(function(n,t){n[t>>5]|=128<<t%32,n[y(t)-1]=t;for(var e=1732584193,r=-271733879,i=-1732584194,u=271733878,o=0;o<n.length;o+=16){var a=e,c=r,f=i,l=u;e=I(e,r,i,u,n[o],7,-680876936),u=I(u,e,r,i,n[o+1],12,-389564586),i=I(i,u,e,r,n[o+2],17,606105819),r=I(r,i,u,e,n[o+3],22,-1044525330),e=I(e,r,i,u,n[o+4],7,-176418897),u=I(u,e,r,i,n[o+5],12,1200080426),i=I(i,u,e,r,n[o+6],17,-1473231341),r=I(r,i,u,e,n[o+7],22,-45705983),e=I(e,r,i,u,n[o+8],7,1770035416),u=I(u,e,r,i,n[o+9],12,-1958414417),i=I(i,u,e,r,n[o+10],17,-42063),r=I(r,i,u,e,n[o+11],22,-1990404162),e=I(e,r,i,u,n[o+12],7,1804603682),u=I(u,e,r,i,n[o+13],12,-40341101),i=I(i,u,e,r,n[o+14],17,-1502002290),r=I(r,i,u,e,n[o+15],22,1236535329),e=S(e,r,i,u,n[o+1],5,-165796510),u=S(u,e,r,i,n[o+6],9,-1069501632),i=S(i,u,e,r,n[o+11],14,643717713),r=S(r,i,u,e,n[o],20,-373897302),e=S(e,r,i,u,n[o+5],5,-701558691),u=S(u,e,r,i,n[o+10],9,38016083),i=S(i,u,e,r,n[o+15],14,-660478335),r=S(r,i,u,e,n[o+4],20,-405537848),e=S(e,r,i,u,n[o+9],5,568446438),u=S(u,e,r,i,n[o+14],9,-1019803690),i=S(i,u,e,r,n[o+3],14,-187363961),r=S(r,i,u,e,n[o+8],20,1163531501),e=S(e,r,i,u,n[o+13],5,-1444681467),u=S(u,e,r,i,n[o+2],9,-51403784),i=S(i,u,e,r,n[o+7],14,1735328473),r=S(r,i,u,e,n[o+12],20,-1926607734),e=T(e,r,i,u,n[o+5],4,-378558),u=T(u,e,r,i,n[o+8],11,-2022574463),i=T(i,u,e,r,n[o+11],16,1839030562),r=T(r,i,u,e,n[o+14],23,-35309556),e=T(e,r,i,u,n[o+1],4,-1530992060),u=T(u,e,r,i,n[o+4],11,1272893353),i=T(i,u,e,r,n[o+7],16,-155497632),r=T(r,i,u,e,n[o+10],23,-1094730640),e=T(e,r,i,u,n[o+13],4,681279174),u=T(u,e,r,i,n[o],11,-358537222),i=T(i,u,e,r,n[o+3],16,-722521979),r=T(r,i,u,e,n[o+6],23,76029189),e=T(e,r,i,u,n[o+9],4,-640364487),u=T(u,e,r,i,n[o+12],11,-421815835),i=T(i,u,e,r,n[o+15],16,530742520),r=T(r,i,u,e,n[o+2],23,-995338651),e=R(e,r,i,u,n[o],6,-198630844),u=R(u,e,r,i,n[o+7],10,1126891415),i=R(i,u,e,r,n[o+14],15,-1416354905),r=R(r,i,u,e,n[o+5],21,-57434055),e=R(e,r,i,u,n[o+12],6,1700485571),u=R(u,e,r,i,n[o+3],10,-1894986606),i=R(i,u,e,r,n[o+10],15,-1051523),r=R(r,i,u,e,n[o+1],21,-2054922799),e=R(e,r,i,u,n[o+8],6,1873313359),u=R(u,e,r,i,n[o+15],10,-30611744),i=R(i,u,e,r,n[o+6],15,-1560198380),r=R(r,i,u,e,n[o+13],21,1309151649),e=R(e,r,i,u,n[o+4],6,-145523070),u=R(u,e,r,i,n[o+11],10,-1120210379),i=R(i,u,e,r,n[o+2],15,718787259),r=R(r,i,u,e,n[o+9],21,-343485551),e=_(e,a),r=_(r,c),i=_(i,f),u=_(u,l)}return[e,r,i,u]}(function(n){if(0===n.length)return[];for(var t=8*n.length,e=new Uint32Array(y(t)),r=0;r<t;r+=8)e[r>>5]|=(255&n[r/8])<<r%32;return e}(n),8*n.length))}),O=function(n,t,e){var r=(n=n||{}).random||(n.rng||a)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){e=e||0;for(var i=0;i<16;++i)t[e+i]=r[i];return t}return d(r)};function w(n,t,e,r){switch(n){case 0:return t&e^~t&r;case 1:case 3:return t^e^r;case 2:return t&e^t&r^e&r}}function M(n,t){return n<<t|n>>>32-t}var E=g("v5",80,function(n){var t=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof n){var r=unescape(encodeURIComponent(n));n=[];for(var i=0;i<r.length;++i)n.push(r.charCodeAt(i))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);for(var u=Math.ceil((n.length/4+2)/16),o=Array(u),a=0;a<u;++a){for(var c=new Uint32Array(16),f=0;f<16;++f)c[f]=n[64*a+4*f]<<24|n[64*a+4*f+1]<<16|n[64*a+4*f+2]<<8|n[64*a+4*f+3];o[a]=c}o[u-1][14]=(n.length-1)*8/4294967296,o[u-1][14]=Math.floor(o[u-1][14]),o[u-1][15]=(n.length-1)*8&4294967295;for(var l=0;l<u;++l){for(var p=new Uint32Array(80),d=0;d<16;++d)p[d]=o[l][d];for(var s=16;s<80;++s)p[s]=M(p[s-3]^p[s-8]^p[s-14]^p[s-16],1);for(var m=e[0],h=e[1],v=e[2],g=e[3],y=e[4],_=0;_<80;++_){var b=Math.floor(_/20),I=M(m,5)+w(b,h,v,g)+y+t[b]+p[_]>>>0;y=g,g=v,v=M(h,30)>>>0,h=m,m=I}e[0]=e[0]+m>>>0,e[1]=e[1]+h>>>0,e[2]=e[2]+v>>>0,e[3]=e[3]+g>>>0,e[4]=e[4]+y>>>0}return[e[0]>>24&255,e[0]>>16&255,e[0]>>8&255,255&e[0],e[1]>>24&255,e[1]>>16&255,e[1]>>8&255,255&e[1],e[2]>>24&255,e[2]>>16&255,e[2]>>8&255,255&e[2],e[3]>>24&255,e[3]>>16&255,e[3]>>8&255,255&e[3],e[4]>>24&255,e[4]>>16&255,e[4]>>8&255,255&e[4]]}),k="00000000-0000-0000-0000-000000000000",W=function(n){if(!f(n))throw TypeError("Invalid UUID");return parseInt(n.substr(14,1),16)}},87783:function(n,t,e){e.r(t),e.d(t,{__assign:function(){return u},__asyncDelegator:function(){return x},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return T},__awaiter:function(){return m},__classPrivateFieldGet:function(){return W},__classPrivateFieldIn:function(){return D},__classPrivateFieldSet:function(){return C},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return w},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return S},__spreadArrays:function(){return I},__values:function(){return y}});var r=function(n,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)};function i(n,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var u=function(){return(u=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function o(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&0>t.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function a(n,t,e,r){var i,u=arguments.length,o=u<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(i=n[a])&&(o=(u<3?i(o):u>3?i(t,e,o):i(t,e))||o);return u>3&&o&&Object.defineProperty(t,e,o),o}function c(n,t){return function(e,r){t(e,r,n)}}function f(n,t,e,r,i,u){function o(n){if(void 0!==n&&"function"!=typeof n)throw TypeError("Function expected");return n}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&n?r.static?n:n.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=e.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(n){if(d)throw TypeError("Cannot add initializers after decoration has completed");u.push(o(n||null))};var v=(0,e[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=o(v.get))&&(p.get=a),(a=o(v.set))&&(p.set=a),(a=o(v.init))&&i.unshift(a)}else(a=o(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(n,t,e){for(var r=arguments.length>2,i=0;i<t.length;i++)e=r?t[i].call(n,e):t[i].call(n);return r?e:void 0}function p(n){return"symbol"==typeof n?n:"".concat(n)}function d(n,t,e){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:e?"".concat(e," ",t):t})}function s(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function m(n,t,e,r){return new(e||(e=Promise))(function(i,u){function o(n){try{c(r.next(n))}catch(t){u(t)}}function a(n){try{c(r.throw(n))}catch(t){u(t)}}function c(n){var t;n.done?i(n.value):((t=n.value)instanceof e?t:new e(function(n){n(t)})).then(o,a)}c((r=r.apply(n,t||[])).next())})}function h(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(c){a=[6,c],r=0}finally{e=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(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]};function g(n,t){for(var e in n)"default"===e||Object.prototype.hasOwnProperty.call(t,e)||v(t,n,e)}function y(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,u=e.call(n),o=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)o.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}return o}function b(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(_(arguments[t]));return n}function I(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var u=arguments[t],o=0,a=u.length;o<a;o++,i++)r[i]=u[o];return r}function S(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))}function T(n){return this instanceof T?(this.v=n,this):new T(n)}function R(n,t,e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),u=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(n){i[n]&&(r[n]=function(t){return new Promise(function(e,r){u.push([n,t,e,r])>1||a(n,t)})})}function a(n,t){try{var e;e=i[n](t),e.value instanceof T?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(r){l(u[0][3],r)}}function c(n){a("next",n)}function f(n){a("throw",n)}function l(n,t){n(t),u.shift(),u.length&&a(u[0][0],u[0][1])}}function x(n){var t,e;return t={},r("next"),r("throw",function(n){throw n}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=n[r]?function(t){return(e=!e)?{value:T(n[r](t)),done:!1}:i?i(t):t}:i}}function O(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=y(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise(function(r,i){!function(n,t,e,r){Promise.resolve(r).then(function(t){n({value:t,done:e})},t)}(r,i,(t=n[e](t)).done,t.value)})}}}function w(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}var M=Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t};function E(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&v(t,n,e);return M(t,n),t}function k(n){return n&&n.__esModule?n:{default:n}}function W(n,t,e,r){if("a"===e&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?n!==t||!r:!t.has(n))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(n):r?r.value:t.get(n)}function C(n,t,e,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?n!==t||!i:!t.has(n))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(n,e):i?i.value=e:t.set(n,e),e}function D(n,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof n?t===n:n.has(t)}t.default={__extends:i,__assign:u,__rest:o,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:g,__values:y,__read:_,__spread:b,__spreadArrays:I,__spreadArray:S,__await:T,__asyncGenerator:R,__asyncDelegator:x,__asyncValues:O,__makeTemplateObject:w,__importStar:E,__importDefault:k,__classPrivateFieldGet:W,__classPrivateFieldSet:C,__classPrivateFieldIn:D}},78948:function(n,t,e){e.r(t),e.d(t,{__assign:function(){return u},__asyncDelegator:function(){return x},__asyncGenerator:function(){return R},__asyncValues:function(){return O},__await:function(){return T},__awaiter:function(){return m},__classPrivateFieldGet:function(){return W},__classPrivateFieldIn:function(){return D},__classPrivateFieldSet:function(){return C},__createBinding:function(){return v},__decorate:function(){return a},__esDecorate:function(){return f},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return h},__importDefault:function(){return k},__importStar:function(){return E},__makeTemplateObject:function(){return w},__metadata:function(){return s},__param:function(){return c},__propKey:function(){return p},__read:function(){return _},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return b},__spreadArray:function(){return S},__spreadArrays:function(){return I},__values:function(){return y}});var r=function(n,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)};function i(n,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}r(n,t),n.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var u=function(){return(u=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)};function o(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&0>t.indexOf(r)&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]]);return e}function a(n,t,e,r){var i,u=arguments.length,o=u<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,r);else for(var a=n.length-1;a>=0;a--)(i=n[a])&&(o=(u<3?i(o):u>3?i(t,e,o):i(t,e))||o);return u>3&&o&&Object.defineProperty(t,e,o),o}function c(n,t){return function(e,r){t(e,r,n)}}function f(n,t,e,r,i,u){function o(n){if(void 0!==n&&"function"!=typeof n)throw TypeError("Function expected");return n}for(var a,c=r.kind,f="getter"===c?"get":"setter"===c?"set":"value",l=!t&&n?r.static?n:n.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,s=e.length-1;s>=0;s--){var m={};for(var h in r)m[h]="access"===h?{}:r[h];for(var h in r.access)m.access[h]=r.access[h];m.addInitializer=function(n){if(d)throw TypeError("Cannot add initializers after decoration has completed");u.push(o(n||null))};var v=(0,e[s])("accessor"===c?{get:p.get,set:p.set}:p[f],m);if("accessor"===c){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw TypeError("Object expected");(a=o(v.get))&&(p.get=a),(a=o(v.set))&&(p.set=a),(a=o(v.init))&&i.unshift(a)}else(a=o(v))&&("field"===c?i.unshift(a):p[f]=a)}l&&Object.defineProperty(l,r.name,p),d=!0}function l(n,t,e){for(var r=arguments.length>2,i=0;i<t.length;i++)e=r?t[i].call(n,e):t[i].call(n);return r?e:void 0}function p(n){return"symbol"==typeof n?n:"".concat(n)}function d(n,t,e){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(n,"name",{configurable:!0,value:e?"".concat(e," ",t):t})}function s(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}function m(n,t,e,r){return new(e||(e=Promise))(function(i,u){function o(n){try{c(r.next(n))}catch(t){u(t)}}function a(n){try{c(r.throw(n))}catch(t){u(t)}}function c(n){var t;n.done?i(n.value):((t=n.value)instanceof e?t:new e(function(n){n(t)})).then(o,a)}c((r=r.apply(n,t||[])).next())})}function h(n,t){var e,r,i,u,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(c){return function(a){if(e)throw TypeError("Generator is already executing.");for(;u&&(u=0,a[0]&&(o=0)),o;)try{if(e=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 o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(n,o)}catch(c){a=[6,c],r=0}finally{e=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(n,t,e,r){void 0===r&&(r=e);var i=Object.getOwnPropertyDescriptor(t,e);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,r,i)}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]};function g(n,t){for(var e in n)"default"===e||Object.prototype.hasOwnProperty.call(t,e)||v(t,n,e)}function y(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,i,u=e.call(n),o=[];try{for(;(void 0===t||t-- >0)&&!(r=u.next()).done;)o.push(r.value)}catch(a){i={error:a}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(i)throw i.error}}return o}function b(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(_(arguments[t]));return n}function I(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var u=arguments[t],o=0,a=u.length;o<a;o++,i++)r[i]=u[o];return r}function S(n,t,e){if(e||2===arguments.length)for(var r,i=0,u=t.length;i<u;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return n.concat(r||Array.prototype.slice.call(t))}function T(n){return this instanceof T?(this.v=n,this):new T(n)}function R(n,t,e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),u=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(n){i[n]&&(r[n]=function(t){return new Promise(function(e,r){u.push([n,t,e,r])>1||a(n,t)})})}function a(n,t){try{var e;e=i[n](t),e.value instanceof T?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(r){l(u[0][3],r)}}function c(n){a("next",n)}function f(n){a("throw",n)}function l(n,t){n(t),u.shift(),u.length&&a(u[0][0],u[0][1])}}function x(n){var t,e;return t={},r("next"),r("throw",function(n){throw n}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=n[r]?function(t){return(e=!e)?{value:T(n[r](t)),done:!1}:i?i(t):t}:i}}function O(n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=y(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise(function(r,i){!function(n,t,e,r){Promise.resolve(r).then(function(t){n({value:t,done:e})},t)}(r,i,(t=n[e](t)).done,t.value)})}}}function w(n,t){return Object.defineProperty?Object.defineProperty(n,"raw",{value:t}):n.raw=t,n}var M=Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t};function E(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&v(t,n,e);return M(t,n),t}function k(n){return n&&n.__esModule?n:{default:n}}function W(n,t,e,r){if("a"===e&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?n!==t||!r:!t.has(n))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(n):r?r.value:t.get(n)}function C(n,t,e,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?n!==t||!i:!t.has(n))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(n,e):i?i.value=e:t.set(n,e),e}function D(n,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof n?t===n:n.has(t)}t.default={__extends:i,__assign:u,__rest:o,__decorate:a,__param:c,__metadata:s,__awaiter:m,__generator:h,__createBinding:v,__exportStar:g,__values:y,__read:_,__spread:b,__spreadArrays:I,__spreadArray:S,__await:T,__asyncGenerator:R,__asyncDelegator:x,__asyncValues:O,__makeTemplateObject:w,__importStar:E,__importDefault:k,__classPrivateFieldGet:W,__classPrivateFieldSet:C,__classPrivateFieldIn:D}},16:function(n,t,e){e.d(t,{SH:function(){return V}}),(r=u||(u={})).SetActiveSlice="setActiveSlice",r.SetSliceZoneSize="setSliceZoneSize",(i=o||(o={})).Ping="ping",i.SetSliceZone="setSliceZone",i.ScrollToSlice="scrollToSlice";var r,i,u,o,a,c,f,l,p,d,s,m=e(80734);(d=a||(a={})).Connect="connect",(s=c||(c={})).Ready="ready";var h=Object.defineProperty,v=(n,t,e)=>t in n?h(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,g=(n,t,e)=>(v(n,"symbol"!=typeof t?t+"":t,e),e);class y extends Error{constructor(n){super(n.msg),g(this,"response"),this.response=n}}class _ extends Error{constructor(){super("Connection timed out")}}class b extends Error{constructor(n){super("Too many concurrent requests"),g(this,"request"),this.request=n}}class I extends Error{constructor(n){super(`Request \`${n.requestID}\` timed out`),g(this,"request"),this.request=n}}class S extends Error{}class T extends Error{constructor(){super("Port is not set")}}class R extends Error{constructor(){super("Channel is not set")}}let x=0,O=(n,t,e="")=>({requestID:`${e}${x++}`,type:n,data:t}),w=(n,t,e=200)=>{var r;if(e>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=m.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",data:t}},M=(n,t,e=400)=>{var r;if(e<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${e}\``);return{requestID:n,status:e,msg:(null==(r=m.message[e])?void 0:r.replace(/\.$/,"").toLowerCase())??"",error:t}},E=n=>{if("object"!=typeof n||null===n)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof n}\``);if(Object.keys(n).every(n=>["requestID","type","data","status","msg","error"].includes(n))){if("string"!=typeof n.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof n.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(n)}`);return n},k=n=>"type"in n,W=n=>!("type"in n),C=n=>W(n)&&!("error"in n);var D=Object.defineProperty,P=(n,t,e)=>t in n?D(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,F=(n,t,e)=>(P(n,"symbol"!=typeof t?t+"":t,e),e);let U={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class A{constructor(n,t){F(this,"requestHandlers"),F(this,"options"),F(this,"_port",null),F(this,"_pendingRequests",new Map),this.requestHandlers=n,this.options={...U,...t}}get port(){if(!this._port)throw new T;return this._port}set port(n){this._port&&(this._port.onmessage=null),this._port=n,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(n,t){return O(n,t,this.options.requestIDPrefix)}async onMessage(n){this.options.debug&&console.debug(n.data);try{let t=E(n.data);if(k(t)){if(this.requestHandlers[t.type])try{let e=await this.requestHandlers[t.type](t,{success:w.bind(this,t.requestID),error:M.bind(this,t.requestID)});this.postResponse(e)}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(n,t=n=>this.port.postMessage(n),e={}){if(this.options.debug&&console.debug(n),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new b(n);return new Promise((r,i)=>{let u=setTimeout(()=>{this._pendingRequests.has(n.requestID)&&this._pendingRequests.delete(n.requestID),i(new I(n))},e.timeout||this.options.defaultTimeout);this._pendingRequests.set(n.requestID,n=>{clearTimeout(u),C(n)?r(n):i(new y(n))}),t(n)})}postResponse(n,t=n=>this.port.postMessage(n)){return this.options.debug&&console.debug(n),t(n),n}}var L=Object.defineProperty,N=(n,t,e)=>t in n?L(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,j=(n,t,e)=>(N(n,"symbol"!=typeof t?t+"":t,e),e);let q={connectTimeout:2e4,requestIDPrefix:"emitter-"};class Y extends A{constructor(n,t,e){super(t,{...q,...e}),j(this,"_target"),j(this,"_channel",null),j(this,"_receiverReady",""),j(this,"_receiverReadyCallback",null),j(this,"_connected",!1),this._target=n,window.addEventListener("message",n=>{this._onPublicMessage(n)})}get channel(){if(!this._channel)throw new R;return this._channel}set channel(n){this._channel=n,this._channel?this.port=this._channel.port1:this.port=null}get connected(){return this._connected}connect(n={},t=!1){return this.disconnect(),t&&(this._receiverReady=""),new Promise((t,e)=>{this._target.addEventListener("load",()=>{if(!this._target.contentWindow)return e(Error("Target window is not available"));let r=setTimeout(()=>{e(new _)},this.options.connectTimeout),i=async()=>{clearTimeout(r),this.channel=new MessageChannel;let e=this.createRequestMessage(a.Connect,n),i=await this.postRequest(e,n=>{this._target.contentWindow.postMessage(n,"*",[this.channel.port2])});this.postResponse(w(this._receiverReady,void 0),n=>{this._target.contentWindow.postMessage(n,"*")}),this._connected=!0,t(i)};this._receiverReady?i():this._receiverReadyCallback=i},{once:!0})})}disconnect(){this._connected=!1,this.channel=null}async _onPublicMessage(n){if(n.source===this._target.contentWindow)try{let t=E(n.data);if(k(t)){if(this.options.debug&&console.debug(n.data),t.type===c.Ready){if(this._receiverReady=t.requestID,this._receiverReadyCallback){let e=this._receiverReadyCallback();this._receiverReadyCallback=null,await e}}else this.postResponse(M(t.requestID,void 0),t=>{n.source.postMessage(t,n.origin)})}}catch(r){if(r instanceof TypeError);else throw r}}postFormattedRequest(n,t,e={}){if(!this._connected)throw new S("Emitter is not connected, use `ChannelEmitter.connect()` first");return this.postRequest(this.createRequestMessage(n,t),void 0,e)}}var K=Object.defineProperty,B=(n,t,e)=>t in n?K(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,G=(n,t,e)=>(B(n,"symbol"!=typeof t?t+"":t,e),e);let H={requestIDPrefix:"client-"};class V extends Y{constructor(n,t,e){var r,i;let a=(null==e?void 0:e.debug)||/[?&]debug=true/i.test(decodeURIComponent(window.location.search));super(n,{[u.SetActiveSlice]:(n,t)=>t.success(),[u.SetSliceZoneSize]:(n,t)=>t.success(),...t},{...H,...e,debug:a}),G(this,f,async()=>await this.postFormattedRequest(o.Ping)),G(this,l,async n=>await this.postFormattedRequest(o.SetSliceZone,n)),G(this,p,async n=>await this.postFormattedRequest(o.ScrollToSlice,n)),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=o.Ping,l=o.SetSliceZone,p=o.ScrollToSlice,u.SetActiveSlice,u.SetSliceZoneSize},19108:function(n){n.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>&#39;s thoughts on Gatsby&#39;s success and how they&#39;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>&mdash; 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&amp;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>&mdash; 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&#39;re launching a new <a href=\\"https://twitter.com/hashtag/SliceContest?src=hash&amp;ref_src=twsrc%5Etfw\\">#SliceContest</a> tomorrow along with Slice Machine upgrades.<br><br>Want to know more? Join us at tomorrow&#39;s Product Meet-up\uD83D\uDC47<a href=\\"https://t.co/prYSypiAvB\\">https://t.co/prYSypiAvB</a><br><br>We can&#39;t tell you any further details for now, but here&#39;s a sneak peek at the prizes\uD83D\uDC40 <a href=\\"https://t.co/fV1eoGlEBh\\">pic.twitter.com/fV1eoGlEBh</a></p>&mdash; 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 &#39;Wall Street Bets&#39; using Prismic?<br><br>It may or may not have to look a lot like <a href=\\"https://twitter.com/hashtag/reddit?src=hash&amp;ref_src=twsrc%5Etfw\\">#reddit</a> and we won&#39;t make it private.<br><br>Just asking for some friends...</p>&mdash; 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(n){n.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(n){n.exports=JSON.parse('[{"raw":"https://images.unsplash.com/photo-1515378791036-0648a3ef77b2?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Christin Hume","orientation":"landscape","userLink":"https://unsplash.com/@christinhumephoto","width":5616,"height":3744},{"raw":"https://images.unsplash.com/photo-1486312338219-ce68d2c6f44d?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Glenn Carstens-Peters","orientation":"landscape","userLink":"https://unsplash.com/@glenncarstenspeters","width":4076,"height":2712},{"raw":"https://images.unsplash.com/photo-1589652717521-10c0d092dea9?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Cookie the Pom","orientation":"landscape","userLink":"https://unsplash.com/@cookiethepom","width":4752,"height":3168},{"raw":"https://images.unsplash.com/photo-1515378960530-7c0da6231fb1?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Christin Hume","orientation":"landscape","userLink":"https://unsplash.com/@christinhumephoto","width":5616,"height":3744},{"raw":"https://images.unsplash.com/photo-1547394765-185e1e68f34e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Christian Wiediger","orientation":"landscape","userLink":"https://unsplash.com/@christianw","width":6000,"height":4000},{"raw":"https://images.unsplash.com/photo-1601933973783-43cf8a7d4c5f?ixid=MXwyMDEzOTN8MXwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Brooke Cagle","orientation":"landscape","userLink":"https://unsplash.com/@brookecagle","width":6597,"height":4398},{"raw":"https://images.unsplash.com/photo-1537498425277-c283d32ef9db?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Tianyi Ma","orientation":"landscape","userLink":"https://unsplash.com/@tma","width":4380,"height":2895},{"raw":"https://images.unsplash.com/photo-1496181133206-80ce9b88a853?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Kari Shea","orientation":"landscape","userLink":"https://unsplash.com/@karishea","width":5243,"height":3495},{"raw":"https://images.unsplash.com/photo-1448932223592-d1fc686e76ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDB8fA&ixlib=rb-1.2.1","userName":"Bench Accounting","orientation":"landscape","userLink":"https://unsplash.com/@benchaccounting","width":3500,"height":2338},{"raw":"https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Christopher Gower","orientation":"landscape","userLink":"https://unsplash.com/@cgower","width":3882,"height":2584},{"raw":"https://images.unsplash.com/photo-1560762484-813fc97650a0?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Aryan Dhiman","orientation":"landscape","userLink":"https://unsplash.com/@mylifeasaryan_","width":3344,"height":2509},{"raw":"https://images.unsplash.com/photo-1544731612-de7f96afe55f?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Aleksander Vlad","orientation":"landscape","userLink":"https://unsplash.com/@aleksowlade","width":6000,"height":4000},{"raw":"https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Domenico Loia","orientation":"landscape","userLink":"https://unsplash.com/@domenicoloia","width":5848,"height":3899},{"raw":"https://images.unsplash.com/photo-1560457079-9a6532ccb118?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"Sam Albury","orientation":"landscape","userLink":"https://unsplash.com/@sammisamuel21","width":4160,"height":3120},{"raw":"https://images.unsplash.com/photo-1547082299-de196ea013d6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwwfHw&ixlib=rb-1.2.1","userName":"DESIGNECOLOGIST","orientation":"landscape","userLink":"https://unsplash.com/@designecologist","width":4272,"height":2848},{"raw":"https://images.unsplash.com/photo-1551739440-5dd934d3a94a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Niclas Illg","orientation":"portrait","userLink":"https://unsplash.com/@nicklbaert","width":3456,"height":4320},{"raw":"https://images.unsplash.com/photo-1531771686035-25f47595c87a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Tanner Van Dera","orientation":"portrait","userLink":"https://unsplash.com/@tanner","width":3024,"height":3778},{"raw":"https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Sarah Dorweiler","orientation":"portrait","userLink":"https://unsplash.com/@sarahdorweiler","width":3560,"height":5340},{"raw":"https://images.unsplash.com/photo-1504198070170-4ca53bb1c1fa?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Sarah Dorweiler","orientation":"portrait","userLink":"https://unsplash.com/@sarahdorweiler","width":2747,"height":4120},{"raw":"https://images.unsplash.com/photo-1494173853739-c21f58b16055?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Gabriel Beaudry","orientation":"portrait","userLink":"https://unsplash.com/@gbeaudry","width":3277,"height":4092},{"raw":"https://images.unsplash.com/photo-1541807084-5c52b6b3adef?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Howard Bouchevereau","orientation":"portrait","userLink":"https://unsplash.com/@howardbouchevereau","width":4000,"height":6000},{"raw":"https://images.unsplash.com/photo-1593642633279-1796119d5482?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"XPS","orientation":"portrait","userLink":"https://unsplash.com/@xps","width":4016,"height":6016},{"raw":"https://images.unsplash.com/photo-1545239351-1141bd82e8a6?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Sincerely Media","orientation":"portrait","userLink":"https://unsplash.com/@sincerelymedia","width":3212,"height":3880},{"raw":"https://images.unsplash.com/photo-1491975474562-1f4e30bc9468?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDF8fA&ixlib=rb-1.2.1","userName":"Andrew Neel","orientation":"portrait","userLink":"https://unsplash.com/@andrewtneel","width":4000,"height":6000},{"raw":"https://images.unsplash.com/photo-1587614295999-6c1c13675117?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Windows","orientation":"portrait","userLink":"https://unsplash.com/@windows","width":3810,"height":5715},{"raw":"https://images.unsplash.com/photo-1525547719571-a2d4ac8945e2?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Andras Vas","orientation":"portrait","userLink":"https://unsplash.com/@wasdrew","width":3648,"height":4560},{"raw":"https://images.unsplash.com/photo-1587905069134-008460d7a636?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Varun Gaba","orientation":"portrait","userLink":"https://unsplash.com/@varunkgaba","width":3935,"height":5894},{"raw":"https://images.unsplash.com/photo-1587613865763-4b8b0d19e8ab?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"Surface","orientation":"portrait","userLink":"https://unsplash.com/@surface","width":12288,"height":16384},{"raw":"https://images.unsplash.com/photo-1589321599763-d66926c29613?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"lilzidesigns","orientation":"portrait","userLink":"https://unsplash.com/@loravisuals","width":3168,"height":4752},{"raw":"https://images.unsplash.com/photo-1589321578146-4c1ba445cc88?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwxfHw&ixlib=rb-1.2.1","userName":"lilzidesigns","orientation":"portrait","userLink":"https://unsplash.com/@loravisuals","width":3168,"height":4752},{"raw":"https://images.unsplash.com/photo-1593642532973-d31b6557fa68?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"XPS","orientation":"squarish","userLink":"https://unsplash.com/@xps","width":8640,"height":8640},{"raw":"https://images.unsplash.com/photo-1591012911207-0dbac31f37da?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwyfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Amadej Tauses","orientation":"squarish","userLink":"https://unsplash.com/@amadejtauses","width":4000,"height":4000},{"raw":"https://images.unsplash.com/photo-1576662712957-9c79ae1280f8?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwzfHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Andrew Mantarro","orientation":"squarish","userLink":"https://unsplash.com/@andymant","width":3456,"height":3456},{"raw":"https://images.unsplash.com/photo-1606248897732-2c5ffe759c04?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw0fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"F\xe1bio Alves","orientation":"squarish","userLink":"https://unsplash.com/@barncreative","width":4000,"height":4000},{"raw":"https://images.unsplash.com/photo-1600804931749-2da4ce26c869?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw1fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"mojtaba mosayebzadeh","orientation":"squarish","userLink":"https://unsplash.com/@mojiw","width":3199,"height":3199},{"raw":"https://images.unsplash.com/photo-1607582278038-6bebbd4d7b72?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw2fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Kouji Tsuru","orientation":"squarish","userLink":"https://unsplash.com/@pafuxu","width":4010,"height":4010},{"raw":"https://images.unsplash.com/photo-1587840171670-8b850147754e?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw3fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Sebastian Bednarek","orientation":"squarish","userLink":"https://unsplash.com/@abeso","width":4480,"height":4480},{"raw":"https://images.unsplash.com/photo-1493119508027-2b584f234d6c?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw4fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Goran Ivos","orientation":"squarish","userLink":"https://unsplash.com/@goran_ivos","width":3424,"height":3424},{"raw":"https://images.unsplash.com/photo-1600861194802-a2b11076bc51?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHw5fHxDb21wdXRlcnxlbnwwfDJ8fA&ixlib=rb-1.2.1","userName":"Sam Pak","orientation":"squarish","userLink":"https://unsplash.com/@melocokr","width":2545,"height":2545},{"raw":"https://images.unsplash.com/photo-1571126770897-2d612d1f7b89?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Andrew Mantarro","orientation":"squarish","userLink":"https://unsplash.com/@andymant","width":3456,"height":3456},{"raw":"https://images.unsplash.com/photo-1586952518485-11b180e92764?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Shuttergames","orientation":"squarish","userLink":"https://unsplash.com/@shuttergames","width":4172,"height":4000},{"raw":"https://images.unsplash.com/photo-1587653915936-5623ea0b949a?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxMnx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Huy Phan","orientation":"squarish","userLink":"https://unsplash.com/@huyphan2602","width":4000,"height":4000},{"raw":"https://images.unsplash.com/photo-1607582278043-57198ac8da43?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxM3x8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Kouji Tsuru","orientation":"squarish","userLink":"https://unsplash.com/@pafuxu","width":4024,"height":4024},{"raw":"https://images.unsplash.com/photo-1579931794097-0ad001e51edb?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNHx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Alexander Aguero","orientation":"squarish","userLink":"https://unsplash.com/@alex_cr0496","width":3958,"height":3958},{"raw":"https://images.unsplash.com/photo-1596195689404-24d8a8d1c6ea?ixid=MXwyMDEzOTN8MHwxfHNlYXJjaHwxNXx8Q29tcHV0ZXJ8ZW58MHwyfHw&ixlib=rb-1.2.1","userName":"Md Mahdi","orientation":"squarish","userLink":"https://unsplash.com/@mahdi17","width":5000,"height":4613}]')},93953:function(n){n.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(n){n.exports=JSON.parse('["https://slicemachine.dev","https://prismic.io","http://google.com","http://twitter.com"]')},1710:function(n){n.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"}')}}]);