(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8042,7301,8244,1320,3083,2924,2490,6085,3915,9206,4566,9613,6695,2713,4379,7672,6059,2400,4921,9650,4903,3126,4253,8917,7355,6139],{23093:function(e,n,r){"use strict";r.d(n,{J:function(){return t.JO},z:function(){return t.zx}});var t=r(46139)},1280:function(e,n,r){"use strict";r.d(n,{JO:function(){return t.JO},ZT:function(){return t.ZT},rU:function(){return t.rU},vN:function(){return t.vN}});var t=r(46139)},15610:function(e,n,r){Promise.resolve().then(r.bind(r,74861)),Promise.resolve().then(r.bind(r,15661)),Promise.resolve().then(r.t.bind(r,31579,23)),Promise.resolve().then(r.bind(r,41379)),Promise.resolve().then(r.t.bind(r,90413,23)),Promise.resolve().then(r.t.bind(r,68326,23)),Promise.resolve().then(r.t.bind(r,19167,23)),Promise.resolve().then(r.t.bind(r,78115,23)),Promise.resolve().then(r.bind(r,3113)),Promise.resolve().then(r.bind(r,32772)),Promise.resolve().then(r.bind(r,58324)),Promise.resolve().then(r.bind(r,32229)),Promise.resolve().then(r.bind(r,56610)),Promise.resolve().then(r.bind(r,36215)),Promise.resolve().then(r.bind(r,11982)),Promise.resolve().then(r.bind(r,40742)),Promise.resolve().then(r.bind(r,61282)),Promise.resolve().then(r.bind(r,4235)),Promise.resolve().then(r.bind(r,78750)),Promise.resolve().then(r.bind(r,66541)),Promise.resolve().then(r.bind(r,28223)),Promise.resolve().then(r.bind(r,39416)),Promise.resolve().then(r.bind(r,53126)),Promise.resolve().then(r.bind(r,54163)),Promise.resolve().then(r.bind(r,59362)),Promise.resolve().then(r.bind(r,4903)),Promise.resolve().then(r.bind(r,71627)),Promise.resolve().then(r.bind(r,17788)),Promise.resolve().then(r.bind(r,94253)),Promise.resolve().then(r.bind(r,53431)),Promise.resolve().then(r.bind(r,97355)),Promise.resolve().then(r.bind(r,21740)),Promise.resolve().then(r.bind(r,36518)),Promise.resolve().then(r.bind(r,70156)),Promise.resolve().then(r.bind(r,2994)),Promise.resolve().then(r.bind(r,65204)),Promise.resolve().then(r.bind(r,87100)),Promise.resolve().then(r.bind(r,17618)),Promise.resolve().then(r.bind(r,12708)),Promise.resolve().then(r.bind(r,36557)),Promise.resolve().then(r.bind(r,36201)),Promise.resolve().then(r.bind(r,96929))},96287:function(e,n,r){"use strict";r.d(n,{a:function(){return i}});var t=r(60891);function _templateObject(){var e=(0,t._)(["\n  fragment ModuleFragment on Module {\n    id\n    name\n    order\n  }\n"]);return _templateObject=function(){return e},e}var i=(0,r(17068).ZP)(_templateObject())},92649:function(e,n,r){"use strict";var t=r(41369),i=r(43654),o=r(60891),a=r(46076);function _templateObject(){var e=(0,o._)(["\n	query getChapter(\n		$chapterId: ID!\n		$chapterType: String!\n		$includeText: Boolean!\n		$includeTag: Boolean!\n		$includeAuthor: Boolean!\n		$includeCourse: Boolean! = false\n	) {\n		getChapter(id: $chapterId, chapter_type: $chapterType) {\n			id\n			title\n			chapter_type\n			published\n			createdAt\n			html @include(if: $includeText)\n			markdown @include(if: $includeText)\n			author @include(if: $includeAuthor) {\n				id\n				avatar\n				firstName\n				lastName\n				assistant\n				program {\n					id\n					name\n				}\n				enrollmentYear\n			}\n			course @include(if: $includeCourse){\n				id\n			}\n			tag @include(if: $includeTag) {\n				id\n				name\n			}\n		}\n	}\n"]);return _templateObject=function(){return e},e}var l=(0,r(17068).ZP)(_templateObject());n.Z=function(e){var n=e.chapterId,r=e.chapterType,o=e.includeText,s=e.includeTag,c=e.includeAuthor,u=e.includeCourse,d={},f=(0,a.a)(l,{variables:{chapterId:Number(n),chapterType:r,includeText:void 0!==o&&o,includeTag:void 0!==s&&s,includeAuthor:void 0!==c&&c,includeCourse:void 0!==u&&u},skip:!n||"number"!=typeof n}),m=f.loading,p=(f.error,f.data);return p&&(d=(0,i._)((0,t._)({},p.getChapter),{chapterType:p.getChapter.chapter_type})),[d,m]}},3752:function(e,n,r){"use strict";r.d(n,{U:function(){return a}});var t=r(60891),i=r(46076),o=r(17068);function _templateObject(){var e=(0,t._)(["\n	query getExam(\n		$id: ID!\n		$includeExercises: Boolean!\n		$includeSolutions: Boolean!\n		$exerciseFilters: ExerciseFiltersInput\n		$includeSegments: Boolean!\n	) {\n		getExam(id: $id) {\n			id\n			date\n			author\n			exercises_src # The EXERCISES_PNG file\n			solutions_src # The SOLUTIONS_PNG file\n			exam_exercises_src # The EXERCISES_PDF file\n			exam_solutions_src # The SOLUTIONS_PDF file\n			exercisesMarkingCompleted\n			solutionsMarkingCompleted\n			exercises(filters: $exerciseFilters) @include(if: $includeExercises) {\n				id\n				imageUrl\n				number\n				segments @include(if: $includeSegments) {\n					id\n					imageUrl\n					x1\n					x2\n					y1\n					y2\n					initialWidth\n				}\n				solution @include(if: $includeSolutions) {\n					id\n					imageUrl\n					segments @include(if: $includeSegments) {\n						id\n						imageUrl\n						x1\n						x2\n						y1\n						y2\n						initialWidth\n					}\n				}\n			}\n		}\n	}\n"]);return _templateObject=function(){return e},e}r(20955);var a=(0,o.ZP)(_templateObject());n.Z=function(e){var n=e.id,r=e.includeExercises,t=e.includeSolutions,o=e.includeSegments,l=e.exerciseFilters,s=(0,i.a)(a,{variables:{id:n,includeExercises:void 0!==r&&r,includeSolutions:void 0!==t&&t,exerciseFilters:void 0===l?{published:!0}:l,includeSegments:void 0!==o&&o}}),c=s.loading,u=s.error,d=s.data,f=s.refetch;if(u)return"Error! ".concat(u.message);var m={};return d&&(m=d.getExam),[m,c,f]}},3113:function(e,n,r){"use strict";r.r(n);var t=r(86335),i=r(40494),o=r(55688),a=r(21889),l=r(26705),s=r(20955),c=r(74275),u=r.n(c),d=r(32491),f=r(51476),m=function(e){(0,o._)(ErrorBoundary,e);var n=(0,a._)(ErrorBoundary);function ErrorBoundary(e){var r;return(0,t._)(this,ErrorBoundary),(r=n.call(this,e)).state={hasError:!1,error:null,errorInfo:null,hidden:!1},r}return(0,i._)(ErrorBoundary,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,errorInfo:n}),console.error("ErrorBoundary: componentDidCatch: error: ",e,"errorInfo: ",n)}},{key:"render",value:function(){var e=this,n=(0,l.jsxs)("div",{className:"surface-warning-light p-4 rounded-xl flex justify-between items-start",children:[(0,l.jsx)("p",{className:"text-warning font-bold",children:this.props.errorMessage||(0,l.jsx)(d.Z,{children:"Oops, an error occurred. Please try again later!"})}),(0,l.jsx)(f.default,{icon:"close",color:"text-warning-light",onClick:function(){return e.setState({hidden:!0})}})]});return this.state.hasError?this.props.hideOnError||this.state.hidden?null:this.props.fallbackComponent?this.props.fallbackComponent:n:this.props.children||null}}],[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}]),ErrorBoundary}(s.Component);m.propTypes={hideOnError:u().bool,fallbackComponent:u().node,errorMessage:u().oneOfType([u().string,u().node])},n.default=m},94886:function(e,n,r){"use strict";r.r(n);var t=r(26705);r(20955);var i=r(29737),o=r(4179),a=r(32491),l=r(24632),s=r(21740),c=r(74861),ExerciseListProgressMock=function(e){var n=e.thin,r=e.showLabel;return(0,t.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,t.jsx)("div",{className:"grow",children:(0,t.jsx)(l.default,{size:n?"2xs":"xs"})}),(void 0===r||r)&&(0,t.jsx)(a.Z,{children:"... Exercises."})]})};n.default=function(e){var n=e.exercises,r=e.thin,a=void 0===r||r,l=e.loading,u=e.segmented,d=e.showLabel,f=void 0===d||d,m=(0,c.useTranslation)().trans,p=n.length,h=(0,i.Lh)(n),g=(0,i.xb)(n);if(void 0!==l&&l)return(0,t.jsx)(ExerciseListProgressMock,{thin:a,showLabel:f});var x=(0,i.k3)(n);return(0,t.jsxs)("div",{className:"flex gap-2 items-center ",children:[(0,t.jsx)("div",{className:"grow",children:(0,t.jsx)(s.default,{segments:void 0===u||u?g:null,thin:a,style:{color:x},progressRatio:h?h/p:0})}),f&&(0,t.jsxs)(o.default,{type:"tsm",weight:"sb",color:"text-gray-light",children:[h+"/"+p," ",m("exercises")]})]})}},32772:function(e,n,r){"use strict";r.r(n),r.d(n,{ExerciseSort:function(){return ExerciseSort},default:function(){return ExerciseSortList_ExerciseSortList}});var t=r(26705),i=r(20955),o=r(33968),a=r(36518);r(1770);var l=r(13261),s=r(24033),c=r(89593),u=r(56984),d=r(42744),f=r.n(d),m=Object.keys(l.Z).map(function(e){return{text:o.ZP.t(l.Z[e].label),value:e}}),ExerciseSortList_ExerciseSortListFilters=function(e){(0,u._)(e);var n=(0,s.useRouter)(),r=i.useContext(c.CourseParamsContext),l=r.getFilterLink,d=r.filter;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"w-[14rem]",children:(0,t.jsx)(a.default,{size:"sm",value:d,placeholder:o.ZP.t("Filters"),onSelect:function(e){return n.replace(l(e))},options:m,className:f()("filter-select w-full"),borderColor:d?"border-secondary-200":"border-gray",clearable:!0,onClear:function(){return n.replace(l())}})})})},p=[{text:o.ZP.t("Difficulty"),value:"score"},{text:o.ZP.t("Assessment"),value:"selfEvaluation"},{text:o.ZP.t("Author"),value:"author"},{text:o.ZP.t("Date"),value:"date"},{text:o.ZP.t("Exercise number"),value:"number"},{text:o.ZP.t("Topic"),value:"tag"}],h=[{text:o.ZP.t("Ascending"),value:"asc"},{text:o.ZP.t("Descending"),value:"desc"}],ExerciseSort=function(){var e=i.useContext(c.CourseParamsContext),n=e.dir,r=e.sort,l=e.getSortAttributeLink,u=e.getSortDirectionLink,d=(0,s.useRouter)(),f="value";return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full max-w-[12rem]",children:(0,t.jsx)(a.default,{size:"sm",placeholder:o.ZP.t("Sort by"),value:r?p.find(function(e){return e.value===r})[f]:null,onSelect:function(e){return d.replace(l(e))},options:p})}),(0,t.jsx)("div",{className:"w-full max-w-[12rem]",children:(0,t.jsx)(a.default,{placeholder:o.ZP.t("Sort direction"),size:"sm",onSelect:function(e){return d.replace(u(e))},value:n?h.find(function(e){return e.value===n})[f]:null,options:h})})]})},ExerciseSortList_ExerciseSortList=function(){return(0,t.jsxs)("div",{className:"flex gap-2 items-end",children:[(0,t.jsx)(ExerciseSort,{}),(0,t.jsx)(ExerciseSortList_ExerciseSortListFilters,{})]})}},56610:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return PlaylistHeader_PlaylistHeaderViewMode}});var t=r(26705),i=r(20955),o=r(46139),a=r(89593),l=r(36557),PlaylistHeader_PlaylistHeaderViewMode=function(){var e=i.useContext(a.CourseParamsContext),n=e.exercise,r=e.unsetExercise,s=i.useContext(l.CourseContext),c=s.exerciseListDisplayMode,u=s.setExerciseListDisplayMode;return(0,t.jsxs)(o.hE,{children:[(0,t.jsx)(o.zx,{type:"list"!==c||n?"gray":"secondary",onClick:function(){u("list"),r()},size:"sm",hint:(0,t.jsx)(o.vN,{children:"List view"}),children:(0,t.jsx)(o.JO,{icon:"fa-regular fa-list",size:"lg"})}),(0,t.jsx)(o.zx,{type:"grid"!==c||n?"gray":"secondary",onClick:function(){u("grid"),r()},size:"sm",hint:(0,t.jsx)(o.vN,{children:"Grid view"}),children:(0,t.jsx)(o.JO,{icon:"fa-regular fa-grid",size:"lg"})}),(0,t.jsx)(o.zx,{type:n?"secondary":"gray",size:"sm",hint:(0,t.jsx)(o.vN,{children:"Exercise view"}),disabled:!0,children:(0,t.jsx)(o.JO,{icon:"fa-kit fa-exercise-view",size:"lg"})})]})}},40742:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return Breadcrumb_Breadcrumb}});var t=r(26705),i=r(20955),o=r(51476),a=r(77544),l=r(9),s=r(37279),c=r(24387),Breadcrumb_BreadcrumbTag=function(e){var n=e.tagId,r=e.getTagLink,i=e.linkColor,u=e.iconColor;if(!n)return null;var d=(0,l._)((0,s.Z)(n),2),f=d[0];return d[1]?null:(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(o.default,{icon:"chevron-right",color:u,size:"md"}),(0,t.jsx)(a.default,{type:"txl",weight:"md",className:i,to:r(n),children:(0,c.fm)(f.name)})]})},u=r(60891),d=r(46076),f=r(17068),m=r(96287);function _templateObject(){var e=(0,u._)(["\n  query getModule($moduleId: ID!) {\n    getModule(id: $moduleId) {\n      ...ModuleFragment\n    }\n  }\n  ","\n"]);return _templateObject=function(){return e},e}var p=(0,f.ZP)(_templateObject(),m.a),module_useGetModule=function(e){var n=null,r=(0,d.a)(p,{variables:{moduleId:e},context:{batch:!0}}),t=r.loading,i=r.error,o=r.data;return i?"Error in useGetModule: ".concat(i.message):(o&&(n=o.getModule),[n,t])},Breadcrumb_BreadCrumbModule=function(e){var n=e.moduleId,r=e.getModuleLink,i=e.linkColor,s=e.iconColor;if(!n)return null;var u=(0,l._)(module_useGetModule(n),2),d=u[0];return u[1]?null:(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(o.default,{icon:"chevron-right",color:s,size:"md"}),(0,t.jsx)(a.default,{type:"txl",weight:"md",className:i,to:r(n),children:(0,c.fm)(d.name)})]})},h=r(46139),g=r(3752),Breadcrumb_BreadCrumbExam=function(e){var n=e.examId,r=e.getExamLink,i=e.iconColor,o=e.linkColor;if(!n)return null;var a=(0,l._)((0,g.Z)({id:n}),2),s=a[0];if(a[1])return null;var c=new Date(s.date.substring(0,10)),u=s.date.slice(10).trim(),d=c.toLocaleDateString("sv-SE",{day:"numeric",month:"short",year:"numeric"});return(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(h.JO,{icon:"chevron-right",color:i,size:"md"}),(0,t.jsx)(h.rU,{type:"txl",weight:"md",className:o,to:r(n),children:d+(u?" (".concat(u,")"):"")})]})},x=r(44410),b=r(82122),Breadcrumb_BreadCrumbExercise=function(e){var n=e.exerciseId,r=e.examId,i=(e.linkColor,e.iconColor);if(!n)return null;var o=(0,l._)((0,x.Z)({id:n,includeStats:!1,includeModule:!1,includeSource:!0,includeSelfEvaluation:!1}),2),a=o[0];if(o[1]||!a)return null;var s=a.number,c=a.date,u=new Date(c.substring(0,10)),d=c.slice(10).trim(),f=u.toLocaleDateString("sv-SE",{day:"numeric",month:"short",year:"numeric"});return r?(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(h.JO,{icon:"chevron-right",color:i,size:"md"}),(0,t.jsxs)(b.v,{type:"gray",weight:"md",color:"text-gray-500",number:s,children:["Exercise ",{number:s}]})]}):(0,t.jsxs)("div",{className:"flex gap-1 ml-1",children:[(0,t.jsx)(h.JO,{icon:"chevron-right",color:i,size:"md"}),(0,t.jsxs)(b.Z,{type:"gray",weight:"md",color:"text-gray-500",children:[f," #",s]}),d&&(0,t.jsxs)(b.Z,{type:"gray",weight:"md",color:"text-gray-500",children:["(",d,")"]})]})},v=r(92649),y=r(1280),k=r(36557),w=r(24033),Breadcrumb_BreadCrumbChapter=function(e){var n=e.linkColor,r=e.iconColor,o=i.useContext(k.CourseContext).getCourseLink,a=(0,w.useParams)(),s=a.chapterType,u=a.chapterId,d=s||"",f=u||"",m=(0,l._)((0,v.Z)({chapterId:f,chapterType:d,includeTag:!0}),2),p=m[0];return!m[1]&&f&&d?(0,t.jsxs)(t.Fragment,{children:[p.tag&&(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(y.JO,{icon:"chevron-right",color:r,size:"md"}),(0,t.jsx)(y.rU,{type:"txl",weight:"md",className:n,to:o("topics/".concat(p.tag.id)),children:(0,c.fm)(p.tag.name)})]}),(0,t.jsxs)("div",{className:"flex gap-1",children:[(0,t.jsx)(y.JO,{icon:"chevron-right",color:r,size:"md"}),(0,t.jsx)(y.vN,{type:"gray",weight:"md",color:"text-gray-500",children:p.chapterType})]})]}):null},C=r(31095),j=r(36201),P=r(74963),E=r(89593),_=r(10576),getCurrentTagId=function(e,n){var r;return(null===(r=e.match(/\/topics\/([0-9]+)/))||void 0===r?void 0:r[1])||n.get("tagId")},getCurrentModuleId=function(e,n){var r;return(null===(r=e.match(/\/module\/([0-9]+)/))||void 0===r?void 0:r[1])||n.get("moduleId")},getCurrentExamId=function(e,n){var r;return(null===(r=e.match(/\/exams\/([0-9]+)/))||void 0===r?void 0:r[1])||n.get("examId")},getCurrentChapterId=function(e,n){var r;return(null===(r=e.match(/\/chapter\/([0-9]+)/))||void 0===r?void 0:r[1])||n.get("chapterId")},Breadcrumb_useBreadcrumb=function(){var e=(0,w.usePathname)(),n=(0,w.useSearchParams)(),r=(0,j.default)(P._).currentRoute,t=i.useContext(E.CourseParamsContext),o=t.getModuleLink,a=t.getTagLink,l=t.getExamLink,s=t.getExerciseLink,c=(null==r?void 0:r.rootPath)||(null==r?void 0:r.path),u=P._.find(function(e){return e.path===c}),d=_.z.some(function(n){return n.path.test(e)}),f=getCurrentModuleId(e,n);return{rootRoute:u,tagId:getCurrentTagId(e,n),moduleId:f,chapterId:getCurrentChapterId(e,n),examId:getCurrentExamId(e,n),exerciseId:n.get("exerciseId")||n.get("exercise"),getTagLink:a,getModuleLink:o,getExamLink:l,getExerciseLink:s,isFullPageRoute:d}},F=r(21306),Breadcrumb_Breadcrumb=function(){var e=i.useContext(k.CourseContext),n=e.getCourseLink,r=e.name,l=(0,F.f)(r),s=Breadcrumb_useBreadcrumb(),c=s.rootRoute,u=s.tagId,d=s.moduleId,f=s.chapterId,m=s.examId,p=s.exerciseId,h=s.getTagLink,g=s.getModuleLink,x=s.getExamLink,b=(s.getExerciseLink,s.isFullPageRoute);if(C.UA||!c)return null;var v="text-slate-500 ",y="text-gray-500";return(0,t.jsxs)("div",{className:"flex gap-1 items-center",children:[b&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.default,{type:"txl",weight:"md",className:v,to:n("/"),children:l}),(0,t.jsx)(o.default,{icon:"chevron-right",color:y,size:"md"})]}),(0,t.jsx)(o.default,{icon:"far fa-".concat(c.icon),size:"md"}),(0,t.jsx)(a.default,{type:"txl",weight:"md",className:v,to:n(c.path),children:c.label}),(0,t.jsx)(Breadcrumb_BreadCrumbModule,{moduleId:d,getModuleLink:g,linkColor:v,iconColor:y}),(0,t.jsx)(Breadcrumb_BreadcrumbTag,{moduleId:d,tagId:u,getTagLink:h,linkColor:v,iconColor:y}),(0,t.jsx)(Breadcrumb_BreadCrumbChapter,{chapterId:f,linkColor:v,iconColor:y}),(0,t.jsx)(Breadcrumb_BreadCrumbExam,{examId:m,getExamLink:x,linkColor:v,iconColor:y}),(0,t.jsx)(Breadcrumb_BreadCrumbExercise,{exerciseId:p,examId:m,linkColor:v,iconColor:y})]})}},4235:function(e,n,r){"use strict";r.r(n);var t=r(9),i=r(26705),o=r(20955),a=r(74275),l=r.n(a),s=r(17422),c=r(2403),u=r(32462),d=r(8136),f=r(42744),m=r.n(f),p=r(61282),h={enter:function(e){return{x:e>0?1e3:-1e3,opacity:0,y:0,zIndex:0}},center:{zIndex:1,x:0,opacity:1,y:0},exit:function(e){return{zIndex:0,x:e<0?1e3:-1e3,opacity:0,y:0}}},Carousel=function(e){var n=e.children,r=(e.loop,e.showDots),a=e.height,l=e.key,f=e.showArrows,g=void 0!==f&&f,x=o.useMemo(function(){return o.Children.count(n)},[n]),b=(0,t._)(o.useState([0,0]),2),v=(0,t._)(b[0],2),y=v[0],k=v[1],w=b[1],C=(0,d.r)(0,x,y),paginate=function(e){w([y+e,e])};return(0,i.jsxs)("div",{className:m()("w-full relative flex flex-col justify-end gap-2",a),children:[(0,i.jsxs)(c.M,{initial:!1,custom:k,children:[(0,i.jsx)("div",{className:"opacity-0 w-full",children:n[C]}),(0,i.jsx)(u.E.div,{className:" w-[94%] left-[3%] absolute top-0",custom:k,variants:h,initial:"enter",animate:"center",exit:"exit",transition:{x:{type:"spring",stiffness:300,damping:30},opacity:{duration:.4}},drag:"x",dragConstraints:{left:0,right:0},dragElastic:1,onDragEnd:function(e,n){var r=n.offset,t=n.velocity,i=Math.abs(r.x)*t.x;i<-2e4?paginate(1):i>2e4&&paginate(-1)},children:n[C]},y)]}),r&&(0,i.jsx)("div",{className:"flex justify-center items-center my-2",children:Array.from({length:x}).map(function(e,n){return(0,i.jsx)(s.J,{icon:"fa-solid fa-circle-small",className:"mr-1",size:"xs",onClick:function(){return w([n,0])},color:n===C?"text-primary-light":"text-gray-200"},n)})}),g&&(0,i.jsx)("div",{className:"absolute top-1/2 transform -translate-y-1/2 -left-4 z-10 ",children:(0,i.jsx)(p.default,{type:"ghost",className:"shadow-md",onClick:function(){return paginate(-1)},children:(0,i.jsx)(s.J,{icon:"fa-solid fa-chevron-left"})})}),g&&(0,i.jsx)("div",{className:"absolute top-1/2 transform -translate-y-1/2 -right-4 z-10",children:(0,i.jsx)(p.default,{type:"ghost",className:"shadow-md",onClick:function(){return paginate(1)},children:(0,i.jsx)(s.J,{icon:"fa-solid fa-chevron-right"})})})]},l)};Carousel.propTypes={children:l().arrayOf(l().node).isRequired,loop:l().bool,showArrows:l().bool,showDots:l().bool,height:l().string,key:l().string},n.default=Carousel},66541:function(e,n,r){"use strict";r.r(n);var t=r(9),i=r(26705),o=r(20955),a=r(31857),l=r(53431),s=r(51476),c=r(61282);n.default=function(e){var n=e.title,r=void 0===n?(0,i.jsx)(a.default,{children:"Are you sure you?"}):n,u=e.description,d=void 0===u?(0,i.jsx)(a.default,{children:"This action cannot be undone"}):u,f=e.children,m=e.onConfirm,p=e.onCancel,h=e.confirmButtonLabel,g=void 0===h?(0,i.jsx)(a.default,{children:"Confirm"}):h,x=e.cancelButtonLabel,b=void 0===x?(0,i.jsx)(a.default,{children:"Cancel"}):x,v=e.zIndex,y=(0,t._)(o.useState(!1),2),k=y[0],w=y[1];return(0,i.jsx)(l.default,{isOpen:k,onOpenChange:w,zIndex:void 0===v?"z-10":v,asChild:!0,content:(0,i.jsxs)("div",{className:"p-2 rounded-xl max-w-xs",children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,i.jsx)(s.default,{icon:"exclamation-circle",size:"md",color:"text-gray"}),o.cloneElement(r,{type:"tsm",weight:"sb",color:"text-gray",inline:!0,className:"leading-none"})]}),d&&(0,i.jsx)("div",{className:"mt-1",children:o.cloneElement(d,{type:"tsm",weight:"normal",color:"text-gray-light"})}),(0,i.jsxs)("div",{className:"mt-4 flex  gap-2",children:[(0,i.jsx)(c.default,{size:"sm",type:"destructive",onClick:function(){w(!1),p&&p()},fluid:!0,children:b}),(0,i.jsx)(c.default,{size:"sm",type:"secondary",onClick:function(){w(!1),m&&m()},fluid:!0,children:g})]})]}),children:o.cloneElement(f,{onClick:function(){return w(!0)}})})}},39416:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return v}});var t=r(9),i=r(26705),o=r(20955),a=r(74275),l=r.n(a),s=r(77592),c=r(41369),u=r(23093),d=r(3190),f=r(32462),m=r(58146),p=r(42744),h=r.n(p),g=r(28811),x=r.n(g)()(function(){return Promise.all([r.e(5651),r.e(7133),r.e(1924),r.e(9342)]).then(r.bind(r,35596))},{loadableGenerated:{webpack:function(){return[35596]}}}),File_FilePreview=function(e){var n=e.url,r=e.fileContainer,t=e.togglePreview,a=e.previewOpen,l=e.previewButtonProps,s=void 0===l?{}:l,p=n.split(".").pop(),g=o.useRef(null);return((0,m.Z)(g,t),p.includes("pdf"))?a?[(0,i.jsx)(u.z,(0,c._)({icon:"fa-solid fa-eye-slash",type:"link",onClick:t},s),"1"),d.createPortal((0,i.jsxs)(f.E.div,{layoutId:"preview",initial:{opacity:0,scale:.5,translateX:"80%"},animate:{opacity:1,scale:1,translateX:"10%"},className:h()("absolute  z-50"," w-[400px] p-2 rounded-lg  background","flex flex-col items-end overflow-hidden","border-2 border-gray-50  shadow-xl"),ref:g,children:[(0,i.jsx)(u.J,{icon:"fa-solid fa-times",size:"sm",onClick:t}),(0,i.jsx)(x,{fileType:"pdf",url:n,container:g,showAllPages:!1})]}),r.current,"2")]:(0,i.jsx)(u.z,(0,c._)({icon:"fa-solid fa-eye",type:"link",onClick:t},s),"1"):null},b={popIn:{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1}}},truncatedName=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;try{var r=Math.floor(n/2);if(e.length>n)return e.substring(0,r)+"..."+e.substring(e.length-r,e.length);return e}catch(n){return console.log(n),e}},File=function(e){var n=e.name,r=void 0===n?"File":n,a=e.selected,l=void 0!==a&&a,c=e.nameDisplayLength,u=void 0===c?30:c,d=e.url,m=void 0===d?null:d,p=e.icon,g=e.size,x=void 0===g?0:g,v=e.showSize,y=e.iconSize,k=e.animation,w=e.fluid,C=void 0===w||w,j=e.onPreviewToggle,P=void 0===j?null:j,E=e.previewButtonProps,_=e.layoutId,F=void 0===_?null:_,I=e.allowPreview,N=void 0===I||I,T=e.border,B=void 0===T||T,S=e.bgColor,L=void 0===S?"background":S,M=e.badge,D=void 0===M?null:M,A=o.useRef(null),z=(0,t._)(o.useState(!1),2),G=z[0],O=z[1];return null===m?null:(0,i.jsxs)(f.E.div,{className:h()("p-2 rounded-lg flex items-center",B?"border-2":"",G||l?"border-primary-strong":"border-primary-50 dark:border-primary-800",l?"surface-primary":L,C?"w-full":"w-64"),ref:A,layout:!!F&&"position",initial:"initial",animate:"animate",variants:k?b[k]:{},layoutId:F,children:[p||(0,i.jsx)(s.JO,{fixedWidth:!0,size:void 0===y?"md":y,icon:"file-alt",fillType:"primary",filled:!0}),(0,i.jsxs)("div",{className:"ml-4 w-full overflow-hidden",children:[(0,i.jsxs)("div",{className:"flex items-center justify-between w-full",children:[(0,i.jsx)(s.ZT,{type:"tsm",weight:"medium",color:"text-primary",className:"truncate",children:truncatedName(r,u)}),N&&(0,i.jsx)(File_FilePreview,{name:r,url:m,fileContainer:A,previewOpen:G,togglePreview:function(){P?P():O(!G)},previewButtonProps:E}),!N&&D&&(0,i.jsx)(i.Fragment,{children:D})]}),null!==x&&(void 0===v||v)&&(0,i.jsxs)(s.ZT,{type:"tsm",color:"text-gray-light",className:"mt-1",weight:"light",children:[Math.round(x/1e6*10)/10," MB"]})]})]})};File.propTypes={name:l().string,size:l().number,showSize:l().bool,animation:l().oneOf(Object.keys(b))};var v=File},53126:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return f}});var t=r(41369),i=r(43654),o=r(26705);r(20955);var a=r(46139),l=r(42744),s=r.n(l),c=r(32462),u=r(74861),d=r(9258),FileUpload=function(e){var n=e.subTitle,r=e.showSubTitle,l=e.showIcon,f=e.title,m=e.compact,p=void 0!==m&&m,h=e.fluid,g=e.disabled,x=void 0!==g&&g,b=e.icon,v=e.className,y=e.onFilesAccepted,k=e.multiple,w=e.accept,C=e.maxSize,j=e.transparent,P=void 0!==j&&j,E=e.onError,_=e.borderColor,F=void 0===_?"border-primary":_,I=e.textColor,N=void 0===I?"text-primary-light":I;(0,u.useTranslation)().trans;var T=(0,d.Z)({onFilesAccepted:y,onError:E,maxSize:void 0===C?2e6:C,multiple:void 0!==k&&k,accept:void 0===w?"image/*":w}),B=T.getRootProps,S=T.getInputProps;return(0,o.jsxs)(c.E.div,(0,i._)((0,t._)({className:s()("file-upload select-none group",p&&"flex-row justify-start gap-4 items-center",x&&"opacity-50 cursor-not-allowed",v,F,P?"bg-transparent":"bg-gradient-to-br from-primary-50 to-purple-50"),initial:{width:"100%"},animate:{width:void 0===h||h?"100%":"fit-content"}},B()),{children:[(0,o.jsx)("input",(0,t._)({},S())),(void 0===l||l)&&(0,o.jsx)("div",{className:"file-upload-icon-container",children:b||(0,o.jsx)(a.JO,{icon:x?"circle-notch":"fas fa-cloud-arrow-up",size:p?"sm":"lg",fillType:x?"gray":"purple",outlined:!0,filled:!0,spin:x})}),(0,o.jsxs)("div",{className:s()("truncate",!p&&"text-center mt-5"),children:[f?(0,o.jsx)(a.Mg,{type:"tmd",weight:"bl",color:N,children:f}):(0,o.jsx)(a.vN,{type:"tmd",weight:"bl",color:N,children:"Click to upload"}),(void 0===r||r)&&(n?(0,o.jsx)(a.Mg,{type:"tsm",color:N,children:n}):(0,o.jsx)(a.vN,{type:"tsm",color:N,children:"or drag and drop here"}))]})]}))};FileUpload.propTypes={};var f=FileUpload},9258:function(e,n,r){"use strict";var t=r(20955),i=r(22440),o=r(71627),a=r(74861);n.Z=function(e){var n=e.onFilesAccepted,r=e.multiple,l=e.accept,s=e.maxSize,c=void 0===s?2e6:s,u=e.onError,d=(0,a.useTranslation)().trans,f=t.useCallback(function(e){return n(e)},[]),m=t.useCallback(function(e){if(u)u(e);else{var n=d("File too big. ")+d("Max: ")+(c/1e6).toString()+"MB";o.default.error(n)}},[]),p=(0,i.uI)({onDrop:f,multiple:void 0!==r&&r,accept:void 0===l?"image/*":l,maxSize:c,onDropRejected:m,noDragEventsBubbling:!0});return{getRootProps:p.getRootProps,getInputProps:p.getInputProps,isDragActive:p.isDragActive,handleOpenFileBrowser:p.open}}},51476:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return g}});var t=r(41369),i=r(75104),o=r(26705),a=r(20955),l=r(74275),s=r.n(l),c=r(42744),u=r.n(c),getIcon=function(e,n){try{var r=e.split(" ");if(0===r.length)return"fa-solid fa-face-confused";if(r.length>1){var t=r[0];return"far"===r[0]&&(t="fa-regular"),"".concat(t," ").concat(r[1])}return"fa-regular fa-"+r.join(" ")}catch(e){}return e};r(9323);var d=r(65660),f=r.n(d),m={"2xs":8,xs:10,sm:12,md:14,lg:16,xl:18,"2xl":20},p={"2xs":"p-1",xs:"p-1",sm:"p-2",md:"p-2",lg:"p-3",xl:"p-4","2xl":"p-6"},h={"2xs":"border-0",xs:"border-1",sm:"border-2",md:"border-4",lg:"border-6",xl:"border-8","2xl":"border-8"},Icon=function(e){var n=e.icon,r=void 0===n?"":n,l=e.spin,s=e.size,c=void 0===s?"sm":s,d=e.onClick,g=e.color,x=e.className,b=e.filled,v=e.outlined,y=void 0===v||v,k=e.fixedWidth,w=e.fillType,C=void 0===w?"primary":w,j=e.sharp,P=e.style,E=e.disabled,_=void 0!==E&&E,F=e.duoTonePrimaryColor,I=void 0===F?f().blue["500"]:F,N=e.duoToneSecondaryColor,T=void 0===N?f().bermuda["400"]:N,B=(0,i._)(e,["icon","spin","size","onClick","color","className","filled","outlined","fixedWidth","fillType","sharp","style","disabled","duoTonePrimaryColor","duoToneSecondaryColor"]),S=a.useMemo(function(){return 1.5*m[c]},[]),L=getIcon(r,void 0===P?"far":P),M=a.useMemo(function(){return getFilledIconClassNames(C)},[C]),D=(0,o.jsx)("i",{disabled:_,className:u()(L,null!=c&&"md"!==c&&"fa-"+c,x,{"icon-clickable":d,"fa-spin":void 0!==l&&l,"fa-fw":void 0===k||k,"fa-sharp":void 0!==j&&j}),style:(0,t._)({"--fa-primary-color":I,"--fa-secondary-color":T},B.style)});return void 0!==b&&b?(0,o.jsx)("div",{disabled:_,onClick:d,className:u()("inline-flex items-center justify-center","rounded-full box-content",M,y&&h[c],p[c],"aspect-square"),style:{width:S,height:S},children:D},r):(0,o.jsx)("span",{onClick:d,className:void 0===g?"text-gray-400 dark:text-gray-500":g,disabled:_,children:D},r+c)},getFilledIconClassNames=function(e){return"primary"===e?"bg-primary-100 dark:bg-primary-800 text-primary-600 dark:text-primary-300 border-primary-50 dark:border-primary-900":"success"===e?"bg-success-100 dark:bg-success-800  text-success-600 dark:text-success-300 border-success-50 dark:border-success-900":"error"===e||"danger"===e||"destructive"===e?"bg-error-100 dark:bg-error-800 text-error-600 dark:text-error-300 border-error-50 dark:border-error-900":"warning"===e?"bg-warning-50 dark:bg-warning-800 text-warning-400 dark:text-warning-300 border-warning-50 dark:border-warning-900":"warning-dark"===e?"bg-warning-100 dark:bg-warning-800 text-warning-600 dark:text-warning-300 border-warning-50 dark:border-warning-900":"amber"===e?"bg-amber-100 dark:bg-amber-800 text-amber-600 dark:text-amber-300 border-amber-50 dark:border-amber-900":"purple"===e?"bg-purple-100 dark:bg-purple-800 text-purple-600 dark:text-purple-300 border-purple-50 dark:border-purple-900":"purple-dark"===e?"bg-purple-200 dark:bg-purple-800 text-purple-600 dark:text-purple-300 border-purple-100 dark:border-purple-900":"gray"===e?"bg-gray-100 dark:bg-gray-800 text-gray-600 dark:text-gray-300 border-gray-50 dark:border-gray-900":"bg-primary-100 dark:bg-primary-800 text-primary-400 border-primary-50 dark:border-primary-900"};Icon.propTypes={icon:s().oneOfType([s().string,s().array,s().element,s().object]),spin:s().bool,size:s().oneOf(["2xs","xs","sm","md","lg","xl","2xl"]),color:s().string,onClick:s().func,filled:s().bool,outlined:s().bool,fixedWidth:s().bool,fillType:s().oneOf(["primary","success","error","danger","destructive","warning","warning-dark","purple","purple-dark","amber","gray"])};var g=Icon},59362:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return InputCode_InputCode}});var t=r(26705),i=r(20955),o=r(9403),a=r(17422),l=r(9),isEmpty=function(e){return null===e||""===e},InputCode_useInputCode=function(e){var n=e.digits,r=e.onChange,t=e.onlyNumbers,o=(0,l._)(i.useState(0),2),a=o[0],s=o[1],c=Array(n).fill(null),u=(0,l._)(i.useState(c),2),d=u[0],f=u[1],handleAutoFocus=function(e,r,t){var i=Math.min(e+1,n-1);if(isEmpty(r)){isEmpty(t)?s(Math.max(e-1,0)):s(i);return}if(!isEmpty(r)){if(isEmpty(t))return;s(i)}};return i.useEffect(function(){d.every(function(e){return!isEmpty(e)})&&d.length===n&&r&&r(d.join(""))},[d]),{code:d,currentFocusIndex:a,handleChange:function(e,n){var r,i,o=d[e],a=(null===(i=n.target.value)||void 0===i?void 0:null===(r=i.split(""))||void 0===r?void 0:r.pop())||"";f(d.map(function(n,r){return r===e?t?a.replace(/\D/g,""):a:n})),handleAutoFocus(e,o,a)},handlePaste:function(e){e.preventDefault(),f(e.clipboardData.getData("text").split("").slice(0,n))},setCurrentFocusIndex:s}},s=r(42744),c=r.n(s),u=r(71677),d=r(4179);r(51578);var f=r(46139),m=r(32462),Input_InputSuccessMessage=function(e){var n=e.successMessage;return n?(0,t.jsxs)("div",{className:"flex items-center gap-1 mt-1.5",children:[(0,t.jsx)(m.E.div,{initial:{opacity:0,scale:0},animate:{opacity:1,scale:1},children:(0,t.jsx)(f.JO,{icon:"fas fa-check-circle",size:"sm",color:"text-success-light"})}),(0,t.jsx)(d.default,{type:"tsm",color:"text-success-light",children:n})]}):null},p={sm:"w-10 px-1 py-0.5 text-h5  sm:w-16 sm:px-2 sm:py-1 sm:text-h4 ",md:"w-12 px-1 py-0.5 text-h4  sm:w-20 sm:px-2 sm:py-1 sm:text-h3 ",lg:"w-14 px-1 py-0.5 text-h3  sm:w-24 sm:px-2 sm:py-1 sm:text-h2 "},InputCode_InputCode=function(e){var n=e.digits,r=void 0===n?6:n,i=e.onChange,l=e.size,s=void 0===l?"sm":l,d=e.error,f=void 0===d?null:d,m=e.successMessage,h=void 0===m?null:m,g=e.className,x=(e.fluid,e.onlyNumbers),b=e.transparent,v=void 0!==b&&b,y=e.textColor,k=void 0===y?"gray-500":y,w=e.onSubmit,C=InputCode_useInputCode({digits:r,onChange:i,onlyNumbers:void 0===x||x}),j=C.code,P=C.currentFocusIndex,E=C.handleChange,_=C.handlePaste,F=C.setCurrentFocusIndex;return(0,t.jsxs)("div",{children:[(0,t.jsx)("form",{className:c()("flex gap-1 items-center mx-auto justify-between",g),children:(0,o.w6)(r).map(function(e){return(0,t.jsxs)(t.Fragment,{children:[6===r&&3===e&&(0,t.jsx)(a.J,{icon:"dash",size:"sm",className:"mx-1"}),(0,t.jsx)("input",{type:"number",onChange:E.bind(null,e),value:j[e],onPaste:_,onKeyDown:function(n){"Enter"===n.key&&(n.preventDefault(),j.every(function(e){return""!==e})&&w(j.join(""))),"Backspace"===n.key&&E(e,{target:{value:""}})},disabled:h,onFocus:function(){return F(e)},maxLength:2,ref:e===P?function(e){return null==e?void 0:e.focus()}:null,className:c()("input-field text-center justify-center focus:input-base-focused","border-2 rounded-lg",f&&"border-error-500",h&&"!border-success-500 focus:border-success-500",p[s],"aspect-square","font-medium","text-".concat(k),v?"bg-transparent":"")})]})})}),(0,t.jsx)(u.Z,{error:f,errorMessageRelative:!0}),(0,t.jsx)(Input_InputSuccessMessage,{successMessage:h})]})}},4903:function(e,n,r){"use strict";r.r(n);var t=r(26705);r(20955);var i=r(74275),o=r.n(i),a=r(42744),l=r.n(a),s=r(32462),Key=function(e){var n=e.children,r=e.className,i=e.animate,o=e.inverted,a=void 0!==o&&o;return(0,t.jsx)(s.E.span,{animate:i?{scale:[1,1.1,1]}:{},transition:{duration:3,repeatType:"mirror",repeat:1/0},className:l()("border-1 px-1.5 py-0.5 rounded mx-1 font-mono font-medium text-body6 inline-block justify-center items-center shadow-sm",a?"bg-gray-600 text-white border-gray-50":"bg-gray-25 border-gray-500 dark:border-gray-25",r),children:(0,t.jsx)("kbd",{children:n})})};Key.propTypes={children:o().string.isRequired},n.default=Key},71627:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return g}});var t=r(41369),i=r(43654),o=r(9),a=r(44313),l=r(26705),s=r(20955),c=r(28811),u=r.n(c),d=r(15730),f=r(3113),m="message-queue-container",getContainer=function(){var e=document.getElementById(m);if(e)return e;var n=document.createElement("div");return n.id=m,n.style.position="fixed",n.style.display="block",n.style.pointerEvents="none",n.style.top="0",n.style.right="0",n.style.width="100%",n.style.zIndex="9999",document.body.appendChild(n),n},p=r(2403),h=u()(function(){return Promise.all([r.e(2462),r.e(3631)]).then(r.bind(r,33631))},{loadableGenerated:{webpack:function(){return[33631]}},ssr:!1}),addMessage=function(){console.log("Message queue not initialized")},createMessage=function(e,n,r){return(0,t._)({id:1e10*Math.random(),timeout:n.timeout+r},n,e)};!function(e){if(!window.messageQueueContainerMounted){var n=getContainer();(0,d.createRoot)(n).render((0,l.jsx)(f.default,{hideOnError:!0,children:(0,l.jsx)(e,{})})),window.messageQueueContainerMounted=!0}}(function(){var e=(0,o._)((0,s.useState)([]),2),n=e[0],r=e[1],c={timeout:2e3,replace:!1};addMessage=function(e){if(!r)return null;r(function(n){var r=n[n.length-1];return r&&r.replace?(n[n.length-1]=createMessage((0,i._)((0,t._)({},n[n.length-1],e),{replace:e.replace||!1}),c,0),(0,a._)(n)):(0,a._)(n).concat([createMessage(e,c,100*n.length)])})};var removeMessage=function(e){r(function(n){return n.filter(function(n){return n.id!==e})})};return(0,l.jsx)("div",{className:"pt-4 sm:pt-6",children:(0,l.jsx)(p.M,{presenceAffectsLayout:!0,mode:"wait",children:n.map(function(e,n){return(0,l.jsx)(h,{index:n,message:e,onExit:function(){return removeMessage(e.id)}},e.id)})})})});var g={info:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return addMessage((0,t._)({content:e,type:"info"},n)),null},warning:function(e,n){return addMessage((0,t._)({content:e,type:"warning"},n)),null},error:function(e,n){return addMessage((0,t._)({content:e,type:"error"},n)),null},success:function(e,n){return addMessage((0,t._)({content:e,type:"success"},n)),null},loading:function(e,n){return addMessage((0,i._)((0,t._)({content:e,type:"loading"},n),{replace:!0})),null},trigger:function(e,n){return addMessage((0,t._)({content:e,type:"trigger"},n)),null},config:function(e){return null}}},94253:function(e,n,r){"use strict";r.r(n);var t=r(9),i=r(26705),o=r(20955),a=r(2403),l=r(32462),s=r(42744),c=r.n(s),Numbers=function(e){var n=e.value,r=getParseValue(n),s=(0,t._)(o.useState(r),2),u=s[0],d=s[1];return o.useEffect(function(){u!==r&&setTimeout(function(){return d(r)},200)},[n]),u.toString().split(""),(0,i.jsx)(a.M,{initial:!1,children:(0,i.jsxs)("span",{className:"relative",children:[(0,i.jsxs)("span",{className:"opacity-0",children:[u," "]}),(0,i.jsx)(l.E.span,{className:c()("absolute left-0"),transition:{duration:.2},initial:{scale:0,opacity:0},animate:{opacity:1,scale:1},exit:{scale:.5,opacity:0},children:u},u)]})})};Numbers.propTypes={};var getParseValue=function(e){try{return parseInt(e)}catch(n){return e}};n.default=Numbers},97355:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return ProgramLogo_ProgramLogo},sizeMap:function(){return p}});var t=r(9),i=r(26705),o=r(20955),a=r(42744),l=r.n(a),s=r(60891),c=r(46076);function _templateObject(){var e=(0,s._)(["\n  query getAllPrograms {\n    programCollection {\n      total\n      items {\n        sys {\n          id\n        }\n        name\n        nickname\n        id\n        logo {\n          title\n          url\n        }\n      }\n    }\n  }\n"]);return _templateObject=function(){return e},e}var u=(0,r(17068).ZP)(_templateObject()),program_useGetAllPrograms=function(){var e=[],n=(0,c.a)(u,{fetchPolicy:"cache-first",context:{api:"contentful"}}),r=n.loading,t=n.error,i=n.data;return t&&(console.log("Error in useGetAllPrograms",t),e=null),i&&i.programCollection&&i.programCollection.items.length>0&&(e=i.programCollection.items),[e,r]},d=r(16691),f=r.n(d),m=r(3755),p={xs:"w-6",sm:"w-8",md:"w-12 ",lg:"w-16 ",xl:"w-20 ","2xl":"w-24 ","3xl":"w-32 "},ProgramLogo_ProgramLogo=function(e){var n=e.programId,r=e.size,a=void 0===r?"md":r,s=e.fallback,c=(0,t._)(program_useGetAllPrograms(),2),u=c[0],d=c[1],h=o.useMemo(function(){return null==u?void 0:u.find(function(e){return e.id==n})},[u,n]);return d||!h||(null==h?void 0:h.logo)===null?void 0===s?null:s:(0,i.jsx)(f(),{width:m.Uf[a],height:m.Uf[a],className:l()(p[a]),src:h.logo.url,alt:h.name})}},3755:function(e,n,r){"use strict";r.d(n,{Uf:function(){return o},X_:function(){return t},dG:function(){return i}});var t={2:{id:"2",name:"Chalmers tekniska h\xf6gskola",nickname:"Chalmers",coursesCount:22,logo:"/school-logos/2.png"},4:{id:"4",name:"Stockholms universitet",nickname:"SU",coursesCount:7,logo:"/school-logos/4.png"},5:{id:"5",name:"Uppsala universitet",nickname:"UU",coursesCount:16,logo:"/school-logos/5.png"},6:{id:"6",name:"Lunds universitet",nickname:"LU",coursesCount:14,logo:"/school-logos/6.png"},7:{id:"7",name:"Link\xf6pings universitet",nickname:"LiU",coursesCount:49,logo:"/school-logos/7.png"},11:{id:"11",name:"Lule\xe5 tekniska universitet",nickname:"LTU",coursesCount:2,logo:"/school-logos/11.png"},18:{id:"18",name:"Gymnasium",nickname:"Harvard",coursesCount:7,logo:"/school-logos/18.png"},239:{id:"239",name:"J\xf6nk\xf6ping University",nickname:"HJ",coursesCount:1,logo:"/school-logos/239.png"},537:{id:"537",name:"Kungliga Tekniska h\xf6gskolan",nickname:"KTH",coursesCount:390,logo:"/school-logos/537.png"},10:{id:"10",name:"Handelsh\xf6gskolan i Stockholm",nickname:"HHS",coursesCount:2,logo:"/school-logos/10.svg"}},i={"2xs":"w-3 md:w-4",xs:"w-4 md:w-6",sm:"w-6 md:w-8",md:"w-10 md:w-12",lg:"w-14 md:w-16",xl:"w-18 md:w-20","2xl":"w-22 md:w-24","3xl":"w-30 md:w-32"},o={"2xs":20,xs:24,sm:32,md:44,lg:64,xl:80,"2xl":96,"3xl":128}},32491:function(e,n,r){"use strict";var t=r(31857);n.Z=t.default},46139:function(e,n,r){"use strict";r.d(n,{$0:function(){return j},$B:function(){return U},Ct:function(){return d},Ei:function(){return Z},I4:function(){return c},II:function(){return q},J2:function(){return G},JO:function(){return m},Kx:function(){return p},Mg:function(){return $},Mt:function(){return O},Od:function(){return b},Ph:function(){return E},Pz:function(){return J},TR:function(){return R},WU:function(){return y},XZ:function(){return f},ZD:function(){return F},ZF:function(){return S},ZT:function(){return l},aN:function(){return g},bK:function(){return H},bZ:function(){return B},cC:function(){return X},ex:function(){return P},gb:function(){return x},hE:function(){return u},hF:function(){return W},hl:function(){return M},iA:function(){return D},kH:function(){return L},ko:function(){return w},lr:function(){return N},mQ:function(){return v},p0:function(){return _},qE:function(){return a},rU:function(){return h},sr:function(){return k},tI:function(){return A},u:function(){return z},uI:function(){return I},u_:function(){return C},vN:function(){return K},wS:function(){return T},yw:function(){return o.default},zx:function(){return s}});var t=r(28811),i=r.n(t),o=r(71627),a=i()(function(){return Promise.all([r.e(12),r.e(4850),r.e(9822)]).then(r.bind(r,95853))},{loadableGenerated:{webpack:function(){return[95853]}}}),l=i()(function(){return Promise.resolve().then(r.bind(r,4179))},{loadableGenerated:{webpack:function(){return[4179]}}}),s=i()(function(){return Promise.all([r.e(6990),r.e(1866),r.e(2462),r.e(12),r.e(9599),r.e(6691),r.e(3879),r.e(1110),r.e(3637),r.e(5224),r.e(5166),r.e(2003),r.e(552),r.e(2944),r.e(6103),r.e(4850),r.e(829),r.e(4946),r.e(5650),r.e(9257),r.e(4921)]).then(r.bind(r,61282))},{loadableGenerated:{webpack:function(){return[61282]}}}),c=i()(function(){return Promise.all([r.e(6990),r.e(1866),r.e(2462),r.e(12),r.e(9599),r.e(6691),r.e(3879),r.e(1110),r.e(3637),r.e(5224),r.e(5166),r.e(2003),r.e(552),r.e(2944),r.e(6103),r.e(4850),r.e(829),r.e(4946),r.e(5650),r.e(9257),r.e(9650)]).then(r.bind(r,66541))},{loadableGenerated:{webpack:function(){return[66541]}}}),u=i()(function(){return r.e(4268).then(r.bind(r,94268))},{loadableGenerated:{webpack:function(){return[94268]}}}),d=i()(function(){return r.e(3907).then(r.bind(r,33907))},{loadableGenerated:{webpack:function(){return[33907]}}});i()(function(){return r.e(1949).then(r.bind(r,1949))},{loadableGenerated:{webpack:function(){return[1949]}}});var f=i()(function(){return Promise.all([r.e(1110),r.e(8750)]).then(r.bind(r,78750))},{loadableGenerated:{webpack:function(){return[78750]}}});i()(function(){return Promise.all([r.e(1110),r.e(3637),r.e(552),r.e(2944),r.e(941)]).then(r.bind(r,28223))},{loadableGenerated:{webpack:function(){return[28223]}}});var m=i()(function(){return Promise.resolve().then(r.bind(r,51476))},{loadableGenerated:{webpack:function(){return[51476]}}}),p=i()(function(){return r.e(3573).then(r.bind(r,53573))},{loadableGenerated:{webpack:function(){return[53573]}}}),h=i()(function(){return Promise.all([r.e(6990),r.e(1866),r.e(2462),r.e(12),r.e(9599),r.e(6691),r.e(3879),r.e(1110),r.e(3637),r.e(5224),r.e(5166),r.e(2003),r.e(552),r.e(2944),r.e(6103),r.e(4850),r.e(829),r.e(4946),r.e(5650),r.e(9257),r.e(4921)]).then(r.bind(r,77544))},{loadableGenerated:{webpack:function(){return[77544]}}}),g=i()(function(){return Promise.all([r.e(3879),r.e(869)]).then(r.bind(r,869))},{loadableGenerated:{webpack:function(){return[869]}}}),x=i()(function(){return Promise.all([r.e(3879),r.e(191)]).then(r.bind(r,20191))},{loadableGenerated:{webpack:function(){return[20191]}}});i()(function(){return r.e(132).then(r.bind(r,10132))},{loadableGenerated:{webpack:function(){return[10132]}}});var b=i()(function(){return r.e(4632).then(r.bind(r,24632))},{loadableGenerated:{webpack:function(){return[24632]}}}),v=i()(function(){return Promise.all([r.e(6990),r.e(1866),r.e(2462),r.e(12),r.e(9599),r.e(6691),r.e(3879),r.e(1110),r.e(3637),r.e(5224),r.e(5166),r.e(2003),r.e(552),r.e(2944),r.e(6103),r.e(4850),r.e(829),r.e(4946),r.e(5650),r.e(9257),r.e(4921)]).then(r.bind(r,2994))},{loadableGenerated:{webpack:function(){return[2994]}}}),y=i()(function(){return r.e(102).then(r.bind(r,40102))},{loadableGenerated:{webpack:function(){return[40102]}}}),k=i()(function(){return Promise.all([r.e(2462),r.e(4903)]).then(r.bind(r,4903))},{loadableGenerated:{webpack:function(){return[4903]}}}),w=i()(function(){return Promise.all([r.e(2462),r.e(1740)]).then(r.bind(r,21740))},{loadableGenerated:{webpack:function(){return[21740]}}}),C=i()(function(){return Promise.all([r.e(2462),r.e(7788)]).then(r.bind(r,17788))},{loadableGenerated:{webpack:function(){return[17788]}}}),j=i()(function(){return r.e(6345).then(r.bind(r,76345))},{loadableGenerated:{webpack:function(){return[76345]}}}),P=i()(function(){return r.e(5264).then(r.bind(r,35264))},{loadableGenerated:{webpack:function(){return[35264]}}});i()(function(){return Promise.all([r.e(6990),r.e(1866),r.e(2462),r.e(12),r.e(9599),r.e(6691),r.e(3879),r.e(1110),r.e(3637),r.e(5224),r.e(5166),r.e(2003),r.e(552),r.e(2944),r.e(6103),r.e(4850),r.e(829),r.e(4946),r.e(5650),r.e(9257),r.e(4921)]).then(r.bind(r,20286))},{loadableGenerated:{webpack:function(){return[20286]}}});var E=i()(function(){return Promise.all([r.e(6990),r.e(1866),r.e(2462),r.e(12),r.e(9599),r.e(6691),r.e(3879),r.e(1110),r.e(3637),r.e(5224),r.e(5166),r.e(2003),r.e(552),r.e(2944),r.e(6103),r.e(4850),r.e(829),r.e(4946),r.e(5650),r.e(9257),r.e(4921)]).then(r.bind(r,36518))},{loadableGenerated:{webpack:function(){return[36518]}}}),_=i()(function(){return Promise.all([r.e(2462),r.e(2440),r.e(3126)]).then(r.bind(r,53126))},{loadableGenerated:{webpack:function(){return[53126]}}}),F=i()(function(){return Promise.all([r.e(2462),r.e(5204)]).then(r.bind(r,65204))},{loadableGenerated:{webpack:function(){return[65204]}}}),I=i()(function(){return Promise.all([r.e(2462),r.e(4253)]).then(r.bind(r,94253))},{loadableGenerated:{webpack:function(){return[94253]}}}),N=i()(function(){return Promise.all([r.e(6990),r.e(1866),r.e(2462),r.e(12),r.e(9599),r.e(6691),r.e(3879),r.e(1110),r.e(3637),r.e(5224),r.e(5166),r.e(2003),r.e(552),r.e(2944),r.e(6103),r.e(4850),r.e(829),r.e(4946),r.e(5650),r.e(9257),r.e(8917)]).then(r.bind(r,4235))},{loadableGenerated:{webpack:function(){return[4235]}}}),T=i()(function(){return Promise.all([r.e(3879),r.e(8471)]).then(r.bind(r,78471))},{loadableGenerated:{webpack:function(){return[78471]}}});i()(function(){return Promise.all([r.e(6691),r.e(2708)]).then(r.bind(r,12708))},{loadableGenerated:{webpack:function(){return[12708]}}});var B=i()(function(){return r.e(6193).then(r.bind(r,6193))},{loadableGenerated:{webpack:function(){return[6193]}}}),S=i()(function(){return Promise.all([r.e(2462),r.e(156)]).then(r.bind(r,70156))},{loadableGenerated:{webpack:function(){return[70156]}}}),L=i()(function(){return r.e(8270).then(r.bind(r,48270))},{loadableGenerated:{webpack:function(){return[48270]}}}),M=i()(function(){return r.e(7097).then(r.bind(r,67097))},{loadableGenerated:{webpack:function(){return[67097]}}}),D=i()(function(){return r.e(5745).then(r.bind(r,25745))},{loadableGenerated:{webpack:function(){return[25745]}}}),A=i()(function(){return Promise.all([r.e(2462),r.e(2500)]).then(r.bind(r,62500))},{loadableGenerated:{webpack:function(){return[62500]}}}),z=i()(function(){return Promise.all([r.e(1110),r.e(3637),r.e(5224),r.e(7100)]).then(r.bind(r,87100))},{loadableGenerated:{webpack:function(){return[87100]}}}),G=i()(function(){return Promise.all([r.e(1110),r.e(3637),r.e(552),r.e(6103),r.e(594)]).then(r.bind(r,53431))},{loadableGenerated:{webpack:function(){return[53431]}}}),O=i()(function(){return Promise.all([r.e(6990),r.e(885)]).then(r.bind(r,30885))},{loadableGenerated:{webpack:function(){return[30885]}}}),Z=i()(function(){return Promise.all([r.e(6691),r.e(7153)]).then(r.bind(r,37153))},{loadableGenerated:{webpack:function(){return[37153]}}}),U=i()(function(){return Promise.all([r.e(2462),r.e(9416)]).then(r.bind(r,39416))},{loadableGenerated:{webpack:function(){return[39416]}}}),$=i()(function(){return r.e(5848).then(r.bind(r,35848))},{loadableGenerated:{webpack:function(){return[35848]}}}),R=i()(function(){return r.e(6798).then(r.bind(r,76798))},{loadableGenerated:{webpack:function(){return[76798]}}}),J=i()(function(){return Promise.all([r.e(6691),r.e(5245)]).then(r.bind(r,45245))},{loadableGenerated:{webpack:function(){return[45245]}}}),H=i()(function(){return Promise.all([r.e(12),r.e(6691),r.e(7355)]).then(r.bind(r,97355))},{loadableGenerated:{webpack:function(){return[97355]}}});i()(function(){return Promise.all([r.e(6691),r.e(2227)]).then(r.bind(r,72227))},{loadableGenerated:{webpack:function(){return[72227]}}});var q=i()(function(){return Promise.all([r.e(2462),r.e(4163)]).then(r.bind(r,54163))},{loadableGenerated:{webpack:function(){return[54163]}}}),W=i()(function(){return Promise.all([r.e(2462),r.e(9362)]).then(r.bind(r,59362))},{loadableGenerated:{webpack:function(){return[59362]}}}),K=i()(function(){return Promise.resolve().then(r.bind(r,31857))},{loadableGenerated:{webpack:function(){return[31857]}}}),X=i()(function(){return Promise.resolve().then(r.bind(r,31857))},{loadableGenerated:{webpack:function(){return[31857]}}})},96929:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return ExercisesProgress_ExercisesProgress}});var t=r(41369),i=r(75104),o=r(26705);r(20955);var a=r(94886),l=r(29737),s=r(4179),c=r(42744),u=r.n(c),d=r(51476),ExercisesProgressCompletionBadgeLoading=function(){return(0,o.jsx)("div",{className:u()("border-0  surface-primary-light w-6  rounded-full px-1 flex flex-col justify-center items-center","aspect-square","animate-pulse"),children:(0,o.jsx)(s.default,{weight:"black",type:"txs",color:"text-primary-600",className:u()("opacity-0"),children:"0%"})})},ExercisesProgress_ExercisesProgressCompletionBadge=function(e){var n=e.exercises,r=e.courseId,t=e.loading,i=e.hideWhenEmpty;if(t)return(0,o.jsx)(ExercisesProgressCompletionBadgeLoading,{});if(!r||!(null==n?void 0:n.length))return null;var a=Math.round((0,l.Cj)(n).length/n.length*100);return void 0!==i&&i&&0===a?null:(0,o.jsx)("div",{className:u()("border-0  surface-primary-light w-16  rounded-full px-1 flex flex-col justify-center items-center",100===a||0===a?"aspect-square  w-6":"w-16"),children:100===a?(0,o.jsx)(d.default,{icon:"fas fa-check-circle",size:"xs",color:"text-primary-600"}):(0,o.jsxs)(s.default,{weight:"b",type:"txs",color:"text-primary-600",className:u()(0===a?"opacity-0":"opacity-100"),children:[a,"%"]})})},f=r(52858),ExercisesProgress_ExercisesProgress=function(e){var n=e.exercises,r=e.courseId,l=e.showPercentage,s=void 0!==l&&l,c=(0,i._)(e,["exercises","courseId","showPercentage"]),d=(0,f.Z)({courseId:r,exercises:n}),m=d.loading,p=d.hidden,h=d.exercisesWithEvaluations;return!m&&p?null:(0,o.jsxs)("div",{className:"w-full grow flex gap-2 items-center",children:[(0,o.jsx)("div",{className:u()("grow ",s?"w-[90%]":"w-full"),children:(0,o.jsx)(a.default,(0,t._)({loading:m,exercises:h},c))}),s&&(0,o.jsx)("div",{className:"w-[10%]",children:(0,o.jsx)(ExercisesProgress_ExercisesProgressCompletionBadge,{exercises:h,courseId:r,loading:m,hideWhenEmpty:!0})})]})}},52858:function(e,n,r){"use strict";var t=r(9),i=r(20955),o=r(36557),a=r(28995);n.Z=function(e){var n=e.exercises,r=e.courseId,l=i.useContext(o.CourseContext),s=l?l.id:r,c=null==n?void 0:n.map(function(e){return e.id}),u=(0,t._)((0,a.Z)({courseId:s,ids:c,includeSelfEvaluation:!0,includeSource:!0}),2),d=u[0];return{loading:u[1],hidden:(null==c?void 0:c.length)===0||!s,exercisesWithEvaluations:d}}},74963:function(e,n,r){"use strict";r.d(n,{_:function(){return o}});var t=r(26705);r(20955);var i=r(31857),o=[{path:"",label:(0,t.jsx)(i.default,{type:"tmd",children:"Home"}),icon:"house",mobile:!0,eventLogTitle:"course_sidebar_home_clicked"},{path:"documents",label:(0,t.jsx)(i.default,{type:"tmd",children:"Resources"}),icon:"files",mobile:!0,eventLogTitle:"course_sidebar_resources_clicked"},{path:"topics",label:(0,t.jsx)(i.default,{type:"tmd",children:"Topics"}),icon:"chart-tree-map",mobile:!0,activePaths:["topic/:tagId"],eventLogTitle:"course_sidebar_topics_clicked"},{path:"stats",label:(0,t.jsx)(i.default,{type:"tmd",children:"My progress"}),icon:"chart-line",hideInNavigation:!0,mobile:!1},{path:"theory",label:(0,t.jsx)(i.default,{type:"tmd",children:"Theory"}),icon:"book-open-cover",mobile:!0,eventLogTitle:"course_sidebar_theory_clicked"},{path:"exercises",label:(0,t.jsx)(i.default,{type:"tmd",children:"Exercises"}),icon:"chevron-double-right",mobile:!0,hideInNavigation:!0,rootPath:"home",eventLogTitle:"course_sidebar_exercises_clicked"},{path:"topics/:tagId",label:(0,t.jsx)(i.default,{type:"tmd",children:"Tag"}),icon:"tag",mobile:!0,hideInNavigation:!0,rootPath:"topics"},{path:"topics/:tagId/chapter/:chapterType/:chapterId",label:(0,t.jsx)(i.default,{type:"tmd",children:"Tag"}),icon:"tag",mobile:!0,hideInNavigation:!0,rootPath:"topics"},{path:"study-plans",label:(0,t.jsx)(i.default,{type:"tmd",children:"Study plans"}),icon:"rocket-launch",mobile:!0,hideInNavigation:!0,eventLogTitle:"course_sidebar_study_plans_clicked"},{path:"test-generator",label:(0,t.jsx)(i.default,{type:"tmd",children:"Generate exam"}),icon:"dice",mobile:!0,eventLogTitle:"course_sidebar_generate_exam_clicked"},{path:"exams",label:(0,t.jsx)(i.default,{type:"tmd",children:"Past exams"}),icon:"box-archive",mobile:!1,activePaths:["exams/marking","exam/:examId","exam-exercises/:examId"],eventLogTitle:"course_sidebar_past_exams_clicked"},{path:"exam/:examId",label:(0,t.jsx)(i.default,{type:"tmd",children:"Exam"}),icon:"box-archive",mobile:!1,hideInNavigation:!0,rootPath:"exams"},{path:"exam-exercises/:examId",label:(0,t.jsx)(i.default,{type:"tmd",children:"Exam exercises"}),icon:"box-archive",mobile:!1,hideInNavigation:!0,rootPath:"exams"},{path:"upload",label:(0,t.jsx)(i.default,{type:"tmd",children:"Upload"}),icon:"upload",mobile:!1,hideInNavigation:!0,rootPath:"exams"},{path:"exams/marking",label:(0,t.jsx)(i.default,{type:"tmd",children:"Exam marking"}),icon:"box-archive",mobile:!1,hideInNavigation:!0,rootPath:"exams"},{path:"forum",label:(0,t.jsx)(i.default,{type:"tmd",children:"Forum"}),icon:"comments",mobile:!0,eventLogTitle:"course_sidebar_forum_clicked"},{path:"bookmarks",label:(0,t.jsx)(i.default,{type:"tmd",children:"Bookmarks"}),icon:"bookmark",mobile:!1,eventLogTitle:"course_sidebar_bookmarks_clicked"},{path:"kai",label:(0,t.jsx)(i.default,{type:"tmd",children:"KAI"}),icon:"sparkles",badge:"Nytt",mobile:!1,eventLogTitle:"course_sidebar_kai_clicked"},{path:"study-plans/:studyPlanId",label:(0,t.jsx)(i.default,{type:"tmd",children:"Study plan"}),mobile:!1,hideInNavigation:!0,rootPath:"study-plans"},{path:"chapter/:chapterType/:chapterId",label:(0,t.jsx)(i.default,{type:"tmd",children:"Chapter"}),mobile:!0,hideInNavigation:!0,rootPath:"topics"},{path:"sandbox",label:(0,t.jsx)(i.default,{type:"tmd",children:"Sandbox"}),admin:!0,hideInNavigation:!0},{path:"kollin-gpt",icon:"robot",label:(0,t.jsx)(i.default,{type:"tmd",children:"Kollin-GPT"}),hideInNavigation:!0,mobile:!1,hideUserMenu:!0},{path:"module/:moduleId",label:(0,t.jsx)(i.default,{children:"Module"}),hideInNavigation:!0,rootPath:"topics"},{path:"exercises",label:(0,t.jsx)(i.default,{children:"Exercises"}),hideInNavigation:!0,rootPath:""},{path:"exams/:examId/exercises",hideInNavigation:!0,rootPath:"exams"}]},10576:function(e,n,r){"use strict";r.d(n,{z:function(){return s}});var t=r(9),i=r(20955),o=r(23007),a=r(24613),l=r(24033),s=[{path:/study-plans\/(\d+|new)/,backLink:"/study-plans",showHeader:!0}];n.Z=function(e){var n=e.routes;e.deviceType,"undefined"==typeof document||document.body.clientWidth;var r=(0,o.wD)()(!0,!1);(0,l.usePathname)();var c=(0,o.XC)(n),u=c.currentPath,d=c.currentRoute,f=s.find(function(e){return e.path.test(u)}),m=(0,t._)((0,a.Z)("COURSE_SIDEBAR_COLLAPSED",r?1:0),2),p=m[0],h=m[1];return i.useEffect(function(){!0===r&&h(1)},[r]),{currentPath:u,currentPathHideSidebar:void 0!==f,fullPagePath:f,collapsed:p,toggleCollapsed:function(){return h(function(e){return 0===e?1:0})},currentRoute:d}}},21306:function(e,n,r){"use strict";r.d(n,{f:function(){return getCleanCourseName}});var getCleanCourseName=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var r=e.split(" - ");if(1===r.length)return r[0];var t=r[1].split(",")[0].split("(")[0];if(n)return r[0]+" - "+t;return t}catch(n){return e}}},65660:function(e){"use strict";e.exports={white:"#ffffff",gray:{25:"#FCFCFD",50:"#F9FAFB",100:"#F2F4F7",200:"#EAECF0",300:"#D0D5DD",400:"#98A2B3",500:"#667085",600:"#475467",700:"#344054",800:"#1D2939",900:"#101828"},purple:{25:"#FAFAFF",50:"#f5f4fe",100:"#edeafd",200:"#ddd9fb",300:"#c3baf8",400:"#a693f2",500:"#8867eb",600:"#7647e0",700:"#6432c8",800:"#562cab",900:"#48268c",950:"#2c165f"},orange:{25:"#FFF9F3",50:"#fff3ed",100:"#ffe4d4",200:"#ffc5a8",300:"#ff9d71",400:"#ff6432",500:"#fe4111",600:"#ef2707",700:"#c61808",800:"#9d160f",900:"#7e1510",950:"#440606"},pink:{25:"#FFF8F9",50:"#fcf3f6",100:"#f9e7ed",150:"#f7dbe3",200:"#f4cfda",250:"#f1c3d1",300:"#eeb6c8",350:"#ebaabf",400:"#e99eb5",450:"#e692ac",500:"#e386a3",550:"#cc7993",600:"#e386a3",650:"#cc7993",700:"#b66b82",750:"#9f5e72",800:"#885062",850:"#724352",900:"#5b3641"},blue:{25:"#F1F3FC",50:"#E2E8F9",100:"#C5D1F3",200:"#A8B9EE",300:"#A8B9EE",400:"#8BA2E8",500:"#6E8BE2",600:"#566cd5",700:"#4759bb",750:"#3C4AA3",800:"#3c4c97",850:"#2E3E7E",900:"#3c4c97",950:"#202746"},jaffa:{50:"#fff5ed",100:"#fee9d6",200:"#fcceac",300:"#faac77",400:"#f8894f",500:"#f55d1a",600:"#e64210",700:"#bf2f0f",800:"#972715",900:"#7a2314",950:"#420f08"},teal:{25:"#F6FEFC",50:"#F0FDF9",100:"#CCFBEF",200:"#99F6E0",300:"#5FE9D0",400:"#2ED3B7",500:"#15B79E",600:"#0E9384",700:"#107569",800:"#125D56",900:"#134E48"},bermuda:{25:"#F3FDFE",50:"#effaf5",100:"#d8f3e5",200:"#b5e5ce",300:"#8fd5b8",400:"#51b68f",500:"#2f9a75",600:"#1f7c5d",700:"#19634d",800:"#164f3e",900:"#134134",950:"#0a241e"},indigo:{25:"#F5F8FF",50:"#EEF4FF",100:"#E0EAFF",200:"#C7D7FE",300:"#A4BCFD",400:"#8098F9",500:"#6172F3",600:"#444CE7",700:"#3538CD",800:"#2D31A6",900:"#2D3282"},violet:{25:"#FBFAFF",50:"#F5F3FF",100:"#ECE9FE",200:"#DDD6FE",300:"#C3B5FD",400:"#A48AFB",500:"#875BF7",600:"#7839EE",700:"#6927DA",800:"#5720B7",900:"#491C96"},moss:{25:"#FAFDF7",50:"#F5FBEE",100:"#E6F4D7",200:"#CEEAB0",300:"#ACDC79",400:"#86CB3C",500:"#669F2A",600:"#4F7A21",700:"#3F621A",800:"#335015",900:"#2B4212"},error:{25:"#FFFBFA",50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A"},warning:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E"},success:{25:"#F6FEF9",50:"#ECFDF3",100:"#D1FADF",200:"#A6F4C5",300:"#6CE9A6",400:"#32D583",500:"#12B76A",600:"#039855",700:"#027A48",800:"#05603A",900:"#054F31"},facebook:{DEFAULT:"#1877F2"}}},8136:function(e,n,r){"use strict";r.d(n,{r:function(){return wrap}});let wrap=(e,n,r)=>{let t=n-e;return((r-e)%t+t)%t+e}}},function(e){e.O(0,[6990,1866,2462,12,2796,9599,8785,6691,3879,1110,3637,5224,5166,2003,552,2944,6103,4850,829,2440,1857,4946,5650,9257,4121,9119,5584,1744],function(){return e(e.s=15610)}),_N_E=e.O()}]);