mario-core 2.0.0-release → 2.0.1-release
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -7
- package/dist/index.modern.js +119 -119
- package/package.json +1 -1
- package/dist/containers/User/components/DeleteBulkModel copy.d.ts +0 -4
- package/dist/index.css +0 -1240
- package/dist/index.js.map +0 -1
- package/dist/index.modern.js.map +0 -1
- package/dist/index.test.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
`,bUt="压力",$Ut="一对一",kUt="课堂反思",xUt="讨论会",CUt="学习进度",IUt="现在无法导出。请重试。",SUt="查看数据",AUt="学习策略",EUt="策略",TUt="使用次数",jUt="下一步",NUt="我的讨论会",PUt="选择一名学生并启动新讨论会或预约讨论会以备日后使用。",qUt="您没有学生",RUt="这是必填字段",LUt="请选择问题类别",MUt="预订讨论会",DUt="最终得分",BUt="新讨论会",OUt="搜索学生",GUt="搜索员工",zUt="会议安排",FUt="课程安排",HUt="更多问题",VUt="讨论会评分标准",WUt="解锁",UUt="单击提交前",YUt="您的会话为",XUt="分钟",ZUt="分钟",JUt="提交",QUt="您还有几个问题尚未回答。您确定要完成吗?",KUt="请务必与您的老师确认您已完成所有要求",e7t="老师选择",t7t="学生选择",_7t="协议",s7t="个人学习计划",n7t="个人兴趣",o7t="允许学生编辑",a7t="优势和挑战",i7t="显著优势",r7t="优势",c7t="挑战",l7t="显著挑战",d7t="我的老师如何帮助我学习",u7t="关于我的学习",h7t="便利设施",m7t="目标",g7t="此目标显示在学生的讨论会评分标准中。您确定要删除吗?",p7t="活动圈",y7t="朋友圈",f7t="您准备好学习了吗?",w7t="课程表",v7t="添加课程表",b7t="上课日期",$7t="课程名称",k7t="日期/时段",x7t="教师电子邮件",C7t="教师电子邮件",I7t="笔记类型和课程",S7t="我的笔记",A7t="添加新笔记",E7t="所有类别",T7t="个性化",j7t="仅显示收藏",N7t="搜索",P7t="笔记标题",q7t="学生",R7t="笔记详情",L7t="标记为收藏",M7t="输入笔记",D7t="请选择学生",B7t="设置",O7t="保存更改",G7t="活动通知",z7t="计划通知",F7t="预定通知",H7t="是",V7t="否",W7t="电子邮件通知",U7t="向我发送电子邮件通知",Y7t="不向我发送电子邮件通知",X7t="类型",Z7t="教师请求",J7t="学生请求",Q7t="概述",K7t="PLP",eYt="我的学生一对一",tYt="我的学生签到",_Yt="我的学生讨论会",sYt="接收日期",nYt="班级影响分数",oYt="影响分数",aYt="IEP",iYt="创建者",rYt="上次修改",cYt="修改",lYt="学生反思",dYt="外部反思",uYt="外部班级反思",hYt="反思",mYt="班级反思",gYt="添加反思",pYt="添加班级反思",yYt="班级类型",fYt="教师图像",wYt="发送给教师",vYt="立即发送",bYt="错过",$Yt="待处理",kYt="发送日期",xYt="转到学生的 PLP",CYt="新 IEP",IYt="编辑 IEP",SYt="IEP 类型",AYt="资格来源(初始)",EYt="年度目标",TYt="输入日期范围",jYt="添加目标",NYt="添加目标",PYt="日/月/年",qYt="特殊教育",RYt="IEP 必须包含向儿童或代表儿童提供的特殊教育和相关服务以及补充援助和服务的声明。本节重点介绍第一个要素:将为儿童提供的特殊教育的说明。",LYt="目标和报告进度",MYt="每个儿童的 IEP 还必须描述如何衡量实现年度目标的进展情况以及何时向家长报告。",DYt="确定儿童需求后,IEP 团队就会努力制定适当的目标来满足这些需求。年度目标描述了儿童在 12 个月内应该做或学什么。",BYt="相关服务",OYt="为了帮助残障儿童从特殊教育中受益,他或她可能还需要在某个方面获得额外帮助,例如说话或移动。这种额外的帮助称为相关服务。在此处了解这些关键服务的所有信息。",GYt="补充援助和服务",zYt="补充援助和服务旨在改善儿童在学术、课外和非学术活动和环境中的学习机会和参与度。IEP 团队必须确定儿童需要哪些补充援助和服务,并在 IEP 中具体说明。",FYt="针对学校人员的计划修改",HYt="IEP 还包含确定将为学校人员提供的计划修改或支持",VYt="不参与程度",WYt="IEP 还必须说明儿童在何种程度上不会与非残疾儿童一起参加正常班级以及其他学校环境和活动(如果有)。",UYt="评估便利",YYt="IDEA 要求残疾学生参加州或全区评估。IEP 团队必须决定学生是否需要测试便利或完全其他类型的评估。在 IEP 的这一部分,团队记录了学生将如何参与。",XYt="服务交付",ZYt="儿童何时开始接受服务?在哪里?多久一次?“会话”持续多长时间?这些细节虽然烦人,但必须纳入 IEP!",JYt="过渡计划",QYt="不晚于学生 16 岁生日(如适用,可以更早)),IEP 必须包含与过渡相关的计划,以帮助学生为中学毕业后的生活做好准备。",KYt="当前水平",eXt="儿童目前在学校的表现如何?残疾如何影响他在课堂上的表现?此类信息包含在 IEP 中的“当前水平”声明中。",tXt="签名",_Xt="IEP 旧版本和诊断文档",sXt="上传文件",nXt="添加兴趣",oXt="上传图片",aXt="支持的图片类型:PNG、JPEG、WEBPbbb",iXt="编辑兴趣",rXt="选择个人兴趣或在此处输入个人兴趣",cXt="添加注释",lXt="选择最佳匹配",dXt="最佳匹配",uXt="选择策略",hXt="选定的学习策略",mXt="是否要删除此优势和挑战",gXt="添加新项目",pXt="编辑项目",yXt="选择教学策略",fXt="选定的教学策略",wXt="添加标题",vXt="我的学习",bXt="是否要删除关于我的学习的信息",$Xt="编辑我的学习",kXt="添加我的学习",xXt="选择关于学习或在此处输入关于学习的信息",CXt="便利设施",IXt="所有类别",SXt="您想删除此便利设施吗",AXt="编辑便利设施",EXt="添加便利设施",TXt="全部",jXt="所有状态",NXt="目标类型",PXt="添加新目标",qXt="目标详细信息",RXt="选择状态",LXt="目标基线",MXt="目标",DXt="目标详情",BXt="目标类型",OXt="编辑目标详情",GXt="已上传文件",zXt="可选",FXt="编辑基线",HXt="编辑好友",VXt="添加好友",WXt="搜索好友",UXt="好友类型",YXt="编辑行动",XXt="添加行动",ZXt="搜索行动",JXt="行动",QXt="活动类型",KXt="选择或键入行动",eZt="需要采取行动",tZt="外部",_Zt="学生调查",sZt="查看调查",nZt="创建调查",oZt="调查来自",aZt="复习",iZt="发布调查",rZt="总调查",cZt="标记",lZt="预定会话",dZt="完成的总调查",uZt="未完成的总调查",hZt="列出调查",mZt="调查",gZt="调查",pZt="创建调查",yZt="我的调查",fZt="辅导员姓名",wZt="调查标题",vZt="截止日期",bZt="剩余天数",$Zt="回复日期",kZt="会话",xZt="标记",CZt="外部电子邮件",IZt="现在安排",SZt="会话安排",AZt="已安排会话",EZt="搜索调查",TZt="总调查",jZt="调查结果",NZt="签到时间",PZt="今天接收于",qZt="预览调查",RZt="完成调查",LZt="您想与教师分享调查吗?",MZt=`您可以与教师分享此调查,以进一步了解您的学生。\r
|
|
3
3
|
`,DZt="跳过",BZt="调查问题",OZt="添加调查问题",GZt="附加问题",zZt="添加附加问题",FZt="保存收藏夹",HZt="保存为收藏夹",VZt="收藏调查",WZt="滑块",UZt="问题",YZt="插入所有问题",XZt="删除所有问题",ZZt="插入问题",JZt="调查模板",QZt="插入模板",KZt="与教师共享调查",eJt="建议教师",tJt="电子邮件内容",_Jt="发送调查",sJt="查看调查详情",nJt="学生人数",oJt="日期和时间",aJt="量表",iJt="答案",rJt="添加问题",cJt="保存问题",lJt="外部调查",dJt="IB 学习者资料",uJt="设置截止日期",hJt="重复调查",mJt="共享调查",gJt="新调查",pJt="分配辅导员",yJt="选择辅导员",fJt="选择支持教师",wJt="分配支持教师",vJt="切换支持教师",bJt="支持教师姓名",$Jt="问题用户",kJt="请求反思",xJt="请求班级反思",CJt="与教师共享调查",IJt="选择自",SJt="切换辅导员",AJt="删除辅导员",EJt="当前辅导员电子邮件",TJt="当前辅导员姓名",jJt="选择辅导员变更",NJt="当前支持教师姓名",PJt="当前支持教师电子邮件",qJt="删除支持教师",RJt="选择支持教师变更",LJt="过滤器日历",MJt="平均学生安全",DJt="活跃",BJt="使用最多的 5 大策略",OJt="准备",GJt="平均学生压力",zJt="成功指标",FJt="学习过程",HJt="调查仪表板",VJt="回应率",WJt="使用最多的 5 项调查",UJt="问题干预",YJt="学生压力",XJt="整体学习准备",ZJt="查看日历",JJt="学生健康",QJt="查看数据仪表板",KJt="查看学生",eQt="查看学生",tQt="平均安全",_Qt="平均压力",sQt="平均精力",nQt="平均专注力",oQt="平均幸福感",aQt="与上个月相比",iQt="的学生感觉不安全。",rQt="学生将自己标记为不安全。",cQt="将自己标记为不安全。",lQt="are not feeling safe.",dQt="的学生压力很大。",uQt="标记为压力很大。",hQt="are feeling highly stressed.",mQt="选择一名学生并查看其个人资料和学习计划",gQt="选择一名学生并开始根据签到结果进行对话",pQt="开始",yQt="教师反思",fQt="笔记",wQt="学生反思",vQt="查看最新签到",bQt="本周",$Qt="缺少每周签到",kQt="添加新学生",xQt="开始签到",CQt="今天没有活动",IQt="今天的日程安排",SQt="压力很大",AQt="不安全",EQt="平均",TQt="查看他们",jQt="目标",NQt="24 小时前结束",PQt="开始一对一对话",qQt="查看结果",RQt="请求签到",LQt="最后",MQt="最新签到",DQt="缺少每周签到的学生",BQt="此学生没有缺少签到",OQt="没有缺少每周签到的学生",GQt="开始一对一对话",zQt="选择老师并开始签到",FQt="本周的签到",HQt="本周的一对一",VQt="此学生本周没有一对一",WQt="此学生本周没有签到",UQt="没有最后或请求的签到",YQt="压力很大的学生",XQt="感觉不安全的学生",ZQt="缺少每周签到的学生",JQt="按区域划分的学生压力",QQt="学生分布",KQt="调查的标志",eKt="黄色标志",tKt="绿色标志",_Kt="红色标志",sKt="显示方式",nKt="调查概述",oKt="分享笔记",aKt="调查摘要",iKt="调查名称",rKt="创建日期",cKt="截止时间",lKt="创建者",dKt="回复分布",uKt="问题评分",hKt="显示结果",mKt=`每个问题的答复和答复率\r
|
|
4
4
|
`,gKt="查看学生列表",pKt="查看回复列表",yKt="回复数",fKt="未回复数",wKt="问题评分",vKt="尚无回复",bKt="表格中突出显示了外部调查",$Kt="重置密码",kKt="正确",xKt="不正确",CKt="正确答案是",IKt="正确答案是",SKt="需要采取行动",AKt="查看答案",EKt="调查结果",TKt="周",jKt="月",NKt="预定会话",PKt="活动调查",qKt="查看回复",RKt="下载 .CSV",LKt="创建新调查",MKt="转到个人调查回复",DKt="您一次只能选择 {{number}} 个 KPI",BKt="您一次只能选择 {{number}} 个 KPI。若要选择新 KPI,请关闭之前的 KPI。",OKt="上次签到",GKt="选择了多少次策略",zKt="这些指标来自学生签到。过滤以上内容以更改数据集",FKt="尚未开始",HKt="进行中",VKt="将签到导出到 CSV",WKt="这些指标来自会议评分标准。仅对教师的回答进行评分",UKt="请先保存",YKt="打印日期",XKt="目标基线",ZKt="打印",JKt="下载",QKt="我的日常动机",KKt="选择截止日期",ee_="图像是必需的",te_="旧 IEP",_e_="创建明年的 IEP",se_="写些东西(可选)",ne_="根据学生的反馈,学习策略的有效性",oe_="感知有用性",ae_="表现",ie_="挑战不够,导致无聊和缺乏兴趣。",re_="平静而放松,但没有足够的动力来发挥我的最佳水平。",ce_="可控的压力水平让我能够发挥出最佳水平。",le_="仍在控制之中,但开始感到压力。",de_="压力过大,真的很难管理我的工作量。",ue_="通过 csv 导入电子邮件",he_="请求编号",me_="选择或输入班级类型",ge_="发送请求",pe_="开始反思",ye_="自定义反思",fe_="包括您想要显示的部分",we_="一天中的时间",ve_="IEP 模板",be_="OneRoster",$e_="沙盒",ke_="信息名册(来源 ID/全名/电子邮件)",xe_="同步名册用户",Ce_="导出到 CSV",Ie_="用户列表",Se_="分配学生",Ae_="一对一问题",Ee_="班级反思问题",Te_="会议问题",je_="行动",Ne_="顺序",Pe_="用户",qe_="问题类别",Re_="模板调查",Le_="类别总数",Me_="创建模板",De_="问题数量",Be_="必填",Oe_="幸福感",Ge_="自我效能",ze_="没有要显示的问题",Fe_="隐私政策",He_="个人资料",Ve_="角色更改",We_="注销",Ue_="数据仪表板",Ye_="深度学习工具",Xe_="我的个人资料",Ze_="电话",Je_="日历 ID",Qe_="旧密码",Ke_="确认新密码",et_="选择一名学生并开始签到",tt_="世事皆可能。一切皆有可能。",_t_="编辑图片",st_="创建新学生",nt_="年级",ot_="健康说明",at_="学生家长信息",it_="家长 1",rt_="家长 2",ct_="应用内通知",lt_="打开所有通知",dt_="当...时通知我",ut_="学生安排 1-1",ht_="学生安排讨论会",mt_="学生完成会议自我评估标准",gt_="学生或教师完成课堂反思",pt_="根据所选时间表到期行动点",yt_="学生在过去 28 天内未记录 1-1。",ft_="电子邮件通知",wt_="打开所有电子邮件",vt_="学生对 1-1 学习准备度的回复为“否”",bt_="学生在签到时报告安全分数低",$t_="继续担任",kt_="管理员",xt_="辅导员",Ct_="支持老师",It_="老师/助理",St_="添加家长 1 信息",At_="添加家长 2 信息",Et_="家长角色",Tt_="所有活动",jt_="学年",Nt_="所有学生报告压力水平可控",Pt_="所有学生都报告了可控的安全水平",qt_="成长",Rt_="关系",Lt_="效率",Mt_="学术",Dt_="百分比",Bt_="无动力",Ot_="舒适",Gt_="伸展",zt_="紧张",Ft_="不知所措",Ht_="编辑学生资料",Vt_="老师",Wt_="创建",Ut_="学生电话号码",Yt_="名称",Xt_="电子邮件",Zt_="普通教育教师",Jt_="选择普通教育教师",Qt_="请选择老师",Kt_="分配",e__="要傻乎乎的,要诚实的,要善良的。",t__="您是否要更改为辅导员角色以打开?",___="搜索助手",s__="基线",n__="时间范围",o__="朋友",a__="最好的朋友",i__="支持",r__="潜在朋友",c__="喜欢",l__="爱",d__="感兴趣",u__="好奇",h__="学习习惯、成绩、运动、俱乐部或个人项目的改善",m__="家人、朋友和老师",g__="完成重要任务并减少干扰",p__="家庭作业、学习和成绩",y__="我成功的能力",f__="您在想什么?",w__="现在复习一下您今天的回答",v__="您想切换到学生角色并打开吗?",b__="学生已经开始了一对一。您确定要删除吗?",$__="您想切换到支持老师角色来打开吗?",k__="学生尚未开始此讨论会。您确定要删除吗?",x__="搜索支持老师",C__="搜索辅导员",I__="我今天在课堂上有多高效?",S__="压力不够",A__="压力过大",E__="组织",T__="自我意识",j__="自我导向学习",N__="自我倡导",P__="自我管理",q__="概念变化对话",R__="具体示例",L__="详细说明",M__="双重编码",D__="注释类型和类别",B__="编辑注释",O__="未完成",G__="红色",z__="黄色",F__="绿色",H__="uwcsea-sg 气候调查",V__="与成人和同龄人的联系",W__="整体学习体验",U__="我的健康和幸福",Y__="开放式问题",X__="您需要一些额外的帮助或支持吗?",Z__="sdq(标准和困难问卷)",J__="sdq(优势和困难问卷)补充",Q__="关闭",K__="学生回答",es_="匿名回答",ts_="教师感知",_s_="为上课做好准备",ss_="缺少课堂作业",ns_="完成课堂作业",os_="需要时寻求帮助",as_="清除",is_="缺少反思",rs_="缺少/迟交作业的学生总数",cs_="科目班级",ls_="图表类型",ds_="请求来自",us_="您确定要删除此项目吗?",hs_="是,删除",ms_="已完成讨论会",gs_="我的学习计划",ps_="我的学习计划(测试版)",ys_="获胜并不总是意味着成为第一。获胜意味着您比以前做得更好。",fs_="将学习与先前的知识相结合",ws_="提高学生的自我效能",vs_="我的签到",bs_="您想做些什么不同的事情?",$s_="待办事项",ks_="我的课堂反思",xs_="发送反思",Cs_="输入 2 个字符进行搜索",Is_="创建时间",Ss_="您想删除此用户吗?",As_="警告",Es_="您想冒充此用户吗?",Ts_="助理",js_="家长",Ns_="选择文件",Ps_="您想删除这个问题吗?",qs_="选择",Rs_="您想删除此类别吗?",Ls_="模板总数",Ms_="模板名称",Ds_="类别名称",Bs_="创建日期",Os_="是否要删除此电子邮件模板?",Gs_="创建电子邮件模板",zs_="邮件主题",Fs_="邮件主题",Hs_="邮件正文",Vs_="邮件参数",Ws_="参数",Us_="含义",Ys_="添加附件",Xs_="技能",Zs_="主题",Js_="学习支持类别",Qs_="目标示例",Ks_="学生徽章",en_="空白天数",tn_="CSV 导入",_n_="分数段",sn_="许可证",nn_="切换教师",on_="问题支架",an_="培训",in_="输入内容并按 Enter 键添加短期目标示例",rn_="导入用户",cn_="导入课堂反思",ln_="下载用户数据",dn_="是否要删除此助理?",un_="是否要删除此辅导员?",hn_="是否要删除此支持教师?",mn_="发送",gn_="是否要删除此职位?",pn_="新文件夹",yn_="上传",fn_="输入要按文件名搜索的内容",wn_="系统",vn_="创建模板系统",bn_="创建时间",$n_="是否要删除此模板?",kn_="OneRoster 设置",xn_="巧妙的设置",Cn_="用户",In_="OneRoster 配置",Sn_="端点 URL",An_="客户端 ID",En_="客户端密钥",Tn_="导入 OneRoster",jn_="从 Zip 文件导入",Nn_="从 Restful api 导入",Pn_="不存在的用户",qn_="输入内容以搜索用户",Rn_="为选定用户创建帐户",Ln_="帮助",Mn_="沙盒模式",Dn_="关闭",Bn_="恢复沙盒数据库",On_="打开",Gn_="关闭",zn_="恢复",Fn_="编辑个人资料",Hn_="按计划进行,进展顺利",Vn_="指南",Wn_="让每一天都成为您的杰作。",Un_="始终如一",Yn_="经常",Xn_="有时",Zn_="很少",Jn_="不适用",Qn_="一旦分配了作业和学习任务,我就会通过谷歌日历或计划器或组织器安排。",Kn_="我保持一个干净、有序的系统来保存和复习每节课的实物笔记、讲义和资料包。",eo_="我保持一个干净、有序的系统来存储数字文件,以便我可以轻松找到所有文件。",to_="我保持学校收件箱井然有序,不会错过任何重要的电子邮件。",_o_="我清楚地了解自己的优势。",so_="我知道并了解老师如何在课堂上更好地帮助我。",no_="我知道并了解我的便利设施。",oo_="我知道并了解我在课堂外实现理想学习的个性化系统和策略。",ao_="我知道并了解我在课堂内实现理想学习的个性化系统和策略。",io_="我清楚地了解自己面临的挑战。",ro_="我清楚自己在课堂上的表现,并且知道该怎么做才能进步。",co_="我有效地利用了课堂的前 25 分钟来实现我的目标。",lo_="我有效地利用了家庭作业/学习时间。",do_="正在实现",uo_="重大进步",ho_="中等进步",mo_="轻微进步",go_="无进步",po_="应对压力情况",yo_="改善睡眠习惯",fo_="我会及时处理和应对困难情况,而不是逃避。",wo_="我会适当地使用技术。",vo_="我在会议期间或会议后做笔记",bo_="我有效地为即将到来的评估做准备。",$o_="我按时完成并交所有作业。",ko_="我每晚睡眠时间充足。",xo_="我在课外与老师见面。",Co_="我在课内和/或课后提问。",Io_="当需要时,我会让我的老师知道如何在课堂上更好地帮助我。",So_="我在所有课程中提倡并使用我所需要的便利设施。",Ao_="规划",Eo_="与以前的学习建立联系",To_="提供高质量的反馈",jo_="努力实现学习目标",No_="设定或强化高期望",Po_="提高努力程度",qo_="自我评估",Ro_="预测",Lo_="寻求帮助的行为",Mo_="反思",Do_="低",Bo_="高",Oo_="您从这次讨论会中学到了多少?",Go_="您有什么想要分享的观察或反馈吗?",zo_="您目前做得好并且想继续做的是什么?",Fo_="在努力实现目标的过程中,您学到了什么?",Ho_="英语语言或文学",Vo_="语言课",Wo_="山脊图",Uo_="条形图",Yo_="折线图",Xo_="一天的开始",Zo_="上午中段",Jo_="午餐前",Qo_="下午中段",Ko_="当天最后一节课",ea_="仅限学生",ta_="仅限教师",_a_="学生是否已拥有这门课程所需的所有材料?",sa_="学生是否有遗漏任何作业?",na_="学生是否完成了今天的课堂作业?",oa_="学生是否会在需要时寻求帮助?",aa_="请对学生的课堂参与度给予评分",ia_="请对学生的课堂表现给予评分",ra_="这些便利设施有多大用处?",ca_="您是否有任何可以分享的顾虑或学生成功经验?",la_="完全没有",da_="非常有帮助",ua_="未发送",ha_="幸福就是在精神上(在头脑中)和身体上(在身体中)感觉良好。您有习惯和惯例来帮助您照顾自己吗?有些人通过健康饮食、积极活动、花时间与朋友和家人在一起、做自己喜欢的事情或帮助他人来增进幸福感。",ma_="成长就是成为最好的自己。这需要通过学习、尝试新事物、努力工作和承担风险来实现。您对自己在实现目标和生活其他方面取得的进展感到满意吗?",ga_="关系是与他人的联系。良好的关系有信任、尊重、诚实和安全。您和家人、朋友和老师相处得怎么样?您有给您带来幸福的关系和可以交谈的人吗?",pa_="效率是指以更聪明的方式而不是更困难的方式完成任务。这意味着您知道需要做什么以及如何去做。今天做工作时,您能帮助自己集中注意力并完成任务吗?",ya_="学业与您的学习有关,包括在学校和家里的学习。您每天都在做课堂作业和家庭作业吗?您的成绩是否向您的老师、父母甚至您自己展示了您学习的刻苦程度?",fa_="自我效能感是指您相信自己,相信自己能做好某件事。您对今天做得好的事情感到满意吗?您认为您能成功完成今天必须做的事情吗?",wa_="专注是指您专注于一项任务或一个人,不分心。如果您试图集中注意力听老师讲课,您只会想着老师在说什么。您今天能专心做任务吗?您能放空大脑去做作业吗?",va_="幸福是一种美好的感觉,它可以来自您喜欢的任何事情,也可以来自对生活现状的总体满意。虽然不可能一直快乐,但您总能找到一些让您快乐的事情。今天有没有让您微笑的时刻?什么事情/人/活动给您带来快乐并让您感觉良好?",ba_="当您感到安全时,您不会感到害怕或处于危险之中。这意味着您在家里、学校以及您日常活动所到之处都感到舒适和快乐。您能做自己吗?您是否觉得人们关心您,您的想法和感受受到重视?",$a_="适量的压力是件好事。压力过大会让人感到苦恼,让我们觉得自己失去了控制。压力过小则意味着我们没有投入或挑战。每个人承受的适量压力有助于我们实现目标并发挥出最佳水平。",ka_="看了今天的答案后,您准备好完成课堂上要求您完成的任务了吗?还是需要帮助才能进入良好的学习状态?做好学习准备意味着您的身心共同努力,让您做好学习新知识的准备,并加深对已学知识的理解。",xa_="我们今天的谈话有多大帮助?",Ca_="自豪是指您对自己做过的事情或自己感到满意。您对自己今天的行为有多满意或高兴?",Ia_="您会继续做好或开始以不同方式做的一件事是什么?或者您对自己、他人或世界有什么了解?",Sa_="能量提供力量和能力去做某事。这可以是身体上的,比如跑步比赛,也可以是精神上的,比如参加评估。您觉得您有足够的能量度过这一天吗?您现在对自己的能量水平感觉如何?",Aa_="学生尚未开始此签到。您确定要删除吗?",Ea_="挣扎中,需要支持",Ta_="一些健康问题",ja_="一般还好",Na_="大多数健康问题都很好",Pa_="感觉很好",qa_="没有进步",Ra_="意识到我的目标,但进展不大",La_="取得一些进展",Ma_="总体上发展良好",Da_="各领域均实现大幅进展",Ba_="一个或多个关键关系非常困难",Oa_="一个或多个关键关系有点棘手",Ga_="大多数关键关系是积极的",za_="所有关键关系都是积极的",Fa_="一点也不高效",Ha_="拖延",Va_="满足一些截止日期",Wa_="满足大多数截止日期",Ua_="轻松满足所有截止日期",Ya_="重大挑战",Xa_="某些领域有困难",Za_="在某些领域达到目标",Ja_="在大多数领域达到目标",Qa_="在所有领域达到目标",Ka_="非常缺乏信心",ei_="缺乏一些自信",ti_="发展和改进",_i_="感觉积极",si_="超级自信",ni_="总是心不在焉",oi_="大部分时间心不在焉",ai_="有时心不在焉",ii_="一般专注",ri_="极度专注",ci_="精疲力竭",li_="经常疲倦",di_="感觉还好",ui_="精力充沛",hi_="大部分时间不开心",mi_="精力充沛!",gi_="有时不开心",pi_="积极因素多于消极因素",yi_="总体上快乐",fi_="几乎一直乐观积极",wi_="处于危险之中",vi_="感觉不安全",bi_="有些担忧",$i_="感觉安全",ki_="非常安全有保障",xi_="中等",Ci_="非常高",Ii_="概念转变对话对您的学习进步有多大帮助?",Si_="在本会话中讨论寻求帮助的方法对您的学习进步有多大帮助?",Ai_="在本会话中重点专注设定或强化高期望对您的学习进步有多大帮助?",Ei_="一点",Ti_="很多",ji_="会话后",Ni_="自豪感高",Pi_="自豪感低",qi_="您在想什么?",Ri_="全选",Li_="态度",Mi_="行为",Di_="协作",Bi_="信心",Oi_="创造力",Gi_="开发创意",zi_="锻炼",Fi_="完成任务",Hi_="灵活性",Vi_="冲动控制",Wi_="倾听",Ui_="长期记忆",Yi_="数学",Xi_="材料组织",Zi_="处理速度",Ji_="阅读",Qi_="设定和实现目标",Ki_="短期记忆",er_="睡眠卫生",tr_="口语",_r_="开始任务",sr_="压力和焦虑",nr_="学习",or_="时间管理",ar_="职业道德",ir_="写作",rr_="高期望",cr_="当我对自己设定高期望并鼓励我做超出最低期望的事情时,我的学习效果最好。",lr_="当我认识到自己的成功并有机会庆祝进步和成就时,我的学习效果最好。",dr_="将学习与先前的知识相结合",ur_="当我把新学到的重要知识与以前学到的知识联系起来时,我的学习效果最好。",hr_="学习者自我评估",mr_="当我通过指导提示、评分标准和/或支持自我评估我的学习时,我的学习效果最好。",gr_="学习目标",pr_="当我制定了短期和长期目标,并知道自己在实现这些目标方面的进展时,我的学习效果最好。这可能还包括养成帮助我实现目标的习惯和和惯例。",yr_="规划和预测",fr_="当我计划未来的行动并预测这些行动将导致什么结果时,我的学习效果最好。",wr_="质量反馈",vr_="当我知道什么是好的工作、我的工作与好的工作相比如何以及我需要做些什么来改进我的工作以使其变得更好时,我的学习效果最好。",br_="当我有时间反思自己的学习或老师强调学习机会并提供反思时间时,我的学习效果最好。",$r_="当我了解围绕某个概念的谬论和误解以及它们为何不正确时,我的学习效果最好。当老师纠正对我的思维和/或不准确的自我评估的误解时,这也很有用。",kr_="当我被鼓励寻求帮助时,我的学习效果最好,无论是学术支持、指导、建议、医疗援助、社会/情感支持等。",xr_="目标",Cr_="会话重点",Ir_="本次会话的主要重点是什么?",Sr_="学术",Ar_="评估和家庭作业",Er_="自定义",Tr_="一般",jr_="习惯和策略",Nr_="组织和规划",Pr_="学校/生活平衡",qr_="睡眠习惯",Rr_="社交媒体(抖音、Instagram、Youtube、Pinterest 等)",Lr_="角色扮演游戏(D&D、魔兽世界、探路者等)",Mr_="环境(全球变暖、可持续性等)",Dr_="动漫(我的英雄学院、全职猎人、海贼王等)",Br_="日本漫画",Or_="图文小说",Gr_="漫画",zr_="政治",Fr_="电视剧(《怪奇物语》、《心跳漏一拍》、《美颜大师》等)和电影(《怪物史莱克》、漫威系列、《魔法奇缘》等)",Hr_="音乐",Vr_="Bluey",Wr_="贴纸",Ur_="天气",Yr_="宗教",Xr_="灵性",Zr_="新闻/时事",Jr_="体育",Qr_="咖啡文化/咖啡",Kr_="时装设计",ec_="未来主义(工程、设计等)",tc_="科幻小说",_c_="健康(冥想、正念、等)",sc_="喜剧",nc_="新闻",oc_="化妆",ac_="美学(Cottagecore、Dark Academia、Fairycore 等)",ic_="汽车文化 (赛车、摩托车、摩托车等)",rc_="诗歌/即兴诗歌",cc_="恐怖与悬疑",lc_="滑雪/单板滑雪",dc_="骑马",uc_="魔术",hc_="科学 (生物学、化学、物理学等)",mc_="我的世界",gc_="平面设计",pc_="生存/准备",yc_="植物学",fc_="电影研究",wc_="急救人员 (消防、EMS/EMT、警察等)",vc_="动物 (家养、救援等)",bc_="动物 (大型、野生等)?",$c_="海洋生物学",kc_="视频游戏 Youtubers",xc_="Hello Kitty",Cc_="表情包",Ic_="可妮和布朗",Sc_="口袋妖怪",Ac_="选择重要优势或在此处输入重要优势",Ec_="我学习最高效的时候是",Tc_="我学习最困难的时候是",jc_="当老师让我的学习更容易时,他们…",Nc_="当老师让我的学习更困难时,他们…",Pc_="如果您是老师,并且发现我在课堂上学习困难,您可以通过以下方式帮助我…",qc_="我从中学到最多的作业是…",Rc_="我有时觉得太有挑战性的作业是",Lc_="分块任务",Mc_="当老师将大任务或项目分解成较小的步骤并估算(或帮助我估算)每个步骤所需的时间时,我的学习效果最好。",Dc_="时间管理,开始任务,完成任务,计划",Bc_="小块学习",Oc_="当老师将新知识分解成更小的信息块,然后有机会复习所学知识并找出学习中的差距时,我的学习效果最好。",Gc_="短期记忆、保持专注、控制冲动、自我意识、倾听、处理速度",zc_="休息",Fc_="当老师在每节课中安排短暂的休息时,我的学习效果最好。",Hc_="时间管理、完成任务、保持专注、控制冲动、态度、压力与焦虑、职业道德",Vc_="快乐笔记首页",Wc_="当老师发来积极的便条、电子邮件或打电话回家庆祝我的成长时,我的学习效果最好。",Uc_="完成任务、设定和实现目标、态度、行为、信心、职业道德",Yc_="注重成长",Xc_="当老师关注我的成长和进步而不是整体成就时,我的学习效果最好。",Zc_="自信、设定和实现目标、压力和焦虑",Jc_="避免成为焦点",Qc_="当老师避免让我成为众人瞩目的焦点,并在我需要演讲时给我空间和时间准备时,我的学习效果最好。此外,如果可,我应该被允许进行录制演讲,而不是亲自演讲。",Kc_="压力和焦虑、演讲、处理速度",el_="频繁检查",tl_="当老师经常私下检查我以确保我进度时,我的学习效果最好。这也有助于我在课堂上感到安全和得到支持。(检查的思路包括使用便签系统、无声信号和在桌边低语,但我们可以一起商定一些事情)。",_l_="压力与焦虑、处理速度、任务启动、发展想法、规划、完成任务、短期记忆、保持专注、自我倡导、自我意识",sl_="建立融洽关系",nl_="当老师注重与老师和同学建立关系时,我的学习效果最好 - 创建一个让我感到联系紧密和受到重视的关爱社区。",ol_="压力与焦虑、行为、态度、信心",al_="明确的优先顺序",il_="当老师分享必须做、推荐或可选的活动时,我的学习效果最好。",rl_="规划、处理速度、完成任务、倾听、阅读、写作、压力与焦虑、职业道德、学习",cl_="计划过渡",ll_="当老师预演并帮助我和其他学生为安全演习、活动变化或其他课堂过渡做好准备时,我的学习效果最好。",dl_="时间管理、规划、完成任务、压力与焦虑、行为、灵活性",ul_="选择",hl_="当老师提供尽可能多的选择时,我的学习效果最好。",ml_="态度、行为、职业道德",gl_="运动",pl_="当老师在课堂中提供大量有计划的身体活动或运动机会时,我的学习效果最好。",yl_="冲动控制、保持专注",fl_="非语言提示",wl_="当老师尽可能用非语言提示来引导我,而不是用语言来引导我时,我的学习效果最好。",vl_="保持专注、自我意识、态度、行为、压力与焦虑、信心",bl_="限制直接指导",$l_="当老师缩短讲话时间并允许我按照自己的节奏使用最适合我的材料学习时,我的学习效果最好。",kl_="短期记忆、保持专注、冲动控制、倾听、行为、处理速度",xl_="常规",Cl_="当老师设定并保持一致的常规时,我的学习效果最好。如果我们需要改变常规,我会提前知道这些变化。",Il_="时间管理、规划、完成任务、压力与焦虑、行为、灵活性、开始任务",Sl_="多模式学习",Al_="当老师帮助我们通过多种方式学习时,我的学习效果最好,包括阅读、聆听、观看和实践。基本概念不会只用一种方法来教授。",El_="保持专注、聆听、阅读、写作、数学、协作、处理速度",Tl_="灵活的评估",jl_="当老师为我创造多种选择来展示我的学习成果时,我的学习效果最好。",Nl_="聆听、阅读、写作、数学、口语、压力与焦虑、协作、处理速度、学习",Pl_="灵活的反馈",ql_="当老师定期给我反馈时,我的学习效果最好,这样我就能知道自己的表现如何,以及我可以做些什么来继续改进。",Rl_="规划、保持专注、自我意识",Ll_="预学习",Ml_="当老师提供早期学习新概念的机会(例如早期获得资源)时,我的学习效果最好。",Dl_="时间管理、写作、阅读、数学、压力与焦虑、处理速度",Bl_="理解检查",Ol_="当老师经常检查我是否理解了新知识时,我的学习效果最好。",Gl_="开始任务、短期记忆、保持专注、控制冲动、自我主张、倾听、处理速度",zl_="评分标准",Fl_="当老师尽早提供学习评分标准并经常参考时,我的学习效果最好。这些评分标准帮助我了解我需要什么才能在不同的表现水平上展示我的学习成果。",Hl_="学习、职业道德、自信、压力与焦虑、自我主张、时间管理、规划、完成任务",Vl_="图形组织器",Wl_="当老师使用图形组织器帮助我理解我们正在学习的内容时,我的学习效果最好。",Ul_="倾听、阅读、写作、处理速度、短期记忆、发展想法、规划",Yl_="视觉效果",Xl_="当老师使用大量视觉效果(图表、信息图、图片等)帮助我理解我们正在学习的内容时,我的学习效果最好。",Zl_="短期记忆、保持专注、倾听、阅读、处理速度",Jl_="句子词干",Ql_="当老师为书面作业提供句子词干和写作提示时,我的学习效果最好。",Kl_="发展想法、规划、开始任务、写作",ed_="思考时间",td_="当我有充足的时间思考后再回答问题时,我的学习效果最好。",_d_="发展思路、处理速度、口语",sd_="清晰的指示",nd_="当老师将指令分解成小步骤、使用简单的词汇并检查以确保我理解指令时,我的学习效果最好。",od_="时间管理、规划、开始任务、完成任务、短期记忆、保持专注、倾听、处理速度",ad_="分享词汇",id_="当老师在我们学习新信息之前提供新词汇并提供学习词汇的机会时,我的学习效果最好。",rd_="短期记忆、长期记忆、倾听、阅读、处理速度",cd_="创意库",ld_="当老师提供一份预先准备好的想法列表供我选择时,我的学习效果最好。",dd_="发展思路、开始任务、时间管理",ud_="范例",hd_="当老师提供不同绩效水平下成功完成的工作的示例时,我的学习效果最好。",md_="发展思路、规划、开始任务、学习",gd_="组织时间",pd_="当老师允许我组织材料和/或计划下一步时,我的学习效果最好。",yd_="时间管理、材料组织、发展想法、规划、开始任务、压力和焦虑",fd_="当老师安排定期一对一时间与我交流时,我的学习效果最好。",wd_="多模式答案",vd_="当我能够通过多种方式展示我的理解时,我的学习效果最好,例如素描、演示或制作一段传递信息的短视频。",bd_="开始任务、完成任务、自我倡导、长期记忆",$d_="同伴教学小组工作",kd_="当我可以与同伴一起教学或练习时,我的学习效果最好。",xd_="学习、聆听、处理速度、长期记忆",Cd_="额外时间完成评估",Id_="额外时间处理口头信息和指示",Sd_="根据需要额外休息",Ad_="使用计算机(无互联网访问)或文字处理器进行评估",Ed_="评估的音频版本",Td_="访问阅读器进行评估",jd_="语音转文本软件进行评估",Nd_="访问抄写员进行评估",Pd_="对评估答案进行音频录制",qd_="将较长的限时评估分为几天进行",Rd_="在安静且干扰较少的房间进行测试",Ld_="在小组环境中进行测试",Md_="分配学生最有可能学习最好的座位",Dd_="在课堂上使用感官工具",Bd_="特殊照明",Od_="使用计算机或文字处理器做笔记",Gd_="使用通常不允许使用的计算器",zd_="使用拼写词典或拼写检查器",Fd_="课堂笔记的副本",Hd_="任何说明的书面副本",Vd_="用视觉和图形来配合口头传达的任何新信息",Wd_="录制课程的能力",Ud_="将文本大小增加到更大的格式",Yd_="学习新信息时,提供除阅读之外的其他替代格式",Xd_="学习新信息时,提供除聆听之外的其他替代格式",Zd_="太棒了!让我们建立您的目标。",Jd_="您希望自己的学习有什么不同?选择一个类别或输入您自己的想法。",Qd_="选择我的目标领域",Kd_="不错的选择!您想在哪个幸福领域努力?",eu_="让我们更具体一点!选择一个领域或输入您自己的想法。",tu_="为您的目标添加更多细节",_u_="记住,目标应该是 SMART!",su_="具体、可衡量、可实现/雄心勃勃、相关和基于时间",nu_="完美!让我们缩小范围。是时候为您的目标添加更多细节了。",ou_="选择一个目标或输入您自己的目标。",au_="现在,让我们选择您的目标。",iu_="您打算如何实现这个目标?",ru_="自定义以下选项或输入您自己的选项。这些将成为您的短期目标。",cu_="继续!",lu_="添加目标",du_="您现在在哪里?目前这对您来说是什么样子的?",uu_="这有助于您跟踪您的进度。",hu_="完成了!",mu_="我会创建一个睡眠习惯。",gu_="我会设置闹钟来提醒我开始日常活动。",pu_="我会在睡觉前 1 小时把电子设备收起来。",yu_="我会在睡觉前 1 小时将手机设置为专注或请勿打扰模式,直到早上闹钟响起。",fu_="我会在睡觉前 1 小时选择放松的活动,例如阅读、冥想、瑜伽或听音乐。",wu_="我每天会在同一时间起床。",vu_="我每天早上只会按一次贪睡键。",bu_="我会在睡觉前把所有东西准备好,为第二天做好准备",$u_="我会按时睡觉。",ku_="这周5 次中,我会至少做 4 次。",xu_="我会准时起床。",Cu_="我会为早晨制定一个简短的例行程序,让我对这一天感到兴奋。",Iu_="我会设置一个闹钟,提醒我在睡觉前 1 小时准备睡觉。",Su_="我会设置一个早晨闹钟,让我有充足的时间准备去上学。",Au_="我会在睡觉前阅读 20 分钟。",Eu_="我会在睡觉前冥想或听轻松的音乐。",Tu_="我会制定一个早晨例行程序来为新的一天做好准备。",ju_="我会研究制定晨间日常活动的想法。",Nu_="我会向老师或其他人介绍我的想法。",Pu_="我会在纸上或手机上规划我的日常活动。",qu_="我会每天早上同一时间开始我的日常活动。",Ru_="我会制定一个晚间日常活动,让我准备好上床睡觉。",Lu_="我会研究制定晚间日常活动的想法。",Mu_="本周 5 个上学日中,我会有 5 个晚上会做这个日常活动。",Du_="我每晚至少会睡 8 个小时。",Bu_="我会练习冥想。",Ou_="我会找到/选择一个冥想应用程序或资源来使用。",Gu_="我会挑战自己连续冥想 x 天。",zu_="我会选择一个每日冥想时间并设置闹钟来提醒我。",Fu_="本周,我会在 x 天中至少冥想 x 天",Hu_="我会开始锻炼。",Vu_="我会每周找一个朋友一起锻炼。",Wu_="我会选择要添加到日常活动中的锻炼类型。",Uu_="我会与朋友或值得信赖的成年人分享我的日常活动。",Yu_="我会将锻炼时间添加到我的计划表或日历中。",Xu_="我会每天锻炼。",Zu_="本周,我会至少在 x 天中锻炼 x 天",Ju_="我会了解自己压力的根源。",Qu_="我会与我的老师或辅导员谈论困扰我或让我有压力的事情。",Ku_="我会找出并和我信任的人谈论我的感受",eh_="当我感到压力时,我会停下来找出造成压力的原因。",th_="我会了解什么是我的控制范围之内,什么不是。",_h_="当我接近潜在的压力情况时,我会承认这一点",sh_="我会学习应对技巧。",nh_="我会与我的老师或辅导员讨论他们认为对我有帮助的应对技巧。",oh_="当我感到压力时,我会选择一种应对技巧来练习。",ah_="本周,当我感到压力时,我会使用 x 次应对策略",ih_="我会开始记录我的想法和感受。",rh_="本周,我会至少在 x 天中这样做 x 天。",ch_="我会到户外或大自然中去。",lh_="我会抽出时间做一些有趣的事情。",dh_="我会抽出时间保持静止和安静。",uh_="提高我的正念",hh_="我会在一天中短暂休息。",mh_="我会决定哪种休息对我最有帮助。",gh_="我会设置闹钟提醒自己休息一下。",ph_="我会每小时休息一次。",yh_="我会每 90 分钟休息一次。",fh_="我每天会休息 X 次",wh_="创造放松的机会",vh_="我会使用可视化来帮助我放松。",bh_="我会学习可视化。",$h_="我会设置闹钟提醒我练习可视化。",kh_="我会按照自己的意愿决定这个练习",xh_="我会做深呼吸练习。",Ch_="我会研究和学习呼吸练习来尝试。",Ih_="我会设置闹钟来提醒我进行呼吸练习。",Sh_="我会听轻松的音乐。",Ah_="我会找到或创建一个我觉得放松的播放列表。",Eh_="我会将听音乐添加到我的晚间日常活动中。",Th_="我会练习瑜伽。",jh_="我会找到一个课程、youtube 频道或应用程序来使用。",Nh_="我会挑战自己连续 x 天练习瑜伽。",Ph_="我会每天选择一个时间练习瑜伽,并设置闹钟提醒我。",qh_="我会做一个令人愉快的艺术项目。",Rh_="我会找一个放松的艺术活动来尝试。",Lh_="我每周都会选择一个时间进行艺术创作并设置提醒。",Mh_="我会告诉别人我的新艺术项目",Dh_="保持健康",Bh_="我会多锻炼。",Oh_="我会加入运动队或俱乐部。",Gh_="我会了解学校有哪些活动。",zh_="我会选择一个我感兴趣的。",Fh_="我会处理所有加入文件。",Hh_="我会参加试训或申请流程。",Vh_="我会参加所有练习。",Wh_="我会学习一项新运动或活动。",Uh_="我会研究可能让我感兴趣的新运动或活动。",Yh_="我会选择一项新的运动或活动来学习。",Xh_="我会看看我认识的人是否愿意和我一起尝试这项新活动。",Zh_="我会收集学习这项活动所需的装备。",Jh_="我会研究这项活动的规则和方法。",Qh_="我会找到参与这项活动的团体并加入",Kh_="我会研究我感兴趣的潜在挑战。",em_="我会选择一个挑战来完成。",tm_="我会每周或每天设定一个时间来做这个挑战。",_m_="我会设置闹钟来提醒我完成这个挑战",sm_="我会报名参加一场比赛。",nm_="我会研究未来几个月在我所在地区举行的不同比赛和活动。",om_="我会选择其中一项,并与我的父母/监护人讨论参与事宜。",am_="如果得到父母/监护人的许可,我会报名。",im_="我会制定训练计划来为比赛做准备。",rm_="我会为训练计划设置提醒",cm_="我会制定家庭锻炼计划。",lm_="我会盘点我在家中可以使用的健身器材。",dm_="我会研究在家中可以使用哪些器材进行哪些常规锻炼和运动。",um_="我会找到一个有关锻炼的 YouTube 频道或应用程序。",hm_="我会为日常锻炼制定时间表。",mm_="我会为日常锻炼设置提醒",gm_="我会加入并去健身房。",pm_="我会研究我所在地区的健身房。",ym_="我会选择一家我能支付费用并获得父母/监护人许可的健身房。",fm_="我会去健身房并获得会员资格。",wm_="我会了解健身房提供的设备、项目和课程。",vm_="我会决定我去健身房时的日常锻炼计划。",bm_="我会在手机上安排去健身房的时间。",$m_="我会在本周的 x 天中去 x 天健身房",km_="吃得更健康",xm_="我会在饮食中添加更多水果和蔬菜。",Cm_="当我外出就餐时,我会用 x 代替 x。",Im_="我会限制含糖饮料的摄入量。",Sm_="我会多喝水。",Am_="每个上学日我会给水瓶装满 x 次水",Em_="我会学会做简单的饭菜。",Tm_="我会去商店购买清单上缺少的食材。",jm_="我会按照食谱做,并与家人或朋友分享我的饭菜。",Nm_="提高我的守时能力(不迟到上学/上课)",Pm_="我会在早上的日程安排中添加缓冲时间,以确保按时到校。",qm_="我会在手机上设置闹钟或日历提醒,提醒我去上下一节课。",Rm_="我会设置一个闹钟,在需要去学校前 5 分钟提醒我。",Lm_="我会将学校日程表放在计划表或手机上。",Mm_="交朋友",Dm_="我会加入俱乐部或运动队。",Bm_="我会参加所有的练习或会议",Om_="我会找到有共同兴趣的人。",Gm_="我会邀请某人在校外一起出去玩。",zm_="我会参加我受邀参加的活动或聚会。",Fm_="我会和我想进一步了解的人共进午餐。",Hm_="我会学习一些适当的问题来问别人,以便更好地了解他们。",Vm_="我会学习如何更多地参与对话。",Wm_="我会思考我想要什么样的朋友。",Um_="我会思考成为一个好朋友意味着什么。",Ym_="我会和别人分享这些想法。",Xm_="加入俱乐部/运动",Zm_="我会选择一个俱乐部加入。",Jm_="我会参加所有的会议",Qm_="我会选择一项运动来尝试。",Km_="学习一项新活动",eg_="我会选择一项新活动来学习。",tg_="我会收集学习这项活动所需的用品。",_g_="本周我会至少练习或参加 x 次新活动。",sg_="改进作业",ng_="我会按时交作业。",og_="我会交高质量的作业。",ag_="完成长期作业(有计划且有进展)",ig_="我会为长期项目制定学习/工作计划",rg_="为考试而学习(常规和有效的学习策略)",cg_="我会为考试制定学习/工作计划",lg_="在课堂上做笔记(高质量、有条理)",dg_="我会在课堂上做笔记(数字/纸质),并将它们整理到文件夹/笔记本中,用于我的每一门核心/关键课程。",ug_="我会研究做笔记的方法",hg_="将 x 科目的成绩提高 x 倍",mg_="我会额外复习课堂材料(除了/以及/不包括家庭学习)",gg_="每周在 x 科目上学习 x 次/小时 x 时间",pg_="提前完成工作并根据说明/评分标准进行检查,然后进行编辑",yg_="提高家庭学习作业的质量/成绩",fg_="创建定期的学习/家庭作业时间表",wg_="我会制定一周的计划,详细列出学习的日子、时间以及到某天要学习多长时间。",vg_="改善电子邮件、Google Drive、日历或计划器组织",bg_="我会每周至少检查 x 次收件箱/未读电子邮件,并在必要时回复。",$g_="我会创建文件夹/标签并将电子邮件组织到正确的文件夹中。",kg_="我会为每个主题创建文件夹并将文档组织到正确的文件夹中。",xg_="为重要事件/截止日期/学习时间创建提醒或日历活动",Cg_="我会立即或尽快为最重要的事件/截止日期或学习会话创建提醒或日历活动。",Ig_="创建长期作业计划",Sg_="我会评估我的进度并调整在 x 日期之前学习的时间。",Ag_="改善我的待办事项列表习惯",Eg_="我会立即或尽快将任务添加到我的待办事项列表中,并每周查看 3 次",Tg_="我会为长期作业制定一个时间表,详细说明学习日期、时间以及在 x 日之前要学习多长时间。",jg_="我会在课堂上做笔记(电子/纸质),并将它们整理到文件夹/笔记本中,用于所有课程。",Ng_="在课堂上将设备关闭、静音或收起来",Pg_="将设备关闭、静音或收起来",qg_="在学习期间将设备关闭、静音或收起来",Rg_="我会创建一个过渡学习时间的例程。",Lg_="在手机上设置时间表,以便在上课期间集中注意力或不受打扰",Mg_="在手机上设置时间表,以便在计划的学习时间内集中注意力或不受打扰",Dg_="减少或限制在社交媒体上花费的时间",Bg_="我会在我的应用程序或网站上设置时间限制。",Og_="当我在休息期间使用社交媒体时,我会设置一个计时器",Gg_="增加课堂参与度",zg_="避免在课堂上浏览网站或做其他分散注意力的事情",Fg_="我会注意课堂上的指示。",Hg_="我会积极参与课堂活动。",Vg_="我会更多地参与课堂活动。",Wg_="我会在课堂上提出与主题相关的问题,以提高我的理解/学习。",Ug_="我会自愿在课堂上回答更多问题。",Yg_="避免分散注意力的网站",Xg_="我会通过 chrome 扩展程序为分散注意力的网站设置时间限制。",Zg_="我会关闭所有与我的任务无关的标签。",Jg_="在需要时获得帮助",Qg_="当我需要帮助时,我会在课外与老师见面",Kg_="当我需要帮助时,我会给老师发电子邮件",ep_="当我不知道该做什么时,我会在课堂上提问",tp_="了解我的便利设施",_p_="我会了解并理解我的便利设施",sp_="当我在课堂上需要便利设施时,我会要求便利设施",np_="当我不再需要便利设施时,我会告诉我的案例经理。",op_="当我觉得我需要额外或不同的便利设施时,我会与我的案例经理交谈。",ap_="拖延",ip_="提前计划",rp_="我会每周花费 x 次时间在长期项目上",cp_="我会在周一或之前的周五计划本周的任务",lp_="当课堂上分配任务时,我会将任务添加到我的计划器中",dp_="任务启动",up_="我会在给定的日期开始做任务,并在时间允许的情况下完成",hp_="我会提前或在到期前完成任务",mp_="我的想法和感受很重要。",gp_="今天",pp_="本周",yp_="本月",fp_="男",wp_="女",vp_="输入内容以搜索学生",bp_="为选定的学生分配",$p_="助理电子邮件",kp_="辅导员电子邮件",xp_="辅导员电子邮件",Cp_="支持教师电子邮件",Ip_="添加新答案",Sp_="编辑模板",Ap_="添加问题",Ep_="编辑电子邮件模板",Tp_="联系邮件",jp_="公告",Np_="时间表信息",Pp_="欢迎新教师/助理",qp_="联系请求",Rp_="欢迎新教师",Lp_="欢迎新学生",Mp_="欢迎新助理",Dp_="欢迎新家长",Bp_="欢迎新 eduTeacher",Op_="忘记密码",Gp_="欢迎新辅导员",zp_="用户名字",Fp_="用户姓氏",Hp_="密码",Vp_="消息",Wp_="域",Up_="基本版",Yp_="高级版",Xp_="企业版",Zp_="您确定要请求更改为此计划吗?",Jp_="图像",Qp_="音频",Kp_="文档",ey_="视频",ty_="每 1 分钟自动保存",_y_="无用户显示",sy_="在 0-10 的范围内,您向朋友或同事推荐我们的可能性有多大?",ny_="完全不可能",oy_="极有可能",ay_="UWCSEA-SG 气候调查:与成人和同龄人的联系",iy_="UWCSEA-SG 气候调查:您需要一些额外的帮助或支持吗?",ry_="UWCSEA-SG 气候调查:我的健康和幸福感",cy_="UWCSEA-SG 气候调查:开放式问题",ly_="UWCSEA-SG 气候调查:整体学习体验",dy_="通过 csv 导入电子邮件",uy_="单选",hy_="多选",my_="文本输入",gy_="情感",py_="总结",yy_="评分",fy_="学习策略",wy_="下拉菜单",vy_="幸福感_干预",by_="SDQ 标准",$y_="多样性、公平、包容和正义",ky_="气候调查",xy_="干预-安全",Cy_="干预-压力",Iy_="家庭安全",Sy_="幸福感",Ay_="抑郁问题",Ey_="1 级学习者-目标讨论会",Ty_="1 级学习者-平衡讨论会",jy_="1 级学习者-学习习惯及态度讨论会",Ny_="2 级学习者-数字公民",Py_="1 级学习者-数字公民",qy_="2 级学习者-沟通",Ry_="1 级学习者-沟通",Ly_="2 级学习者-协作",My_="1 级学习者-协作",Dy_="2 级学习者-自我导向学习",By_="2 级学习者-自我管理技能",Oy_="1 级学习者-自我管理技能",Gy_="2 级学习者-自我倡导",zy_="1 级学习者-自我倡导",Fy_="2 级学习者-自我意识",Hy_="1 级学习者-自我意识",Vy_="2 级学习者-学习和学习技能",Wy_="1 级学习者-学习和学习技能会话",Uy_="2 级学习者-组织",Yy_="1 级学习者-组织会话",Xy_="2 级学习者-目标讨论会",Zy_="2 级学习者-习惯和学习态度讨论会",Jy_="2 级学习者-平衡讨论会",Qy_="2 级学习者- 目标会话",Ky_="1 级学习者- 目标会话",ef_="2 级学习者- 学习策略会话",tf_="2 级学习者- 学术会话",_f_="1 级学习者- 学术会话",sf_="2 级学习者-习惯和学习态度会话",nf_="1 级学习者- 习惯和学习态度会话",of_="2 级学习者- 一般会话",af_="1 级学习者- 一般会话",if_="社交和情感学习",rf_="课后反思问题",cf_="冲动控制/自我监控",lf_="计划/问题解决",df_="教师自我效能感 (TSES)",uf_="一般学习策略 (GSL)",hf_="集中注意力",mf_="记忆",gf_="负责任决策",pf_="社交意识",yf_="人际关系技巧",ff_="习惯和学习态度 (HAL)",wf_="会议结束问题",vf_="生活技能",bf_="健康与健身",$f_="执行功能",kf_="学习技巧",xf_="元认知自我调节",Cf_="教育满意度",If_="默认会话问题",Sf_="测试问题类别 1",Af_="您是寄宿生还是走读生?",Ef_="在做出决定之前,我会考虑后果",Tf_="您是否有以下任何一种情况:学习障碍(例如阅读障碍、注意力缺陷多动障碍)、长期疾病/健康状况、身体/视觉/听力障碍、社交/行为障碍(例如自闭症、图雷特氏综合症)。",jf_="您如何描述您的宗教信仰?",Nf_="您如何描述您的性取向?",Pf_="我积极追求符合我的激情和价值观的活动。",qf_="我总是有人陪我吃午饭。",Rf_="我独处的次数比我想要的要多。",Lf_="我对我在学校取得的成绩很满意。",Mf_="学业 家庭作业、学习和成绩",Df_="成长 改善学习习惯、成绩、运动、俱乐部或个人项目",Bf_="生产力 完成重要任务并减少干扰",Of_="关系 家人、朋友和老师",Gf_="还有什么想告诉老师的吗?",zf_="您带了这堂课所需的东西吗?",Ff_="您完成了今天课程的所有课堂作业吗?",Hf_="上课时您准备好材料了吗?",Vf_="这堂课您还有什么未完成的作业吗?",Wf_="Assign bulk",Uf_="批量分配学生",Yf_="说明",Xf_="姓名为必填项",Zf_="标题为必填项",Jf_="说明为必填项",Qf_="添加项目",Kf_="会议评分标准项目为空",ew_="空白行或列",tw_="问题列表",_w_="问题是必填项",sw_="选择技能",nw_="输入并按 Enter 添加新行",ow_="是否要删除此行?",aw_="您想删除此自定义提醒吗?",iw_="成功删除自定义提醒",rw_="是否要删除此技能?",cw_="成功删除技能",lw_="是否要删除此主题?",dw_="成功删除主题",uw_="是否要删除此学习支持类别?",hw_="成功删除学习支持类别",mw_="您想删除此学习策略吗?",gw_="成功删除学习策略",pw_="无法删除问题",yw_="您想删除此目标示例吗?",fw_="成功删除问题",ww_="您想删除此徽章吗?",vw_="成功删除徽章",bw_="您想删除这个空白日吗?",$w_="成功删除空白日",kw_="您想删除此分数吗?",xw_="成功删除分数",Cw_="已使用",Iw_="时间 OneRoster Sync (HH)",Sw_="小文本",Aw_="中文本",Ew_="大文本",Tw_="编辑家长 1 信息",jw_="编辑家长 2 信息",Nw_="最后一对一",Pw_="您如何评价实现此目标的机会?",qw_="添加姓名",Rw_="活动列表",Lw_="选择学年",Mw_="一些员工",Dw_="员工",Bw_="职员",Ow_="您今天怎么样?",Gw_="今天的课程的目的或重点是什么?",zw_="标题 1",Fw_="标题 2",Hw_="标题 3",Vw_="标题 4",Ww_="标题 5",Uw_="标题 6",Yw_="保持专注",Xw_="文本输入问题",Zw_="与去年相比",Jw_="离开页面",Qw_="本次会话反思对您的学习进步有多大帮助?",Kw_="上次一对一对话",ev_="学生已开始本次讨论会。您确定要删除吗?",tv_="学生已开始本次签到。您确定要删除吗?",_v_="学生尚未开始本次一对一。您确定要删除吗?",sv_="我的便利设施",nv_="便利设施设置",ov_="添加新便利设施",av_="打印我的便利设施",iv_="我的学习进度",rv_=`回复比较\r
|
|
5
|
-
`,cv_="下拉菜单和口头问答",lv_="MARIO 工具",dv_="自定义",uv_="技术设置",hv_="数据导入/导出",mv_="非活跃学生",gv_="每周任务",pv_="管理员一般提示",yv_="学校使用",fv_="总对话时间",wv_="课堂总反思",vv_="牌号用途",bv_="总对话数",$v_="模仿",kv_="你好",xv_="过渡计划",Cv_="更新于",Iv_="打印我的学习计划",Sv_="打印我的过渡计划",Av_="关于我",Ev_="说出你的兴趣",Tv_="添加更多您感兴趣的细节",jv_="引起兴趣",Nv_="查看 PLP",Pv_="查看当前 PLP",qv_="我的学习策略",Rv_="添加新兴趣",Lv_="添加新挑战",Mv_="增添新力量",Dv_="添加新想法",Bv_="添加新成员",Ov_="添加新工具",Gv_="添加新策略",zv_="添加新梦想",Fv_="我的支持网络",Hv_="添加人员",Vv_="更亲密的家庭",Wv_="家庭",Uv_="导师",Yv_="导师",Xv_="我的时间线",Zv_="添加里程碑",Jv_="添加测试",Qv_="学院",Kv_="添加学院",eb_="我的转型计划",tb_="学术里程碑",_b_="测试",sb_="学术和职业兴趣",nb_="您尚未添加任何兴趣",ob_="添加计划",ab_="课外活动",ib_="添加新活动",rb_="培训班",cb_="添加新课程",lb_="添加新学院",db_="参考",ub_="我的未来资源",hb_="添加新资源",mb_="我的论文",gb_="添加文章",pb_="学习档案",yb_="添加投资组合",fb_="金融计划",wb_="添加新计划",vb_="每页行数",bb_="匿名链接",$b_="选择问题的评分",kb_="选择响应分布",xb_="每次只能选择一个问题",Cb_="答案数量",Ib_="我的兴趣",Sb_="我想了解更多",Ab_="我的优势",Eb_="我的挑战",Tb_="我情不自禁地",jb_="我的老师可以帮助我",Nb_="其他可以帮助我的人是",Pb_="可以帮助我的工具/事物是",qb_="我的目标",Rb_="我的目标和计划",Lb_="我的希望和梦想",Mb_="缺少成绩",Db_="成绩必须等于或高于 1 级",Bb_="您尚未添加任何挑战",Ob_="您尚未添加任何优势",Gb_="您尚未添加任何想法",zb_="您尚未添加任何人",Fb_="您尚未添加任何工具",Hb_="您尚未添加任何策略",Vb_="您尚未添加任何目标和具体目标",Wb_="你还没有添加任何希望和梦想",Ub_="我最好的学习方法",Yb_="你的",Xb_="兴趣",Zb_="力量",Jb_="挑战",Qb_="主意",Kb_="主意",e$_="工具",t$_="梦",_$_="人",s$_="详细了解",n$_="我的支持",o$_="网络",a$_="我当前的 PLP",i$_="查看 PLP",r$_="现住住宿",c$_="目标日期",l$_="您尚未添加任何 {{item}}",d$_="截止日期",u$_="大学",h$_="访问",m$_="应用",g$_="一个计划",p$_="利益",y$_="活动",f$_="检测考试",w$_="课程",v$_="资源",b$_="散文",$$_="论文",k$_="计划",x$_="总数是",C$_="诊断调查",I$_="精选问题",S$_="可用问题",A$_="您确定要禁止 {{number}} 名学生活动吗?",E$_="上个月的数据",T$_="问题数量",j$_="没有可显示的 {{item}}",N$_="模板",P$_="评估",q$_="作业结果",R$_="证书",L$_="学习支援類別",M$_="反馈",D$_="建议",B$_="教程屏幕",O$_="反射形式",G$_="选择要添加的问题",z$_="未找到学生成绩",F$_="给你的人起名字",H$_="输入您的人",V$_="创建人",W$_="一月",U$_="二月",Y$_="三月",X$_="四月",Z$_="五月",J$_="六月",Q$_="七月",K$_="八月",e1_="九月",t1_="十月",_1_="十一月",s1_="十二月",n1_="完成",o1_="选择用户",a1_="不到一小时结束",i1_="我的沙盒",r1_="{number} 名学生没有动力",c1_="{number} 名学生感到舒适",l1_="{number} 名学生感到紧张",d1_="{number} 名学生感到压力",u1_="{number} 名学生不堪重负",h1_="与 {teacher name} 一起检查",m1_="所有学生都标记为感觉安全。",g1_="soft",p1_="升序",y1_="降序",f1_="empty",w1_="您已完成所有每周任务!",v1_="干得好!",b1_="如果您已回答所有问题,请按“完成”按钮完成签到",$1_="签到已完成",k1_="您准备好提交了吗?",x1_="您已在签到部分填写“签到”",C1_="干得好!您已在我的支持网络部分填写“支持网络”。",I1_="干得好!您已在我的学习策略部分填写“学习策略”。",S1_="开放式回应",A1_="教师名单",E1_="You can only select 1 question at a time",T1_="教育者",j1_="此图表中显示的数据反映了学生<b>最近的签到情况</b>。",N1_="自由场响应",P1_="请选择一个类别来查看数据",q1_="调查管理",R1_="里面有疑问",L1_="按类别搜索",M1_="在问题中搜索",D1_="调查类别",B1_="所有问题",O1_="输入类别名称",G1_="选择父类别",z1_="新的调查模板已成功创建",F1_="此调查模板已成功更新",H1_="{{action}} 调查模板",V1_="选择问题类别",W1_="输入新调查名称",U1_="选择问题",Y1_="是强制性的",X1_="更新调查",Z1_="输入答案",J1_="选择标志",Q1_="情感图标",K1_="是正确答案",ek_="您的调查已发送给 {{numberStudent}} 名学生和 {{numberStaff}} 名教职员工。您可以在我们的调查仪表板上跟踪结果。",tk_="离开",_k_="前往调查仪表板",sk_="我的仪表板",nk_="不错的选择!您想在哪个{{category}}领域开展工作?",ok_="尼克·奇克!我看到如果你有学者和你的儿子塔希尔,你有论文吗?",ak_="尼克·奇克!让我看看,如果您正在安排,并且您有一个儿子,您有文件吗?",ik_="不错的选择!您希望在哪个重点领域开展工作?",rk_="尼克·奇克!我看看你是否有经纪人和一个有文件的儿子?",ck_="签到和一对一问答",lk_="创建任务",dk_="总任务数",uk_="更改为上一个挑战",hk_="转到下一个挑战",mk_="排序顺序",gk_="任务名称",pk_="挑战",yk_="来源",fk_="要求",wk_="编辑 IEP 模板",vk_="您还有几个问题尚未回答。您确定要提交吗?",bk_="您尚未完成签到。请检查您的回复并点击完成",$k_="Research the academic programs, campus life, and support services at your top-choice universities.",kk_="What actions do you need to take now to position yourself successfully for these three areas?",xk_="What service opportunities have you taken part in?",Ck_="Are there any universities that align with your learning style? How will you find out?",Ik_="What strategies can you use to improve your time management skills?",Sk_="Describe your reflections",Ak_="Think about the person or people that support you.",Ek_="What is it that they do that is most helpful to you?",Tk_="How else are you preparing for university life right now?",jk_="Why might these be helpful to your university experience?",Nk_="Add new location",Pk_="Add new type",qk_="Add new preference",Rk_="Add new visit",Lk_="Add new skill",Mk_="Add new career",Dk_="Add new reflection",Bk_="Add new ideal",Ok_="Add new style",Gk_="You havent added any preferences yet",zk_="You havent added any visits yet",Fk_="You havent added any skills yet",Hk_="What's on your mind?",Vk_="These are the last 5 comments from recent check-ins, filtered by the selected criteria above.",Wk_="View All Responses",Uk_="are not ready to learn",Yk_="Not ready to learn",Xk_="Students who are not ready to learn",Zk_="Student’s average score",Jk_="The data presented in this chart reflects the average from the student’s check-ins.",Qk_="Check-ins and 1-1s",Kk_="Unfinished",ex_="Sort by",tx_="Recently",_x_="Most Positive",sx_="Least Positive",nx_="Check-in",ox_="Log a 1-1 conversation",ax_="Safety and Stress",ix_="What's on your mind?",rx_="Well-Being",cx_="Are you Ready to Learn?",lx_="Show Pending Conversations",dx_="Check-in Session",ux_="Check-in Sessions",hx_="Back to meetings",mx_="I have nothing to add",gx_="This initial step activates your 1-on-1 conversation, setting the stage for personal dialogue.",px_="View a 1-1 conversation",yx_="Log Conversation Data",fx_="Add 1-1 Conversation notes",wx_="Save data",vx_="Please select date 1-1 conversation!",bx_="Please write something to this 1-1 conversation!",$x_="Data 1-1 conversation cannot exceed 1000 characters!",kx_="No need for it",xx_="Conversation saved!",Cx_="What did you and the student choose as an action step?<br/>Would you like to add it as a Goal?",Ix_="Conversation Date",Sx_="Conversation Duration",Ax_="Select your answer(s) to continue...",Ex_="Share your thoughts about the main topic or focus...",Tx_="Select one or more options",jx_="Other notes from the conversation (optional)",Nx_="Share your thoughts...",Px_="Make this a private note",qx_="Save CONVERSATION",Rx_="Yes, view student goals",Lx_="Please set time 1-1 conversation",Mx_="Type your answer here...",Dx_="Remove Bulk",Bx_="Students with concerning metrics",Ox_="This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%",Gx_="of students have concerned metrics",zx_="have metrics <40%",Fx_="All students have good metrics",Hx_="Students with at least One Concerned metric ({{number}})",Vx_="Concerned metric(s)",Wx_="Check-in Date",Ux_="Veracross Setting",Yx_="Time Veracross Sync (HH)",Xx_="Import Veracross",Zx_="Open Field Questions",Jx_="Open Apply Setting",Qx_="Time Open Apply Sync (HH)",Kx_="Import Open Apply",e2_="Conversations",t2_="Add new check-in",_2_="Started at",s2_="Conversation Goal",n2_="Target Monthly Conversation Goal for Teachers",o2_="Target Monthly Conversation Goal for Counselors",a2_="Target Monthly Conversation Goal for Support Teachers",i2_="Already happened",r2_="Happening now",c2_="Has this conversation already taken place, or is it happening now?",l2_="Log 1-1 Conversation",d2_="Note Log and<br/>Scaffolding",u2_="Student Review",h2_="Date of conversation",m2_="Learning Strategy Used",g2_="Created on",p2_="Save Review",y2_="Write your most important learning here...",f2_="All Set",w2_="Have you used any learning strategies?",v2_="Select the learning strategy",b2_="Log a 1-1 Conversation",$2_="Save 1-1 log note",k2_="View 1-1 Note",x2_="Please enter a description of the conversation.",C2_="Check-Ins",I2_="Start Check-in",S2_="Select the teacher or counselor asking you to check in. If you have more than one teacher, choose any teacher in the class. All the teachers and counselors listed can view your check-ins.",A2_="Here you can find all the notes and 1-1 conversations logs the student has.",E2_="Back to Notes and Logs",T2_="Student's Review",j2_="Other notes",N2_="Student's Perceived<br/>Usefulness",P2_="Student Feedback",q2_="Note Category",R2_="Select Note Category",L2_="Save note",M2_="Type the main focus of this session",D2_="Please add note title",B2_="Notes and Logs",O2_="Survey Portal",G2_="Integrations",z2_="External Api",F2_="Teacher Well-Being",H2_="Frequency and Setup",V2_="Well-Being Dashboard",W2_="Go to dashboard",U2_="Your responses have been recorded and will help us better understand and support your well-being journey.",Y2_="You can view your personal well-being dashboard anytime to track your progress over time.",X2_="Remember: Your individual responses remain private and confidential. Only aggregated data is shared with school leadership.",Z2_="Check-in Complete!",J2_="Schedule a Conversation",Q2_="Select a contact to speak with",K2_="What would you like to discuss?",e0_="Please describe what you'd like to talk about or any specific concerns you have...",t0_="Wellbeing Sections",_0_="School Monthly Usage",s0_="Location",n0_="Edit My Profile",o0_="Save new password",a0_="Teacher code",i0_="My Well-being",r0_="My Well-Being Check-in",c0_="My Sessions",l0_="Your personal data will <strong>not be shared</strong> with anyone else",d0_="School leadership will only see aggregated data.",u0_="Save Filters",h0_="Clear All Filters",m0_="My Well-Being Check-in",g0_="unless you specifically choose to do this.",p0_="Physical Well-Being",y0_="Emotional Well-Being",f0_="Social Well-Being - Relationships",w0_="Social Well-Being - Environment",v0_="Intellectual Well-Being",b0_="Colleague or staff member you'd like to praise or thank?",$0_="Wellbeing Finished",k0_="Take a Moment for You",x0_="It’s time to take care of yourself. Start your Well-Being Check-In to reflect on how you’re doing and receive the support you deserve.",C0_="START CHECK-IN NOW",I0_="I'LL DO IT LATER",S0_="Number of conversations",A0_="Number of expected conversations based on the goal",E0_="Search for a student",T0_="Survey resulting in scheduled sessions",j0_="Current Class Grade",N0_="These are the answers from classroom teachers.",P0_="Total Responses",q0_="Readiness Trends",R0_="The note will be visible to the student",L0_=' unless you check the "Make this a private note" box',M0_="Do you still wish to save?",D0_="yes, i'm sure!",B0_="Delete survey",O0_="Are you sure to delete {{number}} survey(s)?",G0_="Delete 1-1",z0_="Are you sure to delete this one to one?",F0_="Delete check-in",H0_="Are you sure to delete this check-in?",V0_="Teachers' Well-Being Dashboard",W0_="My Well-Being Dashboard",U0_="Understand the metrics about the educator's wellness and environment",Y0_="Understand the metrics about my wellness and environment",X0_="Engagement",Z0_="Total 1-1 Conversations",J0_="Educators without<br/>check-ins",Q0_="Educators without Check-ins",K0_="educators haven't completed check-ins in the last 30 days",e3_="You can send individual requests or bulk reminders to all educators",t3_="Department",_3_="Last check-in",s3_="Request check-in",n3_="Send bulk reminder",o3_="Physical",a3_="Self-care",i3_="Relationships Well-Being",r3_="Self-Care Well-Being",c3_="Environment",l3_="Environment Well-Being",d3_="Intellectual",u3_="The data presented here comes from the check-ins.",h3_="Charts will appear once over 20% of educators<br/>have completed their check-ins.",m3_="Total 1-1 Requested",g3_="Wellbeing Questions",p3_="Wellbeing section",y3_="Spiritual Well-Being",f3_="Personal Learning Plans",w3_="A single place to view and navigate all student PLPs",v3_="Last Updated",b3_="Search students by name or email...",$3_="All Grades (select one or more)",k3_="Transition Plans",x3_="A single place to view and navigate all student transitions",C3_="Learning Plans",I3_="选择头像",S3_="从图库中选择头像,或上传您自己的图片。",A3_="选择图片",E3_="View Check-in",T3_={dashboard:IGt,user:SGt,question_bank:AGt,email_template:EGt,custom_alert:TGt,set_up:jGt,media_gallery:NGt,district_school_list:PGt,export_to_pdf:qGt,the_data_is_taken_from_the_home_screen:RGt,make_sure_everything_is_set_correctly_before_exporting:LGt,cancel:MGt,hey:DGt,readiness_to_learn:BGt,high_impact_learning_strategies:OGt,"1_to_1":"一对一",check_in:GGt,check_ins:zGt,reflection:FGt,conferences:HGt,safety:VGt,student_by_age:WGt,students_by_designation:UGt,calendar:YGt,gender:XGt,grade:ZGt,current_grade:JGt,student_name:QGt,teacher_name:KGt,start_date:ezt,end_date:tzt,tooltip_content_readiness_to_learn_chart:_zt,tooltip_content_high_impact_chart:szt,tooltip_content_1_to_1_chart:nzt,tooltip_content_class_reflection_chart:ozt,tooltip_content_conference_chart:azt,tooltip_content_safety_chart:izt,tooltip_content_student_by_age_chart:rzt,tooltip_content_students_by_designation:czt,total_1_to_1:lzt,total_check_in:dzt,total_check_ins:uzt,total_1_to_1_time:hzt,total_conferences:mzt,total_conferences_time:gzt,total_class_reflection_check_ins:pzt,create_user:yzt,edit_user:fzt,change_password:wzt,type_something_to_search_by_user_name:vzt,total_of_users:bzt,name:$zt,email:kzt,age:xzt,role:Czt,active_status:Izt,action:Szt,active:Azt,inactive:Ezt,create:Tzt,update:jzt,first_name:Nzt,date_of_birth:Pzt,last_name:qzt,roles:Rzt,status:Lzt,send_forgot_password_link:Mzt,download_user_data:Dzt,current_password:Bzt,new_password:Ozt,confirm_password:Gzt,save:zzt,type_something_to_search_question:Fzt,type_something_to_search_category:Hzt,total_of_questions:Vzt,create_question:Wzt,edit_question:Uzt,question_type:Yzt,category:Xzt,sub_category:Zzt,question_text:Jzt,text:Qzt,is_default_question_for_one_to_one:Kzt,default_question_for_students_or_teachers:eFt,is_default_question_general_class:tFt,default_question_general_for_students_or_teachers:_Ft,before_session:sFt,edit_custom_alert:nFt,create_custom_alert:oFt,total_of_custom_alert:aFt,number_of_sessions:iFt,number_of_students:rFt,begin_date:cFt,duration_days:lFt,students:dFt,create_skill:uFt,edit_skill:hFt,total_of_skills:mFt,description:gFt,skill:pFt,parent_category:yFt,edit_subject:fFt,create_subject:wFt,total_of_subjects:vFt,color:bFt,create_learning_support_category:$Ft,edit_learning_support_category:kFt,create_category:xFt,edit_category:CFt,total_of_learning_support_categories:IFt,default_color:SFt,edit_strategy:AFt,create_strategy:EFt,create_learning_strategy:TFt,total_of_strategies:jFt,strategy_name:NFt,question:PFt,detail:qFt,strategy:RFt,best_fit:LFt,create_goal_example:MFt,edit_goal_example:DFt,total_of_goal_examples:BFt,short_term_target_examples:OFt,goal_example:GFt,edit_badge:zFt,create_badge:FFt,total_of_badges:HFt,icon:VFt,badge:WFt,badge_image:UFt,edit_semester:YFt,create_semester:XFt,update_school_break_month:ZFt,total_of_semesters:JFt,total_of_academicyear:QFt,semester:KFt,breaking_month:eHt,change_breaking_month:tHt,school_year_break_month:_Ht,edit_blank_day:sHt,create_blank_day:nHt,total_of_blank_days:oHt,start_time:aHt,end_time:iHt,school_blank_day:rHt,edit_point:cHt,create_new_point:lHt,total_of_point:dHt,label:uHt,value:hHt,break_point:mHt,update_break_point:gHt,maximum_number_of_admins:pHt,maximum_number_of_assistants:yHt,maximum_number_of_students:fHt,maximum_number_of_teachers:wHt,request_to_this_plan:vHt,type_something_to_search_reflection_result:bHt,user_deleted:$Ht,export_user_data:kHt,alert_delete_user:xHt,delete_user:CHt,alert_delete_teacher:IHt,list_students:SHt,student_email:AHt,current_teacher_name:EHt,current_teacher_email:THt,change_save:jHt,select_teacher_change:NHt,current_assistant_name:PHt,current_assistant_email:qHt,remove_assistant:RHt,switch_assistant:LHt,select_assistant_change:MHt,select_assistant:DHt,welcome_email_resend:BHt,send_for_selected_users:OHt,user_name:GHt,user_email:zHt,level:FHt,use_for:HHt,admin_training:VHt,teacher_training:WHt,counselor_training:UHt,created_time:YHt,total_reflections:XHt,student_training:ZHt,create_designation:JHt,total_of_designation:QHt,designations:KHt,designations_lc:eVt,edit_designation:tVt,confirm:_Vt,hello:sVt,todays_1_1:nVt,todays_check_in:oVt,todays_Conferences:aVt,next_meeting:iVt,next_conference:rVt,todays_schedule:cVt,action_points:lVt,upcoming:dVt,see_all_action_points:uVt,add:hVt,edit_action_point:mVt,add_action_point:gVt,title:pVt,type_title:yVt,subject:fVt,class:"班级",select_date:wVt,date:vVt,select_time:bVt,time:$Vt,notification:kVt,no_notification:xVt,day:CVt,week:IVt,mark_as_done:SVt,delete:"删除",my_students:AVt,download_template:EVt,import_csv:TVt,add_new:jVt,show_only_work_as_assistant:NVt,show_only_work_as_teacher:PVt,last_1_to_1:qVt,last_check_in:RVt,last_conference:LVt,total_time:MVt,assistant_name:DVt,work_as_assistant:BVt,assign_assistant:OVt,view:GVt,history:zVt,custom_recurrence:FVt,repeat_every:HVt,repeat_on:VVt,never:WVt,on:UVt,after:YVt,pick_a_date:XVt,pick_a_time:ZVt,change_date:JVt,change_time:QVt,apply:KVt,new_1_to_1:eWt,new_check_in:tWt,do_you_want_to_talk_with_teacher:_Wt,start_now:sWt,book_for_later:nWt,select_category:oWt,search_question_category:aWt,no_question:iWt,select_question:rWt,select_student:cWt,select_staff:lWt,staff_name:dWt,select_teacher:uWt,do_you_want_to_talk_with:hWt,please_select_a_student:mWt,please_select_a_teacher:gWt,please_provide_a_valid_student:pWt,please_provide_a_valid_teacher:yWt,select_a_student_and_launch_a_new_session_or_book_one_for_later:fWt,you_have_no_teacher:wWt,search_teacher:vWt,select_date_time:bWt,book_1_to_1:$Wt,book_new_check_in:kWt,schedule:xWt,sessions_are_booked_as_10_minute_slots:CWt,does_not_reoccur:IWt,time_must_be_between_8_am_and_6_pm:SWt,from:AWt,to:EWt,show_only_favorites:TWt,show_only_conversation:jWt,duration:NWt,favorite:PWt,open:qWt,no_data:RWt,schedule_detail:LWt,are_you_sure_you_want_to_cancel_this_schedule:MWt,completed_1_to_1:DWt,completed_check_in:BWt,done:OWt,what_do_you_want_to_talk_about:GWt,session_type:zWt,what_is_this_session_type:FWt,how_are_you_feeling_about_each_area_right_now:HWt,sleep_nutrition_exercise_physical_health_and_mental_health:VWt,goals_activities_habits_and_strategies:WWt,overall_how_are_you_feeling_today:UWt,what_is_your_level_of_pride_in_yourself_today:YWt,how_are_you_feeling_today:XWt,how_much_did_you_learn_from_this_session:ZWt,what_is_the_most_important_thing_you_learned_from_this_session:JWt,your_next_meeting:QWt,today_at:KWt,choose_if_you_want_to_do_it_now_or_if_you_would_like_to_book_for_later:eUt,edit:tUt,phone_number:_Ut,second_phone_number:sUt,health_note:nUt,address:oUt,mtss:aUt,note:iUt,no_schedule:rUt,my_notes:cUt,private_note:lUt,goal_progress:dUt,view_all_goals:uUt,completed:hUt,student_information:mUt,top_learning_strategies:gUt,perceived_usage:pUt,total_number_of_times_seleted:yUt,energy:fUt,focus:wUt,happiness:vUt,stress:bUt,one_to_one:$Ut,class_reflection:kUt,conference:xUt,learning_progress:CUt,cant_export_now_please_try_again:IUt,view_data:SUt,learning_strategies:AUt,strategies:EUt,number_of_used:TUt,next:jUt,my_conferences:NUt,select_a_student_and_launch_a_new_conference_or_book_one_for_later:PUt,you_have_no_student:qUt,this_is_a_required_field:RUt,please_select_question_category:LUt,book_conferences:MUt,final_score:DUt,new_conference:BUt,search_student:OUt,search_staff:GUt,"1_1_conversation":"一对一对话",meeting_schedule:zUt,class_schedule:FUt,more_questions:HUt,conference_rubric:VUt,unlock:WUt,before_clicking_submit:UUt,your_session_was:YUt,mins:XUt,min:ZUt,submit:JUt,are_you_sure_to_complete:QUt,be_sure_to_check_completed_all:KUt,teacher_choice:e7t,student_choice:t7t,agreement:_7t,personal_learning_plan:s7t,personal_interests:n7t,allow_student_to_edit:o7t,strengths_and_challenges:a7t,significant_strengths:i7t,strengths:r7t,challenges:c7t,significant_challenges:l7t,how_my_teachers_can_help_me_learn:d7t,about_my_learning:u7t,accommodations:h7t,goals:m7t,this_goal_is_showing_in_the_student_conference_rubric_are_you_sure_to_delete_it:g7t,activity_circles:p7t,friend_circles:y7t,are_you_ready_to_learn:f7t,class_schedules:w7t,add_class_schedule:v7t,class_date:b7t,class_name:$7t,day_period:k7t,teacher_email:x7t,teacher_emails:C7t,note_type_class:I7t,my_note:S7t,add_new_note:A7t,all_category:E7t,personalized:T7t,show_only_favorite:j7t,search:N7t,note_title:P7t,student:q7t,note_detail:R7t,mark_as_favorite:L7t,type_a_note:M7t,please_select_student:D7t,settings:B7t,save_changes:O7t,activity_notifications:G7t,schedule_notifications:z7t,preschedule_notifications:F7t,yes:H7t,no:V7t,email_notification:W7t,send_me_email_notification:U7t,dont_send_me_email_notification:Y7t,type:X7t,teacher_request:Z7t,student_request:J7t,overview:Q7t,plp:K7t,my_student_1_to_1:eYt,my_student_check_in:tYt,my_student_conference:_Yt,received_date:sYt,class_impact_score:nYt,impact_score:oYt,iep:aYt,"1_to_1_conversation":"一对一讨论会",creator:iYt,last_modify:rYt,modify:cYt,student_reflections:lYt,external_reflection:dYt,external_class_reflection:uYt,reflections:hYt,class_reflections:mYt,add_reflection:gYt,add_class_reflection:pYt,class_type:yYt,teacher_image:fYt,send_to_teacher:wYt,send_now:vYt,missed:bYt,pending:$Yt,sent_date:kYt,go_to_the_student_plp:xYt,new_iep:CYt,edit_iep:IYt,type_of_iep:SYt,source_of_eligibility_forinitial:AYt,annual_goals:EYt,enter_a_date_range:TYt,add_objectives:jYt,add_goals:NYt,day_month_year:PYt,special_education:qYt,special_education_content:RYt,objectives_and_reporting_progress:LYt,objectives_and_reporting_progress_content:MYt,annual_goals_content:DYt,related_services:BYt,related_services_content:OYt,supplementary_aids_and_services:GYt,supplementary_aids_and_services_content:zYt,program_modifications_for_school_personnel:FYt,program_modifications_for_school_personnel_content:HYt,extent_of_nonparticipation:VYt,extent_of_nonparticipation_content:WYt,accommodations_in_assessment:UYt,accommodations_in_assessment_content:YYt,service_delivery:XYt,service_delivery_content:ZYt,transition_planning:JYt,transition_planning_content:QYt,present_levels:KYt,present_levels_content:eXt,signatures:tXt,iep_old_versionf_and_diagnostic_docs:_Xt,upload_file:sXt,add_interest:nXt,upload_image:oXt,supported_image_types:aXt,edit_interest:iXt,select_personal_interest_or_enter_personal_interest_here:rXt,add_note:cXt,select_best_fit:lXt,best_fits:dXt,select_strategies:uXt,selected_learning_strategies:hXt,do_you_want_to_delete_this_strengths_and_challenges:mXt,add_new_item:gXt,edit_item:pXt,select_teaching_strategies:yXt,selected_teaching_strategies:fXt,add_title:wXt,my_learning:vXt,do_you_want_to_delete_this_about_my_learning:bXt,edit_my_learning:$Xt,add_my_learning:kXt,select_about_learning_or_enter_about_learning_here:xXt,accommodation:CXt,all_categories:IXt,do_you_want_to_delete_this_accommodation:SXt,edit_accommodation:AXt,add_accommodation:EXt,all:TXt,all_status:jXt,goal_type:NXt,add_new_goal:PXt,goal_detail:qXt,select_status:RXt,goal_baseline:LXt,objective:MXt,goal_details:DXt,goals_type:BXt,edit_goal_detail:OXt,uploaded_files:GXt,optional:zXt,edit_baseline:FXt,edit_friend:HXt,add_friend:VXt,search_friend:WXt,friend_type:UXt,edit_activity:YXt,add_activity:XXt,search_activity:ZXt,activity:JXt,activity_type:QXt,select_or_type_an_activity:KXt,action_needed:eZt,external:tZt,student_survey:_Zt,view_survey:sZt,create_a_survey:nZt,survey_from:oZt,review:aZt,publish_survey:iZt,total_surveys:rZt,flags:cZt,scheduled_session:lZt,total_survey_done:dZt,total_survey_not_done:uZt,list_survey:hZt,surveys:mZt,survey:gZt,create_survey:pZt,my_survey:yZt,counselor_name:fZt,survey_title:wZt,deadline:vZt,day_left:bZt,replied_date:$Zt,session:kZt,flag:xZt,external_email:CZt,scheduled_now:IZt,session_schedule:SZt,session_scheduled:AZt,search_survey:EZt,total_survey:TZt,survey_result:jZt,check_in_from:NZt,received_today_at:PZt,preview_survey:qZt,complete_survey:RZt,"you_will_not_be_able_to_edit_this_survey_once_published_._are_you_sure_you_want_to_continue_?":"发布后您将无法编辑此调查。您确定要继续吗?",do_you_want_to_share_a_survey_to_teachers:LZt,you_can_share_this_survey_to_teachers_to_get_more_insight_about_your_student:MZt,skip:DZt,survey_questions:BZt,add_survey_question:OZt,additional_question:GZt,add_additional_question:zZt,save_favorite:FZt,save_as_favorite:HZt,favorite_survey:VZt,slider:WZt,questions:UZt,insert_all_question:YZt,remove_all_question:XZt,insert_question:ZZt,survey_templates:JZt,insert_template:QZt,share_survey_teacher:KZt,suggested_teacher:eJt,email_contents:tJt,send_survey:_Jt,review_survey_detail:sJt,a_number_of_student:nJt,date_and_time:oJt,scale:aJt,answer:iJt,add_question:rJt,save_question:cJt,external_survey:lJt,ib_learner_profile:dJt,set_deadline:uJt,duplicate_survey:hJt,share_survey:mJt,new_survey:gJt,assign_counselor:pJt,select_counselor:yJt,select_support_teacher:fJt,assign_support_teacher:wJt,switch_support_teacher:vJt,support_teacher_name:bJt,user_for_question:$Jt,requested_reflection:kJt,request_class_reflection:xJt,share_survey_to_teacher:CJt,select_form:IJt,switch_counselor:SJt,remove_counselor:AJt,current_counselor_email:EJt,current_counselor_name:TJt,select_counselor_change:jJt,current_support_teacher_name:NJt,current_support_teacher_email:PJt,remove_support_teacher:qJt,select_support_teacher_change:RJt,filter_calendar:LJt,average_student_safety:MJt,is_active:DJt,top_5_most_used_strategies:BJt,preparedness:OJt,average_student_stress:GJt,success_indicators:zJt,learning_process:FJt,survey_dashboard:HJt,response_rate:VJt,top_5_most_survey_used:WJt,question_intervention:UJt,student_pressure:YJt,overall_readiness_to_learn:XJt,view_calendar:ZJt,student_wellness:JJt,view_data_dashboard:QJt,view_a_student:KJt,view_student:eQt,average_safety:tQt,average_stress:_Qt,average_energy:sQt,average_focus:nQt,average_happiness:oQt,vs_last_month:aQt,of_students_are_not_feeling_safe:iQt,students_marked_themselves_as_unsafe:rQt,marked_themselves_as_unsafe:cQt,are_not_feeling_safe:lQt,of_students_are_highly_stressed:dQt,flagged_with_high_stress:uQt,are_feeling_highly_stressed:hQt,select_a_student_to_see_their_profile_and_learning_plan:mQt,select_a_student_and_start_a_conversation_with_the_check_in_results:gQt,start:pQt,teacher_reflection:yQt,notes:fQt,student_reflection:wQt,view_latest_check_ins:vQt,"1-1s":"一对一","1_1":"1 月 1 日",this_week_s:bQt,missing_weekly_check_in:$Qt,add_new_student:kQt,"start_your_check-in_and_you_can_also_request_a_conversation_with_your_teacher_after":"开始签到。此后,您还可以请求与老师进行对话。",start_check_in:xQt,no_events_today:CQt,today_schedule:IQt,high_stressed:SQt,unsafe:AQt,average:EQt,see_them:TQt,goal:jQt,ended_over_24_hours_ago:NQt,start_a_1_1_conversation:PQt,view_results:qQt,request_check_in:RQt,last:LQt,latest_check_ins:MQt,students_who_missing_weekly_check_in:DQt,this_student_does_nt_have_missing_check_in:BQt,no_student_missing_weekly_check_in:OQt,start_1_1_conversation:GQt,select_a_teacher_and_start_a_check_in:zQt,this_weeks_check_ins:FQt,this_weeks_1_1s:HQt,this_student_does_nt_have_1_1_in_this_week:VQt,this_student_does_nt_have_check_in_in_this_week:WQt,no_last_or_requested_check_ins:UQt,students_who_are_highly_stressed:YQt,students_who_are_not_feeling_safe:XQt,students_missing_a_weekly_check_in:ZQt,student_stress_by_zone:JQt,student_distribution:QQt,surveys_flags:KQt,yellow_flags:eKt,green_flags:tKt,red_flags:_Kt,show_by:sKt,survey_overview:nKt,share_note:oKt,survey_summary:aKt,survey_name:iKt,date_created:rKt,"#of_recipients":"#收件人","#of_answers":"答案数",cut_off_time:cKt,created_by:lKt,responses_distribution:dKt,ratings_of_questions:uKt,show_results_for:hKt,responses_and_response_rates_per_question:mKt,view_list_of_students:gKt,view_list_of_responses:pKt,number_of_responses:yKt,number_of_not_responses:fKt,question_rating:wKt,no_response_yet:vKt,external_survey_is_highlight_in_the_table:bKt,reset_password:$Kt,correct:kKt,incorrect:xKt,the_correct_answer_is:CKt,the_correct_answers_are:IKt,action_need:SKt,view_answers:AKt,survey_results:EKt,weeks:TKt,months:jKt,scheduled_sessions:NKt,active_surveys:PKt,view_responses:qKt,download_csv:RKt,create_new_survey:LKt,go_to_individual_survey_responses:MKt,you_can_only_select_number_kpis_at_a_time:DKt,you_can_only_select_number_kpis_at_a_time_To_select_a_new_one_please_switch_off_one_of_the_previous_ones:BKt,"download.csv":"下载.CSV",last_check__in:OKt,how_many_times_a_strategy_has_been_chosen:GKt,these_metrics_come_from_students_check_ins_filter_above_to_change_the_data_set:zKt,not_yet_started:FKt,in_progress:HKt,export_check_ins_to_csv:VKt,these_metrics_come_from_the_conference_rubric_only_teacher_responses_are_scored:WKt,please_save_first:UKt,print_date:YKt,goal_base_line:XKt,print:ZKt,download:JKt,my_daily_motivation:QKt,select_deadline:KKt,export:"导出",image_is_a_required:ee_,old_iep:te_,create_next_years_iep:_e_,write_something_optional:se_,the_effectiveness_of_learning_strategies_by_students_feedback:ne_,perceived_usefulness:oe_,performance:ae_,not_enough_challenge_leading_to_boredom_and_lack_of_interest:ie_,calm_and_relaxed_but_not_enough_motivation_to_perform_at_my_best:re_,manageable_levels_of_stress_allowing_me_to_perform_at_my_best:ce_,still_in_control_but_starting_to_feel_the_pressure:le_,too_much_pressure_and_really_struggling_to_manage_my_workload:de_,import_emails_by_csv:ue_,request_number:he_,select_or_input_class_type:me_,send_request:ge_,start_reflection:pe_,customize_reflection:ye_,include_section_you_want_to_appear:fe_,time_of_day:we_,iep_template:ve_,one_roster:be_,sandbox:$e_,"well-being":"幸福感","self-efficacy":"自我效能",information_roster_sourced_id_full_name_email:ke_,sync_roster_users:xe_,export_to_csv:Ce_,user_list:Ie_,assign_student:Se_,one_to_one_question:Ae_,class_reflection_question:Ee_,conference_question:Te_,actions:je_,order:Ne_,user_for:Pe_,question_category:qe_,template_survey:Re_,total_of_category:Le_,create_template:Me_,number_of_question:De_,mandatory:Be_,well_being:Oe_,self_efficacy:Ge_,no_question_to_display:ze_,privacy_policy:Fe_,profile:He_,role_change:Ve_,log_out:We_,data_dashboard:Ue_,deep_learning_tools:Ye_,my_profile:Xe_,phone:Ze_,calendar_id:Je_,old_password:Qe_,confirm_new_password:Ke_,select_a_student_and_start_a_check_in:et_,anything_is_possible_anything_can_be:tt_,edit_picture:_t_,create_new_student:st_,grade_level:nt_,health_notes:ot_,students_parent_information:at_,parent_1:it_,parent_2:rt_,in_app_notifications:ct_,turn_on_all_notifications:lt_,notify_me_when:dt_,a_student_schedules_a_1_1:ut_,a_student_schedules_a_conference:ht_,a_student_completes_a_conference_self_assessment_rubric:mt_,a_student_or_teacher_completes_a_class_reflection:gt_,action_points_are_due_based_on_chosen_schedule:pt_,a_student_hasnt_logged_1_1_in_the_past_28_days:yt_,email_notifications:ft_,turn_on_all_emails:wt_,a_student_responds_to_a_1_1_readiness_to_learn_with_no:vt_,a_student_reported_a_low_safety_score_on_a_check_in:bt_,continue_as:$t_,admin:kt_,counselor:xt_,support_teacher:Ct_,teacher_assistant:It_,add_parent_1_information:St_,add_parent_2_information:At_,parent_role:Et_,all_activity:Tt_,academic_year:jt_,all_of_the_students_report_manageable_stress_levels:Nt_,all_of_the_students_report_manageable_safety_levels:Pt_,"100_00_of_students_are_not_feeling_safe":"100.00% 的学生感觉不安全",growth:qt_,relationships:Rt_,productivity:Lt_,academics:Mt_,percent:Dt_,unmotivated:Bt_,comfort:Ot_,stretch:Gt_,strain:zt_,overwhelmed:Ft_,edit_student_profile:Ht_,teacher:Vt_,created:Wt_,student_phone_number:Ut_,designation:Yt_,e_mail:Xt_,general_ed_teacher:Zt_,select_general_ed_teacher:Jt_,please_select_teacher:Qt_,assign:Kt_,be_silly_be_honest_be_kind:e__,do_you_want_to_change_to_role_counselor_to_open:t__,search_assistant:___,baseline:s__,timeframe:n__,friends:o__,best_friends:a__,supportive:i__,potential_friends:r__,like:c__,love:l__,interested:d__,curious:u__,improvement_in_study_habits_grades_sports_clubs_or_personal_projects:h__,family_friends_and_teachers:m__,accomplishing_important_tasks_and_limiting_distractions:g__,homework_studying_and_grades:p__,my_ability_to_be_successful:y__,whats_on_your_mind:f__,now_look_back_at_your_responses_from_today:w__,do_you_want_to_change_to_role_student_to_open:v__,student_has_started_this_one_to_one_are_you_sure_to_delete:b__,do_you_want_to_change_to_role_support_teacher_to_open:$__,student_has_not_started_this_conference_are_you_sure_to_delete:k__,search_support_teacher:x__,search_counselor:C__,how_productive_i_was_in_class_today:I__,not_enough_stress:S__,too_much_stress:A__,organization:E__,self_awareness:T__,self_directed_learning:j__,self_advocacy:N__,self_management:P__,conceptual_change_conversation:q__,concrete_examples:R__,elaboration:L__,dual_coding:M__,note_type_and_class:D__,edit_note:B__,not_done:O__,red:G__,yellow:z__,green:F__,uwcsea_sg_climate_survey:H__,connections_with_adults_and_peers:V__,holistic_learning_experiences:W__,my_health_and_wellbeing:U__,open_ended_questions:Y__,do_you_need_some_extra_help_or_support:X__,sdq_standards_and_difficulties_questionaire:Z__,sdq_strengths_and_difficulties_questionnaire_supplemental:J__,close:Q__,student_responses:K__,anonymous_responses:es_,teacher_perceived:ts_,prepared_for_class:_s_,missing_class_assignments:ss_,completed_classwork:ns_,asked_for_help_when_needed:os_,clear:as_,missing_reflections:is_,total_students_missing_late_assignments:rs_,subject_class:cs_,chart_type:ls_,request_from:ds_,are_you_sure_you_want_to_delete_this_item:us_,yes_delete:hs_,completed_conference:ms_,my_learning_plan:gs_,my_learning_plan_beta:ps_,winning_doesn_t_always_mean_being_first_winning_means_you_re_doing_better_than_you_ve_done_before:ys_,integrating_learningwith_previous_knowledge:fs_,improving_student_self_efficacy:ws_,my_check_in:vs_,what_do_you_want_to_do_differently:bs_,to_do:$s_,my_class_reflections:ks_,send_reflection:xs_,type_2_characters_to_search:Cs_,create_time:Is_,do_you_want_to_remove_this_user:Ss_,warning:As_,do_you_want_to_impersonate_this_user:Es_,assistant:Ts_,parent:js_,choose_file:Ns_,do_you_want_to_remove_this_question:Ps_,select:qs_,do_you_want_to_remove_this_category:Rs_,total_of_templates:Ls_,template_name:Ms_,category_name:Ds_,created_date:Bs_,do_you_want_to_remove_this_email_template:Os_,create_email_template:Gs_,mail_subject:zs_,mail_subject_nm:Fs_,mail_body:Hs_,mail_params:Vs_,params:Ws_,meaning:Us_,add_attachment:Ys_,skills:Xs_,subjects:Zs_,learning_support_categories:Js_,goal_examples:Qs_,student_badges:Ks_,blank_days:en_,csv_import:tn_,band_scores:_n_,license:sn_,switch_teacher:nn_,question_scaffolding:on_,training:an_,type_something_and_press_enter_to_add_short_term_target_examples:in_,import_users:rn_,import_class_reflection:cn_,download_users_data:ln_,do_you_want_to_remove_this_assistant:dn_,do_you_want_to_remove_this_counselor:un_,do_you_want_to_remove_this_support_teacher:hn_,send:mn_,do_you_want_to_remove_this_designation:gn_,new_folder:pn_,upload:yn_,type_something_to_search_by_file_name:fn_,systems:wn_,create_template_system:vn_,created_at:bn_,do_you_want_to_remove_this_template:$n_,one_roster_setting:kn_,clever_setting:xn_,users:Cn_,one_roster_config:In_,end_point_url:Sn_,client_id:An_,client_secret:En_,import_one_roster:Tn_,import_from_zip_file:jn_,import_from_restful_api:Nn_,non_existent_users:Pn_,type_something_to_search_users:qn_,create_account_for_selected_users:Rn_,help:Ln_,sandbox_mode:Mn_,off:Dn_,restore_sandbox_database:Bn_,turn_on:On_,turn_off:Gn_,restore:zn_,edit_profile:Fn_,on_track_going_well:Hn_,guide:Vn_,make_each_day_your_masterpiece:Wn_,consistently:Un_,frequently:Yn_,sometimes:Xn_,rarely:Zn_,not_applicable:Jn_,i_schedule_all_homework_and_studying_through_google_calendar_or_a_planner_or_organizer_as_soon_as_it_is_assigned:Qn_,i_maintain_a_clean_and_organized_system_for_keeping_and_reviewing_physical_notes_handouts_and_packets_for_each_class:Kn_,i_maintain_a_clean_and_organized_system_for_storing_digital_files_as_a_result_i_can_easily_find_all_of_my_digital_files:eo_,i_keep_my_school_inbox_organized_and_important_emails_are_not_missed:to_,i_have_a_clear_understanding_of_my_strengths:_o_,i_know_and_understand_how_teachers_can_best_help_me_in_class:so_,i_know_and_understand_my_accommodations:no_,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_outside_of_class:oo_,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_in_class:ao_,i_have_a_clear_understanding_of_my_challenges:io_,i_have_an_accurate_idea_of_how_i_am_doing_in_my_classes_and_know_what_i_need_to_do_to_improve:ro_,i_use_the_first_25_minutes_of_our_class_effectively_to_make_progress_on_my_goals:co_,i_use_the_homework_study_time_effectively:lo_,achieving:do_,significant_progress:uo_,moderate_progress:ho_,slight_progress:mo_,no_progress:go_,cope_with_stressful_situations:po_,improve_my_sleeping_habits:yo_,i_promplty_address_and_deal_with_difficult_situations_instead_of_avoiding_them:fo_,i_appropriately_use_technology:wo_,i_create_a_note_during_or_after_meetings:vo_,i_effectively_study_for_upcoming_assessments:bo_,i_turn_in_all_homework_on_time_and_complete:$o_,i_get_the_right_amount_of_sleep_each_night:ko_,i_meet_with_my_teachers_outside_of_class_time:xo_,i_ask_questions_inside_and_or_after_class:Co_,when_needed_i_let_my_teachers_know_how_to_better_help_me_in_class:Io_,i_advocate_for_and_use_accommodations_i_need_in_all_of_my_classes:So_,planning:Ao_,making_connections_with_previous_learning:Eo_,providing_quality_feedback:To_,working_on_learning_goals:jo_,setting_or_reinforcing_high_expectations:No_,improving_effort:Po_,self_assessing:qo_,predicting:Ro_,help_seeking_behaviors:Lo_,reflecting:Mo_,low:Do_,high:Bo_,how_much_did_you_learn_from_this_conference:Oo_,are_there_any_observations_or_feedback_you_want_to_share:Go_,what_are_you_doing_well_that_you_want_to_continue:zo_,what_is_something_you_have_learned_while_working_towards_achieving_your_goals:Fo_,english_language_or_literature:Ho_,language_class:Vo_,ridge_charts:Wo_,bar_charts:Uo_,line_charts:Yo_,start_of_day:Xo_,mid_morning:Zo_,before_lunch:Jo_,mid_afternoon:Qo_,last_class_of_the_day:Ko_,student_only:ea_,teacher_only:ta_,did_the_student_have_all_needed_materials_for_this_class:_a_,does_the_student_have_any_missing_assignments:sa_,did_the_student_complete_today_s_classwork:na_,did_the_student_ask_for_help_when_needed:oa_,please_rate_the_student_s_participation_in_class:aa_,please_rate_the_student_s_peformance_in_class:ia_,how_useful_were_the_accommodations:ra_,do_you_have_any_concerns_or_student_success_to_share:ca_,not_at_all:la_,very_helpful:da_,not_sent:ua_,well_being_is_feeling_good_mentally_in_your_head_and_physically_in_your_body_do_you_have_habits_and_routines_that_help_you_look_after_yourself_some_people_boost_their_well_being_by_eating_healthily_being_active_spending_time_with_friends_and_family_doing_things_they_enjoy_or_helping_others:ha_,growth_is_all_about_becoming_the_best_version_of_yourself_this_is_done_through_learning_trying_new_things_working_hard_and_taking_risks_are_you_happy_with_the_progress_you_are_making_towards_your_goals_and_in_other_areas_of_your_life:ma_,relationships_are_connections_with_other_people_good_relationships_have_trust_respect_honesty_and_safety_how_are_you_getting_on_with_family_friends_and_teachers_do_you_have_relationships_that_bring_you_happiness_and_people_you_can_talk_to:ga_,productivity_is_about_getting_things_done_in_a_way_that_is_smarter_not_harder_this_means_you_know_what_needs_to_be_done_and_how_you_re_going_to_do_it_while_doing_your_work_today_were_you_able_to_help_yourself_stay_focused_and_finish_the_task:pa_,academics_relate_to_your_learning_through_work_you_do_at_school_and_home_are_you_doing_your_classwork_and_homework_every_day_do_your_grades_show_your_teachers_parents_and_even_yourself_how_hard_you_are_working_to_learn:ya_,self_efficacy_is_when_you_believe_in_yourself_and_that_you_can_do_something_well_are_you_happy_with_something_you_have_done_well_today_do_you_think_you_can_be_successful_in_what_you_have_to_do_today:fa_,focus_is_when_you_pay_attention_to_a_task_or_a_person_and_dont_get_distracted_if_you_re_trying_to_focus_on_your_teacher_then_you_are_only_thinking_about_what_the_teacher_is_saying_have_you_been_able_to_stay_on_task_today_can_you_clear_your_mind_to_do_your_work:wa_,happiness_is_a_good_feeling_that_can_come_from_anything_you_enjoy_or_from_generally_being_satisfied_with_the_way_your_life_is_going_while_its_not_possible_to_be_happy_all_the_time_you_can_always_find_something_to_be_happy_about_has_there_been_a_moment_that_made_you_smile_today_what_things_people_activities_bring_you_joy_and_make_you_feel_good:va_,when_you_feel_safe_you_are_not_scared_or_in_danger_it_means_you_are_comfortable_and_happy_at_home_at_school_and_wherever_your_normal_activities_take_you_are_you_able_to_be_yourself_do_you_feel_like_people_care_about_you_and_that_your_thoughts_and_feelings_matter:ba_,stress_in_the_right_amount_is_actually_a_positive_thing_too_much_stress_causes_distress_which_makes_us_feel_like_we_re_losing_control_too_little_stress_means_we_re_not_engaged_or_challenged_the_right_amount_of_stress_for_each_of_us_helps_us_reach_our_goals_and_perform_at_our_best:$a_,after_looking_at_your_answers_today_are_you_ready_to_do_whats_asked_of_you_in_class_or_do_you_need_help_to_get_in_a_good_place_to_learn_being_ready_to_learn_means_your_mind_and_body_are_working_together_to_prepare_you_to_learn_new_things_and_deepen_your_understanding_of_the_learning_already_covered:ka_,how_helpful_was_our_conversation_today:xa_,being_proud_of_yourself_is_when_you_feel_good_about_something_you_did_or_who_you_are_as_a_person_how_satisfied_or_happy_are_you_about_your_actions_today:Ca_,what_is_the_one_thing_you_are_going_to_keep_doing_well_or_start_doing_differently_or_what_is_one_thing_you_learned_about_yourself_others_or_the_world_around_you:Ia_,energy_provides_the_strength_and_power_to_do_something_this_can_be_something_physical_like_running_a_race_or_mental_like_taking_an_assessment_do_you_feel_like_you_have_enough_energy_to_get_through_the_day_how_do_you_feel_about_your_energy_levels_at_the_moment:Sa_,student_has_not_started_this_check_in_are_you_sure_to_delete:Aa_,struggling_i_need_support:Ea_,some_well_being_issues:Ta_,generally_okay:ja_,most_well_being_issues_are_fine:Na_,feeling_great:Pa_,making_no_progress:qa_,aware_of_my_goals_but_making_little_progress:Ra_,making_some_progress:La_,good_growth_overall:Ma_,great_growth_in_all_areas:Da_,one_or_more_key_relationships_are_very_difficult:Ba_,one_or_more_key_relationships_are_a_little_tricky:Oa_,most_key_relationships_are_positive:Ga_,all_key_relationships_are_positive:za_,not_at_all_productive:Fa_,procrastinating:Ha_,meeting_some_deadlines:Va_,meeting_most_deadlines:Wa_,meeting_all_deadlines_comfortably:Ua_,major_challenges:Ya_,difficulties_in_some_areas:Xa_,on_target_in_some_areas:Za_,on_target_in_most_areas:Ja_,on_target_in_all_areas:Qa_,very_low_confidence:Ka_,lacking_some_self_belief:ei_,developing_and_improving:ti_,feeling_positive:_i_,super_confident:si_,always_distracted:ni_,mostly_distracted:oi_,sometimes_distracted:ai_,generally_focused:ii_,laser_focused:ri_,exhausted:ci_,often_tired:li_,feeling_okay:di_,good_energy:ui_,unhappy_most_of_the_time:hi_,bursting_with_energy:mi_,unhappy_some_of_the_time:gi_,more_positives_than_negatives:pi_,generally_happy:yi_,optimistic_and_positive_almost_all_of_the_time:fi_,in_danger:wi_,feeling_unsafe:vi_,some_concerns:bi_,feeling_safe:$i_,very_safe_and_secure:ki_,moderate:xi_,very_high:Ci_,how_much_did_the_conceptual_change_conversation_help_your_learning_improve:Ii_,how_much_did_discussing_ways_to_seek_help_during_this_session_help_your_learning_improve:Si_,how_much_did_a_focus_on_setting_or_reinforcing_high_expectations_during_this_session_help_your_learning_improve:Ai_,a_little:Ei_,a_lot:Ti_,after_session:ji_,high_pride:Ni_,low_pride:Pi_,what_is_on_your_mind:qi_,select_all:Ri_,attitude:Li_,behavior:Mi_,collaboration:Di_,confidence:Bi_,creativity:Oi_,developing_ideas:Gi_,exercise:zi_,finishing_tasks:Fi_,flexibility:Hi_,impulse_control:Vi_,listening:Wi_,long_term_memory:Ui_,math:Yi_,organization_of_materials:Xi_,processing_speed:Zi_,reading:Ji_,setting_and_achieving_goals:Qi_,short_term_memory:Ki_,sleep_hygiene:er_,speaking:tr_,starting_tasks:_r_,stress_and_anxiety:sr_,studying:nr_,time_management:or_,work_ethic:ar_,writing:ir_,high_expectations:rr_,i_learn_best_when_i_set_high_expectations_for_myself_that_encourage_me_to_do_more_than_the_minimum_expected:cr_,i_learn_best_when_i_recognize_my_successes_and_have_an_opportunity_to_celebrate_progress_and_achievements:lr_,integrating_learning_with_previous_knowledge:dr_,i_learn_best_when_i_connect_new_and_important_learning_to_previous_things_i_have_learned:ur_,learners_self_assessing:hr_,i_learn_best_when_i_self_assess_my_own_learning_with_guided_prompts_rubrics_and_or_support:mr_,learning_goals:gr_,i_learn_best_when_i_have_short_and_long_term_goals_that_i_m_working_on_and_know_where_i_am_on_my_goal_progress_this_might_also_include_me_creating_habits_and_routines_that_assist_me_in_achieving_my_goals:pr_,planning_and_predicting:yr_,i_learn_best_when_i_plan_future_actions_and_predict_what_will_happen_as_a_result_of_these_actions:fr_,quality_feedback:wr_,i_learn_best_when_i_know_what_good_work_looks_like_how_my_work_compares_to_good_work_and_what_i_need_to_do_to_improve_my_work_to_make_it_good:vr_,i_learn_best_when_i_have_time_to_reflect_on_my_learning_and_or_when_a_teacher_emphasizes_learning_opportunities_and_provides_time_to_reflect:br_,i_learn_best_when_i_learn_about_myths_and_misconceptions_around_a_concept_and_why_they_are_not_true_it_s_also_helpful_when_teachers_address_misconceptions_around_my_thinking_and_or_self_assessments_that_are_not_accurate:$r_,i_learn_best_when_i_am_encouraged_to_reach_out_for_help_whether_that_be_for_academic_support_guidance_advice_medical_assistance_social_emotional_support_etc_if_needed:kr_,target:xr_,session_focus:Cr_,what_was_the_main_focus_of_this_session:Ir_,academic:Sr_,assessments_and_homework:Ar_,custom:Er_,general:Tr_,habits_and_strategies:jr_,organization_and_planning:Nr_,school_life_balance:Pr_,sleep_habits:qr_,social_media_tik_tok_instagram_youtube_pinterest_etc:Rr_,role_playing_games_d_and_d_world_of_warcraft_pathfinder_etc:Lr_,environment_global_warming_sustainability_etc:Mr_,anime_my_hero_academia_hunter_x_hunter_one_piece_etc:Dr_,manga:Br_,graphic_novels:Or_,comics:Gr_,politics:zr_,television_stranger_things_heart_stopper_glow_up_etc_and_movies_shrek_marvel_encanto_etc:Fr_,music:Hr_,bluey:Vr_,stickers:Wr_,weather:Ur_,religion:Yr_,spirituality:Xr_,news_current_events:Zr_,sports:Jr_,cafe_culture_coffee:Qr_,fashion_design:Kr_,futurism_engineering_design_etc:ec_,science_fiction:tc_,wellness_meditation_mindfulness_etc:_c_,comedy:sc_,journalism:nc_,make_up:oc_,aesthetics_cottagecore_dark_academia_fairycore_etc:ac_,automotive_culture_race_cars_motorcycles_motor_bikes_etc:ic_,poetry_slam_poetry:rc_,horror_and_suspense:cc_,skiing_snowboarding:lc_,horseback_riding:dc_,magic:uc_,science_biology_chemistry_physics_etc:hc_,minecraft:mc_,graphic_design:gc_,survival_prepping:pc_,botany:yc_,film_study:fc_,first_responder_fire_ems_emt_police_etc:wc_,animals_domesticated_rescue_etc:vc_,animals_large_wild_etc:bc_,marine_biology:$c_,video_game_youtubers:kc_,hello_kitty:xc_,memes:Cc_,cony_and_brown:Ic_,pokemon:Sc_,select_significant_strengths_or_enter_significant_strengths_here:Ac_,i_learn_best_when_i:Ec_,i_have_difficulty_learning_when_i:Tc_,teachers_make_learning_easier_for_me_when_they:jc_,teachers_make_learning_more_difficult_for_me_when_they:Nc_,if_you_are_a_teacher_and_see_i_m_having_trouble_learning_in_class_you_can_help_me_by:Pc_,the_assignments_i_learn_the_most_from_are:qc_,the_assignments_i_sometimes_find_too_challenging_are:Rc_,chunking_tasks:Lc_,i_learn_best_when_my_teacher_breaks_down_large_tasks_or_projects_into_smaller_steps_and_estimates_or_helps_me_estimate_th_amount_of_time_each_step_will_require:Mc_,time_management_starting_tasks_finishing_tasks_planning:Dc_,bite_size_learning:Bc_,i_learn_best_when_my_teacher_breaks_down_new_learning_into_smaller_pieces_of_information_followed_by_opportunities_to_review_what_i_learned_and_identify_gaps_in_learning:Oc_,short_term_memory_staying_focused_impulse_control_self_awareness_listening_processing_speed:Gc_,breaks:zc_,i_learn_best_when_my_teacher_builds_in_short_breaks_into_each_class:Fc_,time_management_finishing_tasks_staying_focused_impulse_control_attitude_stress_and_anxiety_work_ethic:Hc_,happy_notes_home:Vc_,i_learn_best_when_my_teacher_send_positive_notes_emails_or_calls_home_to_celebrate_my_growth:Wc_,finishing_tasks_setting_and_achieving_goals_attitude_behavior_confidence_work_ethic:Uc_,growth_focused:Yc_,i_learn_best_when_my_teacher_focuses_on_my_growth_and_progress_rather_than_overall_achievement:Xc_,confidence_setting_and_achieving_goals_stress_and_anxiety:Zc_,avoid_spotlight:Jc_,i_learn_best_when_my_teacher_is_able_avoid_putting_me_in_the_spotlight_and_giving_me_space_and_time_to_prepare_when_i_do_need_to_present_also_allowing_for_recorded_presentations_rather_than_in_person_requirements_when_possible:Qc_,stress_and_anxiety_speaking_processing_speed:Kc_,frequent_check_ins:el_,i_learn_best_when_my_teacher_has_frequent_private_check_ins_to_ensure_i_am_on_track_this_also_helps_me_feel_safe_and_supported_in_class_ideas_for_check_ins_include_a_sticky_note_system_silent_signal_whisper_at_desk_side_but_we_can_agree_on_something_together:tl_,stress_and_anxiety_processing_speed_task_initiation_developing_ideas_planning_finishing_tasks_short_term_memory_staying_focused_self_advocacy_self_awareness:_l_,develop_rapport:sl_,i_learn_best_when_my_teacher_focuses_on_relationship_building_both_with_teachers_and_peers_creating_a_community_of_care_where_i_feel_connected_and_valued:nl_,stress_and_anxiety_behavior_attitude_confidence:ol_,explicit_prioritizations:al_,i_learn_best_when_my_teacher_shares_what_activities_are_must_do_recommended_or_completely_optional:il_,planning_processing_speed_finishing_tasks_listening_reading_writing_stress_and_anxiety_work_ethic_studying:rl_,planned_transitions:cl_,i_learn_best_when_my_teacher_previews_and_prepares_me_and_other_students_for_safety_drills_activity_changes_or_other_class_transitions:ll_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility:dl_,choices:ul_,i_learn_best_when_my_teacher_provides_as_many_choices_as_possible:hl_,attitude_behavior_work_ethic:ml_,movement:gl_,i_learn_best_when_my_teacher_provides_lots_of_planned_physical_movement_or_opportunities_for_movement_into_class:pl_,impulse_control_staying_focused:yl_,non_verbal_cues:fl_,i_learn_best_when_my_teacher_redirects_me_with_non_verbal_cues_to_redirect_me_when_possible_rather_than_verbally_redirecting_me:wl_,staying_focused_self_awareness_attitude_behavior_stress_and_anxiety_confidence:vl_,limit_direct_instruction:bl_,i_learn_best_when_my_teacher_doesnt_talk_too_long_and_gives_me_opportunities_to_learn_at_my_own_pace_using_materials_that_work_best_for_me:$l_,short_term_memory_staying_focused_impulse_control_listening_behavior_processing_speed:kl_,routines:xl_,i_learn_best_when_my_teacher_sets_and_maintains_consistent_routines_if_we_need_to_change_routines_i_know_about_the_changes_ahead_of_time:Cl_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility_starting_tasks:Il_,multimodal_learning:Sl_,i_learn_best_when_my_teacher_helps_us_learn_through_multiple_ways_including_reading_listening_watching_and_doing_important_concepts_are_not_taught_just_using_one_way_of_learning:Al_,staying_focused_listening_reading_writing_math_collaboration_processing_speed:El_,flexible_assessments:Tl_,i_learn_best_when_my_teacher_creates_a_variety_of_options_for_me_to_demonstrate_my_learning:jl_,listening_reading_writing_math_speaking_stress_and_anxiety_collaboration_processing_speed_studying:Nl_,flexible_feedback:Pl_,i_learn_best_when_my_teacher_regularly_gives_me_feedback_so_that_the_i_know_how_i_m_performing_and_what_i_can_do_to_continue_improving:ql_,planning_staying_focused_self_awareness:Rl_,pre_learning:Ll_,i_learn_best_when_my_teacher_provides_opportunities_to_learn_new_concepts_early_such_as_early_access_to_resources:Ml_,time_management_writing_reading_math_stress_and_anxiety_processing_speed:Dl_,understanding_checks:Bl_,i_learn_best_when_my_teacher_frequently_checks_in_with_me_to_see_if_i_ve_understand_new_learning:Ol_,starting_tasks_short_term_memory_staying_focused_impulse_control_self_advocacy_listening_processing_speed:Gl_,rubrics:zl_,i_learn_best_when_my_teacher_provides_learning_rubrics_early_and_refer_to_them_often_these_rubrics_help_me_understand_what_is_needed_for_me_to_demonstrate_my_learning_at_different_levels_of_performance:Fl_,studying_work_ethic_confidence_stress_and_anxiety_self_advocacy_time_management_planning_finishing_tasks:Hl_,graphic_organizers:Vl_,i_learn_best_when_my_teacher_uses_graphic_organizer_to_help_me_understand_what_we_are_learning:Wl_,listening_reading_writing_processing_speed_short_term_memory_developing_ideas_planning:Ul_,visuals:Yl_,i_learn_best_when_my_teacher_uses_lots_of_visuals_diagrams_infographics_pictures_etc_to_help_me_understand_what_are_we_learning:Xl_,short_term_memory_staying_focused_listening_reading_processing_speed:Zl_,sentence_stems:Jl_,i_learn_best_when_my_teacher_provides_sentence_stems_and_writing_promts_for_written_assignments:Ql_,developing_ideas_planning_starting_tasks_writing:Kl_,think_time:ed_,i_learn_best_when_i_have_plenty_of_time_to_think_before_answering_a_question:td_,developing_ideas_processing_speed_speaking:_d_,clear_instructions:sd_,i_learn_best_when_my_teacher_breaks_down_instructions_into_small_steps_using_simple_vocabulary_and_check_to_make_sure_i_ve_understood_the_directions:nd_,time_management_planning_starting_tasks_finishing_tasks_short_term_memory_staying_focused_listening_processing_speed:od_,sharing_vocabulary:ad_,i_learn_best_when_my_teacher_provides_new_vocabulary_words_before_we_cover_new_information_and_provides_opportunities_to_learn_the_vocabulary:id_,short_term_memory_long_term_memory_listening_reading_processing_speed:rd_,idea_bank:cd_,i_learn_best_when_my_teacher_provides_a_pre_prepared_list_of_ideas_for_me_to_chose_from:ld_,developing_ideas_starting_tasks_time_management:dd_,exemplars:ud_,i_learn_best_when_my_teacher_provides_examples_of_what_successfully_completed_work_looks_like_for_different_levels_of_performance:hd_,developing_ideas_planning_starting_tasks_studying:md_,organization_time:gd_,i_learn_best_when_my_teacher_provides_time_for_me_to_organize_materials_and_or_plan_next_steps:pd_,time_management_organization_of_materials_developing_ideas_planning_starting_tasks_stress_and_anxiety:yd_,i_learn_best_when_my_teacher_schedules_regular_1_to_1_time_with_me:fd_,multimodal_answers:wd_,i_learn_best_when_i_can_show_my_understanding_in_varied_ways_like_sketching_presentation_or_a_short_video_relaying_information_etc:vd_,starting_tasks_finishing_tasks_self_advocacy_long_term_memory:bd_,peer_teaching_group_work:$d_,i_learn_best_when_i_can_peer_teach_or_practise_with_peers:kd_,studying_listening_processing_speed_long_term_memory:xd_,extra_time_to_complete_assessments:Cd_,extra_time_to_process_spoken_information_and_directions:Id_,extra_breaks_as_needed:Sd_,use_of_a_computer_without_internet_access_or_word_processor_on_assessments:Ad_,audio_versions_of_assessments:Ed_,access_to_a_reader_for_assessments:Td_,speech_to_text_software_for_assessments:jd_,access_to_a_scribe_for_assessments:Nd_,audio_recording_of_answers_for_assessments:Pd_,break_up_larger_timed_assessments_over_several_days:qd_,take_tests_in_a_quiet_room_with_few_distractions:Rd_,take_tests_in_a_small_group_setting:Ld_,assign_seating_where_the_student_is_likely_to_learn_best:Md_,the_use_of_sensory_tools_during_class:Dd_,special_lighting:Bd_,use_of_a_computer_or_word_processor_to_take_notes:Od_,use_of_a_calculator_when_normally_not_allowed_one:Gd_,use_of_a_spelling_dictionary_or_spellchecker:zd_,copies_of_class_notes:Fd_,written_copy_of_any_instructions:Hd_,visuals_and_graphics_to_accompany_any_new_information_delivered_verbally:Vd_,ability_to_record_lessons:Wd_,increase_text_size_to_a_larger_format:Ud_,provide_alternative_formats_other_than_reading_when_learning_new_information:Yd_,provide_alternative_formats_other_than_listening_when_learning_new_information:Xd_,great_let_s_build_your_goal:Zd_,what_do_you_want_to_be_different_about_your_learning_select_a_category_or_type_your_own_idea:Jd_,choose_my_goal_area:Qd_,nice_choice_what_area_of_well_being_would_you_like_to_work_on:Kd_,let_s_get_more_specific_select_an_area_or_type_your_own_idea:eu_,add_more_details_to_your_goal:tu_,remember_goals_should_be_smart:_u_,specific_measurable_achievable_ambitious_relevant_and_time_based:su_,perfect_let_s_narrow_this_down_time_to_add_more_details_to_your_goal:nu_,select_a_goal_or_type_your_own:ou_,now_let_s_pick_your_targets:au_,how_do_you_plan_to_accomplish_this_goal:iu_,customize_the_options_below_or_type_your_own_these_will_become_your_short_term_targets:ru_,keep_going:cu_,add_target:lu_,where_are_you_now_what_does_this_look_like_for_you_at_the_moment:du_,this_helps_you_track_your_progress:uu_,finished:hu_,i_will_create_a_sleep_routine:mu_,i_will_set_an_alarm_to_remind_me_to_start_my_routine:gu_,i_will_put_my_electronics_away_1_hour_before_it_is_time_for_me_to_sleep:pu_,i_will_set_my_phone_to_focus_or_do_not_disturb_mode_for_an_hour_before_bedtime_and_until_my_morning_alarm:yu_,i_will_choose_relaxing_activities_1_hour_before_bedtime_such_as_reading_meditating_yoga_or_listening_to_music:fu_,i_will_get_out_of_bed_at_the_same_time_each_day:wu_,i_will_only_press_snooze_one_time_each_morning:vu_,i_will_have_everything_packed_or_set_out_for_the_next_day_before_going_to_sleep:bu_,i_will_go_to_bed_on_time:$u_,i_will_do_this_at_least_4_out_of_5_times_this_week:ku_,i_will_wake_up_on_time:xu_,i_will_create_a_short_routine_for_the_morning_that_gets_me_excited_for_the_day:Cu_,i_will_set_an_alarm_to_remind_me_to_get_ready_for_sleep_1_hour_before_bedtime:Iu_,i_will_set_a_morning_alarm_that_gives_me_plenty_of_time_to_get_ready_for_school:Su_,i_will_read_for_20_minutes_before_bed:Au_,i_will_meditate_or_listen_to_relaxing_music_before_going_to_sleep:Eu_,i_will_create_a_morning_routine_to_be_ready_for_the_day:Tu_,i_will_research_ideas_for_a_morning_routine:ju_,i_will_present_my_ideas_to_my_teacher_or_other_person:Nu_,i_will_map_out_my_routine_on_paper_or_in_my_phone:Pu_,i_will_start_my_routine_at_the_same_time_every_morning:qu_,i_will_create_an_evening_routine_to_get_me_ready_for_bed:Ru_,i_will_research_ideas_for_an_evening_routine:Lu_,i_will_do_this_routine_5_out_of_5_school_nights_this_week:Mu_,i_will_get_at_least_8_hours_of_sleep_each_night:Du_,i_will_practice_meditation:Bu_,i_will_find_choose_a_meditation_app_or_resource_to_use:Ou_,i_will_challenge_myself_to_meditate_for_x_number_of_days_in_a_row:Gu_,i_will_choose_a_daily_time_to_meditate_and_set_an_alarm_to_remind_me:zu_,i_will_meditate_at_least_x_out_of_x_days_this_week:Fu_,i_will_start_an_exercise_routine:Hu_,i_will_find_a_friend_to_exercise_with_each_week:Vu_,i_will_choose_the_type_of_exercise_to_add_to_my_routine:Wu_,i_will_share_my_routine_with_a_friend_or_trusted_adult:Uu_,i_will_add_my_exercise_times_to_my_planner_or_calendar:Yu_,i_will_exercise_daily:Xu_,i_will_exercise_at_least_x_out_of_x_days_this_week:Zu_,i_will_understand_the_cause_of_my_stress:Ju_,i_will_talk_to_my_teacher_or_counselor_about_things_that_bother_me_or_make_me_stressed:Qu_,i_will_identify_and_talk_with_someone_i_trust_about_how_i_am_feeling:Ku_,i_will_pause_when_i_m_feeling_stressed_to_identify_what_is_causing_the_stress:eh_,i_will_learn_what_is_and_is_not_in_my_circle_of_control:th_,i_will_acknowledge_when_i_am_approaching_a_potentially_stressful_situation:_h_,i_will_learn_about_coping_skills:sh_,i_will_talk_to_my_teacher_or_counselor_about_coping_skills_they_think_will_be_helpful_for_me:nh_,i_will_choose_a_coping_skill_to_practice_when_i_feel_i_am_becoming_stressed:oh_,i_will_use_a_coping_strategy_when_i_am_stressed_x_number_of_times_this_week:ah_,i_will_start_journaling_my_thoughts_and_feelings:ih_,i_will_do_this_at_least_x_out_of_x_days_this_week:rh_,i_will_get_outside_or_in_nature:ch_,i_will_make_time_for_something_fun:lh_,i_will_make_time_for_being_still_and_quiet:dh_,increase_my_mindfulness:uh_,i_will_take_minibreaks_throughout_the_day:hh_,i_will_decide_what_types_of_breaks_help_me_the_most:mh_,i_will_set_alarms_to_remind_myself_to_take_a_break:gh_,i_will_take_a_break_every_hour:ph_,i_will_take_a_break_every_90_minutes:yh_,i_will_take_x_number_of_breaks_a_day:fh_,create_relaxation_opportunities:wh_,i_will_use_visualization_to_help_me_relax:vh_,i_will_learn_about_visualization:bh_,i_will_set_an_alarm_to_remind_me_to_practice_visualization:$h_,i_will_decide_what_this_practice_will_look_like_for_me:kh_,i_will_do_deep_breathing_exercises:xh_,i_will_research_and_learn_breathing_exercises_to_try:Ch_,i_will_set_an_alarm_to_remind_me_to_practice_my_breathing_exercises:Ih_,i_will_listen_to_relaxing_music:Sh_,i_will_find_or_create_a_playlist_that_i_find_relaxing:Ah_,i_will_add_listening_music_to_my_evening_routine:Eh_,i_will_practice_yoga:Th_,i_will_find_a_class_youtube_channel_or_app_to_use:jh_,i_will_challenge_myself_to_practice_yoga_for_x_number_of_days_in_a_row:Nh_,i_will_choose_a_daily_time_to_practice_yoga_and_set_an_alarm_to_remind_me:Ph_,i_will_do_an_art_project_that_is_enjoyable:qh_,i_will_find_a_relaxing_art_activity_to_try:Rh_,i_will_choose_a_time_to_do_my_art_each_week_and_set_reminders:Lh_,i_will_tell_someone_about_my_new_art_project:Mh_,keeping_fit:Dh_,i_will_exercise_more:Bh_,i_will_join_a_sports_team_or_club:Oh_,i_will_find_out_what_is_available_at_my_school:Gh_,i_will_choose_one_that_interests_me:zh_,i_will_take_care_of_any_paperwork_to_join:Fh_,i_will_participate_in_the_tryout_or_application_process:Hh_,i_will_attend_all_the_practices:Vh_,i_will_learn_a_new_sport_or_activity:Wh_,i_will_research_new_sports_or_activities_that_might_interest_me:Uh_,i_will_choose_a_new_sport_or_activity_to_learn:Yh_,i_will_see_if_anyone_i_know_would_like_to_try_this_new_activity_with_me:Xh_,i_will_gather_the_needed_gear_to_learn_this_activity:Zh_,i_will_research_the_rules_and_methods_for_this_activity:Jh_,i_will_find_groups_who_participate_in_this_activity_to_join:Qh_,i_will_research_potential_challenges_that_interest_me:Kh_,i_will_choose_a_challenge_to_complete:em_,i_will_set_a_time_each_week_or_day_to_do_this_challenge:tm_,i_will_set_an_alarm_to_remind_me_to_do_this_challenge:_m_,i_will_sign_up_for_a_race:sm_,i_will_research_different_races_and_events_happening_in_my_area_in_the_next_few_months:nm_,i_will_choose_one_to_complete_and_talk_to_my_parents_guardians_about_participating:om_,i_will_sign_up_if_i_have_permission_from_my_parents_guardians:am_,i_will_create_a_training_schedule_to_prepare_for_my_race:im_,i_will_set_reminders_for_my_training_schedule:rm_,i_will_create_an_at_home_exercise_routine:cm_,i_will_take_an_inventory_of_what_exercise_equipment_i_have_access_to_at_home:lm_,i_will_research_what_routines_and_exercises_i_can_do_with_my_equipment_at_home:dm_,i_will_find_a_youtube_channel_or_app_to_use_for_my_workouts:um_,i_will_set_a_schedule_for_my_routine:hm_,i_will_set_reminders_for_my_routine:mm_,i_will_join_and_go_to_a_gym:gm_,i_will_research_gyms_in_my_area:pm_,i_will_choose_a_gym_that_i_can_pay_for_and_get_my_parent_guardians_permission:ym_,i_will_go_to_the_gym_and_get_a_membership:fm_,i_will_learn_about_the_equipment_programs_and_classes_available_at_my_gym:wm_,i_will_decide_what_my_routine_will_be_when_i_visit_the_gym:vm_,i_will_schedule_times_to_go_to_the_gym_on_my_phone:bm_,i_will_go_to_the_gym_x_out_of_x_days_this_week:$m_,eating_healthier:km_,i_will_add_more_fruits_and_veggies_into_my_diet:xm_,i_will_swap_x_for_x_when_i_go_out_to_eat:Cm_,i_will_limit_my_sugary_drinks:Im_,i_will_drink_more_water:Sm_,i_will_fill_up_my_water_bottle_x_number_of_times_each_school_day:Am_,i_will_learn_to_cook_simple_meals:Em_,i_will_go_to_the_store_to_buy_the_missing_ingredients_on_my_list:Tm_,i_will_follow_the_recipe_and_share_my_meal_with_a_family_member_or_friend:jm_,improve_my_timekeeping_not_late_for_school_class:Nm_,i_will_add_buffer_time_to_my_schedule_in_the_morning_to_make_sure_i_get_to_school_on_time:Pm_,i_will_set_alarms_or_calendar_alert_on_my_phone_to_remind_me_to_go_to_my_next_class:qm_,i_will_set_an_alarm_to_tell_me_5_minutes_before_i_need_to_leave_for_school:Rm_,i_will_put_my_school_schedule_in_a_planner_or_on_my_phone:Lm_,making_friends:Mm_,i_will_join_a_club_or_sports_team:Dm_,i_will_attend_all_the_practices_or_meetings:Bm_,i_will_find_someone_with_a_common_interest:Om_,i_will_ask_someone_to_hang_out_outside_of_school:Gm_,i_will_attend_events_or_parties_i_m_invited_to:zm_,i_will_eat_lunch_with_someone_i_want_to_get_to_know_better:Fm_,i_will_learn_some_good_questions_to_ask_others_to_get_to_know_them:Hm_,i_will_learn_how_to_engage_in_conversation_more:Vm_,i_will_think_about_what_i_want_in_a_friend:Wm_,i_will_think_about_what_it_means_to_be_a_good_friend:Um_,i_will_share_this_thoughts_with_someone:Ym_,joining_a_club_sport:Xm_,i_will_choose_a_club_to_join:Zm_,i_will_attend_all_the_meetings:Jm_,i_will_choose_a_sport_to_try_out_for:Qm_,learning_a_new_activity:Km_,i_will_choose_a_new_activity_to_learn:eg_,i_will_gather_the_needed_supplies_to_learn_this_activity:tg_,i_will_practice_or_play_my_new_activity_at_least_x_out_of_x_times_this_week:_g_,improve_homework:sg_,i_will_turn_in_my_homework_on_time:ng_,i_will_turn_in_high_quality_homework:og_,work_on_longterm_assignments_planned_and_making_progress:ag_,i_will_set_up_a_study_work_plan_for_long_term_projects:ig_,studying_for_tests_routines_and_effective_study_strategies:rg_,i_will_set_up_a_study_work_plan_for_tests:cg_,make_notes_in_class_high_quality_organised:lg_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_each_of_my_core_key_classes:dg_,i_will_research_note_taking_methods:ug_,improve_grade_in_x_subject_by_x_amount:hg_,i_will_review_material_from_class_an_additional_on_top_of_as_well_as_not_including_homelearning:mg_,study_x_amount_of_time_on_x_subject_x_times_hours_a_week:gg_,finish_work_early_and_check_against_instructions_rubric_then_edit:pg_,improve_the_quality_grades_of_homelearning_assignments:yg_,create_a_regular_study_homework_schedule:fg_,i_will_create_a_schedule_for_my_week_detailing_study_days_times_and_how_long_i_will_study_by_x_date:wg_,improve_email_google_drive_calendar_or_planner_organization:vg_,i_will_check_my_inbox_unread_emails_at_least_x_times_a_week_and_reply_if_necessary:bg_,i_will_create_folders_labels_and_organise_emails_into_the_correct_ones:$g_,i_will_create_folders_for_each_subject_and_organsie_docs_into_the_correct_folders:kg_,create_reminders_or_calendar_events_for_important_events_deadlines_study_times:xg_,i_will_create_reminders_or_calendar_events_for_my_most_important_events_deadlines_or_study_sessions_immediately_or_as_soon_as_i_can:Cg_,create_a_longterm_assignment_planner:Ig_,i_will_evaluate_my_progress_and_adjust_how_long_i_will_study_by_x_date:Sg_,improve_my_todo_list_habits:Ag_,i_will_add_tasks_to_my_todo_list_immidietly_or_as_soon_as_i_can_and_review_it_3_times_a_week:Eg_,i_will_create_a_schedule_for_longterm_assihnments_detailing_study_days_times_and_how_long_i_will_study_by_x_date:Tg_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_all_my_classes:jg_,keep_devices_off_on_silent_or_put_away_in_class:Ng_,keep_devices_off_on_silent_or_put_away:Pg_,keep_devices_off_on_silent_or_put_away_during_study_time:qg_,i_will_create_a_routine_for_transitioning_study_time:Rg_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_class_times:Lg_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_planned_study_times:Mg_,reduce_or_limit_time_spent_on_social_media:Dg_,i_will_set_up_time_limits_on_my_apps_or_websites:Bg_,i_will_set_a_timer_when_i_am_taking_a_break_on_social_media:Og_,increase_engagement_in_class:Gg_,avoid_distracting_websites_other_tasks_in_class:zg_,i_will_pay_attention_to_the_instructions_in_class:Fg_,i_will_actively_participate_in_class_more:Hg_,i_will_participate_more_in_class_activities:Vg_,i_will_ask_questions_in_class_related_to_the_topic_to_improve_my_understanding_learning:Wg_,i_will_volunteer_to_answer_questions_in_class_more:Ug_,avoid_distracting_websites:Yg_,i_will_set_up_time_limits_for_distracting_website_via_a_chrome_extension:Xg_,i_will_close_all_tabs_not_related_to_my_task:Zg_,getting_help_when_needed:Jg_,i_will_meet_with_my_teacher_outside_of_class_when_i_need_help:Qg_,i_will_email_my_teacher_when_i_need_help:Kg_,i_will_ask_questions_in_class_when_i_do_not_know_what_to_d:ep_,understanding_my_accommodations:tp_,i_will_know_and_understand_my_accommodations:_p_,i_will_ask_for_my_accommodations_when_i_need_them_in_class:sp_,i_will_tell_my_case_manager_when_i_no_longer_need_an_accommodations:np_,i_will_talk_to_my_case_manager_when_i_feel_i_need_additional_or_different_accommodations:op_,procrastination:ap_,planning_ahead:ip_,i_will_spend_x_amount_of_time_x_times_a_week_on_longterm_projects:rp_,i_will_plan_tasks_for_the_week_on_monday_or_the_friday_before:cp_,i_will_add_task_to_my_planner_when_assigned_in_class:lp_,task_initiation:dp_,i_will_start_tasks_on_the_day_given_and_finish_if_time_allows:up_,i_will_finish_tasks_early_or_before_they_are_due:hp_,my_thoughts_and_feelings_are_important:mp_,today:gp_,this_week:pp_,this_month:yp_,male:fp_,female:wp_,type_something_to_search_students:vp_,assign_for_selected_students:bp_,assistant_email:$p_,counselor_email:kp_,counselor_emails:xp_,support_teacher_email:Cp_,add_new_answer:Ip_,edit_template:Sp_,add_questions:Ap_,edit_email_template:Ep_,contact_mail:Tp_,announcements:jp_,schedule_information:Np_,welcome_new_teacher_assistant:Pp_,contact_request:qp_,welcome_new_teacher:Rp_,welcome_new_student:Lp_,welcome_new_assistant:Mp_,welcome_new_parent:Dp_,welcome_new_edu_teacher:Bp_,forgot_password:Op_,welcome_new_counselor:Gp_,user_first_name:zp_,user_last_name:Fp_,password:Hp_,message:Vp_,domain:Wp_,basic:Up_,premium:Yp_,enterprise:Xp_,are_you_sure_to_request_to_change_to_this_plan:Zp_,images:Jp_,audios:Qp_,docs:Kp_,videos:ey_,auto_save_after_every_1_min:ty_,no_user_to_display:_y_,on_a_scale_from_0_10_how_likely_are_you_to_recommend_us_to_a_friend_or_colleague:sy_,not_likely_at_all:ny_,extremely_likely:oy_,uwcsea_sg_climate_survey_connections_with_adults_and_peers:ay_,uwcsea_sg_climate_survey_do_you_need_some_extra_help_or_support:iy_,uwcsea_sg_climate_survey_my_health_and_wellbeing:ry_,uwcsea_sg_climate_survey_open_ended_questions:cy_,uwcsea_sg_climate_suvey_holistic_learning_experiences:ly_,import_email_by_csv:dy_,single_choice:uy_,multiple_choice:hy_,text_input:my_,emotional:gy_,summarize:py_,rating:yy_,learning_strategy:fy_,drop_down:wy_,happiness_intervetion:vy_,sdq_standard:by_,diversity_equity_inclusion_and_justice:$y_,climate_survey:ky_,intervention_safety:xy_,intervention_stress:Cy_,safety_at_home:Iy_,wellbeing:Sy_,depression_questions:Ay_,level_1_learners_goal_conference:Ey_,level_1_learners_balanced_conference:Ty_,level_1_learners_habits_and_attitudes_towards_learning_conference:jy_,level_2_learners_digital_citizenship:Ny_,level_1_learners_digital_citizenship:Py_,level_2_learners_communication:qy_,level_1_learners_communication:Ry_,level_2_learners_collaboration:Ly_,level_1_learners_collaboration:My_,level_2_learners_self_directed_learning:Dy_,level_2_learners_self_management_skills:By_,level_1_learners_self_management_skills:Oy_,level_2_learners_self_advocacy:Gy_,level_1_learners_self_advocacy:zy_,level_2_learners_self_awareness:Fy_,level_1_learners_self_awareness:Hy_,level_2_learners_learning_and_study_skills:Vy_,level_1_learners_learning_and_study_skills_session:Wy_,level_2_learners_organization:Uy_,level_1_learners_organization_session:Yy_,level_2_learners_goal_conference:Xy_,level_2_learners_habits_and_attitudes_towards_learning_conference:Zy_,level_2_learners_balanced_conference:Jy_,level_2_learners_goal_s_session:Qy_,level_1_learners_goal_s_session:Ky_,level_2_learners_study_strategies_session:ef_,level_2_learners_academic_session:tf_,level_1_learners_academic_session:_f_,level_2_learners_habits_and_attitudes_towards_learning_session:sf_,level_1_learners_habits_and_attitudes_towards_learning_session:nf_,level_2_learners_general_session:of_,level_1_learners_general_sessio:af_,social_and_emotional_learning:if_,end_of_class_reflection_questions:rf_,impulse_control_self_monitoring:cf_,planning_problem_solving:lf_,teacher_sense_of_self_efficacy_tses:df_,general_strategies_for_learning_gsl:uf_,focusing_attention:hf_,memory:mf_,responsible_decision_making:gf_,social_awareness:pf_,relationship_skills:yf_,habits_and_attitudes_towards_learning_hal:ff_,end_of_conference_questions:wf_,life_skills:vf_,health_and_fitness:bf_,executive_functions:$f_,study_skills:kf_,metacognitive_self_regulation:xf_,educational_satisfaction:Cf_,default_session_questions:If_,test_question_category_1:Sf_,are_you_a_boarder_or_day_student:Af_,before_i_make_a_decision_i_consider_the_consequences:Ef_,do_you_have_any_of_the_following_learning_difference_eg_dyslexia_adhd_long_term_illness_health_condition_physical_visual_hearing_impairment_social_behavioural_difference_eg_asd_tourettes:Tf_,how_would_you_describe_your_religious_beliefs:jf_,how_would_you_describe_your_sexual_orientation:Nf_,i_actively_pursue_activities_that_align_with_my_passions_and_values:Pf_,i_always_have_someone_to_eat_lunch_with:qf_,i_am_alone_more_often_than_i_would_like:Rf_,i_am_happy_with_the_marks_i_get_at_school:Lf_,academics_homework_studying_and_grades:Mf_,growth_improvement_in_study_habits_grades_sports_clubs_or_personal_projects:Df_,productivity_accomplishing_important_tasks_and_limiting_distractions:Bf_,relationships_family_friends_and_teachers:Of_,anything_else_you_want_to_tell_your_teacher:Gf_,did_you_bring_what_you_needed_for_this_class:zf_,did_you_complete_all_the_classwork_for_today_s_class:Ff_,did_you_have_your_materials_ready_at_the_start_of_class_time:Hf_,do_you_have_any_missing_assignments_for_this_class:Vf_,assign_bulk:Wf_,assign_bulk_student:Uf_,instruction:Yf_,name_is_required:Xf_,title_is_required:Zf_,instruction_is_required:Jf_,add_item:Qf_,conference_rubric_items_is_empty:Kf_,blank_row_or_column:ew_,question_list:tw_,question_is_required:_w_,select_skill:sw_,type_and_press_enter_to_add_new_row:nw_,do_you_want_to_remove_this_row:ow_,do_you_want_to_remove_this_custom_alert:aw_,remove_custom_alert_successfully:iw_,do_you_want_to_remove_this_skill:rw_,remove_skill_successfully:cw_,do_you_want_to_remove_this_subject:lw_,remove_subject_successfully:dw_,do_you_want_to_remove_this_learning_support_category:uw_,remove_learning_support_category_successfully:hw_,do_you_want_to_remove_this_learning_strategy:mw_,remove_learning_strategy_successfully:gw_,cant_delete_question:pw_,do_you_want_to_remove_this_goal_example:yw_,remove_question_successfully:fw_,do_you_want_to_remove_this_badge:ww_,remove_badge_successfully:vw_,do_you_want_to_remove_this_blank_day:bw_,remove_blank_day_successfully:$w_,do_you_want_to_remove_this_band_score:kw_,remove_band_score_successfully:xw_,is_used:Cw_,time_oneRoster_sync_hh:Iw_,small_text:Sw_,medium_text:Aw_,large_text:Ew_,edit_parent_1_information:Tw_,edit_parent_2_information:jw_,last_1_1:Nw_,how_would_you_rate_your_chances_of_achieving_this_goal:Pw_,add_name:qw_,activity_list:Rw_,select_academic_year:Lw_,a_number_of_staff:Mw_,staffs:Dw_,staff:Bw_,how_are_you_today:Ow_,what_was_the_purpose_or_focus_of_today_s_class:Gw_,header_1:zw_,header_2:Fw_,header_3:Hw_,header_4:Vw_,header_5:Ww_,header_6:Uw_,staying_focused:Yw_,text_input_question:Xw_,vs_last_year:Zw_,leave_page:Jw_,how_much_did_reflecting_during_this_session_help_your_learning_improve:Qw_,last_1_1_conversation:Kw_,student_has_started_this_conference_are_you_sure_to_delete:ev_,student_has_started_this_check_in_are_you_sure_to_delete:tv_,student_has_not_started_this_one_to_one_are_you_sure_to_delete:_v_,"you_can_start_a_1-1_conversation_after_the_results_of_the_student's_check-in._If_the_check-in_is_24_hours_older,_you_can_request_the_new_check-in_or_start_the_conversation_by_viewing_the_results":"您可以在学生签到结果出来后开始一对一对话。如果签到时间已超过 24 小时,您可以请求新的签到或通过查看结果开始对话","select_a_student_and_start_a_1-1_conversation_from_a_check-in_or_ask_the_student_to_check-in_before":"选择一名学生,从签到开始一对一对话,或要求学生在之前签到",my_accommodations:sv_,accommodation_set:nv_,add_new_accommodation:ov_,print_my_accommodations:av_,my_learning_progress:iv_,"here_your_teacher_can_edit_or_add_your_accommodation_details._please_note_that_you_can_view_the_information,_but_for_any_edits_or_additions,_kindly_contact_your_teacher_directly.":"您的老师可以在此编辑或添加有关您的便利设施的详细信息。请注意,您可以查看信息,但如果有任何编辑或添加,请直接联系您的老师。","this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.":"这是您学习之旅的全新测试版。您可以思考自己想做什么以及如何学习。我们建议您逐步完成每个部分并每月访问一次。",responses_comparisons:rv_,dropdown_and_verbal_questions_responses:cv_,mario_tools:lv_,customize:dv_,techical_settings:uv_,data_import_export:hv_,inactive_students:mv_,weekly_quests:gv_,admin_general_tips:pv_,school_usage:yv_,total_conversations_time:fv_,total_class_reflections:wv_,grade_usage:vv_,total_conversations:bv_,impersonate:$v_,hi:kv_,transition_plan:xv_,updated_on:Cv_,print_my_learning_plan:Iv_,print_my_transition_plan:Sv_,about_me:Av_,name_your_interest:Ev_,add_more_detail_to_your_interest:Tv_,create_interest:jv_,"your_interest_has_been_successfully_created_!":"您的兴趣已成功创建!",view_plp:Nv_,my_current_plp:Pv_,my_learning_strategies:qv_,add_new_interest:Rv_,add_new_challenge:Lv_,add_new_strength:Mv_,add_new_idea:Dv_,add_new_people:Bv_,add_new_tool:Ov_,add_new_strategy:Gv_,add_new_dream:zv_,my_support_network:Fv_,add_person:Hv_,closer_family:Vv_,family:Wv_,mentors:Uv_,tutors:Yv_,my_timeline:Xv_,add_milestone:Zv_,add_test:Jv_,"you_haven't_added_any academic_milestones_yet":"您尚未添加任何学术里程碑","you_haven't_added_any_tests_yet":"您尚未添加任何测试",colleges:Qv_,"you_haven't_added_any_colleges_yet":"您尚未添加任何大学",add_colleges:Kv_,my_transition_plan:eb_,"my_personal-plans":"My Personal Plans","my_personal-plan":"My Personal Plan",academic_milestones:tb_,tests:_b_,academic_and_career_interests:sb_,you_havent_added_any_interests_yet:nb_,add_a_plan:ob_,extra_curricular_activities:ab_,"you_haven't_added_any_activities_yet":"您尚未添加任何活动",add_new_activity:ib_,courses:rb_,"you_haven't_added_any_courses_yet":"您尚未添加任何课程",add_new_courses:cb_,"standardized_tests_/_exams":"标准化测试/考试","potential_career_training_courese_/_colleges":"潜在的职业培训课程/学院","you_haven't_added_any_courses_/_colleges_yet":"您尚未添加任何课程/学院","add_new_courese_/_college":"添加新课程/学院",add_new_college:lb_,"you_haven't_added_any_references_yet":"您尚未添加任何参考资料",references:db_,resources_for_my_future:ub_,"you_haven't_added_any_resources_yet":"您尚未添加任何资源",add_new_resources:hb_,my_essays:mb_,"you_haven't_added_any_essays_yet":"您尚未添加任何文章",add_essay:gb_,learning_portfolios:pb_,"you_haven't_added_any_learning_portfolios_yet":"您尚未添加任何学习档案",add_portfolio:yb_,financial_planning:fb_,"you_haven't_added_any_plans_yet":"您尚未添加任何计划",add_new_plan:wb_,"students_shaded_red_have_an_incomplete_check-_in":"红色标记的学生表示签到不完整",rows_per_page:vb_,anonymous_link:bb_,select_ratings_of_questions:$b_,select_responses_distribution:kb_,you_can_only_select_one_question_per_time:xb_,number_of_answers:Cb_,my_interests:Ib_,i_like_to_know_more_about:Sb_,my_strengths:Ab_,my_challenges:Eb_,i_can_help_myself_by:Tb_,my_teacher_can_help_me_by:jb_,other_people_who_can_help_me_are:Nb_,tools_things_that_can_help_me_are:Pb_,my_goals:qb_,my_goals_and_targets:Rb_,my_hopes_and_dreams:Lb_,missing_grade:Mb_,grade_must_be_equal_or_greater_than_grade_level_1:Db_,you_havent_added_any_challenges_yet:Bb_,you_havent_added_any_strengths_yet:Ob_,you_havent_added_any_idea_yet:Gb_,you_havent_added_any_person_yet:zb_,you_havent_added_any_tools_yet:Fb_,you_havent_added_any_strategies_yet:Hb_,you_havent_added_any_goals_and_targets_yet:Vb_,you_havent_added_any_hopes_and_dreams_yet:Wb_,ways_I_learn_best:Ub_,your:Yb_,interest:Xb_,strength:Zb_,challenge:Jb_,idea:Qb_,people:Kb_,tool:e$_,dream:t$_,person:_$_,more_detail_to:s$_,my_support:n$_,network:o$_,my_current_PLP:a$_,view_PLP:i$_,current_accommodation:r$_,goal_date:c$_,you_havent_added_any_item_yet:l$_,passing_date:d$_,college:u$_,visit:h$_,application:m$_,a_plan:g$_,interests:p$_,activities:y$_,test_exam:f$_,course:w$_,resources:v$_,essay:b$_,essays:$$_,plans:k$_,total_of:x$_,diagnostic_survey:C$_,selected_questions:I$_,available_questions:S$_,are_you_sure_you_want_to_inactive_students:A$_,data_for_the_last_month:E$_,number_of_questions:T$_,no_item_to_display:j$_,template:N$_,assessment:P$_,assignment_result:q$_,certificate:R$_,learning_support_category:L$_,feedback:M$_,suggestion:D$_,tutorial_screen:B$_,reflection_forms:O$_,select_question_to_add:G$_,"this_survey_was_sent._all_survey_links_that_were_sent_will_be_invalid._are_you_sure_to_delete_it":"此调查已发送。所有已发送的调查链接均将无效。您确定要删除它吗",student_grade_not_found:z$_,name_your_person:F$_,type_your_person:H$_,create_person:V$_,january:W$_,february:U$_,march:Y$_,april:X$_,may:Z$_,june:J$_,july:Q$_,august:K$_,september:e1_,octorber:t1_,november:_1_,december:s1_,private:"私人",complete:n1_,select_user:o1_,ended_in_less_than_one_hour:a1_,my_sandbox:i1_,number_students_are_unmotivated:r1_,number_students_are_comfort:c1_,number_students_are_stretch:l1_,number_students_are_strain:d1_,number_students_are_overwhelmed:u1_,check_in_with_teacher_name:h1_,all_of_the_students_marked_as_feeling_safe:m1_,soft:g1_,ascending:p1_,descending:y1_,empty:f1_,you_have_completed_all_of_the_weekly_quests:w1_,good_job:v1_,if_you_have_responded_to_all_question_press_the_done_button_to_complete_check_in:b1_,check_in_finished:$1_,are_you_ready_to_submit:k1_,you_filled_out_check_in_in_the_check_in_section:x1_,continue:"继续",good_job_you_filled_out_support_network_in_the_my_support_network_section:C1_,good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section:I1_,open_responses:S1_,teachers_list:A1_,you_can_only_select_1_question_at_a_time:E1_,educator:T1_,the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in:j1_,free_fields_responses:N1_,please_select_a_category_to_view_data:P1_,survey_management:q1_,questions_inside:R1_,search_in_categories:L1_,search_in_questions:M1_,total_of_categories:D1_,all_questions:B1_,enter_category_name:O1_,select_parent_category:G1_,new_survey_template_has_been_successfully_created:z1_,this_survey_template_has_been_successfully_updated:F1_,action_survey_template:H1_,select_question_category:V1_,enter_new_survey_name:W1_,select_questions:U1_,is_mandatory:Y1_,update_survey:X1_,enter_answer:Z1_,select_flag:J1_,emotion_icon:Q1_,is_correct_answers:K1_,your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of_the_results_on_our_survey_dashboard:ek_,leave:tk_,go_to_the_survey_dashboard:_k_,my_dashboard:sk_,nice_choice_what_area_of_category_would_you_like_to_work_on:nk_,"nice_choice_what_area_of_well-being_would_you_like_to_work_on":"不错的选择!您想在哪个幸福健康领域开展工作?",nice_choice_what_area_of_academics_would_you_like_to_work_on:ok_,nice_choice_what_area_of_organization_would_you_like_to_work_on:ak_,nice_choice_what_area_of_focus_would_you_like_to_work_on:ik_,"nice_choice_what_area_of_self-advocacy_would_you_like_to_work_on":"不错的选择!您想在哪个自我倡导领域开展工作?",nice_choice_what_area_of_procrastination_would_you_like_to_work_on:rk_,check_in_and_1_1_questions:ck_,create_quest:lk_,total_quests:dk_,change_to_previous_challenge:uk_,change_to_next_challenge:hk_,sort_order:mk_,quest_name:gk_,challenge_upc:pk_,source:yk_,request:fk_,edit_iep_template:wk_,there_are_several_questions_you_have_not_answered_yet_are_you_sure_you_want_to_submit:vk_,you_did_not_complete_the_check_in_please_check_your_responses_and_click_done:bk_,"welcome_to_your_university_and_college_preparation_journey!":"Welcome to your university and college preparation journey!","university_is_a_fun_time_in_your_life,_but_it_can_also_be_challenging._the_mario_transition_program_is_to_help_you_with_this_stage_in_your_life.":"University is a fun time in your life, but it can also be challenging. The MARIO Transition Program is to help you with this stage in your life.",research_the_academic_programs_campus_life_and_support_services_at_your_top_choice_universities:$k_,"research_one_career_you’re_interested_in_what_are_the_required_qualifications_and_job_prospects":"Research one career you’re interested in. What are the required qualifications and job prospects?","imagine_you’re_in_your_first_year_at_university_halfway_through_the_year":"Imagine you’re in your first year at university, halfway through the year.",what_actions_do_you_need_to_take_now_to_position_yourself_successfully_for_these_three_areas:kk_,what_service_opportunities_have_you_taken_part_in:xk_,are_there_any_universities_that_align_with_your_learning_style_how_will_you_find_out:Ck_,what_strategies_can_you_use_to_improve_your_time_management_skills:Ik_,describe_your_reflections:Sk_,"share_a_personal_story_or_experience_that_illustrates_your_character_values_and/or_attitudes":"Share a personal story or experience that illustrates your character, values, and/or attitudes.",think_about_the_person_or_people_that_support_you:Ak_,what_is_it_that_they_do_that_is_most_helpful_to_you:Ek_,how_else_are_you_preparing_for_university_life_right_now:Tk_,why_might_these_be_helpful_to_your_university_experience:jk_,add_new_location:Nk_,add_new_type:Pk_,add_new_preference:qk_,add_new_visit:Rk_,add_new_skill:Lk_,add_new_career:Mk_,add_new_reflection:Dk_,add_new_ideal:Bk_,add_new_style:Ok_,you_havent_added_any_preferences_yet:Gk_,you_havent_added_any_visits_yet:zk_,you_havent_added_any_skills_yet:Fk_,what_s_on_your_mind:Hk_,these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above:Vk_,view_all_responses:Wk_,are_not_ready_to_learn:Uk_,not_ready_to_learn:Yk_,students_who_are_not_ready_to_learn:Xk_,students_average_score:Zk_,the_data_presented_in_this_chart_reflects_the_average_from_the_student_check_ins:Jk_,check_in_and_1_1s:Qk_,unfinished:Kk_,sort_by:ex_,recently:tx_,most_positive:_x_,least_positive:sx_,check_in_session:nx_,log_a_1_1_conversation:ox_,safety_and_stress:ax_,Whats_on_your_mind:ix_,well_being_session:rx_,are_you_ready_to_learn_session:cx_,show_pending_conversations:lx_,check_in_session_title:dx_,check_in_sessions_title:ux_,back_to_meetings:hx_,i_have_nothing_to_add:mx_,this_initial_step_activates_your_1_on_1_conversation_setting_the_stage_for_personal_dialogue:gx_,view_a_1_1_conversation:px_,log_conversation_data:yx_,add_1_1_conversation_notes:fx_,save_data:wx_,please_select_date_1_1_conversation:vx_,please_write_something_to_this_1_1_conversation:bx_,data_1_1_conversation_cannot_exceed_300_characters:$x_,no_need_for_it:kx_,conversation_saved:xx_,what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal:Cx_,conversation_date:Ix_,conversation_duration:Sx_,select_your_answer_to_continue:Ax_,share_your_thoughts_about_the_main_topic_or_focus:Ex_,select_one_or_more_options:Tx_,other_notes_from_the_conversation:jx_,share_your_thoughts:Nx_,make_this_a_private_note:Px_,save_conversation:qx_,yes_view_student_goals:Rx_,please_set_time_1_1_conversation:Lx_,type_your_answer_here:Mx_,delete_bulk:Dx_,number_of_students_with_at_least_one_very_low_metric:Bx_,this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40:Ox_,of_students_have_concerned_metrics:Gx_,have_metrics_40:zx_,all_students_have_good_metrics:Fx_,students_with_at_least_one_concerned_metric:Hx_,concerned_metrics:Vx_,check_in_date:Wx_,veracross_setting:Ux_,time_vera_cross_sync_hh:Yx_,import_vera_cross:Xx_,open_field_questions:Zx_,open_apply_setting:Jx_,time_open_apply_sync_hh:Qx_,import_open_apply:Kx_,conversations:e2_,add_new_check_in:t2_,started_at:_2_,conversation_goal:s2_,target_monthly_conversation_goal_for_teachers:n2_,target_monthly_conversation_goal_for_counselors:o2_,target_monthly_conversation_goal_for_support_teachers:a2_,already_happened:i2_,happening_now:r2_,has_this_conversation_already_taken_place_or_is_it_happening_now:c2_,log_1_1_conversation:l2_,note_log_and_scaffolding:d2_,student_review:u2_,"hey!_you_had_a_conversation_with":"Hey! You had a conversation with <b>{{teacherName}}</b>",date_of_conversation:h2_,learning_strategy_added:m2_,created_on:g2_,"how_much_did_discussing_ways_to_seek_help_during_this_session_help_your_learning_improve_?_(1-10)":"How much did discussing ways to seek help during this session help your learning improve? (1-10)","how_helpful_was_this_conversation_?_1_(_not_helpful_at_all_)_10_(_very_helpful_)":"How helpful was this conversation? 1 (Not Helpful at all) - 10 (Very Helpful)","what_is_the_most_important_thing_you_learned_from_this_session?":"What is the most important thing you learned from this session?",save_review:p2_,write_your_most_important_learning_here:y2_,"thank_you_for_your_review_!":"Thank you for your review!","see_you_next_time_!":"See you next time!",all_set:f2_,have_you_used_any_learning_strategies:w2_,select_the_learning_strategy:v2_,log_a_1_1_conversation_title:b2_,save_1_1_log_note:$2_,view_1_1_note:k2_,please_enter_a_description_of_the_conversation:x2_,check_ins_tab:C2_,start_check_in_homepage:I2_,select_the_teacher_or_counselor_asking_you_to_check_in_if_you_have_more_than_one_teacher_choose_any_teacher_in_the_class_all_the_teachers_and_counselors_listed_can_view_your_check_ins:S2_,here_you_can_find_all_the_notes_and_1_1_conversations_logs_the_student_has:A2_,back_to_notes_and_logs:E2_,students_review:T2_,other_note:j2_,students_perceived_usefulness:N2_,student_feedback:P2_,note_category:q2_,select_note_category:R2_,save_note:L2_,type_the_main_focus_of_this_session:M2_,please_add_title_note:D2_,notes_and_logs:B2_,survey_portal:O2_,integrations:G2_,external_api:z2_,teacher_well_being:F2_,frequency_and_setup:H2_,well_being_dashboard:V2_,go_to_dashboard:W2_,your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey:U2_,you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time:Y2_,remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership:X2_,check_in_complete:Z2_,schedule_a_conversation:J2_,select_a_contact_to_speak_with:Q2_,what_would_you_like_to_discuss:K2_,please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have:e0_,wellbeing_sections:t0_,school_monthly_usage:_0_,location:s0_,edit_my_profile:n0_,save_new_password:o0_,teacher_code:a0_,my_well_being:i0_,my_well_Being_check_in:r0_,my_sessions:c0_,your_personal_data_will_not_be_shared_with_anyone_else:l0_,school_leadership_will_only_see_aggregated_data:d0_,save_filters:u0_,clear_all_filters:h0_,my_well_being_check_in:m0_,unless_you_specifically_choose_to_do_this:g0_,physical_well_being:p0_,emotional_well_being:y0_,"self_care_&_balance":"Self-Care & Balance",social_well_being_relationships:f0_,social_well_being_environment:w0_,intellectual_well_being:v0_,colleague_or_staff_member_you_like_to_praise_or_thank:b0_,wellbeing_finished:$0_,take_a_moment_for_you:k0_,it_s_time_to_take_care_of_yourself_start_your_well_being_check_in_to_reflect_on_how_you_re_doing_and_receive_the_support_you_deserve:x0_,start_check_in_now:C0_,i_ll_do_it_later:I0_,number_of_conversations:S0_,number_of_expected_conversations_based_on_the_goal:A0_,search_for_a_student:E0_,survey_resulting_in_scheduled_sessions:T0_,current_class_grade:j0_,these_are_the_answers_from_classroom_teachers:N0_,total_responses:P0_,readiness_trends:q0_,the_note_will_be_visible_to_the_student_and_all_connected_educators:R0_,_unless_you_check_the_make_this_a_private_note_box:L0_,do_you_still_wish_to_save:M0_,yes_im_sure:D0_,delete_survey:B0_,are_you_sure_to_delete_selected_survey:O0_,delete_1_1:G0_,are_you_sure_to_delete_this_one_to_one:z0_,delete_check_in:F0_,are_you_sure_to_delete_this_check_in:H0_,teachers_well_being_dashboard:V0_,my_well_being_dashboard:W0_,understand_the_metrics_about_the_educators_wellness_and_environment:U0_,understand_the_metrics_about_my_wellness_and_environment:Y0_,engagement:X0_,total_1_1_conversations:Z0_,educators_without_check_ins:J0_,educators_without_check_ins_not_br:Q0_,educators_havent_completed_check_ins_in_the_last_30_days:K0_,you_can_send_individual_requests_or_bulk_reminders_to_all_educators:e3_,department:t3_,last_check_in_normal:_3_,request_check_in_wellbeing:s3_,send_bulk_reminder:n3_,physical:o3_,self_care:a3_,relationships_well_being:i3_,self_care_well_being:r3_,environment:c3_,environment_well_being:l3_,intellectual:d3_,the_data_presented_here_comes_from_the_check_ins:u3_,charts_will_appear_once_over_20_of_educators:h3_,total_1_1_requested:m3_,wellbeing_questions:g3_,wellbeing_section:p3_,spiritual_well_being:y3_,personal_learning_plans:f3_,personal_learning_plans_description:w3_,last_updated:v3_,search_students_by_name_or_email:b3_,all_grades:$3_,transition_plans:k3_,transition_plans_description:x3_,learning_plans:C3_,choose_profile_picture:I3_,choose_a_profile_picture_from_our_gallery_or_upload_your_own:S3_,select_a_picture:A3_,view_check_in:E3_},j3_="htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk",N3_="6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0",ii="860fa99c52ae79d98e904b4c862ddaac",ri="adf89d0ed9b0d5fcc0d1bcfd535345dc",jt="ACCESS_TOKEN",O_="IS_USER_SESSION_BROWSER",P3_=[{label:"10",value:10},{label:"20",value:20},{label:"30",value:30},{label:"50",value:50}],ci={label:"10",value:10},Pn={searchString:"",currentPage:1,pageSize:ci.value,sortBy:"",sortOrder:"ASC",name:""},$s={DANGER:"#dc3545",WARNING:"#ffc107",SUCCESS:"#28a745",INFO:"#007bff"},qn="yyyy-MM-dd",li="dd-MM-yyyy",q3_="dd-MM-yyyy HH:mm",Rn="0001-01-01T00:00:00",R3_="Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1",ft=(()=>{const e=window.location.href;return e.includes("stage.marioforme.com")?`${e.split("//")[0]}//stage-api.marioforme.com`:e.includes("stage2.marioforme.com")?`${e.split("//")[0]}//stage2-api.marioforme.com`:`${e.split("//")[0]}//${e.split("//")[1].split("/")[0]}`})(),U_=!!(window.location.hostname==="localhost"||window.location.hostname.includes("stage")||window.location.hostname.includes("brightsoft")||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),$n=[{label:"Single choice",value:"SingleChoice"},{label:"Multiple choice",value:"MultipleChoice"},{label:"Text input",value:"TextInput"},{label:"Emotional",value:"Emotional"},{label:"Summarize",value:"Summarize"},{label:"Rating",value:"Rating"},{label:"Learning strategy",value:"LearningStrategy"},{label:"DropDown",value:"DropDown"}],L3_={SINGLE_CHOICE:"SingleChoice",MULTIPLE_CHOICE:"MultipleChoice",TEXT_INPUT:"TextInput",SLIDER:"Slider",PROGRESS_BAR:"ProgressBar",STAR_RATING:"StarRating",TEXT_INPUT_WITH_SUGGESTIONS:"TextInputWithSuggestions",EMOTIONAL:"Emotional",SUMMARIZE:"Summarize",RATING:"Rating",LEARNING_STRATEGY:"LearningStrategy",DROPDOWN:"DropDown"},po=[{label:2,value:2},{label:3,value:3},{label:4,value:4},{label:5,value:5}],Ln=150,M3_=["Admin","Assistant","Teacher","General ED teacher","Counselor","SecondaryTeacher","Student","Parent"],D3_="chat-channel",B3_="NOTIFICATION_CHANNEL",O3_="SANDBOX_NOTIFICATION",G3_="https://tleliteracy.com/wp-content/uploads/2017/02/default-avatar.png",z3_=["/images/very-sad-icon.png","/images/sad-icon.png","/images/normal-icon.png","/images/happy-icon.png","/images/very-happy-icon.png"],F3_={reflect:"#c08497",goal:"#00979b"},w_={ADMIN:"Admin",TEACHER:"Teacher",ASSISTANT:"Assistant",EDUTEACHER:"General ED teacher",STUDENT:"Student",PARENT:"Parent",COUNSELOR:"Counselor",SECONDARY_TEACHER:"SecondaryTeacher"},Mn="NOTIFICATION_ALERT_KEY",yo="https://www.mariosuccess.com",H3_=[{code:"en-US",fullName:"English (United States)",shortName:"English, US",nativeName:"English",name:"United States",image:"/images/usa.png"}],Ns="en-US",di=["en-US","en-GB","ar","es","zh"],Ps=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var kn=(e=>(e[e.Teacher=0]="Teacher",e[e.Admin=1]="Admin",e))(kn||{});const V3_=window.location.hostname,W3_=["malverncollege","stage","localhost"],Dn=W3_.some(e=>V3_.includes(e)),U3_={"en-US":{translation:BF},"en-GB":{translation:hCe},ar:{translation:vrt},es:{translation:CGt},zh:{translation:T3_}};jn.use(at.initReactI18next).init({resources:U3_,supportedLngs:di,lng:Ns,fallbackLng:Ns,keySeparator:!1,interpolation:{escapeValue:!1}});const Y3_="_contact_3q8bw_95",X3_="_remember_3q8bw_287",Z3_="_icon_3q8bw_368",J3_="_input_3q8bw_420",Q3_="_active_3q8bw_513",K3_="_show_3q8bw_516",e4_="_behind_3q8bw_519",t4_="_login_3q8bw_218",_4_="_div_3q8bw_682",s4_="_logout_3q8bw_747",n4_="_popover__sort__item_3q8bw_798",o4_="_popover__search__icon_3q8bw_809",a4_="_popover__search__input_3q8bw_815",i4_="_popover__options_3q8bw_818",r4_="_title_3q8bw_108",V={"btn-login-google":"_btn-login-google_3q8bw_12","notification-count":"_notification-count_3q8bw_52","text-introduction":"_text-introduction_3q8bw_66","btn-trans-border":"_btn-trans-border_3q8bw_76",contact:Y3_,"learn-more":"_learn-more_3q8bw_96","title-quote":"_title-quote_3q8bw_108","descriptions-quote":"_descriptions-quote_3q8bw_116","box-login":"_box-login_3q8bw_125","block-verification":"_block-verification_3q8bw_136","block-login":"_block-login_3q8bw_142","class-link-sso-image":"_class-link-sso-image_3q8bw_147","title-login":"_title-login_3q8bw_151","title-forgot-password":"_title-forgot-password_3q8bw_165","btn-close":"_btn-close_3q8bw_169","btn-login":"_btn-login_3q8bw_12","school-icon":"_school-icon_3q8bw_202","school-name":"_school-name_3q8bw_207","login-description":"_login-description_3q8bw_218","digital-privacy-icon":"_digital-privacy-icon_3q8bw_231","return-to-login":"_return-to-login_3q8bw_237","recover-account":"_recover-account_3q8bw_246","link-to-login":"_link-to-login_3q8bw_252","privacy-policy":"_privacy-policy_3q8bw_269",remember:X3_,"term-and-conditions":"_term-and-conditions_3q8bw_291","descriptions-forgot-pass":"_descriptions-forgot-pass_3q8bw_303","content-icon":"_content-icon_3q8bw_310","descriptions-icon":"_descriptions-icon_3q8bw_317","title-icon":"_title-icon_3q8bw_326","nav-home":"_nav-home_3q8bw_345","box-introduction":"_box-introduction_3q8bw_359",icon:Z3_,"checkbox-keep-login":"_checkbox-keep-login_3q8bw_395","label-keep-login":"_label-keep-login_3q8bw_399","option-text":"_option-text_3q8bw_408","form-user-name":"_form-user-name_3q8bw_417",input:J3_,"checkbox-remember":"_checkbox-remember_3q8bw_423","btn-rounder":"_btn-rounder_3q8bw_450","btn-active":"_btn-active_3q8bw_453","block-reset-password":"_block-reset-password_3q8bw_467","block-forgot-pass":"_block-forgot-pass_3q8bw_471","page-not-login":"_page-not-login_3q8bw_484","content-quote":"_content-quote_3q8bw_484","home-page":"_home-page_3q8bw_492","bg-animate":"_bg-animate_3q8bw_498",active:Q3_,show:K3_,"fade-in":"_fade-in_3q8bw_1",behind:e4_,login:t4_,"login-content":"_login-content_3q8bw_543","logo-home":"_logo-home_3q8bw_550","img-box":"_img-box_3q8bw_557","img-login":"_img-login_3q8bw_561","img-login-rectangle":"_img-login-rectangle_3q8bw_567","c-main":"_c-main_3q8bw_573","container-fluid":"_container-fluid_3q8bw_576","input-file-label":"_input-file-label_3q8bw_585","delete-avatar-button":"_delete-avatar-button_3q8bw_603","header-logo":"_header-logo_3q8bw_607","box-sidebar":"_box-sidebar_3q8bw_612","sidebar-logo":"_sidebar-logo_3q8bw_616","sidebar-nav-links":"_sidebar-nav-links_3q8bw_621","c-active":"_c-active_3q8bw_628","sidebar-nav-links-hover":"_sidebar-nav-links-hover_3q8bw_633","box-sidebar-header":"_box-sidebar-header_3q8bw_637","box-logout":"_box-logout_3q8bw_638","sidebar-btn-minimized":"_sidebar-btn-minimized_3q8bw_642","sidebar-minimized-logo":"_sidebar-minimized-logo_3q8bw_648","sidebar-logout":"_sidebar-logout_3q8bw_665","nav-mobile":"_nav-mobile_3q8bw_672","filter-media-file":"_filter-media-file_3q8bw_676",div:_4_,"dropdown-menu":"_dropdown-menu_3q8bw_686","header-avatar":"_header-avatar_3q8bw_686","dropdown-menu-flag":"_dropdown-menu-flag_3q8bw_702","dropdown-content":"_dropdown-content_3q8bw_707","dropdown-change":"_dropdown-change_3q8bw_720","item-address":"_item-address_3q8bw_726","item-logout":"_item-logout_3q8bw_731","title-address":"_title-address_3q8bw_734","img-avatar":"_img-avatar_3q8bw_737","item-contact":"_item-contact_3q8bw_744",logout:s4_,"content-text":"_content-text_3q8bw_751","dropdown-content-language":"_dropdown-content-language_3q8bw_767","dropdown-item-language":"_dropdown-item-language_3q8bw_783","dropdown-item-language-active":"_dropdown-item-language-active_3q8bw_793",popover__sort__item:n4_,"popover__sort__item--active":"_popover__sort__item--active_3q8bw_802",popover__search__icon:o4_,popover__search__input:a4_,popover__options:i4_,"popover-zindex":"_popover-zindex_3q8bw_827","button-export":"_button-export_3q8bw_831","button-content":"_button-content_3q8bw_836","button-icon":"_button-icon_3q8bw_842","hide-in-mobile":"_hide-in-mobile_3q8bw_848","hamburger-menu":"_hamburger-menu_3q8bw_874","box-content-home-page":"_box-content-home-page_3q8bw_894","collapse-box":"_collapse-box_3q8bw_938","hide-in-desktop":"_hide-in-desktop_3q8bw_956","control-input":"_control-input_3q8bw_960","custom-control":"_custom-control_3q8bw_960","item-select-role":"_item-select-role_3q8bw_964","item-role-active":"_item-role-active_3q8bw_979","model-switch-roles":"_model-switch-roles_3q8bw_984",title:r4_,"btn-login-with-sso":"_btn-login-with-sso_3q8bw_994","app-alert":"_app-alert_3q8bw_1035","app-alert--success":"_app-alert--success_3q8bw_1051","p-0-12":"_p-0-12_3q8bw_1055","table-fixed":"_table-fixed_3q8bw_1078","fixed-width":"_fixed-width_3q8bw_1098","fixed-width-40":"_fixed-width-40_3q8bw_1102","fixed-width-80":"_fixed-width-80_3q8bw_1106","equal-width":"_equal-width_3q8bw_1110","line-height-center":"_line-height-center_3q8bw_1114","version-prod":"_version-prod_3q8bw_1118","button-user-name":"_button-user-name_3q8bw_1129","custom-chip-teacher-select":"_custom-chip-teacher-select_3q8bw_1141","header-assign-for-student":"_header-assign-for-student_3q8bw_1145","table-filter-icon":"_table-filter-icon_3q8bw_1156","btn-collapse":"_btn-collapse_3q8bw_1161","input-name":"_input-name_3q8bw_1172","switch-data-teachers":"_switch-data-teachers_3q8bw_1176","switch-data-teacher-item":"_switch-data-teacher-item_3q8bw_1176","item-checked":"_item-checked_3q8bw_1185"},c4_={fontSize:"0.85rem"},Nt=({text:e})=>n.jsx("p",{className:"text-danger",style:c4_,children:e}),l4_={height:"40px",backgroundColor:"#f7f9fc",borderRadius:"4px",marginBottom:"5px",position:"relative"},d4_={backgroundColor:"#ffffff",paddingRight:"50px"},u4_={fontSize:"20px",position:"absolute",right:"10px",color:"#316CD9"},h4_=e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,_)=>_.toUpperCase()),hs=({isShowPassword:e,togglePasswordVisible:t,onChange:_,placeholder:o})=>n.jsxs("div",{className:"d-flex align-items-center w-100",style:l4_,children:[n.jsx(w.Input,{className:"border password-input",style:d4_,type:e?"text":"password",name:"password",onChange:_,placeholder:o||"Password",autocomplete:o?h4_(o):"password",required:!0}),n.jsx("i",{className:`far ${e?"fa-eye-slash":"fa-eye"} mx-2 cursor-pointer`,style:u4_,onClick:()=>t(),title:e?"Hide":"Show"})]});var Bn=(e=>(e[e.Google=0]="Google",e[e.ClassLink=1]="ClassLink",e[e.MicrosoftSSO=2]="MicrosoftSSO",e))(Bn||{}),Y_=(e=>(e[e.Default=0]="Default",e[e.Google=1]="Google",e[e.Impersonate=2]="Impersonate",e))(Y_||{});const ne=Q.createAction("common/setLoading"),Yt=Q.createAction("common/setModal"),zs=Q.createAction("common/setUser"),m4_=Q.createAction("common/setSidebar"),J=Q.createAction("common/setAlert"),Ts=Q.createAction("common/setIsLoginGoogle"),On=Q.createAction("common/setInforUserGoogle"),ot=Q.createAction("common/reset"),ui=Q.createAction("common/showMenuBar"),hi=Q.createAction("common/showFontSize"),mi=Q.createAction("common/setEnableIEP"),gi=Q.createAction("common/setEnableSurvey"),pi=Q.createAction("common/setEnableWellBeing"),yi=Q.createAction("common/setEnableMarioAi"),Gn=Q.createAction("common/setSandboxMode"),fi=Q.createAction("common/setConversationOneToOne"),wi=Q.createAction("common/setLanguage"),vi=Q.createAction("common/setCurrentStudentId"),bi=Q.createAction("common/setCurrentStudentUserId"),$i=Q.createAction("common/setCurrentStudentName"),ki=Q.createAction("common/setTurnOffPassWhenChangeMode"),xi=Q.createAction("common/initAmplitude"),g4_=e=>Object.keys(e).filter(t=>e[t]||e[t]===0||e[t]===!1).map(t=>Array.isArray(e[t])?e[t].map(_=>`${encodeURIComponent(t)}=${encodeURIComponent(_)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),j_=()=>{try{return sessionStorage.getItem(O_)?sessionStorage.getItem(jt):localStorage.getItem(jt)}catch{return null}},ue=ai.create({baseURL:ft,timeout:0,headers:{"Content-Type":"application/json"},paramsSerializer:e=>g4_(e)}),Ot=ai.create({baseURL:ft,timeout:6e4,headers:{"Content-Type":"multipart/form-data"}});[ue,Ot].forEach(e=>e.interceptors.request.use(t=>{const _=j_();return _&&(t.headers.Authorization=`Bearer ${_}`,localStorage.setItem("LAST_TIME_REQUETST",new Date().toISOString().replace("T"," ").split(".")[0])),t},t=>Promise.reject(t)));[ue,Ot].forEach(e=>e.interceptors.response.use(t=>t,t=>{if(console.log({error:t}),t.response.status===401){Object.keys(localStorage).forEach(c=>{c.includes("learning-plan")||delete localStorage[c]});const _=localStorage.getItem("USER_EMAIL"),o=localStorage.getItem("ROLES"),s=window.location.hostname;_&&(E_.track("general: session end",{user_id:_,domain:s,roles:o}),E_.setSessionId(-1)),localStorage.removeItem(jt),sessionStorage.removeItem(jt),sessionStorage.removeItem(O_),localStorage.removeItem("USER_EMAIL"),localStorage.removeItem("ROLES"),window.location.href="/login"}return t.response.status==403&&(localStorage.removeItem(jt),localStorage.removeItem("USER_EMAIL"),localStorage.removeItem("ROLES"),window.location.href="/login"),Promise.reject(t)}));const h_=`${ft}/api/account`,p4_=`${ft}/api/user`,zn=`${ft}/api/User`,y4_=e=>ue.post(`${ft}/api/User/infor-user-classlink`,e),Ci=e=>ue.post(`${h_}/login`,e),f4_=e=>ue.post(`${h_}/checktoken`,{token:e}),w4_=()=>ue.get(`${h_}/info`),v4_=e=>ue.post(`${h_}/forgotpassword`,e),b4_=e=>ue.get(`${h_}/new-user-create-password`,{params:{userId:e}}),$4_=(e,t)=>ue.post(`${h_}/checkResetToken`,{token:e,key:t}),k4_=e=>ue.post(`${h_}/resetpassword`,e),x4_=(e,t)=>ue.post(`${p4_}/check-user`,t,{params:{type:e}}),C4_=()=>ue.get(`${h_}/send-google`),fo=e=>ue.post(`${ft}/api/User/register-user`,e),I4_=e=>ue.post(`${h_}/createPassword`,e),S4_=e=>ue.get(`${zn}/all/deleted`,{params:e}),wo=(e,t)=>ue.delete(`${zn}/hardDelete/${e}`,{params:{userChangeId:t}}),A4_=()=>ue.get(`${zn}/all/teacher`),E4_=e=>ue.post(`${h_}/account-sso-log`,e),T4_=ct.object({email:ct.string().email("Email is invalid").required("Email is required"),password:ct.string().required("Password is required"),rememberMe:ct.boolean()}),j4_=({onSuccess:e,onError:t})=>{const _=oi.useGoogleLogin({onSuccess:async o=>{try{const s=await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${o.access_token}`}}).then(u=>u.json()),c={accessToken:o.access_token,googleId:s.sub,profileObj:{email:s.email,familyName:s.family_name,givenName:s.given_name,imageUrl:s.picture,name:s.name}};e(c)}catch(s){t(s)}},onError:o=>t(o)});return n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>_(),children:[n.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"24px",height:"24px",style:{marginRight:"8px"},children:[n.jsx("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),n.jsx("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),n.jsx("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),n.jsx("path",{fill:"#34A853",d:"M24 48c6.48 0 12.38-2.12 16.66-5.73l-7.73-6c-2.15 1.45-4.92 2.3-8.93 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"}),n.jsx("path",{fill:"none",d:"M0 0h48v48H0z"})]}),n.jsx("p",{children:"GOOGLE"})]})},N4_=({defaultInfo:e,userLogin:t,school:_,isShowPassword:o,setIsShowPassword:s,fnIsCheckLogin:c,googleClientId:u,fnLoginSSO:g,extensionEmail:d,onLoginWidthClever:p})=>{const x=()=>s(!o),f=Ee.useDispatch(),{executeRecaptcha:A}=Z_.useGoogleReCaptcha(),T=v.useCallback(async()=>{if(!A){console.log("execute recaptcha undefined");return}return await A("login")},[A]),P=v.useCallback(()=>{},[]),E=async C=>{try{await E4_(C)}catch(N){console.error(N)}},k=async C=>{if(C?.accessToken){let{email:N,familyName:L,givenName:D,imageUrl:O,name:R}=C.profileObj,W=C.accessToken,F=C.googleId;const G=window.location.hostname.split(".marioforme.com")?.[0],H=N.split("@")?.[1],q=d?.split(",")?.map(ee=>ee.trim())?.filter(ee=>ee).some(ee=>H.includes(ee));if(!H.includes(G)&&!q){alert("The email address you used does not match the login information in the database. Please check that you are using your school assigned email address to log into MARIO for Me. If you have further trouble please notify your school site administrator"),await E([`${H} is incorrect`]);return}const K={firstName:D,lastName:L,imageUrl:O,fullName:R,email:N,accessToken:W,googleId:F};f(On(K)),c(Bn.Google,K,W,T)}};return n.jsx(v.Fragment,{children:n.jsx(d_.Formik,{initialValues:e,validationSchema:T4_,onSubmit:async C=>{try{const N=await T();if(!N)return;C.captcha=N,C.loginType=Y_.Default,t(C)}catch(N){console.error(N)}},children:C=>{const{handleChange:N,handleBlur:L,handleSubmit:D,values:O,touched:R,errors:W,setFieldValue:F}=C,Z=R.email&&W.email,G=R.password&&W.password;return n.jsx("div",{className:`${V["box-login"]} w-100`,children:n.jsx(w.Form,{className:`${V["block-login"]}`,onSubmit:D,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsxs("div",{className:"d-flex align-items-center mb-4",children:[n.jsx("img",{hidden:!_?.schoolLogo,src:_?.schoolLogo,className:`${V["school-icon"]} mr-3`}),n.jsx("p",{className:`${V["school-name"]} mb-0`,children:_.schoolName})]}),n.jsx("p",{className:`${V["title-login"]}`,children:"Welcome Back!"}),n.jsx("p",{className:`${V["login-description"]} mb-5`,children:"Please enter your MARIO Education account details"}),n.jsxs(w.FormGroup,{className:`${V["form-user-name"]}`,children:[n.jsx(w.Input,{type:"text",name:"email",placeholder:"Email",value:O.email,onChange:N,autocomplete:"email",onBlur:L("email"),required:!0}),Z&&n.jsx(Nt,{text:W.email})]}),n.jsxs(w.FormGroup,{children:[n.jsx(hs,{isShowPassword:o,togglePasswordVisible:x,onChange:H=>F("password",H.target.value)}),G&&n.jsx(Nt,{text:W.password})]}),n.jsx(w.FormGroup,{children:n.jsx(Z_.GoogleReCaptcha,{action:"login",onVerify:P})}),n.jsxs("div",{className:"d-flex justify-content-between",children:[n.jsxs("div",{className:"d-flex align-items-center",style:{gap:"8px"},children:[n.jsx("input",{type:"checkbox",checked:!O.isSessionUserBrowser,className:`${V["checkbox-keep-login"]}`,onChange:()=>F("isSessionUserBrowser",!O.isSessionUserBrowser)}),n.jsx("p",{className:`${V["label-keep-login"]} mb-0 ml-2`,children:"Keep me logged in"})]}),n.jsx(Ct.Link,{to:"/forgot-password",className:`${V["link-to-login"]}`,children:"Forgot password?"})]}),n.jsx("button",{className:`${V["btn-login"]} mt-5`,type:"submit",children:"LOG IN"}),n.jsx("p",{className:`${V["option-text"]} my-3 text-center`,children:"OR"}),n.jsxs(w.Row,{className:"mb-4",children:[n.jsx(w.Col,{lg:6,md:6,xs:12,className:"pr-md-3",children:!!u&&n.jsx(oi.GoogleOAuthProvider,{clientId:u,children:n.jsx(j4_,{onSuccess:k,onError:()=>console.log("Google login failed")})})}),n.jsx(w.Col,{lg:6,md:6,xs:12,className:`${V["btn-login-sso"]} pl-md-2`,hidden:!_?.schoolId,children:n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>g(T),children:[n.jsx("img",{src:"images/microsoft-logo.png"}),n.jsx("p",{children:"MICROSOFT"})]})})]}),n.jsx("div",{className:`${V["btn-login-sso"]}`,children:n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>window.open("https://launchpad.classlink.com/login"),children:[n.jsx("img",{src:"images/class-link-icon.png"}),n.jsx("p",{children:"SIGN IN WITH CLASSLINK"})]})}),n.jsx("div",{className:`${V["btn-login-sso"]} mt-4`,children:n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>p(),children:[n.jsx("img",{src:"images/clever-icon.png"}),n.jsx("p",{children:"SIGN IN WITH CLEVER"})]})})]})})})}})})},P4_={email:"",captcha:""},q4_="/",vo="/login",R4_="Log in",Ii=()=>{const e=new URLSearchParams(Ct.useLocation().search),t=e.get("token"),_=e.get("key")??"",o=Ee.useDispatch(),s=Ct.useNavigate(),[c,u]=v.useState(!1),g=v.useCallback(()=>{u(!c)},[c]),[d,p]=v.useState(!1),[x,f]=v.useState(!1),[A,T]=v.useState({token:"",password:"",reEnterPassword:"",email:"",userId:""}),[P,E]=v.useState(!0),{executeRecaptcha:k}=Z_.useGoogleReCaptcha();v.useEffect(()=>{document.title=R4_,j_()&&s(q4_)},[]);const C=v.useCallback(async R=>{o(ne(!0));try{await v4_(R),s(vo),o(J({type:"success",message:"A mail to reset password was sent"}))}catch(W){o(J({type:"danger",message:W.response?.data?.title||W.message||"Error occured"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}o(ne(!1))},[]),N=v.useCallback(async(R,W)=>{o(ne(!0));try{const F=await $4_(R,W);F.data?T({...A,token:R,email:F.data}):E(!1)}catch{E(!1)}o(ne(!1))},[]),L=v.useCallback(async R=>{o(ne(!0));try{await k4_({...R,key:_}),s(vo),o(J({type:"success",message:"Reset password sucessfully"}))}catch(W){o(J({type:"danger",message:W.response?.data?.title||W.message||"Error occured"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}o(ne(!1))},[]),D=v.useCallback(async()=>{if(!k){console.log("execute recaptcha undefined");return}return await k("forgetPass")},[k]),O=v.useCallback(()=>{},[]);return v.useEffect(()=>{N(t,_)},[]),{defaultInfo:P4_,forgotPasswordRequest:C,checkResetTokenRequest:N,validLink:P,resetPasswordRequest:L,openLogin:c,toggle:g,isShowNewPassword:d,setIsShowNewPassword:p,isShowReTypePassword:x,setIsShowReTypePassword:f,clickHandler:D,handleVerify:O,initialValues:A}},L4_={email:"",captcha:""},M4_=ct.object({email:ct.string().email("Email is invalid").required("Email is required")}),D4_=({school:e})=>{const{forgotPasswordRequest:t,clickHandler:_,handleVerify:o}=Ii();return n.jsx(d_.Formik,{initialValues:L4_,enableReinitialize:!0,validationSchema:M4_,onSubmit:async s=>{const c=await _();c&&(s.captcha=c,t(s))},children:s=>{const{handleChange:c,handleSubmit:u,values:g,touched:d,errors:p}=s;return n.jsx("div",{className:`${V["box-login"]}`,children:n.jsx("div",{className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsxs("div",{className:"d-flex align-items-center mb-4",children:[n.jsx("img",{src:e.schoolLogo,className:`${V["school-icon"]} mr-3`}),n.jsx("p",{className:`${V["school-name"]} mb-0`,children:e.schoolName})]}),n.jsx("p",{className:`${V["title-login"]} `,children:"Forgot password"}),n.jsx("p",{className:`${V["recover-account"]} mb-5`,children:"Enter email to recover your account"}),n.jsxs("div",{className:"w-100",children:[n.jsx(w.Input,{type:"text",name:"email",id:"email",placeholder:"Input email",onChange:c,value:g.email}),d.email&&p.email&&n.jsx(Nt,{text:p.email})]}),n.jsx(Ct.Link,{to:"/login",className:`${V["link-to-login"]} mt-2`,children:"Return to login"}),n.jsx(Z_.GoogleReCaptcha,{action:"forgetPass",onVerify:o}),n.jsx(w.Col,{className:"p-0",children:n.jsx("button",{className:`${V["btn-login"]} mt-5`,onClick:()=>u(),children:"Continue"})})]})})})}})},n_=e=>{const t="https://stage2.marioforme.com",_=t===location.origin;return e?U_&&!_||e.startsWith("http")?e:e.startsWith("/")?`${_?t:yo}${e}`:`${_?t:yo}/${e}`:""},B4_=ct.object({password:ct.string().required("New password is required"),reEnterPassword:ct.string().required("Please re-enter new password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),O4_=()=>{const{validLink:e,resetPasswordRequest:t,isShowNewPassword:_,setIsShowNewPassword:o,isShowReTypePassword:s,setIsShowReTypePassword:c,initialValues:u}=Ii();return n.jsx(d_.Formik,{initialValues:u,enableReinitialize:!0,validationSchema:B4_,onSubmit:g=>{t(g)},children:g=>{const{setFieldValue:d,handleSubmit:p,touched:x,errors:f,values:A}=g;return n.jsx(w.Row,{className:`${V["box-login"]}`,children:n.jsx(w.Col,{className:"p-0",children:n.jsx("div",{className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsx("img",{src:`${n_("/images/horizontal-logo-blue.svg")}`,className:`${V["img-login-rectangle"]}`}),n.jsx("p",{className:`${V["title-login"]}`,children:"Reset Password"}),n.jsx("div",{className:"w-100",children:e?n.jsxs(v.Fragment,{children:[n.jsx(w.FormGroup,{className:`${V["form-user-name"]}`,children:n.jsx(w.Input,{disabled:!0,type:"text",name:"email",placeholder:"Email",value:A.email,autocomplete:"email",required:!0,className:`${V.input}`})}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{isShowPassword:_,togglePasswordVisible:()=>o(!_),onChange:T=>d("password",T.target.value)}),x.password&&f.password&&n.jsx(Nt,{text:f.password})]}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{placeholder:"Confirm Password",isShowPassword:s,togglePasswordVisible:()=>c(!s),onChange:T=>d("reEnterPassword",T.target.value)}),x.reEnterPassword&&f.reEnterPassword&&n.jsx(Nt,{text:f.reEnterPassword})]})]}):n.jsxs(v.Fragment,{children:[n.jsx("p",{className:`${V["recover-account"]} mb-5`,children:"Invalid reset password link"}),n.jsx("p",{className:"w-100",children:"It may have been accessed before or expired or you have just tried to reset another account's password"})]})}),e&&n.jsx(w.Col,{className:"p-0",children:n.jsx("button",{className:`${V["btn-login"]} ${V["btn-rounder"]} mt-4`,onClick:()=>p(),children:"SET A NEW PASSWORD"})})]})})})})}})},Si=`${ft}/api/school`,G4_=()=>ue.get(`${Si}/settings`),z4_=()=>ue.get(`${Si}/info`),F4_={auth:{clientId:U_?"a27f8ac9-e039-4bbd-a9e1-3096e52a77bb":"90c6897c-f17b-475e-a7a8-9a19651e0060",authority:"https://login.microsoftonline.com/common",redirectUri:"https://sso.marioforme.com/microsoft-login.html"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(e,t,_)=>{if(!_)switch(e){case is.LogLevel.Error:console.error(t);return;case is.LogLevel.Info:console.info(t);return;case is.LogLevel.Verbose:console.debug(t);return;case is.LogLevel.Warning:console.warn(t);return;default:return}}}}},o_=e=>!e||!e.trim()?"":e.startsWith("/avatars/default-student-avatar")?e:`${ft}/api/file/viewer?key=${e}`,Ai=e=>document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()||"",H4_={email:"",password:"",captcha:"",rememberMe:!1,isSessionUserBrowser:!!sessionStorage.getItem(O_)},V4_="/home",bo="/home",W4_="/admin/home",U4_="/parent",Y4_="/admin/schools",X4_="/list-student",Z4_="Log in",J4_=()=>{const e=Ee.useDispatch(),t=Ct.useNavigate(),[_,o]=v.useState(!1),s=Ee.useSelector(re=>re.common.isLoginGoogle),[c,u]=v.useState(""),[g,d]=v.useState(""),[p,x]=v.useState(""),f=Ee.useSelector(re=>re.common.inforUserGoogle),A=new URLSearchParams(location.search),T=A.get("type")==="classlink",P=A.get("token"),E=A.get("isAdminUser"),[k]=v.useState(!1),[C,N]=v.useState({schoolName:"",schoolLogo:"",schoolId:0}),[L,D]=v.useState(null),O=v.useCallback(()=>{o(!_)},[_]),[R,W]=v.useState(!1);v.useEffect(()=>{document.title=Z4_;const re=Ai("auth-token");if(re){const Te=window.location.hostname;if(localStorage.setItem(jt,re),document.cookie=`auth-token=;domain=${Te.includes("localhost")?Te:".marioforme.com"}; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`,document.cookie="redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",E)return t("/admin/home")}j_()&&t("/"),ee()},[E]);const F=()=>{localStorage.removeItem(jt),sessionStorage.removeItem(jt),localStorage.removeItem("USER_EMAIL")};v.useEffect(()=>{T&&P!=""&&G()},[]);const Z=()=>{if(U_){const re="https://clever.com/oauth/instant-login?client_id=c3da6c669d239c70d48e&district_id=66132a6f222bda41cc8abe5d";window.location.href=re}else{const re=`https://clever.com/oauth/authorize?response_type=code&redirect_uri=${encodeURIComponent("https://classlink.marioforme.com/api/clever/clever-login")}&client_id=c3da6c669d239c70d48e`;window.location.href=re}},G=async()=>{e(ne(!0));try{const ge=await y4_({tokenClassLink:P}),{email:Te,token:Pe}=ge.data;await K({email:Te,rememberMe:!1,password:"default",accessToken:Pe})}catch(re){e(J({type:"danger",message:re.response?.data?.title||re.message}))}e(ne(!1))},H=window.location.host.includes("-district"),q=v.useCallback(async()=>{e(ne(!0));try{const re=await z4_(),ge=re.data.schoolLogo??"";re.data&&N({schoolName:re.data.schoolName,schoolLogo:ge?o_(ge):n_("/images/logo_header_blue.png"),schoolId:re.data.schoolId})}catch(re){e(J({type:"danger",message:re.response?.data?.title||re.message}))}e(ne(!1))},[]),K=v.useCallback(async re=>{e(ne(!0));try{const ge=re?.isSessionUserBrowser??!1,Te=await Ci({...re,email:re?.email?.trim(),password:re?.password?.trim()}),{token:Pe,id:Fe,firstName:ht,lastName:Ye,roles:pe,email:$e,profileImageFileName:$t,isLoginFirst:Ht}=Te.data;if(ge?(sessionStorage.setItem(jt,Pe),sessionStorage.setItem(O_,ge)):(sessionStorage.removeItem(O_),localStorage.setItem(jt,Pe)),localStorage.removeItem(Mn),e(zs({id:Fe,firstName:ht,lastName:Ye,roles:pe,email:$e,profileImageFileName:$t})),!localStorage.getItem("ROLES")&&pe.includes("Admin")&&localStorage.setItem("ROLES","Admin"),re?.email&&!pe.includes("Admin")){E_.init(U_?ri:ii,re.email,{defaultTracking:!1});const It=window.location.hostname,Vt=new E_.Identify;Vt.set("domain",It),E_.identify(Vt),E_.track("general: session start",{user_id:re.email,domain:It,roles:re?.roles?.toString()}),localStorage.setItem("USER_EMAIL",re.email),Ht&&E_.track("general: first login",{user_id:re.email,domain:It,roles:re?.roles?.toString()})}H?t(Y4_):pe.includes("Admin")?t(W4_):pe.includes("Teacher")||pe.includes("Assistant")||pe.includes("Counselor")||pe.includes("SecondaryTeacher")?t(V4_):pe.includes("Student")?t(bo):pe.includes("Parent")?t(U4_):pe.includes("EduTeacher")&&t(X4_)}catch(ge){e(J({type:"danger",message:ge.response?.data?.title||ge.message||"Login failed"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}e(ne(!1))},[]),ee=async()=>{try{const re=await C4_();u(re.data.googleClientId),d(re.data.googleCaptchaId),x(re.data.extensionEmail)}catch(re){e(J({type:"danger",message:re.response?.data?.title||re.message||"Login failed"}))}},xe=v.useCallback(async(re,ge,Te,Pe)=>{e(ne(!0));try{if((await x4_(re,ge)).data){const Ye={email:ge.email,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:Te,captcha:"",loginType:Y_.Google};if(Pe!=null){const pe=await Pe();Ye.captcha=pe}await K(Ye),e(Ts(!1))}else if((await fo(ge))?.data){const pe={email:ge.email,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:Te,captcha:"",loginType:Y_.Google};if(Pe!=null){const $e=await Pe();pe.captcha=$e}await K(pe)}}catch(Fe){e(J({type:"danger",message:Fe.response?.data?.title||Fe.message||"Login failed"}))}e(ne(!1))},[]),Ne=async(re,ge)=>{e(ne(!0));try{const Te={firstName:f.firstName,lastName:f.lastName,imageUrl:f.imageUrl,fullName:f.fullName,email:f.email,accessToken:f.accessToken,teacherId:re};if((await fo(Te)).data){const Fe=await ge(),ht={email:f.email,captcha:Fe,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:f.accessToken,loginType:Y_.Google};e(Ts(!1)),await K(ht),t(bo)}}catch(Te){e(J({type:"danger",message:Te.response?.data?.title||Te.message||"Login failed"}))}e(Ts(!1)),e(ne(!1))},et=async()=>{try{const re=await G4_();e(Gn(re.data.isSandboxMode))}catch(re){console.error(re)}},De=async re=>{L.handleRedirectPromise().then(async ge=>{if(C?.schoolId)if(ge){let Te=ge.account;await le(Te,re)}else{const Te=L.getAllAccounts();if(Te.length===0){const Pe=U_?"https://brightsoft.marioforme.com":"https://sso.marioforme.com";window.location.href=(window.location.hostname==="localhost"?"https://localhost:5001":Pe)+`/microsoft-login.html?redirect-uri=${window.location.href}&schoolId=${C.schoolId}`}else{let Pe=Te[0];await le(Pe,re)}}}).catch(ge=>{console.error(ge)})},le=async(re,ge)=>{let Te=re.name,Pe={firstName:Te.split(" ").slice(0,-1).join(" "),lastName:Te.split(" ").slice(-1).join(" "),fullName:Te,imageUrl:"",email:re.username,accessToken:re.idTokenClaims.aio,googleId:re.tenantId};e(On(Pe)),await xe(Bn.MicrosoftSSO,Pe,re.idTokenClaims.aio,ge)},Ue=async()=>{const re=new is.PublicClientApplication(F4_);D(re)};return v.useEffect(()=>{let re=window.location.href;L&&re.includes("code")&&re.includes("client_info")&&De()},[JSON.stringify(L)]),v.useEffect(()=>{et(),Ue(),q()},[]),{defaultInfo:H4_,userLogin:K,openLogin:_,toggle:O,isShowPassword:R,setIsShowPassword:W,fnIsCheckLogin:xe,isLoginGoogle:s,infoUser:f,submitLogin:Ne,googleClientId:c,googleRecaptchaId:g,handleCancelModelAssign:F,openModelAssign:k,fnLoginSSO:De,school:C,extensionEmail:p,handleLoginWidthClever:Z}},$o="/",Q4_="/login",ko="Log in",K4_=()=>{const e=Ee.useDispatch(),t=Ct.useNavigate(),_=location.search,s=new URLSearchParams(_).get("userId"),[c,u]=v.useState(!1),[g,d]=v.useState(!1),[p,x]=v.useState({password:"",reEnterPassword:"",email:"",userId:s??"",token:""}),{executeRecaptcha:f}=Z_.useGoogleReCaptcha(),A=v.useCallback(async k=>{e(ne(!0));try{const C=await b4_(k);x({...p,email:C.data})}catch(C){e(J({type:"danger",message:C.message}))}e(ne(!1))},[]),T=v.useCallback(async k=>{e(ne(!0));try{await I4_(k),t(Q4_),e(J({type:"success",message:"Create password sucessfully"}))}catch(C){e(J({type:"danger",message:C.response?.data?.title||C.message||"Error occured"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}e(ne(!1))},[]),P=v.useCallback(async()=>{if(!f){console.log("execute recaptcha undefined");return}return await f("forgetPass")},[f]),E=v.useCallback(()=>{},[]);return v.useEffect(()=>{document.title=ko,j_()&&t($o),s&&A(s)},[s]),v.useEffect(()=>{document.title=ko,j_()&&t($o)},[]),{createPasswordRequest:T,isShowNewPassword:c,setIsShowNewPassword:u,isShowReTypePassword:g,setIsShowReTypePassword:d,clickHandler:P,handleVerify:E,initialValues:p}},eC_=ct.object({password:ct.string().required("Password is required"),reEnterPassword:ct.string().required("Please re-enter Password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),tC_=()=>{const{createPasswordRequest:e,isShowNewPassword:t,setIsShowNewPassword:_,isShowReTypePassword:o,setIsShowReTypePassword:s,initialValues:c}=K4_();return n.jsx(d_.Formik,{initialValues:c,enableReinitialize:!0,validationSchema:eC_,onSubmit:u=>{e(u)},children:u=>{const{setFieldValue:g,handleSubmit:d,touched:p,errors:x,values:f}=u;return n.jsx(w.Row,{className:`${V["box-login"]}`,children:n.jsxs(w.Col,{className:"p-0",children:[n.jsx("div",{hidden:!f.email,className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsx("img",{src:`${n_("/images/horizontal-logo-blue.svg")}`,className:`${V["img-login-rectangle"]}`}),n.jsx("p",{className:`${V["title-login"]}`,children:"Create Your Password"}),n.jsx("div",{className:"w-100",children:n.jsxs(v.Fragment,{children:[n.jsx(w.FormGroup,{className:`${V["form-user-name"]}`,children:n.jsx(w.Input,{disabled:!0,type:"text",name:"email",placeholder:"Email",value:f.email,autocomplete:"email",required:!0,className:`${V.input}`})}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{isShowPassword:t,togglePasswordVisible:()=>_(!t),onChange:A=>g("password",A.target.value)}),p.password&&x.password&&n.jsx(Nt,{text:x.password})]}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{placeholder:"Confirm Password",isShowPassword:o,togglePasswordVisible:()=>s(!o),onChange:A=>g("reEnterPassword",A.target.value)}),p.reEnterPassword&&x.reEnterPassword&&n.jsx(Nt,{text:x.reEnterPassword})]})]})}),n.jsx("button",{className:`${V["btn-login"]} ${V["btn-rounder"]} mt-4`,onClick:()=>d(),children:"CREATE YOUR PASSWORD"})]})}),n.jsx("div",{hidden:!!f.email,className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsx("img",{src:`${n_("/images/horizontal-logo-blue.svg")}`,className:`${V["img-login-rectangle"]}`}),n.jsx("p",{className:`${V["title-login"]}`,children:"You cannot regenerate the password"})]})})]})})}})},_C_="Log in",sC_="Forgot password",nC_="Reset password",oC_=e=>{const{isLogin:t,isForgotPassword:_,isResetPassword:o,isCreatePassword:s}=e,{defaultInfo:c,userLogin:u,googleRecaptchaId:g,handleCancelModelAssign:d,school:p,openModelAssign:x,setIsShowPassword:f,fnIsCheckLogin:A,isLoginGoogle:T,submitLogin:P,infoUser:E,googleClientId:k,isShowPassword:C,fnLoginSSO:N,extensionEmail:L,handleLoginWidthClever:D}=J4_();return v.useEffect(()=>{t&&(document.title=_C_),_&&(document.title=sC_),o&&(document.title=nC_)},[t,_,o]),n.jsx("div",{className:`${V.login} container-fluid font-family-lato`,children:n.jsxs(w.Row,{className:"h-100",children:[n.jsxs(w.Col,{lg:8,md:12,xs:12,className:"d-flex justify-content-center h-100 align-items-center p-3 flex-column",children:[!!g&&n.jsxs(Z_.GoogleReCaptchaProvider,{useRecaptchaNet:!0,reCaptchaKey:g,scriptProps:{async:!0,defer:!0,appendTo:"body"},children:[t&&n.jsx(N4_,{userLogin:u,defaultInfo:c,onCancelModelAssign:d,openModelAssign:x,school:p,fnIsCheckLogin:A,googleClientId:k,infoUser:E,isLoginGoogle:T,isShowPassword:C,setIsShowPassword:f,submitLogin:P,fnLoginSSO:N,extensionEmail:L,onLoginWidthClever:D}),_&&n.jsx(D4_,{school:p})]}),o&&n.jsx(O4_,{}),s&&n.jsx(tC_,{}),n.jsx("a",{href:"/privacy-policy/",target:"blank",className:`${V["privacy-policy"]}`,children:"Privacy Policy"})]}),n.jsx(w.Col,{className:"p-3 mh-100 d-flex justify-content-end",lg:4,md:12,xs:12,children:n.jsx("img",{src:`${n_(window.innerWidth>992?"/images/img-login.png":"/images/img-login-tablet.png")}`,className:`${V["img-login"]}`})})]})})},aC_=()=>n.jsxs("div",{className:`${V["content-quote"]}`,children:[n.jsxs("div",{className:`${V["title-quote"]} d-block`,children:[n.jsx("p",{children:"Powerful"}),n.jsx("p",{children:"Personalized"}),n.jsx("p",{children:"Learning"})]}),n.jsxs("div",{className:`${V["descriptions-quote"]} d-block`,children:[n.jsx("p",{children:"Focus on what matters most to you and"}),n.jsx("p",{children:"make learning meaningful."})]})]}),iC_=({srcIcon:e,content:t})=>n.jsxs("div",{className:`${V["content-icon"]}`,children:[n.jsx("div",{className:`${V["title-icon"]}`,children:n.jsx("img",{src:n_(e),alt:"icon"})}),n.jsx("div",{className:`${V["descriptions-icon"]}`,dangerouslySetInnerHTML:{__html:t}})]},t),rC_=[{scrIcon:"/images/ChatsTeardrop.svg",content:"<p>Understand yourself better through <span>helpful feedback</span>.</p>"},{scrIcon:"/images/Student.svg",content:"<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"},{scrIcon:"/images/Confetti.svg",content:"<p>Set, monitor, and achieve <span>your goals</span>.</p>"}],cC_=({})=>n.jsxs(w.Row,{className:`${V["page-not-login"]}`,children:[n.jsx(w.Col,{md:12,children:n.jsx(aC_,{})}),n.jsx(w.Col,{md:12,className:`${V["box-content-home-page"]} d-flex align-items-center`,children:rC_.map(e=>n.jsx(iC_,{srcIcon:e.scrIcon,content:e.content},e.scrIcon))})]});var Ei={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xo=v.createContext&&v.createContext(Ei),T_=function(){return T_=Object.assign||function(e){for(var t,_=1,o=arguments.length;_<o;_++){t=arguments[_];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},T_.apply(this,arguments)},lC_=function(e,t){var _={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(_[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(_[o[s]]=e[o[s]]);return _};function Ti(e){return e&&e.map(function(t,_){return v.createElement(t.tag,T_({key:_},t.attr),Ti(t.child))})}function Rt(e){return function(t){return v.createElement(dC_,T_({attr:T_({},e.attr)},t),Ti(e.child))}}function dC_(e){var t=function(_){var o=e.attr,s=e.size,c=e.title,u=lC_(e,["attr","size","title"]),g=s||_.size||"1em",d;return _.className&&(d=_.className),e.className&&(d=(d?d+" ":"")+e.className),v.createElement("svg",T_({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},_.attr,o,u,{className:d,style:T_(T_({color:e.color||_.color},_.style),e.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),c&&v.createElement("title",null,c),e.children)};return xo!==void 0?v.createElement(xo.Consumer,null,function(_){return t(_)}):t(Ei)}function uC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const hC_=1e4,mC_=({data:e,duration:t=hC_})=>{const[_,o]=v.useState(e.length),s=v.useRef(null),c=v.useCallback(d=>d===_?`${V.active} ${V.show}`:"",[_]),u=v.useCallback(d=>_===0&&d===e.length-1||d===_-1?V.behind:"",[_,e.length]),g=v.useCallback(()=>{s&&s.current&&clearInterval(s.current),s.current=setInterval(()=>{o(d=>d>=e.length-1?0:d+1)},t)},[t,e.length]);return v.useEffect(()=>(g(),()=>{s&&s.current&&clearInterval(s.current)}),[e.length,t]),n.jsx("div",{className:`${V["bg-animate"]} position-absolute`,children:e.map((d,p)=>n.jsx("img",{alt:`Image ${p+1}`,className:`${u(p)} ${c(p)}`,src:n_(d)},p))})},gC_="/admin/users/user-list",pC_="/home",yC_="/home",fC_="Dashboard",wC_="Mario Education",vC_=["images/landing-page.jpg","images/landing-page2.jpg","images/landing-page3.jpg"],bC_=({version:e})=>{const[t,_]=v.useState(!1),o=Ee.useSelector(c=>c.common.user),s=()=>_(!t);return v.useEffect(()=>{o?document.title=fC_:document.title=wC_},[o]),n.jsxs("div",{className:`${V.login} ${V["red-background"]} position-relative`,children:[n.jsx("span",{className:`${V["version-prod"]}`,children:`v ${e}`}),n.jsx(mC_,{data:vC_}),n.jsxs("div",{className:`${V["login-content"]}`,children:[n.jsxs(w.Navbar,{light:!0,expand:"md",children:[n.jsx(w.NavbarBrand,{href:"/",className:`${V["logo-home"]}`,children:n.jsx("img",{src:n_("/images/logo-white.svg"),alt:"mario"})}),n.jsx(uC_,{onClick:s,className:`${V["hide-in-desktop"]} ${V["hamburger-menu"]}`}),n.jsxs(w.Collapse,{isOpen:t,navbar:!0,className:`${V["collapse-box"]}`,children:[n.jsxs(w.Nav,{className:`${V["nav-home"]} d-md-flex w-100 justify-content-center mr-auto`,navbar:!0,children:[n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${V["learn-more"]} align-self-md-center`,href:"https://marioframework.com/software",target:"blank",children:"Learn More"})}),n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${V["learn-more"]} align-self-md-center`,href:"mailto: Info@marioeducation.com",target:"blank",children:"Contact"})}),n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${V["learn-more"]} align-self-md-center`,href:"/privacy-policy",target:"blank",children:"Privacy Policy"})})]}),n.jsx("div",{className:`${V["hide-in-mobile"]} d-flex justify-content-end`,children:o?n.jsx(Ct.Link,{to:o.roles.includes("Admin")?gC_:o.roles.includes("Teacher")?pC_:yC_,className:`${V["btn-trans-border"]}`,children:"Dashboard"}):n.jsx(Ct.Link,{to:"/login",className:`${V["btn-trans-border"]}`,children:"Login"})})]})]}),n.jsx("div",{className:"",children:n.jsx(cC_,{})}),n.jsx("div",{className:`${V["digital-privacy-icon"]}`,children:n.jsx("a",{href:"https://cert.privo.com/#/companies/marioFrameworkLlc",target:"blank",children:n.jsx("img",{src:n_("/images/STUDENT.png"),alt:"icon"})})})]})]})},$C_="Not found",Fn=()=>(v.useEffect(()=>{document.title=$C_}),n.jsx("div",{className:"not-found",children:n.jsxs("div",{className:"clearfix",children:[n.jsx("h1",{className:"float-left display-3 mr-4",children:"404"}),n.jsxs("div",{className:"float-left",children:[n.jsx("h4",{className:"pt-3",children:"Oops! You are lost."}),n.jsx("p",{className:"text-muted mb-2",children:"The page you are looking for was not found."}),n.jsx("div",{children:n.jsx(Ct.Link,{to:"/",children:"Go to home"})})]})]})})),kC_=n.jsx("div",{className:"pt-3 text-center",children:n.jsx("div",{className:"sk-spinner sk-spinner-pulse"})}),xC_=({routes:e})=>{const t=Ct.useLocation(),{pathname:_}=t,o=_.includes("/admin")?"":"box-container",s=_.includes("/admin")?"p-4":"";return n.jsx("main",{className:`c-main ${o}`,style:{height:"100%"},children:n.jsx(rd.CContainer,{fluid:!0,className:`h-100 ${s}`,style:{flex:1},children:n.jsx(v.Suspense,{fallback:kC_,children:n.jsxs(Ct.Routes,{children:[e.map((c,u)=>n.jsx(Ct.Route,{path:c.path,element:n.jsx(c.component,{})},u)),n.jsx(Ct.Route,{path:"*",element:n.jsx(Fn,{})})]})})})})},CC_=v.memo(xC_);function IC_(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function SC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function AC_(e){return Rt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"}}]})(e)}function EC_(e){return Rt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"}}]})(e)}function TC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"}}]})(e)}function ji(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function jC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"}}]})(e)}function Ni(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function NC_(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function PC_(e){return Rt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(e)}function qC_(e){return Rt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}}]})(e)}const RC_={fontWeight:500},LC_={height:38,backgroundColor:"#2eb85c",borderColor:"#2eb85c",display:"flex",alignItems:"center",justifyContent:"center",gap:4},Fs=({text:e,onClick:t})=>n.jsxs(w.Button,{onClick:t,style:LC_,className:"d-flex align-items-center",children:[n.jsx(ji,{}),n.jsx("span",{className:"ml-2",style:RC_,children:e})]}),Hs=({onClick:e,className:t})=>n.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:n.jsx(Ni,{className:t})}),ms=({label:e,onClick:t})=>n.jsx(w.Button,{className:"text-left py-0",color:"link",onClick:t,style:{textAlign:"left",textDecoration:"none"},children:e}),Q_=({label:e,className:t="",style:_={}})=>{const{t:o}=at.useTranslation();return n.jsx(w.Alert,{color:"primary",className:t,style:_,children:o("no_item_to_display",{item:e})})},G_=e=>{const{filters:t,changePage:_,totalRecordCount:o,changePageSize:s}=e,[c,u]=v.useState("");return v.useEffect(()=>{u(t.currentPage.toString())},[t.currentPage]),n.jsx(w.Row,{children:n.jsx(w.Col,{md:12,className:"d-flex justify-content-end",children:n.jsxs(w.Pagination,{children:[n.jsx("div",{className:"mr-1 pagination-dropdown",children:n.jsx(u_,{className:"text-center",value:t&&t.pageSize?{label:t.pageSize,value:t.pageSize}:ci,options:P3_,onChange:g=>s(g.value),styles:{menu:g=>({...g,zIndex:9999})},menuPosition:"fixed"})}),n.jsx(w.PaginationItem,{className:"mr-1",children:n.jsx(w.PaginationLink,{previous:!0,tag:"button",className:"h-100",disabled:t.currentPage<=1,onClick:()=>_(t.currentPage-1),children:"Prev"})}),n.jsx("input",{type:"text",id:"pageNumberInput",className:"page-input text-center pagination-input",onChange:g=>u(g.target.value),onKeyUp:g=>{(g.key==="Enter"||g.keyCode===13)&&_(parseInt(c))},value:c}),n.jsx(w.PaginationItem,{className:"ml-1",children:n.jsx(w.PaginationLink,{next:!0,tag:"button",className:"h-100",disabled:t.currentPage>o/t.pageSize,onClick:()=>_(t.currentPage+1),children:"Next"})})]})})})},Pi=Q.createAction("emailTemplate/setEmailTemplateList"),Vs=Q.createAction("mailCategories/setMailCategory"),MC_="/api/TinyMCEKey",gs=`${ft}/api/emailtemplate`,DC_=e=>ue.get(gs,{params:e}),BC_=e=>ue.get(`${gs}/${e}`),OC_=e=>ue.post(gs,e),GC_=e=>ue.put(`${gs}/${e.id}`,e),zC_=e=>ue.delete(`${gs}/${e}`),FC_=()=>ue.get(`${MC_}`),HC_=`${ft}/api/EmailTemplateCategory`,qi=()=>ue.get(HC_),Ws=()=>{const[e,t]=v.useState(Pn);return{filters:e,setFilters:t,changeFilters:o=>{const s={...e,...o};s.searchString&&o.searchString&&o.searchString!=e.searchString&&(s.currentPage=1),t(s)}}},VC_="/admin/email-template",WC_="/admin/create-email-template",UC_="Email template list",YC_=()=>{const e=Ct.useNavigate(),{t}=at.useTranslation(),_=Ee.useSelector(f=>f.emailTemplate.emailTemplateList),o=Ee.useSelector(f=>f.emailTemplate.totalItems),s=Ee.useSelector(f=>f.mailCategory.mailCategoryList),{filters:c,changeFilters:u}=Ws(),g=Ee.useDispatch(),d=v.useCallback(async()=>{g(ne(!0));try{const f=await DC_(c),{items:A,totalItems:T}=f.data;if(g(Pi({emailTemplateList:A,totalItems:T})),s&&s.length==0){const P=await qi();g(Vs(P.data.items))}}catch(f){g(J({type:"danger",message:f.response?.data?.title||f.message}))}g(ne(!1))},[g,c]),p=v.useCallback(f=>{g(ne(!0));try{g(Yt({isOpen:!0,type:"warning",message:t("do_you_want_to_remove_this_email_template"),onConfirm:async()=>{await zC_(f),g(J({type:"success",message:"Remove template successfully"})),u({currentPage:1})}}))}catch(A){g(J({type:"danger",message:A.response?.data?.title||A.message}))}g(ne(!1))},[c]),x=v.useCallback(f=>{const A=f?`${VC_}/${f}`:WC_;e(A)},[]);return v.useEffect(()=>{document.title=UC_},[]),v.useEffect(()=>{d()},[c]),{emailTemplateList:_,totalItems:o,filters:c,changeFilters:u,getData:d,removeData:p,goToDetail:x,mailCategoryList:s}},XC_="email_template",ZC_=()=>{const{emailTemplateList:e,totalItems:t,filters:_,changeFilters:o,removeData:s,goToDetail:c,mailCategoryList:u}=YC_(),{t:g}=at.useTranslation(),d=p=>{s(p)};return n.jsxs("div",{className:"fadeIn animated",children:[n.jsx("h5",{className:"mb-2",children:g(XC_)}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:4,children:n.jsx(Fs,{text:g("create_template"),onClick:()=>c()})}),n.jsxs(w.Col,{md:4,className:"d-flex align-items-center justify-content-end",children:[g("total_of_templates"),": ",t]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsxs(w.Col,{md:8,children:[e&&e.length>0?n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"align-top",children:g("template_name")}),n.jsx("th",{className:"align-top",children:g("category_name")}),n.jsx("th",{className:"align-top",children:g("created_date")}),n.jsx("th",{className:"text-center",children:g("action")})]})}),n.jsx("tbody",{children:e.map(p=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:n.jsx(ms,{label:p.subject,onClick:()=>c(p.id)})}),n.jsx("td",{className:"align-middle",children:p.category.name}),n.jsx("td",{className:"align-middle",children:v_.format(new Date(p.createdAt),li)}),n.jsx("td",{className:"text-center align-middle",children:n.jsx(Hs,{onClick:()=>d(p.id)})})]},p.id))})]}):n.jsx(Q_,{label:g("template")}),n.jsx(w.Row,{className:"mt-2",children:n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:_,totalRecordCount:t,changePageSize:p=>o({pageSize:p}),changePage:p=>o({currentPage:p})})})})]}),n.jsx(w.Col,{md:4,children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsx("tr",{children:n.jsx("th",{className:"align-top",children:g("category_name")})})}),n.jsx("tbody",{children:u.map(p=>n.jsx("tr",{children:n.jsx("td",{className:"align-middle",children:p.name})},p.id))})]})})]})]})},Co={width:"100%",position:"fixed",bottom:60,backgroundColor:"#fff",borderTop:"1px solid #ddd",padding:"18px 8px",zIndex:2},Hn=({confirmText:e,onConfirm:t,onCancel:_})=>{const{t:o}=at.useTranslation(),s=Ps<=767?Object.assign(Co,{bottom:0,magin:0}):{...Co};return n.jsx(w.Row,{form:!0,style:s,children:n.jsxs(w.Col,{md:12,style:{textAlign:Ps<=767?"right":"left",display:"flex",alignItems:"center",gap:"5px"},children:[n.jsx(w.Button,{color:"primary",size:"sm",className:"px-4 pl-1 mr-2 ml-3",onClick:t,children:e}),n.jsx(w.Button,{size:"sm",className:"px-4 mr-2 ml-2",onClick:_,children:o("cancel")})]})})},JC_=({onClick:e})=>n.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:n.jsx(ji,{})}),Io=[{label:"$USER_FIRST_NAME$",meaning:"user_first_name"},{label:"$USER_LAST_NAME$",meaning:"user_last_name"},{label:"$PASSWORD$",meaning:"password"},{label:"$USER_NAME$",meaning:"user_name"},{label:"$USER_EMAIL$",meaning:"user_email"},{label:"$MESSAGE$",meaning:"message"},{label:"$DOMAIN$",meaning:"domain"}],QC_=({onClick:e,isResetPasswordTemplate:t})=>{const{t:_}=at.useTranslation();let o=t?[...Io,{label:"$RESET_LINK$",meaning:"Reset link"}]:Io;return n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"align-top",children:_("params")}),n.jsx("th",{className:"align-top",children:_("meaning")}),n.jsx("th",{})]})}),n.jsx("tbody",{children:o.map(s=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:s.label}),n.jsx("td",{className:"align-middle",children:_(s.meaning)}),n.jsx("td",{className:"text-center align-middle",children:n.jsx(JC_,{onClick:()=>e(s)})})]},s.label))})]})},KC_=e=>{const t=Ee.useDispatch(),_=Ee.useSelector(g=>g.mailCategory.mailCategoryList);v.useEffect(()=>{o()},[]);const o=async()=>{try{const g=await qi();t(Vs(g.data.items))}catch(g){console.error(g)}},{id:s}=e,c=_.map(g=>({id:g.id,value:g.id,label:g.name})),u=s&&c.find(g=>g.value===s)||null;return n.jsx(u_,{options:c,value:u,...e})},eI_=({text:e,className:t})=>n.jsxs(w.Label,{className:t,children:[e,n.jsx("span",{className:"ml-2 text-danger",children:"*"})]}),zt=v.memo(eI_),So="You have some changes. Click OK to discard or click Cancel to continue edit, then click Update below to save your changes.";function Us({when:e}){return Ct.useBeforeUnload(v.useCallback(t=>{if(e)return t.preventDefault(),t.returnValue=So,So},[e])),null}const Ao=({label:e,onRemove:t})=>n.jsxs(v.Fragment,{children:[n.jsx("span",{className:"mr-2",children:e}),n.jsx("i",{className:"fa fa-times text-danger cursor-pointer hover-opacity",onClick:t})]}),Kt=`${ft}/api/file`,tI_=`${Kt}/system/profile`,_I_=`${Kt}/system/student-badge`,sI_=`${Kt}/system/certificate`,nI_=`${Kt}/system/email-attachment`,oI_=`${Kt}/system/question`,aI_=`${Kt}/system/answer`,iI_=`${Kt}/system/tutorial`,rI_=`${Kt}/custom-key`,cI_=`${Kt}/delete-file`,lI_=`${Kt}/delete-folder`,dI_=`${Kt}/create-folder`,uI_=`${Kt}/rename-file`,hI_=e=>Ot.post(Kt,e),mI_=e=>Ot.post(_I_,e),gI_=e=>Ot.post(sI_,e),pI_=e=>Ot.post(tI_,e),Ri=e=>Ot.post(nI_,e),yI_=e=>Ot.post(oI_,e),fI_=e=>Ot.post(aI_,e),Eo=e=>Ot.post(iI_,e),Li=e=>Ot.post(rI_,e),wI_=e=>ue.delete(`${cI_}?key=${e}`),vI_=e=>ue.delete(`${lI_}?key=${e}`),bI_=(e,t)=>ue.post(dI_,{prefix:e||"",folderName:t}),$I_=(e,t)=>ue.post(uI_,{key:e,name:t}),Ys={height:500,menubar:!1,force_br_newlines:!0,force_p_newlines:!1,branding:!1,convert_urls:!1,plugins:`advlist autolink lists link image charmap print preview anchor
|
|
5
|
+
`,cv_="下拉菜单和口头问答",lv_="MARIO 工具",dv_="自定义",uv_="技术设置",hv_="数据导入/导出",mv_="非活跃学生",gv_="每周任务",pv_="管理员一般提示",yv_="学校使用",fv_="总对话时间",wv_="课堂总反思",vv_="牌号用途",bv_="总对话数",$v_="模仿",kv_="你好",xv_="过渡计划",Cv_="更新于",Iv_="打印我的学习计划",Sv_="打印我的过渡计划",Av_="关于我",Ev_="说出你的兴趣",Tv_="添加更多您感兴趣的细节",jv_="引起兴趣",Nv_="查看 PLP",Pv_="查看当前 PLP",qv_="我的学习策略",Rv_="添加新兴趣",Lv_="添加新挑战",Mv_="增添新力量",Dv_="添加新想法",Bv_="添加新成员",Ov_="添加新工具",Gv_="添加新策略",zv_="添加新梦想",Fv_="我的支持网络",Hv_="添加人员",Vv_="更亲密的家庭",Wv_="家庭",Uv_="导师",Yv_="导师",Xv_="我的时间线",Zv_="添加里程碑",Jv_="添加测试",Qv_="学院",Kv_="添加学院",eb_="我的转型计划",tb_="学术里程碑",_b_="测试",sb_="学术和职业兴趣",nb_="您尚未添加任何兴趣",ob_="添加计划",ab_="课外活动",ib_="添加新活动",rb_="培训班",cb_="添加新课程",lb_="添加新学院",db_="参考",ub_="我的未来资源",hb_="添加新资源",mb_="我的论文",gb_="添加文章",pb_="学习档案",yb_="添加投资组合",fb_="金融计划",wb_="添加新计划",vb_="每页行数",bb_="匿名链接",$b_="选择问题的评分",kb_="选择响应分布",xb_="每次只能选择一个问题",Cb_="答案数量",Ib_="我的兴趣",Sb_="我想了解更多",Ab_="我的优势",Eb_="我的挑战",Tb_="我情不自禁地",jb_="我的老师可以帮助我",Nb_="其他可以帮助我的人是",Pb_="可以帮助我的工具/事物是",qb_="我的目标",Rb_="我的目标和计划",Lb_="我的希望和梦想",Mb_="缺少成绩",Db_="成绩必须等于或高于 1 级",Bb_="您尚未添加任何挑战",Ob_="您尚未添加任何优势",Gb_="您尚未添加任何想法",zb_="您尚未添加任何人",Fb_="您尚未添加任何工具",Hb_="您尚未添加任何策略",Vb_="您尚未添加任何目标和具体目标",Wb_="你还没有添加任何希望和梦想",Ub_="我最好的学习方法",Yb_="你的",Xb_="兴趣",Zb_="力量",Jb_="挑战",Qb_="主意",Kb_="主意",e$_="工具",t$_="梦",_$_="人",s$_="详细了解",n$_="我的支持",o$_="网络",a$_="我当前的 PLP",i$_="查看 PLP",r$_="现住住宿",c$_="目标日期",l$_="您尚未添加任何 {{item}}",d$_="截止日期",u$_="大学",h$_="访问",m$_="应用",g$_="一个计划",p$_="利益",y$_="活动",f$_="检测考试",w$_="课程",v$_="资源",b$_="散文",$$_="论文",k$_="计划",x$_="总数是",C$_="诊断调查",I$_="精选问题",S$_="可用问题",A$_="您确定要禁止 {{number}} 名学生活动吗?",E$_="上个月的数据",T$_="问题数量",j$_="没有可显示的 {{item}}",N$_="模板",P$_="评估",q$_="作业结果",R$_="证书",L$_="学习支援類別",M$_="反馈",D$_="建议",B$_="教程屏幕",O$_="反射形式",G$_="选择要添加的问题",z$_="未找到学生成绩",F$_="给你的人起名字",H$_="输入您的人",V$_="创建人",W$_="一月",U$_="二月",Y$_="三月",X$_="四月",Z$_="五月",J$_="六月",Q$_="七月",K$_="八月",e1_="九月",t1_="十月",_1_="十一月",s1_="十二月",n1_="完成",o1_="选择用户",a1_="不到一小时结束",i1_="我的沙盒",r1_="{number} 名学生没有动力",c1_="{number} 名学生感到舒适",l1_="{number} 名学生感到紧张",d1_="{number} 名学生感到压力",u1_="{number} 名学生不堪重负",h1_="与 {teacher name} 一起检查",m1_="所有学生都标记为感觉安全。",g1_="soft",p1_="升序",y1_="降序",f1_="empty",w1_="您已完成所有每周任务!",v1_="干得好!",b1_="如果您已回答所有问题,请按“完成”按钮完成签到",$1_="签到已完成",k1_="您准备好提交了吗?",x1_="您已在签到部分填写“签到”",C1_="干得好!您已在我的支持网络部分填写“支持网络”。",I1_="干得好!您已在我的学习策略部分填写“学习策略”。",S1_="开放式回应",A1_="教师名单",E1_="You can only select 1 question at a time",T1_="教育者",j1_="此图表中显示的数据反映了学生<b>最近的签到情况</b>。",N1_="自由场响应",P1_="请选择一个类别来查看数据",q1_="调查管理",R1_="里面有疑问",L1_="按类别搜索",M1_="在问题中搜索",D1_="调查类别",B1_="所有问题",O1_="输入类别名称",G1_="选择父类别",z1_="新的调查模板已成功创建",F1_="此调查模板已成功更新",H1_="{{action}} 调查模板",V1_="选择问题类别",W1_="输入新调查名称",U1_="选择问题",Y1_="是强制性的",X1_="更新调查",Z1_="输入答案",J1_="选择标志",Q1_="情感图标",K1_="是正确答案",ek_="您的调查已发送给 {{numberStudent}} 名学生和 {{numberStaff}} 名教职员工。您可以在我们的调查仪表板上跟踪结果。",tk_="离开",_k_="前往调查仪表板",sk_="我的仪表板",nk_="不错的选择!您想在哪个{{category}}领域开展工作?",ok_="尼克·奇克!我看到如果你有学者和你的儿子塔希尔,你有论文吗?",ak_="尼克·奇克!让我看看,如果您正在安排,并且您有一个儿子,您有文件吗?",ik_="不错的选择!您希望在哪个重点领域开展工作?",rk_="尼克·奇克!我看看你是否有经纪人和一个有文件的儿子?",ck_="签到和一对一问答",lk_="创建任务",dk_="总任务数",uk_="更改为上一个挑战",hk_="转到下一个挑战",mk_="排序顺序",gk_="任务名称",pk_="挑战",yk_="来源",fk_="要求",wk_="编辑 IEP 模板",vk_="您还有几个问题尚未回答。您确定要提交吗?",bk_="您尚未完成签到。请检查您的回复并点击完成",$k_="Research the academic programs, campus life, and support services at your top-choice universities.",kk_="What actions do you need to take now to position yourself successfully for these three areas?",xk_="What service opportunities have you taken part in?",Ck_="Are there any universities that align with your learning style? How will you find out?",Ik_="What strategies can you use to improve your time management skills?",Sk_="Describe your reflections",Ak_="Think about the person or people that support you.",Ek_="What is it that they do that is most helpful to you?",Tk_="How else are you preparing for university life right now?",jk_="Why might these be helpful to your university experience?",Nk_="Add new location",Pk_="Add new type",qk_="Add new preference",Rk_="Add new visit",Lk_="Add new skill",Mk_="Add new career",Dk_="Add new reflection",Bk_="Add new ideal",Ok_="Add new style",Gk_="You havent added any preferences yet",zk_="You havent added any visits yet",Fk_="You havent added any skills yet",Hk_="What's on your mind?",Vk_="These are the last 5 comments from recent check-ins, filtered by the selected criteria above.",Wk_="View All Responses",Uk_="are not ready to learn",Yk_="Not ready to learn",Xk_="Students who are not ready to learn",Zk_="Student’s average score",Jk_="The data presented in this chart reflects the average from the student’s check-ins.",Qk_="Check-ins and 1-1s",Kk_="Unfinished",ex_="Sort by",tx_="Recently",_x_="Most Positive",sx_="Least Positive",nx_="Check-in",ox_="Log a 1-1 conversation",ax_="Safety and Stress",ix_="What's on your mind?",rx_="Well-Being",cx_="Are you Ready to Learn?",lx_="Show Pending Conversations",dx_="Check-in Session",ux_="Check-in Sessions",hx_="Back to meetings",mx_="I have nothing to add",gx_="This initial step activates your 1-on-1 conversation, setting the stage for personal dialogue.",px_="View a 1-1 conversation",yx_="Log Conversation Data",fx_="Add 1-1 Conversation notes",wx_="Save data",vx_="Please select date 1-1 conversation!",bx_="Please write something to this 1-1 conversation!",$x_="Data 1-1 conversation cannot exceed 1000 characters!",kx_="No need for it",xx_="Conversation saved!",Cx_="What did you and the student choose as an action step?<br/>Would you like to add it as a Goal?",Ix_="Conversation Date",Sx_="Conversation Duration",Ax_="Select your answer(s) to continue...",Ex_="Share your thoughts about the main topic or focus...",Tx_="Select one or more options",jx_="Other notes from the conversation (optional)",Nx_="Share your thoughts...",Px_="Make this a private note",qx_="Save CONVERSATION",Rx_="Yes, view student goals",Lx_="Please set time 1-1 conversation",Mx_="Type your answer here...",Dx_="Remove Bulk",Bx_="Students with concerning metrics",Ox_="This flags if the student is not ready to learn or has at least one success, or readiness to learn metrics under 40%",Gx_="of students have concerned metrics",zx_="have metrics <40%",Fx_="All students have good metrics",Hx_="Students with at least One Concerned metric ({{number}})",Vx_="Concerned metric(s)",Wx_="Check-in Date",Ux_="Veracross Setting",Yx_="Time Veracross Sync (HH)",Xx_="Import Veracross",Zx_="Open Field Questions",Jx_="Open Apply Setting",Qx_="Time Open Apply Sync (HH)",Kx_="Import Open Apply",e2_="Conversations",t2_="Add new check-in",_2_="Started at",s2_="Conversation Goal",n2_="Target Monthly Conversation Goal for Teachers",o2_="Target Monthly Conversation Goal for Counselors",a2_="Target Monthly Conversation Goal for Support Teachers",i2_="Already happened",r2_="Happening now",c2_="Has this conversation already taken place, or is it happening now?",l2_="Log 1-1 Conversation",d2_="Note Log and<br/>Scaffolding",u2_="Student Review",h2_="Date of conversation",m2_="Learning Strategy Used",g2_="Created on",p2_="Save Review",y2_="Write your most important learning here...",f2_="All Set",w2_="Have you used any learning strategies?",v2_="Select the learning strategy",b2_="Log a 1-1 Conversation",$2_="Save 1-1 log note",k2_="View 1-1 Note",x2_="Please enter a description of the conversation.",C2_="Check-Ins",I2_="Start Check-in",S2_="Select the teacher or counselor asking you to check in. If you have more than one teacher, choose any teacher in the class. All the teachers and counselors listed can view your check-ins.",A2_="Here you can find all the notes and 1-1 conversations logs the student has.",E2_="Back to Notes and Logs",T2_="Student's Review",j2_="Other notes",N2_="Student's Perceived<br/>Usefulness",P2_="Student Feedback",q2_="Note Category",R2_="Select Note Category",L2_="Save note",M2_="Type the main focus of this session",D2_="Please add note title",B2_="Notes and Logs",O2_="Survey Portal",G2_="Integrations",z2_="External Api",F2_="Teacher Well-Being",H2_="Frequency and Setup",V2_="Well-Being Dashboard",W2_="Go to dashboard",U2_="Your responses have been recorded and will help us better understand and support your well-being journey.",Y2_="You can view your personal well-being dashboard anytime to track your progress over time.",X2_="Remember: Your individual responses remain private and confidential. Only aggregated data is shared with school leadership.",Z2_="Check-in Complete!",J2_="Schedule a Conversation",Q2_="Select a contact to speak with",K2_="What would you like to discuss?",e0_="Please describe what you'd like to talk about or any specific concerns you have...",t0_="Wellbeing Sections",_0_="School Monthly Usage",s0_="Location",n0_="Edit My Profile",o0_="Save new password",a0_="Teacher code",i0_="My Well-being",r0_="My Well-Being Check-in",c0_="My Sessions",l0_="Your personal data will <strong>not be shared</strong> with anyone else",d0_="School leadership will only see aggregated data.",u0_="Save Filters",h0_="Clear All Filters",m0_="My Well-Being Check-in",g0_="unless you specifically choose to do this.",p0_="Physical Well-Being",y0_="Emotional Well-Being",f0_="Social Well-Being - Relationships",w0_="Social Well-Being - Environment",v0_="Intellectual Well-Being",b0_="Colleague or staff member you'd like to praise or thank?",$0_="Wellbeing Finished",k0_="Take a Moment for You",x0_="It’s time to take care of yourself. Start your Well-Being Check-In to reflect on how you’re doing and receive the support you deserve.",C0_="START CHECK-IN NOW",I0_="I'LL DO IT LATER",S0_="Number of conversations",A0_="Number of expected conversations based on the goal",E0_="Search for a student",T0_="Survey resulting in scheduled sessions",j0_="Current Class Grade",N0_="These are the answers from classroom teachers.",P0_="Total Responses",q0_="Readiness Trends",R0_="The note will be visible to the student",L0_=' unless you check the "Make this a private note" box',M0_="Do you still wish to save?",D0_="yes, i'm sure!",B0_="Delete survey",O0_="Are you sure to delete {{number}} survey(s)?",G0_="Delete 1-1",z0_="Are you sure to delete this one to one?",F0_="Delete check-in",H0_="Are you sure to delete this check-in?",V0_="Teachers' Well-Being Dashboard",W0_="My Well-Being Dashboard",U0_="Understand the metrics about the educator's wellness and environment",Y0_="Understand the metrics about my wellness and environment",X0_="Engagement",Z0_="Total 1-1 Conversations",J0_="Educators without<br/>check-ins",Q0_="Educators without Check-ins",K0_="educators haven't completed check-ins in the last 30 days",e3_="You can send individual requests or bulk reminders to all educators",t3_="Department",_3_="Last check-in",s3_="Request check-in",n3_="Send bulk reminder",o3_="Physical",a3_="Self-care",i3_="Relationships Well-Being",r3_="Self-Care Well-Being",c3_="Environment",l3_="Environment Well-Being",d3_="Intellectual",u3_="The data presented here comes from the check-ins.",h3_="Charts will appear once over 20% of educators<br/>have completed their check-ins.",m3_="Total 1-1 Requested",g3_="Wellbeing Questions",p3_="Wellbeing section",y3_="Spiritual Well-Being",f3_="Personal Learning Plans",w3_="A single place to view and navigate all student PLPs",v3_="Last Updated",b3_="Search students by name or email...",$3_="All Grades (select one or more)",k3_="Transition Plans",x3_="A single place to view and navigate all student transitions",C3_="Learning Plans",I3_="选择头像",S3_="从图库中选择头像,或上传您自己的图片。",A3_="选择图片",E3_="View Check-in",T3_={dashboard:IGt,user:SGt,question_bank:AGt,email_template:EGt,custom_alert:TGt,set_up:jGt,media_gallery:NGt,district_school_list:PGt,export_to_pdf:qGt,the_data_is_taken_from_the_home_screen:RGt,make_sure_everything_is_set_correctly_before_exporting:LGt,cancel:MGt,hey:DGt,readiness_to_learn:BGt,high_impact_learning_strategies:OGt,"1_to_1":"一对一",check_in:GGt,check_ins:zGt,reflection:FGt,conferences:HGt,safety:VGt,student_by_age:WGt,students_by_designation:UGt,calendar:YGt,gender:XGt,grade:ZGt,current_grade:JGt,student_name:QGt,teacher_name:KGt,start_date:ezt,end_date:tzt,tooltip_content_readiness_to_learn_chart:_zt,tooltip_content_high_impact_chart:szt,tooltip_content_1_to_1_chart:nzt,tooltip_content_class_reflection_chart:ozt,tooltip_content_conference_chart:azt,tooltip_content_safety_chart:izt,tooltip_content_student_by_age_chart:rzt,tooltip_content_students_by_designation:czt,total_1_to_1:lzt,total_check_in:dzt,total_check_ins:uzt,total_1_to_1_time:hzt,total_conferences:mzt,total_conferences_time:gzt,total_class_reflection_check_ins:pzt,create_user:yzt,edit_user:fzt,change_password:wzt,type_something_to_search_by_user_name:vzt,total_of_users:bzt,name:$zt,email:kzt,age:xzt,role:Czt,active_status:Izt,action:Szt,active:Azt,inactive:Ezt,create:Tzt,update:jzt,first_name:Nzt,date_of_birth:Pzt,last_name:qzt,roles:Rzt,status:Lzt,send_forgot_password_link:Mzt,download_user_data:Dzt,current_password:Bzt,new_password:Ozt,confirm_password:Gzt,save:zzt,type_something_to_search_question:Fzt,type_something_to_search_category:Hzt,total_of_questions:Vzt,create_question:Wzt,edit_question:Uzt,question_type:Yzt,category:Xzt,sub_category:Zzt,question_text:Jzt,text:Qzt,is_default_question_for_one_to_one:Kzt,default_question_for_students_or_teachers:eFt,is_default_question_general_class:tFt,default_question_general_for_students_or_teachers:_Ft,before_session:sFt,edit_custom_alert:nFt,create_custom_alert:oFt,total_of_custom_alert:aFt,number_of_sessions:iFt,number_of_students:rFt,begin_date:cFt,duration_days:lFt,students:dFt,create_skill:uFt,edit_skill:hFt,total_of_skills:mFt,description:gFt,skill:pFt,parent_category:yFt,edit_subject:fFt,create_subject:wFt,total_of_subjects:vFt,color:bFt,create_learning_support_category:$Ft,edit_learning_support_category:kFt,create_category:xFt,edit_category:CFt,total_of_learning_support_categories:IFt,default_color:SFt,edit_strategy:AFt,create_strategy:EFt,create_learning_strategy:TFt,total_of_strategies:jFt,strategy_name:NFt,question:PFt,detail:qFt,strategy:RFt,best_fit:LFt,create_goal_example:MFt,edit_goal_example:DFt,total_of_goal_examples:BFt,short_term_target_examples:OFt,goal_example:GFt,edit_badge:zFt,create_badge:FFt,total_of_badges:HFt,icon:VFt,badge:WFt,badge_image:UFt,edit_semester:YFt,create_semester:XFt,update_school_break_month:ZFt,total_of_semesters:JFt,total_of_academicyear:QFt,semester:KFt,breaking_month:eHt,change_breaking_month:tHt,school_year_break_month:_Ht,edit_blank_day:sHt,create_blank_day:nHt,total_of_blank_days:oHt,start_time:aHt,end_time:iHt,school_blank_day:rHt,edit_point:cHt,create_new_point:lHt,total_of_point:dHt,label:uHt,value:hHt,break_point:mHt,update_break_point:gHt,maximum_number_of_admins:pHt,maximum_number_of_assistants:yHt,maximum_number_of_students:fHt,maximum_number_of_teachers:wHt,request_to_this_plan:vHt,type_something_to_search_reflection_result:bHt,user_deleted:$Ht,export_user_data:kHt,alert_delete_user:xHt,delete_user:CHt,alert_delete_teacher:IHt,list_students:SHt,student_email:AHt,current_teacher_name:EHt,current_teacher_email:THt,change_save:jHt,select_teacher_change:NHt,current_assistant_name:PHt,current_assistant_email:qHt,remove_assistant:RHt,switch_assistant:LHt,select_assistant_change:MHt,select_assistant:DHt,welcome_email_resend:BHt,send_for_selected_users:OHt,user_name:GHt,user_email:zHt,level:FHt,use_for:HHt,admin_training:VHt,teacher_training:WHt,counselor_training:UHt,created_time:YHt,total_reflections:XHt,student_training:ZHt,create_designation:JHt,total_of_designation:QHt,designations:KHt,designations_lc:eVt,edit_designation:tVt,confirm:_Vt,hello:sVt,todays_1_1:nVt,todays_check_in:oVt,todays_Conferences:aVt,next_meeting:iVt,next_conference:rVt,todays_schedule:cVt,action_points:lVt,upcoming:dVt,see_all_action_points:uVt,add:hVt,edit_action_point:mVt,add_action_point:gVt,title:pVt,type_title:yVt,subject:fVt,class:"班级",select_date:wVt,date:vVt,select_time:bVt,time:$Vt,notification:kVt,no_notification:xVt,day:CVt,week:IVt,mark_as_done:SVt,delete:"删除",my_students:AVt,download_template:EVt,import_csv:TVt,add_new:jVt,show_only_work_as_assistant:NVt,show_only_work_as_teacher:PVt,last_1_to_1:qVt,last_check_in:RVt,last_conference:LVt,total_time:MVt,assistant_name:DVt,work_as_assistant:BVt,assign_assistant:OVt,view:GVt,history:zVt,custom_recurrence:FVt,repeat_every:HVt,repeat_on:VVt,never:WVt,on:UVt,after:YVt,pick_a_date:XVt,pick_a_time:ZVt,change_date:JVt,change_time:QVt,apply:KVt,new_1_to_1:eWt,new_check_in:tWt,do_you_want_to_talk_with_teacher:_Wt,start_now:sWt,book_for_later:nWt,select_category:oWt,search_question_category:aWt,no_question:iWt,select_question:rWt,select_student:cWt,select_staff:lWt,staff_name:dWt,select_teacher:uWt,do_you_want_to_talk_with:hWt,please_select_a_student:mWt,please_select_a_teacher:gWt,please_provide_a_valid_student:pWt,please_provide_a_valid_teacher:yWt,select_a_student_and_launch_a_new_session_or_book_one_for_later:fWt,you_have_no_teacher:wWt,search_teacher:vWt,select_date_time:bWt,book_1_to_1:$Wt,book_new_check_in:kWt,schedule:xWt,sessions_are_booked_as_10_minute_slots:CWt,does_not_reoccur:IWt,time_must_be_between_8_am_and_6_pm:SWt,from:AWt,to:EWt,show_only_favorites:TWt,show_only_conversation:jWt,duration:NWt,favorite:PWt,open:qWt,no_data:RWt,schedule_detail:LWt,are_you_sure_you_want_to_cancel_this_schedule:MWt,completed_1_to_1:DWt,completed_check_in:BWt,done:OWt,what_do_you_want_to_talk_about:GWt,session_type:zWt,what_is_this_session_type:FWt,how_are_you_feeling_about_each_area_right_now:HWt,sleep_nutrition_exercise_physical_health_and_mental_health:VWt,goals_activities_habits_and_strategies:WWt,overall_how_are_you_feeling_today:UWt,what_is_your_level_of_pride_in_yourself_today:YWt,how_are_you_feeling_today:XWt,how_much_did_you_learn_from_this_session:ZWt,what_is_the_most_important_thing_you_learned_from_this_session:JWt,your_next_meeting:QWt,today_at:KWt,choose_if_you_want_to_do_it_now_or_if_you_would_like_to_book_for_later:eUt,edit:tUt,phone_number:_Ut,second_phone_number:sUt,health_note:nUt,address:oUt,mtss:aUt,note:iUt,no_schedule:rUt,my_notes:cUt,private_note:lUt,goal_progress:dUt,view_all_goals:uUt,completed:hUt,student_information:mUt,top_learning_strategies:gUt,perceived_usage:pUt,total_number_of_times_seleted:yUt,energy:fUt,focus:wUt,happiness:vUt,stress:bUt,one_to_one:$Ut,class_reflection:kUt,conference:xUt,learning_progress:CUt,cant_export_now_please_try_again:IUt,view_data:SUt,learning_strategies:AUt,strategies:EUt,number_of_used:TUt,next:jUt,my_conferences:NUt,select_a_student_and_launch_a_new_conference_or_book_one_for_later:PUt,you_have_no_student:qUt,this_is_a_required_field:RUt,please_select_question_category:LUt,book_conferences:MUt,final_score:DUt,new_conference:BUt,search_student:OUt,search_staff:GUt,"1_1_conversation":"一对一对话",meeting_schedule:zUt,class_schedule:FUt,more_questions:HUt,conference_rubric:VUt,unlock:WUt,before_clicking_submit:UUt,your_session_was:YUt,mins:XUt,min:ZUt,submit:JUt,are_you_sure_to_complete:QUt,be_sure_to_check_completed_all:KUt,teacher_choice:e7t,student_choice:t7t,agreement:_7t,personal_learning_plan:s7t,personal_interests:n7t,allow_student_to_edit:o7t,strengths_and_challenges:a7t,significant_strengths:i7t,strengths:r7t,challenges:c7t,significant_challenges:l7t,how_my_teachers_can_help_me_learn:d7t,about_my_learning:u7t,accommodations:h7t,goals:m7t,this_goal_is_showing_in_the_student_conference_rubric_are_you_sure_to_delete_it:g7t,activity_circles:p7t,friend_circles:y7t,are_you_ready_to_learn:f7t,class_schedules:w7t,add_class_schedule:v7t,class_date:b7t,class_name:$7t,day_period:k7t,teacher_email:x7t,teacher_emails:C7t,note_type_class:I7t,my_note:S7t,add_new_note:A7t,all_category:E7t,personalized:T7t,show_only_favorite:j7t,search:N7t,note_title:P7t,student:q7t,note_detail:R7t,mark_as_favorite:L7t,type_a_note:M7t,please_select_student:D7t,settings:B7t,save_changes:O7t,activity_notifications:G7t,schedule_notifications:z7t,preschedule_notifications:F7t,yes:H7t,no:V7t,email_notification:W7t,send_me_email_notification:U7t,dont_send_me_email_notification:Y7t,type:X7t,teacher_request:Z7t,student_request:J7t,overview:Q7t,plp:K7t,my_student_1_to_1:eYt,my_student_check_in:tYt,my_student_conference:_Yt,received_date:sYt,class_impact_score:nYt,impact_score:oYt,iep:aYt,"1_to_1_conversation":"一对一讨论会",creator:iYt,last_modify:rYt,modify:cYt,student_reflections:lYt,external_reflection:dYt,external_class_reflection:uYt,reflections:hYt,class_reflections:mYt,add_reflection:gYt,add_class_reflection:pYt,class_type:yYt,teacher_image:fYt,send_to_teacher:wYt,send_now:vYt,missed:bYt,pending:$Yt,sent_date:kYt,go_to_the_student_plp:xYt,new_iep:CYt,edit_iep:IYt,type_of_iep:SYt,source_of_eligibility_forinitial:AYt,annual_goals:EYt,enter_a_date_range:TYt,add_objectives:jYt,add_goals:NYt,day_month_year:PYt,special_education:qYt,special_education_content:RYt,objectives_and_reporting_progress:LYt,objectives_and_reporting_progress_content:MYt,annual_goals_content:DYt,related_services:BYt,related_services_content:OYt,supplementary_aids_and_services:GYt,supplementary_aids_and_services_content:zYt,program_modifications_for_school_personnel:FYt,program_modifications_for_school_personnel_content:HYt,extent_of_nonparticipation:VYt,extent_of_nonparticipation_content:WYt,accommodations_in_assessment:UYt,accommodations_in_assessment_content:YYt,service_delivery:XYt,service_delivery_content:ZYt,transition_planning:JYt,transition_planning_content:QYt,present_levels:KYt,present_levels_content:eXt,signatures:tXt,iep_old_versionf_and_diagnostic_docs:_Xt,upload_file:sXt,add_interest:nXt,upload_image:oXt,supported_image_types:aXt,edit_interest:iXt,select_personal_interest_or_enter_personal_interest_here:rXt,add_note:cXt,select_best_fit:lXt,best_fits:dXt,select_strategies:uXt,selected_learning_strategies:hXt,do_you_want_to_delete_this_strengths_and_challenges:mXt,add_new_item:gXt,edit_item:pXt,select_teaching_strategies:yXt,selected_teaching_strategies:fXt,add_title:wXt,my_learning:vXt,do_you_want_to_delete_this_about_my_learning:bXt,edit_my_learning:$Xt,add_my_learning:kXt,select_about_learning_or_enter_about_learning_here:xXt,accommodation:CXt,all_categories:IXt,do_you_want_to_delete_this_accommodation:SXt,edit_accommodation:AXt,add_accommodation:EXt,all:TXt,all_status:jXt,goal_type:NXt,add_new_goal:PXt,goal_detail:qXt,select_status:RXt,goal_baseline:LXt,objective:MXt,goal_details:DXt,goals_type:BXt,edit_goal_detail:OXt,uploaded_files:GXt,optional:zXt,edit_baseline:FXt,edit_friend:HXt,add_friend:VXt,search_friend:WXt,friend_type:UXt,edit_activity:YXt,add_activity:XXt,search_activity:ZXt,activity:JXt,activity_type:QXt,select_or_type_an_activity:KXt,action_needed:eZt,external:tZt,student_survey:_Zt,view_survey:sZt,create_a_survey:nZt,survey_from:oZt,review:aZt,publish_survey:iZt,total_surveys:rZt,flags:cZt,scheduled_session:lZt,total_survey_done:dZt,total_survey_not_done:uZt,list_survey:hZt,surveys:mZt,survey:gZt,create_survey:pZt,my_survey:yZt,counselor_name:fZt,survey_title:wZt,deadline:vZt,day_left:bZt,replied_date:$Zt,session:kZt,flag:xZt,external_email:CZt,scheduled_now:IZt,session_schedule:SZt,session_scheduled:AZt,search_survey:EZt,total_survey:TZt,survey_result:jZt,check_in_from:NZt,received_today_at:PZt,preview_survey:qZt,complete_survey:RZt,"you_will_not_be_able_to_edit_this_survey_once_published_._are_you_sure_you_want_to_continue_?":"发布后您将无法编辑此调查。您确定要继续吗?",do_you_want_to_share_a_survey_to_teachers:LZt,you_can_share_this_survey_to_teachers_to_get_more_insight_about_your_student:MZt,skip:DZt,survey_questions:BZt,add_survey_question:OZt,additional_question:GZt,add_additional_question:zZt,save_favorite:FZt,save_as_favorite:HZt,favorite_survey:VZt,slider:WZt,questions:UZt,insert_all_question:YZt,remove_all_question:XZt,insert_question:ZZt,survey_templates:JZt,insert_template:QZt,share_survey_teacher:KZt,suggested_teacher:eJt,email_contents:tJt,send_survey:_Jt,review_survey_detail:sJt,a_number_of_student:nJt,date_and_time:oJt,scale:aJt,answer:iJt,add_question:rJt,save_question:cJt,external_survey:lJt,ib_learner_profile:dJt,set_deadline:uJt,duplicate_survey:hJt,share_survey:mJt,new_survey:gJt,assign_counselor:pJt,select_counselor:yJt,select_support_teacher:fJt,assign_support_teacher:wJt,switch_support_teacher:vJt,support_teacher_name:bJt,user_for_question:$Jt,requested_reflection:kJt,request_class_reflection:xJt,share_survey_to_teacher:CJt,select_form:IJt,switch_counselor:SJt,remove_counselor:AJt,current_counselor_email:EJt,current_counselor_name:TJt,select_counselor_change:jJt,current_support_teacher_name:NJt,current_support_teacher_email:PJt,remove_support_teacher:qJt,select_support_teacher_change:RJt,filter_calendar:LJt,average_student_safety:MJt,is_active:DJt,top_5_most_used_strategies:BJt,preparedness:OJt,average_student_stress:GJt,success_indicators:zJt,learning_process:FJt,survey_dashboard:HJt,response_rate:VJt,top_5_most_survey_used:WJt,question_intervention:UJt,student_pressure:YJt,overall_readiness_to_learn:XJt,view_calendar:ZJt,student_wellness:JJt,view_data_dashboard:QJt,view_a_student:KJt,view_student:eQt,average_safety:tQt,average_stress:_Qt,average_energy:sQt,average_focus:nQt,average_happiness:oQt,vs_last_month:aQt,of_students_are_not_feeling_safe:iQt,students_marked_themselves_as_unsafe:rQt,marked_themselves_as_unsafe:cQt,are_not_feeling_safe:lQt,of_students_are_highly_stressed:dQt,flagged_with_high_stress:uQt,are_feeling_highly_stressed:hQt,select_a_student_to_see_their_profile_and_learning_plan:mQt,select_a_student_and_start_a_conversation_with_the_check_in_results:gQt,start:pQt,teacher_reflection:yQt,notes:fQt,student_reflection:wQt,view_latest_check_ins:vQt,"1-1s":"一对一","1_1":"1 月 1 日",this_week_s:bQt,missing_weekly_check_in:$Qt,add_new_student:kQt,"start_your_check-in_and_you_can_also_request_a_conversation_with_your_teacher_after":"开始签到。此后,您还可以请求与老师进行对话。",start_check_in:xQt,no_events_today:CQt,today_schedule:IQt,high_stressed:SQt,unsafe:AQt,average:EQt,see_them:TQt,goal:jQt,ended_over_24_hours_ago:NQt,start_a_1_1_conversation:PQt,view_results:qQt,request_check_in:RQt,last:LQt,latest_check_ins:MQt,students_who_missing_weekly_check_in:DQt,this_student_does_nt_have_missing_check_in:BQt,no_student_missing_weekly_check_in:OQt,start_1_1_conversation:GQt,select_a_teacher_and_start_a_check_in:zQt,this_weeks_check_ins:FQt,this_weeks_1_1s:HQt,this_student_does_nt_have_1_1_in_this_week:VQt,this_student_does_nt_have_check_in_in_this_week:WQt,no_last_or_requested_check_ins:UQt,students_who_are_highly_stressed:YQt,students_who_are_not_feeling_safe:XQt,students_missing_a_weekly_check_in:ZQt,student_stress_by_zone:JQt,student_distribution:QQt,surveys_flags:KQt,yellow_flags:eKt,green_flags:tKt,red_flags:_Kt,show_by:sKt,survey_overview:nKt,share_note:oKt,survey_summary:aKt,survey_name:iKt,date_created:rKt,"#of_recipients":"#收件人","#of_answers":"答案数",cut_off_time:cKt,created_by:lKt,responses_distribution:dKt,ratings_of_questions:uKt,show_results_for:hKt,responses_and_response_rates_per_question:mKt,view_list_of_students:gKt,view_list_of_responses:pKt,number_of_responses:yKt,number_of_not_responses:fKt,question_rating:wKt,no_response_yet:vKt,external_survey_is_highlight_in_the_table:bKt,reset_password:$Kt,correct:kKt,incorrect:xKt,the_correct_answer_is:CKt,the_correct_answers_are:IKt,action_need:SKt,view_answers:AKt,survey_results:EKt,weeks:TKt,months:jKt,scheduled_sessions:NKt,active_surveys:PKt,view_responses:qKt,download_csv:RKt,create_new_survey:LKt,go_to_individual_survey_responses:MKt,you_can_only_select_number_kpis_at_a_time:DKt,you_can_only_select_number_kpis_at_a_time_To_select_a_new_one_please_switch_off_one_of_the_previous_ones:BKt,"download.csv":"下载.CSV",last_check__in:OKt,how_many_times_a_strategy_has_been_chosen:GKt,these_metrics_come_from_students_check_ins_filter_above_to_change_the_data_set:zKt,not_yet_started:FKt,in_progress:HKt,export_check_ins_to_csv:VKt,these_metrics_come_from_the_conference_rubric_only_teacher_responses_are_scored:WKt,please_save_first:UKt,print_date:YKt,goal_base_line:XKt,print:ZKt,download:JKt,my_daily_motivation:QKt,select_deadline:KKt,export:"导出",image_is_a_required:ee_,old_iep:te_,create_next_years_iep:_e_,write_something_optional:se_,the_effectiveness_of_learning_strategies_by_students_feedback:ne_,perceived_usefulness:oe_,performance:ae_,not_enough_challenge_leading_to_boredom_and_lack_of_interest:ie_,calm_and_relaxed_but_not_enough_motivation_to_perform_at_my_best:re_,manageable_levels_of_stress_allowing_me_to_perform_at_my_best:ce_,still_in_control_but_starting_to_feel_the_pressure:le_,too_much_pressure_and_really_struggling_to_manage_my_workload:de_,import_emails_by_csv:ue_,request_number:he_,select_or_input_class_type:me_,send_request:ge_,start_reflection:pe_,customize_reflection:ye_,include_section_you_want_to_appear:fe_,time_of_day:we_,iep_template:ve_,one_roster:be_,sandbox:$e_,"well-being":"幸福感","self-efficacy":"自我效能",information_roster_sourced_id_full_name_email:ke_,sync_roster_users:xe_,export_to_csv:Ce_,user_list:Ie_,assign_student:Se_,one_to_one_question:Ae_,class_reflection_question:Ee_,conference_question:Te_,actions:je_,order:Ne_,user_for:Pe_,question_category:qe_,template_survey:Re_,total_of_category:Le_,create_template:Me_,number_of_question:De_,mandatory:Be_,well_being:Oe_,self_efficacy:Ge_,no_question_to_display:ze_,privacy_policy:Fe_,profile:He_,role_change:Ve_,log_out:We_,data_dashboard:Ue_,deep_learning_tools:Ye_,my_profile:Xe_,phone:Ze_,calendar_id:Je_,old_password:Qe_,confirm_new_password:Ke_,select_a_student_and_start_a_check_in:et_,anything_is_possible_anything_can_be:tt_,edit_picture:_t_,create_new_student:st_,grade_level:nt_,health_notes:ot_,students_parent_information:at_,parent_1:it_,parent_2:rt_,in_app_notifications:ct_,turn_on_all_notifications:lt_,notify_me_when:dt_,a_student_schedules_a_1_1:ut_,a_student_schedules_a_conference:ht_,a_student_completes_a_conference_self_assessment_rubric:mt_,a_student_or_teacher_completes_a_class_reflection:gt_,action_points_are_due_based_on_chosen_schedule:pt_,a_student_hasnt_logged_1_1_in_the_past_28_days:yt_,email_notifications:ft_,turn_on_all_emails:wt_,a_student_responds_to_a_1_1_readiness_to_learn_with_no:vt_,a_student_reported_a_low_safety_score_on_a_check_in:bt_,continue_as:$t_,admin:kt_,counselor:xt_,support_teacher:Ct_,teacher_assistant:It_,add_parent_1_information:St_,add_parent_2_information:At_,parent_role:Et_,all_activity:Tt_,academic_year:jt_,all_of_the_students_report_manageable_stress_levels:Nt_,all_of_the_students_report_manageable_safety_levels:Pt_,"100_00_of_students_are_not_feeling_safe":"100.00% 的学生感觉不安全",growth:qt_,relationships:Rt_,productivity:Lt_,academics:Mt_,percent:Dt_,unmotivated:Bt_,comfort:Ot_,stretch:Gt_,strain:zt_,overwhelmed:Ft_,edit_student_profile:Ht_,teacher:Vt_,created:Wt_,student_phone_number:Ut_,designation:Yt_,e_mail:Xt_,general_ed_teacher:Zt_,select_general_ed_teacher:Jt_,please_select_teacher:Qt_,assign:Kt_,be_silly_be_honest_be_kind:e__,do_you_want_to_change_to_role_counselor_to_open:t__,search_assistant:___,baseline:s__,timeframe:n__,friends:o__,best_friends:a__,supportive:i__,potential_friends:r__,like:c__,love:l__,interested:d__,curious:u__,improvement_in_study_habits_grades_sports_clubs_or_personal_projects:h__,family_friends_and_teachers:m__,accomplishing_important_tasks_and_limiting_distractions:g__,homework_studying_and_grades:p__,my_ability_to_be_successful:y__,whats_on_your_mind:f__,now_look_back_at_your_responses_from_today:w__,do_you_want_to_change_to_role_student_to_open:v__,student_has_started_this_one_to_one_are_you_sure_to_delete:b__,do_you_want_to_change_to_role_support_teacher_to_open:$__,student_has_not_started_this_conference_are_you_sure_to_delete:k__,search_support_teacher:x__,search_counselor:C__,how_productive_i_was_in_class_today:I__,not_enough_stress:S__,too_much_stress:A__,organization:E__,self_awareness:T__,self_directed_learning:j__,self_advocacy:N__,self_management:P__,conceptual_change_conversation:q__,concrete_examples:R__,elaboration:L__,dual_coding:M__,note_type_and_class:D__,edit_note:B__,not_done:O__,red:G__,yellow:z__,green:F__,uwcsea_sg_climate_survey:H__,connections_with_adults_and_peers:V__,holistic_learning_experiences:W__,my_health_and_wellbeing:U__,open_ended_questions:Y__,do_you_need_some_extra_help_or_support:X__,sdq_standards_and_difficulties_questionaire:Z__,sdq_strengths_and_difficulties_questionnaire_supplemental:J__,close:Q__,student_responses:K__,anonymous_responses:es_,teacher_perceived:ts_,prepared_for_class:_s_,missing_class_assignments:ss_,completed_classwork:ns_,asked_for_help_when_needed:os_,clear:as_,missing_reflections:is_,total_students_missing_late_assignments:rs_,subject_class:cs_,chart_type:ls_,request_from:ds_,are_you_sure_you_want_to_delete_this_item:us_,yes_delete:hs_,completed_conference:ms_,my_learning_plan:gs_,my_learning_plan_beta:ps_,winning_doesn_t_always_mean_being_first_winning_means_you_re_doing_better_than_you_ve_done_before:ys_,integrating_learningwith_previous_knowledge:fs_,improving_student_self_efficacy:ws_,my_check_in:vs_,what_do_you_want_to_do_differently:bs_,to_do:$s_,my_class_reflections:ks_,send_reflection:xs_,type_2_characters_to_search:Cs_,create_time:Is_,do_you_want_to_remove_this_user:Ss_,warning:As_,do_you_want_to_impersonate_this_user:Es_,assistant:Ts_,parent:js_,choose_file:Ns_,do_you_want_to_remove_this_question:Ps_,select:qs_,do_you_want_to_remove_this_category:Rs_,total_of_templates:Ls_,template_name:Ms_,category_name:Ds_,created_date:Bs_,do_you_want_to_remove_this_email_template:Os_,create_email_template:Gs_,mail_subject:zs_,mail_subject_nm:Fs_,mail_body:Hs_,mail_params:Vs_,params:Ws_,meaning:Us_,add_attachment:Ys_,skills:Xs_,subjects:Zs_,learning_support_categories:Js_,goal_examples:Qs_,student_badges:Ks_,blank_days:en_,csv_import:tn_,band_scores:_n_,license:sn_,switch_teacher:nn_,question_scaffolding:on_,training:an_,type_something_and_press_enter_to_add_short_term_target_examples:in_,import_users:rn_,import_class_reflection:cn_,download_users_data:ln_,do_you_want_to_remove_this_assistant:dn_,do_you_want_to_remove_this_counselor:un_,do_you_want_to_remove_this_support_teacher:hn_,send:mn_,do_you_want_to_remove_this_designation:gn_,new_folder:pn_,upload:yn_,type_something_to_search_by_file_name:fn_,systems:wn_,create_template_system:vn_,created_at:bn_,do_you_want_to_remove_this_template:$n_,one_roster_setting:kn_,clever_setting:xn_,users:Cn_,one_roster_config:In_,end_point_url:Sn_,client_id:An_,client_secret:En_,import_one_roster:Tn_,import_from_zip_file:jn_,import_from_restful_api:Nn_,non_existent_users:Pn_,type_something_to_search_users:qn_,create_account_for_selected_users:Rn_,help:Ln_,sandbox_mode:Mn_,off:Dn_,restore_sandbox_database:Bn_,turn_on:On_,turn_off:Gn_,restore:zn_,edit_profile:Fn_,on_track_going_well:Hn_,guide:Vn_,make_each_day_your_masterpiece:Wn_,consistently:Un_,frequently:Yn_,sometimes:Xn_,rarely:Zn_,not_applicable:Jn_,i_schedule_all_homework_and_studying_through_google_calendar_or_a_planner_or_organizer_as_soon_as_it_is_assigned:Qn_,i_maintain_a_clean_and_organized_system_for_keeping_and_reviewing_physical_notes_handouts_and_packets_for_each_class:Kn_,i_maintain_a_clean_and_organized_system_for_storing_digital_files_as_a_result_i_can_easily_find_all_of_my_digital_files:eo_,i_keep_my_school_inbox_organized_and_important_emails_are_not_missed:to_,i_have_a_clear_understanding_of_my_strengths:_o_,i_know_and_understand_how_teachers_can_best_help_me_in_class:so_,i_know_and_understand_my_accommodations:no_,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_outside_of_class:oo_,i_know_and_understand_my_personalized_systems_and_strategies_for_ideal_learning_in_class:ao_,i_have_a_clear_understanding_of_my_challenges:io_,i_have_an_accurate_idea_of_how_i_am_doing_in_my_classes_and_know_what_i_need_to_do_to_improve:ro_,i_use_the_first_25_minutes_of_our_class_effectively_to_make_progress_on_my_goals:co_,i_use_the_homework_study_time_effectively:lo_,achieving:do_,significant_progress:uo_,moderate_progress:ho_,slight_progress:mo_,no_progress:go_,cope_with_stressful_situations:po_,improve_my_sleeping_habits:yo_,i_promplty_address_and_deal_with_difficult_situations_instead_of_avoiding_them:fo_,i_appropriately_use_technology:wo_,i_create_a_note_during_or_after_meetings:vo_,i_effectively_study_for_upcoming_assessments:bo_,i_turn_in_all_homework_on_time_and_complete:$o_,i_get_the_right_amount_of_sleep_each_night:ko_,i_meet_with_my_teachers_outside_of_class_time:xo_,i_ask_questions_inside_and_or_after_class:Co_,when_needed_i_let_my_teachers_know_how_to_better_help_me_in_class:Io_,i_advocate_for_and_use_accommodations_i_need_in_all_of_my_classes:So_,planning:Ao_,making_connections_with_previous_learning:Eo_,providing_quality_feedback:To_,working_on_learning_goals:jo_,setting_or_reinforcing_high_expectations:No_,improving_effort:Po_,self_assessing:qo_,predicting:Ro_,help_seeking_behaviors:Lo_,reflecting:Mo_,low:Do_,high:Bo_,how_much_did_you_learn_from_this_conference:Oo_,are_there_any_observations_or_feedback_you_want_to_share:Go_,what_are_you_doing_well_that_you_want_to_continue:zo_,what_is_something_you_have_learned_while_working_towards_achieving_your_goals:Fo_,english_language_or_literature:Ho_,language_class:Vo_,ridge_charts:Wo_,bar_charts:Uo_,line_charts:Yo_,start_of_day:Xo_,mid_morning:Zo_,before_lunch:Jo_,mid_afternoon:Qo_,last_class_of_the_day:Ko_,student_only:ea_,teacher_only:ta_,did_the_student_have_all_needed_materials_for_this_class:_a_,does_the_student_have_any_missing_assignments:sa_,did_the_student_complete_today_s_classwork:na_,did_the_student_ask_for_help_when_needed:oa_,please_rate_the_student_s_participation_in_class:aa_,please_rate_the_student_s_peformance_in_class:ia_,how_useful_were_the_accommodations:ra_,do_you_have_any_concerns_or_student_success_to_share:ca_,not_at_all:la_,very_helpful:da_,not_sent:ua_,well_being_is_feeling_good_mentally_in_your_head_and_physically_in_your_body_do_you_have_habits_and_routines_that_help_you_look_after_yourself_some_people_boost_their_well_being_by_eating_healthily_being_active_spending_time_with_friends_and_family_doing_things_they_enjoy_or_helping_others:ha_,growth_is_all_about_becoming_the_best_version_of_yourself_this_is_done_through_learning_trying_new_things_working_hard_and_taking_risks_are_you_happy_with_the_progress_you_are_making_towards_your_goals_and_in_other_areas_of_your_life:ma_,relationships_are_connections_with_other_people_good_relationships_have_trust_respect_honesty_and_safety_how_are_you_getting_on_with_family_friends_and_teachers_do_you_have_relationships_that_bring_you_happiness_and_people_you_can_talk_to:ga_,productivity_is_about_getting_things_done_in_a_way_that_is_smarter_not_harder_this_means_you_know_what_needs_to_be_done_and_how_you_re_going_to_do_it_while_doing_your_work_today_were_you_able_to_help_yourself_stay_focused_and_finish_the_task:pa_,academics_relate_to_your_learning_through_work_you_do_at_school_and_home_are_you_doing_your_classwork_and_homework_every_day_do_your_grades_show_your_teachers_parents_and_even_yourself_how_hard_you_are_working_to_learn:ya_,self_efficacy_is_when_you_believe_in_yourself_and_that_you_can_do_something_well_are_you_happy_with_something_you_have_done_well_today_do_you_think_you_can_be_successful_in_what_you_have_to_do_today:fa_,focus_is_when_you_pay_attention_to_a_task_or_a_person_and_dont_get_distracted_if_you_re_trying_to_focus_on_your_teacher_then_you_are_only_thinking_about_what_the_teacher_is_saying_have_you_been_able_to_stay_on_task_today_can_you_clear_your_mind_to_do_your_work:wa_,happiness_is_a_good_feeling_that_can_come_from_anything_you_enjoy_or_from_generally_being_satisfied_with_the_way_your_life_is_going_while_its_not_possible_to_be_happy_all_the_time_you_can_always_find_something_to_be_happy_about_has_there_been_a_moment_that_made_you_smile_today_what_things_people_activities_bring_you_joy_and_make_you_feel_good:va_,when_you_feel_safe_you_are_not_scared_or_in_danger_it_means_you_are_comfortable_and_happy_at_home_at_school_and_wherever_your_normal_activities_take_you_are_you_able_to_be_yourself_do_you_feel_like_people_care_about_you_and_that_your_thoughts_and_feelings_matter:ba_,stress_in_the_right_amount_is_actually_a_positive_thing_too_much_stress_causes_distress_which_makes_us_feel_like_we_re_losing_control_too_little_stress_means_we_re_not_engaged_or_challenged_the_right_amount_of_stress_for_each_of_us_helps_us_reach_our_goals_and_perform_at_our_best:$a_,after_looking_at_your_answers_today_are_you_ready_to_do_whats_asked_of_you_in_class_or_do_you_need_help_to_get_in_a_good_place_to_learn_being_ready_to_learn_means_your_mind_and_body_are_working_together_to_prepare_you_to_learn_new_things_and_deepen_your_understanding_of_the_learning_already_covered:ka_,how_helpful_was_our_conversation_today:xa_,being_proud_of_yourself_is_when_you_feel_good_about_something_you_did_or_who_you_are_as_a_person_how_satisfied_or_happy_are_you_about_your_actions_today:Ca_,what_is_the_one_thing_you_are_going_to_keep_doing_well_or_start_doing_differently_or_what_is_one_thing_you_learned_about_yourself_others_or_the_world_around_you:Ia_,energy_provides_the_strength_and_power_to_do_something_this_can_be_something_physical_like_running_a_race_or_mental_like_taking_an_assessment_do_you_feel_like_you_have_enough_energy_to_get_through_the_day_how_do_you_feel_about_your_energy_levels_at_the_moment:Sa_,student_has_not_started_this_check_in_are_you_sure_to_delete:Aa_,struggling_i_need_support:Ea_,some_well_being_issues:Ta_,generally_okay:ja_,most_well_being_issues_are_fine:Na_,feeling_great:Pa_,making_no_progress:qa_,aware_of_my_goals_but_making_little_progress:Ra_,making_some_progress:La_,good_growth_overall:Ma_,great_growth_in_all_areas:Da_,one_or_more_key_relationships_are_very_difficult:Ba_,one_or_more_key_relationships_are_a_little_tricky:Oa_,most_key_relationships_are_positive:Ga_,all_key_relationships_are_positive:za_,not_at_all_productive:Fa_,procrastinating:Ha_,meeting_some_deadlines:Va_,meeting_most_deadlines:Wa_,meeting_all_deadlines_comfortably:Ua_,major_challenges:Ya_,difficulties_in_some_areas:Xa_,on_target_in_some_areas:Za_,on_target_in_most_areas:Ja_,on_target_in_all_areas:Qa_,very_low_confidence:Ka_,lacking_some_self_belief:ei_,developing_and_improving:ti_,feeling_positive:_i_,super_confident:si_,always_distracted:ni_,mostly_distracted:oi_,sometimes_distracted:ai_,generally_focused:ii_,laser_focused:ri_,exhausted:ci_,often_tired:li_,feeling_okay:di_,good_energy:ui_,unhappy_most_of_the_time:hi_,bursting_with_energy:mi_,unhappy_some_of_the_time:gi_,more_positives_than_negatives:pi_,generally_happy:yi_,optimistic_and_positive_almost_all_of_the_time:fi_,in_danger:wi_,feeling_unsafe:vi_,some_concerns:bi_,feeling_safe:$i_,very_safe_and_secure:ki_,moderate:xi_,very_high:Ci_,how_much_did_the_conceptual_change_conversation_help_your_learning_improve:Ii_,how_much_did_discussing_ways_to_seek_help_during_this_session_help_your_learning_improve:Si_,how_much_did_a_focus_on_setting_or_reinforcing_high_expectations_during_this_session_help_your_learning_improve:Ai_,a_little:Ei_,a_lot:Ti_,after_session:ji_,high_pride:Ni_,low_pride:Pi_,what_is_on_your_mind:qi_,select_all:Ri_,attitude:Li_,behavior:Mi_,collaboration:Di_,confidence:Bi_,creativity:Oi_,developing_ideas:Gi_,exercise:zi_,finishing_tasks:Fi_,flexibility:Hi_,impulse_control:Vi_,listening:Wi_,long_term_memory:Ui_,math:Yi_,organization_of_materials:Xi_,processing_speed:Zi_,reading:Ji_,setting_and_achieving_goals:Qi_,short_term_memory:Ki_,sleep_hygiene:er_,speaking:tr_,starting_tasks:_r_,stress_and_anxiety:sr_,studying:nr_,time_management:or_,work_ethic:ar_,writing:ir_,high_expectations:rr_,i_learn_best_when_i_set_high_expectations_for_myself_that_encourage_me_to_do_more_than_the_minimum_expected:cr_,i_learn_best_when_i_recognize_my_successes_and_have_an_opportunity_to_celebrate_progress_and_achievements:lr_,integrating_learning_with_previous_knowledge:dr_,i_learn_best_when_i_connect_new_and_important_learning_to_previous_things_i_have_learned:ur_,learners_self_assessing:hr_,i_learn_best_when_i_self_assess_my_own_learning_with_guided_prompts_rubrics_and_or_support:mr_,learning_goals:gr_,i_learn_best_when_i_have_short_and_long_term_goals_that_i_m_working_on_and_know_where_i_am_on_my_goal_progress_this_might_also_include_me_creating_habits_and_routines_that_assist_me_in_achieving_my_goals:pr_,planning_and_predicting:yr_,i_learn_best_when_i_plan_future_actions_and_predict_what_will_happen_as_a_result_of_these_actions:fr_,quality_feedback:wr_,i_learn_best_when_i_know_what_good_work_looks_like_how_my_work_compares_to_good_work_and_what_i_need_to_do_to_improve_my_work_to_make_it_good:vr_,i_learn_best_when_i_have_time_to_reflect_on_my_learning_and_or_when_a_teacher_emphasizes_learning_opportunities_and_provides_time_to_reflect:br_,i_learn_best_when_i_learn_about_myths_and_misconceptions_around_a_concept_and_why_they_are_not_true_it_s_also_helpful_when_teachers_address_misconceptions_around_my_thinking_and_or_self_assessments_that_are_not_accurate:$r_,i_learn_best_when_i_am_encouraged_to_reach_out_for_help_whether_that_be_for_academic_support_guidance_advice_medical_assistance_social_emotional_support_etc_if_needed:kr_,target:xr_,session_focus:Cr_,what_was_the_main_focus_of_this_session:Ir_,academic:Sr_,assessments_and_homework:Ar_,custom:Er_,general:Tr_,habits_and_strategies:jr_,organization_and_planning:Nr_,school_life_balance:Pr_,sleep_habits:qr_,social_media_tik_tok_instagram_youtube_pinterest_etc:Rr_,role_playing_games_d_and_d_world_of_warcraft_pathfinder_etc:Lr_,environment_global_warming_sustainability_etc:Mr_,anime_my_hero_academia_hunter_x_hunter_one_piece_etc:Dr_,manga:Br_,graphic_novels:Or_,comics:Gr_,politics:zr_,television_stranger_things_heart_stopper_glow_up_etc_and_movies_shrek_marvel_encanto_etc:Fr_,music:Hr_,bluey:Vr_,stickers:Wr_,weather:Ur_,religion:Yr_,spirituality:Xr_,news_current_events:Zr_,sports:Jr_,cafe_culture_coffee:Qr_,fashion_design:Kr_,futurism_engineering_design_etc:ec_,science_fiction:tc_,wellness_meditation_mindfulness_etc:_c_,comedy:sc_,journalism:nc_,make_up:oc_,aesthetics_cottagecore_dark_academia_fairycore_etc:ac_,automotive_culture_race_cars_motorcycles_motor_bikes_etc:ic_,poetry_slam_poetry:rc_,horror_and_suspense:cc_,skiing_snowboarding:lc_,horseback_riding:dc_,magic:uc_,science_biology_chemistry_physics_etc:hc_,minecraft:mc_,graphic_design:gc_,survival_prepping:pc_,botany:yc_,film_study:fc_,first_responder_fire_ems_emt_police_etc:wc_,animals_domesticated_rescue_etc:vc_,animals_large_wild_etc:bc_,marine_biology:$c_,video_game_youtubers:kc_,hello_kitty:xc_,memes:Cc_,cony_and_brown:Ic_,pokemon:Sc_,select_significant_strengths_or_enter_significant_strengths_here:Ac_,i_learn_best_when_i:Ec_,i_have_difficulty_learning_when_i:Tc_,teachers_make_learning_easier_for_me_when_they:jc_,teachers_make_learning_more_difficult_for_me_when_they:Nc_,if_you_are_a_teacher_and_see_i_m_having_trouble_learning_in_class_you_can_help_me_by:Pc_,the_assignments_i_learn_the_most_from_are:qc_,the_assignments_i_sometimes_find_too_challenging_are:Rc_,chunking_tasks:Lc_,i_learn_best_when_my_teacher_breaks_down_large_tasks_or_projects_into_smaller_steps_and_estimates_or_helps_me_estimate_th_amount_of_time_each_step_will_require:Mc_,time_management_starting_tasks_finishing_tasks_planning:Dc_,bite_size_learning:Bc_,i_learn_best_when_my_teacher_breaks_down_new_learning_into_smaller_pieces_of_information_followed_by_opportunities_to_review_what_i_learned_and_identify_gaps_in_learning:Oc_,short_term_memory_staying_focused_impulse_control_self_awareness_listening_processing_speed:Gc_,breaks:zc_,i_learn_best_when_my_teacher_builds_in_short_breaks_into_each_class:Fc_,time_management_finishing_tasks_staying_focused_impulse_control_attitude_stress_and_anxiety_work_ethic:Hc_,happy_notes_home:Vc_,i_learn_best_when_my_teacher_send_positive_notes_emails_or_calls_home_to_celebrate_my_growth:Wc_,finishing_tasks_setting_and_achieving_goals_attitude_behavior_confidence_work_ethic:Uc_,growth_focused:Yc_,i_learn_best_when_my_teacher_focuses_on_my_growth_and_progress_rather_than_overall_achievement:Xc_,confidence_setting_and_achieving_goals_stress_and_anxiety:Zc_,avoid_spotlight:Jc_,i_learn_best_when_my_teacher_is_able_avoid_putting_me_in_the_spotlight_and_giving_me_space_and_time_to_prepare_when_i_do_need_to_present_also_allowing_for_recorded_presentations_rather_than_in_person_requirements_when_possible:Qc_,stress_and_anxiety_speaking_processing_speed:Kc_,frequent_check_ins:el_,i_learn_best_when_my_teacher_has_frequent_private_check_ins_to_ensure_i_am_on_track_this_also_helps_me_feel_safe_and_supported_in_class_ideas_for_check_ins_include_a_sticky_note_system_silent_signal_whisper_at_desk_side_but_we_can_agree_on_something_together:tl_,stress_and_anxiety_processing_speed_task_initiation_developing_ideas_planning_finishing_tasks_short_term_memory_staying_focused_self_advocacy_self_awareness:_l_,develop_rapport:sl_,i_learn_best_when_my_teacher_focuses_on_relationship_building_both_with_teachers_and_peers_creating_a_community_of_care_where_i_feel_connected_and_valued:nl_,stress_and_anxiety_behavior_attitude_confidence:ol_,explicit_prioritizations:al_,i_learn_best_when_my_teacher_shares_what_activities_are_must_do_recommended_or_completely_optional:il_,planning_processing_speed_finishing_tasks_listening_reading_writing_stress_and_anxiety_work_ethic_studying:rl_,planned_transitions:cl_,i_learn_best_when_my_teacher_previews_and_prepares_me_and_other_students_for_safety_drills_activity_changes_or_other_class_transitions:ll_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility:dl_,choices:ul_,i_learn_best_when_my_teacher_provides_as_many_choices_as_possible:hl_,attitude_behavior_work_ethic:ml_,movement:gl_,i_learn_best_when_my_teacher_provides_lots_of_planned_physical_movement_or_opportunities_for_movement_into_class:pl_,impulse_control_staying_focused:yl_,non_verbal_cues:fl_,i_learn_best_when_my_teacher_redirects_me_with_non_verbal_cues_to_redirect_me_when_possible_rather_than_verbally_redirecting_me:wl_,staying_focused_self_awareness_attitude_behavior_stress_and_anxiety_confidence:vl_,limit_direct_instruction:bl_,i_learn_best_when_my_teacher_doesnt_talk_too_long_and_gives_me_opportunities_to_learn_at_my_own_pace_using_materials_that_work_best_for_me:$l_,short_term_memory_staying_focused_impulse_control_listening_behavior_processing_speed:kl_,routines:xl_,i_learn_best_when_my_teacher_sets_and_maintains_consistent_routines_if_we_need_to_change_routines_i_know_about_the_changes_ahead_of_time:Cl_,time_management_planning_finishing_tasks_stress_and_anxiety_behavior_flexibility_starting_tasks:Il_,multimodal_learning:Sl_,i_learn_best_when_my_teacher_helps_us_learn_through_multiple_ways_including_reading_listening_watching_and_doing_important_concepts_are_not_taught_just_using_one_way_of_learning:Al_,staying_focused_listening_reading_writing_math_collaboration_processing_speed:El_,flexible_assessments:Tl_,i_learn_best_when_my_teacher_creates_a_variety_of_options_for_me_to_demonstrate_my_learning:jl_,listening_reading_writing_math_speaking_stress_and_anxiety_collaboration_processing_speed_studying:Nl_,flexible_feedback:Pl_,i_learn_best_when_my_teacher_regularly_gives_me_feedback_so_that_the_i_know_how_i_m_performing_and_what_i_can_do_to_continue_improving:ql_,planning_staying_focused_self_awareness:Rl_,pre_learning:Ll_,i_learn_best_when_my_teacher_provides_opportunities_to_learn_new_concepts_early_such_as_early_access_to_resources:Ml_,time_management_writing_reading_math_stress_and_anxiety_processing_speed:Dl_,understanding_checks:Bl_,i_learn_best_when_my_teacher_frequently_checks_in_with_me_to_see_if_i_ve_understand_new_learning:Ol_,starting_tasks_short_term_memory_staying_focused_impulse_control_self_advocacy_listening_processing_speed:Gl_,rubrics:zl_,i_learn_best_when_my_teacher_provides_learning_rubrics_early_and_refer_to_them_often_these_rubrics_help_me_understand_what_is_needed_for_me_to_demonstrate_my_learning_at_different_levels_of_performance:Fl_,studying_work_ethic_confidence_stress_and_anxiety_self_advocacy_time_management_planning_finishing_tasks:Hl_,graphic_organizers:Vl_,i_learn_best_when_my_teacher_uses_graphic_organizer_to_help_me_understand_what_we_are_learning:Wl_,listening_reading_writing_processing_speed_short_term_memory_developing_ideas_planning:Ul_,visuals:Yl_,i_learn_best_when_my_teacher_uses_lots_of_visuals_diagrams_infographics_pictures_etc_to_help_me_understand_what_are_we_learning:Xl_,short_term_memory_staying_focused_listening_reading_processing_speed:Zl_,sentence_stems:Jl_,i_learn_best_when_my_teacher_provides_sentence_stems_and_writing_promts_for_written_assignments:Ql_,developing_ideas_planning_starting_tasks_writing:Kl_,think_time:ed_,i_learn_best_when_i_have_plenty_of_time_to_think_before_answering_a_question:td_,developing_ideas_processing_speed_speaking:_d_,clear_instructions:sd_,i_learn_best_when_my_teacher_breaks_down_instructions_into_small_steps_using_simple_vocabulary_and_check_to_make_sure_i_ve_understood_the_directions:nd_,time_management_planning_starting_tasks_finishing_tasks_short_term_memory_staying_focused_listening_processing_speed:od_,sharing_vocabulary:ad_,i_learn_best_when_my_teacher_provides_new_vocabulary_words_before_we_cover_new_information_and_provides_opportunities_to_learn_the_vocabulary:id_,short_term_memory_long_term_memory_listening_reading_processing_speed:rd_,idea_bank:cd_,i_learn_best_when_my_teacher_provides_a_pre_prepared_list_of_ideas_for_me_to_chose_from:ld_,developing_ideas_starting_tasks_time_management:dd_,exemplars:ud_,i_learn_best_when_my_teacher_provides_examples_of_what_successfully_completed_work_looks_like_for_different_levels_of_performance:hd_,developing_ideas_planning_starting_tasks_studying:md_,organization_time:gd_,i_learn_best_when_my_teacher_provides_time_for_me_to_organize_materials_and_or_plan_next_steps:pd_,time_management_organization_of_materials_developing_ideas_planning_starting_tasks_stress_and_anxiety:yd_,i_learn_best_when_my_teacher_schedules_regular_1_to_1_time_with_me:fd_,multimodal_answers:wd_,i_learn_best_when_i_can_show_my_understanding_in_varied_ways_like_sketching_presentation_or_a_short_video_relaying_information_etc:vd_,starting_tasks_finishing_tasks_self_advocacy_long_term_memory:bd_,peer_teaching_group_work:$d_,i_learn_best_when_i_can_peer_teach_or_practise_with_peers:kd_,studying_listening_processing_speed_long_term_memory:xd_,extra_time_to_complete_assessments:Cd_,extra_time_to_process_spoken_information_and_directions:Id_,extra_breaks_as_needed:Sd_,use_of_a_computer_without_internet_access_or_word_processor_on_assessments:Ad_,audio_versions_of_assessments:Ed_,access_to_a_reader_for_assessments:Td_,speech_to_text_software_for_assessments:jd_,access_to_a_scribe_for_assessments:Nd_,audio_recording_of_answers_for_assessments:Pd_,break_up_larger_timed_assessments_over_several_days:qd_,take_tests_in_a_quiet_room_with_few_distractions:Rd_,take_tests_in_a_small_group_setting:Ld_,assign_seating_where_the_student_is_likely_to_learn_best:Md_,the_use_of_sensory_tools_during_class:Dd_,special_lighting:Bd_,use_of_a_computer_or_word_processor_to_take_notes:Od_,use_of_a_calculator_when_normally_not_allowed_one:Gd_,use_of_a_spelling_dictionary_or_spellchecker:zd_,copies_of_class_notes:Fd_,written_copy_of_any_instructions:Hd_,visuals_and_graphics_to_accompany_any_new_information_delivered_verbally:Vd_,ability_to_record_lessons:Wd_,increase_text_size_to_a_larger_format:Ud_,provide_alternative_formats_other_than_reading_when_learning_new_information:Yd_,provide_alternative_formats_other_than_listening_when_learning_new_information:Xd_,great_let_s_build_your_goal:Zd_,what_do_you_want_to_be_different_about_your_learning_select_a_category_or_type_your_own_idea:Jd_,choose_my_goal_area:Qd_,nice_choice_what_area_of_well_being_would_you_like_to_work_on:Kd_,let_s_get_more_specific_select_an_area_or_type_your_own_idea:eu_,add_more_details_to_your_goal:tu_,remember_goals_should_be_smart:_u_,specific_measurable_achievable_ambitious_relevant_and_time_based:su_,perfect_let_s_narrow_this_down_time_to_add_more_details_to_your_goal:nu_,select_a_goal_or_type_your_own:ou_,now_let_s_pick_your_targets:au_,how_do_you_plan_to_accomplish_this_goal:iu_,customize_the_options_below_or_type_your_own_these_will_become_your_short_term_targets:ru_,keep_going:cu_,add_target:lu_,where_are_you_now_what_does_this_look_like_for_you_at_the_moment:du_,this_helps_you_track_your_progress:uu_,finished:hu_,i_will_create_a_sleep_routine:mu_,i_will_set_an_alarm_to_remind_me_to_start_my_routine:gu_,i_will_put_my_electronics_away_1_hour_before_it_is_time_for_me_to_sleep:pu_,i_will_set_my_phone_to_focus_or_do_not_disturb_mode_for_an_hour_before_bedtime_and_until_my_morning_alarm:yu_,i_will_choose_relaxing_activities_1_hour_before_bedtime_such_as_reading_meditating_yoga_or_listening_to_music:fu_,i_will_get_out_of_bed_at_the_same_time_each_day:wu_,i_will_only_press_snooze_one_time_each_morning:vu_,i_will_have_everything_packed_or_set_out_for_the_next_day_before_going_to_sleep:bu_,i_will_go_to_bed_on_time:$u_,i_will_do_this_at_least_4_out_of_5_times_this_week:ku_,i_will_wake_up_on_time:xu_,i_will_create_a_short_routine_for_the_morning_that_gets_me_excited_for_the_day:Cu_,i_will_set_an_alarm_to_remind_me_to_get_ready_for_sleep_1_hour_before_bedtime:Iu_,i_will_set_a_morning_alarm_that_gives_me_plenty_of_time_to_get_ready_for_school:Su_,i_will_read_for_20_minutes_before_bed:Au_,i_will_meditate_or_listen_to_relaxing_music_before_going_to_sleep:Eu_,i_will_create_a_morning_routine_to_be_ready_for_the_day:Tu_,i_will_research_ideas_for_a_morning_routine:ju_,i_will_present_my_ideas_to_my_teacher_or_other_person:Nu_,i_will_map_out_my_routine_on_paper_or_in_my_phone:Pu_,i_will_start_my_routine_at_the_same_time_every_morning:qu_,i_will_create_an_evening_routine_to_get_me_ready_for_bed:Ru_,i_will_research_ideas_for_an_evening_routine:Lu_,i_will_do_this_routine_5_out_of_5_school_nights_this_week:Mu_,i_will_get_at_least_8_hours_of_sleep_each_night:Du_,i_will_practice_meditation:Bu_,i_will_find_choose_a_meditation_app_or_resource_to_use:Ou_,i_will_challenge_myself_to_meditate_for_x_number_of_days_in_a_row:Gu_,i_will_choose_a_daily_time_to_meditate_and_set_an_alarm_to_remind_me:zu_,i_will_meditate_at_least_x_out_of_x_days_this_week:Fu_,i_will_start_an_exercise_routine:Hu_,i_will_find_a_friend_to_exercise_with_each_week:Vu_,i_will_choose_the_type_of_exercise_to_add_to_my_routine:Wu_,i_will_share_my_routine_with_a_friend_or_trusted_adult:Uu_,i_will_add_my_exercise_times_to_my_planner_or_calendar:Yu_,i_will_exercise_daily:Xu_,i_will_exercise_at_least_x_out_of_x_days_this_week:Zu_,i_will_understand_the_cause_of_my_stress:Ju_,i_will_talk_to_my_teacher_or_counselor_about_things_that_bother_me_or_make_me_stressed:Qu_,i_will_identify_and_talk_with_someone_i_trust_about_how_i_am_feeling:Ku_,i_will_pause_when_i_m_feeling_stressed_to_identify_what_is_causing_the_stress:eh_,i_will_learn_what_is_and_is_not_in_my_circle_of_control:th_,i_will_acknowledge_when_i_am_approaching_a_potentially_stressful_situation:_h_,i_will_learn_about_coping_skills:sh_,i_will_talk_to_my_teacher_or_counselor_about_coping_skills_they_think_will_be_helpful_for_me:nh_,i_will_choose_a_coping_skill_to_practice_when_i_feel_i_am_becoming_stressed:oh_,i_will_use_a_coping_strategy_when_i_am_stressed_x_number_of_times_this_week:ah_,i_will_start_journaling_my_thoughts_and_feelings:ih_,i_will_do_this_at_least_x_out_of_x_days_this_week:rh_,i_will_get_outside_or_in_nature:ch_,i_will_make_time_for_something_fun:lh_,i_will_make_time_for_being_still_and_quiet:dh_,increase_my_mindfulness:uh_,i_will_take_minibreaks_throughout_the_day:hh_,i_will_decide_what_types_of_breaks_help_me_the_most:mh_,i_will_set_alarms_to_remind_myself_to_take_a_break:gh_,i_will_take_a_break_every_hour:ph_,i_will_take_a_break_every_90_minutes:yh_,i_will_take_x_number_of_breaks_a_day:fh_,create_relaxation_opportunities:wh_,i_will_use_visualization_to_help_me_relax:vh_,i_will_learn_about_visualization:bh_,i_will_set_an_alarm_to_remind_me_to_practice_visualization:$h_,i_will_decide_what_this_practice_will_look_like_for_me:kh_,i_will_do_deep_breathing_exercises:xh_,i_will_research_and_learn_breathing_exercises_to_try:Ch_,i_will_set_an_alarm_to_remind_me_to_practice_my_breathing_exercises:Ih_,i_will_listen_to_relaxing_music:Sh_,i_will_find_or_create_a_playlist_that_i_find_relaxing:Ah_,i_will_add_listening_music_to_my_evening_routine:Eh_,i_will_practice_yoga:Th_,i_will_find_a_class_youtube_channel_or_app_to_use:jh_,i_will_challenge_myself_to_practice_yoga_for_x_number_of_days_in_a_row:Nh_,i_will_choose_a_daily_time_to_practice_yoga_and_set_an_alarm_to_remind_me:Ph_,i_will_do_an_art_project_that_is_enjoyable:qh_,i_will_find_a_relaxing_art_activity_to_try:Rh_,i_will_choose_a_time_to_do_my_art_each_week_and_set_reminders:Lh_,i_will_tell_someone_about_my_new_art_project:Mh_,keeping_fit:Dh_,i_will_exercise_more:Bh_,i_will_join_a_sports_team_or_club:Oh_,i_will_find_out_what_is_available_at_my_school:Gh_,i_will_choose_one_that_interests_me:zh_,i_will_take_care_of_any_paperwork_to_join:Fh_,i_will_participate_in_the_tryout_or_application_process:Hh_,i_will_attend_all_the_practices:Vh_,i_will_learn_a_new_sport_or_activity:Wh_,i_will_research_new_sports_or_activities_that_might_interest_me:Uh_,i_will_choose_a_new_sport_or_activity_to_learn:Yh_,i_will_see_if_anyone_i_know_would_like_to_try_this_new_activity_with_me:Xh_,i_will_gather_the_needed_gear_to_learn_this_activity:Zh_,i_will_research_the_rules_and_methods_for_this_activity:Jh_,i_will_find_groups_who_participate_in_this_activity_to_join:Qh_,i_will_research_potential_challenges_that_interest_me:Kh_,i_will_choose_a_challenge_to_complete:em_,i_will_set_a_time_each_week_or_day_to_do_this_challenge:tm_,i_will_set_an_alarm_to_remind_me_to_do_this_challenge:_m_,i_will_sign_up_for_a_race:sm_,i_will_research_different_races_and_events_happening_in_my_area_in_the_next_few_months:nm_,i_will_choose_one_to_complete_and_talk_to_my_parents_guardians_about_participating:om_,i_will_sign_up_if_i_have_permission_from_my_parents_guardians:am_,i_will_create_a_training_schedule_to_prepare_for_my_race:im_,i_will_set_reminders_for_my_training_schedule:rm_,i_will_create_an_at_home_exercise_routine:cm_,i_will_take_an_inventory_of_what_exercise_equipment_i_have_access_to_at_home:lm_,i_will_research_what_routines_and_exercises_i_can_do_with_my_equipment_at_home:dm_,i_will_find_a_youtube_channel_or_app_to_use_for_my_workouts:um_,i_will_set_a_schedule_for_my_routine:hm_,i_will_set_reminders_for_my_routine:mm_,i_will_join_and_go_to_a_gym:gm_,i_will_research_gyms_in_my_area:pm_,i_will_choose_a_gym_that_i_can_pay_for_and_get_my_parent_guardians_permission:ym_,i_will_go_to_the_gym_and_get_a_membership:fm_,i_will_learn_about_the_equipment_programs_and_classes_available_at_my_gym:wm_,i_will_decide_what_my_routine_will_be_when_i_visit_the_gym:vm_,i_will_schedule_times_to_go_to_the_gym_on_my_phone:bm_,i_will_go_to_the_gym_x_out_of_x_days_this_week:$m_,eating_healthier:km_,i_will_add_more_fruits_and_veggies_into_my_diet:xm_,i_will_swap_x_for_x_when_i_go_out_to_eat:Cm_,i_will_limit_my_sugary_drinks:Im_,i_will_drink_more_water:Sm_,i_will_fill_up_my_water_bottle_x_number_of_times_each_school_day:Am_,i_will_learn_to_cook_simple_meals:Em_,i_will_go_to_the_store_to_buy_the_missing_ingredients_on_my_list:Tm_,i_will_follow_the_recipe_and_share_my_meal_with_a_family_member_or_friend:jm_,improve_my_timekeeping_not_late_for_school_class:Nm_,i_will_add_buffer_time_to_my_schedule_in_the_morning_to_make_sure_i_get_to_school_on_time:Pm_,i_will_set_alarms_or_calendar_alert_on_my_phone_to_remind_me_to_go_to_my_next_class:qm_,i_will_set_an_alarm_to_tell_me_5_minutes_before_i_need_to_leave_for_school:Rm_,i_will_put_my_school_schedule_in_a_planner_or_on_my_phone:Lm_,making_friends:Mm_,i_will_join_a_club_or_sports_team:Dm_,i_will_attend_all_the_practices_or_meetings:Bm_,i_will_find_someone_with_a_common_interest:Om_,i_will_ask_someone_to_hang_out_outside_of_school:Gm_,i_will_attend_events_or_parties_i_m_invited_to:zm_,i_will_eat_lunch_with_someone_i_want_to_get_to_know_better:Fm_,i_will_learn_some_good_questions_to_ask_others_to_get_to_know_them:Hm_,i_will_learn_how_to_engage_in_conversation_more:Vm_,i_will_think_about_what_i_want_in_a_friend:Wm_,i_will_think_about_what_it_means_to_be_a_good_friend:Um_,i_will_share_this_thoughts_with_someone:Ym_,joining_a_club_sport:Xm_,i_will_choose_a_club_to_join:Zm_,i_will_attend_all_the_meetings:Jm_,i_will_choose_a_sport_to_try_out_for:Qm_,learning_a_new_activity:Km_,i_will_choose_a_new_activity_to_learn:eg_,i_will_gather_the_needed_supplies_to_learn_this_activity:tg_,i_will_practice_or_play_my_new_activity_at_least_x_out_of_x_times_this_week:_g_,improve_homework:sg_,i_will_turn_in_my_homework_on_time:ng_,i_will_turn_in_high_quality_homework:og_,work_on_longterm_assignments_planned_and_making_progress:ag_,i_will_set_up_a_study_work_plan_for_long_term_projects:ig_,studying_for_tests_routines_and_effective_study_strategies:rg_,i_will_set_up_a_study_work_plan_for_tests:cg_,make_notes_in_class_high_quality_organised:lg_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_each_of_my_core_key_classes:dg_,i_will_research_note_taking_methods:ug_,improve_grade_in_x_subject_by_x_amount:hg_,i_will_review_material_from_class_an_additional_on_top_of_as_well_as_not_including_homelearning:mg_,study_x_amount_of_time_on_x_subject_x_times_hours_a_week:gg_,finish_work_early_and_check_against_instructions_rubric_then_edit:pg_,improve_the_quality_grades_of_homelearning_assignments:yg_,create_a_regular_study_homework_schedule:fg_,i_will_create_a_schedule_for_my_week_detailing_study_days_times_and_how_long_i_will_study_by_x_date:wg_,improve_email_google_drive_calendar_or_planner_organization:vg_,i_will_check_my_inbox_unread_emails_at_least_x_times_a_week_and_reply_if_necessary:bg_,i_will_create_folders_labels_and_organise_emails_into_the_correct_ones:$g_,i_will_create_folders_for_each_subject_and_organsie_docs_into_the_correct_folders:kg_,create_reminders_or_calendar_events_for_important_events_deadlines_study_times:xg_,i_will_create_reminders_or_calendar_events_for_my_most_important_events_deadlines_or_study_sessions_immediately_or_as_soon_as_i_can:Cg_,create_a_longterm_assignment_planner:Ig_,i_will_evaluate_my_progress_and_adjust_how_long_i_will_study_by_x_date:Sg_,improve_my_todo_list_habits:Ag_,i_will_add_tasks_to_my_todo_list_immidietly_or_as_soon_as_i_can_and_review_it_3_times_a_week:Eg_,i_will_create_a_schedule_for_longterm_assihnments_detailing_study_days_times_and_how_long_i_will_study_by_x_date:Tg_,i_will_take_notes_digital_paper_in_class_and_organise_them_in_a_folder_notebook_for_all_my_classes:jg_,keep_devices_off_on_silent_or_put_away_in_class:Ng_,keep_devices_off_on_silent_or_put_away:Pg_,keep_devices_off_on_silent_or_put_away_during_study_time:qg_,i_will_create_a_routine_for_transitioning_study_time:Rg_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_class_times:Lg_,set_a_schedule_on_my_phone_on_focus_or_do_not_disturb_during_planned_study_times:Mg_,reduce_or_limit_time_spent_on_social_media:Dg_,i_will_set_up_time_limits_on_my_apps_or_websites:Bg_,i_will_set_a_timer_when_i_am_taking_a_break_on_social_media:Og_,increase_engagement_in_class:Gg_,avoid_distracting_websites_other_tasks_in_class:zg_,i_will_pay_attention_to_the_instructions_in_class:Fg_,i_will_actively_participate_in_class_more:Hg_,i_will_participate_more_in_class_activities:Vg_,i_will_ask_questions_in_class_related_to_the_topic_to_improve_my_understanding_learning:Wg_,i_will_volunteer_to_answer_questions_in_class_more:Ug_,avoid_distracting_websites:Yg_,i_will_set_up_time_limits_for_distracting_website_via_a_chrome_extension:Xg_,i_will_close_all_tabs_not_related_to_my_task:Zg_,getting_help_when_needed:Jg_,i_will_meet_with_my_teacher_outside_of_class_when_i_need_help:Qg_,i_will_email_my_teacher_when_i_need_help:Kg_,i_will_ask_questions_in_class_when_i_do_not_know_what_to_d:ep_,understanding_my_accommodations:tp_,i_will_know_and_understand_my_accommodations:_p_,i_will_ask_for_my_accommodations_when_i_need_them_in_class:sp_,i_will_tell_my_case_manager_when_i_no_longer_need_an_accommodations:np_,i_will_talk_to_my_case_manager_when_i_feel_i_need_additional_or_different_accommodations:op_,procrastination:ap_,planning_ahead:ip_,i_will_spend_x_amount_of_time_x_times_a_week_on_longterm_projects:rp_,i_will_plan_tasks_for_the_week_on_monday_or_the_friday_before:cp_,i_will_add_task_to_my_planner_when_assigned_in_class:lp_,task_initiation:dp_,i_will_start_tasks_on_the_day_given_and_finish_if_time_allows:up_,i_will_finish_tasks_early_or_before_they_are_due:hp_,my_thoughts_and_feelings_are_important:mp_,today:gp_,this_week:pp_,this_month:yp_,male:fp_,female:wp_,type_something_to_search_students:vp_,assign_for_selected_students:bp_,assistant_email:$p_,counselor_email:kp_,counselor_emails:xp_,support_teacher_email:Cp_,add_new_answer:Ip_,edit_template:Sp_,add_questions:Ap_,edit_email_template:Ep_,contact_mail:Tp_,announcements:jp_,schedule_information:Np_,welcome_new_teacher_assistant:Pp_,contact_request:qp_,welcome_new_teacher:Rp_,welcome_new_student:Lp_,welcome_new_assistant:Mp_,welcome_new_parent:Dp_,welcome_new_edu_teacher:Bp_,forgot_password:Op_,welcome_new_counselor:Gp_,user_first_name:zp_,user_last_name:Fp_,password:Hp_,message:Vp_,domain:Wp_,basic:Up_,premium:Yp_,enterprise:Xp_,are_you_sure_to_request_to_change_to_this_plan:Zp_,images:Jp_,audios:Qp_,docs:Kp_,videos:ey_,auto_save_after_every_1_min:ty_,no_user_to_display:_y_,on_a_scale_from_0_10_how_likely_are_you_to_recommend_us_to_a_friend_or_colleague:sy_,not_likely_at_all:ny_,extremely_likely:oy_,uwcsea_sg_climate_survey_connections_with_adults_and_peers:ay_,uwcsea_sg_climate_survey_do_you_need_some_extra_help_or_support:iy_,uwcsea_sg_climate_survey_my_health_and_wellbeing:ry_,uwcsea_sg_climate_survey_open_ended_questions:cy_,uwcsea_sg_climate_suvey_holistic_learning_experiences:ly_,import_email_by_csv:dy_,single_choice:uy_,multiple_choice:hy_,text_input:my_,emotional:gy_,summarize:py_,rating:yy_,learning_strategy:fy_,drop_down:wy_,happiness_intervetion:vy_,sdq_standard:by_,diversity_equity_inclusion_and_justice:$y_,climate_survey:ky_,intervention_safety:xy_,intervention_stress:Cy_,safety_at_home:Iy_,wellbeing:Sy_,depression_questions:Ay_,level_1_learners_goal_conference:Ey_,level_1_learners_balanced_conference:Ty_,level_1_learners_habits_and_attitudes_towards_learning_conference:jy_,level_2_learners_digital_citizenship:Ny_,level_1_learners_digital_citizenship:Py_,level_2_learners_communication:qy_,level_1_learners_communication:Ry_,level_2_learners_collaboration:Ly_,level_1_learners_collaboration:My_,level_2_learners_self_directed_learning:Dy_,level_2_learners_self_management_skills:By_,level_1_learners_self_management_skills:Oy_,level_2_learners_self_advocacy:Gy_,level_1_learners_self_advocacy:zy_,level_2_learners_self_awareness:Fy_,level_1_learners_self_awareness:Hy_,level_2_learners_learning_and_study_skills:Vy_,level_1_learners_learning_and_study_skills_session:Wy_,level_2_learners_organization:Uy_,level_1_learners_organization_session:Yy_,level_2_learners_goal_conference:Xy_,level_2_learners_habits_and_attitudes_towards_learning_conference:Zy_,level_2_learners_balanced_conference:Jy_,level_2_learners_goal_s_session:Qy_,level_1_learners_goal_s_session:Ky_,level_2_learners_study_strategies_session:ef_,level_2_learners_academic_session:tf_,level_1_learners_academic_session:_f_,level_2_learners_habits_and_attitudes_towards_learning_session:sf_,level_1_learners_habits_and_attitudes_towards_learning_session:nf_,level_2_learners_general_session:of_,level_1_learners_general_sessio:af_,social_and_emotional_learning:if_,end_of_class_reflection_questions:rf_,impulse_control_self_monitoring:cf_,planning_problem_solving:lf_,teacher_sense_of_self_efficacy_tses:df_,general_strategies_for_learning_gsl:uf_,focusing_attention:hf_,memory:mf_,responsible_decision_making:gf_,social_awareness:pf_,relationship_skills:yf_,habits_and_attitudes_towards_learning_hal:ff_,end_of_conference_questions:wf_,life_skills:vf_,health_and_fitness:bf_,executive_functions:$f_,study_skills:kf_,metacognitive_self_regulation:xf_,educational_satisfaction:Cf_,default_session_questions:If_,test_question_category_1:Sf_,are_you_a_boarder_or_day_student:Af_,before_i_make_a_decision_i_consider_the_consequences:Ef_,do_you_have_any_of_the_following_learning_difference_eg_dyslexia_adhd_long_term_illness_health_condition_physical_visual_hearing_impairment_social_behavioural_difference_eg_asd_tourettes:Tf_,how_would_you_describe_your_religious_beliefs:jf_,how_would_you_describe_your_sexual_orientation:Nf_,i_actively_pursue_activities_that_align_with_my_passions_and_values:Pf_,i_always_have_someone_to_eat_lunch_with:qf_,i_am_alone_more_often_than_i_would_like:Rf_,i_am_happy_with_the_marks_i_get_at_school:Lf_,academics_homework_studying_and_grades:Mf_,growth_improvement_in_study_habits_grades_sports_clubs_or_personal_projects:Df_,productivity_accomplishing_important_tasks_and_limiting_distractions:Bf_,relationships_family_friends_and_teachers:Of_,anything_else_you_want_to_tell_your_teacher:Gf_,did_you_bring_what_you_needed_for_this_class:zf_,did_you_complete_all_the_classwork_for_today_s_class:Ff_,did_you_have_your_materials_ready_at_the_start_of_class_time:Hf_,do_you_have_any_missing_assignments_for_this_class:Vf_,assign_bulk:Wf_,assign_bulk_student:Uf_,instruction:Yf_,name_is_required:Xf_,title_is_required:Zf_,instruction_is_required:Jf_,add_item:Qf_,conference_rubric_items_is_empty:Kf_,blank_row_or_column:ew_,question_list:tw_,question_is_required:_w_,select_skill:sw_,type_and_press_enter_to_add_new_row:nw_,do_you_want_to_remove_this_row:ow_,do_you_want_to_remove_this_custom_alert:aw_,remove_custom_alert_successfully:iw_,do_you_want_to_remove_this_skill:rw_,remove_skill_successfully:cw_,do_you_want_to_remove_this_subject:lw_,remove_subject_successfully:dw_,do_you_want_to_remove_this_learning_support_category:uw_,remove_learning_support_category_successfully:hw_,do_you_want_to_remove_this_learning_strategy:mw_,remove_learning_strategy_successfully:gw_,cant_delete_question:pw_,do_you_want_to_remove_this_goal_example:yw_,remove_question_successfully:fw_,do_you_want_to_remove_this_badge:ww_,remove_badge_successfully:vw_,do_you_want_to_remove_this_blank_day:bw_,remove_blank_day_successfully:$w_,do_you_want_to_remove_this_band_score:kw_,remove_band_score_successfully:xw_,is_used:Cw_,time_oneRoster_sync_hh:Iw_,small_text:Sw_,medium_text:Aw_,large_text:Ew_,edit_parent_1_information:Tw_,edit_parent_2_information:jw_,last_1_1:Nw_,how_would_you_rate_your_chances_of_achieving_this_goal:Pw_,add_name:qw_,activity_list:Rw_,select_academic_year:Lw_,a_number_of_staff:Mw_,staffs:Dw_,staff:Bw_,how_are_you_today:Ow_,what_was_the_purpose_or_focus_of_today_s_class:Gw_,header_1:zw_,header_2:Fw_,header_3:Hw_,header_4:Vw_,header_5:Ww_,header_6:Uw_,staying_focused:Yw_,text_input_question:Xw_,vs_last_year:Zw_,leave_page:Jw_,how_much_did_reflecting_during_this_session_help_your_learning_improve:Qw_,last_1_1_conversation:Kw_,student_has_started_this_conference_are_you_sure_to_delete:ev_,student_has_started_this_check_in_are_you_sure_to_delete:tv_,student_has_not_started_this_one_to_one_are_you_sure_to_delete:_v_,"you_can_start_a_1-1_conversation_after_the_results_of_the_student's_check-in._If_the_check-in_is_24_hours_older,_you_can_request_the_new_check-in_or_start_the_conversation_by_viewing_the_results":"您可以在学生签到结果出来后开始一对一对话。如果签到时间已超过 24 小时,您可以请求新的签到或通过查看结果开始对话","select_a_student_and_start_a_1-1_conversation_from_a_check-in_or_ask_the_student_to_check-in_before":"选择一名学生,从签到开始一对一对话,或要求学生在之前签到",my_accommodations:sv_,accommodation_set:nv_,add_new_accommodation:ov_,print_my_accommodations:av_,my_learning_progress:iv_,"here_your_teacher_can_edit_or_add_your_accommodation_details._please_note_that_you_can_view_the_information,_but_for_any_edits_or_additions,_kindly_contact_your_teacher_directly.":"您的老师可以在此编辑或添加有关您的便利设施的详细信息。请注意,您可以查看信息,但如果有任何编辑或添加,请直接联系您的老师。","this_is_a_brand_new_beta_version_for_your_personal_learning_journey._you_can_think_about_what_you_want_like_to_do_and_how_you_like_to_learn._we_advise_you_to_do_it_gradually_per_section_and_visit_it_once_a_month.":"这是您学习之旅的全新测试版。您可以思考自己想做什么以及如何学习。我们建议您逐步完成每个部分并每月访问一次。",responses_comparisons:rv_,dropdown_and_verbal_questions_responses:cv_,mario_tools:lv_,customize:dv_,techical_settings:uv_,data_import_export:hv_,inactive_students:mv_,weekly_quests:gv_,admin_general_tips:pv_,school_usage:yv_,total_conversations_time:fv_,total_class_reflections:wv_,grade_usage:vv_,total_conversations:bv_,impersonate:$v_,hi:kv_,transition_plan:xv_,updated_on:Cv_,print_my_learning_plan:Iv_,print_my_transition_plan:Sv_,about_me:Av_,name_your_interest:Ev_,add_more_detail_to_your_interest:Tv_,create_interest:jv_,"your_interest_has_been_successfully_created_!":"您的兴趣已成功创建!",view_plp:Nv_,my_current_plp:Pv_,my_learning_strategies:qv_,add_new_interest:Rv_,add_new_challenge:Lv_,add_new_strength:Mv_,add_new_idea:Dv_,add_new_people:Bv_,add_new_tool:Ov_,add_new_strategy:Gv_,add_new_dream:zv_,my_support_network:Fv_,add_person:Hv_,closer_family:Vv_,family:Wv_,mentors:Uv_,tutors:Yv_,my_timeline:Xv_,add_milestone:Zv_,add_test:Jv_,"you_haven't_added_any academic_milestones_yet":"您尚未添加任何学术里程碑","you_haven't_added_any_tests_yet":"您尚未添加任何测试",colleges:Qv_,"you_haven't_added_any_colleges_yet":"您尚未添加任何大学",add_colleges:Kv_,my_transition_plan:eb_,"my_personal-plans":"My Personal Plans","my_personal-plan":"My Personal Plan",academic_milestones:tb_,tests:_b_,academic_and_career_interests:sb_,you_havent_added_any_interests_yet:nb_,add_a_plan:ob_,extra_curricular_activities:ab_,"you_haven't_added_any_activities_yet":"您尚未添加任何活动",add_new_activity:ib_,courses:rb_,"you_haven't_added_any_courses_yet":"您尚未添加任何课程",add_new_courses:cb_,"standardized_tests_/_exams":"标准化测试/考试","potential_career_training_courese_/_colleges":"潜在的职业培训课程/学院","you_haven't_added_any_courses_/_colleges_yet":"您尚未添加任何课程/学院","add_new_courese_/_college":"添加新课程/学院",add_new_college:lb_,"you_haven't_added_any_references_yet":"您尚未添加任何参考资料",references:db_,resources_for_my_future:ub_,"you_haven't_added_any_resources_yet":"您尚未添加任何资源",add_new_resources:hb_,my_essays:mb_,"you_haven't_added_any_essays_yet":"您尚未添加任何文章",add_essay:gb_,learning_portfolios:pb_,"you_haven't_added_any_learning_portfolios_yet":"您尚未添加任何学习档案",add_portfolio:yb_,financial_planning:fb_,"you_haven't_added_any_plans_yet":"您尚未添加任何计划",add_new_plan:wb_,"students_shaded_red_have_an_incomplete_check-_in":"红色标记的学生表示签到不完整",rows_per_page:vb_,anonymous_link:bb_,select_ratings_of_questions:$b_,select_responses_distribution:kb_,you_can_only_select_one_question_per_time:xb_,number_of_answers:Cb_,my_interests:Ib_,i_like_to_know_more_about:Sb_,my_strengths:Ab_,my_challenges:Eb_,i_can_help_myself_by:Tb_,my_teacher_can_help_me_by:jb_,other_people_who_can_help_me_are:Nb_,tools_things_that_can_help_me_are:Pb_,my_goals:qb_,my_goals_and_targets:Rb_,my_hopes_and_dreams:Lb_,missing_grade:Mb_,grade_must_be_equal_or_greater_than_grade_level_1:Db_,you_havent_added_any_challenges_yet:Bb_,you_havent_added_any_strengths_yet:Ob_,you_havent_added_any_idea_yet:Gb_,you_havent_added_any_person_yet:zb_,you_havent_added_any_tools_yet:Fb_,you_havent_added_any_strategies_yet:Hb_,you_havent_added_any_goals_and_targets_yet:Vb_,you_havent_added_any_hopes_and_dreams_yet:Wb_,ways_I_learn_best:Ub_,your:Yb_,interest:Xb_,strength:Zb_,challenge:Jb_,idea:Qb_,people:Kb_,tool:e$_,dream:t$_,person:_$_,more_detail_to:s$_,my_support:n$_,network:o$_,my_current_PLP:a$_,view_PLP:i$_,current_accommodation:r$_,goal_date:c$_,you_havent_added_any_item_yet:l$_,passing_date:d$_,college:u$_,visit:h$_,application:m$_,a_plan:g$_,interests:p$_,activities:y$_,test_exam:f$_,course:w$_,resources:v$_,essay:b$_,essays:$$_,plans:k$_,total_of:x$_,diagnostic_survey:C$_,selected_questions:I$_,available_questions:S$_,are_you_sure_you_want_to_inactive_students:A$_,data_for_the_last_month:E$_,number_of_questions:T$_,no_item_to_display:j$_,template:N$_,assessment:P$_,assignment_result:q$_,certificate:R$_,learning_support_category:L$_,feedback:M$_,suggestion:D$_,tutorial_screen:B$_,reflection_forms:O$_,select_question_to_add:G$_,"this_survey_was_sent._all_survey_links_that_were_sent_will_be_invalid._are_you_sure_to_delete_it":"此调查已发送。所有已发送的调查链接均将无效。您确定要删除它吗",student_grade_not_found:z$_,name_your_person:F$_,type_your_person:H$_,create_person:V$_,january:W$_,february:U$_,march:Y$_,april:X$_,may:Z$_,june:J$_,july:Q$_,august:K$_,september:e1_,octorber:t1_,november:_1_,december:s1_,private:"私人",complete:n1_,select_user:o1_,ended_in_less_than_one_hour:a1_,my_sandbox:i1_,number_students_are_unmotivated:r1_,number_students_are_comfort:c1_,number_students_are_stretch:l1_,number_students_are_strain:d1_,number_students_are_overwhelmed:u1_,check_in_with_teacher_name:h1_,all_of_the_students_marked_as_feeling_safe:m1_,soft:g1_,ascending:p1_,descending:y1_,empty:f1_,you_have_completed_all_of_the_weekly_quests:w1_,good_job:v1_,if_you_have_responded_to_all_question_press_the_done_button_to_complete_check_in:b1_,check_in_finished:$1_,are_you_ready_to_submit:k1_,you_filled_out_check_in_in_the_check_in_section:x1_,continue:"继续",good_job_you_filled_out_support_network_in_the_my_support_network_section:C1_,good_job_you_filled_out_learning_strategies_in_the_my_learning_strategies_section:I1_,open_responses:S1_,teachers_list:A1_,you_can_only_select_1_question_at_a_time:E1_,educator:T1_,the_data_presented_in_this_chart_reflects_the_student_s_most_recent_check_in:j1_,free_fields_responses:N1_,please_select_a_category_to_view_data:P1_,survey_management:q1_,questions_inside:R1_,search_in_categories:L1_,search_in_questions:M1_,total_of_categories:D1_,all_questions:B1_,enter_category_name:O1_,select_parent_category:G1_,new_survey_template_has_been_successfully_created:z1_,this_survey_template_has_been_successfully_updated:F1_,action_survey_template:H1_,select_question_category:V1_,enter_new_survey_name:W1_,select_questions:U1_,is_mandatory:Y1_,update_survey:X1_,enter_answer:Z1_,select_flag:J1_,emotion_icon:Q1_,is_correct_answers:K1_,your_survey_was_sent_to_x_students_and_y_staff_members_you_can_keep_track_of_the_results_on_our_survey_dashboard:ek_,leave:tk_,go_to_the_survey_dashboard:_k_,my_dashboard:sk_,nice_choice_what_area_of_category_would_you_like_to_work_on:nk_,"nice_choice_what_area_of_well-being_would_you_like_to_work_on":"不错的选择!您想在哪个幸福健康领域开展工作?",nice_choice_what_area_of_academics_would_you_like_to_work_on:ok_,nice_choice_what_area_of_organization_would_you_like_to_work_on:ak_,nice_choice_what_area_of_focus_would_you_like_to_work_on:ik_,"nice_choice_what_area_of_self-advocacy_would_you_like_to_work_on":"不错的选择!您想在哪个自我倡导领域开展工作?",nice_choice_what_area_of_procrastination_would_you_like_to_work_on:rk_,check_in_and_1_1_questions:ck_,create_quest:lk_,total_quests:dk_,change_to_previous_challenge:uk_,change_to_next_challenge:hk_,sort_order:mk_,quest_name:gk_,challenge_upc:pk_,source:yk_,request:fk_,edit_iep_template:wk_,there_are_several_questions_you_have_not_answered_yet_are_you_sure_you_want_to_submit:vk_,you_did_not_complete_the_check_in_please_check_your_responses_and_click_done:bk_,"welcome_to_your_university_and_college_preparation_journey!":"Welcome to your university and college preparation journey!","university_is_a_fun_time_in_your_life,_but_it_can_also_be_challenging._the_mario_transition_program_is_to_help_you_with_this_stage_in_your_life.":"University is a fun time in your life, but it can also be challenging. The MARIO Transition Program is to help you with this stage in your life.",research_the_academic_programs_campus_life_and_support_services_at_your_top_choice_universities:$k_,"research_one_career_you’re_interested_in_what_are_the_required_qualifications_and_job_prospects":"Research one career you’re interested in. What are the required qualifications and job prospects?","imagine_you’re_in_your_first_year_at_university_halfway_through_the_year":"Imagine you’re in your first year at university, halfway through the year.",what_actions_do_you_need_to_take_now_to_position_yourself_successfully_for_these_three_areas:kk_,what_service_opportunities_have_you_taken_part_in:xk_,are_there_any_universities_that_align_with_your_learning_style_how_will_you_find_out:Ck_,what_strategies_can_you_use_to_improve_your_time_management_skills:Ik_,describe_your_reflections:Sk_,"share_a_personal_story_or_experience_that_illustrates_your_character_values_and/or_attitudes":"Share a personal story or experience that illustrates your character, values, and/or attitudes.",think_about_the_person_or_people_that_support_you:Ak_,what_is_it_that_they_do_that_is_most_helpful_to_you:Ek_,how_else_are_you_preparing_for_university_life_right_now:Tk_,why_might_these_be_helpful_to_your_university_experience:jk_,add_new_location:Nk_,add_new_type:Pk_,add_new_preference:qk_,add_new_visit:Rk_,add_new_skill:Lk_,add_new_career:Mk_,add_new_reflection:Dk_,add_new_ideal:Bk_,add_new_style:Ok_,you_havent_added_any_preferences_yet:Gk_,you_havent_added_any_visits_yet:zk_,you_havent_added_any_skills_yet:Fk_,what_s_on_your_mind:Hk_,these_are_the_last_5_comments_from_recent_check_ins_filtered_by_the_selected_criteria_above:Vk_,view_all_responses:Wk_,are_not_ready_to_learn:Uk_,not_ready_to_learn:Yk_,students_who_are_not_ready_to_learn:Xk_,students_average_score:Zk_,the_data_presented_in_this_chart_reflects_the_average_from_the_student_check_ins:Jk_,check_in_and_1_1s:Qk_,unfinished:Kk_,sort_by:ex_,recently:tx_,most_positive:_x_,least_positive:sx_,check_in_session:nx_,log_a_1_1_conversation:ox_,safety_and_stress:ax_,Whats_on_your_mind:ix_,well_being_session:rx_,are_you_ready_to_learn_session:cx_,show_pending_conversations:lx_,check_in_session_title:dx_,check_in_sessions_title:ux_,back_to_meetings:hx_,i_have_nothing_to_add:mx_,this_initial_step_activates_your_1_on_1_conversation_setting_the_stage_for_personal_dialogue:gx_,view_a_1_1_conversation:px_,log_conversation_data:yx_,add_1_1_conversation_notes:fx_,save_data:wx_,please_select_date_1_1_conversation:vx_,please_write_something_to_this_1_1_conversation:bx_,data_1_1_conversation_cannot_exceed_300_characters:$x_,no_need_for_it:kx_,conversation_saved:xx_,what_did_you_and_the_student_choose_as_an_action_step_would_you_like_to_add_it_as_a_goal:Cx_,conversation_date:Ix_,conversation_duration:Sx_,select_your_answer_to_continue:Ax_,share_your_thoughts_about_the_main_topic_or_focus:Ex_,select_one_or_more_options:Tx_,other_notes_from_the_conversation:jx_,share_your_thoughts:Nx_,make_this_a_private_note:Px_,save_conversation:qx_,yes_view_student_goals:Rx_,please_set_time_1_1_conversation:Lx_,type_your_answer_here:Mx_,delete_bulk:Dx_,number_of_students_with_at_least_one_very_low_metric:Bx_,this_flags_if_the_student_is_not_ready_to_learn_or_has_at_least_one_success_or_readiness_to_learn_metrics_under_40:Ox_,of_students_have_concerned_metrics:Gx_,have_metrics_40:zx_,all_students_have_good_metrics:Fx_,students_with_at_least_one_concerned_metric:Hx_,concerned_metrics:Vx_,check_in_date:Wx_,veracross_setting:Ux_,time_vera_cross_sync_hh:Yx_,import_vera_cross:Xx_,open_field_questions:Zx_,open_apply_setting:Jx_,time_open_apply_sync_hh:Qx_,import_open_apply:Kx_,conversations:e2_,add_new_check_in:t2_,started_at:_2_,conversation_goal:s2_,target_monthly_conversation_goal_for_teachers:n2_,target_monthly_conversation_goal_for_counselors:o2_,target_monthly_conversation_goal_for_support_teachers:a2_,already_happened:i2_,happening_now:r2_,has_this_conversation_already_taken_place_or_is_it_happening_now:c2_,log_1_1_conversation:l2_,note_log_and_scaffolding:d2_,student_review:u2_,"hey!_you_had_a_conversation_with":"Hey! You had a conversation with <b>{{teacherName}}</b>",date_of_conversation:h2_,learning_strategy_added:m2_,created_on:g2_,"how_much_did_discussing_ways_to_seek_help_during_this_session_help_your_learning_improve_?_(1-10)":"How much did discussing ways to seek help during this session help your learning improve? (1-10)","how_helpful_was_this_conversation_?_1_(_not_helpful_at_all_)_10_(_very_helpful_)":"How helpful was this conversation? 1 (Not Helpful at all) - 10 (Very Helpful)","what_is_the_most_important_thing_you_learned_from_this_session?":"What is the most important thing you learned from this session?",save_review:p2_,write_your_most_important_learning_here:y2_,"thank_you_for_your_review_!":"Thank you for your review!","see_you_next_time_!":"See you next time!",all_set:f2_,have_you_used_any_learning_strategies:w2_,select_the_learning_strategy:v2_,log_a_1_1_conversation_title:b2_,save_1_1_log_note:$2_,view_1_1_note:k2_,please_enter_a_description_of_the_conversation:x2_,check_ins_tab:C2_,start_check_in_homepage:I2_,select_the_teacher_or_counselor_asking_you_to_check_in_if_you_have_more_than_one_teacher_choose_any_teacher_in_the_class_all_the_teachers_and_counselors_listed_can_view_your_check_ins:S2_,here_you_can_find_all_the_notes_and_1_1_conversations_logs_the_student_has:A2_,back_to_notes_and_logs:E2_,students_review:T2_,other_note:j2_,students_perceived_usefulness:N2_,student_feedback:P2_,note_category:q2_,select_note_category:R2_,save_note:L2_,type_the_main_focus_of_this_session:M2_,please_add_title_note:D2_,notes_and_logs:B2_,survey_portal:O2_,integrations:G2_,external_api:z2_,teacher_well_being:F2_,frequency_and_setup:H2_,well_being_dashboard:V2_,go_to_dashboard:W2_,your_responses_have_been_recorded_and_will_help_us_better_understand_and_support_your_well_being_journey:U2_,you_can_view_your_personal_well_being_dashboard_anytime_to_track_your_progress_over_time:Y2_,remember_your_individual_responses_remain_private_and_confidential_only_aggregated_data_is_shared_with_school_leadership:X2_,check_in_complete:Z2_,schedule_a_conversation:J2_,select_a_contact_to_speak_with:Q2_,what_would_you_like_to_discuss:K2_,please_describe_what_you_d_like_to_talk_about_or_any_specific_concerns_you_have:e0_,wellbeing_sections:t0_,school_monthly_usage:_0_,location:s0_,edit_my_profile:n0_,save_new_password:o0_,teacher_code:a0_,my_well_being:i0_,my_well_Being_check_in:r0_,my_sessions:c0_,your_personal_data_will_not_be_shared_with_anyone_else:l0_,school_leadership_will_only_see_aggregated_data:d0_,save_filters:u0_,clear_all_filters:h0_,my_well_being_check_in:m0_,unless_you_specifically_choose_to_do_this:g0_,physical_well_being:p0_,emotional_well_being:y0_,"self_care_&_balance":"Self-Care & Balance",social_well_being_relationships:f0_,social_well_being_environment:w0_,intellectual_well_being:v0_,colleague_or_staff_member_you_like_to_praise_or_thank:b0_,wellbeing_finished:$0_,take_a_moment_for_you:k0_,it_s_time_to_take_care_of_yourself_start_your_well_being_check_in_to_reflect_on_how_you_re_doing_and_receive_the_support_you_deserve:x0_,start_check_in_now:C0_,i_ll_do_it_later:I0_,number_of_conversations:S0_,number_of_expected_conversations_based_on_the_goal:A0_,search_for_a_student:E0_,survey_resulting_in_scheduled_sessions:T0_,current_class_grade:j0_,these_are_the_answers_from_classroom_teachers:N0_,total_responses:P0_,readiness_trends:q0_,the_note_will_be_visible_to_the_student_and_all_connected_educators:R0_,_unless_you_check_the_make_this_a_private_note_box:L0_,do_you_still_wish_to_save:M0_,yes_im_sure:D0_,delete_survey:B0_,are_you_sure_to_delete_selected_survey:O0_,delete_1_1:G0_,are_you_sure_to_delete_this_one_to_one:z0_,delete_check_in:F0_,are_you_sure_to_delete_this_check_in:H0_,teachers_well_being_dashboard:V0_,my_well_being_dashboard:W0_,understand_the_metrics_about_the_educators_wellness_and_environment:U0_,understand_the_metrics_about_my_wellness_and_environment:Y0_,engagement:X0_,total_1_1_conversations:Z0_,educators_without_check_ins:J0_,educators_without_check_ins_not_br:Q0_,educators_havent_completed_check_ins_in_the_last_30_days:K0_,you_can_send_individual_requests_or_bulk_reminders_to_all_educators:e3_,department:t3_,last_check_in_normal:_3_,request_check_in_wellbeing:s3_,send_bulk_reminder:n3_,physical:o3_,self_care:a3_,relationships_well_being:i3_,self_care_well_being:r3_,environment:c3_,environment_well_being:l3_,intellectual:d3_,the_data_presented_here_comes_from_the_check_ins:u3_,charts_will_appear_once_over_20_of_educators:h3_,total_1_1_requested:m3_,wellbeing_questions:g3_,wellbeing_section:p3_,spiritual_well_being:y3_,personal_learning_plans:f3_,personal_learning_plans_description:w3_,last_updated:v3_,search_students_by_name_or_email:b3_,all_grades:$3_,transition_plans:k3_,transition_plans_description:x3_,learning_plans:C3_,choose_profile_picture:I3_,choose_a_profile_picture_from_our_gallery_or_upload_your_own:S3_,select_a_picture:A3_,view_check_in:E3_},j3_="htqausuofrnali3nh9ivmlpq6v415o0tv2qikpg39bqf4pnk",N3_="6LfNtLUaAAAAAL24lbBV11jS-gBtt1mhtxb4NXs0",ii="860fa99c52ae79d98e904b4c862ddaac",ri="adf89d0ed9b0d5fcc0d1bcfd535345dc",jt="ACCESS_TOKEN",O_="IS_USER_SESSION_BROWSER",P3_=[{label:"10",value:10},{label:"20",value:20},{label:"30",value:30},{label:"50",value:50}],ci={label:"10",value:10},Pn={searchString:"",currentPage:1,pageSize:ci.value,sortBy:"",sortOrder:"ASC",name:""},$s={DANGER:"#dc3545",WARNING:"#ffc107",SUCCESS:"#28a745",INFO:"#007bff"},qn="yyyy-MM-dd",li="dd-MM-yyyy",q3_="dd-MM-yyyy HH:mm",Rn="0001-01-01T00:00:00",R3_="Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1",ft=(()=>{const e=window.location.href;return e.includes("stage.marioforme.com")?`${e.split("//")[0]}//stage-api.marioforme.com`:e.includes("stage2.marioforme.com")?`${e.split("//")[0]}//stage2-api.marioforme.com`:`${e.split("//")[0]}//${e.split("//")[1].split("/")[0]}`})(),U_=!!(window.location.hostname==="localhost"||window.location.hostname.includes("stage")||window.location.hostname.includes("brightsoft")||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)),$n=[{label:"Single choice",value:"SingleChoice"},{label:"Multiple choice",value:"MultipleChoice"},{label:"Text input",value:"TextInput"},{label:"Emotional",value:"Emotional"},{label:"Summarize",value:"Summarize"},{label:"Rating",value:"Rating"},{label:"Learning strategy",value:"LearningStrategy"},{label:"DropDown",value:"DropDown"}],L3_={SINGLE_CHOICE:"SingleChoice",MULTIPLE_CHOICE:"MultipleChoice",TEXT_INPUT:"TextInput",SLIDER:"Slider",PROGRESS_BAR:"ProgressBar",STAR_RATING:"StarRating",TEXT_INPUT_WITH_SUGGESTIONS:"TextInputWithSuggestions",EMOTIONAL:"Emotional",SUMMARIZE:"Summarize",RATING:"Rating",LEARNING_STRATEGY:"LearningStrategy",DROPDOWN:"DropDown"},po=[{label:2,value:2},{label:3,value:3},{label:4,value:4},{label:5,value:5}],Ln=150,M3_=["Admin","Assistant","Teacher","General ED teacher","Counselor","SecondaryTeacher","Student","Parent"],D3_="chat-channel",B3_="NOTIFICATION_CHANNEL",O3_="SANDBOX_NOTIFICATION",G3_="https://tleliteracy.com/wp-content/uploads/2017/02/default-avatar.png",z3_=["/images/very-sad-icon.png","/images/sad-icon.png","/images/normal-icon.png","/images/happy-icon.png","/images/very-happy-icon.png"],F3_={reflect:"#c08497",goal:"#00979b"},w_={ADMIN:"Admin",TEACHER:"Teacher",ASSISTANT:"Assistant",EDUTEACHER:"General ED teacher",STUDENT:"Student",PARENT:"Parent",COUNSELOR:"Counselor",SECONDARY_TEACHER:"SecondaryTeacher"},Mn="NOTIFICATION_ALERT_KEY",yo="https://www.mariosuccess.com",H3_=[{code:"en-US",fullName:"English (United States)",shortName:"English, US",nativeName:"English",name:"United States",image:"/images/usa.png"}],Ns="en-US",di=["en-US","en-GB","ar","es","zh"],Ps=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var kn=(e=>(e[e.Teacher=0]="Teacher",e[e.Admin=1]="Admin",e))(kn||{});const V3_=window.location.hostname,W3_=["malverncollege","stage","localhost"],Dn=W3_.some(e=>V3_.includes(e)),U3_={"en-US":{translation:BF},"en-GB":{translation:hCe},ar:{translation:vrt},es:{translation:CGt},zh:{translation:T3_}};jn.use(at.initReactI18next).init({resources:U3_,supportedLngs:di,lng:Ns,fallbackLng:Ns,keySeparator:!1,interpolation:{escapeValue:!1}});const Y3_="_contact_3q8bw_95",X3_="_remember_3q8bw_287",Z3_="_icon_3q8bw_368",J3_="_input_3q8bw_420",Q3_="_active_3q8bw_513",K3_="_show_3q8bw_516",e4_="_behind_3q8bw_519",t4_="_login_3q8bw_218",_4_="_div_3q8bw_682",s4_="_logout_3q8bw_747",n4_="_popover__sort__item_3q8bw_798",o4_="_popover__search__icon_3q8bw_809",a4_="_popover__search__input_3q8bw_815",i4_="_popover__options_3q8bw_818",r4_="_title_3q8bw_108",V={"btn-login-google":"_btn-login-google_3q8bw_12","notification-count":"_notification-count_3q8bw_52","text-introduction":"_text-introduction_3q8bw_66","btn-trans-border":"_btn-trans-border_3q8bw_76",contact:Y3_,"learn-more":"_learn-more_3q8bw_96","title-quote":"_title-quote_3q8bw_108","descriptions-quote":"_descriptions-quote_3q8bw_116","box-login":"_box-login_3q8bw_125","block-verification":"_block-verification_3q8bw_136","block-login":"_block-login_3q8bw_142","class-link-sso-image":"_class-link-sso-image_3q8bw_147","title-login":"_title-login_3q8bw_151","title-forgot-password":"_title-forgot-password_3q8bw_165","btn-close":"_btn-close_3q8bw_169","btn-login":"_btn-login_3q8bw_12","school-icon":"_school-icon_3q8bw_202","school-name":"_school-name_3q8bw_207","login-description":"_login-description_3q8bw_218","digital-privacy-icon":"_digital-privacy-icon_3q8bw_231","return-to-login":"_return-to-login_3q8bw_237","recover-account":"_recover-account_3q8bw_246","link-to-login":"_link-to-login_3q8bw_252","privacy-policy":"_privacy-policy_3q8bw_269",remember:X3_,"term-and-conditions":"_term-and-conditions_3q8bw_291","descriptions-forgot-pass":"_descriptions-forgot-pass_3q8bw_303","content-icon":"_content-icon_3q8bw_310","descriptions-icon":"_descriptions-icon_3q8bw_317","title-icon":"_title-icon_3q8bw_326","nav-home":"_nav-home_3q8bw_345","box-introduction":"_box-introduction_3q8bw_359",icon:Z3_,"checkbox-keep-login":"_checkbox-keep-login_3q8bw_395","label-keep-login":"_label-keep-login_3q8bw_399","option-text":"_option-text_3q8bw_408","form-user-name":"_form-user-name_3q8bw_417",input:J3_,"checkbox-remember":"_checkbox-remember_3q8bw_423","btn-rounder":"_btn-rounder_3q8bw_450","btn-active":"_btn-active_3q8bw_453","block-reset-password":"_block-reset-password_3q8bw_467","block-forgot-pass":"_block-forgot-pass_3q8bw_471","page-not-login":"_page-not-login_3q8bw_484","content-quote":"_content-quote_3q8bw_484","home-page":"_home-page_3q8bw_492","bg-animate":"_bg-animate_3q8bw_498",active:Q3_,show:K3_,"fade-in":"_fade-in_3q8bw_1",behind:e4_,login:t4_,"login-content":"_login-content_3q8bw_543","logo-home":"_logo-home_3q8bw_550","img-box":"_img-box_3q8bw_557","img-login":"_img-login_3q8bw_561","img-login-rectangle":"_img-login-rectangle_3q8bw_567","c-main":"_c-main_3q8bw_573","container-fluid":"_container-fluid_3q8bw_576","input-file-label":"_input-file-label_3q8bw_585","delete-avatar-button":"_delete-avatar-button_3q8bw_603","header-logo":"_header-logo_3q8bw_607","box-sidebar":"_box-sidebar_3q8bw_612","sidebar-logo":"_sidebar-logo_3q8bw_616","sidebar-nav-links":"_sidebar-nav-links_3q8bw_621","c-active":"_c-active_3q8bw_628","sidebar-nav-links-hover":"_sidebar-nav-links-hover_3q8bw_633","box-sidebar-header":"_box-sidebar-header_3q8bw_637","box-logout":"_box-logout_3q8bw_638","sidebar-btn-minimized":"_sidebar-btn-minimized_3q8bw_642","sidebar-minimized-logo":"_sidebar-minimized-logo_3q8bw_648","sidebar-logout":"_sidebar-logout_3q8bw_665","nav-mobile":"_nav-mobile_3q8bw_672","filter-media-file":"_filter-media-file_3q8bw_676",div:_4_,"dropdown-menu":"_dropdown-menu_3q8bw_686","header-avatar":"_header-avatar_3q8bw_686","dropdown-menu-flag":"_dropdown-menu-flag_3q8bw_702","dropdown-content":"_dropdown-content_3q8bw_707","dropdown-change":"_dropdown-change_3q8bw_720","item-address":"_item-address_3q8bw_726","item-logout":"_item-logout_3q8bw_731","title-address":"_title-address_3q8bw_734","img-avatar":"_img-avatar_3q8bw_737","item-contact":"_item-contact_3q8bw_744",logout:s4_,"content-text":"_content-text_3q8bw_751","dropdown-content-language":"_dropdown-content-language_3q8bw_767","dropdown-item-language":"_dropdown-item-language_3q8bw_783","dropdown-item-language-active":"_dropdown-item-language-active_3q8bw_793",popover__sort__item:n4_,"popover__sort__item--active":"_popover__sort__item--active_3q8bw_802",popover__search__icon:o4_,popover__search__input:a4_,popover__options:i4_,"popover-zindex":"_popover-zindex_3q8bw_827","button-export":"_button-export_3q8bw_831","button-content":"_button-content_3q8bw_836","button-icon":"_button-icon_3q8bw_842","hide-in-mobile":"_hide-in-mobile_3q8bw_848","hamburger-menu":"_hamburger-menu_3q8bw_874","box-content-home-page":"_box-content-home-page_3q8bw_894","collapse-box":"_collapse-box_3q8bw_938","hide-in-desktop":"_hide-in-desktop_3q8bw_956","control-input":"_control-input_3q8bw_960","custom-control":"_custom-control_3q8bw_960","item-select-role":"_item-select-role_3q8bw_964","item-role-active":"_item-role-active_3q8bw_979","model-switch-roles":"_model-switch-roles_3q8bw_984",title:r4_,"btn-login-with-sso":"_btn-login-with-sso_3q8bw_994","app-alert":"_app-alert_3q8bw_1035","app-alert--success":"_app-alert--success_3q8bw_1051","p-0-12":"_p-0-12_3q8bw_1055","table-fixed":"_table-fixed_3q8bw_1078","fixed-width":"_fixed-width_3q8bw_1098","fixed-width-40":"_fixed-width-40_3q8bw_1102","fixed-width-80":"_fixed-width-80_3q8bw_1106","equal-width":"_equal-width_3q8bw_1110","line-height-center":"_line-height-center_3q8bw_1114","version-prod":"_version-prod_3q8bw_1118","button-user-name":"_button-user-name_3q8bw_1129","custom-chip-teacher-select":"_custom-chip-teacher-select_3q8bw_1141","header-assign-for-student":"_header-assign-for-student_3q8bw_1145","table-filter-icon":"_table-filter-icon_3q8bw_1156","btn-collapse":"_btn-collapse_3q8bw_1161","input-name":"_input-name_3q8bw_1172","switch-data-teachers":"_switch-data-teachers_3q8bw_1176","switch-data-teacher-item":"_switch-data-teacher-item_3q8bw_1176","item-checked":"_item-checked_3q8bw_1185"},c4_={fontSize:"0.85rem"},Nt=({text:e})=>n.jsx("p",{className:"text-danger",style:c4_,children:e}),l4_={height:"40px",backgroundColor:"#f7f9fc",borderRadius:"4px",marginBottom:"5px",position:"relative"},d4_={backgroundColor:"#ffffff",paddingRight:"50px"},u4_={fontSize:"20px",position:"absolute",right:"10px",color:"#316CD9"},h4_=e=>e.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g,(t,_)=>_.toUpperCase()),hs=({isShowPassword:e,togglePasswordVisible:t,onChange:_,placeholder:o})=>n.jsxs("div",{className:"d-flex align-items-center w-100",style:l4_,children:[n.jsx(w.Input,{className:"border password-input",style:d4_,type:e?"text":"password",name:"password",onChange:_,placeholder:o||"Password",autocomplete:o?h4_(o):"password",required:!0}),n.jsx("i",{className:`far ${e?"fa-eye-slash":"fa-eye"} mx-2 cursor-pointer`,style:u4_,onClick:()=>t(),title:e?"Hide":"Show"})]});var Bn=(e=>(e[e.Google=0]="Google",e[e.ClassLink=1]="ClassLink",e[e.MicrosoftSSO=2]="MicrosoftSSO",e))(Bn||{}),Y_=(e=>(e[e.Default=0]="Default",e[e.Google=1]="Google",e[e.Impersonate=2]="Impersonate",e))(Y_||{});const ne=Q.createAction("common/setLoading"),Yt=Q.createAction("common/setModal"),zs=Q.createAction("common/setUser"),m4_=Q.createAction("common/setSidebar"),J=Q.createAction("common/setAlert"),Ts=Q.createAction("common/setIsLoginGoogle"),On=Q.createAction("common/setInforUserGoogle"),ot=Q.createAction("common/reset"),ui=Q.createAction("common/showMenuBar"),hi=Q.createAction("common/showFontSize"),mi=Q.createAction("common/setEnableIEP"),gi=Q.createAction("common/setEnableSurvey"),pi=Q.createAction("common/setEnableWellBeing"),yi=Q.createAction("common/setEnableMarioAi"),Gn=Q.createAction("common/setSandboxMode"),fi=Q.createAction("common/setConversationOneToOne"),wi=Q.createAction("common/setLanguage"),vi=Q.createAction("common/setCurrentStudentId"),bi=Q.createAction("common/setCurrentStudentUserId"),$i=Q.createAction("common/setCurrentStudentName"),ki=Q.createAction("common/setTurnOffPassWhenChangeMode"),xi=Q.createAction("common/initAmplitude"),g4_=e=>Object.keys(e).filter(t=>e[t]||e[t]===0||e[t]===!1).map(t=>Array.isArray(e[t])?e[t].map(_=>`${encodeURIComponent(t)}=${encodeURIComponent(_)}`).join("&"):`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&"),j_=()=>{try{return sessionStorage.getItem(O_)?sessionStorage.getItem(jt):localStorage.getItem(jt)}catch{return null}},ue=ai.create({baseURL:ft,timeout:0,headers:{"Content-Type":"application/json"},paramsSerializer:e=>g4_(e)}),Ot=ai.create({baseURL:ft,timeout:6e4,headers:{"Content-Type":"multipart/form-data"}});[ue,Ot].forEach(e=>e.interceptors.request.use(t=>{const _=j_();return _&&(t.headers.Authorization=`Bearer ${_}`,localStorage.setItem("LAST_TIME_REQUETST",new Date().toISOString().replace("T"," ").split(".")[0])),t},t=>Promise.reject(t)));[ue,Ot].forEach(e=>e.interceptors.response.use(t=>t,t=>{if(console.log({error:t}),t.response.status===401){Object.keys(localStorage).forEach(c=>{c.includes("learning-plan")||delete localStorage[c]});const _=localStorage.getItem("USER_EMAIL"),o=localStorage.getItem("ROLES"),s=window.location.hostname;_&&(E_.track("general: session end",{user_id:_,domain:s,roles:o}),E_.setSessionId(-1)),localStorage.removeItem(jt),sessionStorage.removeItem(jt),sessionStorage.removeItem(O_),localStorage.removeItem("USER_EMAIL"),localStorage.removeItem("ROLES"),window.location.href="/login"}return t.response.status==403&&(localStorage.removeItem(jt),localStorage.removeItem("USER_EMAIL"),localStorage.removeItem("ROLES"),window.location.href="/login"),Promise.reject(t)}));const h_=`${ft}/api/account`,p4_=`${ft}/api/user`,zn=`${ft}/api/User`,y4_=e=>ue.post(`${ft}/api/User/infor-user-classlink`,e),Ci=e=>ue.post(`${h_}/login`,e),f4_=e=>ue.post(`${h_}/checktoken`,{token:e}),w4_=()=>ue.get(`${h_}/info`),v4_=e=>ue.post(`${h_}/forgotpassword`,e),b4_=e=>ue.get(`${h_}/new-user-create-password`,{params:{userId:e}}),$4_=(e,t)=>ue.post(`${h_}/checkResetToken`,{token:e,key:t}),k4_=e=>ue.post(`${h_}/resetpassword`,e),x4_=(e,t)=>ue.post(`${p4_}/check-user`,t,{params:{type:e}}),C4_=()=>ue.get(`${h_}/send-google`),fo=e=>ue.post(`${ft}/api/User/register-user`,e),I4_=e=>ue.post(`${h_}/createPassword`,e),S4_=e=>ue.get(`${zn}/all/deleted`,{params:e}),wo=(e,t)=>ue.delete(`${zn}/hardDelete/${e}`,{params:{userChangeId:t}}),A4_=()=>ue.get(`${zn}/all/teacher`),E4_=e=>ue.post(`${h_}/account-sso-log`,e),T4_=ct.object({email:ct.string().email("Email is invalid").required("Email is required"),password:ct.string().required("Password is required"),rememberMe:ct.boolean()}),j4_=({onSuccess:e,onError:t})=>{const _=oi.useGoogleLogin({onSuccess:async o=>{try{const s=await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:`Bearer ${o.access_token}`}}).then(u=>u.json()),c={accessToken:o.access_token,googleId:s.sub,profileObj:{email:s.email,familyName:s.family_name,givenName:s.given_name,imageUrl:s.picture,name:s.name}};e(c)}catch(s){t(s)}},onError:o=>t(o)});return n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>_(),children:[n.jsxs("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"24px",height:"24px",style:{marginRight:"8px"},children:[n.jsx("path",{fill:"#EA4335",d:"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"}),n.jsx("path",{fill:"#4285F4",d:"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"}),n.jsx("path",{fill:"#FBBC05",d:"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"}),n.jsx("path",{fill:"#34A853",d:"M24 48c6.48 0 12.38-2.12 16.66-5.73l-7.73-6c-2.15 1.45-4.92 2.3-8.93 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"}),n.jsx("path",{fill:"none",d:"M0 0h48v48H0z"})]}),n.jsx("p",{children:"GOOGLE"})]})},N4_=({defaultInfo:e,userLogin:t,school:_,isShowPassword:o,setIsShowPassword:s,fnIsCheckLogin:c,googleClientId:u,fnLoginSSO:g,extensionEmail:d,onLoginWidthClever:p})=>{const x=()=>s(!o),f=Ee.useDispatch(),{executeRecaptcha:A}=Z_.useGoogleReCaptcha(),T=v.useCallback(async()=>{if(!A){console.log("execute recaptcha undefined");return}return await A("login")},[A]),P=v.useCallback(()=>{},[]),E=async C=>{try{await E4_(C)}catch(N){console.error(N)}},k=async C=>{if(C?.accessToken){let{email:N,familyName:L,givenName:D,imageUrl:O,name:R}=C.profileObj,W=C.accessToken,F=C.googleId;const G=window.location.hostname.split(".marioforme.com")?.[0],H=N.split("@")?.[1],q=d?.split(",")?.map(ee=>ee.trim())?.filter(ee=>ee).some(ee=>H.includes(ee));if(!H.includes(G)&&!q){alert("The email address you used does not match the login information in the database. Please check that you are using your school assigned email address to log into MARIO for Me. If you have further trouble please notify your school site administrator"),await E([`${H} is incorrect`]);return}const K={firstName:D,lastName:L,imageUrl:O,fullName:R,email:N,accessToken:W,googleId:F};f(On(K)),c(Bn.Google,K,W,T)}};return n.jsx(v.Fragment,{children:n.jsx(d_.Formik,{initialValues:e,validationSchema:T4_,onSubmit:async C=>{try{const N=await T();if(!N)return;C.captcha=N,C.loginType=Y_.Default,t(C)}catch(N){console.error(N)}},children:C=>{const{handleChange:N,handleBlur:L,handleSubmit:D,values:O,touched:R,errors:W,setFieldValue:F}=C,Z=R.email&&W.email,G=R.password&&W.password;return n.jsx("div",{className:`${V["box-login"]} w-100`,children:n.jsx(w.Form,{className:`${V["block-login"]}`,onSubmit:D,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsxs("div",{className:"d-flex align-items-center mb-4",children:[n.jsx("img",{hidden:!_?.schoolLogo,src:_?.schoolLogo,className:`${V["school-icon"]} mr-3`}),n.jsx("p",{className:`${V["school-name"]} mb-0`,children:_.schoolName})]}),n.jsx("p",{className:`${V["title-login"]}`,children:"Welcome Back!"}),n.jsx("p",{className:`${V["login-description"]} mb-5`,children:"Please enter your MARIO Education account details"}),n.jsxs(w.FormGroup,{className:`${V["form-user-name"]}`,children:[n.jsx(w.Input,{type:"text",name:"email",placeholder:"Email",value:O.email,onChange:N,autocomplete:"email",onBlur:L("email"),required:!0}),Z&&n.jsx(Nt,{text:W.email})]}),n.jsxs(w.FormGroup,{children:[n.jsx(hs,{isShowPassword:o,togglePasswordVisible:x,onChange:H=>F("password",H.target.value)}),G&&n.jsx(Nt,{text:W.password})]}),n.jsx(w.FormGroup,{children:n.jsx(Z_.GoogleReCaptcha,{action:"login",onVerify:P})}),n.jsxs("div",{className:"d-flex justify-content-between",children:[n.jsxs("div",{className:"d-flex align-items-center",style:{gap:"8px"},children:[n.jsx("input",{type:"checkbox",checked:!O.isSessionUserBrowser,className:`${V["checkbox-keep-login"]}`,onChange:()=>F("isSessionUserBrowser",!O.isSessionUserBrowser)}),n.jsx("p",{className:`${V["label-keep-login"]} mb-0 ml-2`,children:"Keep me logged in"})]}),n.jsx(Ct.Link,{to:"/forgot-password",className:`${V["link-to-login"]}`,children:"Forgot password?"})]}),n.jsx("button",{className:`${V["btn-login"]} mt-5`,type:"submit",children:"LOG IN"}),n.jsx("p",{className:`${V["option-text"]} my-3 text-center`,children:"OR"}),n.jsxs(w.Row,{className:"mb-4",children:[n.jsx(w.Col,{lg:6,md:6,xs:12,className:"pr-md-3",children:!!u&&n.jsx(oi.GoogleOAuthProvider,{clientId:u,children:n.jsx(j4_,{onSuccess:k,onError:()=>console.log("Google login failed")})})}),n.jsx(w.Col,{lg:6,md:6,xs:12,className:`${V["btn-login-sso"]} pl-md-2`,hidden:!_?.schoolId,children:n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>g(T),children:[n.jsx("img",{src:"images/microsoft-logo.png"}),n.jsx("p",{children:"MICROSOFT"})]})})]}),n.jsx("div",{className:`${V["btn-login-sso"]}`,children:n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>window.open("https://launchpad.classlink.com/login"),children:[n.jsx("img",{src:"images/class-link-icon.png"}),n.jsx("p",{children:"SIGN IN WITH CLASSLINK"})]})}),n.jsx("div",{className:`${V["btn-login-sso"]} mt-4`,children:n.jsxs("div",{className:V["btn-login-with-sso"],onClick:()=>p(),children:[n.jsx("img",{src:"images/clever-icon.png"}),n.jsx("p",{children:"SIGN IN WITH CLEVER"})]})})]})})})}})})},P4_={email:"",captcha:""},q4_="/",vo="/login",R4_="Log in",Ii=()=>{const e=new URLSearchParams(Ct.useLocation().search),t=e.get("token"),_=e.get("key")??"",o=Ee.useDispatch(),s=Ct.useNavigate(),[c,u]=v.useState(!1),g=v.useCallback(()=>{u(!c)},[c]),[d,p]=v.useState(!1),[x,f]=v.useState(!1),[A,T]=v.useState({token:"",password:"",reEnterPassword:"",email:"",userId:""}),[P,E]=v.useState(!0),{executeRecaptcha:k}=Z_.useGoogleReCaptcha();v.useEffect(()=>{document.title=R4_,j_()&&s(q4_)},[]);const C=v.useCallback(async R=>{o(ne(!0));try{await v4_(R),s(vo),o(J({type:"success",message:"A mail to reset password was sent"}))}catch(W){o(J({type:"danger",message:W.response?.data?.title||W.message||"Error occured"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}o(ne(!1))},[]),N=v.useCallback(async(R,W)=>{o(ne(!0));try{const F=await $4_(R,W);F.data?T({...A,token:R,email:F.data}):E(!1)}catch{E(!1)}o(ne(!1))},[]),L=v.useCallback(async R=>{o(ne(!0));try{await k4_({...R,key:_}),s(vo),o(J({type:"success",message:"Reset password sucessfully"}))}catch(W){o(J({type:"danger",message:W.response?.data?.title||W.message||"Error occured"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}o(ne(!1))},[]),D=v.useCallback(async()=>{if(!k){console.log("execute recaptcha undefined");return}return await k("forgetPass")},[k]),O=v.useCallback(()=>{},[]);return v.useEffect(()=>{N(t,_)},[]),{defaultInfo:P4_,forgotPasswordRequest:C,checkResetTokenRequest:N,validLink:P,resetPasswordRequest:L,openLogin:c,toggle:g,isShowNewPassword:d,setIsShowNewPassword:p,isShowReTypePassword:x,setIsShowReTypePassword:f,clickHandler:D,handleVerify:O,initialValues:A}},L4_={email:"",captcha:""},M4_=ct.object({email:ct.string().email("Email is invalid").required("Email is required")}),D4_=({school:e})=>{const{forgotPasswordRequest:t,clickHandler:_,handleVerify:o}=Ii();return n.jsx(d_.Formik,{initialValues:L4_,enableReinitialize:!0,validationSchema:M4_,onSubmit:async s=>{const c=await _();c&&(s.captcha=c,t(s))},children:s=>{const{handleChange:c,handleSubmit:u,values:g,touched:d,errors:p}=s;return n.jsx("div",{className:`${V["box-login"]}`,children:n.jsx("div",{className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsxs("div",{className:"d-flex align-items-center mb-4",children:[n.jsx("img",{src:e.schoolLogo,className:`${V["school-icon"]} mr-3`}),n.jsx("p",{className:`${V["school-name"]} mb-0`,children:e.schoolName})]}),n.jsx("p",{className:`${V["title-login"]} `,children:"Forgot password"}),n.jsx("p",{className:`${V["recover-account"]} mb-5`,children:"Enter email to recover your account"}),n.jsxs("div",{className:"w-100",children:[n.jsx(w.Input,{type:"text",name:"email",id:"email",placeholder:"Input email",onChange:c,value:g.email}),d.email&&p.email&&n.jsx(Nt,{text:p.email})]}),n.jsx(Ct.Link,{to:"/login",className:`${V["link-to-login"]} mt-2`,children:"Return to login"}),n.jsx(Z_.GoogleReCaptcha,{action:"forgetPass",onVerify:o}),n.jsx(w.Col,{className:"p-0",children:n.jsx("button",{className:`${V["btn-login"]} mt-5`,onClick:()=>u(),children:"Continue"})})]})})})}})},n_=e=>{const t="https://stage2.marioforme.com",_=t===location.origin;return e?U_&&!_||e.startsWith("http")?e:e.startsWith("/")?`${_?t:yo}${e}`:`${_?t:yo}/${e}`:""},B4_=ct.object({password:ct.string().required("New password is required"),reEnterPassword:ct.string().required("Please re-enter new password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),O4_=()=>{const{validLink:e,resetPasswordRequest:t,isShowNewPassword:_,setIsShowNewPassword:o,isShowReTypePassword:s,setIsShowReTypePassword:c,initialValues:u}=Ii();return n.jsx(d_.Formik,{initialValues:u,enableReinitialize:!0,validationSchema:B4_,onSubmit:g=>{t(g)},children:g=>{const{setFieldValue:d,handleSubmit:p,touched:x,errors:f,values:A}=g;return n.jsx(w.Row,{className:`${V["box-login"]}`,children:n.jsx(w.Col,{className:"p-0",children:n.jsx("div",{className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsx("img",{src:`${n_("/images/horizontal-logo-blue.svg")}`,className:`${V["img-login-rectangle"]}`}),n.jsx("p",{className:`${V["title-login"]}`,children:"Reset Password"}),n.jsx("div",{className:"w-100",children:e?n.jsxs(v.Fragment,{children:[n.jsx(w.FormGroup,{className:`${V["form-user-name"]}`,children:n.jsx(w.Input,{disabled:!0,type:"text",name:"email",placeholder:"Email",value:A.email,autocomplete:"email",required:!0,className:`${V.input}`})}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{isShowPassword:_,togglePasswordVisible:()=>o(!_),onChange:T=>d("password",T.target.value)}),x.password&&f.password&&n.jsx(Nt,{text:f.password})]}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{placeholder:"Confirm Password",isShowPassword:s,togglePasswordVisible:()=>c(!s),onChange:T=>d("reEnterPassword",T.target.value)}),x.reEnterPassword&&f.reEnterPassword&&n.jsx(Nt,{text:f.reEnterPassword})]})]}):n.jsxs(v.Fragment,{children:[n.jsx("p",{className:`${V["recover-account"]} mb-5`,children:"Invalid reset password link"}),n.jsx("p",{className:"w-100",children:"It may have been accessed before or expired or you have just tried to reset another account's password"})]})}),e&&n.jsx(w.Col,{className:"p-0",children:n.jsx("button",{className:`${V["btn-login"]} ${V["btn-rounder"]} mt-4`,onClick:()=>p(),children:"SET A NEW PASSWORD"})})]})})})})}})},Si=`${ft}/api/school`,G4_=()=>ue.get(`${Si}/settings`),z4_=()=>ue.get(`${Si}/info`),F4_={auth:{clientId:U_?"a27f8ac9-e039-4bbd-a9e1-3096e52a77bb":"90c6897c-f17b-475e-a7a8-9a19651e0060",authority:"https://login.microsoftonline.com/common",redirectUri:"https://sso.marioforme.com/microsoft-login.html"},cache:{cacheLocation:"sessionStorage",storeAuthStateInCookie:!1},system:{loggerOptions:{loggerCallback:(e,t,_)=>{if(!_)switch(e){case is.LogLevel.Error:console.error(t);return;case is.LogLevel.Info:console.info(t);return;case is.LogLevel.Verbose:console.debug(t);return;case is.LogLevel.Warning:console.warn(t);return;default:return}}}}},o_=e=>!e||!e.trim()?"":e.startsWith("/avatars/default-student-avatar")?e:`${ft}/api/file/viewer?key=${e}`,Ai=e=>document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)")?.pop()||"",H4_={email:"",password:"",captcha:"",rememberMe:!1,isSessionUserBrowser:!!sessionStorage.getItem(O_)},V4_="/home",bo="/home",W4_="/admin/home",U4_="/parent",Y4_="/admin/schools",X4_="/list-student",Z4_="Log in",J4_=()=>{const e=Ee.useDispatch(),t=Ct.useNavigate(),[_,o]=v.useState(!1),s=Ee.useSelector(ie=>ie.common.isLoginGoogle),[c,u]=v.useState(""),[g,d]=v.useState(""),[p,x]=v.useState(""),f=Ee.useSelector(ie=>ie.common.inforUserGoogle),A=new URLSearchParams(location.search),T=A.get("type")==="classlink",P=A.get("token"),E=A.get("isAdminUser"),[k]=v.useState(!1),[C,N]=v.useState({schoolName:"",schoolLogo:"",schoolId:0}),[L,D]=v.useState(null),O=v.useCallback(()=>{o(!_)},[_]),[R,W]=v.useState(!1);v.useEffect(()=>{document.title=Z4_;const ie=Ai("auth-token");if(ie){const Te=window.location.hostname;if(localStorage.setItem(jt,ie),document.cookie=`auth-token=;domain=${Te.includes("localhost")?Te:".marioforme.com"}; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/`,document.cookie="redirect-uri=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",E)return t("/admin/home")}j_()&&t("/"),ee()},[E]);const F=()=>{localStorage.removeItem(jt),sessionStorage.removeItem(jt),localStorage.removeItem("USER_EMAIL")};v.useEffect(()=>{T&&P!=""&&G()},[]);const Z=()=>{if(U_){const ie="https://clever.com/oauth/instant-login?client_id=c3da6c669d239c70d48e&district_id=66132a6f222bda41cc8abe5d";window.location.href=ie}else{const ie=`https://clever.com/oauth/authorize?response_type=code&redirect_uri=${encodeURIComponent("https://classlink.marioforme.com/api/clever/clever-login")}&client_id=c3da6c669d239c70d48e`;window.location.href=ie}},G=async()=>{e(ne(!0));try{const ge=await y4_({tokenClassLink:P}),{email:Te,token:Pe}=ge.data;await K({email:Te,rememberMe:!1,password:"default",accessToken:Pe})}catch(ie){e(J({type:"danger",message:ie.response?.data?.title||ie.message}))}e(ne(!1))},H=window.location.host.includes("-district"),q=v.useCallback(async()=>{e(ne(!0));try{const ie=await z4_(),ge=ie.data.schoolLogo??"";ie.data&&N({schoolName:ie.data.schoolName,schoolLogo:ge?o_(ge):n_("/images/logo_header_blue.png"),schoolId:ie.data.schoolId})}catch(ie){e(J({type:"danger",message:ie.response?.data?.title||ie.message}))}e(ne(!1))},[]),K=v.useCallback(async ie=>{e(ne(!0));try{const ge=ie?.isSessionUserBrowser??!1,Te=await Ci({...ie,email:ie?.email?.trim(),password:ie?.password?.trim()}),{token:Pe,id:Fe,firstName:ht,lastName:Ye,roles:pe,email:$e,profileImageFileName:$t,isLoginFirst:Ht}=Te.data;if(ge?(sessionStorage.setItem(jt,Pe),sessionStorage.setItem(O_,ge)):(sessionStorage.removeItem(O_),localStorage.setItem(jt,Pe)),localStorage.removeItem(Mn),e(zs({id:Fe,firstName:ht,lastName:Ye,roles:pe,email:$e,profileImageFileName:$t})),!localStorage.getItem("ROLES")&&pe.includes("Admin")&&localStorage.setItem("ROLES","Admin"),ie?.email&&!pe.includes("Admin")){E_.init(U_?ri:ii,ie.email,{defaultTracking:!1});const It=window.location.hostname,Vt=new E_.Identify;Vt.set("domain",It),E_.identify(Vt),E_.track("general: session start",{user_id:ie.email,domain:It,roles:ie?.roles?.toString()}),localStorage.setItem("USER_EMAIL",ie.email),Ht&&E_.track("general: first login",{user_id:ie.email,domain:It,roles:ie?.roles?.toString()})}H?t(Y4_):pe.includes("Admin")?t(W4_):pe.includes("Teacher")||pe.includes("Assistant")||pe.includes("Counselor")||pe.includes("SecondaryTeacher")?t(V4_):pe.includes("Student")?t(bo):pe.includes("Parent")?t(U4_):pe.includes("EduTeacher")&&t(X4_)}catch(ge){e(J({type:"danger",message:ge.response?.data?.title||ge.message||"Login failed"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}e(ne(!1))},[]),ee=async()=>{try{const ie=await C4_();u(ie.data.googleClientId),d(ie.data.googleCaptchaId),x(ie.data.extensionEmail)}catch(ie){e(J({type:"danger",message:ie.response?.data?.title||ie.message||"Login failed"}))}},xe=v.useCallback(async(ie,ge,Te,Pe)=>{e(ne(!0));try{if((await x4_(ie,ge)).data){const Ye={email:ge.email,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:Te,captcha:"",loginType:Y_.Google};if(Pe!=null){const pe=await Pe();Ye.captcha=pe}await K(Ye),e(Ts(!1))}else if((await fo(ge))?.data){const pe={email:ge.email,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:Te,captcha:"",loginType:Y_.Google};if(Pe!=null){const $e=await Pe();pe.captcha=$e}await K(pe)}}catch(Fe){e(J({type:"danger",message:Fe.response?.data?.title||Fe.message||"Login failed"}))}e(ne(!1))},[]),Ne=async(ie,ge)=>{e(ne(!0));try{const Te={firstName:f.firstName,lastName:f.lastName,imageUrl:f.imageUrl,fullName:f.fullName,email:f.email,accessToken:f.accessToken,teacherId:ie};if((await fo(Te)).data){const Fe=await ge(),ht={email:f.email,captcha:Fe,isLoginGoogle:!0,rememberMe:!1,password:"default",accessToken:f.accessToken,loginType:Y_.Google};e(Ts(!1)),await K(ht),t(bo)}}catch(Te){e(J({type:"danger",message:Te.response?.data?.title||Te.message||"Login failed"}))}e(Ts(!1)),e(ne(!1))},et=async()=>{try{const ie=await G4_();e(Gn(ie.data.isSandboxMode))}catch(ie){console.error(ie)}},De=async ie=>{L.handleRedirectPromise().then(async ge=>{if(C?.schoolId)if(ge){let Te=ge.account;await le(Te,ie)}else{const Te=L.getAllAccounts();if(Te.length===0){const Pe=U_?"https://brightsoft.marioforme.com":"https://sso.marioforme.com";window.location.href=(window.location.hostname==="localhost"?"https://localhost:3000":Pe)+`/microsoft-login.html?redirect-uri=${window.location.href}&schoolId=${C.schoolId}`}else{let Pe=Te[0];await le(Pe,ie)}}}).catch(ge=>{console.error(ge)})},le=async(ie,ge)=>{let Te=ie.name,Pe={firstName:Te.split(" ").slice(0,-1).join(" "),lastName:Te.split(" ").slice(-1).join(" "),fullName:Te,imageUrl:"",email:ie.username,accessToken:ie.idTokenClaims.aio,googleId:ie.tenantId};e(On(Pe)),await xe(Bn.MicrosoftSSO,Pe,ie.idTokenClaims.aio,ge)},Ue=async()=>{const ie=new is.PublicClientApplication(F4_);await ie.initialize(),D(ie)};return v.useEffect(()=>{let ie=window.location.href;L&&ie.includes("code")&&ie.includes("client_info")&&De()},[JSON.stringify(L)]),v.useEffect(()=>{et(),Ue(),q()},[]),{defaultInfo:H4_,userLogin:K,openLogin:_,toggle:O,isShowPassword:R,setIsShowPassword:W,fnIsCheckLogin:xe,isLoginGoogle:s,infoUser:f,submitLogin:Ne,googleClientId:c,googleRecaptchaId:g,handleCancelModelAssign:F,openModelAssign:k,fnLoginSSO:De,school:C,extensionEmail:p,handleLoginWidthClever:Z}},$o="/",Q4_="/login",ko="Log in",K4_=()=>{const e=Ee.useDispatch(),t=Ct.useNavigate(),_=location.search,s=new URLSearchParams(_).get("userId"),[c,u]=v.useState(!1),[g,d]=v.useState(!1),[p,x]=v.useState({password:"",reEnterPassword:"",email:"",userId:s??"",token:""}),{executeRecaptcha:f}=Z_.useGoogleReCaptcha(),A=v.useCallback(async k=>{e(ne(!0));try{const C=await b4_(k);x({...p,email:C.data})}catch(C){e(J({type:"danger",message:C.message}))}e(ne(!1))},[]),T=v.useCallback(async k=>{e(ne(!0));try{await I4_(k),t(Q4_),e(J({type:"success",message:"Create password sucessfully"}))}catch(C){e(J({type:"danger",message:C.response?.data?.title||C.message||"Error occured"})),localStorage.removeItem(jt),sessionStorage.removeItem(jt)}e(ne(!1))},[]),P=v.useCallback(async()=>{if(!f){console.log("execute recaptcha undefined");return}return await f("forgetPass")},[f]),E=v.useCallback(()=>{},[]);return v.useEffect(()=>{document.title=ko,j_()&&t($o),s&&A(s)},[s]),v.useEffect(()=>{document.title=ko,j_()&&t($o)},[]),{createPasswordRequest:T,isShowNewPassword:c,setIsShowNewPassword:u,isShowReTypePassword:g,setIsShowReTypePassword:d,clickHandler:P,handleVerify:E,initialValues:p}},eC_=ct.object({password:ct.string().required("Password is required"),reEnterPassword:ct.string().required("Please re-enter Password").test("matching","Passwords do not match",function(){return this.parent.password===this.parent.reEnterPassword})}),tC_=()=>{const{createPasswordRequest:e,isShowNewPassword:t,setIsShowNewPassword:_,isShowReTypePassword:o,setIsShowReTypePassword:s,initialValues:c}=K4_();return n.jsx(d_.Formik,{initialValues:c,enableReinitialize:!0,validationSchema:eC_,onSubmit:u=>{e(u)},children:u=>{const{setFieldValue:g,handleSubmit:d,touched:p,errors:x,values:f}=u;return n.jsx(w.Row,{className:`${V["box-login"]}`,children:n.jsxs(w.Col,{className:"p-0",children:[n.jsx("div",{hidden:!f.email,className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsx("img",{src:`${n_("/images/horizontal-logo-blue.svg")}`,className:`${V["img-login-rectangle"]}`}),n.jsx("p",{className:`${V["title-login"]}`,children:"Create Your Password"}),n.jsx("div",{className:"w-100",children:n.jsxs(v.Fragment,{children:[n.jsx(w.FormGroup,{className:`${V["form-user-name"]}`,children:n.jsx(w.Input,{disabled:!0,type:"text",name:"email",placeholder:"Email",value:f.email,autocomplete:"email",required:!0,className:`${V.input}`})}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{isShowPassword:t,togglePasswordVisible:()=>_(!t),onChange:A=>g("password",A.target.value)}),p.password&&x.password&&n.jsx(Nt,{text:x.password})]}),n.jsxs("div",{className:`${V["form-user-name"]}`,children:[n.jsx(hs,{placeholder:"Confirm Password",isShowPassword:o,togglePasswordVisible:()=>s(!o),onChange:A=>g("reEnterPassword",A.target.value)}),p.reEnterPassword&&x.reEnterPassword&&n.jsx(Nt,{text:x.reEnterPassword})]})]})}),n.jsx("button",{className:`${V["btn-login"]} ${V["btn-rounder"]} mt-4`,onClick:()=>d(),children:"CREATE YOUR PASSWORD"})]})}),n.jsx("div",{hidden:!!f.email,className:`${V["block-login"]}`,children:n.jsxs("div",{className:`${V["block-form"]}`,children:[n.jsx("img",{src:`${n_("/images/horizontal-logo-blue.svg")}`,className:`${V["img-login-rectangle"]}`}),n.jsx("p",{className:`${V["title-login"]}`,children:"You cannot regenerate the password"})]})})]})})}})},_C_="Log in",sC_="Forgot password",nC_="Reset password",oC_=e=>{const{isLogin:t,isForgotPassword:_,isResetPassword:o,isCreatePassword:s}=e,{defaultInfo:c,userLogin:u,googleRecaptchaId:g,handleCancelModelAssign:d,school:p,openModelAssign:x,setIsShowPassword:f,fnIsCheckLogin:A,isLoginGoogle:T,submitLogin:P,infoUser:E,googleClientId:k,isShowPassword:C,fnLoginSSO:N,extensionEmail:L,handleLoginWidthClever:D}=J4_();return v.useEffect(()=>{t&&(document.title=_C_),_&&(document.title=sC_),o&&(document.title=nC_)},[t,_,o]),n.jsx("div",{className:`${V.login} container-fluid font-family-lato`,children:n.jsxs(w.Row,{className:"h-100",children:[n.jsxs(w.Col,{lg:8,md:12,xs:12,className:"d-flex justify-content-center h-100 align-items-center p-3 flex-column",children:[!!g&&n.jsxs(Z_.GoogleReCaptchaProvider,{useRecaptchaNet:!0,reCaptchaKey:g,scriptProps:{async:!0,defer:!0,appendTo:"body"},children:[t&&n.jsx(N4_,{userLogin:u,defaultInfo:c,onCancelModelAssign:d,openModelAssign:x,school:p,fnIsCheckLogin:A,googleClientId:k,infoUser:E,isLoginGoogle:T,isShowPassword:C,setIsShowPassword:f,submitLogin:P,fnLoginSSO:N,extensionEmail:L,onLoginWidthClever:D}),_&&n.jsx(D4_,{school:p})]}),o&&n.jsx(O4_,{}),s&&n.jsx(tC_,{}),n.jsx("a",{href:"/privacy-policy/",target:"blank",className:`${V["privacy-policy"]}`,children:"Privacy Policy"})]}),n.jsx(w.Col,{className:"p-3 mh-100 d-flex justify-content-end",lg:4,md:12,xs:12,children:n.jsx("img",{src:`${n_(window.innerWidth>992?"/images/img-login.png":"/images/img-login-tablet.png")}`,className:`${V["img-login"]}`})})]})})},aC_=()=>n.jsxs("div",{className:`${V["content-quote"]}`,children:[n.jsxs("div",{className:`${V["title-quote"]} d-block`,children:[n.jsx("p",{children:"Powerful"}),n.jsx("p",{children:"Personalized"}),n.jsx("p",{children:"Learning"})]}),n.jsxs("div",{className:`${V["descriptions-quote"]} d-block`,children:[n.jsx("p",{children:"Focus on what matters most to you and"}),n.jsx("p",{children:"make learning meaningful."})]})]}),iC_=({srcIcon:e,content:t})=>n.jsxs("div",{className:`${V["content-icon"]}`,children:[n.jsx("div",{className:`${V["title-icon"]}`,children:n.jsx("img",{src:n_(e),alt:"icon"})}),n.jsx("div",{className:`${V["descriptions-icon"]}`,dangerouslySetInnerHTML:{__html:t}})]},t),rC_=[{scrIcon:"/images/ChatsTeardrop.svg",content:"<p>Understand yourself better through <span>helpful feedback</span>.</p>"},{scrIcon:"/images/Student.svg",content:"<p>Create, explore, and share exciting <span>personalized</span> learning journeys.</p>"},{scrIcon:"/images/Confetti.svg",content:"<p>Set, monitor, and achieve <span>your goals</span>.</p>"}],cC_=({})=>n.jsxs(w.Row,{className:`${V["page-not-login"]}`,children:[n.jsx(w.Col,{md:12,children:n.jsx(aC_,{})}),n.jsx(w.Col,{md:12,className:`${V["box-content-home-page"]} d-flex align-items-center`,children:rC_.map(e=>n.jsx(iC_,{srcIcon:e.scrIcon,content:e.content},e.scrIcon))})]});var Ei={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xo=v.createContext&&v.createContext(Ei),T_=function(){return T_=Object.assign||function(e){for(var t,_=1,o=arguments.length;_<o;_++){t=arguments[_];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},T_.apply(this,arguments)},lC_=function(e,t){var _={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(_[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(_[o[s]]=e[o[s]]);return _};function Ti(e){return e&&e.map(function(t,_){return v.createElement(t.tag,T_({key:_},t.attr),Ti(t.child))})}function Rt(e){return function(t){return v.createElement(dC_,T_({attr:T_({},e.attr)},t),Ti(e.child))}}function dC_(e){var t=function(_){var o=e.attr,s=e.size,c=e.title,u=lC_(e,["attr","size","title"]),g=s||_.size||"1em",d;return _.className&&(d=_.className),e.className&&(d=(d?d+" ":"")+e.className),v.createElement("svg",T_({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},_.attr,o,u,{className:d,style:T_(T_({color:e.color||_.color},_.style),e.style),height:g,width:g,xmlns:"http://www.w3.org/2000/svg"}),c&&v.createElement("title",null,c),e.children)};return xo!==void 0?v.createElement(xo.Consumer,null,function(_){return t(_)}):t(Ei)}function uC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z"}}]})(e)}const hC_=1e4,mC_=({data:e,duration:t=hC_})=>{const[_,o]=v.useState(e.length),s=v.useRef(null),c=v.useCallback(d=>d===_?`${V.active} ${V.show}`:"",[_]),u=v.useCallback(d=>_===0&&d===e.length-1||d===_-1?V.behind:"",[_,e.length]),g=v.useCallback(()=>{s&&s.current&&clearInterval(s.current),s.current=setInterval(()=>{o(d=>d>=e.length-1?0:d+1)},t)},[t,e.length]);return v.useEffect(()=>(g(),()=>{s&&s.current&&clearInterval(s.current)}),[e.length,t]),n.jsx("div",{className:`${V["bg-animate"]} position-absolute`,children:e.map((d,p)=>n.jsx("img",{alt:`Image ${p+1}`,className:`${u(p)} ${c(p)}`,src:n_(d)},p))})},gC_="/admin/users/user-list",pC_="/home",yC_="/home",fC_="Dashboard",wC_="Mario Education",vC_=["images/landing-page.jpg","images/landing-page2.jpg","images/landing-page3.jpg"],bC_=({version:e})=>{const[t,_]=v.useState(!1),o=Ee.useSelector(c=>c.common.user),s=()=>_(!t);return v.useEffect(()=>{o?document.title=fC_:document.title=wC_},[o]),n.jsxs("div",{className:`${V.login} ${V["red-background"]} position-relative`,children:[n.jsx("span",{className:`${V["version-prod"]}`,children:`v ${e}`}),n.jsx(mC_,{data:vC_}),n.jsxs("div",{className:`${V["login-content"]}`,children:[n.jsxs(w.Navbar,{light:!0,expand:"md",children:[n.jsx(w.NavbarBrand,{href:"/",className:`${V["logo-home"]}`,children:n.jsx("img",{src:n_("/images/logo-white.svg"),alt:"mario"})}),n.jsx(uC_,{onClick:s,className:`${V["hide-in-desktop"]} ${V["hamburger-menu"]}`}),n.jsxs(w.Collapse,{isOpen:t,navbar:!0,className:`${V["collapse-box"]}`,children:[n.jsxs(w.Nav,{className:`${V["nav-home"]} d-md-flex w-100 justify-content-center mr-auto`,navbar:!0,children:[n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${V["learn-more"]} align-self-md-center`,href:"https://marioframework.com/software",target:"blank",children:"Learn More"})}),n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${V["learn-more"]} align-self-md-center`,href:"mailto: Info@marioeducation.com",target:"blank",children:"Contact"})}),n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${V["learn-more"]} align-self-md-center`,href:"/privacy-policy",target:"blank",children:"Privacy Policy"})})]}),n.jsx("div",{className:`${V["hide-in-mobile"]} d-flex justify-content-end`,children:o?n.jsx(Ct.Link,{to:o.roles.includes("Admin")?gC_:o.roles.includes("Teacher")?pC_:yC_,className:`${V["btn-trans-border"]}`,children:"Dashboard"}):n.jsx(Ct.Link,{to:"/login",className:`${V["btn-trans-border"]}`,children:"Login"})})]})]}),n.jsx("div",{className:"",children:n.jsx(cC_,{})}),n.jsx("div",{className:`${V["digital-privacy-icon"]}`,children:n.jsx("a",{href:"https://cert.privo.com/#/companies/marioFrameworkLlc",target:"blank",children:n.jsx("img",{src:n_("/images/STUDENT.png"),alt:"icon"})})})]})]})},$C_="Not found",Fn=()=>(v.useEffect(()=>{document.title=$C_}),n.jsx("div",{className:"not-found",children:n.jsxs("div",{className:"clearfix",children:[n.jsx("h1",{className:"float-left display-3 mr-4",children:"404"}),n.jsxs("div",{className:"float-left",children:[n.jsx("h4",{className:"pt-3",children:"Oops! You are lost."}),n.jsx("p",{className:"text-muted mb-2",children:"The page you are looking for was not found."}),n.jsx("div",{children:n.jsx(Ct.Link,{to:"/",children:"Go to home"})})]})]})})),kC_=n.jsx("div",{className:"pt-3 text-center",children:n.jsx("div",{className:"sk-spinner sk-spinner-pulse"})}),xC_=({routes:e})=>{const t=Ct.useLocation(),{pathname:_}=t,o=_.includes("/admin")?"":"box-container",s=_.includes("/admin")?"p-4":"";return n.jsx("main",{className:`c-main ${o}`,style:{height:"100%"},children:n.jsx(rd.CContainer,{fluid:!0,className:`h-100 ${s}`,style:{flex:1},children:n.jsx(v.Suspense,{fallback:kC_,children:n.jsxs(Ct.Routes,{children:[e.map((c,u)=>n.jsx(Ct.Route,{path:c.path,element:n.jsx(c.component,{})},u)),n.jsx(Ct.Route,{path:"*",element:n.jsx(Fn,{})})]})})})})},CC_=v.memo(xC_);function IC_(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"}}]})(e)}function SC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24zm296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24zm-124 88c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20zm64 0c0-11-9-20-20-20s-20 9-20 20 9 20 20 20 20-9 20-20z"}}]})(e)}function AC_(e){return Rt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.6 83.2l90.2 90.2c3.8 3.8 3.8 10 0 13.8L274.4 405.6l-92.8 10.3c-12.4 1.4-22.9-9.1-21.5-21.5l10.3-92.8L388.8 83.2c3.8-3.8 10-3.8 13.8 0zm162-22.9l-48.8-48.8c-15.2-15.2-39.9-15.2-55.2 0l-35.4 35.4c-3.8 3.8-3.8 10 0 13.8l90.2 90.2c3.8 3.8 10 3.8 13.8 0l35.4-35.4c15.2-15.3 15.2-40 0-55.2zM384 346.2V448H64V128h229.8c3.2 0 6.2-1.3 8.5-3.5l40-40c7.6-7.6 2.2-20.5-8.5-20.5H48C21.5 64 0 85.5 0 112v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V306.2c0-10.7-12.9-16-20.5-8.5l-40 40c-2.2 2.3-3.5 5.3-3.5 8.5z"}}]})(e)}function EC_(e){return Rt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm65.18 216.01H224v80c0 8.84-7.16 16-16 16h-32c-8.84 0-16-7.16-16-16v-80H94.82c-14.28 0-21.41-17.29-11.27-27.36l96.42-95.7c6.65-6.61 17.39-6.61 24.04 0l96.42 95.7c10.15 10.07 3.03 27.36-11.25 27.36zM377 105L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128v-6.1c0-6.3-2.5-12.4-7-16.9z"}}]})(e)}function TC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M464,128H272L208,64H48A48,48,0,0,0,0,112V400a48,48,0,0,0,48,48H464a48,48,0,0,0,48-48V176A48,48,0,0,0,464,128ZM359.5,296a16,16,0,0,1-16,16h-64v64a16,16,0,0,1-16,16h-16a16,16,0,0,1-16-16V312h-64a16,16,0,0,1-16-16V280a16,16,0,0,1,16-16h64V200a16,16,0,0,1,16-16h16a16,16,0,0,1,16,16v64h64a16,16,0,0,1,16,16Z"}}]})(e)}function ji(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(e)}function jC_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M370.72 133.28C339.458 104.008 298.888 87.962 255.848 88c-77.458.068-144.328 53.178-162.791 126.85-1.344 5.363-6.122 9.15-11.651 9.15H24.103c-7.498 0-13.194-6.807-11.807-14.176C33.933 94.924 134.813 8 256 8c66.448 0 126.791 26.136 171.315 68.685L463.03 40.97C478.149 25.851 504 36.559 504 57.941V192c0 13.255-10.745 24-24 24H345.941c-21.382 0-32.09-25.851-16.971-40.971l41.75-41.749zM32 296h134.059c21.382 0 32.09 25.851 16.971 40.971l-41.75 41.75c31.262 29.273 71.835 45.319 114.876 45.28 77.418-.07 144.315-53.144 162.787-126.849 1.344-5.363 6.122-9.15 11.651-9.15h57.304c7.498 0 13.194 6.807 11.807 14.176C478.067 417.076 377.187 504 256 504c-66.448 0-126.791-26.136-171.315-68.685L48.97 471.03C33.851 486.149 8 475.441 8 454.059V320c0-13.255 10.745-24 24-24z"}}]})(e)}function Ni(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"}}]})(e)}function NC_(e){return Rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16zM53.2 467a48 48 0 0 0 47.9 45h245.8a48 48 0 0 0 47.9-45L416 128H32z"}}]})(e)}function PC_(e){return Rt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M610.5 341.3c2.6-14.1 2.6-28.5 0-42.6l25.8-14.9c3-1.7 4.3-5.2 3.3-8.5-6.7-21.6-18.2-41.2-33.2-57.4-2.3-2.5-6-3.1-9-1.4l-25.8 14.9c-10.9-9.3-23.4-16.5-36.9-21.3v-29.8c0-3.4-2.4-6.4-5.7-7.1-22.3-5-45-4.8-66.2 0-3.3.7-5.7 3.7-5.7 7.1v29.8c-13.5 4.8-26 12-36.9 21.3l-25.8-14.9c-2.9-1.7-6.7-1.1-9 1.4-15 16.2-26.5 35.8-33.2 57.4-1 3.3.4 6.8 3.3 8.5l25.8 14.9c-2.6 14.1-2.6 28.5 0 42.6l-25.8 14.9c-3 1.7-4.3 5.2-3.3 8.5 6.7 21.6 18.2 41.1 33.2 57.4 2.3 2.5 6 3.1 9 1.4l25.8-14.9c10.9 9.3 23.4 16.5 36.9 21.3v29.8c0 3.4 2.4 6.4 5.7 7.1 22.3 5 45 4.8 66.2 0 3.3-.7 5.7-3.7 5.7-7.1v-29.8c13.5-4.8 26-12 36.9-21.3l25.8 14.9c2.9 1.7 6.7 1.1 9-1.4 15-16.2 26.5-35.8 33.2-57.4 1-3.3-.4-6.8-3.3-8.5l-25.8-14.9zM496 368.5c-26.8 0-48.5-21.8-48.5-48.5s21.8-48.5 48.5-48.5 48.5 21.8 48.5 48.5-21.7 48.5-48.5 48.5zM96 224c35.3 0 64-28.7 64-64s-28.7-64-64-64-64 28.7-64 64 28.7 64 64 64zm224 32c1.9 0 3.7-.5 5.6-.6 8.3-21.7 20.5-42.1 36.3-59.2 7.4-8 17.9-12.6 28.9-12.6 6.9 0 13.7 1.8 19.6 5.3l7.9 4.6c.8-.5 1.6-.9 2.4-1.4 7-14.6 11.2-30.8 11.2-48 0-61.9-50.1-112-112-112S208 82.1 208 144c0 61.9 50.1 112 112 112zm105.2 194.5c-2.3-1.2-4.6-2.6-6.8-3.9-8.2 4.8-15.3 9.8-27.5 9.8-10.9 0-21.4-4.6-28.9-12.6-18.3-19.8-32.3-43.9-40.2-69.6-10.7-34.5 24.9-49.7 25.8-50.3-.1-2.6-.1-5.2 0-7.8l-7.9-4.6c-3.8-2.2-7-5-9.8-8.1-3.3.2-6.5.6-9.8.6-24.6 0-47.6-6-68.5-16h-8.3C179.6 288 128 339.6 128 403.2V432c0 26.5 21.5 48 48 48h255.4c-3.7-6-6.2-12.8-6.2-20.3v-9.2zM173.1 274.6C161.5 263.1 145.6 256 128 256H64c-35.3 0-64 28.7-64 64v32c0 17.7 14.3 32 32 32h65.9c6.3-47.4 34.9-87.3 75.2-109.4z"}}]})(e)}function qC_(e){return Rt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M402.3 344.9l32-32c5-5 13.7-1.5 13.7 5.7V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h273.5c7.1 0 10.7 8.6 5.7 13.7l-32 32c-1.5 1.5-3.5 2.3-5.7 2.3H48v352h352V350.5c0-2.1.8-4.1 2.3-5.6zm156.6-201.8L296.3 405.7l-90.4 10c-26.2 2.9-48.5-19.2-45.6-45.6l10-90.4L432.9 17.1c22.9-22.9 59.9-22.9 82.7 0l43.2 43.2c22.9 22.9 22.9 60 .1 82.8zM460.1 174L402 115.9 216.2 301.8l-7.3 65.3 65.3-7.3L460.1 174zm64.8-79.7l-43.2-43.2c-4.1-4.1-10.8-4.1-14.8 0L436 82l58.1 58.1 30.9-30.9c4-4.2 4-10.8-.1-14.9z"}}]})(e)}const RC_={fontWeight:500},LC_={height:38,backgroundColor:"#2eb85c",borderColor:"#2eb85c",display:"flex",alignItems:"center",justifyContent:"center",gap:4},Fs=({text:e,onClick:t})=>n.jsxs(w.Button,{onClick:t,style:LC_,className:"d-flex align-items-center",children:[n.jsx(ji,{}),n.jsx("span",{className:"ml-2",style:RC_,children:e})]}),Hs=({onClick:e,className:t})=>n.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:n.jsx(Ni,{className:t})}),ms=({label:e,onClick:t})=>n.jsx(w.Button,{className:"text-left py-0",color:"link",onClick:t,style:{textAlign:"left",textDecoration:"none"},children:e}),Q_=({label:e,className:t="",style:_={}})=>{const{t:o}=at.useTranslation();return n.jsx(w.Alert,{color:"primary",className:t,style:_,children:o("no_item_to_display",{item:e})})},G_=e=>{const{filters:t,changePage:_,totalRecordCount:o,changePageSize:s}=e,[c,u]=v.useState("");return v.useEffect(()=>{u(t.currentPage.toString())},[t.currentPage]),n.jsx(w.Row,{children:n.jsx(w.Col,{md:12,className:"d-flex justify-content-end",children:n.jsxs(w.Pagination,{children:[n.jsx("div",{className:"mr-1 pagination-dropdown",children:n.jsx(u_,{className:"text-center",value:t&&t.pageSize?{label:t.pageSize,value:t.pageSize}:ci,options:P3_,onChange:g=>s(g.value),styles:{menu:g=>({...g,zIndex:9999})},menuPosition:"fixed"})}),n.jsx(w.PaginationItem,{className:"mr-1",children:n.jsx(w.PaginationLink,{previous:!0,tag:"button",className:"h-100",disabled:t.currentPage<=1,onClick:()=>_(t.currentPage-1),children:"Prev"})}),n.jsx("input",{type:"text",id:"pageNumberInput",className:"page-input text-center pagination-input",onChange:g=>u(g.target.value),onKeyUp:g=>{(g.key==="Enter"||g.keyCode===13)&&_(parseInt(c))},value:c}),n.jsx(w.PaginationItem,{className:"ml-1",children:n.jsx(w.PaginationLink,{next:!0,tag:"button",className:"h-100",disabled:t.currentPage>o/t.pageSize,onClick:()=>_(t.currentPage+1),children:"Next"})})]})})})},Pi=Q.createAction("emailTemplate/setEmailTemplateList"),Vs=Q.createAction("mailCategories/setMailCategory"),MC_="/api/TinyMCEKey",gs=`${ft}/api/emailtemplate`,DC_=e=>ue.get(gs,{params:e}),BC_=e=>ue.get(`${gs}/${e}`),OC_=e=>ue.post(gs,e),GC_=e=>ue.put(`${gs}/${e.id}`,e),zC_=e=>ue.delete(`${gs}/${e}`),FC_=()=>ue.get(`${MC_}`),HC_=`${ft}/api/EmailTemplateCategory`,qi=()=>ue.get(HC_),Ws=()=>{const[e,t]=v.useState(Pn);return{filters:e,setFilters:t,changeFilters:o=>{const s={...e,...o};s.searchString&&o.searchString&&o.searchString!=e.searchString&&(s.currentPage=1),t(s)}}},VC_="/admin/email-template",WC_="/admin/create-email-template",UC_="Email template list",YC_=()=>{const e=Ct.useNavigate(),{t}=at.useTranslation(),_=Ee.useSelector(f=>f.emailTemplate.emailTemplateList),o=Ee.useSelector(f=>f.emailTemplate.totalItems),s=Ee.useSelector(f=>f.mailCategory.mailCategoryList),{filters:c,changeFilters:u}=Ws(),g=Ee.useDispatch(),d=v.useCallback(async()=>{g(ne(!0));try{const f=await DC_(c),{items:A,totalItems:T}=f.data;if(g(Pi({emailTemplateList:A,totalItems:T})),s&&s.length==0){const P=await qi();g(Vs(P.data.items))}}catch(f){g(J({type:"danger",message:f.response?.data?.title||f.message}))}g(ne(!1))},[g,c]),p=v.useCallback(f=>{g(ne(!0));try{g(Yt({isOpen:!0,type:"warning",message:t("do_you_want_to_remove_this_email_template"),onConfirm:async()=>{await zC_(f),g(J({type:"success",message:"Remove template successfully"})),u({currentPage:1})}}))}catch(A){g(J({type:"danger",message:A.response?.data?.title||A.message}))}g(ne(!1))},[c]),x=v.useCallback(f=>{const A=f?`${VC_}/${f}`:WC_;e(A)},[]);return v.useEffect(()=>{document.title=UC_},[]),v.useEffect(()=>{d()},[c]),{emailTemplateList:_,totalItems:o,filters:c,changeFilters:u,getData:d,removeData:p,goToDetail:x,mailCategoryList:s}},XC_="email_template",ZC_=()=>{const{emailTemplateList:e,totalItems:t,filters:_,changeFilters:o,removeData:s,goToDetail:c,mailCategoryList:u}=YC_(),{t:g}=at.useTranslation(),d=p=>{s(p)};return n.jsxs("div",{className:"fadeIn animated",children:[n.jsx("h5",{className:"mb-2",children:g(XC_)}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:4,children:n.jsx(Fs,{text:g("create_template"),onClick:()=>c()})}),n.jsxs(w.Col,{md:4,className:"d-flex align-items-center justify-content-end",children:[g("total_of_templates"),": ",t]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsxs(w.Col,{md:8,children:[e&&e.length>0?n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"align-top",children:g("template_name")}),n.jsx("th",{className:"align-top",children:g("category_name")}),n.jsx("th",{className:"align-top",children:g("created_date")}),n.jsx("th",{className:"text-center",children:g("action")})]})}),n.jsx("tbody",{children:e.map(p=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:n.jsx(ms,{label:p.subject,onClick:()=>c(p.id)})}),n.jsx("td",{className:"align-middle",children:p.category.name}),n.jsx("td",{className:"align-middle",children:v_.format(new Date(p.createdAt),li)}),n.jsx("td",{className:"text-center align-middle",children:n.jsx(Hs,{onClick:()=>d(p.id)})})]},p.id))})]}):n.jsx(Q_,{label:g("template")}),n.jsx(w.Row,{className:"mt-2",children:n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:_,totalRecordCount:t,changePageSize:p=>o({pageSize:p}),changePage:p=>o({currentPage:p})})})})]}),n.jsx(w.Col,{md:4,children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsx("tr",{children:n.jsx("th",{className:"align-top",children:g("category_name")})})}),n.jsx("tbody",{children:u.map(p=>n.jsx("tr",{children:n.jsx("td",{className:"align-middle",children:p.name})},p.id))})]})})]})]})},Co={width:"100%",position:"fixed",bottom:60,backgroundColor:"#fff",borderTop:"1px solid #ddd",padding:"18px 8px",zIndex:2},Hn=({confirmText:e,onConfirm:t,onCancel:_})=>{const{t:o}=at.useTranslation(),s=Ps<=767?Object.assign(Co,{bottom:0,magin:0}):{...Co};return n.jsx(w.Row,{form:!0,style:s,children:n.jsxs(w.Col,{md:12,style:{textAlign:Ps<=767?"right":"left",display:"flex",alignItems:"center",gap:"5px"},children:[n.jsx(w.Button,{color:"primary",size:"sm",className:"px-4 pl-1 mr-2 ml-3",onClick:t,children:e}),n.jsx(w.Button,{size:"sm",className:"px-4 mr-2 ml-2",onClick:_,children:o("cancel")})]})})},JC_=({onClick:e})=>n.jsx("div",{className:"d-inline text-center cursor-pointer hover-opacity",title:"Delete",onClick:e,children:n.jsx(ji,{})}),Io=[{label:"$USER_FIRST_NAME$",meaning:"user_first_name"},{label:"$USER_LAST_NAME$",meaning:"user_last_name"},{label:"$PASSWORD$",meaning:"password"},{label:"$USER_NAME$",meaning:"user_name"},{label:"$USER_EMAIL$",meaning:"user_email"},{label:"$MESSAGE$",meaning:"message"},{label:"$DOMAIN$",meaning:"domain"}],QC_=({onClick:e,isResetPasswordTemplate:t})=>{const{t:_}=at.useTranslation();let o=t?[...Io,{label:"$RESET_LINK$",meaning:"Reset link"}]:Io;return n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"align-top",children:_("params")}),n.jsx("th",{className:"align-top",children:_("meaning")}),n.jsx("th",{})]})}),n.jsx("tbody",{children:o.map(s=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:s.label}),n.jsx("td",{className:"align-middle",children:_(s.meaning)}),n.jsx("td",{className:"text-center align-middle",children:n.jsx(JC_,{onClick:()=>e(s)})})]},s.label))})]})},KC_=e=>{const t=Ee.useDispatch(),_=Ee.useSelector(g=>g.mailCategory.mailCategoryList);v.useEffect(()=>{o()},[]);const o=async()=>{try{const g=await qi();t(Vs(g.data.items))}catch(g){console.error(g)}},{id:s}=e,c=_.map(g=>({id:g.id,value:g.id,label:g.name})),u=s&&c.find(g=>g.value===s)||null;return n.jsx(u_,{options:c,value:u,...e})},eI_=({text:e,className:t})=>n.jsxs(w.Label,{className:t,children:[e,n.jsx("span",{className:"ml-2 text-danger",children:"*"})]}),zt=v.memo(eI_),So="You have some changes. Click OK to discard or click Cancel to continue edit, then click Update below to save your changes.";function Us({when:e}){return Ct.useBeforeUnload(v.useCallback(t=>{if(e)return t.preventDefault(),t.returnValue=So,So},[e])),null}const Ao=({label:e,onRemove:t})=>n.jsxs(v.Fragment,{children:[n.jsx("span",{className:"mr-2",children:e}),n.jsx("i",{className:"fa fa-times text-danger cursor-pointer hover-opacity",onClick:t})]}),Kt=`${ft}/api/file`,tI_=`${Kt}/system/profile`,_I_=`${Kt}/system/student-badge`,sI_=`${Kt}/system/certificate`,nI_=`${Kt}/system/email-attachment`,oI_=`${Kt}/system/question`,aI_=`${Kt}/system/answer`,iI_=`${Kt}/system/tutorial`,rI_=`${Kt}/custom-key`,cI_=`${Kt}/delete-file`,lI_=`${Kt}/delete-folder`,dI_=`${Kt}/create-folder`,uI_=`${Kt}/rename-file`,hI_=e=>Ot.post(Kt,e),mI_=e=>Ot.post(_I_,e),gI_=e=>Ot.post(sI_,e),pI_=e=>Ot.post(tI_,e),Ri=e=>Ot.post(nI_,e),yI_=e=>Ot.post(oI_,e),fI_=e=>Ot.post(aI_,e),Eo=e=>Ot.post(iI_,e),Li=e=>Ot.post(rI_,e),wI_=e=>ue.delete(`${cI_}?key=${e}`),vI_=e=>ue.delete(`${lI_}?key=${e}`),bI_=(e,t)=>ue.post(dI_,{prefix:e||"",folderName:t}),$I_=(e,t)=>ue.post(uI_,{key:e,name:t}),Ys={height:500,menubar:!1,force_br_newlines:!0,force_p_newlines:!1,branding:!1,convert_urls:!1,plugins:`advlist autolink lists link image charmap print preview anchor
|
|
6
6
|
searchreplace visualblocks code fullscreen
|
|
7
7
|
insertdatetime media table paste code help wordcount media`,toolbar:"undo redo | formatselect | bold italic backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | image",paste_data_images:!0},kI_={...Ys,images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:o}=await Ri(_);t(o_(o.key))}catch{return}}},xI_={...Ys,images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:o}=await yI_(_);t(o_(o.key))}catch{return}}},CI_={...Ys,height:Ln,images_upload_handler:async function(e,t){const _=new FormData;_.append("file",e.blob(),e.filename());try{const{data:o}=await fI_(_);t(o_(o.key))}catch{return}}},II_={...Ys,height:Ln,media_live_embeds:!0,plugins:`advlist autolink lists link image charmap print preview anchor
|
|
8
8
|
searchreplace visualblocks code fullscreen
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
`;const g=c.map(d=>{const p=d.dateOfBirth!==Rn?v_.differenceInCalendarYears(new Date,v_.parseISO(d.dateOfBirth)):"";return`${s(d.firstName)},${s(d.lastName)},${s(d.email)},${s(d.phoneNumber)},${p},${s(d.grade)},${s(d.roles.join(", ").replace("SecondaryTeacher","SupportTeacher"))},${d.isActive?"Active":"Inactive"},${ys(d?.createTime,"yyyy-MM-dd HH:mm")},${s(d.sourcedId)},${s(d.rosterUser?.status)},${s(d.rosterUser?.familyName)},${s(d.rosterUser?.middleName)},${s(d.rosterUser?.givenName)},${s(d.rosterUser?.email)},${s(d.rosterUser?.role)},${s(d.rosterUser?.grades)},${s(d.teachers)},${s(d.assistants)},${s(d.counselors)},${s(d.supportTeachers)},${s(d.eduTeachers)}`}).join(`
|
|
11
11
|
`);return`${jS_}${u}${encodeURIComponent(g)}`},s=c=>c?`"${c.replace(/"/g,'""').replaceAll(/\n/g," ")}"`:"";return{exportUsers:_}},Zi=`${ft}/api/ImportCsv/csv`,Zs=`${ft}/api/Teacher`,lA_=(e,t)=>Ot.post(`${Zi}/${t}`,e),Mo=e=>Ot.post(`${Zi}/importClassReflection`,e),dA_=(e,t)=>Ot.post(`${Zs}/adminImportStudentByTeacherId/${e}`,t),uA_=e=>Ot.post(`${Zs}/adminImport`,e),hA_=()=>ue.get(`${Zs}/download-template-file-user`),mA_=(e,t)=>Ot.post(`${Zs}/validate-csv-template-student/${t}`,e);var Ji=(e=>(e.Students="students",e.Subjects="subjects",e.Grades="grades",e.Attendances="attendances",e.ClassReflection="classReflection",e.Others="others",e.AllUser="allUser",e))(Ji||{});const rn="csvupload",Do={teacherName:"",teacherEmail:"",studentIds:[],file:""},gA_=()=>{const e=Ee.useDispatch(),t=Ee.useSelector(G=>G.common.isLoading),[_,o]=v.useState(null),[s,c]=v.useState(),[u,g]=v.useState([]),[d,p]=v.useState(Do),[x,f]=v.useState(),A=window.location.hostname,T=A.includes("isb")||A.includes("stage"),[P,E]=v.useState(0),[k,C]=v.useState(""),N=async()=>{e(ne(!0));try{const q=await hA_();var G=new Blob([q.data.content],{type:"text/csv"});const K=window.URL.createObjectURL(G);var H=document.createElement("a");H.href=K,H.setAttribute("download",q.data.nameFile),H.click(),e(J({type:"success",message:"Download successfully"}))}catch(q){e(J({type:"danger",message:q.message}))}e(ne(!1))},L=v.useCallback(async G=>{if(!_||!G)return;e(ne(!0));try{const ee=new FormData;if(ee.append("file",G,G.name),_=="allUser"){let Ne=(await G.text()).trim();const et=Ne.split(`
|
|
12
12
|
`).map(Pe=>Pe.trim()),De=et.findIndex(Pe=>Pe.split(",").includes("FirstName"));if(De===0)throw new Error("Invalid CSV: Missing header row.");Ne=et.slice(De).join(`
|
|
13
|
-
`);const le=bn.parse(Ne,{header:!0,skipEmptyLines:!0}),Ue=le.meta.fields,re=le.data;if(!Ue)throw new Error("Unable to determine header from CSV file");const ge=20,Te=[];for(let Pe=0;Pe<re.length;Pe+=ge){const Fe=re.slice(Pe,Pe+ge),ht=bn.unparse({fields:Ue,data:Fe});Te.push(ht)}for(let Pe=0;Pe<Te.length;Pe++){const Fe=new Blob([Te[Pe]],{type:"text/csv"}),ht=new FormData;ht.append("file",Fe,`students_chunk${Pe+1}.csv`),await uA_(ht)}}else T?_=="classReflection"&&await Mo(ee):await lA_(ee,_.toString());e(J({type:"success",message:"Import CSV successfully"}))}catch(ee){e(J({type:"danger",message:ee.response?.data?.title||ee.message}))}e(ne(!1));const H=document.getElementById(rn),q=document.getElementById("import-student"),K=document.getElementById("import-classReflection");H&&(H.value=""),q&&(q.value=""),K&&(K.value="")},[_]),D=async G=>{if(!P){e(J({type:"danger",message:"Select teacher before import csv"}));return}if(!_||!G)return;e(ne(!0));try{const q=new FormData;q.append("file",G,G.name),await dA_(P,q),e(J({type:"success",message:"Import CSV successfully"}))}catch(q){e(J({type:"danger",message:q.response?.data?.title||q.message}))}e(ne(!1));const H=document.getElementById("teacherSelector");H&&(H.value="")},O=async G=>{if(!s||!s)return;e(ne(!0));try{const q=new FormData;q.append("file",s,s.name),q.append("teacherName",G.teacherName),q.append("teacherEmail",G.teacherEmail),G.studentIds.forEach(K=>{q.append("studentIds",K)}),await Mo(q),e(J({type:"success",message:"Import CSV successfully"})),p(Do)}catch(q){e(J({type:"danger",message:q.response?.data?.title||q.message}))}e(ne(!1));const H=document.getElementById(rn);H&&(H.value="")},R=G=>{E(G.value)},W=G=>{f(G),C(G?.name||"")},F=()=>{if(!x){e(J({type:"danger",message:"Select CSV to import"}));return}D(x)};return{isLoading:t,id:rn,setType:o,upload:L,initImportReflection:d,setInitImportReflection:p,onConfirm:O,CSVType:Ji,dataFile:s,setDataFile:c,setArrStudent:g,arrStudent:u,isCheckDomainIBS:T,onChangeTeacher:R,uploadByTeacherId:D,setDataFileImportStudent:W,onUpLoadStudentFile:F,defaultTeacher:P,fileName:k,onStudentSubmit:()=>{e(Yt({isOpen:!0,type:"warning",message:"Are you sure upload this file?",onConfirm:()=>{F()}}))},downloadTemplateUser:N}},pA_=()=>{const e=Ee.useDispatch(),t=async s=>{e(ne(!0));try{await xS_(s),e(J({type:"success",message:"Send Successfully"}))}catch(c){e(J({type:"danger",message:c.response?.data?.title||c.message}))}e(ne(!1))};return{handleSendMultiUsers:s=>{t({userIds:[...s]})},handleSendSingleUser:s=>{t({userIds:[s]})}}},Bo={fontWeight:500},Oo={height:38,backgroundColor:"#2eb85c",borderColor:"#2eb85c"},yA_="user",Qi=()=>{const{queryName:e,userList:t,totalItems:_,filters:o,fullName:s,removeData:c,changeFilters:u,reDirectDetailPage:g,switchUser:d,handleSyncRosterUsers:p,rosterUserInfo:x,onSelectUser:f,userIds:A,onSelectAllUser:T}=FS_(),{handleSendMultiUsers:P}=pA_(),{upload:E}=gA_(),{exportUsers:k}=cA_(),{t:C}=at.useTranslation(),N=()=>k(o),L=[{name:"",isCenter:!0,onSelectAll:()=>{T()},isCheckAll:A.length==_&&_!=0}].concat(SS_);return n.jsxs("div",{className:`fadeIn animated h-100 ${Ps<=767?V["p-0-12"]:""}`,children:[n.jsx("h5",{className:"mt-4 mb-2",children:C(`${yA_}`)}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:8,children:n.jsx(Wi,{text:C("create_user"),onClick:()=>g(),initValue:e||"",onSearch:D=>u({searchString:D}),placeholder:C("type_something_to_search_by_user_name")})}),n.jsxs(w.Col,{md:4,className:"d-flex justify-content-end align-items-center",children:[C("total_of_users")," : ",_]}),n.jsxs(w.Col,{md:12,className:"d-flex justify-content-end my-2",style:{gap:"8px"},children:[n.jsx("button",{className:"btn btn-success d-flex align-items-center border-0",style:Oo,onClick:()=>P(A),children:n.jsx("p",{className:`${V["button-content"]} mb-0`,style:Bo,children:C("welcome_email_resend")})}),n.jsx(w.Input,{id:"import-user",className:"d-none",type:"file",onChange:D=>E(D.target.files[0]),accept:"text/csv"}),n.jsx(KS_,{text:C("sync_roster_users"),onClick:p}),n.jsxs("button",{className:"btn btn-success d-flex align-items-center border-0 p-0",style:Oo,onClick:N,children:[n.jsx("div",{className:`${V["button-icon"]}`,children:n.jsx("img",{src:"images/export-icon.svg",alt:""})}),n.jsx("p",{className:`${V["button-content"]} mb-0`,style:Bo,children:C("export_to_csv")})]})]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:12,children:n.jsx("div",{style:{overflow:"auto"},children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,size:"sm",children:[n.jsx("thead",{children:n.jsx(Xi,{headers:L,filters:o,fullName:s,onChangeFilters:u})}),n.jsxs("tbody",{children:[t&&t.length>0&&t.map(D=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:n.jsx("input",{type:"checkbox",onChange:()=>f(D.id),checked:A.includes(D.id)??!1})}),n.jsx("td",{className:"align-middle",children:n.jsx(ms,{label:`${D.fullName}`,onClick:()=>g(D.id)})}),n.jsx("td",{className:"align-middle",children:D.email}),n.jsx("td",{className:"align-middle",children:D.dateOfBirth!==Rn&&XI_(new Date,new Date(D.dateOfBirth))}),n.jsx("td",{className:"align-middle",children:!!D.roles&&D.roles.map(O=>O==="SecondaryTeacher"?"SupportTeacher":O).join(", ")}),n.jsx("td",{className:"align-middle",children:D.isActive?C("active"):C("inactive")}),n.jsx("td",{className:"align-middle",children:ys(D?.createTime,"yyyy-MM-dd HH:mm")}),n.jsx("td",{children:x(D)}),n.jsx("td",{className:"align-middle",children:n.jsx(PC_,{style:{fontSize:"18px",margin:"0 10px",cursor:"pointer"},onClick:()=>d(D.id)})}),n.jsx("td",{className:"align-middle",style:{padding:"0 15px"},children:n.jsx(Hs,{onClick:()=>c(D.id)})})]},D.id)),(!t||!t.length)&&n.jsx("tr",{children:n.jsx("td",{colSpan:12,className:"p-0",children:n.jsx(Q_,{className:"mb-0",label:C("user")})})})]})]})})}),n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:o,totalRecordCount:_,changePageSize:D=>u({pageSize:D}),changePage:D=>u({currentPage:D})})})]})]})},Ki=e=>{const{t}=at.useTranslation(),_=Ct.useNavigate(),o=Ct.useLocation(),s=Ee.useSelector(x=>x.common.language),{pathname:c}=o,{tabs:u,title:g}=e,d=x=>{_(x)};v.useEffect(()=>{jn.changeLanguage(s)},[s]);const p=()=>u.map(f=>f.path).indexOf(c)===-1?n.jsx(Fn,{}):n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:12,children:n.jsx("h5",{children:t(g)})}),n.jsxs(w.Col,{xl:12,children:[n.jsx(w.Nav,{tabs:!0,children:u.map(f=>n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${f.path===c?"active":""} cursor-pointer`,onClick:()=>{d(f.path)},style:{color:f.path===c?"#316CD9":"#242424"},children:t(f.title)})},f.path))}),n.jsx(w.TabContent,{activeTab:c,className:"border-bottom-0 border-left-0 border-right-0",children:u.map(f=>n.jsx(w.TabPane,{tabId:f.path,children:f.path===c&&n.jsx(f.component,{})},f.path))})]})]});return n.jsx("div",{className:"animated fadeIn",children:p()})};function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var _=arguments[t];for(var o in _)({}).hasOwnProperty.call(_,o)&&(e[o]=_[o])}return e},Oe.apply(null,arguments)}function fA_(e,t){if(N_(e)!="object"||!e)return e;var _=e[Symbol.toPrimitive];if(_!==void 0){var o=_.call(e,t);if(N_(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function er(e){var t=fA_(e,"string");return N_(t)=="symbol"?t:t+""}function rs(e,t,_){return(t=er(t))in e?Object.defineProperty(e,t,{value:_,enumerable:!0,configurable:!0,writable:!0}):e[t]=_,e}function Go(e,t){var _=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),_.push.apply(_,o)}return _}function Le(e){for(var t=1;t<arguments.length;t++){var _=arguments[t]!=null?arguments[t]:{};t%2?Go(Object(_),!0).forEach(function(o){rs(e,o,_[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(_)):Go(Object(_)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(_,o))})}return e}function wA_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zo(e,t){for(var _=0;_<t.length;_++){var o=t[_];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,er(o.key),o)}}function vA_(e,t,_){return t&&zo(e.prototype,t),_&&zo(e,_),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,o){return _.__proto__=o,_},Cn(e,t)}function bA_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cn(e,t)}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qs(e)}function tr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tr=function(){return!!e})()}function $A_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kA_(e,t){if(t&&(N_(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $A_(e)}function xA_(e){var t=tr();return function(){var _,o=qs(e);if(t){var s=qs(this).constructor;_=Reflect.construct(o,arguments,s)}else _=o.apply(this,arguments);return kA_(this,_)}}function In(e,t){(t==null||t>e.length)&&(t=e.length);for(var _=0,o=Array(t);_<t;_++)o[_]=e[_];return o}function CA_(e){if(Array.isArray(e))return In(e)}function IA_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _r(e,t){if(e){if(typeof e=="string")return In(e,t);var _={}.toString.call(e).slice(8,-1);return _==="Object"&&e.constructor&&(_=e.constructor.name),_==="Map"||_==="Set"?Array.from(e):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?In(e,t):void 0}}function SA_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
`);const le=bn.parse(Ne,{header:!0,skipEmptyLines:!0}),Ue=le.meta.fields,ie=le.data;if(!Ue)throw new Error("Unable to determine header from CSV file");const ge=20,Te=[];for(let Pe=0;Pe<ie.length;Pe+=ge){const Fe=ie.slice(Pe,Pe+ge),ht=bn.unparse({fields:Ue,data:Fe});Te.push(ht)}for(let Pe=0;Pe<Te.length;Pe++){const Fe=new Blob([Te[Pe]],{type:"text/csv"}),ht=new FormData;ht.append("file",Fe,`students_chunk${Pe+1}.csv`),await uA_(ht)}}else T?_=="classReflection"&&await Mo(ee):await lA_(ee,_.toString());e(J({type:"success",message:"Import CSV successfully"}))}catch(ee){e(J({type:"danger",message:ee.response?.data?.title||ee.message}))}e(ne(!1));const H=document.getElementById(rn),q=document.getElementById("import-student"),K=document.getElementById("import-classReflection");H&&(H.value=""),q&&(q.value=""),K&&(K.value="")},[_]),D=async G=>{if(!P){e(J({type:"danger",message:"Select teacher before import csv"}));return}if(!_||!G)return;e(ne(!0));try{const q=new FormData;q.append("file",G,G.name),await dA_(P,q),e(J({type:"success",message:"Import CSV successfully"}))}catch(q){e(J({type:"danger",message:q.response?.data?.title||q.message}))}e(ne(!1));const H=document.getElementById("teacherSelector");H&&(H.value="")},O=async G=>{if(!s||!s)return;e(ne(!0));try{const q=new FormData;q.append("file",s,s.name),q.append("teacherName",G.teacherName),q.append("teacherEmail",G.teacherEmail),G.studentIds.forEach(K=>{q.append("studentIds",K)}),await Mo(q),e(J({type:"success",message:"Import CSV successfully"})),p(Do)}catch(q){e(J({type:"danger",message:q.response?.data?.title||q.message}))}e(ne(!1));const H=document.getElementById(rn);H&&(H.value="")},R=G=>{E(G.value)},W=G=>{f(G),C(G?.name||"")},F=()=>{if(!x){e(J({type:"danger",message:"Select CSV to import"}));return}D(x)};return{isLoading:t,id:rn,setType:o,upload:L,initImportReflection:d,setInitImportReflection:p,onConfirm:O,CSVType:Ji,dataFile:s,setDataFile:c,setArrStudent:g,arrStudent:u,isCheckDomainIBS:T,onChangeTeacher:R,uploadByTeacherId:D,setDataFileImportStudent:W,onUpLoadStudentFile:F,defaultTeacher:P,fileName:k,onStudentSubmit:()=>{e(Yt({isOpen:!0,type:"warning",message:"Are you sure upload this file?",onConfirm:()=>{F()}}))},downloadTemplateUser:N}},pA_=()=>{const e=Ee.useDispatch(),t=async s=>{e(ne(!0));try{await xS_(s),e(J({type:"success",message:"Send Successfully"}))}catch(c){e(J({type:"danger",message:c.response?.data?.title||c.message}))}e(ne(!1))};return{handleSendMultiUsers:s=>{t({userIds:[...s]})},handleSendSingleUser:s=>{t({userIds:[s]})}}},Bo={fontWeight:500},Oo={height:38,backgroundColor:"#2eb85c",borderColor:"#2eb85c"},yA_="user",Qi=()=>{const{queryName:e,userList:t,totalItems:_,filters:o,fullName:s,removeData:c,changeFilters:u,reDirectDetailPage:g,switchUser:d,handleSyncRosterUsers:p,rosterUserInfo:x,onSelectUser:f,userIds:A,onSelectAllUser:T}=FS_(),{handleSendMultiUsers:P}=pA_(),{upload:E}=gA_(),{exportUsers:k}=cA_(),{t:C}=at.useTranslation(),N=()=>k(o),L=[{name:"",isCenter:!0,onSelectAll:()=>{T()},isCheckAll:A.length==_&&_!=0}].concat(SS_);return n.jsxs("div",{className:`fadeIn animated h-100 ${Ps<=767?V["p-0-12"]:""}`,children:[n.jsx("h5",{className:"mt-4 mb-2",children:C(`${yA_}`)}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:8,children:n.jsx(Wi,{text:C("create_user"),onClick:()=>g(),initValue:e||"",onSearch:D=>u({searchString:D}),placeholder:C("type_something_to_search_by_user_name")})}),n.jsxs(w.Col,{md:4,className:"d-flex justify-content-end align-items-center",children:[C("total_of_users")," : ",_]}),n.jsxs(w.Col,{md:12,className:"d-flex justify-content-end my-2",style:{gap:"8px"},children:[n.jsx("button",{className:"btn btn-success d-flex align-items-center border-0",style:Oo,onClick:()=>P(A),children:n.jsx("p",{className:`${V["button-content"]} mb-0`,style:Bo,children:C("welcome_email_resend")})}),n.jsx(w.Input,{id:"import-user",className:"d-none",type:"file",onChange:D=>E(D.target.files[0]),accept:"text/csv"}),n.jsx(KS_,{text:C("sync_roster_users"),onClick:p}),n.jsxs("button",{className:"btn btn-success d-flex align-items-center border-0 p-0",style:Oo,onClick:N,children:[n.jsx("div",{className:`${V["button-icon"]}`,children:n.jsx("img",{src:"images/export-icon.svg",alt:""})}),n.jsx("p",{className:`${V["button-content"]} mb-0`,style:Bo,children:C("export_to_csv")})]})]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:12,children:n.jsx("div",{style:{overflow:"auto"},children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,size:"sm",children:[n.jsx("thead",{children:n.jsx(Xi,{headers:L,filters:o,fullName:s,onChangeFilters:u})}),n.jsxs("tbody",{children:[t&&t.length>0&&t.map(D=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:n.jsx("input",{type:"checkbox",onChange:()=>f(D.id),checked:A.includes(D.id)??!1})}),n.jsx("td",{className:"align-middle",children:n.jsx(ms,{label:`${D.fullName}`,onClick:()=>g(D.id)})}),n.jsx("td",{className:"align-middle",children:D.email}),n.jsx("td",{className:"align-middle",children:D.dateOfBirth!==Rn&&XI_(new Date,new Date(D.dateOfBirth))}),n.jsx("td",{className:"align-middle",children:!!D.roles&&D.roles.map(O=>O==="SecondaryTeacher"?"SupportTeacher":O).join(", ")}),n.jsx("td",{className:"align-middle",children:D.isActive?C("active"):C("inactive")}),n.jsx("td",{className:"align-middle",children:ys(D?.createTime,"yyyy-MM-dd HH:mm")}),n.jsx("td",{children:x(D)}),n.jsx("td",{className:"align-middle",children:n.jsx(PC_,{style:{fontSize:"18px",margin:"0 10px",cursor:"pointer"},onClick:()=>d(D.id)})}),n.jsx("td",{className:"align-middle",style:{padding:"0 15px"},children:n.jsx(Hs,{onClick:()=>c(D.id)})})]},D.id)),(!t||!t.length)&&n.jsx("tr",{children:n.jsx("td",{colSpan:12,className:"p-0",children:n.jsx(Q_,{className:"mb-0",label:C("user")})})})]})]})})}),n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:o,totalRecordCount:_,changePageSize:D=>u({pageSize:D}),changePage:D=>u({currentPage:D})})})]})]})},Ki=e=>{const{t}=at.useTranslation(),_=Ct.useNavigate(),o=Ct.useLocation(),s=Ee.useSelector(x=>x.common.language),{pathname:c}=o,{tabs:u,title:g}=e,d=x=>{_(x)};v.useEffect(()=>{jn.changeLanguage(s)},[s]);const p=()=>u.map(f=>f.path).indexOf(c)===-1?n.jsx(Fn,{}):n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:12,children:n.jsx("h5",{children:t(g)})}),n.jsxs(w.Col,{xl:12,children:[n.jsx(w.Nav,{tabs:!0,children:u.map(f=>n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${f.path===c?"active":""} cursor-pointer`,onClick:()=>{d(f.path)},style:{color:f.path===c?"#316CD9":"#242424"},children:t(f.title)})},f.path))}),n.jsx(w.TabContent,{activeTab:c,className:"border-bottom-0 border-left-0 border-right-0",children:u.map(f=>n.jsx(w.TabPane,{tabId:f.path,children:f.path===c&&n.jsx(f.component,{})},f.path))})]})]});return n.jsx("div",{className:"animated fadeIn",children:p()})};function Oe(){return Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var _=arguments[t];for(var o in _)({}).hasOwnProperty.call(_,o)&&(e[o]=_[o])}return e},Oe.apply(null,arguments)}function fA_(e,t){if(N_(e)!="object"||!e)return e;var _=e[Symbol.toPrimitive];if(_!==void 0){var o=_.call(e,t);if(N_(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function er(e){var t=fA_(e,"string");return N_(t)=="symbol"?t:t+""}function rs(e,t,_){return(t=er(t))in e?Object.defineProperty(e,t,{value:_,enumerable:!0,configurable:!0,writable:!0}):e[t]=_,e}function Go(e,t){var _=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),_.push.apply(_,o)}return _}function Le(e){for(var t=1;t<arguments.length;t++){var _=arguments[t]!=null?arguments[t]:{};t%2?Go(Object(_),!0).forEach(function(o){rs(e,o,_[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(_)):Go(Object(_)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(_,o))})}return e}function wA_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zo(e,t){for(var _=0;_<t.length;_++){var o=t[_];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,er(o.key),o)}}function vA_(e,t,_){return t&&zo(e.prototype,t),_&&zo(e,_),Object.defineProperty(e,"prototype",{writable:!1}),e}function Cn(e,t){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(_,o){return _.__proto__=o,_},Cn(e,t)}function bA_(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cn(e,t)}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qs(e)}function tr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tr=function(){return!!e})()}function $A_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kA_(e,t){if(t&&(N_(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $A_(e)}function xA_(e){var t=tr();return function(){var _,o=qs(e);if(t){var s=qs(this).constructor;_=Reflect.construct(o,arguments,s)}else _=o.apply(this,arguments);return kA_(this,_)}}function In(e,t){(t==null||t>e.length)&&(t=e.length);for(var _=0,o=Array(t);_<t;_++)o[_]=e[_];return o}function CA_(e){if(Array.isArray(e))return In(e)}function IA_(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _r(e,t){if(e){if(typeof e=="string")return In(e,t);var _={}.toString.call(e).slice(8,-1);return _==="Object"&&e.constructor&&(_=e.constructor.name),_==="Map"||_==="Set"?Array.from(e):_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_)?In(e,t):void 0}}function SA_(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
14
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X_(e){return CA_(e)||IA_(e)||_r(e)||SA_()}function AA_(e){if(Array.isArray(e))return e}function EA_(e,t){var _=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(_!=null){var o,s,c,u,g=[],d=!0,p=!1;try{if(c=(_=_.call(e)).next,t===0){if(Object(_)!==_)return;d=!1}else for(;!(d=(o=c.call(_)).done)&&(g.push(o.value),g.length!==t);d=!0);}catch(x){p=!0,s=x}finally{try{if(!d&&_.return!=null&&(u=_.return(),Object(u)!==u))return}finally{if(p)throw s}}return g}}function TA_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
15
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b_(e,t){return AA_(e)||EA_(e,t)||_r(e,t)||TA_()}function jA_(e,t){if(e==null)return{};var _={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;_[o]=e[o]}return _}function m_(e,t){if(e==null)return{};var _,o,s=jA_(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)_=c[o],t.indexOf(_)===-1&&{}.propertyIsEnumerable.call(e,_)&&(s[_]=e[_])}return s}function NA_(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const PA_=Math.min,qA_=Math.max,Rs=Math.round,Cs=Math.floor,Ls=e=>({x:e,y:e});function RA_(e){const{x:t,y:_,width:o,height:s}=e;return{width:o,height:s,top:_,left:t,right:t+o,bottom:_+s,x:t,y:_}}function Js(){return typeof window<"u"}function sr(e){return or(e)?(e.nodeName||"").toLowerCase():"#document"}function $_(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nr(e){var t;return(t=(or(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function or(e){return Js()?e instanceof Node||e instanceof $_(e).Node:!1}function LA_(e){return Js()?e instanceof Element||e instanceof $_(e).Element:!1}function Un(e){return Js()?e instanceof HTMLElement||e instanceof $_(e).HTMLElement:!1}function Fo(e){return!Js()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $_(e).ShadowRoot}const MA_=new Set(["inline","contents"]);function ar(e){const{overflow:t,overflowX:_,overflowY:o,display:s}=Yn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+_)&&!MA_.has(s)}function DA_(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const BA_=new Set(["html","body","#document"]);function OA_(e){return BA_.has(sr(e))}function Yn(e){return $_(e).getComputedStyle(e)}function GA_(e){if(sr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fo(e)&&e.host||nr(e);return Fo(t)?t.host:t}function ir(e){const t=GA_(e);return OA_(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&ar(t)?t:ir(t)}function Ms(e,t,_){var o;t===void 0&&(t=[]),_===void 0&&(_=!0);const s=ir(e),c=s===((o=e.ownerDocument)==null?void 0:o.body),u=$_(s);if(c){const g=Sn(u);return t.concat(u,u.visualViewport||[],ar(s)?s:[],g&&_?Ms(g):[])}return t.concat(s,Ms(s,[],_))}function Sn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function zA_(e){const t=Yn(e);let _=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=Un(e),c=s?e.offsetWidth:_,u=s?e.offsetHeight:o,g=Rs(_)!==c||Rs(o)!==u;return g&&(_=c,o=u),{width:_,height:o,$:g}}function Xn(e){return LA_(e)?e:e.contextElement}function Ho(e){const t=Xn(e);if(!Un(t))return Ls(1);const _=t.getBoundingClientRect(),{width:o,height:s,$:c}=zA_(t);let u=(c?Rs(_.width):_.width)/o,g=(c?Rs(_.height):_.height)/s;return(!u||!Number.isFinite(u))&&(u=1),(!g||!Number.isFinite(g))&&(g=1),{x:u,y:g}}const FA_=Ls(0);function HA_(e){const t=$_(e);return!DA_()||!t.visualViewport?FA_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VA_(e,t,_){return!1}function Vo(e,t,_,o){t===void 0&&(t=!1);const s=e.getBoundingClientRect(),c=Xn(e);let u=Ls(1);t&&(u=Ho(e));const g=VA_()?HA_(c):Ls(0);let d=(s.left+g.x)/u.x,p=(s.top+g.y)/u.y,x=s.width/u.x,f=s.height/u.y;if(c){const A=$_(c),T=o;let P=A,E=Sn(P);for(;E&&o&&T!==P;){const k=Ho(E),C=E.getBoundingClientRect(),N=Yn(E),L=C.left+(E.clientLeft+parseFloat(N.paddingLeft))*k.x,D=C.top+(E.clientTop+parseFloat(N.paddingTop))*k.y;d*=k.x,p*=k.y,x*=k.x,f*=k.y,d+=L,p+=D,P=$_(E),E=Sn(P)}}return RA_({width:x,height:f,x:d,y:p})}function rr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function WA_(e,t){let _=null,o;const s=nr(e);function c(){var g;clearTimeout(o),(g=_)==null||g.disconnect(),_=null}function u(g,d){g===void 0&&(g=!1),d===void 0&&(d=1),c();const p=e.getBoundingClientRect(),{left:x,top:f,width:A,height:T}=p;if(g||t(),!A||!T)return;const P=Cs(f),E=Cs(s.clientWidth-(x+A)),k=Cs(s.clientHeight-(f+T)),C=Cs(x),L={rootMargin:-P+"px "+-E+"px "+-k+"px "+-C+"px",threshold:qA_(0,PA_(1,d))||1};let D=!0;function O(R){const W=R[0].intersectionRatio;if(W!==d){if(!D)return u();W?u(!1,W):o=setTimeout(()=>{u(!1,1e-7)},1e3)}W===1&&!rr(p,e.getBoundingClientRect())&&u(),D=!1}try{_=new IntersectionObserver(O,{...L,root:s.ownerDocument})}catch{_=new IntersectionObserver(O,L)}_.observe(e)}return u(!0),c}function UA_(e,t,_,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:g=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,p=Xn(e),x=s||c?[...p?Ms(p):[],...Ms(t)]:[];x.forEach(C=>{s&&C.addEventListener("scroll",_,{passive:!0}),c&&C.addEventListener("resize",_)});const f=p&&g?WA_(p,_):null;let A=-1,T=null;u&&(T=new ResizeObserver(C=>{let[N]=C;N&&N.target===p&&T&&(T.unobserve(t),cancelAnimationFrame(A),A=requestAnimationFrame(()=>{var L;(L=T)==null||L.observe(t)})),_()}),p&&!d&&T.observe(p),T.observe(t));let P,E=d?Vo(e):null;d&&k();function k(){const C=Vo(e);E&&!rr(E,C)&&_(),E=C,P=requestAnimationFrame(k)}return _(),()=>{var C;x.forEach(N=>{s&&N.removeEventListener("scroll",_),c&&N.removeEventListener("resize",_)}),f?.(),(C=T)==null||C.disconnect(),T=null,d&&cancelAnimationFrame(P)}}var An=v.useLayoutEffect,YA_=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ds=function(){};function XA_(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function ZA_(e,t){for(var _=arguments.length,o=new Array(_>2?_-2:0),s=2;s<_;s++)o[s-2]=arguments[s];var c=[].concat(o);if(t&&e)for(var u in t)t.hasOwnProperty(u)&&t[u]&&c.push("".concat(XA_(e,u)));return c.filter(function(g){return g}).map(function(g){return String(g).trim()}).join(" ")}var Bs=function(t){return oE_(t)?t.filter(Boolean):N_(t)==="object"&&t!==null?[t]:[]},cr=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var _=m_(t,YA_);return Le({},_)},Pt=function(t,_,o){var s=t.cx,c=t.getStyles,u=t.getClassNames,g=t.className;return{css:c(_,t),className:s(o??{},u(_,t),g)}};function Qs(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function JA_(e){return Qs(e)?window.innerHeight:e.clientHeight}function lr(e){return Qs(e)?window.pageYOffset:e.scrollTop}function Os(e,t){if(Qs(e)){window.scrollTo(0,t);return}e.scrollTop=t}function QA_(e){var t=getComputedStyle(e),_=t.position==="absolute",o=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var s=e;s=s.parentElement;)if(t=getComputedStyle(s),!(_&&t.position==="static")&&o.test(t.overflow+t.overflowY+t.overflowX))return s;return document.documentElement}function KA_(e,t,_,o){return _*((e=e/o-1)*e*e+1)+t}function Is(e,t){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Ds,s=lr(e),c=t-s,u=10,g=0;function d(){g+=u;var p=KA_(g,s,c,_);Os(e,p),g<_?window.requestAnimationFrame(d):o(e)}d()}function Wo(e,t){var _=e.getBoundingClientRect(),o=t.getBoundingClientRect(),s=t.offsetHeight/3;o.bottom+s>_.bottom?Os(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+s,e.scrollHeight)):o.top-s<_.top&&Os(e,Math.max(t.offsetTop-s,0))}function eE_(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Uo(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function tE_(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var dr=!1,_E_={get passive(){return dr=!0}},Ss=typeof window<"u"?window:{};Ss.addEventListener&&Ss.removeEventListener&&(Ss.addEventListener("p",Ds,_E_),Ss.removeEventListener("p",Ds,!1));var sE_=dr;function nE_(e){return e!=null}function oE_(e){return Array.isArray(e)}function cs(e,t,_){return e?t:_}var aE_=function(t){for(var _=arguments.length,o=new Array(_>1?_-1:0),s=1;s<_;s++)o[s-1]=arguments[s];var c=Object.entries(t).filter(function(u){var g=b_(u,1),d=g[0];return!o.includes(d)});return c.reduce(function(u,g){var d=b_(g,2),p=d[0],x=d[1];return u[p]=x,u},{})},iE_=["children","innerProps"],rE_=["children","innerProps"];function cE_(e){var t=e.maxHeight,_=e.menuEl,o=e.minHeight,s=e.placement,c=e.shouldScroll,u=e.isFixedPosition,g=e.controlHeight,d=QA_(_),p={placement:"bottom",maxHeight:t};if(!_||!_.offsetParent)return p;var x=d.getBoundingClientRect(),f=x.height,A=_.getBoundingClientRect(),T=A.bottom,P=A.height,E=A.top,k=_.offsetParent.getBoundingClientRect(),C=k.top,N=u?window.innerHeight:JA_(d),L=lr(d),D=parseInt(getComputedStyle(_).marginBottom,10),O=parseInt(getComputedStyle(_).marginTop,10),R=C-O,W=N-E,F=R+L,Z=f-L-E,G=T-N+L+D,H=L+E-O,q=160;switch(s){case"auto":case"bottom":if(W>=P)return{placement:"bottom",maxHeight:t};if(Z>=P&&!u)return c&&Is(d,G,q),{placement:"bottom",maxHeight:t};if(!u&&Z>=o||u&&W>=o){c&&Is(d,G,q);var K=u?W-D:Z-D;return{placement:"bottom",maxHeight:K}}if(s==="auto"||u){var ee=t,xe=u?R:F;return xe>=o&&(ee=Math.min(xe-D-g,t)),{placement:"top",maxHeight:ee}}if(s==="bottom")return c&&Os(d,G),{placement:"bottom",maxHeight:t};break;case"top":if(R>=P)return{placement:"top",maxHeight:t};if(F>=P&&!u)return c&&Is(d,H,q),{placement:"top",maxHeight:t};if(!u&&F>=o||u&&R>=o){var Ne=t;return(!u&&F>=o||u&&R>=o)&&(Ne=u?R-O:F-O),c&&Is(d,H,q),{placement:"top",maxHeight:Ne}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(s,'".'))}return p}function lE_(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var ur=function(t){return t==="auto"?"bottom":t},dE_=function(t,_){var o,s=t.placement,c=t.theme,u=c.borderRadius,g=c.spacing,d=c.colors;return Le((o={label:"menu"},rs(o,lE_(s),"100%"),rs(o,"position","absolute"),rs(o,"width","100%"),rs(o,"zIndex",1),o),_?{}:{backgroundColor:d.neutral0,borderRadius:u,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:g.menuGutter,marginTop:g.menuGutter})},hr=v.createContext(null),uE_=function(t){var _=t.children,o=t.minMenuHeight,s=t.maxMenuHeight,c=t.menuPlacement,u=t.menuPosition,g=t.menuShouldScrollIntoView,d=t.theme,p=v.useContext(hr)||{},x=p.setPortalPlacement,f=v.useRef(null),A=v.useState(s),T=b_(A,2),P=T[0],E=T[1],k=v.useState(null),C=b_(k,2),N=C[0],L=C[1],D=d.spacing.controlHeight;return An(function(){var O=f.current;if(O){var R=u==="fixed",W=g&&!R,F=cE_({maxHeight:s,menuEl:O,minHeight:o,placement:c,shouldScroll:W,isFixedPosition:R,controlHeight:D});E(F.maxHeight),L(F.placement),x?.(F.placement)}},[s,c,u,g,o,x,D]),_({ref:f,placerProps:Le(Le({},t),{},{placement:N||ur(c),maxHeight:P})})},hE_=function(t){var _=t.children,o=t.innerRef,s=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"menu",{menu:!0}),{ref:o},s),_)},mE_=hE_,gE_=function(t,_){var o=t.maxHeight,s=t.theme.spacing.baseUnit;return Le({maxHeight:o,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},_?{}:{paddingBottom:s,paddingTop:s})},pE_=function(t){var _=t.children,o=t.innerProps,s=t.innerRef,c=t.isMulti;return qe.jsx("div",Oe({},Pt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":c}),{ref:s},o),_)},mr=function(t,_){var o=t.theme,s=o.spacing.baseUnit,c=o.colors;return Le({textAlign:"center"},_?{}:{color:c.neutral40,padding:"".concat(s*2,"px ").concat(s*3,"px")})},yE_=mr,fE_=mr,wE_=function(t){var _=t.children,o=_===void 0?"No options":_,s=t.innerProps,c=m_(t,iE_);return qe.jsx("div",Oe({},Pt(Le(Le({},c),{},{children:o,innerProps:s}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),s),o)},vE_=function(t){var _=t.children,o=_===void 0?"Loading...":_,s=t.innerProps,c=m_(t,rE_);return qe.jsx("div",Oe({},Pt(Le(Le({},c),{},{children:o,innerProps:s}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),s),o)},bE_=function(t){var _=t.rect,o=t.offset,s=t.position;return{left:_.left,position:s,top:o,width:_.width,zIndex:1}},$E_=function(t){var _=t.appendTo,o=t.children,s=t.controlElement,c=t.innerProps,u=t.menuPlacement,g=t.menuPosition,d=v.useRef(null),p=v.useRef(null),x=v.useState(ur(u)),f=b_(x,2),A=f[0],T=f[1],P=v.useMemo(function(){return{setPortalPlacement:T}},[]),E=v.useState(null),k=b_(E,2),C=k[0],N=k[1],L=v.useCallback(function(){if(s){var W=eE_(s),F=g==="fixed"?0:window.pageYOffset,Z=W[A]+F;(Z!==C?.offset||W.left!==C?.rect.left||W.width!==C?.rect.width)&&N({offset:Z,rect:W})}},[s,g,A,C?.offset,C?.rect.left,C?.rect.width]);An(function(){L()},[L]);var D=v.useCallback(function(){typeof p.current=="function"&&(p.current(),p.current=null),s&&d.current&&(p.current=UA_(s,d.current,L,{elementResize:"ResizeObserver"in window}))},[s,L]);An(function(){D()},[D]);var O=v.useCallback(function(W){d.current=W,D()},[D]);if(!_&&g!=="fixed"||!C)return null;var R=qe.jsx("div",Oe({ref:O},Pt(Le(Le({},t),{},{offset:C.offset,position:g,rect:C.rect}),"menuPortal",{"menu-portal":!0}),c),o);return qe.jsx(hr.Provider,{value:P},_?ld.createPortal(R,_):R)},kE_=function(t){var _=t.isDisabled,o=t.isRtl;return{label:"container",direction:o?"rtl":void 0,pointerEvents:_?"none":void 0,position:"relative"}},xE_=function(t){var _=t.children,o=t.innerProps,s=t.isDisabled,c=t.isRtl;return qe.jsx("div",Oe({},Pt(t,"container",{"--is-disabled":s,"--is-rtl":c}),o),_)},CE_=function(t,_){var o=t.theme.spacing,s=t.isMulti,c=t.hasValue,u=t.selectProps.controlShouldRenderValue;return Le({alignItems:"center",display:s&&c&&u?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},_?{}:{padding:"".concat(o.baseUnit/2,"px ").concat(o.baseUnit*2,"px")})},IE_=function(t){var _=t.children,o=t.innerProps,s=t.isMulti,c=t.hasValue;return qe.jsx("div",Oe({},Pt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":s,"value-container--has-value":c}),o),_)},SE_=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},AE_=function(t){var _=t.children,o=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"indicatorsContainer",{indicators:!0}),o),_)},Yo,EE_=["size"],TE_=["innerProps","isRtl","size"];function jE_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var NE_=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:jE_},gr=function(t){var _=t.size,o=m_(t,EE_);return qe.jsx("svg",Oe({height:_,width:_,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:NE_},o))},Zn=function(t){return qe.jsx(gr,Oe({size:20},t),qe.jsx("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},pr=function(t){return qe.jsx(gr,Oe({size:20},t),qe.jsx("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},yr=function(t,_){var o=t.isFocused,s=t.theme,c=s.spacing.baseUnit,u=s.colors;return Le({label:"indicatorContainer",display:"flex",transition:"color 150ms"},_?{}:{color:o?u.neutral60:u.neutral20,padding:c*2,":hover":{color:o?u.neutral80:u.neutral40}})},PE_=yr,qE_=function(t){var _=t.children,o=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),o),_||qe.jsx(pr,null))},RE_=yr,LE_=function(t){var _=t.children,o=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),o),_||qe.jsx(Zn,null))},ME_=function(t,_){var o=t.isDisabled,s=t.theme,c=s.spacing.baseUnit,u=s.colors;return Le({label:"indicatorSeparator",alignSelf:"stretch",width:1},_?{}:{backgroundColor:o?u.neutral10:u.neutral20,marginBottom:c*2,marginTop:c*2})},DE_=function(t){var _=t.innerProps;return qe.jsx("span",Oe({},_,Pt(t,"indicatorSeparator",{"indicator-separator":!0})))},BE_=qe.keyframes(Yo||(Yo=NA_([`
|
|
16
16
|
0%, 80%, 100% { opacity: 0; }
|
|
17
17
|
40% { opacity: 1; }
|
|
18
|
-
`]))),OE_=function(t,_){var o=t.isFocused,s=t.size,c=t.theme,u=c.colors,g=c.spacing.baseUnit;return Le({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},_?{}:{color:o?u.neutral60:u.neutral20,padding:g*2})},cn=function(t){var _=t.delay,o=t.offset;return qe.jsx("span",{css:qe.css({animation:"".concat(BE_," 1s ease-in-out ").concat(_,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},GE_=function(t){var _=t.innerProps,o=t.isRtl,s=t.size,c=s===void 0?4:s,u=m_(t,TE_);return qe.jsx("div",Oe({},Pt(Le(Le({},u),{},{innerProps:_,isRtl:o,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),_),qe.jsx(cn,{delay:0,offset:o}),qe.jsx(cn,{delay:160,offset:!0}),qe.jsx(cn,{delay:320,offset:!o}))},zE_=function(t,_){var o=t.isDisabled,s=t.isFocused,c=t.theme,u=c.colors,g=c.borderRadius,d=c.spacing;return Le({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:d.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},_?{}:{backgroundColor:o?u.neutral5:u.neutral0,borderColor:o?u.neutral10:s?u.primary:u.neutral20,borderRadius:g,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(u.primary):void 0,"&:hover":{borderColor:s?u.primary:u.neutral30}})},FE_=function(t){var _=t.children,o=t.isDisabled,s=t.isFocused,c=t.innerRef,u=t.innerProps,g=t.menuIsOpen;return qe.jsx("div",Oe({ref:c},Pt(t,"control",{control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":g}),u,{"aria-disabled":o||void 0}),_)},HE_=FE_,VE_=["data"],WE_=function(t,_){var o=t.theme.spacing;return _?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},UE_=function(t){var _=t.children,o=t.cx,s=t.getStyles,c=t.getClassNames,u=t.Heading,g=t.headingProps,d=t.innerProps,p=t.label,x=t.theme,f=t.selectProps;return qe.jsx("div",Oe({},Pt(t,"group",{group:!0}),d),qe.jsx(u,Oe({},g,{selectProps:f,theme:x,getStyles:s,getClassNames:c,cx:o}),p),qe.jsx("div",null,_))},YE_=function(t,_){var o=t.theme,s=o.colors,c=o.spacing;return Le({label:"group",cursor:"default",display:"block"},_?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:c.baseUnit*3,paddingRight:c.baseUnit*3,textTransform:"uppercase"})},XE_=function(t){var _=cr(t);_.data;var o=m_(_,VE_);return qe.jsx("div",Oe({},Pt(t,"groupHeading",{"group-heading":!0}),o))},ZE_=UE_,JE_=["innerRef","isDisabled","isHidden","inputClassName"],QE_=function(t,_){var o=t.isDisabled,s=t.value,c=t.theme,u=c.spacing,g=c.colors;return Le(Le({visibility:o?"hidden":"visible",transform:s?"translateZ(0)":""},KE_),_?{}:{margin:u.baseUnit/2,paddingBottom:u.baseUnit/2,paddingTop:u.baseUnit/2,color:g.neutral80})},fr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},KE_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Le({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},fr)},eT_=function(t){return Le({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},fr)},tT_=function(t){var _=t.cx,o=t.value,s=cr(t),c=s.innerRef,u=s.isDisabled,g=s.isHidden,d=s.inputClassName,p=m_(s,JE_);return qe.jsx("div",Oe({},Pt(t,"input",{"input-container":!0}),{"data-value":o||""}),qe.jsx("input",Oe({className:_({input:!0},d),ref:c,style:eT_(g),disabled:u},p)))},_T_=tT_,sT_=function(t,_){var o=t.theme,s=o.spacing,c=o.borderRadius,u=o.colors;return Le({label:"multiValue",display:"flex",minWidth:0},_?{}:{backgroundColor:u.neutral10,borderRadius:c/2,margin:s.baseUnit/2})},nT_=function(t,_){var o=t.theme,s=o.borderRadius,c=o.colors,u=t.cropWithEllipsis;return Le({overflow:"hidden",textOverflow:u||u===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},_?{}:{borderRadius:s/2,color:c.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},oT_=function(t,_){var o=t.theme,s=o.spacing,c=o.borderRadius,u=o.colors,g=t.isFocused;return Le({alignItems:"center",display:"flex"},_?{}:{borderRadius:c/2,backgroundColor:g?u.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:u.dangerLight,color:u.danger}})},wr=function(t){var _=t.children,o=t.innerProps;return qe.jsx("div",o,_)},aT_=wr,iT_=wr;function rT_(e){var t=e.children,_=e.innerProps;return qe.jsx("div",Oe({role:"button"},_),t||qe.jsx(Zn,{size:14}))}var cT_=function(t){var _=t.children,o=t.components,s=t.data,c=t.innerProps,u=t.isDisabled,g=t.removeProps,d=t.selectProps,p=o.Container,x=o.Label,f=o.Remove;return qe.jsx(p,{data:s,innerProps:Le(Le({},Pt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":u})),c),selectProps:d},qe.jsx(x,{data:s,innerProps:Le({},Pt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:d},_),qe.jsx(f,{data:s,innerProps:Le(Le({},Pt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(_||"option")},g),selectProps:d}))},lT_=cT_,dT_=function(t,_){var o=t.isDisabled,s=t.isFocused,c=t.isSelected,u=t.theme,g=u.spacing,d=u.colors;return Le({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},_?{}:{backgroundColor:c?d.primary:s?d.primary25:"transparent",color:o?d.neutral20:c?d.neutral0:"inherit",padding:"".concat(g.baseUnit*2,"px ").concat(g.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:c?d.primary:d.primary50}})},uT_=function(t){var _=t.children,o=t.isDisabled,s=t.isFocused,c=t.isSelected,u=t.innerRef,g=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"option",{option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":c}),{ref:u,"aria-disabled":o},g),_)},hT_=uT_,mT_=function(t,_){var o=t.theme,s=o.spacing,c=o.colors;return Le({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},_?{}:{color:c.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},gT_=function(t){var _=t.children,o=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"placeholder",{placeholder:!0}),o),_)},pT_=gT_,yT_=function(t,_){var o=t.isDisabled,s=t.theme,c=s.spacing,u=s.colors;return Le({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_?{}:{color:o?u.neutral40:u.neutral80,marginLeft:c.baseUnit/2,marginRight:c.baseUnit/2})},fT_=function(t){var _=t.children,o=t.isDisabled,s=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),s),_)},wT_=fT_,vT_={ClearIndicator:LE_,Control:HE_,DropdownIndicator:qE_,DownChevron:pr,CrossIcon:Zn,Group:ZE_,GroupHeading:XE_,IndicatorsContainer:AE_,IndicatorSeparator:DE_,Input:_T_,LoadingIndicator:GE_,Menu:mE_,MenuList:pE_,MenuPortal:$E_,LoadingMessage:vE_,NoOptionsMessage:wE_,MultiValue:lT_,MultiValueContainer:aT_,MultiValueLabel:iT_,MultiValueRemove:rT_,Option:hT_,Placeholder:pT_,SelectContainer:xE_,SingleValue:wT_,ValueContainer:IE_},bT_=function(t){return Le(Le({},vT_),t.components)},Xo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function $T_(e,t){return!!(e===t||Xo(e)&&Xo(t))}function kT_(e,t){if(e.length!==t.length)return!1;for(var _=0;_<e.length;_++)if(!$T_(e[_],t[_]))return!1;return!0}function xT_(e,t){t===void 0&&(t=kT_);var _=null;function o(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];if(_&&_.lastThis===this&&t(s,_.lastArgs))return _.lastResult;var u=e.apply(this,s);return _={lastResult:u,lastArgs:s,lastThis:this},u}return o.clear=function(){_=null},o}function CT_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var IT_=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:CT_},ST_=function(t){return qe.jsx("span",Oe({css:IT_},t))},Zo=ST_,AT_={guidance:function(t){var _=t.isSearchable,o=t.isMulti,s=t.tabSelectsValue,c=t.context,u=t.isInitialFocus;switch(c){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return u?"".concat(t["aria-label"]||"Select"," is focused ").concat(_?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var _=t.action,o=t.label,s=o===void 0?"":o,c=t.labels,u=t.isDisabled;switch(_){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(c.length>1?"s":""," ").concat(c.join(","),", selected.");case"select-option":return u?"option ".concat(s," is disabled. Select another option."):"option ".concat(s,", selected.");default:return""}},onFocus:function(t){var _=t.context,o=t.focused,s=t.options,c=t.label,u=c===void 0?"":c,g=t.selectValue,d=t.isDisabled,p=t.isSelected,x=t.isAppleDevice,f=function(E,k){return E&&E.length?"".concat(E.indexOf(k)+1," of ").concat(E.length):""};if(_==="value"&&g)return"value ".concat(u," focused, ").concat(f(g,o),".");if(_==="menu"&&x){var A=d?" disabled":"",T="".concat(p?" selected":"").concat(A);return"".concat(u).concat(T,", ").concat(f(s,o),".")}return""},onFilter:function(t){var _=t.inputValue,o=t.resultsMessage;return"".concat(o).concat(_?" for search term "+_:"",".")}},ET_=function(t){var _=t.ariaSelection,o=t.focusedOption,s=t.focusedValue,c=t.focusableOptions,u=t.isFocused,g=t.selectValue,d=t.selectProps,p=t.id,x=t.isAppleDevice,f=d.ariaLiveMessages,A=d.getOptionLabel,T=d.inputValue,P=d.isMulti,E=d.isOptionDisabled,k=d.isSearchable,C=d.menuIsOpen,N=d.options,L=d.screenReaderStatus,D=d.tabSelectsValue,O=d.isLoading,R=d["aria-label"],W=d["aria-live"],F=v.useMemo(function(){return Le(Le({},AT_),f||{})},[f]),Z=v.useMemo(function(){var xe="";if(_&&F.onChange){var Ne=_.option,et=_.options,De=_.removedValue,le=_.removedValues,Ue=_.value,re=function(pe){return Array.isArray(pe)?null:pe},ge=De||Ne||re(Ue),Te=ge?A(ge):"",Pe=et||le||void 0,Fe=Pe?Pe.map(A):[],ht=Le({isDisabled:ge&&E(ge,g),label:Te,labels:Fe},_);xe=F.onChange(ht)}return xe},[_,F,E,g,A]),G=v.useMemo(function(){var xe="",Ne=o||s,et=!!(o&&g&&g.includes(o));if(Ne&&F.onFocus){var De={focused:Ne,label:A(Ne),isDisabled:E(Ne,g),isSelected:et,options:c,context:Ne===o?"menu":"value",selectValue:g,isAppleDevice:x};xe=F.onFocus(De)}return xe},[o,s,A,E,F,c,g,x]),H=v.useMemo(function(){var xe="";if(C&&N.length&&!O&&F.onFilter){var Ne=L({count:c.length});xe=F.onFilter({inputValue:T,resultsMessage:Ne})}return xe},[c,T,C,F,N,L,O]),q=_?.action==="initial-input-focus",K=v.useMemo(function(){var xe="";if(F.guidance){var Ne=s?"value":C?"menu":"input";xe=F.guidance({"aria-label":R,context:Ne,isDisabled:o&&E(o,g),isMulti:P,isSearchable:k,tabSelectsValue:D,isInitialFocus:q})}return xe},[R,o,s,P,E,k,C,F,g,D,q]),ee=qe.jsx(v.Fragment,null,qe.jsx("span",{id:"aria-selection"},Z),qe.jsx("span",{id:"aria-focused"},G),qe.jsx("span",{id:"aria-results"},H),qe.jsx("span",{id:"aria-guidance"},K));return qe.jsx(v.Fragment,null,qe.jsx(Zo,{id:p},q&&ee),qe.jsx(Zo,{"aria-live":W,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!q&&ee))},TT_=ET_,En=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],jT_=new RegExp("["+En.map(function(e){return e.letters}).join("")+"]","g"),vr={};for(var ln=0;ln<En.length;ln++)for(var dn=En[ln],un=0;un<dn.letters.length;un++)vr[dn.letters[un]]=dn.base;var br=function(t){return t.replace(jT_,function(_){return vr[_]})},NT_=xT_(br),Jo=function(t){return t.replace(/^\s+|\s+$/g,"")},PT_=function(t){return"".concat(t.label," ").concat(t.value)},qT_=function(t){return function(_,o){if(_.data.__isNew__)return!0;var s=Le({ignoreCase:!0,ignoreAccents:!0,stringify:PT_,trim:!0,matchFrom:"any"},t),c=s.ignoreCase,u=s.ignoreAccents,g=s.stringify,d=s.trim,p=s.matchFrom,x=d?Jo(o):o,f=d?Jo(g(_)):g(_);return c&&(x=x.toLowerCase(),f=f.toLowerCase()),u&&(x=NT_(x),f=br(f)),p==="start"?f.substr(0,x.length)===x:f.indexOf(x)>-1}},RT_=["innerRef"];function LT_(e){var t=e.innerRef,_=m_(e,RT_),o=aE_(_,"onExited","in","enter","exit","appear");return qe.jsx("input",Oe({ref:t},o,{css:qe.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var MT_=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function DT_(e){var t=e.isEnabled,_=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,u=v.useRef(!1),g=v.useRef(!1),d=v.useRef(0),p=v.useRef(null),x=v.useCallback(function(k,C){if(p.current!==null){var N=p.current,L=N.scrollTop,D=N.scrollHeight,O=N.clientHeight,R=p.current,W=C>0,F=D-O-L,Z=!1;F>C&&u.current&&(o&&o(k),u.current=!1),W&&g.current&&(c&&c(k),g.current=!1),W&&C>F?(_&&!u.current&&_(k),R.scrollTop=D,Z=!0,u.current=!0):!W&&-C>L&&(s&&!g.current&&s(k),R.scrollTop=0,Z=!0,g.current=!0),Z&&MT_(k)}},[_,o,s,c]),f=v.useCallback(function(k){x(k,k.deltaY)},[x]),A=v.useCallback(function(k){d.current=k.changedTouches[0].clientY},[]),T=v.useCallback(function(k){var C=d.current-k.changedTouches[0].clientY;x(k,C)},[x]),P=v.useCallback(function(k){if(k){var C=sE_?{passive:!1}:!1;k.addEventListener("wheel",f,C),k.addEventListener("touchstart",A,C),k.addEventListener("touchmove",T,C)}},[T,A,f]),E=v.useCallback(function(k){k&&(k.removeEventListener("wheel",f,!1),k.removeEventListener("touchstart",A,!1),k.removeEventListener("touchmove",T,!1))},[T,A,f]);return v.useEffect(function(){if(t){var k=p.current;return P(k),function(){E(k)}}},[t,P,E]),function(k){p.current=k}}var Qo=["boxSizing","height","overflow","paddingRight","position"],Ko={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ea(e){e.cancelable&&e.preventDefault()}function ta(e){e.stopPropagation()}function _a(){var e=this.scrollTop,t=this.scrollHeight,_=e+this.offsetHeight;e===0?this.scrollTop=1:_===t&&(this.scrollTop=e-1)}function sa(){return"ontouchstart"in window||navigator.maxTouchPoints}var na=!!(typeof window<"u"&&window.document&&window.document.createElement),as=0,W_={capture:!1,passive:!1};function BT_(e){var t=e.isEnabled,_=e.accountForScrollbars,o=_===void 0?!0:_,s=v.useRef({}),c=v.useRef(null),u=v.useCallback(function(d){if(na){var p=document.body,x=p&&p.style;if(o&&Qo.forEach(function(P){var E=x&&x[P];s.current[P]=E}),o&&as<1){var f=parseInt(s.current.paddingRight,10)||0,A=document.body?document.body.clientWidth:0,T=window.innerWidth-A+f||0;Object.keys(Ko).forEach(function(P){var E=Ko[P];x&&(x[P]=E)}),x&&(x.paddingRight="".concat(T,"px"))}p&&sa()&&(p.addEventListener("touchmove",ea,W_),d&&(d.addEventListener("touchstart",_a,W_),d.addEventListener("touchmove",ta,W_))),as+=1}},[o]),g=v.useCallback(function(d){if(na){var p=document.body,x=p&&p.style;as=Math.max(as-1,0),o&&as<1&&Qo.forEach(function(f){var A=s.current[f];x&&(x[f]=A)}),p&&sa()&&(p.removeEventListener("touchmove",ea,W_),d&&(d.removeEventListener("touchstart",_a,W_),d.removeEventListener("touchmove",ta,W_)))}},[o]);return v.useEffect(function(){if(t){var d=c.current;return u(d),function(){g(d)}}},[t,u,g]),function(d){c.current=d}}function OT_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var GT_=function(t){var _=t.target;return _.ownerDocument.activeElement&&_.ownerDocument.activeElement.blur()},zT_=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:OT_};function FT_(e){var t=e.children,_=e.lockEnabled,o=e.captureEnabled,s=o===void 0?!0:o,c=e.onBottomArrive,u=e.onBottomLeave,g=e.onTopArrive,d=e.onTopLeave,p=DT_({isEnabled:s,onBottomArrive:c,onBottomLeave:u,onTopArrive:g,onTopLeave:d}),x=BT_({isEnabled:_}),f=function(T){p(T),x(T)};return qe.jsx(v.Fragment,null,_&&qe.jsx("div",{onClick:GT_,css:zT_}),t(f))}function HT_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var VT_=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:HT_},WT_=function(t){var _=t.name,o=t.onFocus;return qe.jsx("input",{required:!0,name:_,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:VT_,value:"",onChange:function(){}})},UT_=WT_;function Jn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function YT_(){return Jn(/^iPhone/i)}function $r(){return Jn(/^Mac/i)}function XT_(){return Jn(/^iPad/i)||$r()&&navigator.maxTouchPoints>1}function ZT_(){return YT_()||XT_()}function JT_(){return $r()||ZT_()}var QT_=function(t){return t.label},kr=function(t){return t.label},xr=function(t){return t.value},KT_=function(t){return!!t.isDisabled},ej_={clearIndicator:RE_,container:kE_,control:zE_,dropdownIndicator:PE_,group:WE_,groupHeading:YE_,indicatorsContainer:SE_,indicatorSeparator:ME_,input:QE_,loadingIndicator:OE_,loadingMessage:fE_,menu:dE_,menuList:gE_,menuPortal:bE_,multiValue:sT_,multiValueLabel:nT_,multiValueRemove:oT_,noOptionsMessage:yE_,option:dT_,placeholder:mT_,singleValue:yT_,valueContainer:CE_},tj_={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},_j_=4,Cr=4,sj_=38,nj_=Cr*2,oj_={baseUnit:Cr,controlHeight:sj_,menuGutter:nj_},hn={borderRadius:_j_,colors:tj_,spacing:oj_},aj_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Uo(),captureMenuScroll:!Uo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:qT_(),formatGroupLabel:QT_,getOptionLabel:kr,getOptionValue:xr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:KT_,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!tE_(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var _=t.count;return"".concat(_," result").concat(_!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function oa(e,t,_,o){var s=Ar(e,t,_),c=Er(e,t,_),u=Sr(e,t),g=Gs(e,t);return{type:"option",data:t,isDisabled:s,isSelected:c,label:u,value:g,index:o}}function js(e,t){return e.options.map(function(_,o){if("options"in _){var s=_.options.map(function(u,g){return oa(e,u,t,g)}).filter(function(u){return ia(e,u)});return s.length>0?{type:"group",data:_,options:s,index:o}:void 0}var c=oa(e,_,t,o);return ia(e,c)?c:void 0}).filter(nE_)}function Ir(e){return e.reduce(function(t,_){return _.type==="group"?t.push.apply(t,X_(_.options.map(function(o){return o.data}))):t.push(_.data),t},[])}function aa(e,t){return e.reduce(function(_,o){return o.type==="group"?_.push.apply(_,X_(o.options.map(function(s){return{data:s.data,id:"".concat(t,"-").concat(o.index,"-").concat(s.index)}}))):_.push({data:o.data,id:"".concat(t,"-").concat(o.index)}),_},[])}function ij_(e,t){return Ir(js(e,t))}function ia(e,t){var _=e.inputValue,o=_===void 0?"":_,s=t.data,c=t.isSelected,u=t.label,g=t.value;return(!jr(e)||!c)&&Tr(e,{label:u,value:g,data:s},o)}function rj_(e,t){var _=e.focusedValue,o=e.selectValue,s=o.indexOf(_);if(s>-1){var c=t.indexOf(_);if(c>-1)return _;if(s<t.length)return t[s]}return null}function cj_(e,t){var _=e.focusedOption;return _&&t.indexOf(_)>-1?_:t[0]}var mn=function(t,_){var o,s=(o=t.find(function(c){return c.data===_}))===null||o===void 0?void 0:o.id;return s||null},Sr=function(t,_){return t.getOptionLabel(_)},Gs=function(t,_){return t.getOptionValue(_)};function Ar(e,t,_){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,_):!1}function Er(e,t,_){if(_.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,_);var o=Gs(e,t);return _.some(function(s){return Gs(e,s)===o})}function Tr(e,t,_){return e.filterOption?e.filterOption(t,_):!0}var jr=function(t){var _=t.hideSelectedOptions,o=t.isMulti;return _===void 0?o:_},lj_=1,Nr=(function(e){bA_(_,e);var t=xA_(_);function _(o){var s;if(wA_(this,_),s=t.call(this,o),s.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(d){s.controlRef=d},s.focusedOptionRef=null,s.getFocusedOptionRef=function(d){s.focusedOptionRef=d},s.menuListRef=null,s.getMenuListRef=function(d){s.menuListRef=d},s.inputRef=null,s.getInputRef=function(d){s.inputRef=d},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(d,p){var x=s.props,f=x.onChange,A=x.name;p.name=A,s.ariaOnChange(d,p),f(d,p)},s.setValue=function(d,p,x){var f=s.props,A=f.closeMenuOnSelect,T=f.isMulti,P=f.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:P}),A&&(s.setState({inputIsHiddenAfterUpdate:!T}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(d,{action:p,option:x})},s.selectOption=function(d){var p=s.props,x=p.blurInputOnSelect,f=p.isMulti,A=p.name,T=s.state.selectValue,P=f&&s.isOptionSelected(d,T),E=s.isOptionDisabled(d,T);if(P){var k=s.getOptionValue(d);s.setValue(T.filter(function(C){return s.getOptionValue(C)!==k}),"deselect-option",d)}else if(!E)f?s.setValue([].concat(X_(T),[d]),"select-option",d):s.setValue(d,"select-option");else{s.ariaOnChange(d,{action:"select-option",option:d,name:A});return}x&&s.blurInput()},s.removeValue=function(d){var p=s.props.isMulti,x=s.state.selectValue,f=s.getOptionValue(d),A=x.filter(function(P){return s.getOptionValue(P)!==f}),T=cs(p,A,A[0]||null);s.onChange(T,{action:"remove-value",removedValue:d}),s.focusInput()},s.clearValue=function(){var d=s.state.selectValue;s.onChange(cs(s.props.isMulti,[],null),{action:"clear",removedValues:d})},s.popValue=function(){var d=s.props.isMulti,p=s.state.selectValue,x=p[p.length-1],f=p.slice(0,p.length-1),A=cs(d,f,f[0]||null);x&&s.onChange(A,{action:"pop-value",removedValue:x})},s.getFocusedOptionId=function(d){return mn(s.state.focusableOptionsWithIds,d)},s.getFocusableOptionsWithIds=function(){return aa(js(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var d=arguments.length,p=new Array(d),x=0;x<d;x++)p[x]=arguments[x];return ZA_.apply(void 0,[s.props.classNamePrefix].concat(p))},s.getOptionLabel=function(d){return Sr(s.props,d)},s.getOptionValue=function(d){return Gs(s.props,d)},s.getStyles=function(d,p){var x=s.props.unstyled,f=ej_[d](p,x);f.boxSizing="border-box";var A=s.props.styles[d];return A?A(f,p):f},s.getClassNames=function(d,p){var x,f;return(x=(f=s.props.classNames)[d])===null||x===void 0?void 0:x.call(f,p)},s.getElementId=function(d){return"".concat(s.state.instancePrefix,"-").concat(d)},s.getComponents=function(){return bT_(s.props)},s.buildCategorizedOptions=function(){return js(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return Ir(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(d,p){s.setState({ariaSelection:Le({value:d},p)})},s.onMenuMouseDown=function(d){d.button===0&&(d.stopPropagation(),d.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(d){s.blockOptionHover=!1},s.onControlMouseDown=function(d){if(!d.defaultPrevented){var p=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?d.target.tagName!=="INPUT"&&d.target.tagName!=="TEXTAREA"&&s.onMenuClose():p&&s.openMenu("first"):(p&&(s.openAfterFocus=!0),s.focusInput()),d.target.tagName!=="INPUT"&&d.target.tagName!=="TEXTAREA"&&d.preventDefault()}},s.onDropdownIndicatorMouseDown=function(d){if(!(d&&d.type==="mousedown"&&d.button!==0)&&!s.props.isDisabled){var p=s.props,x=p.isMulti,f=p.menuIsOpen;s.focusInput(),f?(s.setState({inputIsHiddenAfterUpdate:!x}),s.onMenuClose()):s.openMenu("first"),d.preventDefault()}},s.onClearIndicatorMouseDown=function(d){d&&d.type==="mousedown"&&d.button!==0||(s.clearValue(),d.preventDefault(),s.openAfterFocus=!1,d.type==="touchend"?s.focusInput():setTimeout(function(){return s.focusInput()}))},s.onScroll=function(d){typeof s.props.closeMenuOnScroll=="boolean"?d.target instanceof HTMLElement&&Qs(d.target)&&s.props.onMenuClose():typeof s.props.closeMenuOnScroll=="function"&&s.props.closeMenuOnScroll(d)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(d){var p=d.touches,x=p&&p.item(0);x&&(s.initialTouchX=x.clientX,s.initialTouchY=x.clientY,s.userIsDragging=!1)},s.onTouchMove=function(d){var p=d.touches,x=p&&p.item(0);if(x){var f=Math.abs(x.clientX-s.initialTouchX),A=Math.abs(x.clientY-s.initialTouchY),T=5;s.userIsDragging=f>T||A>T}},s.onTouchEnd=function(d){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(d.target)&&s.menuListRef&&!s.menuListRef.contains(d.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(d){s.userIsDragging||s.onControlMouseDown(d)},s.onClearIndicatorTouchEnd=function(d){s.userIsDragging||s.onClearIndicatorMouseDown(d)},s.onDropdownIndicatorTouchEnd=function(d){s.userIsDragging||s.onDropdownIndicatorMouseDown(d)},s.handleInputChange=function(d){var p=s.props.inputValue,x=d.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(x,{action:"input-change",prevInputValue:p}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(d){s.props.onFocus&&s.props.onFocus(d),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(d){var p=s.props.inputValue;if(s.menuListRef&&s.menuListRef.contains(document.activeElement)){s.inputRef.focus();return}s.props.onBlur&&s.props.onBlur(d),s.onInputChange("",{action:"input-blur",prevInputValue:p}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1})},s.onOptionHover=function(d){if(!(s.blockOptionHover||s.state.focusedOption===d)){var p=s.getFocusableOptions(),x=p.indexOf(d);s.setState({focusedOption:d,focusedOptionId:x>-1?s.getFocusedOptionId(d):null})}},s.shouldHideSelectedOptions=function(){return jr(s.props)},s.onValueInputFocus=function(d){d.preventDefault(),d.stopPropagation(),s.focus()},s.onKeyDown=function(d){var p=s.props,x=p.isMulti,f=p.backspaceRemovesValue,A=p.escapeClearsValue,T=p.inputValue,P=p.isClearable,E=p.isDisabled,k=p.menuIsOpen,C=p.onKeyDown,N=p.tabSelectsValue,L=p.openMenuOnFocus,D=s.state,O=D.focusedOption,R=D.focusedValue,W=D.selectValue;if(!E&&!(typeof C=="function"&&(C(d),d.defaultPrevented))){switch(s.blockOptionHover=!0,d.key){case"ArrowLeft":if(!x||T)return;s.focusValue("previous");break;case"ArrowRight":if(!x||T)return;s.focusValue("next");break;case"Delete":case"Backspace":if(T)return;if(R)s.removeValue(R);else{if(!f)return;x?s.popValue():P&&s.clearValue()}break;case"Tab":if(s.isComposing||d.shiftKey||!k||!N||!O||L&&s.isOptionSelected(O,W))return;s.selectOption(O);break;case"Enter":if(d.keyCode===229)break;if(k){if(!O||s.isComposing)return;s.selectOption(O);break}return;case"Escape":k?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:T}),s.onMenuClose()):P&&A&&s.clearValue();break;case" ":if(T)return;if(!k){s.openMenu("first");break}if(!O)return;s.selectOption(O);break;case"ArrowUp":k?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":k?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!k)return;s.focusOption("pageup");break;case"PageDown":if(!k)return;s.focusOption("pagedown");break;case"Home":if(!k)return;s.focusOption("first");break;case"End":if(!k)return;s.focusOption("last");break;default:return}d.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++lj_),s.state.selectValue=Bs(o.value),o.menuIsOpen&&s.state.selectValue.length){var c=s.getFocusableOptionsWithIds(),u=s.buildFocusableOptions(),g=u.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=c,s.state.focusedOption=u[g],s.state.focusedOptionId=mn(c,u[g])}return s}return vA_(_,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Wo(this.menuListRef,this.focusedOptionRef),JT_()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var c=this.props,u=c.isDisabled,g=c.menuIsOpen,d=this.state.isFocused;(d&&!u&&s.isDisabled||d&&g&&!s.menuIsOpen)&&this.focusInput(),d&&u&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!d&&!u&&s.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Wo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(s,c){this.props.onInputChange(s,c)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var c=this,u=this.state,g=u.selectValue,d=u.isFocused,p=this.buildFocusableOptions(),x=s==="first"?0:p.length-1;if(!this.props.isMulti){var f=p.indexOf(g[0]);f>-1&&(x=f)}this.scrollToFocusedOptionOnUpdate=!(d&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:p[x],focusedOptionId:this.getFocusedOptionId(p[x])},function(){return c.onMenuOpen()})}},{key:"focusValue",value:function(s){var c=this.state,u=c.selectValue,g=c.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var d=u.indexOf(g);g||(d=-1);var p=u.length-1,x=-1;if(u.length){switch(s){case"previous":d===0?x=0:d===-1?x=p:x=d-1;break;case"next":d>-1&&d<p&&(x=d+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:u[x]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",c=this.props.pageSize,u=this.state.focusedOption,g=this.getFocusableOptions();if(g.length){var d=0,p=g.indexOf(u);u||(p=-1),s==="up"?d=p>0?p-1:g.length-1:s==="down"?d=(p+1)%g.length:s==="pageup"?(d=p-c,d<0&&(d=0)):s==="pagedown"?(d=p+c,d>g.length-1&&(d=g.length-1)):s==="last"&&(d=g.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:g[d],focusedValue:null,focusedOptionId:this.getFocusedOptionId(g[d])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(hn):Le(Le({},hn),this.props.theme):hn}},{key:"getCommonProps",value:function(){var s=this.clearValue,c=this.cx,u=this.getStyles,g=this.getClassNames,d=this.getValue,p=this.selectOption,x=this.setValue,f=this.props,A=f.isMulti,T=f.isRtl,P=f.options,E=this.hasValue();return{clearValue:s,cx:c,getStyles:u,getClassNames:g,getValue:d,hasValue:E,isMulti:A,isRtl:T,options:P,selectOption:p,selectProps:f,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var s=this.state.selectValue;return s.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,c=s.isClearable,u=s.isMulti;return c===void 0?u:c}},{key:"isOptionDisabled",value:function(s,c){return Ar(this.props,s,c)}},{key:"isOptionSelected",value:function(s,c){return Er(this.props,s,c)}},{key:"filterOption",value:function(s,c){return Tr(this.props,s,c)}},{key:"formatOptionLabel",value:function(s,c){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,g=this.state.selectValue;return this.props.formatOptionLabel(s,{context:c,inputValue:u,selectValue:g})}else return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var s=this.props,c=s.isDisabled,u=s.isSearchable,g=s.inputId,d=s.inputValue,p=s.tabIndex,x=s.form,f=s.menuIsOpen,A=s.required,T=this.getComponents(),P=T.Input,E=this.state,k=E.inputIsHidden,C=E.ariaSelection,N=this.commonProps,L=g||this.getElementId("input"),D=Le(Le(Le({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":A,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?C?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?vt.createElement(P,Oe({},N,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:L,innerRef:this.getInputRef,isDisabled:c,isHidden:k,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:p,form:x,type:"text",value:d},D)):vt.createElement(LT_,Oe({id:L,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ds,onFocus:this.onInputFocus,disabled:c,tabIndex:p,inputMode:"none",form:x,value:""},D))}},{key:"renderPlaceholderOrValue",value:function(){var s=this,c=this.getComponents(),u=c.MultiValue,g=c.MultiValueContainer,d=c.MultiValueLabel,p=c.MultiValueRemove,x=c.SingleValue,f=c.Placeholder,A=this.commonProps,T=this.props,P=T.controlShouldRenderValue,E=T.isDisabled,k=T.isMulti,C=T.inputValue,N=T.placeholder,L=this.state,D=L.selectValue,O=L.focusedValue,R=L.isFocused;if(!this.hasValue()||!P)return C?null:vt.createElement(f,Oe({},A,{key:"placeholder",isDisabled:E,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),N);if(k)return D.map(function(F,Z){var G=F===O,H="".concat(s.getOptionLabel(F),"-").concat(s.getOptionValue(F));return vt.createElement(u,Oe({},A,{components:{Container:g,Label:d,Remove:p},isFocused:G,isDisabled:E,key:H,index:Z,removeProps:{onClick:function(){return s.removeValue(F)},onTouchEnd:function(){return s.removeValue(F)},onMouseDown:function(K){K.preventDefault()}},data:F}),s.formatOptionLabel(F,"value"))});if(C)return null;var W=D[0];return vt.createElement(x,Oe({},A,{data:W,isDisabled:E}),this.formatOptionLabel(W,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),c=s.ClearIndicator,u=this.commonProps,g=this.props,d=g.isDisabled,p=g.isLoading,x=this.state.isFocused;if(!this.isClearable()||!c||d||!this.hasValue()||p)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return vt.createElement(c,Oe({},u,{innerProps:f,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),c=s.LoadingIndicator,u=this.commonProps,g=this.props,d=g.isDisabled,p=g.isLoading,x=this.state.isFocused;if(!c||!p)return null;var f={"aria-hidden":"true"};return vt.createElement(c,Oe({},u,{innerProps:f,isDisabled:d,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),c=s.DropdownIndicator,u=s.IndicatorSeparator;if(!c||!u)return null;var g=this.commonProps,d=this.props.isDisabled,p=this.state.isFocused;return vt.createElement(u,Oe({},g,{isDisabled:d,isFocused:p}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),c=s.DropdownIndicator;if(!c)return null;var u=this.commonProps,g=this.props.isDisabled,d=this.state.isFocused,p={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return vt.createElement(c,Oe({},u,{innerProps:p,isDisabled:g,isFocused:d}))}},{key:"renderMenu",value:function(){var s=this,c=this.getComponents(),u=c.Group,g=c.GroupHeading,d=c.Menu,p=c.MenuList,x=c.MenuPortal,f=c.LoadingMessage,A=c.NoOptionsMessage,T=c.Option,P=this.commonProps,E=this.state.focusedOption,k=this.props,C=k.captureMenuScroll,N=k.inputValue,L=k.isLoading,D=k.loadingMessage,O=k.minMenuHeight,R=k.maxMenuHeight,W=k.menuIsOpen,F=k.menuPlacement,Z=k.menuPosition,G=k.menuPortalTarget,H=k.menuShouldBlockScroll,q=k.menuShouldScrollIntoView,K=k.noOptionsMessage,ee=k.onMenuScrollToTop,xe=k.onMenuScrollToBottom;if(!W)return null;var Ne=function(Te,Pe){var Fe=Te.type,ht=Te.data,Ye=Te.isDisabled,pe=Te.isSelected,$e=Te.label,$t=Te.value,Ht=E===ht,It=Ye?void 0:function(){return s.onOptionHover(ht)},Vt=Ye?void 0:function(){return s.selectOption(ht)},Xt="".concat(s.getElementId("option"),"-").concat(Pe),Zt={id:Xt,onClick:Vt,onMouseMove:It,onMouseOver:It,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:pe};return vt.createElement(T,Oe({},P,{innerProps:Zt,data:ht,isDisabled:Ye,isSelected:pe,key:Xt,label:$e,type:Fe,value:$t,isFocused:Ht,innerRef:Ht?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(Te.data,"menu"))},et;if(this.hasOptions())et=this.getCategorizedOptions().map(function(ge){if(ge.type==="group"){var Te=ge.data,Pe=ge.options,Fe=ge.index,ht="".concat(s.getElementId("group"),"-").concat(Fe),Ye="".concat(ht,"-heading");return vt.createElement(u,Oe({},P,{key:ht,data:Te,options:Pe,Heading:g,headingProps:{id:Ye,data:ge.data},label:s.formatGroupLabel(ge.data)}),ge.options.map(function(pe){return Ne(pe,"".concat(Fe,"-").concat(pe.index))}))}else if(ge.type==="option")return Ne(ge,"".concat(ge.index))});else if(L){var De=D({inputValue:N});if(De===null)return null;et=vt.createElement(f,P,De)}else{var le=K({inputValue:N});if(le===null)return null;et=vt.createElement(A,P,le)}var Ue={minMenuHeight:O,maxMenuHeight:R,menuPlacement:F,menuPosition:Z,menuShouldScrollIntoView:q},re=vt.createElement(uE_,Oe({},P,Ue),function(ge){var Te=ge.ref,Pe=ge.placerProps,Fe=Pe.placement,ht=Pe.maxHeight;return vt.createElement(d,Oe({},P,Ue,{innerRef:Te,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:L,placement:Fe}),vt.createElement(FT_,{captureEnabled:C,onTopArrive:ee,onBottomArrive:xe,lockEnabled:H},function(Ye){return vt.createElement(p,Oe({},P,{innerRef:function($e){s.getMenuListRef($e),Ye($e)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:s.getElementId("listbox")},isLoading:L,maxHeight:ht,focusedOption:E}),et)}))});return G||Z==="fixed"?vt.createElement(x,Oe({},P,{appendTo:G,controlElement:this.controlRef,menuPlacement:F,menuPosition:Z}),re):re}},{key:"renderFormField",value:function(){var s=this,c=this.props,u=c.delimiter,g=c.isDisabled,d=c.isMulti,p=c.name,x=c.required,f=this.state.selectValue;if(x&&!this.hasValue()&&!g)return vt.createElement(UT_,{name:p,onFocus:this.onValueInputFocus});if(!(!p||g))if(d)if(u){var A=f.map(function(E){return s.getOptionValue(E)}).join(u);return vt.createElement("input",{name:p,type:"hidden",value:A})}else{var T=f.length>0?f.map(function(E,k){return vt.createElement("input",{key:"i-".concat(k),name:p,type:"hidden",value:s.getOptionValue(E)})}):vt.createElement("input",{name:p,type:"hidden",value:""});return vt.createElement("div",null,T)}else{var P=f[0]?this.getOptionValue(f[0]):"";return vt.createElement("input",{name:p,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,c=this.state,u=c.ariaSelection,g=c.focusedOption,d=c.focusedValue,p=c.isFocused,x=c.selectValue,f=this.getFocusableOptions();return vt.createElement(TT_,Oe({},s,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:g,focusedValue:d,isFocused:p,selectValue:x,focusableOptions:f,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),c=s.Control,u=s.IndicatorsContainer,g=s.SelectContainer,d=s.ValueContainer,p=this.props,x=p.className,f=p.id,A=p.isDisabled,T=p.menuIsOpen,P=this.state.isFocused,E=this.commonProps=this.getCommonProps();return vt.createElement(g,Oe({},E,{className:x,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:A,isFocused:P}),this.renderLiveRegion(),vt.createElement(c,Oe({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:A,isFocused:P,menuIsOpen:T}),vt.createElement(d,Oe({},E,{isDisabled:A}),this.renderPlaceholderOrValue(),this.renderInput()),vt.createElement(u,Oe({},E,{isDisabled:A}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=c.prevProps,g=c.clearFocusValueOnUpdate,d=c.inputIsHiddenAfterUpdate,p=c.ariaSelection,x=c.isFocused,f=c.prevWasFocused,A=c.instancePrefix,T=s.options,P=s.value,E=s.menuIsOpen,k=s.inputValue,C=s.isMulti,N=Bs(P),L={};if(u&&(P!==u.value||T!==u.options||E!==u.menuIsOpen||k!==u.inputValue)){var D=E?ij_(s,N):[],O=E?aa(js(s,N),"".concat(A,"-option")):[],R=g?rj_(c,N):null,W=cj_(c,D),F=mn(O,W);L={selectValue:N,focusedOption:W,focusedOptionId:F,focusableOptionsWithIds:O,focusedValue:R,clearFocusValueOnUpdate:!1}}var Z=d!=null&&s!==u?{inputIsHidden:d,inputIsHiddenAfterUpdate:void 0}:{},G=p,H=x&&f;return x&&!H&&(G={value:cs(C,N,N[0]||null),options:N,action:"initial-input-focus"},H=!f),p?.action==="initial-input-focus"&&(G=null),Le(Le(Le({},L),Z),{},{prevProps:s,ariaSelection:G,prevWasFocused:H})}}]),_})(v.Component);Nr.defaultProps=aj_;var dj_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function uj_(e){var t=e.defaultInputValue,_=t===void 0?"":t,o=e.defaultMenuIsOpen,s=o===void 0?!1:o,c=e.defaultValue,u=c===void 0?null:c,g=e.inputValue,d=e.menuIsOpen,p=e.onChange,x=e.onInputChange,f=e.onMenuClose,A=e.onMenuOpen,T=e.value,P=m_(e,dj_),E=v.useState(g!==void 0?g:_),k=b_(E,2),C=k[0],N=k[1],L=v.useState(d!==void 0?d:s),D=b_(L,2),O=D[0],R=D[1],W=v.useState(T!==void 0?T:u),F=b_(W,2),Z=F[0],G=F[1],H=v.useCallback(function(De,le){typeof p=="function"&&p(De,le),G(De)},[p]),q=v.useCallback(function(De,le){var Ue;typeof x=="function"&&(Ue=x(De,le)),N(Ue!==void 0?Ue:De)},[x]),K=v.useCallback(function(){typeof A=="function"&&A(),R(!0)},[A]),ee=v.useCallback(function(){typeof f=="function"&&f(),R(!1)},[f]),xe=g!==void 0?g:C,Ne=d!==void 0?d:O,et=T!==void 0?T:Z;return Le(Le({},P),{},{inputValue:xe,menuIsOpen:Ne,onChange:H,onInputChange:q,onMenuClose:ee,onMenuOpen:K,value:et})}var hj_=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ra=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,s=String(t).toLowerCase(),c=String(o.getOptionValue(_)).toLowerCase(),u=String(o.getOptionLabel(_)).toLowerCase();return c===s||u===s},gn={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,_,o,s){return!(!t||_.some(function(c){return ra(t,c,s)})||o.some(function(c){return ra(t,c,s)}))},getNewOptionData:function(t,_){return{label:_,value:t,__isNew__:!0}}};function mj_(e){var t=e.allowCreateWhileLoading,_=t===void 0?!1:t,o=e.createOptionPosition,s=o===void 0?"last":o,c=e.formatCreateLabel,u=c===void 0?gn.formatCreateLabel:c,g=e.isValidNewOption,d=g===void 0?gn.isValidNewOption:g,p=e.getNewOptionData,x=p===void 0?gn.getNewOptionData:p,f=e.onCreateOption,A=e.options,T=A===void 0?[]:A,P=e.onChange,E=m_(e,hj_),k=E.getOptionValue,C=k===void 0?xr:k,N=E.getOptionLabel,L=N===void 0?kr:N,D=E.inputValue,O=E.isLoading,R=E.isMulti,W=E.value,F=E.name,Z=v.useMemo(function(){return d(D,Bs(W),T,{getOptionValue:C,getOptionLabel:L})?x(D,u(D)):void 0},[u,x,L,C,D,d,T,W]),G=v.useMemo(function(){return(_||!O)&&Z?s==="first"?[Z].concat(X_(T)):[].concat(X_(T),[Z]):T},[_,s,O,Z,T]),H=v.useCallback(function(q,K){if(K.action!=="select-option")return P(q,K);var ee=Array.isArray(q)?q:[q];if(ee[ee.length-1]===Z){if(f)f(D);else{var xe=x(D,D),Ne={action:"create-option",name:F,option:xe};P(cs(R,[].concat(X_(Bs(W)),[xe]),xe),Ne)}return}P(q,K)},[x,D,R,F,Z,f,P,W]);return Le(Le({},E),{},{options:G,onChange:H})}var gj_=v.forwardRef(function(e,t){var _=uj_(e),o=mj_(_);return vt.createElement(Nr,Oe({ref:t},o))}),Pr=gj_;const J_=({options:e,isDisabled:t,scrollBottom:_,onCreateOption:o,...s})=>{const[c,u]=v.useState(),g=()=>{u(void 0)};return n.jsxs("div",{className:"w-100",children:[n.jsx("div",{className:"w-100",children:n.jsx(Pr,{isDisabled:t,options:e,menuPlacement:_?"top":"auto",onFocus:g,...s})}),!!c&&n.jsx("p",{className:"text-danger mb-0 mt-1",children:c})]})},pj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(ES_),[c,u]=v.useState(0),[g,d]=v.useState(!1),[p,x]=v.useState([]),[f,A]=v.useState([]),[T,P]=v.useState(NS_),E="",k=G=>{const H={...o,...G};H.searchString&&G.searchString&&G.searchString!=o.searchString&&(H.currentPage=1),s(H)},C=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)).flatMap(q=>q.teachers),H=new Map;return G.forEach(q=>{H.has(q.teacherUserId)||H.set(q.teacherUserId,q)}),Array.from(H.values()).map(q=>({value:q.teacherUserId,label:q.mainTeacherEmail}))},[f,p]),N=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)).flatMap(q=>q.counselors),H=new Map;return G.forEach(q=>{H.has(q.counselorUserId)||H.set(q.counselorUserId,q)}),Array.from(H.values()).map(q=>({value:q.counselorUserId,label:q.counselorEmail}))},[f,p]),L=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)&&q.assistantUserId).map(q=>({value:q.assistantUserId,label:q.assistantEmail})),H=new Map;return G.forEach(q=>{H.has(q.value)||H.set(q.value,q)}),Array.from(H.values())},[t,p]),D=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)&&q.secondaryTeacherUserId).map(q=>({value:q.secondaryTeacherUserId,label:q.secondaryTeacherEmail})),H=new Map;return G.forEach(q=>{H.has(q.value)||H.set(q.value,q)}),Array.from(H.values())},[t,p]),O=v.useCallback(G=>{G!==o.sortBy?k({sortBy:G,orderBy:"ASC",currentPage:1}):k({sortBy:G,orderBy:o.orderBy!=="DESC"?"DESC":"ASC",currentPage:1})},[JSON.stringify(o)]),R=async()=>{e(ne(!0));try{const G=Object.entries(o).filter(([K,ee])=>ee!==void 0).reduce((K,[ee,xe])=>(K[ee]=xe,K),{}),H={};for(const K in G){const ee=K.charAt(0).toLowerCase()+K.slice(1);H[ee]=G[K]}const q=await uS_(H);_(q?.data?.items),u(q?.data?.totalItems)}catch(G){e(J({type:"danger",message:G.response?.data?.title||G.message}))}e(ne(!1))},W=()=>{d(!g),x(t.map(G=>G.id)),A(t),g&&(x([]),A([]))},F=G=>{const{id:H,checked:q}=G.target;if(q){x(ee=>[...ee,H]);const K=t.find(ee=>ee.id===H);K&&A(ee=>[...ee,K])}else x(K=>K.filter(ee=>ee!==H)),A(K=>K.filter(ee=>ee.id!==H))},Z=v.useCallback(()=>{o.currentPage==1?R():k({currentPage:1}),x([]),A([]),d(!1)},[JSON.stringify(o)]);return v.useEffect(()=>{R()},[JSON.stringify(o)]),v.useEffect(()=>{document.title="User | Assign student"},[]),v.useEffect(()=>{k({...o,searchString:E})},[E]),{handelSort:O,handleRetrievedData:Z,totalItem:c,userList:t,filters:o,changeFilters:k,handleSelectAll:W,handleClickCheck:F,isCheckAll:g,isCheck:p,fullName:E,selectedUser:T,setSelectedUser:P,userSelected:f,getDataUserList:R,studentTeacherSelected:C,studentCounselorSelected:N,studentAssistantSelected:L,studentSecondaryTeacherSelected:D}},yj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await hS_();d.data.items&&_(d.data.items.map?.(p=>({label:p.email,value:p.id}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.find(f=>f.value===d);s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedCounselors:o,counselorOptions:t,handleSelectCounselor:u,handleCreateCounselorOption:g,setSelectedCounselors:s}},fj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await mS_();d.data.items&&_(d.data.items.map?.(p=>({label:p.email,value:p.id}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.find(f=>f.value===d);s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedAssistants:o,assistantOptions:t,handleSelectAssistant:u,handleCreateAssistantOption:g,setSelectedAssistants:s}},wj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await gS_();d.data.items&&_(d.data.items.map?.(p=>({label:p.email,value:p.id,id:p.secondaryTeacherId}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.find(f=>f.value===d);s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedSecondaryTeachers:o,secondaryTeacherOptions:t,handleSelectSecondaryTeacher:u,handleCreateSecondaryTeacherOption:g,setSelectedSecondaryTeachers:s}},vj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await Fi({sortBy:"Email"});d.data&&_(d.data.map?.(p=>({label:p.email,value:p.id}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.filter(f=>d.includes(f.value));s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedTeachers:o,teacherOptions:t,handleSelectTeacher:u,handleCreateTeacherOption:g,setSelectedTeachers:s}},bj_=(e,t)=>{const _=[];if(t===bt.Teacher)for(const s of e)for(const c of s.teachers||[])_.push({label:c.mainTeacherEmail,value:c.teacherUserId,name:c.mainTeacherName});else if(t===bt.Assistant)for(const s of e)s.assistantEmail&&s.assistantUserId&&_.push({label:s.assistantEmail,value:s.assistantUserId,name:s.assistantName||""});else if(t===bt.Counselor)for(const s of e)for(const c of s.counselors||[])_.push({label:c.counselorEmail,value:c.counselorUserId,name:c.counselorName});const o=new Map;for(const s of _)o.has(s.value)||o.set(s.value,s);return Array.from(o.values()).sort((s,c)=>s.label.localeCompare(c.label))},$j_=(e,t,_,o,s,c,u,g)=>{const d=Ee.useDispatch(),[p,x]=v.useState(!1),[f,A]=v.useState(xs),[T,P]=v.useState(!1),[E,k]=v.useState(!1),[C,N]=v.useState(bt.Teacher),[L,D]=v.useState([]),[O,R]=v.useState([]),[W,F]=v.useState([]),[Z,G]=v.useState({header:"",titleSelect:"",selectPlaceholder:"",changeTitle:"",changePlaceholder:""}),[H,q]=v.useState(""),[K,ee]=v.useState(""),[xe,Ne]=v.useState(!1),[et,De]=v.useState(0),[le,Ue]=v.useState([]),[re,ge]=v.useState(""),[Te,Pe]=v.useState(!1),[Fe,ht]=v.useState(!1),[Ye,pe]=v.useState(Po),$e=de=>{pe({...Ye,...de})},$t=de=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select students!"}));return}ht(!Fe),A({...xs}),pe({...Po})},Ht=()=>{Pe(!Te),ge("")},It=de=>{le.includes(de)?Ue(le.filter(we=>we!==de)):Ue([...le,de])},Vt=de=>{De(we=>we===de?-1:de)},Xt=de=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select students!"}));return}x(!p),A({...xs})},Zt=(de,we,Ie)=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select students!"}));return}switch(F(de),R(bj_(de,we)),N(we),we){case bt.Teacher:G({header:"switch_teacher",titleSelect:"current_teacher_name",selectPlaceholder:"select_teacher",changeTitle:"select_teacher_change",changePlaceholder:"select_teacher_change"});break;case bt.Assistant:G({header:"switch_assistant",titleSelect:"current_assistant_name",selectPlaceholder:"",changeTitle:"",changePlaceholder:"select_assistant_change"});break;case bt.Counselor:G({header:"switch_counselor",titleSelect:"current_counselor_name",selectPlaceholder:"select_counselor",changeTitle:"select_counselor_change",changePlaceholder:"select_counselor_change"});break;case bt.SecondaryTeacher:G({header:"switch_support_teacher",titleSelect:"current_assistant_name",selectPlaceholder:"",changeTitle:"",changePlaceholder:"select_support_teacher_change"});break}k(!E),D(Ie)},Jt=()=>{D([]),k(!1),Ne(!1),N(bt.Teacher),R([]),q(""),ee(""),G({header:"",titleSelect:"",selectPlaceholder:"",changeTitle:"",changePlaceholder:""}),Ue([])},k_=()=>{Ne(!1),De(0),Ue([])},x_=async(de,we)=>{d(Yt({isOpen:!0,type:"warning",message:`Do you want to change ${we===bt.Teacher?"teacher":we===bt.Assistant?"assistant":we===bt.SecondaryTeacher?"support teacher":"counselor"} for ${de.length} student(s)?`,onConfirm:async()=>{d(ne(!0));try{const Ie=we===bt.Teacher?await fS_(de):we===bt.Assistant?await vS_(de):we===bt.Counselor?await wS_(de):await bS_(de);Ie&&Ie?.data&&(Jt(),s?.(),await u(),d(J({type:"success",message:`Change ${we===bt.Teacher?"teacher":we===bt.Assistant?"assistant":we===bt.SecondaryTeacher?"support teacher":"counselor"} successfully`})))}catch(Ie){d(J({type:"danger",message:Ie.response?.data?.title||Ie.message}))}d(ne(!1))}}))},C_=()=>{let de=[];switch(C){case bt.Teacher:de=W.filter(we=>{const Ie=we.teachers.map(mt=>mt.teacherUserId);return Ie.includes(K)&&!Ie.includes(H)}).map(we=>({studentId:we.studentId,teacher:K,teacherChange:H}));break;case bt.Counselor:de=W.filter(we=>{const Ie=we.counselors.map(mt=>mt.counselorUserId);return Ie.includes(K)&&!Ie.includes(H)}).map(we=>({studentId:we.studentId,counselor:K,counselorChange:H}));break;case bt.Assistant:de=W.filter(we=>we?.assistantUserId&&we?.teachers?.length>0).map(we=>({studentId:we.studentId,assistantUserId:H}));break;case bt.SecondaryTeacher:de=W.filter(we=>we?.secondaryTeacherUserId&&we?.teachers?.length>0).map(we=>({studentId:we.studentId,secondaryTeacherId:H}));break}if(de.length===0){d(J({type:"danger",message:"No change to update!"}));return}x_(de||[],C)},q_=de=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select student(s)!"}));return}P(!T)},g_=(de,we)=>{switch(de){case"assistant":A({...f,assistantId:we.value,assistantEmail:we.label});break;case"secondary":A({...f,secondaryTeacherId:we.value,secondaryTeacherEmail:we.label});break;case"grade":A({...f,gradeLevel:we.value});break}},I_=de=>{A({...f,teacher:de})},Qt=de=>{A({...f,counselors:de})},e_=async de=>{d(ne(!0));try{await os(de),d(J({type:"success",message:"Student assigned successfully"})),s?.(),Jt()}catch(we){d(J({type:"danger",message:we.response?.data?.title||we.message}))}d(ne(!1))},S_=v.useCallback(de=>{if(de.length===0){d(J({type:"danger",message:"Not found selected student."}));return}if(de.some(mt=>{const Ge=e?.[mt],z=t?.[mt],Se=_?.[mt],Xe=o?.[mt];return!Ge&&!z&&!Se&&!Xe})){d(J({type:"danger",message:"Please select/add teacher for all selected student first."}));return}const Ie=de.map(mt=>{const Ge=e?.[mt],z=t?.[mt],Se=_?.[mt],Xe=o?.[mt],lt={id:mt};return Ge&&(lt.mainTeacherUserId=Ge?Ge.map(Ut=>Ut.value):void 0,lt.mainTeacherEmail=Ge?Ge.map(Ut=>Ut.label):void 0),z&&(lt.assistantUserId=z?.value&&typeof z?.value=="string"?z?.value:void 0,lt.assistantEmail=z?.value&&typeof z?.value=="number"?z?.label:void 0),Se&&(lt.counselorUserIds=Se?Se.map(Ut=>Ut.value):void 0,lt.counselorEmails=Se?Se.map(Ut=>Ut.label):void 0),Xe&&(lt.secondaryTeacherUserId=Xe?.value&&typeof Xe?.value=="string"?Xe?.value:void 0,lt.secondaryTeacherEmail=Xe?.value&&typeof Xe?.value=="number"?Xe?.label:void 0),lt});e_([...Ie])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_),JSON.stringify(o)]),t_=v.useCallback(de=>{const we=e?.[de],Ie=t?.[de],mt=_?.[de],Ge=o?.[de];if(!we&&!Ie&&!mt&&!Ge){d(J({type:"danger",message:"Please select/add teacher for selected student first."}));return}const z={id:de};we&&(z.mainTeacherUserId=we?we.map(Se=>Se.value):void 0,z.mainTeacherEmail=we?we.map(Se=>Se.label):void 0),Ie&&(z.assistantUserId=Ie?.value&&typeof Ie?.value=="string"?Ie?.value:void 0,z.assistantEmail=Ie?.value&&typeof Ie?.value=="number"?Ie?.label:void 0),mt&&(z.counselorUserIds=mt?mt.map(Se=>Se.value):void 0,z.counselorEmails=mt?mt.map(Se=>Se.label):void 0),Ge&&(z.secondaryTeacherUserId=Ge?.value&&typeof Ge?.value=="string"?Ge?.value:void 0,z.secondaryTeacherEmail=Ge?.value&&typeof Ge?.value=="number"?Ge?.label:void 0),e_([z])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_),JSON.stringify(o)]),i_=async de=>{if(de.length===0){d(J({type:"danger",message:"Not found selected student."}));return}if(f.teacher.length===0&&f.counselors.length===0&&!f.assistantId&&!f.secondaryTeacherId){d(J({type:"danger",message:"No change to assign!"}));return}const we=g?.filter(Ie=>de?.includes(Ie.id))?.every(Ie=>Array.isArray(Ie.teachers)&&Ie.teachers.length>0)??!1;if(f.teacher.length===0&&!we){d(J({type:"danger",message:"Please assign a teacher to each student before giving other educators access to them"}));return}d(ne(!0));try{if(f.teacher.length>0&&g&&g.length>0){const Ge=g.filter(z=>de.includes(z.id)).map(z=>{const Se=z.teachers?.map(lt=>lt.teacherUserId)||[],Xe=f.teacher.filter(lt=>!Se.includes(lt.id));return{id:z.id,mainTeacherUserId:Xe.map(lt=>lt.id),mainTeacherEmail:Xe.map(lt=>lt.email)}}).filter(z=>z.mainTeacherUserId.length>0||z.mainTeacherEmail.length>0);Ge.length>0&&await os(Ge)}if(f.counselors.length>0&&g&&g.length>0){const Ge=g.filter(z=>de.includes(z.id)).map(z=>{const Se=z.counselors?.map(lt=>lt.counselorUserId)||[],Xe=f.counselors.filter(lt=>!Se.includes(lt.id));return{id:z.id,counselorUserIds:Xe.map(lt=>lt.id),counselorEmails:Xe.map(lt=>lt.email)}}).filter(z=>z.counselorUserIds.length>0||z.counselorEmails.length>0);Ge.length>0&&await os(Ge)}const Ie=g?.filter(Ge=>!Ge.assistantUserId);if(Ie&&Ie?.length>0&&f.assistantId){const Ge=Ie.map(z=>({id:z.id,assistantUserId:f.assistantId,assistantEmail:f.assistantEmail}));await os(Ge.filter(z=>z!==void 0))}const mt=g?.filter(Ge=>!Ge.secondaryTeacherUserId);if(mt&&mt?.length>0&&f.secondaryTeacherId){const Ge=mt.map(z=>({id:z.id,secondaryTeacherUserId:f.secondaryTeacherId,secondaryTeacherEmail:f.secondaryTeacherEmail}));await os(Ge.filter(z=>z!==void 0))}d(J({type:"success",message:"Student assigned successfully"})),s?.(),Jt(),Xt()}catch(Ie){d(J({type:"danger",message:Ie.response?.data?.title||Ie.message}))}d(ne(!1))},yt=async de=>{if(f.teacher.length===0){d(J({type:"danger",message:"Please select teacher before assign!"}));return}if(le.length>0&&!de){Pe(!0);return}const we={id:c?.id||"",mainTeacherUserId:f.teacher.filter(Ie=>!c?.teachers?.some(mt=>mt.teacherUserId===Ie.id)).map(Ie=>Ie.id)||[],mainTeacherEmail:f.teacher.filter(Ie=>!c?.teachers?.some(mt=>mt.teacherUserId===Ie.id)).map(Ie=>Ie.email)||[],assistantUserId:f?.assistantId?f?.assistantId:void 0,assistantEmail:f?.assistantEmail?f?.assistantEmail:void 0,counselorUserIds:f.counselors.map(Ie=>Ie.id)||[],counselorEmails:f.counselors.map(Ie=>Ie.email)||[],secondaryTeacherUserId:f?.secondaryTeacherId?f?.secondaryTeacherId:void 0,secondaryTeacherEmail:f?.secondaryTeacherEmail?f?.secondaryTeacherEmail:void 0,removeTeacherUserIds:le,teacherSwitchUserId:de||""};f?.gradeLevel&&f.gradeLevel!==c?.gradeLevel&&await yS_(c?.id||"",f?.gradeLevel),e_([we])},p_=async(de,we)=>{d(ne(!0));try{(await sS_(de)).status==200&&(d(J({type:"success",message:`Inactive ${de.length} Students successfully`})),we())}catch(Ie){d(J({type:"danger",message:Ie.response?.data?.title||Ie.message}))}P(!T),d(ne(!1))},r_=v.useCallback(async de=>{if(Ye.assistantRemoveUserId.length&&!Ye.assistantSwitchDataUserId){d(J({type:"danger",message:"Please select an assistant to transfer data!"}));return}if(Ye.teacherRemoveUserIds.length&&!Ye.teacherSwitchDataUserId){d(J({type:"danger",message:"Please select a teacher to transfer data!"}));return}if(Ye.counselorRemoveUserIds.length&&!Ye.counselorSwitchDataUserId){d(J({type:"danger",message:"Please select a counselor to transfer data!"}));return}if(Ye.supportTeacherRemoveUserIds.length&&!Ye.supportTeacherSwitchDataUserId){d(J({type:"danger",message:"Please select a support teacher to transfer data!"}));return}d(ne(!0));try{await CS_({...Ye,studentUserIds:de||[]}),s?.(),await u()}catch(we){d(J({type:"danger",message:we.response?.data?.title||we.message}))}$t(),d(ne(!1))},[Ye]);return v.useEffect(()=>(c?.id&&A({teacher:c?.teachers?.map(de=>({id:de.teacherUserId,email:de.mainTeacherEmail})),assistantId:c?.assistantUserId,assistantEmail:c?.assistantEmail,counselors:c?.counselors?.map(de=>({id:de.counselorUserId,email:de.counselorEmail})),secondaryTeacherEmail:c?.secondaryTeacherEmail,secondaryTeacherId:c?.secondaryTeacherUserId,gradeLevel:c?.gradeLevel}),()=>{A(xs)}),[c]),{handleAssignSingleStudent:t_,handleAssignMultiStudent:S_,openModelBulk:p,handleToggleModel:Xt,handleChangeStaffBulk:g_,staffBulkAssign:f,onAssignStaffToStudents:i_,handleToggleInactiveModal:q_,openInactiveModal:T,handleInactiveStudents:p_,handleChangeTeacherBulk:I_,handleEditAssignForStudents:yt,handleToggleSwitchModel:Zt,openSwitchModal:E,optionsSwitch:L,modalType:C,textModal:Z,teacherSwitchList:O,onCloseSwitchModal:Jt,handleUpdateSwitch:C_,setTeacherChangeUserId:q,setTeacherSelectForChangeUserId:ee,teacherSelectForChangeUserId:K,openDetailModal:xe,setOpenDetailModal:Ne,toggleCollapse:Vt,activeIndex:et,handleChangeCounselorBulk:Qt,onClose:k_,removeTeacherUserIds:le,onSelectRemoveTeacher:It,openModelSwitchDataTeacher:Te,onToggleModelSwitchDataTeacher:Ht,teacherSwitchUserId:re,setTeacherSwitchUserId:ge,onToggleModelDeleteBulk:$t,openModelDeleteBulk:Fe,handelChangeStaffRemove:$e,switchStaffUsers:Ye,handleRemoveBulkStaff:r_}};function kj_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M228.9 79.9L51.8 403.1C40.6 423.3 55.5 448 78.9 448h354.3c23.3 0 38.2-24.7 27.1-44.9L283.1 79.9c-11.7-21.2-42.5-21.2-54.2 0zM273.6 214L270 336h-28l-3.6-122h35.2zM256 402.4c-10.7 0-19.1-8.1-19.1-18.4s8.4-18.4 19.1-18.4 19.1 8.1 19.1 18.4-8.4 18.4-19.1 18.4z"}}]})(e)}const xj_=e=>{const{textModal:t,isOpen:_,teachers:o,options:s,onClose:c,onSave:u,modalType:g,setTeacherChangeUserId:d,setTeacherSelectForChangeUserId:p,teacherSelectForChangeUserId:x}=e,{t:f}=at.useTranslation();return n.jsxs(w.Modal,{centered:!0,isOpen:_,toggle:c,zIndex:1201,children:[n.jsx(w.ModalHeader,{className:V["header-assign-for-student"],children:f(t.header)}),n.jsxs(w.ModalBody,{children:[g!==bt.Assistant||g!==bt.SecondaryTeacher&&n.jsxs(v.Fragment,{children:[n.jsx("div",{children:f(t.titleSelect)}),n.jsx("ul",{style:{maxHeight:200,overflow:"auto"},children:o.map(A=>n.jsxs("li",{children:[A.name,"-",A.label]},A.label))})]}),(g===bt.Teacher||g===bt.Counselor)&&n.jsxs(v.Fragment,{children:[n.jsx("div",{children:f(t.selectPlaceholder)}),n.jsx(Dt,{options:o,value:o.filter(A=>A.value===x),placeholder:f(t.selectPlaceholder),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:A=>{p(A.value)},isClearable:!0,style:{maxWidth:120}})]}),n.jsx("div",{children:f(t.changeTitle)}),n.jsx(J_,{options:s,onChange:A=>{g!==bt.SecondaryTeacher?d(A.value):d(A.id)},placeholder:f(t.changePlaceholder),className:"flex-grow-1 mb-3"})]}),n.jsxs(w.ModalFooter,{className:"textModal-right",children:[n.jsx(w.Button,{onClick:()=>c(!1),children:f("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>{u()},children:f("save")})]})]})},Cj_=v.forwardRef(xj_),Ij_=({openDetailModal:e,onClose:t,selectedUser:_,staffBulkAssign:o,teacherOptions:s,handleChangeTeacherBulk:c,handleChangeCounselorBulk:u,assistantOptions:g,counselorOptions:d,secondaryTeacherOptions:p,handleChangeStaffBulk:x,handleEditAssignForStudents:f,toggleCollapse:A,activeIndex:T})=>{const{t:P}=at.useTranslation(),E=[_?.teachers||[],_?.counselors||[]];return n.jsxs(w.Modal,{centered:!0,isOpen:e,toggle:()=>t(),zIndex:1201,children:[n.jsxs(w.ModalHeader,{className:V["header-assign-for-student"],children:[n.jsxs("div",{children:["Assign student ",_?.fullName]}),n.jsxs("div",{children:["Grade ",_?.gradeLevel]})]}),n.jsxs(w.ModalBody,{children:[E.map((k,C)=>n.jsxs("div",{children:[n.jsxs("button",{type:"button",className:`btn ${V["btn-collapse"]} ${T===C?"btn-link ":""}`,onClick:()=>A(C),children:[P(C===0?"current_teacher_name":"current_counselor_name")," ",`(${k.length})`," ",n.jsx("i",{className:`fa fa-angle-${T===C?"up":"down"}`})]}),n.jsx(w.Collapse,{isOpen:T===C,children:n.jsx(w.Card,{children:n.jsx(w.CardBody,{children:k.length>0?k.map(N=>C===0?n.jsxs("li",{children:[N.mainTeacherName," - ",N.mainTeacherEmail]},N.mainTeacherEmail):n.jsxs("li",{children:[N.counselorName," - ",N.counselorEmail]},N.counselorUserId)):n.jsx("div",{children:P("no_data")})})})})]},C)),n.jsx("div",{children:P("teacher_email")}),n.jsx(Dt,{isMulti:!0,value:o.teacher.filter(k=>!_.teachers?.some(C=>C.teacherUserId===k.id)).map(k=>({label:k.email,value:k.id})),options:s.filter(k=>!_.teachers?.some(C=>C.teacherUserId===k.value)),placeholder:P("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:k=>{const C=k.map(N=>({id:N.value,email:N.label}));c(C)},isClearable:!0,style:{maxWidth:120}}),n.jsx("div",{children:P("assistant_email")}),n.jsx(J_,{value:g.find(k=>k.value==o.assistantId||k.label==o.assistantEmail)||null,options:g,onChange:k=>{x("assistant",k)},placeholder:P("select_assistant"),className:"flex-grow-1 mb-3"}),n.jsx("div",{children:P("counselor_email")}),n.jsx(Dt,{isMulti:!0,value:o.counselors.filter(k=>!_.counselors?.some(C=>C.counselorUserId===k.id)).map(k=>({label:k.email,value:k.id})),options:d.filter(k=>!_.counselors?.some(C=>C.counselorUserId===k.value)),placeholder:P("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:k=>{const C=k.map(N=>({id:N.value,email:N.label}));u(C)},isClearable:!0,style:{maxWidth:120}}),n.jsx("div",{children:P("support_teacher_email")}),n.jsx(J_,{value:p.find(k=>k.value==o.secondaryTeacherId||k.label==o.secondaryTeacherEmail)||null,options:p,onChange:k=>{x("secondary",k)},placeholder:P("select_support_teacher"),className:"flex-grow-1"}),n.jsx("div",{children:P("grade")}),n.jsx(u_,{value:jo.find(k=>k.value===o.gradeLevel),options:jo,placeholder:P("select_grade"),className:"flex-grow-1 mb-3",onChange:k=>{x("grade",k)},styles:{container:k=>({...k,maxWidth:120})}})]}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>t(),children:P("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>{f()},children:P("save")})]})]})},Sj_=({open:e,onClose:t,teachers:_,onConfirm:o,teacherSwitchUserId:s,setTeacherSwitchUserId:c})=>{const{t:u}=at.useTranslation();return n.jsxs(w.Modal,{centered:!0,isOpen:e,toggle:()=>t(),zIndex:1201,children:[n.jsx(w.ModalHeader,{className:V["header-assign-for-student"],children:n.jsx("div",{children:"Select teacher switch data"})}),n.jsx(w.ModalBody,{className:"p-0",children:n.jsx("div",{className:V["switch-data-teachers"],children:_.map(g=>n.jsx("p",{onClick:()=>c(g.teacherUserId),className:`${V["switch-data-teacher-item"]} ${g.teacherUserId==s?V["item-checked"]:""}`,children:g.mainTeacherName}))})}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>t(),children:u("cancel")}),n.jsx(w.Button,{disabled:!s,color:"primary",onClick:async()=>{await o(s),t()},children:u("save")})]})]})},Aj_=({teachers:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select teacher to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.teacherRemoveUserIds.includes(s.value))||[],options:e.filter(s=>!_.teacherRemoveUserIds.includes(s.value)&&s.value!==_.teacherSwitchDataUserId)||[],placeholder:o("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({teacherRemoveUserIds:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the teacher to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.teacherSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.teacherRemoveUserIds.includes(s.value)&&s.value!==_.teacherSwitchDataUserId)||[],placeholder:o("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{console.log("value",s),t({teacherSwitchDataUserId:s?.value})},isClearable:!0})]})},Ej_=({counselors:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select counselor to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.counselorRemoveUserIds.includes(s.value))||[],options:e.filter(s=>!_.counselorRemoveUserIds.includes(s.value)&&s.value!==_.counselorSwitchDataUserId)||[],placeholder:o("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({counselorRemoveUserIds:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the counselor to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.counselorSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.counselorRemoveUserIds.includes(s.value)&&s.value!==_.counselorSwitchDataUserId)||[],placeholder:o("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-counselor-select"]}`,onChange:s=>{t({counselorSwitchDataUserId:s?.value})},isClearable:!0})]})},Tj_=({tabs:e})=>{const{t}=at.useTranslation(),[_,o]=v.useState(0),s=u=>{o(u)},c=()=>n.jsx(w.Row,{children:n.jsxs(w.Col,{xl:12,children:[n.jsx(w.Nav,{tabs:!0,children:e.map((u,g)=>{const d=g===_;return n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${d?"active":""} cursor-pointer`,onClick:()=>s(g),style:{color:d?"#316CD9":"#242424"},children:t(u.title)})},g)})}),n.jsx(w.TabContent,{activeTab:_,className:"border-bottom-0 border-left-0 border-right-0 p-3",children:e.map((u,g)=>n.jsx(w.TabPane,{tabId:g,children:n.jsx(u.component,{})},g))})]})});return n.jsx("div",{className:"animated fadeIn",children:c()})},jj_=({assistants:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select assistant to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.assistantRemoveUserId.includes(s.value))||[],options:e.filter(s=>!_.assistantRemoveUserId.includes(s.value)&&s.value!==_.assistantSwitchDataUserId)||[],placeholder:o("select_assistant"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({assistantRemoveUserId:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the assistant to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.assistantSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.assistantRemoveUserId.includes(s.value)&&s.value!==_.assistantSwitchDataUserId)||[],placeholder:o("select_assistant"),className:`flex-grow-1 mb-3 ${V["custom-chip-assistant-select"]}`,onChange:s=>{console.log("value",s),t({assistantSwitchDataUserId:s?.value})},isClearable:!0})]})},Nj_=({secondaryTeachers:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select support teacher to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.supportTeacherRemoveUserIds.includes(s.value))||[],options:e.filter(s=>!_.supportTeacherRemoveUserIds.includes(s.value)&&s.value!==_.supportTeacherSwitchDataUserId)||[],placeholder:o("select_support_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({supportTeacherRemoveUserIds:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the support teacher to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.supportTeacherSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.supportTeacherRemoveUserIds.includes(s.value)&&s.value!==_.supportTeacherSwitchDataUserId)||[],placeholder:o("select_support_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({supportTeacherSwitchDataUserId:s?.value})},isClearable:!0})]})},Pj_=({open:e,onClose:t,teachers:_,onChangeStaffRemove:o,switchStaffUsers:s,assistants:c,onRemoveBulkStaff:u,counselors:g,studentUserIds:d,secondaryTeachers:p})=>{const{t:x}=at.useTranslation(),f=[{title:"Remove Teacher",component:()=>n.jsx(Aj_,{teachers:_,onChangeStaffRemove:o,switchStaffUsers:s})},{title:"Remove Assistant",component:()=>n.jsx(jj_,{assistants:c,onChangeStaffRemove:o,switchStaffUsers:s})},{title:"Remove Counselor",component:()=>n.jsx(Ej_,{counselors:g,onChangeStaffRemove:o,switchStaffUsers:s})},{title:"Remove Support Teacher",component:()=>n.jsx(Nj_,{secondaryTeachers:p,onChangeStaffRemove:o,switchStaffUsers:s})}];return n.jsxs(w.Modal,{size:"lg",centered:!0,isOpen:e,toggle:()=>t(),zIndex:1201,children:[n.jsx(w.ModalHeader,{className:`${V["header-assign-for-student"]} border-0`,children:n.jsx("div",{children:"Remove Bulk"})}),n.jsx(w.ModalBody,{className:"p-0",children:n.jsx(Tj_,{tabs:f})}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>t(),children:x("cancel")}),n.jsx(w.Button,{disabled:!s.teacherRemoveUserIds.length&&!s.assistantRemoveUserId&&!s.counselorRemoveUserIds.length,color:"primary",onClick:async()=>{await u(d)},children:"Remove"})]})]})},qj_=()=>{const{t:e}=at.useTranslation(),{selectedTeachers:t,teacherOptions:_,setSelectedTeachers:o}=vj_(),{selectedAssistants:s,assistantOptions:c,setSelectedAssistants:u}=fj_(),{selectedCounselors:g,counselorOptions:d,setSelectedCounselors:p}=yj_(),{selectedSecondaryTeachers:x,secondaryTeacherOptions:f,setSelectedSecondaryTeachers:A}=wj_(),{isCheck:T,isCheckAll:P,userList:E,filters:k,totalItem:C,handleClickCheck:N,handleSelectAll:L,changeFilters:D,fullName:O,handleRetrievedData:R,selectedUser:W,setSelectedUser:F,getDataUserList:Z,userSelected:G,studentTeacherSelected:H,studentCounselorSelected:q,studentAssistantSelected:K,studentSecondaryTeacherSelected:ee}=pj_(),xe=()=>{R(),o(void 0),u(void 0),p(void 0),A(void 0)},{openModelBulk:Ne,handleToggleModel:et,staffBulkAssign:De,handleChangeStaffBulk:le,onAssignStaffToStudents:Ue,handleToggleInactiveModal:re,openInactiveModal:ge,handleInactiveStudents:Te,handleChangeTeacherBulk:Pe,handleChangeCounselorBulk:Fe,handleEditAssignForStudents:ht,modalType:Ye,openSwitchModal:pe,optionsSwitch:$e,textModal:$t,teacherSwitchList:Ht,onCloseSwitchModal:It,handleUpdateSwitch:Vt,setTeacherChangeUserId:Xt,setTeacherSelectForChangeUserId:Zt,teacherSelectForChangeUserId:Jt,openDetailModal:k_,setOpenDetailModal:x_,toggleCollapse:C_,activeIndex:q_,onClose:g_,removeTeacherUserIds:I_,openModelSwitchDataTeacher:Qt,onToggleModelSwitchDataTeacher:e_,teacherSwitchUserId:S_,setTeacherSwitchUserId:t_,onToggleModelDeleteBulk:i_,openModelDeleteBulk:yt,handelChangeStaffRemove:p_,switchStaffUsers:r_,handleRemoveBulkStaff:de}=$j_(t,s,g,x,xe,W,Z,G),we=[{name:"",isCenter:!0,onSelectAll:L,isCheckAll:P,className:`align-top ${V["fixed-width-40"]}`},{name:"student_name",isCenter:!0,sortBy:kt.Name,searchBy:Mt.Name,className:`align-top ${V["fixed-width"]}`,getOption:z=>({label:z||"empty",value:z})},{name:"grade",isCenter:!0,sortBy:kt.Grade,searchBy:Mt.Grade,className:`align-center justify-center ${V["fixed-width-80"]}`,getOption:z=>({label:z||"empty",value:z})},{name:"teacher_emails",isCenter:!0,className:"align-center justify-center",sortBy:kt.Teacher,searchBy:Mt.Teacher,getOption:z=>({label:z||"empty",value:z})},{name:"assistant_email",isCenter:!0,className:"align-center justify-center",sortBy:kt.Assistant,searchBy:Mt.Assistant,getOption:z=>({label:z||"empty",value:z})},{name:"counselor_emails",isCenter:!0,className:"align-center justify-center",sortBy:kt.Counselor,searchBy:Mt.Counselor,getOption:z=>({label:z||"empty",value:z})},{name:"support_teacher_email",isCenter:!0,className:"align-center justify-center",sortBy:kt.SecondaryTeacher,searchBy:Mt.SecondaryTeacher,getOption:z=>({label:z||"empty",value:z})}],[Ie,mt]=v.useState(null),Ge=z=>{mt(Se=>Se===z?null:z)};return n.jsxs("div",{className:"fadeIn animated",children:[n.jsx("h5",{className:"mt-4 mb-2",children:e("assign_student")}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:3,children:n.jsx(K_,{initValue:k?.searchString||"",onSearch:z=>D({searchString:z}),placeholder:e("type_something_to_search_students")})}),n.jsx(w.Col,{md:8,className:"d-flex justify-content-end align-items-center",children:n.jsx(w.Row,{className:"mb-2",children:n.jsxs(w.Col,{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:4},children:[n.jsx(w.Button,{onClick:()=>et(T),color:"primary",style:{background:"#316cd9"},children:e("assign_bulk")}),n.jsx(w.Button,{onClick:()=>i_(T),color:"primary",style:{background:"#316cd9"},children:e("delete_bulk")}),n.jsx(w.Button,{onClick:()=>re(T),color:"primary",style:{background:"#316cd9"},children:e("inactive_students")})]})})}),n.jsxs(w.Col,{md:1,className:"d-flex justify-content-end align-items-center",style:{whiteSpace:"nowrap",flexWrap:"nowrap"},children:[e("total_of_users"),": ",C]})]}),n.jsxs(w.Modal,{centered:!0,isOpen:Ne,toggle:()=>et(),zIndex:1201,children:[n.jsx(w.ModalHeader,{children:e("assign_bulk_student")}),n.jsxs(w.ModalBody,{children:[n.jsx(Dt,{isMulti:!0,value:De.teacher.map(z=>({label:z.email,value:z.id})),options:_,placeholder:e("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:z=>{const Se=z.map(Xe=>({id:Xe.value,email:Xe.label}));Pe(Se)},isClearable:!0,style:{maxWidth:120}}),n.jsx(J_,{value:c.find(z=>z.value==De.assistantId||z.label==De.assistantEmail)||null,options:c,onChange:z=>le("assistant",z),placeholder:e("select_assistant"),className:"flex-grow-1 mb-3"}),n.jsx(Dt,{isMulti:!0,value:De.counselors.map(z=>({label:z.email,value:z.id})),options:d,placeholder:e("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:z=>{const Se=z.map(Xe=>({id:Xe.value,email:Xe.label}));Fe(Se)},isClearable:!0,style:{maxWidth:120}}),n.jsx(J_,{value:f.find(z=>z.value==De.secondaryTeacherId||z.label==De.secondaryTeacherEmail)||null,options:f,onChange:z=>le("secondary",z),placeholder:e("select_support_teacher"),className:"flex-grow-1"})]}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>et(),children:e("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>Ue(T),children:e("assign")})]})]}),n.jsxs(w.Modal,{centered:!0,isOpen:ge,toggle:()=>re(),zIndex:1201,children:[n.jsx(w.ModalHeader,{children:e("inactive_students")}),n.jsxs(w.ModalBody,{style:{display:"flex",gap:12},children:[n.jsx(kj_,{color:"red",size:30}),n.jsx(w.CardText,{style:{fontSize:20,margin:0,display:"flex",alignItems:"center"},children:e("are_you_sure_you_want_to_inactive_students",{number:T.length})})]}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>re(),children:e("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>Te(T,xe),children:e("confirm")})]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:12,children:n.jsx("div",{children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,size:"sm",className:`${V["table-fixed"]}`,children:[n.jsx("thead",{children:n.jsx(Xi,{headers:we,filters:k,fullName:O,onChangeFilters:D,teacherOptions:_,assistantOptions:c,counselorOptions:d,secondaryTeacherOptions:f})}),E&&E.length>0?n.jsx("tbody",{children:E.map((z,Se)=>n.jsxs("tr",{children:[n.jsx("td",{className:`align-middle text-center ${V["fixed-width-40"]}`,children:n.jsx("input",{id:z.id,type:"checkbox",onChange:N,checked:T.includes(z.id)})}),n.jsxs("td",{className:`align-middle ${V["fixed-width"]}`,id:`student_name_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_name_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_name_${z.id}_${Se}`),children:[n.jsx("button",{type:"button",className:`${V["button-user-name"]} btn-link`,onClick:()=>{F(z),x_(!0)},children:z.fullName}),n.jsx(w.Tooltip,{placement:"top",isOpen:Ie===`student_name_${z.id}_${Se}`,target:`student_name_${z.id}_${Se}`,children:z.fullName})]}),n.jsx("td",{className:`align-middle ${V["fixed-width"]}`,id:`student_email_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_email_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_email_${z.id}_${Se}`),children:n.jsx("p",{children:z.gradeLevel})}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_teacher_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_teacher_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_teacher_${z.id}_${Se}`),children:[!!z.teachers&&z.teachers.length>0&&n.jsx(v.Fragment,{children:z.teachers.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.mainTeacherName," - ",Xe.mainTeacherEmail]},Xe.mainTeacherEmail))}),!!z.teachers&&z.teachers.length>0&&n.jsx(w.Tooltip,{placement:"top",isOpen:Ie===`student_teacher_${z.id}_${Se}`,target:`student_teacher_${z.id}_${Se}`,children:z.teachers.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.mainTeacherName," - ",Xe.mainTeacherEmail]},Xe.mainTeacherEmail))})]}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_assistant_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_assistant_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_assistant_${z.id}_${Se}`),children:[!!z.assistantEmail&&n.jsxs("p",{className:"mb-0",children:[z.assistantName," - ",z.assistantEmail]}),!!z.assistantEmail&&n.jsxs(w.Tooltip,{placement:"top",isOpen:Ie===`student_assistant_${z.id}_${Se}`,target:`student_assistant_${z.id}_${Se}`,children:[z.assistantName,"-",z.assistantEmail]})]}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_counselor_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_counselor_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_counselor_${z.id}_${Se}`),children:[!!z.counselors&&z.counselors.length>0&&n.jsx(v.Fragment,{children:z.counselors.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.counselorName," - ",Xe.counselorEmail]},Xe.counselorUserId))}),!!z.counselors&&z.counselors.length>0&&n.jsx(w.Tooltip,{placement:"top",isOpen:Ie===`student_counselor_${z.id}_${Se}`,target:`student_counselor_${z.id}_${Se}`,children:z.counselors.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.counselorName," - ",Xe.counselorEmail]},Xe.counselorUserId))})]}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_secondary_teacher_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_secondary_teacher_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_secondary_teacher_${z.id}_${Se}`),children:[!!z.secondaryTeacherEmail&&n.jsxs("p",{className:"mb-0",children:[z.secondaryTeacherName," - ",z.secondaryTeacherEmail]}),!!z.secondaryTeacherEmail&&n.jsxs(w.Tooltip,{placement:"top",isOpen:Ie===`student_secondary_teacher_${z.id}_${Se}`,target:`student_secondary_teacher_${z.id}_${Se}`,children:[z.secondaryTeacherName," - ",z.secondaryTeacherEmail]})]})]},z.id))}):n.jsx("div",{style:{width:"max-content",padding:20},children:e("no_data")})]})})}),n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:k,totalRecordCount:C,changePageSize:z=>D({pageSize:z}),changePage:z=>D({currentPage:z})})})]}),n.jsx(Ij_,{openDetailModal:k_,onClose:g_,selectedUser:W,staffBulkAssign:De,teacherOptions:_,handleChangeTeacherBulk:Pe,handleChangeCounselorBulk:Fe,assistantOptions:c,counselorOptions:d,secondaryTeacherOptions:f,handleChangeStaffBulk:le,handleEditAssignForStudents:ht,toggleCollapse:C_,activeIndex:q_}),n.jsx(Cj_,{textModal:$t,isOpen:pe,teachers:Ht,options:$e,onClose:It,onSave:Vt,modalType:Ye,setTeacherChangeUserId:Xt,setTeacherSelectForChangeUserId:Zt,teacherSelectForChangeUserId:Jt}),n.jsx(Sj_,{open:Qt,onClose:e_,teachers:W?.teachers?.filter(z=>!I_.includes(z.teacherUserId))||[],onConfirm:ht,teacherSwitchUserId:S_,setTeacherSwitchUserId:t_}),n.jsx(Pj_,{open:yt,onClose:i_,teachers:H,onChangeStaffRemove:p_,switchStaffUsers:r_,counselors:q,assistants:K,onRemoveBulkStaff:de,studentUserIds:T,secondaryTeachers:ee})]})},Rj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState(Vi),[o,s]=v.useState([]),[c,u]=v.useState(""),g=async()=>{try{const p=await A4_();s(p.data)}catch(p){e(J({type:"danger",message:p.response?.data?.title||p.message}))}},d=o.map(p=>({label:`${p.name} - ${p.email}`,value:p.id}));return v.useEffect(()=>{t.roles?.includes("Teacher")&&g()},[t]),{userChoiced:t,setUserChoiced:_,teacherList:o,options:d,setTeacherChangeId:u,teacherChangeId:c}},Lj_="User deleted list",Mj_=()=>{const{userChoiced:e,setUserChoiced:t,options:_,teacherChangeId:o,setTeacherChangeId:s}=Rj_(),[c,u]=v.useState([]),[g,d]=v.useState(0),{filters:p,changeFilters:x}=Ws(),f=Ee.useDispatch(),A=v.useRef(null),T=()=>{A&&A.current&&A.current.toggle()},P=()=>{s(""),t(Vi)},E=v.useCallback(async()=>{f(ne(!0));try{const C=await S4_(p),{items:N,totalItems:L}=C.data;u(N),d(L)}catch(C){f(J({type:"danger",message:C.response?.data?.title||C.message}))}f(ne(!1))},[f,p]);v.useEffect(()=>{document.title=Lj_},[]),v.useEffect(()=>{E()},[p]);const k=v.useCallback(C=>{f(Yt({isOpen:!0,type:"warning",message:"Do you want to remove this user?",onConfirm:async()=>{f(ne(!0));try{e.roles.includes("Teacher")?await wo(C,o):await wo(C),f(J({type:"success",message:"Remove user successfully"})),T(),P(),x({currentPage:1})}catch(N){f(J({type:"danger",message:N.response?.data?.title||N.message}))}f(ne(!1))}}))},[p,o,e]);return{userList:c,totalItems:g,filters:p,getData:E,removeData:k,changeFilters:x,modal:A,openModal:T,userChoiced:e,setUserChoiced:t,options:_,teacherChangeId:o,setTeacherChangeId:s,resetData:P}},Dj_=(e,t)=>{const{header:_,removeData:o,resetData:s,userChoiced:c,options:u,teacherChangeId:g,setTeacherChangeId:d}=e,{t:p}=at.useTranslation(),x=()=>{var f=window.location.origin+"/api/ExportDataUser/"+c.id;window.open(f)};return n.jsx(Xs,{header:_,ref:t,onCancel:()=>{s()},children:n.jsx(w.Row,{children:n.jsxs(w.Col,{md:12,className:"mb-2",children:[n.jsx("p",{children:p("export_user_data")}),n.jsx("div",{className:"pb-3",children:n.jsx(w.Button,{color:"success",onClick:()=>{x()},style:{color:"#fff"},children:p("download_users_data")})}),n.jsx("p",{children:"Delete user"}),!!c&&n.jsxs("div",{children:[c.roles.includes("Student")&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),style:{color:"#fff"},children:p("delete_user")})]}),c.roles.includes("Admin")&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),children:p("delete_user")})]}),c.roles.includes("Teacher")&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"warning",children:p("alert_delete_user")}),n.jsx(Dt,{options:u,defaultValue:g,placeholder:"select_teacher_change",onChange:f=>d(f.value)}),!!g&&n.jsxs("div",{className:"mt-2",children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),children:p("delete_user")})]})]}),(c.roles.includes("Parent")||c.roles.includes("Counselor")||c.roles.includes("SecondaryTeacher"))&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),children:p("delete_user")})]})]})]})})})},Bj_=v.forwardRef(Dj_),Oj_="user_deleted",Gj_=()=>{const{userList:e,totalItems:t,filters:_,changeFilters:o,removeData:s,openModal:c,modal:u,userChoiced:g,setUserChoiced:d,options:p,teacherChangeId:x,setTeacherChangeId:f,resetData:A}=Mj_(),{t:T}=at.useTranslation(),P=E=>{E&&d(E),c()};return n.jsxs("div",{className:"fadeIn animated",children:[n.jsx("h5",{className:"mt-4 mb-2",children:T(Oj_)}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:8,children:n.jsx(K_,{initValue:_.searchString,onSearch:E=>o({searchString:E}),placeholder:T("type_something_to_search_reflection_result")})}),n.jsxs(w.Col,{md:4,className:"d-flex justify-content-end align-items-center",children:[T("total_of_users"),": ",t]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:12,children:e&&e.length>0?n.jsx("div",{children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"align-top",children:T("name")}),n.jsx("th",{className:"align-top",children:T("email")}),n.jsx("th",{className:"align-top",children:T("role")})]})}),n.jsx("tbody",{children:e.map(E=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:n.jsx(ms,{label:`${E.fullName}`,onClick:()=>P(E)})}),n.jsx("td",{className:"align-middle",children:E.email}),n.jsx("td",{className:"align-middle",children:!!E.roles&&E.roles.map(k=>k==="SecondaryTeacher"?"SupportTeacher":k).join(", ")})]},E.id))})]})}):n.jsx(Q_,{label:T("user")})}),n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:_,totalRecordCount:t,changePageSize:E=>o({pageSize:E}),changePage:E=>o({currentPage:E})})})]}),n.jsx(Bj_,{ref:u,header:g.fullName,onCancel:()=>{},userChoiced:g,removeData:s,options:p,teacherChangeId:x,setTeacherChangeId:f,resetData:A})]})},zj_={padding:"4px 8px",marginBottom:0,borderRadius:"4px",color:"#fff",fontWeight:500,fontSize:"14px",height:"56px",justifyContent:"center"},As=({htmlFor:e,isDisabled:t,text:_,backgroundColor:o,onClick:s,isClassReflection:c})=>n.jsxs(w.Label,{htmlFor:e,role:"button",tabIndex:0,className:`d-flex align-items-center justfy-content-center mr-2
|
|
18
|
+
`]))),OE_=function(t,_){var o=t.isFocused,s=t.size,c=t.theme,u=c.colors,g=c.spacing.baseUnit;return Le({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:s,lineHeight:1,marginRight:s,textAlign:"center",verticalAlign:"middle"},_?{}:{color:o?u.neutral60:u.neutral20,padding:g*2})},cn=function(t){var _=t.delay,o=t.offset;return qe.jsx("span",{css:qe.css({animation:"".concat(BE_," 1s ease-in-out ").concat(_,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},GE_=function(t){var _=t.innerProps,o=t.isRtl,s=t.size,c=s===void 0?4:s,u=m_(t,TE_);return qe.jsx("div",Oe({},Pt(Le(Le({},u),{},{innerProps:_,isRtl:o,size:c}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),_),qe.jsx(cn,{delay:0,offset:o}),qe.jsx(cn,{delay:160,offset:!0}),qe.jsx(cn,{delay:320,offset:!o}))},zE_=function(t,_){var o=t.isDisabled,s=t.isFocused,c=t.theme,u=c.colors,g=c.borderRadius,d=c.spacing;return Le({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:d.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},_?{}:{backgroundColor:o?u.neutral5:u.neutral0,borderColor:o?u.neutral10:s?u.primary:u.neutral20,borderRadius:g,borderStyle:"solid",borderWidth:1,boxShadow:s?"0 0 0 1px ".concat(u.primary):void 0,"&:hover":{borderColor:s?u.primary:u.neutral30}})},FE_=function(t){var _=t.children,o=t.isDisabled,s=t.isFocused,c=t.innerRef,u=t.innerProps,g=t.menuIsOpen;return qe.jsx("div",Oe({ref:c},Pt(t,"control",{control:!0,"control--is-disabled":o,"control--is-focused":s,"control--menu-is-open":g}),u,{"aria-disabled":o||void 0}),_)},HE_=FE_,VE_=["data"],WE_=function(t,_){var o=t.theme.spacing;return _?{}:{paddingBottom:o.baseUnit*2,paddingTop:o.baseUnit*2}},UE_=function(t){var _=t.children,o=t.cx,s=t.getStyles,c=t.getClassNames,u=t.Heading,g=t.headingProps,d=t.innerProps,p=t.label,x=t.theme,f=t.selectProps;return qe.jsx("div",Oe({},Pt(t,"group",{group:!0}),d),qe.jsx(u,Oe({},g,{selectProps:f,theme:x,getStyles:s,getClassNames:c,cx:o}),p),qe.jsx("div",null,_))},YE_=function(t,_){var o=t.theme,s=o.colors,c=o.spacing;return Le({label:"group",cursor:"default",display:"block"},_?{}:{color:s.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:c.baseUnit*3,paddingRight:c.baseUnit*3,textTransform:"uppercase"})},XE_=function(t){var _=cr(t);_.data;var o=m_(_,VE_);return qe.jsx("div",Oe({},Pt(t,"groupHeading",{"group-heading":!0}),o))},ZE_=UE_,JE_=["innerRef","isDisabled","isHidden","inputClassName"],QE_=function(t,_){var o=t.isDisabled,s=t.value,c=t.theme,u=c.spacing,g=c.colors;return Le(Le({visibility:o?"hidden":"visible",transform:s?"translateZ(0)":""},KE_),_?{}:{margin:u.baseUnit/2,paddingBottom:u.baseUnit/2,paddingTop:u.baseUnit/2,color:g.neutral80})},fr={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},KE_={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Le({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},fr)},eT_=function(t){return Le({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},fr)},tT_=function(t){var _=t.cx,o=t.value,s=cr(t),c=s.innerRef,u=s.isDisabled,g=s.isHidden,d=s.inputClassName,p=m_(s,JE_);return qe.jsx("div",Oe({},Pt(t,"input",{"input-container":!0}),{"data-value":o||""}),qe.jsx("input",Oe({className:_({input:!0},d),ref:c,style:eT_(g),disabled:u},p)))},_T_=tT_,sT_=function(t,_){var o=t.theme,s=o.spacing,c=o.borderRadius,u=o.colors;return Le({label:"multiValue",display:"flex",minWidth:0},_?{}:{backgroundColor:u.neutral10,borderRadius:c/2,margin:s.baseUnit/2})},nT_=function(t,_){var o=t.theme,s=o.borderRadius,c=o.colors,u=t.cropWithEllipsis;return Le({overflow:"hidden",textOverflow:u||u===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},_?{}:{borderRadius:s/2,color:c.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},oT_=function(t,_){var o=t.theme,s=o.spacing,c=o.borderRadius,u=o.colors,g=t.isFocused;return Le({alignItems:"center",display:"flex"},_?{}:{borderRadius:c/2,backgroundColor:g?u.dangerLight:void 0,paddingLeft:s.baseUnit,paddingRight:s.baseUnit,":hover":{backgroundColor:u.dangerLight,color:u.danger}})},wr=function(t){var _=t.children,o=t.innerProps;return qe.jsx("div",o,_)},aT_=wr,iT_=wr;function rT_(e){var t=e.children,_=e.innerProps;return qe.jsx("div",Oe({role:"button"},_),t||qe.jsx(Zn,{size:14}))}var cT_=function(t){var _=t.children,o=t.components,s=t.data,c=t.innerProps,u=t.isDisabled,g=t.removeProps,d=t.selectProps,p=o.Container,x=o.Label,f=o.Remove;return qe.jsx(p,{data:s,innerProps:Le(Le({},Pt(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":u})),c),selectProps:d},qe.jsx(x,{data:s,innerProps:Le({},Pt(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:d},_),qe.jsx(f,{data:s,innerProps:Le(Le({},Pt(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(_||"option")},g),selectProps:d}))},lT_=cT_,dT_=function(t,_){var o=t.isDisabled,s=t.isFocused,c=t.isSelected,u=t.theme,g=u.spacing,d=u.colors;return Le({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},_?{}:{backgroundColor:c?d.primary:s?d.primary25:"transparent",color:o?d.neutral20:c?d.neutral0:"inherit",padding:"".concat(g.baseUnit*2,"px ").concat(g.baseUnit*3,"px"),":active":{backgroundColor:o?void 0:c?d.primary:d.primary50}})},uT_=function(t){var _=t.children,o=t.isDisabled,s=t.isFocused,c=t.isSelected,u=t.innerRef,g=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"option",{option:!0,"option--is-disabled":o,"option--is-focused":s,"option--is-selected":c}),{ref:u,"aria-disabled":o},g),_)},hT_=uT_,mT_=function(t,_){var o=t.theme,s=o.spacing,c=o.colors;return Le({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},_?{}:{color:c.neutral50,marginLeft:s.baseUnit/2,marginRight:s.baseUnit/2})},gT_=function(t){var _=t.children,o=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"placeholder",{placeholder:!0}),o),_)},pT_=gT_,yT_=function(t,_){var o=t.isDisabled,s=t.theme,c=s.spacing,u=s.colors;return Le({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},_?{}:{color:o?u.neutral40:u.neutral80,marginLeft:c.baseUnit/2,marginRight:c.baseUnit/2})},fT_=function(t){var _=t.children,o=t.isDisabled,s=t.innerProps;return qe.jsx("div",Oe({},Pt(t,"singleValue",{"single-value":!0,"single-value--is-disabled":o}),s),_)},wT_=fT_,vT_={ClearIndicator:LE_,Control:HE_,DropdownIndicator:qE_,DownChevron:pr,CrossIcon:Zn,Group:ZE_,GroupHeading:XE_,IndicatorsContainer:AE_,IndicatorSeparator:DE_,Input:_T_,LoadingIndicator:GE_,Menu:mE_,MenuList:pE_,MenuPortal:$E_,LoadingMessage:vE_,NoOptionsMessage:wE_,MultiValue:lT_,MultiValueContainer:aT_,MultiValueLabel:iT_,MultiValueRemove:rT_,Option:hT_,Placeholder:pT_,SelectContainer:xE_,SingleValue:wT_,ValueContainer:IE_},bT_=function(t){return Le(Le({},vT_),t.components)},Xo=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function $T_(e,t){return!!(e===t||Xo(e)&&Xo(t))}function kT_(e,t){if(e.length!==t.length)return!1;for(var _=0;_<e.length;_++)if(!$T_(e[_],t[_]))return!1;return!0}function xT_(e,t){t===void 0&&(t=kT_);var _=null;function o(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];if(_&&_.lastThis===this&&t(s,_.lastArgs))return _.lastResult;var u=e.apply(this,s);return _={lastResult:u,lastArgs:s,lastThis:this},u}return o.clear=function(){_=null},o}function CT_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var IT_=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:CT_},ST_=function(t){return qe.jsx("span",Oe({css:IT_},t))},Zo=ST_,AT_={guidance:function(t){var _=t.isSearchable,o=t.isMulti,s=t.tabSelectsValue,c=t.context,u=t.isInitialFocus;switch(c){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(s?", press Tab to select the option and exit the menu":"",".");case"input":return u?"".concat(t["aria-label"]||"Select"," is focused ").concat(_?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var _=t.action,o=t.label,s=o===void 0?"":o,c=t.labels,u=t.isDisabled;switch(_){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(s,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(c.length>1?"s":""," ").concat(c.join(","),", selected.");case"select-option":return u?"option ".concat(s," is disabled. Select another option."):"option ".concat(s,", selected.");default:return""}},onFocus:function(t){var _=t.context,o=t.focused,s=t.options,c=t.label,u=c===void 0?"":c,g=t.selectValue,d=t.isDisabled,p=t.isSelected,x=t.isAppleDevice,f=function(E,k){return E&&E.length?"".concat(E.indexOf(k)+1," of ").concat(E.length):""};if(_==="value"&&g)return"value ".concat(u," focused, ").concat(f(g,o),".");if(_==="menu"&&x){var A=d?" disabled":"",T="".concat(p?" selected":"").concat(A);return"".concat(u).concat(T,", ").concat(f(s,o),".")}return""},onFilter:function(t){var _=t.inputValue,o=t.resultsMessage;return"".concat(o).concat(_?" for search term "+_:"",".")}},ET_=function(t){var _=t.ariaSelection,o=t.focusedOption,s=t.focusedValue,c=t.focusableOptions,u=t.isFocused,g=t.selectValue,d=t.selectProps,p=t.id,x=t.isAppleDevice,f=d.ariaLiveMessages,A=d.getOptionLabel,T=d.inputValue,P=d.isMulti,E=d.isOptionDisabled,k=d.isSearchable,C=d.menuIsOpen,N=d.options,L=d.screenReaderStatus,D=d.tabSelectsValue,O=d.isLoading,R=d["aria-label"],W=d["aria-live"],F=v.useMemo(function(){return Le(Le({},AT_),f||{})},[f]),Z=v.useMemo(function(){var xe="";if(_&&F.onChange){var Ne=_.option,et=_.options,De=_.removedValue,le=_.removedValues,Ue=_.value,ie=function(pe){return Array.isArray(pe)?null:pe},ge=De||Ne||ie(Ue),Te=ge?A(ge):"",Pe=et||le||void 0,Fe=Pe?Pe.map(A):[],ht=Le({isDisabled:ge&&E(ge,g),label:Te,labels:Fe},_);xe=F.onChange(ht)}return xe},[_,F,E,g,A]),G=v.useMemo(function(){var xe="",Ne=o||s,et=!!(o&&g&&g.includes(o));if(Ne&&F.onFocus){var De={focused:Ne,label:A(Ne),isDisabled:E(Ne,g),isSelected:et,options:c,context:Ne===o?"menu":"value",selectValue:g,isAppleDevice:x};xe=F.onFocus(De)}return xe},[o,s,A,E,F,c,g,x]),H=v.useMemo(function(){var xe="";if(C&&N.length&&!O&&F.onFilter){var Ne=L({count:c.length});xe=F.onFilter({inputValue:T,resultsMessage:Ne})}return xe},[c,T,C,F,N,L,O]),q=_?.action==="initial-input-focus",K=v.useMemo(function(){var xe="";if(F.guidance){var Ne=s?"value":C?"menu":"input";xe=F.guidance({"aria-label":R,context:Ne,isDisabled:o&&E(o,g),isMulti:P,isSearchable:k,tabSelectsValue:D,isInitialFocus:q})}return xe},[R,o,s,P,E,k,C,F,g,D,q]),ee=qe.jsx(v.Fragment,null,qe.jsx("span",{id:"aria-selection"},Z),qe.jsx("span",{id:"aria-focused"},G),qe.jsx("span",{id:"aria-results"},H),qe.jsx("span",{id:"aria-guidance"},K));return qe.jsx(v.Fragment,null,qe.jsx(Zo,{id:p},q&&ee),qe.jsx(Zo,{"aria-live":W,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},u&&!q&&ee))},TT_=ET_,En=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],jT_=new RegExp("["+En.map(function(e){return e.letters}).join("")+"]","g"),vr={};for(var ln=0;ln<En.length;ln++)for(var dn=En[ln],un=0;un<dn.letters.length;un++)vr[dn.letters[un]]=dn.base;var br=function(t){return t.replace(jT_,function(_){return vr[_]})},NT_=xT_(br),Jo=function(t){return t.replace(/^\s+|\s+$/g,"")},PT_=function(t){return"".concat(t.label," ").concat(t.value)},qT_=function(t){return function(_,o){if(_.data.__isNew__)return!0;var s=Le({ignoreCase:!0,ignoreAccents:!0,stringify:PT_,trim:!0,matchFrom:"any"},t),c=s.ignoreCase,u=s.ignoreAccents,g=s.stringify,d=s.trim,p=s.matchFrom,x=d?Jo(o):o,f=d?Jo(g(_)):g(_);return c&&(x=x.toLowerCase(),f=f.toLowerCase()),u&&(x=NT_(x),f=br(f)),p==="start"?f.substr(0,x.length)===x:f.indexOf(x)>-1}},RT_=["innerRef"];function LT_(e){var t=e.innerRef,_=m_(e,RT_),o=aE_(_,"onExited","in","enter","exit","appear");return qe.jsx("input",Oe({ref:t},o,{css:qe.css({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var MT_=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function DT_(e){var t=e.isEnabled,_=e.onBottomArrive,o=e.onBottomLeave,s=e.onTopArrive,c=e.onTopLeave,u=v.useRef(!1),g=v.useRef(!1),d=v.useRef(0),p=v.useRef(null),x=v.useCallback(function(k,C){if(p.current!==null){var N=p.current,L=N.scrollTop,D=N.scrollHeight,O=N.clientHeight,R=p.current,W=C>0,F=D-O-L,Z=!1;F>C&&u.current&&(o&&o(k),u.current=!1),W&&g.current&&(c&&c(k),g.current=!1),W&&C>F?(_&&!u.current&&_(k),R.scrollTop=D,Z=!0,u.current=!0):!W&&-C>L&&(s&&!g.current&&s(k),R.scrollTop=0,Z=!0,g.current=!0),Z&&MT_(k)}},[_,o,s,c]),f=v.useCallback(function(k){x(k,k.deltaY)},[x]),A=v.useCallback(function(k){d.current=k.changedTouches[0].clientY},[]),T=v.useCallback(function(k){var C=d.current-k.changedTouches[0].clientY;x(k,C)},[x]),P=v.useCallback(function(k){if(k){var C=sE_?{passive:!1}:!1;k.addEventListener("wheel",f,C),k.addEventListener("touchstart",A,C),k.addEventListener("touchmove",T,C)}},[T,A,f]),E=v.useCallback(function(k){k&&(k.removeEventListener("wheel",f,!1),k.removeEventListener("touchstart",A,!1),k.removeEventListener("touchmove",T,!1))},[T,A,f]);return v.useEffect(function(){if(t){var k=p.current;return P(k),function(){E(k)}}},[t,P,E]),function(k){p.current=k}}var Qo=["boxSizing","height","overflow","paddingRight","position"],Ko={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ea(e){e.cancelable&&e.preventDefault()}function ta(e){e.stopPropagation()}function _a(){var e=this.scrollTop,t=this.scrollHeight,_=e+this.offsetHeight;e===0?this.scrollTop=1:_===t&&(this.scrollTop=e-1)}function sa(){return"ontouchstart"in window||navigator.maxTouchPoints}var na=!!(typeof window<"u"&&window.document&&window.document.createElement),as=0,W_={capture:!1,passive:!1};function BT_(e){var t=e.isEnabled,_=e.accountForScrollbars,o=_===void 0?!0:_,s=v.useRef({}),c=v.useRef(null),u=v.useCallback(function(d){if(na){var p=document.body,x=p&&p.style;if(o&&Qo.forEach(function(P){var E=x&&x[P];s.current[P]=E}),o&&as<1){var f=parseInt(s.current.paddingRight,10)||0,A=document.body?document.body.clientWidth:0,T=window.innerWidth-A+f||0;Object.keys(Ko).forEach(function(P){var E=Ko[P];x&&(x[P]=E)}),x&&(x.paddingRight="".concat(T,"px"))}p&&sa()&&(p.addEventListener("touchmove",ea,W_),d&&(d.addEventListener("touchstart",_a,W_),d.addEventListener("touchmove",ta,W_))),as+=1}},[o]),g=v.useCallback(function(d){if(na){var p=document.body,x=p&&p.style;as=Math.max(as-1,0),o&&as<1&&Qo.forEach(function(f){var A=s.current[f];x&&(x[f]=A)}),p&&sa()&&(p.removeEventListener("touchmove",ea,W_),d&&(d.removeEventListener("touchstart",_a,W_),d.removeEventListener("touchmove",ta,W_)))}},[o]);return v.useEffect(function(){if(t){var d=c.current;return u(d),function(){g(d)}}},[t,u,g]),function(d){c.current=d}}function OT_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var GT_=function(t){var _=t.target;return _.ownerDocument.activeElement&&_.ownerDocument.activeElement.blur()},zT_=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:OT_};function FT_(e){var t=e.children,_=e.lockEnabled,o=e.captureEnabled,s=o===void 0?!0:o,c=e.onBottomArrive,u=e.onBottomLeave,g=e.onTopArrive,d=e.onTopLeave,p=DT_({isEnabled:s,onBottomArrive:c,onBottomLeave:u,onTopArrive:g,onTopLeave:d}),x=BT_({isEnabled:_}),f=function(T){p(T),x(T)};return qe.jsx(v.Fragment,null,_&&qe.jsx("div",{onClick:GT_,css:zT_}),t(f))}function HT_(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var VT_=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:HT_},WT_=function(t){var _=t.name,o=t.onFocus;return qe.jsx("input",{required:!0,name:_,tabIndex:-1,"aria-hidden":"true",onFocus:o,css:VT_,value:"",onChange:function(){}})},UT_=WT_;function Jn(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function YT_(){return Jn(/^iPhone/i)}function $r(){return Jn(/^Mac/i)}function XT_(){return Jn(/^iPad/i)||$r()&&navigator.maxTouchPoints>1}function ZT_(){return YT_()||XT_()}function JT_(){return $r()||ZT_()}var QT_=function(t){return t.label},kr=function(t){return t.label},xr=function(t){return t.value},KT_=function(t){return!!t.isDisabled},ej_={clearIndicator:RE_,container:kE_,control:zE_,dropdownIndicator:PE_,group:WE_,groupHeading:YE_,indicatorsContainer:SE_,indicatorSeparator:ME_,input:QE_,loadingIndicator:OE_,loadingMessage:fE_,menu:dE_,menuList:gE_,menuPortal:bE_,multiValue:sT_,multiValueLabel:nT_,multiValueRemove:oT_,noOptionsMessage:yE_,option:dT_,placeholder:mT_,singleValue:yT_,valueContainer:CE_},tj_={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},_j_=4,Cr=4,sj_=38,nj_=Cr*2,oj_={baseUnit:Cr,controlHeight:sj_,menuGutter:nj_},hn={borderRadius:_j_,colors:tj_,spacing:oj_},aj_={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Uo(),captureMenuScroll:!Uo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:qT_(),formatGroupLabel:QT_,getOptionLabel:kr,getOptionValue:xr,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:KT_,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!tE_(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var _=t.count;return"".concat(_," result").concat(_!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function oa(e,t,_,o){var s=Ar(e,t,_),c=Er(e,t,_),u=Sr(e,t),g=Gs(e,t);return{type:"option",data:t,isDisabled:s,isSelected:c,label:u,value:g,index:o}}function js(e,t){return e.options.map(function(_,o){if("options"in _){var s=_.options.map(function(u,g){return oa(e,u,t,g)}).filter(function(u){return ia(e,u)});return s.length>0?{type:"group",data:_,options:s,index:o}:void 0}var c=oa(e,_,t,o);return ia(e,c)?c:void 0}).filter(nE_)}function Ir(e){return e.reduce(function(t,_){return _.type==="group"?t.push.apply(t,X_(_.options.map(function(o){return o.data}))):t.push(_.data),t},[])}function aa(e,t){return e.reduce(function(_,o){return o.type==="group"?_.push.apply(_,X_(o.options.map(function(s){return{data:s.data,id:"".concat(t,"-").concat(o.index,"-").concat(s.index)}}))):_.push({data:o.data,id:"".concat(t,"-").concat(o.index)}),_},[])}function ij_(e,t){return Ir(js(e,t))}function ia(e,t){var _=e.inputValue,o=_===void 0?"":_,s=t.data,c=t.isSelected,u=t.label,g=t.value;return(!jr(e)||!c)&&Tr(e,{label:u,value:g,data:s},o)}function rj_(e,t){var _=e.focusedValue,o=e.selectValue,s=o.indexOf(_);if(s>-1){var c=t.indexOf(_);if(c>-1)return _;if(s<t.length)return t[s]}return null}function cj_(e,t){var _=e.focusedOption;return _&&t.indexOf(_)>-1?_:t[0]}var mn=function(t,_){var o,s=(o=t.find(function(c){return c.data===_}))===null||o===void 0?void 0:o.id;return s||null},Sr=function(t,_){return t.getOptionLabel(_)},Gs=function(t,_){return t.getOptionValue(_)};function Ar(e,t,_){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,_):!1}function Er(e,t,_){if(_.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,_);var o=Gs(e,t);return _.some(function(s){return Gs(e,s)===o})}function Tr(e,t,_){return e.filterOption?e.filterOption(t,_):!0}var jr=function(t){var _=t.hideSelectedOptions,o=t.isMulti;return _===void 0?o:_},lj_=1,Nr=(function(e){bA_(_,e);var t=xA_(_);function _(o){var s;if(wA_(this,_),s=t.call(this,o),s.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},s.blockOptionHover=!1,s.isComposing=!1,s.commonProps=void 0,s.initialTouchX=0,s.initialTouchY=0,s.openAfterFocus=!1,s.scrollToFocusedOptionOnUpdate=!1,s.userIsDragging=void 0,s.controlRef=null,s.getControlRef=function(d){s.controlRef=d},s.focusedOptionRef=null,s.getFocusedOptionRef=function(d){s.focusedOptionRef=d},s.menuListRef=null,s.getMenuListRef=function(d){s.menuListRef=d},s.inputRef=null,s.getInputRef=function(d){s.inputRef=d},s.focus=s.focusInput,s.blur=s.blurInput,s.onChange=function(d,p){var x=s.props,f=x.onChange,A=x.name;p.name=A,s.ariaOnChange(d,p),f(d,p)},s.setValue=function(d,p,x){var f=s.props,A=f.closeMenuOnSelect,T=f.isMulti,P=f.inputValue;s.onInputChange("",{action:"set-value",prevInputValue:P}),A&&(s.setState({inputIsHiddenAfterUpdate:!T}),s.onMenuClose()),s.setState({clearFocusValueOnUpdate:!0}),s.onChange(d,{action:p,option:x})},s.selectOption=function(d){var p=s.props,x=p.blurInputOnSelect,f=p.isMulti,A=p.name,T=s.state.selectValue,P=f&&s.isOptionSelected(d,T),E=s.isOptionDisabled(d,T);if(P){var k=s.getOptionValue(d);s.setValue(T.filter(function(C){return s.getOptionValue(C)!==k}),"deselect-option",d)}else if(!E)f?s.setValue([].concat(X_(T),[d]),"select-option",d):s.setValue(d,"select-option");else{s.ariaOnChange(d,{action:"select-option",option:d,name:A});return}x&&s.blurInput()},s.removeValue=function(d){var p=s.props.isMulti,x=s.state.selectValue,f=s.getOptionValue(d),A=x.filter(function(P){return s.getOptionValue(P)!==f}),T=cs(p,A,A[0]||null);s.onChange(T,{action:"remove-value",removedValue:d}),s.focusInput()},s.clearValue=function(){var d=s.state.selectValue;s.onChange(cs(s.props.isMulti,[],null),{action:"clear",removedValues:d})},s.popValue=function(){var d=s.props.isMulti,p=s.state.selectValue,x=p[p.length-1],f=p.slice(0,p.length-1),A=cs(d,f,f[0]||null);x&&s.onChange(A,{action:"pop-value",removedValue:x})},s.getFocusedOptionId=function(d){return mn(s.state.focusableOptionsWithIds,d)},s.getFocusableOptionsWithIds=function(){return aa(js(s.props,s.state.selectValue),s.getElementId("option"))},s.getValue=function(){return s.state.selectValue},s.cx=function(){for(var d=arguments.length,p=new Array(d),x=0;x<d;x++)p[x]=arguments[x];return ZA_.apply(void 0,[s.props.classNamePrefix].concat(p))},s.getOptionLabel=function(d){return Sr(s.props,d)},s.getOptionValue=function(d){return Gs(s.props,d)},s.getStyles=function(d,p){var x=s.props.unstyled,f=ej_[d](p,x);f.boxSizing="border-box";var A=s.props.styles[d];return A?A(f,p):f},s.getClassNames=function(d,p){var x,f;return(x=(f=s.props.classNames)[d])===null||x===void 0?void 0:x.call(f,p)},s.getElementId=function(d){return"".concat(s.state.instancePrefix,"-").concat(d)},s.getComponents=function(){return bT_(s.props)},s.buildCategorizedOptions=function(){return js(s.props,s.state.selectValue)},s.getCategorizedOptions=function(){return s.props.menuIsOpen?s.buildCategorizedOptions():[]},s.buildFocusableOptions=function(){return Ir(s.buildCategorizedOptions())},s.getFocusableOptions=function(){return s.props.menuIsOpen?s.buildFocusableOptions():[]},s.ariaOnChange=function(d,p){s.setState({ariaSelection:Le({value:d},p)})},s.onMenuMouseDown=function(d){d.button===0&&(d.stopPropagation(),d.preventDefault(),s.focusInput())},s.onMenuMouseMove=function(d){s.blockOptionHover=!1},s.onControlMouseDown=function(d){if(!d.defaultPrevented){var p=s.props.openMenuOnClick;s.state.isFocused?s.props.menuIsOpen?d.target.tagName!=="INPUT"&&d.target.tagName!=="TEXTAREA"&&s.onMenuClose():p&&s.openMenu("first"):(p&&(s.openAfterFocus=!0),s.focusInput()),d.target.tagName!=="INPUT"&&d.target.tagName!=="TEXTAREA"&&d.preventDefault()}},s.onDropdownIndicatorMouseDown=function(d){if(!(d&&d.type==="mousedown"&&d.button!==0)&&!s.props.isDisabled){var p=s.props,x=p.isMulti,f=p.menuIsOpen;s.focusInput(),f?(s.setState({inputIsHiddenAfterUpdate:!x}),s.onMenuClose()):s.openMenu("first"),d.preventDefault()}},s.onClearIndicatorMouseDown=function(d){d&&d.type==="mousedown"&&d.button!==0||(s.clearValue(),d.preventDefault(),s.openAfterFocus=!1,d.type==="touchend"?s.focusInput():setTimeout(function(){return s.focusInput()}))},s.onScroll=function(d){typeof s.props.closeMenuOnScroll=="boolean"?d.target instanceof HTMLElement&&Qs(d.target)&&s.props.onMenuClose():typeof s.props.closeMenuOnScroll=="function"&&s.props.closeMenuOnScroll(d)&&s.props.onMenuClose()},s.onCompositionStart=function(){s.isComposing=!0},s.onCompositionEnd=function(){s.isComposing=!1},s.onTouchStart=function(d){var p=d.touches,x=p&&p.item(0);x&&(s.initialTouchX=x.clientX,s.initialTouchY=x.clientY,s.userIsDragging=!1)},s.onTouchMove=function(d){var p=d.touches,x=p&&p.item(0);if(x){var f=Math.abs(x.clientX-s.initialTouchX),A=Math.abs(x.clientY-s.initialTouchY),T=5;s.userIsDragging=f>T||A>T}},s.onTouchEnd=function(d){s.userIsDragging||(s.controlRef&&!s.controlRef.contains(d.target)&&s.menuListRef&&!s.menuListRef.contains(d.target)&&s.blurInput(),s.initialTouchX=0,s.initialTouchY=0)},s.onControlTouchEnd=function(d){s.userIsDragging||s.onControlMouseDown(d)},s.onClearIndicatorTouchEnd=function(d){s.userIsDragging||s.onClearIndicatorMouseDown(d)},s.onDropdownIndicatorTouchEnd=function(d){s.userIsDragging||s.onDropdownIndicatorMouseDown(d)},s.handleInputChange=function(d){var p=s.props.inputValue,x=d.currentTarget.value;s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange(x,{action:"input-change",prevInputValue:p}),s.props.menuIsOpen||s.onMenuOpen()},s.onInputFocus=function(d){s.props.onFocus&&s.props.onFocus(d),s.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(s.openAfterFocus||s.props.openMenuOnFocus)&&s.openMenu("first"),s.openAfterFocus=!1},s.onInputBlur=function(d){var p=s.props.inputValue;if(s.menuListRef&&s.menuListRef.contains(document.activeElement)){s.inputRef.focus();return}s.props.onBlur&&s.props.onBlur(d),s.onInputChange("",{action:"input-blur",prevInputValue:p}),s.onMenuClose(),s.setState({focusedValue:null,isFocused:!1})},s.onOptionHover=function(d){if(!(s.blockOptionHover||s.state.focusedOption===d)){var p=s.getFocusableOptions(),x=p.indexOf(d);s.setState({focusedOption:d,focusedOptionId:x>-1?s.getFocusedOptionId(d):null})}},s.shouldHideSelectedOptions=function(){return jr(s.props)},s.onValueInputFocus=function(d){d.preventDefault(),d.stopPropagation(),s.focus()},s.onKeyDown=function(d){var p=s.props,x=p.isMulti,f=p.backspaceRemovesValue,A=p.escapeClearsValue,T=p.inputValue,P=p.isClearable,E=p.isDisabled,k=p.menuIsOpen,C=p.onKeyDown,N=p.tabSelectsValue,L=p.openMenuOnFocus,D=s.state,O=D.focusedOption,R=D.focusedValue,W=D.selectValue;if(!E&&!(typeof C=="function"&&(C(d),d.defaultPrevented))){switch(s.blockOptionHover=!0,d.key){case"ArrowLeft":if(!x||T)return;s.focusValue("previous");break;case"ArrowRight":if(!x||T)return;s.focusValue("next");break;case"Delete":case"Backspace":if(T)return;if(R)s.removeValue(R);else{if(!f)return;x?s.popValue():P&&s.clearValue()}break;case"Tab":if(s.isComposing||d.shiftKey||!k||!N||!O||L&&s.isOptionSelected(O,W))return;s.selectOption(O);break;case"Enter":if(d.keyCode===229)break;if(k){if(!O||s.isComposing)return;s.selectOption(O);break}return;case"Escape":k?(s.setState({inputIsHiddenAfterUpdate:!1}),s.onInputChange("",{action:"menu-close",prevInputValue:T}),s.onMenuClose()):P&&A&&s.clearValue();break;case" ":if(T)return;if(!k){s.openMenu("first");break}if(!O)return;s.selectOption(O);break;case"ArrowUp":k?s.focusOption("up"):s.openMenu("last");break;case"ArrowDown":k?s.focusOption("down"):s.openMenu("first");break;case"PageUp":if(!k)return;s.focusOption("pageup");break;case"PageDown":if(!k)return;s.focusOption("pagedown");break;case"Home":if(!k)return;s.focusOption("first");break;case"End":if(!k)return;s.focusOption("last");break;default:return}d.preventDefault()}},s.state.instancePrefix="react-select-"+(s.props.instanceId||++lj_),s.state.selectValue=Bs(o.value),o.menuIsOpen&&s.state.selectValue.length){var c=s.getFocusableOptionsWithIds(),u=s.buildFocusableOptions(),g=u.indexOf(s.state.selectValue[0]);s.state.focusableOptionsWithIds=c,s.state.focusedOption=u[g],s.state.focusedOptionId=mn(c,u[g])}return s}return vA_(_,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Wo(this.menuListRef,this.focusedOptionRef),JT_()&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(s){var c=this.props,u=c.isDisabled,g=c.menuIsOpen,d=this.state.isFocused;(d&&!u&&s.isDisabled||d&&g&&!s.menuIsOpen)&&this.focusInput(),d&&u&&!s.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!d&&!u&&s.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Wo(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(s,c){this.props.onInputChange(s,c)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(s){var c=this,u=this.state,g=u.selectValue,d=u.isFocused,p=this.buildFocusableOptions(),x=s==="first"?0:p.length-1;if(!this.props.isMulti){var f=p.indexOf(g[0]);f>-1&&(x=f)}this.scrollToFocusedOptionOnUpdate=!(d&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:p[x],focusedOptionId:this.getFocusedOptionId(p[x])},function(){return c.onMenuOpen()})}},{key:"focusValue",value:function(s){var c=this.state,u=c.selectValue,g=c.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var d=u.indexOf(g);g||(d=-1);var p=u.length-1,x=-1;if(u.length){switch(s){case"previous":d===0?x=0:d===-1?x=p:x=d-1;break;case"next":d>-1&&d<p&&(x=d+1);break}this.setState({inputIsHidden:x!==-1,focusedValue:u[x]})}}}},{key:"focusOption",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",c=this.props.pageSize,u=this.state.focusedOption,g=this.getFocusableOptions();if(g.length){var d=0,p=g.indexOf(u);u||(p=-1),s==="up"?d=p>0?p-1:g.length-1:s==="down"?d=(p+1)%g.length:s==="pageup"?(d=p-c,d<0&&(d=0)):s==="pagedown"?(d=p+c,d>g.length-1&&(d=g.length-1)):s==="last"&&(d=g.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:g[d],focusedValue:null,focusedOptionId:this.getFocusedOptionId(g[d])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(hn):Le(Le({},hn),this.props.theme):hn}},{key:"getCommonProps",value:function(){var s=this.clearValue,c=this.cx,u=this.getStyles,g=this.getClassNames,d=this.getValue,p=this.selectOption,x=this.setValue,f=this.props,A=f.isMulti,T=f.isRtl,P=f.options,E=this.hasValue();return{clearValue:s,cx:c,getStyles:u,getClassNames:g,getValue:d,hasValue:E,isMulti:A,isRtl:T,options:P,selectOption:p,selectProps:f,setValue:x,theme:this.getTheme()}}},{key:"hasValue",value:function(){var s=this.state.selectValue;return s.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var s=this.props,c=s.isClearable,u=s.isMulti;return c===void 0?u:c}},{key:"isOptionDisabled",value:function(s,c){return Ar(this.props,s,c)}},{key:"isOptionSelected",value:function(s,c){return Er(this.props,s,c)}},{key:"filterOption",value:function(s,c){return Tr(this.props,s,c)}},{key:"formatOptionLabel",value:function(s,c){if(typeof this.props.formatOptionLabel=="function"){var u=this.props.inputValue,g=this.state.selectValue;return this.props.formatOptionLabel(s,{context:c,inputValue:u,selectValue:g})}else return this.getOptionLabel(s)}},{key:"formatGroupLabel",value:function(s){return this.props.formatGroupLabel(s)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var s=this.props,c=s.isDisabled,u=s.isSearchable,g=s.inputId,d=s.inputValue,p=s.tabIndex,x=s.form,f=s.menuIsOpen,A=s.required,T=this.getComponents(),P=T.Input,E=this.state,k=E.inputIsHidden,C=E.ariaSelection,N=this.commonProps,L=g||this.getElementId("input"),D=Le(Le(Le({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":A,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!u&&{"aria-readonly":!0}),this.hasValue()?C?.action==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return u?vt.createElement(P,Oe({},N,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:L,innerRef:this.getInputRef,isDisabled:c,isHidden:k,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:p,form:x,type:"text",value:d},D)):vt.createElement(LT_,Oe({id:L,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ds,onFocus:this.onInputFocus,disabled:c,tabIndex:p,inputMode:"none",form:x,value:""},D))}},{key:"renderPlaceholderOrValue",value:function(){var s=this,c=this.getComponents(),u=c.MultiValue,g=c.MultiValueContainer,d=c.MultiValueLabel,p=c.MultiValueRemove,x=c.SingleValue,f=c.Placeholder,A=this.commonProps,T=this.props,P=T.controlShouldRenderValue,E=T.isDisabled,k=T.isMulti,C=T.inputValue,N=T.placeholder,L=this.state,D=L.selectValue,O=L.focusedValue,R=L.isFocused;if(!this.hasValue()||!P)return C?null:vt.createElement(f,Oe({},A,{key:"placeholder",isDisabled:E,isFocused:R,innerProps:{id:this.getElementId("placeholder")}}),N);if(k)return D.map(function(F,Z){var G=F===O,H="".concat(s.getOptionLabel(F),"-").concat(s.getOptionValue(F));return vt.createElement(u,Oe({},A,{components:{Container:g,Label:d,Remove:p},isFocused:G,isDisabled:E,key:H,index:Z,removeProps:{onClick:function(){return s.removeValue(F)},onTouchEnd:function(){return s.removeValue(F)},onMouseDown:function(K){K.preventDefault()}},data:F}),s.formatOptionLabel(F,"value"))});if(C)return null;var W=D[0];return vt.createElement(x,Oe({},A,{data:W,isDisabled:E}),this.formatOptionLabel(W,"value"))}},{key:"renderClearIndicator",value:function(){var s=this.getComponents(),c=s.ClearIndicator,u=this.commonProps,g=this.props,d=g.isDisabled,p=g.isLoading,x=this.state.isFocused;if(!this.isClearable()||!c||d||!this.hasValue()||p)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return vt.createElement(c,Oe({},u,{innerProps:f,isFocused:x}))}},{key:"renderLoadingIndicator",value:function(){var s=this.getComponents(),c=s.LoadingIndicator,u=this.commonProps,g=this.props,d=g.isDisabled,p=g.isLoading,x=this.state.isFocused;if(!c||!p)return null;var f={"aria-hidden":"true"};return vt.createElement(c,Oe({},u,{innerProps:f,isDisabled:d,isFocused:x}))}},{key:"renderIndicatorSeparator",value:function(){var s=this.getComponents(),c=s.DropdownIndicator,u=s.IndicatorSeparator;if(!c||!u)return null;var g=this.commonProps,d=this.props.isDisabled,p=this.state.isFocused;return vt.createElement(u,Oe({},g,{isDisabled:d,isFocused:p}))}},{key:"renderDropdownIndicator",value:function(){var s=this.getComponents(),c=s.DropdownIndicator;if(!c)return null;var u=this.commonProps,g=this.props.isDisabled,d=this.state.isFocused,p={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return vt.createElement(c,Oe({},u,{innerProps:p,isDisabled:g,isFocused:d}))}},{key:"renderMenu",value:function(){var s=this,c=this.getComponents(),u=c.Group,g=c.GroupHeading,d=c.Menu,p=c.MenuList,x=c.MenuPortal,f=c.LoadingMessage,A=c.NoOptionsMessage,T=c.Option,P=this.commonProps,E=this.state.focusedOption,k=this.props,C=k.captureMenuScroll,N=k.inputValue,L=k.isLoading,D=k.loadingMessage,O=k.minMenuHeight,R=k.maxMenuHeight,W=k.menuIsOpen,F=k.menuPlacement,Z=k.menuPosition,G=k.menuPortalTarget,H=k.menuShouldBlockScroll,q=k.menuShouldScrollIntoView,K=k.noOptionsMessage,ee=k.onMenuScrollToTop,xe=k.onMenuScrollToBottom;if(!W)return null;var Ne=function(Te,Pe){var Fe=Te.type,ht=Te.data,Ye=Te.isDisabled,pe=Te.isSelected,$e=Te.label,$t=Te.value,Ht=E===ht,It=Ye?void 0:function(){return s.onOptionHover(ht)},Vt=Ye?void 0:function(){return s.selectOption(ht)},Xt="".concat(s.getElementId("option"),"-").concat(Pe),Zt={id:Xt,onClick:Vt,onMouseMove:It,onMouseOver:It,tabIndex:-1,role:"option","aria-selected":s.state.isAppleDevice?void 0:pe};return vt.createElement(T,Oe({},P,{innerProps:Zt,data:ht,isDisabled:Ye,isSelected:pe,key:Xt,label:$e,type:Fe,value:$t,isFocused:Ht,innerRef:Ht?s.getFocusedOptionRef:void 0}),s.formatOptionLabel(Te.data,"menu"))},et;if(this.hasOptions())et=this.getCategorizedOptions().map(function(ge){if(ge.type==="group"){var Te=ge.data,Pe=ge.options,Fe=ge.index,ht="".concat(s.getElementId("group"),"-").concat(Fe),Ye="".concat(ht,"-heading");return vt.createElement(u,Oe({},P,{key:ht,data:Te,options:Pe,Heading:g,headingProps:{id:Ye,data:ge.data},label:s.formatGroupLabel(ge.data)}),ge.options.map(function(pe){return Ne(pe,"".concat(Fe,"-").concat(pe.index))}))}else if(ge.type==="option")return Ne(ge,"".concat(ge.index))});else if(L){var De=D({inputValue:N});if(De===null)return null;et=vt.createElement(f,P,De)}else{var le=K({inputValue:N});if(le===null)return null;et=vt.createElement(A,P,le)}var Ue={minMenuHeight:O,maxMenuHeight:R,menuPlacement:F,menuPosition:Z,menuShouldScrollIntoView:q},ie=vt.createElement(uE_,Oe({},P,Ue),function(ge){var Te=ge.ref,Pe=ge.placerProps,Fe=Pe.placement,ht=Pe.maxHeight;return vt.createElement(d,Oe({},P,Ue,{innerRef:Te,innerProps:{onMouseDown:s.onMenuMouseDown,onMouseMove:s.onMenuMouseMove},isLoading:L,placement:Fe}),vt.createElement(FT_,{captureEnabled:C,onTopArrive:ee,onBottomArrive:xe,lockEnabled:H},function(Ye){return vt.createElement(p,Oe({},P,{innerRef:function($e){s.getMenuListRef($e),Ye($e)},innerProps:{role:"listbox","aria-multiselectable":P.isMulti,id:s.getElementId("listbox")},isLoading:L,maxHeight:ht,focusedOption:E}),et)}))});return G||Z==="fixed"?vt.createElement(x,Oe({},P,{appendTo:G,controlElement:this.controlRef,menuPlacement:F,menuPosition:Z}),ie):ie}},{key:"renderFormField",value:function(){var s=this,c=this.props,u=c.delimiter,g=c.isDisabled,d=c.isMulti,p=c.name,x=c.required,f=this.state.selectValue;if(x&&!this.hasValue()&&!g)return vt.createElement(UT_,{name:p,onFocus:this.onValueInputFocus});if(!(!p||g))if(d)if(u){var A=f.map(function(E){return s.getOptionValue(E)}).join(u);return vt.createElement("input",{name:p,type:"hidden",value:A})}else{var T=f.length>0?f.map(function(E,k){return vt.createElement("input",{key:"i-".concat(k),name:p,type:"hidden",value:s.getOptionValue(E)})}):vt.createElement("input",{name:p,type:"hidden",value:""});return vt.createElement("div",null,T)}else{var P=f[0]?this.getOptionValue(f[0]):"";return vt.createElement("input",{name:p,type:"hidden",value:P})}}},{key:"renderLiveRegion",value:function(){var s=this.commonProps,c=this.state,u=c.ariaSelection,g=c.focusedOption,d=c.focusedValue,p=c.isFocused,x=c.selectValue,f=this.getFocusableOptions();return vt.createElement(TT_,Oe({},s,{id:this.getElementId("live-region"),ariaSelection:u,focusedOption:g,focusedValue:d,isFocused:p,selectValue:x,focusableOptions:f,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var s=this.getComponents(),c=s.Control,u=s.IndicatorsContainer,g=s.SelectContainer,d=s.ValueContainer,p=this.props,x=p.className,f=p.id,A=p.isDisabled,T=p.menuIsOpen,P=this.state.isFocused,E=this.commonProps=this.getCommonProps();return vt.createElement(g,Oe({},E,{className:x,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:A,isFocused:P}),this.renderLiveRegion(),vt.createElement(c,Oe({},E,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:A,isFocused:P,menuIsOpen:T}),vt.createElement(d,Oe({},E,{isDisabled:A}),this.renderPlaceholderOrValue(),this.renderInput()),vt.createElement(u,Oe({},E,{isDisabled:A}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=c.prevProps,g=c.clearFocusValueOnUpdate,d=c.inputIsHiddenAfterUpdate,p=c.ariaSelection,x=c.isFocused,f=c.prevWasFocused,A=c.instancePrefix,T=s.options,P=s.value,E=s.menuIsOpen,k=s.inputValue,C=s.isMulti,N=Bs(P),L={};if(u&&(P!==u.value||T!==u.options||E!==u.menuIsOpen||k!==u.inputValue)){var D=E?ij_(s,N):[],O=E?aa(js(s,N),"".concat(A,"-option")):[],R=g?rj_(c,N):null,W=cj_(c,D),F=mn(O,W);L={selectValue:N,focusedOption:W,focusedOptionId:F,focusableOptionsWithIds:O,focusedValue:R,clearFocusValueOnUpdate:!1}}var Z=d!=null&&s!==u?{inputIsHidden:d,inputIsHiddenAfterUpdate:void 0}:{},G=p,H=x&&f;return x&&!H&&(G={value:cs(C,N,N[0]||null),options:N,action:"initial-input-focus"},H=!f),p?.action==="initial-input-focus"&&(G=null),Le(Le(Le({},L),Z),{},{prevProps:s,ariaSelection:G,prevWasFocused:H})}}]),_})(v.Component);Nr.defaultProps=aj_;var dj_=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function uj_(e){var t=e.defaultInputValue,_=t===void 0?"":t,o=e.defaultMenuIsOpen,s=o===void 0?!1:o,c=e.defaultValue,u=c===void 0?null:c,g=e.inputValue,d=e.menuIsOpen,p=e.onChange,x=e.onInputChange,f=e.onMenuClose,A=e.onMenuOpen,T=e.value,P=m_(e,dj_),E=v.useState(g!==void 0?g:_),k=b_(E,2),C=k[0],N=k[1],L=v.useState(d!==void 0?d:s),D=b_(L,2),O=D[0],R=D[1],W=v.useState(T!==void 0?T:u),F=b_(W,2),Z=F[0],G=F[1],H=v.useCallback(function(De,le){typeof p=="function"&&p(De,le),G(De)},[p]),q=v.useCallback(function(De,le){var Ue;typeof x=="function"&&(Ue=x(De,le)),N(Ue!==void 0?Ue:De)},[x]),K=v.useCallback(function(){typeof A=="function"&&A(),R(!0)},[A]),ee=v.useCallback(function(){typeof f=="function"&&f(),R(!1)},[f]),xe=g!==void 0?g:C,Ne=d!==void 0?d:O,et=T!==void 0?T:Z;return Le(Le({},P),{},{inputValue:xe,menuIsOpen:Ne,onChange:H,onInputChange:q,onMenuClose:ee,onMenuOpen:K,value:et})}var hj_=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],ra=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",_=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,s=String(t).toLowerCase(),c=String(o.getOptionValue(_)).toLowerCase(),u=String(o.getOptionLabel(_)).toLowerCase();return c===s||u===s},gn={formatCreateLabel:function(t){return'Create "'.concat(t,'"')},isValidNewOption:function(t,_,o,s){return!(!t||_.some(function(c){return ra(t,c,s)})||o.some(function(c){return ra(t,c,s)}))},getNewOptionData:function(t,_){return{label:_,value:t,__isNew__:!0}}};function mj_(e){var t=e.allowCreateWhileLoading,_=t===void 0?!1:t,o=e.createOptionPosition,s=o===void 0?"last":o,c=e.formatCreateLabel,u=c===void 0?gn.formatCreateLabel:c,g=e.isValidNewOption,d=g===void 0?gn.isValidNewOption:g,p=e.getNewOptionData,x=p===void 0?gn.getNewOptionData:p,f=e.onCreateOption,A=e.options,T=A===void 0?[]:A,P=e.onChange,E=m_(e,hj_),k=E.getOptionValue,C=k===void 0?xr:k,N=E.getOptionLabel,L=N===void 0?kr:N,D=E.inputValue,O=E.isLoading,R=E.isMulti,W=E.value,F=E.name,Z=v.useMemo(function(){return d(D,Bs(W),T,{getOptionValue:C,getOptionLabel:L})?x(D,u(D)):void 0},[u,x,L,C,D,d,T,W]),G=v.useMemo(function(){return(_||!O)&&Z?s==="first"?[Z].concat(X_(T)):[].concat(X_(T),[Z]):T},[_,s,O,Z,T]),H=v.useCallback(function(q,K){if(K.action!=="select-option")return P(q,K);var ee=Array.isArray(q)?q:[q];if(ee[ee.length-1]===Z){if(f)f(D);else{var xe=x(D,D),Ne={action:"create-option",name:F,option:xe};P(cs(R,[].concat(X_(Bs(W)),[xe]),xe),Ne)}return}P(q,K)},[x,D,R,F,Z,f,P,W]);return Le(Le({},E),{},{options:G,onChange:H})}var gj_=v.forwardRef(function(e,t){var _=uj_(e),o=mj_(_);return vt.createElement(Nr,Oe({ref:t},o))}),Pr=gj_;const J_=({options:e,isDisabled:t,scrollBottom:_,onCreateOption:o,...s})=>{const[c,u]=v.useState(),g=()=>{u(void 0)};return n.jsxs("div",{className:"w-100",children:[n.jsx("div",{className:"w-100",children:n.jsx(Pr,{isDisabled:t,options:e,menuPlacement:_?"top":"auto",onFocus:g,...s})}),!!c&&n.jsx("p",{className:"text-danger mb-0 mt-1",children:c})]})},pj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(ES_),[c,u]=v.useState(0),[g,d]=v.useState(!1),[p,x]=v.useState([]),[f,A]=v.useState([]),[T,P]=v.useState(NS_),E="",k=G=>{const H={...o,...G};H.searchString&&G.searchString&&G.searchString!=o.searchString&&(H.currentPage=1),s(H)},C=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)).flatMap(q=>q.teachers),H=new Map;return G.forEach(q=>{H.has(q.teacherUserId)||H.set(q.teacherUserId,q)}),Array.from(H.values()).map(q=>({value:q.teacherUserId,label:q.mainTeacherEmail}))},[f,p]),N=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)).flatMap(q=>q.counselors),H=new Map;return G.forEach(q=>{H.has(q.counselorUserId)||H.set(q.counselorUserId,q)}),Array.from(H.values()).map(q=>({value:q.counselorUserId,label:q.counselorEmail}))},[f,p]),L=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)&&q.assistantUserId).map(q=>({value:q.assistantUserId,label:q.assistantEmail})),H=new Map;return G.forEach(q=>{H.has(q.value)||H.set(q.value,q)}),Array.from(H.values())},[t,p]),D=v.useMemo(()=>{const G=t.filter(q=>p.includes(q.id)&&q.secondaryTeacherUserId).map(q=>({value:q.secondaryTeacherUserId,label:q.secondaryTeacherEmail})),H=new Map;return G.forEach(q=>{H.has(q.value)||H.set(q.value,q)}),Array.from(H.values())},[t,p]),O=v.useCallback(G=>{G!==o.sortBy?k({sortBy:G,orderBy:"ASC",currentPage:1}):k({sortBy:G,orderBy:o.orderBy!=="DESC"?"DESC":"ASC",currentPage:1})},[JSON.stringify(o)]),R=async()=>{e(ne(!0));try{const G=Object.entries(o).filter(([K,ee])=>ee!==void 0).reduce((K,[ee,xe])=>(K[ee]=xe,K),{}),H={};for(const K in G){const ee=K.charAt(0).toLowerCase()+K.slice(1);H[ee]=G[K]}const q=await uS_(H);_(q?.data?.items),u(q?.data?.totalItems)}catch(G){e(J({type:"danger",message:G.response?.data?.title||G.message}))}e(ne(!1))},W=()=>{d(!g),x(t.map(G=>G.id)),A(t),g&&(x([]),A([]))},F=G=>{const{id:H,checked:q}=G.target;if(q){x(ee=>[...ee,H]);const K=t.find(ee=>ee.id===H);K&&A(ee=>[...ee,K])}else x(K=>K.filter(ee=>ee!==H)),A(K=>K.filter(ee=>ee.id!==H))},Z=v.useCallback(()=>{o.currentPage==1?R():k({currentPage:1}),x([]),A([]),d(!1)},[JSON.stringify(o)]);return v.useEffect(()=>{R()},[JSON.stringify(o)]),v.useEffect(()=>{document.title="User | Assign student"},[]),v.useEffect(()=>{k({...o,searchString:E})},[E]),{handelSort:O,handleRetrievedData:Z,totalItem:c,userList:t,filters:o,changeFilters:k,handleSelectAll:W,handleClickCheck:F,isCheckAll:g,isCheck:p,fullName:E,selectedUser:T,setSelectedUser:P,userSelected:f,getDataUserList:R,studentTeacherSelected:C,studentCounselorSelected:N,studentAssistantSelected:L,studentSecondaryTeacherSelected:D}},yj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await hS_();d.data.items&&_(d.data.items.map?.(p=>({label:p.email,value:p.id}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.find(f=>f.value===d);s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedCounselors:o,counselorOptions:t,handleSelectCounselor:u,handleCreateCounselorOption:g,setSelectedCounselors:s}},fj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await mS_();d.data.items&&_(d.data.items.map?.(p=>({label:p.email,value:p.id}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.find(f=>f.value===d);s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedAssistants:o,assistantOptions:t,handleSelectAssistant:u,handleCreateAssistantOption:g,setSelectedAssistants:s}},wj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await gS_();d.data.items&&_(d.data.items.map?.(p=>({label:p.email,value:p.id,id:p.secondaryTeacherId}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.find(f=>f.value===d);s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedSecondaryTeachers:o,secondaryTeacherOptions:t,handleSelectSecondaryTeacher:u,handleCreateSecondaryTeacherOption:g,setSelectedSecondaryTeachers:s}},vj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState([]),[o,s]=v.useState(),c=async()=>{try{const d=await Fi({sortBy:"Email"});d.data&&_(d.data.map?.(p=>({label:p.email,value:p.id}))||[])}catch(d){e(J({type:"danger",message:d.response?.data?.title||d.message}))}},u=v.useCallback((d,p)=>{let x=t.filter(f=>d.includes(f.value));s({...o,[p]:x})},[JSON.stringify(o),JSON.stringify(t)]),g=v.useCallback((d,p,x)=>{_([...t,d]),x&&s({...o,[p]:d})},[JSON.stringify(t),JSON.stringify(o)]);return v.useEffect(()=>{c()},[]),{selectedTeachers:o,teacherOptions:t,handleSelectTeacher:u,handleCreateTeacherOption:g,setSelectedTeachers:s}},bj_=(e,t)=>{const _=[];if(t===bt.Teacher)for(const s of e)for(const c of s.teachers||[])_.push({label:c.mainTeacherEmail,value:c.teacherUserId,name:c.mainTeacherName});else if(t===bt.Assistant)for(const s of e)s.assistantEmail&&s.assistantUserId&&_.push({label:s.assistantEmail,value:s.assistantUserId,name:s.assistantName||""});else if(t===bt.Counselor)for(const s of e)for(const c of s.counselors||[])_.push({label:c.counselorEmail,value:c.counselorUserId,name:c.counselorName});const o=new Map;for(const s of _)o.has(s.value)||o.set(s.value,s);return Array.from(o.values()).sort((s,c)=>s.label.localeCompare(c.label))},$j_=(e,t,_,o,s,c,u,g)=>{const d=Ee.useDispatch(),[p,x]=v.useState(!1),[f,A]=v.useState(xs),[T,P]=v.useState(!1),[E,k]=v.useState(!1),[C,N]=v.useState(bt.Teacher),[L,D]=v.useState([]),[O,R]=v.useState([]),[W,F]=v.useState([]),[Z,G]=v.useState({header:"",titleSelect:"",selectPlaceholder:"",changeTitle:"",changePlaceholder:""}),[H,q]=v.useState(""),[K,ee]=v.useState(""),[xe,Ne]=v.useState(!1),[et,De]=v.useState(0),[le,Ue]=v.useState([]),[ie,ge]=v.useState(""),[Te,Pe]=v.useState(!1),[Fe,ht]=v.useState(!1),[Ye,pe]=v.useState(Po),$e=de=>{pe({...Ye,...de})},$t=de=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select students!"}));return}ht(!Fe),A({...xs}),pe({...Po})},Ht=()=>{Pe(!Te),ge("")},It=de=>{le.includes(de)?Ue(le.filter(we=>we!==de)):Ue([...le,de])},Vt=de=>{De(we=>we===de?-1:de)},Xt=de=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select students!"}));return}x(!p),A({...xs})},Zt=(de,we,Ie)=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select students!"}));return}switch(F(de),R(bj_(de,we)),N(we),we){case bt.Teacher:G({header:"switch_teacher",titleSelect:"current_teacher_name",selectPlaceholder:"select_teacher",changeTitle:"select_teacher_change",changePlaceholder:"select_teacher_change"});break;case bt.Assistant:G({header:"switch_assistant",titleSelect:"current_assistant_name",selectPlaceholder:"",changeTitle:"",changePlaceholder:"select_assistant_change"});break;case bt.Counselor:G({header:"switch_counselor",titleSelect:"current_counselor_name",selectPlaceholder:"select_counselor",changeTitle:"select_counselor_change",changePlaceholder:"select_counselor_change"});break;case bt.SecondaryTeacher:G({header:"switch_support_teacher",titleSelect:"current_assistant_name",selectPlaceholder:"",changeTitle:"",changePlaceholder:"select_support_teacher_change"});break}k(!E),D(Ie)},Jt=()=>{D([]),k(!1),Ne(!1),N(bt.Teacher),R([]),q(""),ee(""),G({header:"",titleSelect:"",selectPlaceholder:"",changeTitle:"",changePlaceholder:""}),Ue([])},k_=()=>{Ne(!1),De(0),Ue([])},x_=async(de,we)=>{d(Yt({isOpen:!0,type:"warning",message:`Do you want to change ${we===bt.Teacher?"teacher":we===bt.Assistant?"assistant":we===bt.SecondaryTeacher?"support teacher":"counselor"} for ${de.length} student(s)?`,onConfirm:async()=>{d(ne(!0));try{const Ie=we===bt.Teacher?await fS_(de):we===bt.Assistant?await vS_(de):we===bt.Counselor?await wS_(de):await bS_(de);Ie&&Ie?.data&&(Jt(),s?.(),await u(),d(J({type:"success",message:`Change ${we===bt.Teacher?"teacher":we===bt.Assistant?"assistant":we===bt.SecondaryTeacher?"support teacher":"counselor"} successfully`})))}catch(Ie){d(J({type:"danger",message:Ie.response?.data?.title||Ie.message}))}d(ne(!1))}}))},C_=()=>{let de=[];switch(C){case bt.Teacher:de=W.filter(we=>{const Ie=we.teachers.map(mt=>mt.teacherUserId);return Ie.includes(K)&&!Ie.includes(H)}).map(we=>({studentId:we.studentId,teacher:K,teacherChange:H}));break;case bt.Counselor:de=W.filter(we=>{const Ie=we.counselors.map(mt=>mt.counselorUserId);return Ie.includes(K)&&!Ie.includes(H)}).map(we=>({studentId:we.studentId,counselor:K,counselorChange:H}));break;case bt.Assistant:de=W.filter(we=>we?.assistantUserId&&we?.teachers?.length>0).map(we=>({studentId:we.studentId,assistantUserId:H}));break;case bt.SecondaryTeacher:de=W.filter(we=>we?.secondaryTeacherUserId&&we?.teachers?.length>0).map(we=>({studentId:we.studentId,secondaryTeacherId:H}));break}if(de.length===0){d(J({type:"danger",message:"No change to update!"}));return}x_(de||[],C)},q_=de=>{if(de&&de.length===0){d(J({type:"danger",message:"Please select student(s)!"}));return}P(!T)},g_=(de,we)=>{switch(de){case"assistant":A({...f,assistantId:we.value,assistantEmail:we.label});break;case"secondary":A({...f,secondaryTeacherId:we.value,secondaryTeacherEmail:we.label});break;case"grade":A({...f,gradeLevel:we.value});break}},I_=de=>{A({...f,teacher:de})},Qt=de=>{A({...f,counselors:de})},e_=async de=>{d(ne(!0));try{await os(de),d(J({type:"success",message:"Student assigned successfully"})),s?.(),Jt()}catch(we){d(J({type:"danger",message:we.response?.data?.title||we.message}))}d(ne(!1))},S_=v.useCallback(de=>{if(de.length===0){d(J({type:"danger",message:"Not found selected student."}));return}if(de.some(mt=>{const Ge=e?.[mt],z=t?.[mt],Se=_?.[mt],Xe=o?.[mt];return!Ge&&!z&&!Se&&!Xe})){d(J({type:"danger",message:"Please select/add teacher for all selected student first."}));return}const Ie=de.map(mt=>{const Ge=e?.[mt],z=t?.[mt],Se=_?.[mt],Xe=o?.[mt],lt={id:mt};return Ge&&(lt.mainTeacherUserId=Ge?Ge.map(Ut=>Ut.value):void 0,lt.mainTeacherEmail=Ge?Ge.map(Ut=>Ut.label):void 0),z&&(lt.assistantUserId=z?.value&&typeof z?.value=="string"?z?.value:void 0,lt.assistantEmail=z?.value&&typeof z?.value=="number"?z?.label:void 0),Se&&(lt.counselorUserIds=Se?Se.map(Ut=>Ut.value):void 0,lt.counselorEmails=Se?Se.map(Ut=>Ut.label):void 0),Xe&&(lt.secondaryTeacherUserId=Xe?.value&&typeof Xe?.value=="string"?Xe?.value:void 0,lt.secondaryTeacherEmail=Xe?.value&&typeof Xe?.value=="number"?Xe?.label:void 0),lt});e_([...Ie])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_),JSON.stringify(o)]),t_=v.useCallback(de=>{const we=e?.[de],Ie=t?.[de],mt=_?.[de],Ge=o?.[de];if(!we&&!Ie&&!mt&&!Ge){d(J({type:"danger",message:"Please select/add teacher for selected student first."}));return}const z={id:de};we&&(z.mainTeacherUserId=we?we.map(Se=>Se.value):void 0,z.mainTeacherEmail=we?we.map(Se=>Se.label):void 0),Ie&&(z.assistantUserId=Ie?.value&&typeof Ie?.value=="string"?Ie?.value:void 0,z.assistantEmail=Ie?.value&&typeof Ie?.value=="number"?Ie?.label:void 0),mt&&(z.counselorUserIds=mt?mt.map(Se=>Se.value):void 0,z.counselorEmails=mt?mt.map(Se=>Se.label):void 0),Ge&&(z.secondaryTeacherUserId=Ge?.value&&typeof Ge?.value=="string"?Ge?.value:void 0,z.secondaryTeacherEmail=Ge?.value&&typeof Ge?.value=="number"?Ge?.label:void 0),e_([z])},[JSON.stringify(e),JSON.stringify(t),JSON.stringify(_),JSON.stringify(o)]),i_=async de=>{if(de.length===0){d(J({type:"danger",message:"Not found selected student."}));return}if(f.teacher.length===0&&f.counselors.length===0&&!f.assistantId&&!f.secondaryTeacherId){d(J({type:"danger",message:"No change to assign!"}));return}const we=g?.filter(Ie=>de?.includes(Ie.id))?.every(Ie=>Array.isArray(Ie.teachers)&&Ie.teachers.length>0)??!1;if(f.teacher.length===0&&!we){d(J({type:"danger",message:"Please assign a teacher to each student before giving other educators access to them"}));return}d(ne(!0));try{if(f.teacher.length>0&&g&&g.length>0){const Ge=g.filter(z=>de.includes(z.id)).map(z=>{const Se=z.teachers?.map(lt=>lt.teacherUserId)||[],Xe=f.teacher.filter(lt=>!Se.includes(lt.id));return{id:z.id,mainTeacherUserId:Xe.map(lt=>lt.id),mainTeacherEmail:Xe.map(lt=>lt.email)}}).filter(z=>z.mainTeacherUserId.length>0||z.mainTeacherEmail.length>0);Ge.length>0&&await os(Ge)}if(f.counselors.length>0&&g&&g.length>0){const Ge=g.filter(z=>de.includes(z.id)).map(z=>{const Se=z.counselors?.map(lt=>lt.counselorUserId)||[],Xe=f.counselors.filter(lt=>!Se.includes(lt.id));return{id:z.id,counselorUserIds:Xe.map(lt=>lt.id),counselorEmails:Xe.map(lt=>lt.email)}}).filter(z=>z.counselorUserIds.length>0||z.counselorEmails.length>0);Ge.length>0&&await os(Ge)}const Ie=g?.filter(Ge=>!Ge.assistantUserId);if(Ie&&Ie?.length>0&&f.assistantId){const Ge=Ie.map(z=>({id:z.id,assistantUserId:f.assistantId,assistantEmail:f.assistantEmail}));await os(Ge.filter(z=>z!==void 0))}const mt=g?.filter(Ge=>!Ge.secondaryTeacherUserId);if(mt&&mt?.length>0&&f.secondaryTeacherId){const Ge=mt.map(z=>({id:z.id,secondaryTeacherUserId:f.secondaryTeacherId,secondaryTeacherEmail:f.secondaryTeacherEmail}));await os(Ge.filter(z=>z!==void 0))}d(J({type:"success",message:"Student assigned successfully"})),s?.(),Jt(),Xt()}catch(Ie){d(J({type:"danger",message:Ie.response?.data?.title||Ie.message}))}d(ne(!1))},yt=async de=>{if(f.teacher.length===0){d(J({type:"danger",message:"Please select teacher before assign!"}));return}if(le.length>0&&!de){Pe(!0);return}const we={id:c?.id||"",mainTeacherUserId:f.teacher.filter(Ie=>!c?.teachers?.some(mt=>mt.teacherUserId===Ie.id)).map(Ie=>Ie.id)||[],mainTeacherEmail:f.teacher.filter(Ie=>!c?.teachers?.some(mt=>mt.teacherUserId===Ie.id)).map(Ie=>Ie.email)||[],assistantUserId:f?.assistantId?f?.assistantId:void 0,assistantEmail:f?.assistantEmail?f?.assistantEmail:void 0,counselorUserIds:f.counselors.map(Ie=>Ie.id)||[],counselorEmails:f.counselors.map(Ie=>Ie.email)||[],secondaryTeacherUserId:f?.secondaryTeacherId?f?.secondaryTeacherId:void 0,secondaryTeacherEmail:f?.secondaryTeacherEmail?f?.secondaryTeacherEmail:void 0,removeTeacherUserIds:le,teacherSwitchUserId:de||""};f?.gradeLevel&&f.gradeLevel!==c?.gradeLevel&&await yS_(c?.id||"",f?.gradeLevel),e_([we])},p_=async(de,we)=>{d(ne(!0));try{(await sS_(de)).status==200&&(d(J({type:"success",message:`Inactive ${de.length} Students successfully`})),we())}catch(Ie){d(J({type:"danger",message:Ie.response?.data?.title||Ie.message}))}P(!T),d(ne(!1))},r_=v.useCallback(async de=>{if(Ye.assistantRemoveUserId.length&&!Ye.assistantSwitchDataUserId){d(J({type:"danger",message:"Please select an assistant to transfer data!"}));return}if(Ye.teacherRemoveUserIds.length&&!Ye.teacherSwitchDataUserId){d(J({type:"danger",message:"Please select a teacher to transfer data!"}));return}if(Ye.counselorRemoveUserIds.length&&!Ye.counselorSwitchDataUserId){d(J({type:"danger",message:"Please select a counselor to transfer data!"}));return}if(Ye.supportTeacherRemoveUserIds.length&&!Ye.supportTeacherSwitchDataUserId){d(J({type:"danger",message:"Please select a support teacher to transfer data!"}));return}d(ne(!0));try{await CS_({...Ye,studentUserIds:de||[]}),s?.(),await u()}catch(we){d(J({type:"danger",message:we.response?.data?.title||we.message}))}$t(),d(ne(!1))},[Ye]);return v.useEffect(()=>(c?.id&&A({teacher:c?.teachers?.map(de=>({id:de.teacherUserId,email:de.mainTeacherEmail})),assistantId:c?.assistantUserId,assistantEmail:c?.assistantEmail,counselors:c?.counselors?.map(de=>({id:de.counselorUserId,email:de.counselorEmail})),secondaryTeacherEmail:c?.secondaryTeacherEmail,secondaryTeacherId:c?.secondaryTeacherUserId,gradeLevel:c?.gradeLevel}),()=>{A(xs)}),[c]),{handleAssignSingleStudent:t_,handleAssignMultiStudent:S_,openModelBulk:p,handleToggleModel:Xt,handleChangeStaffBulk:g_,staffBulkAssign:f,onAssignStaffToStudents:i_,handleToggleInactiveModal:q_,openInactiveModal:T,handleInactiveStudents:p_,handleChangeTeacherBulk:I_,handleEditAssignForStudents:yt,handleToggleSwitchModel:Zt,openSwitchModal:E,optionsSwitch:L,modalType:C,textModal:Z,teacherSwitchList:O,onCloseSwitchModal:Jt,handleUpdateSwitch:C_,setTeacherChangeUserId:q,setTeacherSelectForChangeUserId:ee,teacherSelectForChangeUserId:K,openDetailModal:xe,setOpenDetailModal:Ne,toggleCollapse:Vt,activeIndex:et,handleChangeCounselorBulk:Qt,onClose:k_,removeTeacherUserIds:le,onSelectRemoveTeacher:It,openModelSwitchDataTeacher:Te,onToggleModelSwitchDataTeacher:Ht,teacherSwitchUserId:ie,setTeacherSwitchUserId:ge,onToggleModelDeleteBulk:$t,openModelDeleteBulk:Fe,handelChangeStaffRemove:$e,switchStaffUsers:Ye,handleRemoveBulkStaff:r_}};function kj_(e){return Rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M228.9 79.9L51.8 403.1C40.6 423.3 55.5 448 78.9 448h354.3c23.3 0 38.2-24.7 27.1-44.9L283.1 79.9c-11.7-21.2-42.5-21.2-54.2 0zM273.6 214L270 336h-28l-3.6-122h35.2zM256 402.4c-10.7 0-19.1-8.1-19.1-18.4s8.4-18.4 19.1-18.4 19.1 8.1 19.1 18.4-8.4 18.4-19.1 18.4z"}}]})(e)}const xj_=e=>{const{textModal:t,isOpen:_,teachers:o,options:s,onClose:c,onSave:u,modalType:g,setTeacherChangeUserId:d,setTeacherSelectForChangeUserId:p,teacherSelectForChangeUserId:x}=e,{t:f}=at.useTranslation();return n.jsxs(w.Modal,{centered:!0,isOpen:_,toggle:c,zIndex:1201,children:[n.jsx(w.ModalHeader,{className:V["header-assign-for-student"],children:f(t.header)}),n.jsxs(w.ModalBody,{children:[g!==bt.Assistant||g!==bt.SecondaryTeacher&&n.jsxs(v.Fragment,{children:[n.jsx("div",{children:f(t.titleSelect)}),n.jsx("ul",{style:{maxHeight:200,overflow:"auto"},children:o.map(A=>n.jsxs("li",{children:[A.name,"-",A.label]},A.label))})]}),(g===bt.Teacher||g===bt.Counselor)&&n.jsxs(v.Fragment,{children:[n.jsx("div",{children:f(t.selectPlaceholder)}),n.jsx(Dt,{options:o,value:o.filter(A=>A.value===x),placeholder:f(t.selectPlaceholder),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:A=>{p(A.value)},isClearable:!0,style:{maxWidth:120}})]}),n.jsx("div",{children:f(t.changeTitle)}),n.jsx(J_,{options:s,onChange:A=>{g!==bt.SecondaryTeacher?d(A.value):d(A.id)},placeholder:f(t.changePlaceholder),className:"flex-grow-1 mb-3"})]}),n.jsxs(w.ModalFooter,{className:"textModal-right",children:[n.jsx(w.Button,{onClick:()=>c(!1),children:f("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>{u()},children:f("save")})]})]})},Cj_=v.forwardRef(xj_),Ij_=({openDetailModal:e,onClose:t,selectedUser:_,staffBulkAssign:o,teacherOptions:s,handleChangeTeacherBulk:c,handleChangeCounselorBulk:u,assistantOptions:g,counselorOptions:d,secondaryTeacherOptions:p,handleChangeStaffBulk:x,handleEditAssignForStudents:f,toggleCollapse:A,activeIndex:T})=>{const{t:P}=at.useTranslation(),E=[_?.teachers||[],_?.counselors||[]];return n.jsxs(w.Modal,{centered:!0,isOpen:e,toggle:()=>t(),zIndex:1201,children:[n.jsxs(w.ModalHeader,{className:V["header-assign-for-student"],children:[n.jsxs("div",{children:["Assign student ",_?.fullName]}),n.jsxs("div",{children:["Grade ",_?.gradeLevel]})]}),n.jsxs(w.ModalBody,{children:[E.map((k,C)=>n.jsxs("div",{children:[n.jsxs("button",{type:"button",className:`btn ${V["btn-collapse"]} ${T===C?"btn-link ":""}`,onClick:()=>A(C),children:[P(C===0?"current_teacher_name":"current_counselor_name")," ",`(${k.length})`," ",n.jsx("i",{className:`fa fa-angle-${T===C?"up":"down"}`})]}),n.jsx(w.Collapse,{isOpen:T===C,children:n.jsx(w.Card,{children:n.jsx(w.CardBody,{children:k.length>0?k.map(N=>C===0?n.jsxs("li",{children:[N.mainTeacherName," - ",N.mainTeacherEmail]},N.mainTeacherEmail):n.jsxs("li",{children:[N.counselorName," - ",N.counselorEmail]},N.counselorUserId)):n.jsx("div",{children:P("no_data")})})})})]},C)),n.jsx("div",{children:P("teacher_email")}),n.jsx(Dt,{isMulti:!0,value:o.teacher.filter(k=>!_.teachers?.some(C=>C.teacherUserId===k.id)).map(k=>({label:k.email,value:k.id})),options:s.filter(k=>!_.teachers?.some(C=>C.teacherUserId===k.value)),placeholder:P("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:k=>{const C=k.map(N=>({id:N.value,email:N.label}));c(C)},isClearable:!0,style:{maxWidth:120}}),n.jsx("div",{children:P("assistant_email")}),n.jsx(J_,{value:g.find(k=>k.value==o.assistantId||k.label==o.assistantEmail)||null,options:g,onChange:k=>{x("assistant",k)},placeholder:P("select_assistant"),className:"flex-grow-1 mb-3"}),n.jsx("div",{children:P("counselor_email")}),n.jsx(Dt,{isMulti:!0,value:o.counselors.filter(k=>!_.counselors?.some(C=>C.counselorUserId===k.id)).map(k=>({label:k.email,value:k.id})),options:d.filter(k=>!_.counselors?.some(C=>C.counselorUserId===k.value)),placeholder:P("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:k=>{const C=k.map(N=>({id:N.value,email:N.label}));u(C)},isClearable:!0,style:{maxWidth:120}}),n.jsx("div",{children:P("support_teacher_email")}),n.jsx(J_,{value:p.find(k=>k.value==o.secondaryTeacherId||k.label==o.secondaryTeacherEmail)||null,options:p,onChange:k=>{x("secondary",k)},placeholder:P("select_support_teacher"),className:"flex-grow-1"}),n.jsx("div",{children:P("grade")}),n.jsx(u_,{value:jo.find(k=>k.value===o.gradeLevel),options:jo,placeholder:P("select_grade"),className:"flex-grow-1 mb-3",onChange:k=>{x("grade",k)},styles:{container:k=>({...k,maxWidth:120})}})]}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>t(),children:P("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>{f()},children:P("save")})]})]})},Sj_=({open:e,onClose:t,teachers:_,onConfirm:o,teacherSwitchUserId:s,setTeacherSwitchUserId:c})=>{const{t:u}=at.useTranslation();return n.jsxs(w.Modal,{centered:!0,isOpen:e,toggle:()=>t(),zIndex:1201,children:[n.jsx(w.ModalHeader,{className:V["header-assign-for-student"],children:n.jsx("div",{children:"Select teacher switch data"})}),n.jsx(w.ModalBody,{className:"p-0",children:n.jsx("div",{className:V["switch-data-teachers"],children:_.map(g=>n.jsx("p",{onClick:()=>c(g.teacherUserId),className:`${V["switch-data-teacher-item"]} ${g.teacherUserId==s?V["item-checked"]:""}`,children:g.mainTeacherName}))})}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>t(),children:u("cancel")}),n.jsx(w.Button,{disabled:!s,color:"primary",onClick:async()=>{await o(s),t()},children:u("save")})]})]})},Aj_=({teachers:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select teacher to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.teacherRemoveUserIds.includes(s.value))||[],options:e.filter(s=>!_.teacherRemoveUserIds.includes(s.value)&&s.value!==_.teacherSwitchDataUserId)||[],placeholder:o("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({teacherRemoveUserIds:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the teacher to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.teacherSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.teacherRemoveUserIds.includes(s.value)&&s.value!==_.teacherSwitchDataUserId)||[],placeholder:o("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{console.log("value",s),t({teacherSwitchDataUserId:s?.value})},isClearable:!0})]})},Ej_=({counselors:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select counselor to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.counselorRemoveUserIds.includes(s.value))||[],options:e.filter(s=>!_.counselorRemoveUserIds.includes(s.value)&&s.value!==_.counselorSwitchDataUserId)||[],placeholder:o("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({counselorRemoveUserIds:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the counselor to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.counselorSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.counselorRemoveUserIds.includes(s.value)&&s.value!==_.counselorSwitchDataUserId)||[],placeholder:o("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-counselor-select"]}`,onChange:s=>{t({counselorSwitchDataUserId:s?.value})},isClearable:!0})]})},Tj_=({tabs:e})=>{const{t}=at.useTranslation(),[_,o]=v.useState(0),s=u=>{o(u)},c=()=>n.jsx(w.Row,{children:n.jsxs(w.Col,{xl:12,children:[n.jsx(w.Nav,{tabs:!0,children:e.map((u,g)=>{const d=g===_;return n.jsx(w.NavItem,{children:n.jsx(w.NavLink,{className:`${d?"active":""} cursor-pointer`,onClick:()=>s(g),style:{color:d?"#316CD9":"#242424"},children:t(u.title)})},g)})}),n.jsx(w.TabContent,{activeTab:_,className:"border-bottom-0 border-left-0 border-right-0 p-3",children:e.map((u,g)=>n.jsx(w.TabPane,{tabId:g,children:n.jsx(u.component,{})},g))})]})});return n.jsx("div",{className:"animated fadeIn",children:c()})},jj_=({assistants:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select assistant to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.assistantRemoveUserId.includes(s.value))||[],options:e.filter(s=>!_.assistantRemoveUserId.includes(s.value)&&s.value!==_.assistantSwitchDataUserId)||[],placeholder:o("select_assistant"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({assistantRemoveUserId:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the assistant to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.assistantSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.assistantRemoveUserId.includes(s.value)&&s.value!==_.assistantSwitchDataUserId)||[],placeholder:o("select_assistant"),className:`flex-grow-1 mb-3 ${V["custom-chip-assistant-select"]}`,onChange:s=>{console.log("value",s),t({assistantSwitchDataUserId:s?.value})},isClearable:!0})]})},Nj_=({secondaryTeachers:e,onChangeStaffRemove:t,switchStaffUsers:_})=>{const{t:o}=at.useTranslation();return n.jsxs("div",{children:[n.jsx("h6",{children:"Select support teacher to remove"}),n.jsx(Dt,{isMulti:!0,value:e.filter(s=>_.supportTeacherRemoveUserIds.includes(s.value))||[],options:e.filter(s=>!_.supportTeacherRemoveUserIds.includes(s.value)&&s.value!==_.supportTeacherSwitchDataUserId)||[],placeholder:o("select_support_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({supportTeacherRemoveUserIds:s.map(c=>c.value)})},isClearable:!0}),n.jsx("h6",{className:"mt-3",children:"Select the support teacher to transfer data to"}),n.jsx(Dt,{value:e.find(s=>_.supportTeacherSwitchDataUserId==s.value)||null,options:e.filter(s=>!_.supportTeacherRemoveUserIds.includes(s.value)&&s.value!==_.supportTeacherSwitchDataUserId)||[],placeholder:o("select_support_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:s=>{t({supportTeacherSwitchDataUserId:s?.value})},isClearable:!0})]})},Pj_=({open:e,onClose:t,teachers:_,onChangeStaffRemove:o,switchStaffUsers:s,assistants:c,onRemoveBulkStaff:u,counselors:g,studentUserIds:d,secondaryTeachers:p})=>{const{t:x}=at.useTranslation(),f=[{title:"Remove Teacher",component:()=>n.jsx(Aj_,{teachers:_,onChangeStaffRemove:o,switchStaffUsers:s})},{title:"Remove Assistant",component:()=>n.jsx(jj_,{assistants:c,onChangeStaffRemove:o,switchStaffUsers:s})},{title:"Remove Counselor",component:()=>n.jsx(Ej_,{counselors:g,onChangeStaffRemove:o,switchStaffUsers:s})},{title:"Remove Support Teacher",component:()=>n.jsx(Nj_,{secondaryTeachers:p,onChangeStaffRemove:o,switchStaffUsers:s})}];return n.jsxs(w.Modal,{size:"lg",centered:!0,isOpen:e,toggle:()=>t(),zIndex:1201,children:[n.jsx(w.ModalHeader,{className:`${V["header-assign-for-student"]} border-0`,children:n.jsx("div",{children:"Remove Bulk"})}),n.jsx(w.ModalBody,{className:"p-0",children:n.jsx(Tj_,{tabs:f})}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>t(),children:x("cancel")}),n.jsx(w.Button,{disabled:!s.teacherRemoveUserIds.length&&!s.assistantRemoveUserId&&!s.counselorRemoveUserIds.length,color:"primary",onClick:async()=>{await u(d)},children:"Remove"})]})]})},qj_=()=>{const{t:e}=at.useTranslation(),{selectedTeachers:t,teacherOptions:_,setSelectedTeachers:o}=vj_(),{selectedAssistants:s,assistantOptions:c,setSelectedAssistants:u}=fj_(),{selectedCounselors:g,counselorOptions:d,setSelectedCounselors:p}=yj_(),{selectedSecondaryTeachers:x,secondaryTeacherOptions:f,setSelectedSecondaryTeachers:A}=wj_(),{isCheck:T,isCheckAll:P,userList:E,filters:k,totalItem:C,handleClickCheck:N,handleSelectAll:L,changeFilters:D,fullName:O,handleRetrievedData:R,selectedUser:W,setSelectedUser:F,getDataUserList:Z,userSelected:G,studentTeacherSelected:H,studentCounselorSelected:q,studentAssistantSelected:K,studentSecondaryTeacherSelected:ee}=pj_(),xe=()=>{R(),o(void 0),u(void 0),p(void 0),A(void 0)},{openModelBulk:Ne,handleToggleModel:et,staffBulkAssign:De,handleChangeStaffBulk:le,onAssignStaffToStudents:Ue,handleToggleInactiveModal:ie,openInactiveModal:ge,handleInactiveStudents:Te,handleChangeTeacherBulk:Pe,handleChangeCounselorBulk:Fe,handleEditAssignForStudents:ht,modalType:Ye,openSwitchModal:pe,optionsSwitch:$e,textModal:$t,teacherSwitchList:Ht,onCloseSwitchModal:It,handleUpdateSwitch:Vt,setTeacherChangeUserId:Xt,setTeacherSelectForChangeUserId:Zt,teacherSelectForChangeUserId:Jt,openDetailModal:k_,setOpenDetailModal:x_,toggleCollapse:C_,activeIndex:q_,onClose:g_,removeTeacherUserIds:I_,openModelSwitchDataTeacher:Qt,onToggleModelSwitchDataTeacher:e_,teacherSwitchUserId:S_,setTeacherSwitchUserId:t_,onToggleModelDeleteBulk:i_,openModelDeleteBulk:yt,handelChangeStaffRemove:p_,switchStaffUsers:r_,handleRemoveBulkStaff:de}=$j_(t,s,g,x,xe,W,Z,G),we=[{name:"",isCenter:!0,onSelectAll:L,isCheckAll:P,className:`align-top ${V["fixed-width-40"]}`},{name:"student_name",isCenter:!0,sortBy:kt.Name,searchBy:Mt.Name,className:`align-top ${V["fixed-width"]}`,getOption:z=>({label:z||"empty",value:z})},{name:"grade",isCenter:!0,sortBy:kt.Grade,searchBy:Mt.Grade,className:`align-center justify-center ${V["fixed-width-80"]}`,getOption:z=>({label:z||"empty",value:z})},{name:"teacher_emails",isCenter:!0,className:"align-center justify-center",sortBy:kt.Teacher,searchBy:Mt.Teacher,getOption:z=>({label:z||"empty",value:z})},{name:"assistant_email",isCenter:!0,className:"align-center justify-center",sortBy:kt.Assistant,searchBy:Mt.Assistant,getOption:z=>({label:z||"empty",value:z})},{name:"counselor_emails",isCenter:!0,className:"align-center justify-center",sortBy:kt.Counselor,searchBy:Mt.Counselor,getOption:z=>({label:z||"empty",value:z})},{name:"support_teacher_email",isCenter:!0,className:"align-center justify-center",sortBy:kt.SecondaryTeacher,searchBy:Mt.SecondaryTeacher,getOption:z=>({label:z||"empty",value:z})}],[Ie,mt]=v.useState(null),Ge=z=>{mt(Se=>Se===z?null:z)};return n.jsxs("div",{className:"fadeIn animated",children:[n.jsx("h5",{className:"mt-4 mb-2",children:e("assign_student")}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:3,children:n.jsx(K_,{initValue:k?.searchString||"",onSearch:z=>D({searchString:z}),placeholder:e("type_something_to_search_students")})}),n.jsx(w.Col,{md:8,className:"d-flex justify-content-end align-items-center",children:n.jsx(w.Row,{className:"mb-2",children:n.jsxs(w.Col,{style:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:4},children:[n.jsx(w.Button,{onClick:()=>et(T),color:"primary",style:{background:"#316cd9"},children:e("assign_bulk")}),n.jsx(w.Button,{onClick:()=>i_(T),color:"primary",style:{background:"#316cd9"},children:e("delete_bulk")}),n.jsx(w.Button,{onClick:()=>ie(T),color:"primary",style:{background:"#316cd9"},children:e("inactive_students")})]})})}),n.jsxs(w.Col,{md:1,className:"d-flex justify-content-end align-items-center",style:{whiteSpace:"nowrap",flexWrap:"nowrap"},children:[e("total_of_users"),": ",C]})]}),n.jsxs(w.Modal,{centered:!0,isOpen:Ne,toggle:()=>et(),zIndex:1201,children:[n.jsx(w.ModalHeader,{children:e("assign_bulk_student")}),n.jsxs(w.ModalBody,{children:[n.jsx(Dt,{isMulti:!0,value:De.teacher.map(z=>({label:z.email,value:z.id})),options:_,placeholder:e("select_teacher"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:z=>{const Se=z.map(Xe=>({id:Xe.value,email:Xe.label}));Pe(Se)},isClearable:!0,style:{maxWidth:120}}),n.jsx(J_,{value:c.find(z=>z.value==De.assistantId||z.label==De.assistantEmail)||null,options:c,onChange:z=>le("assistant",z),placeholder:e("select_assistant"),className:"flex-grow-1 mb-3"}),n.jsx(Dt,{isMulti:!0,value:De.counselors.map(z=>({label:z.email,value:z.id})),options:d,placeholder:e("select_counselor"),className:`flex-grow-1 mb-3 ${V["custom-chip-teacher-select"]}`,onChange:z=>{const Se=z.map(Xe=>({id:Xe.value,email:Xe.label}));Fe(Se)},isClearable:!0,style:{maxWidth:120}}),n.jsx(J_,{value:f.find(z=>z.value==De.secondaryTeacherId||z.label==De.secondaryTeacherEmail)||null,options:f,onChange:z=>le("secondary",z),placeholder:e("select_support_teacher"),className:"flex-grow-1"})]}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>et(),children:e("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>Ue(T),children:e("assign")})]})]}),n.jsxs(w.Modal,{centered:!0,isOpen:ge,toggle:()=>ie(),zIndex:1201,children:[n.jsx(w.ModalHeader,{children:e("inactive_students")}),n.jsxs(w.ModalBody,{style:{display:"flex",gap:12},children:[n.jsx(kj_,{color:"red",size:30}),n.jsx(w.CardText,{style:{fontSize:20,margin:0,display:"flex",alignItems:"center"},children:e("are_you_sure_you_want_to_inactive_students",{number:T.length})})]}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>ie(),children:e("cancel")}),n.jsx(w.Button,{color:"primary",onClick:()=>Te(T,xe),children:e("confirm")})]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:12,children:n.jsx("div",{children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,size:"sm",className:`${V["table-fixed"]}`,children:[n.jsx("thead",{children:n.jsx(Xi,{headers:we,filters:k,fullName:O,onChangeFilters:D,teacherOptions:_,assistantOptions:c,counselorOptions:d,secondaryTeacherOptions:f})}),E&&E.length>0?n.jsx("tbody",{children:E.map((z,Se)=>n.jsxs("tr",{children:[n.jsx("td",{className:`align-middle text-center ${V["fixed-width-40"]}`,children:n.jsx("input",{id:z.id,type:"checkbox",onChange:N,checked:T.includes(z.id)})}),n.jsxs("td",{className:`align-middle ${V["fixed-width"]}`,id:`student_name_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_name_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_name_${z.id}_${Se}`),children:[n.jsx("button",{type:"button",className:`${V["button-user-name"]} btn-link`,onClick:()=>{F(z),x_(!0)},children:z.fullName}),n.jsx(w.Tooltip,{placement:"top",isOpen:Ie===`student_name_${z.id}_${Se}`,target:`student_name_${z.id}_${Se}`,children:z.fullName})]}),n.jsx("td",{className:`align-middle ${V["fixed-width"]}`,id:`student_email_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_email_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_email_${z.id}_${Se}`),children:n.jsx("p",{children:z.gradeLevel})}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_teacher_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_teacher_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_teacher_${z.id}_${Se}`),children:[!!z.teachers&&z.teachers.length>0&&n.jsx(v.Fragment,{children:z.teachers.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.mainTeacherName," - ",Xe.mainTeacherEmail]},Xe.mainTeacherEmail))}),!!z.teachers&&z.teachers.length>0&&n.jsx(w.Tooltip,{placement:"top",isOpen:Ie===`student_teacher_${z.id}_${Se}`,target:`student_teacher_${z.id}_${Se}`,children:z.teachers.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.mainTeacherName," - ",Xe.mainTeacherEmail]},Xe.mainTeacherEmail))})]}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_assistant_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_assistant_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_assistant_${z.id}_${Se}`),children:[!!z.assistantEmail&&n.jsxs("p",{className:"mb-0",children:[z.assistantName," - ",z.assistantEmail]}),!!z.assistantEmail&&n.jsxs(w.Tooltip,{placement:"top",isOpen:Ie===`student_assistant_${z.id}_${Se}`,target:`student_assistant_${z.id}_${Se}`,children:[z.assistantName,"-",z.assistantEmail]})]}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_counselor_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_counselor_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_counselor_${z.id}_${Se}`),children:[!!z.counselors&&z.counselors.length>0&&n.jsx(v.Fragment,{children:z.counselors.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.counselorName," - ",Xe.counselorEmail]},Xe.counselorUserId))}),!!z.counselors&&z.counselors.length>0&&n.jsx(w.Tooltip,{placement:"top",isOpen:Ie===`student_counselor_${z.id}_${Se}`,target:`student_counselor_${z.id}_${Se}`,children:z.counselors.map(Xe=>n.jsxs("p",{className:"mb-0",children:[Xe.counselorName," - ",Xe.counselorEmail]},Xe.counselorUserId))})]}),n.jsxs("td",{className:`align-middle ${V["equal-width"]}`,id:`student_secondary_teacher_${z.id}_${Se}`,onMouseEnter:()=>Ge(`student_secondary_teacher_${z.id}_${Se}`),onMouseLeave:()=>Ge(`student_secondary_teacher_${z.id}_${Se}`),children:[!!z.secondaryTeacherEmail&&n.jsxs("p",{className:"mb-0",children:[z.secondaryTeacherName," - ",z.secondaryTeacherEmail]}),!!z.secondaryTeacherEmail&&n.jsxs(w.Tooltip,{placement:"top",isOpen:Ie===`student_secondary_teacher_${z.id}_${Se}`,target:`student_secondary_teacher_${z.id}_${Se}`,children:[z.secondaryTeacherName," - ",z.secondaryTeacherEmail]})]})]},z.id))}):n.jsx("div",{style:{width:"max-content",padding:20},children:e("no_data")})]})})}),n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:k,totalRecordCount:C,changePageSize:z=>D({pageSize:z}),changePage:z=>D({currentPage:z})})})]}),n.jsx(Ij_,{openDetailModal:k_,onClose:g_,selectedUser:W,staffBulkAssign:De,teacherOptions:_,handleChangeTeacherBulk:Pe,handleChangeCounselorBulk:Fe,assistantOptions:c,counselorOptions:d,secondaryTeacherOptions:f,handleChangeStaffBulk:le,handleEditAssignForStudents:ht,toggleCollapse:C_,activeIndex:q_}),n.jsx(Cj_,{textModal:$t,isOpen:pe,teachers:Ht,options:$e,onClose:It,onSave:Vt,modalType:Ye,setTeacherChangeUserId:Xt,setTeacherSelectForChangeUserId:Zt,teacherSelectForChangeUserId:Jt}),n.jsx(Sj_,{open:Qt,onClose:e_,teachers:W?.teachers?.filter(z=>!I_.includes(z.teacherUserId))||[],onConfirm:ht,teacherSwitchUserId:S_,setTeacherSwitchUserId:t_}),n.jsx(Pj_,{open:yt,onClose:i_,teachers:H,onChangeStaffRemove:p_,switchStaffUsers:r_,counselors:q,assistants:K,onRemoveBulkStaff:de,studentUserIds:T,secondaryTeachers:ee})]})},Rj_=()=>{const e=Ee.useDispatch(),[t,_]=v.useState(Vi),[o,s]=v.useState([]),[c,u]=v.useState(""),g=async()=>{try{const p=await A4_();s(p.data)}catch(p){e(J({type:"danger",message:p.response?.data?.title||p.message}))}},d=o.map(p=>({label:`${p.name} - ${p.email}`,value:p.id}));return v.useEffect(()=>{t.roles?.includes("Teacher")&&g()},[t]),{userChoiced:t,setUserChoiced:_,teacherList:o,options:d,setTeacherChangeId:u,teacherChangeId:c}},Lj_="User deleted list",Mj_=()=>{const{userChoiced:e,setUserChoiced:t,options:_,teacherChangeId:o,setTeacherChangeId:s}=Rj_(),[c,u]=v.useState([]),[g,d]=v.useState(0),{filters:p,changeFilters:x}=Ws(),f=Ee.useDispatch(),A=v.useRef(null),T=()=>{A&&A.current&&A.current.toggle()},P=()=>{s(""),t(Vi)},E=v.useCallback(async()=>{f(ne(!0));try{const C=await S4_(p),{items:N,totalItems:L}=C.data;u(N),d(L)}catch(C){f(J({type:"danger",message:C.response?.data?.title||C.message}))}f(ne(!1))},[f,p]);v.useEffect(()=>{document.title=Lj_},[]),v.useEffect(()=>{E()},[p]);const k=v.useCallback(C=>{f(Yt({isOpen:!0,type:"warning",message:"Do you want to remove this user?",onConfirm:async()=>{f(ne(!0));try{e.roles.includes("Teacher")?await wo(C,o):await wo(C),f(J({type:"success",message:"Remove user successfully"})),T(),P(),x({currentPage:1})}catch(N){f(J({type:"danger",message:N.response?.data?.title||N.message}))}f(ne(!1))}}))},[p,o,e]);return{userList:c,totalItems:g,filters:p,getData:E,removeData:k,changeFilters:x,modal:A,openModal:T,userChoiced:e,setUserChoiced:t,options:_,teacherChangeId:o,setTeacherChangeId:s,resetData:P}},Dj_=(e,t)=>{const{header:_,removeData:o,resetData:s,userChoiced:c,options:u,teacherChangeId:g,setTeacherChangeId:d}=e,{t:p}=at.useTranslation(),x=()=>{var f=window.location.origin+"/api/ExportDataUser/"+c.id;window.open(f)};return n.jsx(Xs,{header:_,ref:t,onCancel:()=>{s()},children:n.jsx(w.Row,{children:n.jsxs(w.Col,{md:12,className:"mb-2",children:[n.jsx("p",{children:p("export_user_data")}),n.jsx("div",{className:"pb-3",children:n.jsx(w.Button,{color:"success",onClick:()=>{x()},style:{color:"#fff"},children:p("download_users_data")})}),n.jsx("p",{children:"Delete user"}),!!c&&n.jsxs("div",{children:[c.roles.includes("Student")&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),style:{color:"#fff"},children:p("delete_user")})]}),c.roles.includes("Admin")&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),children:p("delete_user")})]}),c.roles.includes("Teacher")&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"warning",children:p("alert_delete_user")}),n.jsx(Dt,{options:u,defaultValue:g,placeholder:"select_teacher_change",onChange:f=>d(f.value)}),!!g&&n.jsxs("div",{className:"mt-2",children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),children:p("delete_user")})]})]}),(c.roles.includes("Parent")||c.roles.includes("Counselor")||c.roles.includes("SecondaryTeacher"))&&n.jsxs("div",{children:[n.jsx(w.Alert,{color:"danger",children:p("alert_delete_user")}),n.jsx(w.Button,{color:"danger",onClick:()=>o(c.id),children:p("delete_user")})]})]})]})})})},Bj_=v.forwardRef(Dj_),Oj_="user_deleted",Gj_=()=>{const{userList:e,totalItems:t,filters:_,changeFilters:o,removeData:s,openModal:c,modal:u,userChoiced:g,setUserChoiced:d,options:p,teacherChangeId:x,setTeacherChangeId:f,resetData:A}=Mj_(),{t:T}=at.useTranslation(),P=E=>{E&&d(E),c()};return n.jsxs("div",{className:"fadeIn animated",children:[n.jsx("h5",{className:"mt-4 mb-2",children:T(Oj_)}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:8,children:n.jsx(K_,{initValue:_.searchString,onSearch:E=>o({searchString:E}),placeholder:T("type_something_to_search_reflection_result")})}),n.jsxs(w.Col,{md:4,className:"d-flex justify-content-end align-items-center",children:[T("total_of_users"),": ",t]})]}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:12,children:e&&e.length>0?n.jsx("div",{children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"align-top",children:T("name")}),n.jsx("th",{className:"align-top",children:T("email")}),n.jsx("th",{className:"align-top",children:T("role")})]})}),n.jsx("tbody",{children:e.map(E=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:n.jsx(ms,{label:`${E.fullName}`,onClick:()=>P(E)})}),n.jsx("td",{className:"align-middle",children:E.email}),n.jsx("td",{className:"align-middle",children:!!E.roles&&E.roles.map(k=>k==="SecondaryTeacher"?"SupportTeacher":k).join(", ")})]},E.id))})]})}):n.jsx(Q_,{label:T("user")})}),n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:_,totalRecordCount:t,changePageSize:E=>o({pageSize:E}),changePage:E=>o({currentPage:E})})})]}),n.jsx(Bj_,{ref:u,header:g.fullName,onCancel:()=>{},userChoiced:g,removeData:s,options:p,teacherChangeId:x,setTeacherChangeId:f,resetData:A})]})},zj_={padding:"4px 8px",marginBottom:0,borderRadius:"4px",color:"#fff",fontWeight:500,fontSize:"14px",height:"56px",justifyContent:"center"},As=({htmlFor:e,isDisabled:t,text:_,backgroundColor:o,onClick:s,isClassReflection:c})=>n.jsxs(w.Label,{htmlFor:e,role:"button",tabIndex:0,className:`d-flex align-items-center justfy-content-center mr-2
|
|
19
19
|
${c?"w-25":""}
|
|
20
|
-
${t?"":"cursor-pointer hover-opacity"}`,style:{...zj_,backgroundColor:o,opacity:t?.5:1,gap:"8px"},onClick:u=>s(),children:[n.jsx("i",{className:"fa fa-paperclip mr-1","aria-hidden":"true"}),_]}),Fj_=`${ft}/api/ImportCsv/csv`,Qn=`${ft}/api/Teacher`;const ca=e=>Ot.post(`${Fj_}/importClassReflection`,e),Hj_=(e,t)=>Ot.post(`${Qn}/adminImportStudentByTeacherId/${e}`,t),Vj_=e=>ue.post(`${Qn}/adminImportChunkUser`,e),Wj_=()=>ue.get(`${Qn}/download-template-file-user`);var qr=(e=>(e.Students="students",e.Subjects="subjects",e.Grades="grades",e.Attendances="attendances",e.ClassReflection="classReflection",e.Others="others",e.AllUser="allUser",e))(qr||{});const Uj_=[{text:"import_users",backgroundColor:"#0abde3",type:"allUser"}],Yj_=[{text:"import_class_reflection",backgroundColor:"#e74c3c",type:"classReflection"}],Xj_="CSV Import",pn="csvupload",la={teacherName:"",teacherEmail:"",studentIds:[],file:""},Zj_=()=>{const e=Ee.useDispatch(),t=Ee.useSelector(q=>q.common.isLoading),[_,o]=v.useState(null),[s,c]=v.useState(),[u,g]=v.useState([]),[d,p]=v.useState(la),[x,f]=v.useState(),[A,T]=v.useState([]),P=!0,[E,k]=v.useState(0),[C,N]=v.useState("");v.useEffect(()=>{document.title=Xj_},[]);const L=P?Uj_:Yj_,D=async()=>{e(ne(!0));try{const ee=await Wj_();var q=new Blob([ee.data.content],{type:"text/csv"});const xe=window.URL.createObjectURL(q);var K=document.createElement("a");K.href=xe,K.setAttribute("download",ee.data.nameFile),K.click(),e(J({type:"success",message:"Download successfully"}))}catch(ee){e(J({type:"danger",message:ee.message}))}e(ne(!1))},O=v.useCallback(async q=>{if(!_||!q)return;e(ne(!0));try{const Ne=new FormData;Ne.append("file",q,q.name);const et=_==="allUser"?kn.Admin:kn.Teacher,De=await mA_(Ne,et);if(De.data&&De.data.length>0){T(De.data),e(ne(!1));return}if(_=="allUser"){let Ue=(await q.text()).trim();const
|
|
21
|
-
`).map(pe=>pe.trim()),ge=
|
|
22
|
-
`);const Te=bn.parse(Ue,{header:!0,skipEmptyLines:!0}),Pe=Te.meta.fields,Fe=Te.data;if(!Fe.length){e(ne(!1)),e(J({type:"danger",message:"The file has no data or some column names are misformed."}));return}const ht=10,Ye=[];for(let pe=0;pe<Fe.length;pe+=ht){const $t=Fe.slice(pe,pe+ht).map(Ht=>Object.values(Ht).map(It=>(It??"").toString().trim()));Pe&&$t.unshift(Pe),console.log({valuesOnly:$t}),Ye.push($t)}for(let pe=0;pe<Ye.length;pe++)await Vj_({chunks:Ye[pe]}),await new Promise($e=>setTimeout($e,500))}else P&&_=="classReflection"&&await ca(Ne);e(J({type:"success",message:"Import CSV successfully"}))}catch(Ne){console.error("❌ Upload failed",Ne),e(J({type:"danger",message:Ne.response?.data?.title||Ne.message}))}e(ne(!1));const K=document.getElementById(pn),ee=document.getElementById("import-student"),xe=document.getElementById("import-classReflection");K&&(K.value=""),ee&&(ee.value=""),xe&&(xe.value="")},[_]),R=async q=>{if(!E){e(J({type:"danger",message:"Select teacher before import csv"}));return}if(!_||!q)return;e(ne(!0));try{const ee=new FormData;ee.append("file",q,q.name),await Hj_(E,ee),e(J({type:"success",message:"Import CSV successfully"}))}catch(ee){e(J({type:"danger",message:ee.response?.data?.title||ee.message}))}e(ne(!1));const K=document.getElementById("teacherSelector");K&&(K.value="")},W=async q=>{if(!s||!s)return;e(ne(!0));try{const ee=new FormData;ee.append("file",s,s.name),ee.append("teacherName",q.teacherName),ee.append("teacherEmail",q.teacherEmail),q.studentIds.forEach(xe=>{ee.append("studentIds",xe)}),await ca(ee),e(J({type:"success",message:"Import CSV successfully"})),p(la)}catch(ee){e(J({type:"danger",message:ee.response?.data?.title||ee.message}))}e(ne(!1));const K=document.getElementById(pn);K&&(K.value="")},F=q=>{k(q.value)},Z=q=>{f(q),N(q?.name||"")},G=()=>{if(!x){e(J({type:"danger",message:"Select CSV to import"}));return}R(x)};return{isLoading:t,buttons:L,id:pn,setType:o,upload:O,initImportReflection:d,setInitImportReflection:p,onConfirm:W,CSVType:qr,dataFile:s,setDataFile:c,setArrStudent:g,arrStudent:u,isCheckDomainIBS:P,onChangeTeacher:F,uploadByTeacherId:R,setDataFileImportStudent:Z,onUpLoadStudentFile:G,defaultTeacher:E,fileName:C,onStudentSubmit:()=>{e(Yt({isOpen:!0,type:"warning",message:"Are you sure upload this file?",onConfirm:()=>{G()}}))},downloadTemplateUser:D,errorsValidate:A,setErrorsValidate:T}},Jj_=ct.object({teacherName:ct.string()?.trim().required(),teacherEmail:ct.string()?.trim().email("Invalid email").required(),studentIds:ct.array().required().test("test students","Please choose student",function(){return!!this.parent.studentIds&&!!this.parent.studentIds.length}),file:ct.string()?.trim().required()}),Qj_=()=>{const{initImportReflection:e,onConfirm:t,isLoading:_,setType:o,id:s,CSVType:c,dataFile:u,setDataFile:g,setArrStudent:d,buttons:p,upload:x,isCheckDomainIBS:f,downloadTemplateUser:A,errorsValidate:T,setErrorsValidate:P}=Zj_(),{t:E}=at.useTranslation();return n.jsx("div",{className:"animated fadeIn pt-3",children:f?n.jsxs(n.Fragment,{children:[n.jsx(w.Input,{className:"d-none",type:"file",id:"import-user",onChange:k=>x(k.target.files[0]),accept:"text/csv"}),n.jsx(w.Input,{className:"d-none",type:"file",id:"import-classReflection",onChange:k=>x(k.target.files[0]),accept:"text/csv"}),n.jsx("div",{className:"class-reflection",children:n.jsx(d_.Formik,{initialValues:e,enableReinitialize:!0,validationSchema:Jj_,onSubmit:(k,C)=>{t(k),g(""),d([]),C.resetForm()},children:k=>{const{touched:C,errors:N}=k;return n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Input,{className:"d-none",type:"file",id:s,onChange:L=>{g(L.target.files[0]),k.setFieldValue("file","imported");const D=document.getElementById(s);D&&(D.value="")},accept:"text/csv"}),n.jsx(w.Col,{md:6,className:"mb-2 d-flex mt-5",children:n.jsxs(w.Row,{className:"w-100 flex-column",children:[n.jsxs(w.Col,{md:12,className:"",children:[n.jsx(zt,{text:E("import_class_reflection")}),n.jsx(As,{htmlFor:"import-classReflection",text:E("import_class_reflection"),isDisabled:_,backgroundColor:"#e74c3c",onClick:()=>{o(c.ClassReflection)}},"Import class reflections"),!!u&&n.jsx("p",{style:{color:"#007bff",fontStyle:"italic",marginTop:"5px"},children:u.name})]}),!u&&n.jsx(w.Col,{md:12,className:"mb-2",children:C.file&&N.file&&n.jsx(Nt,{text:N.file})})]})}),n.jsx(w.Col,{md:6,className:"mb-2",children:n.jsxs(w.Row,{className:"flex-column",children:[n.jsx(w.Col,{md:12,className:"mb-2 text-right",style:{textAlign:"right"},children:n.jsx(w.Button,{role:"button",color:"primary",onClick:()=>A(),children:n.jsxs("p",{className:"d-flex align-items-center mb-0",children:[E("download_template")," ",n.jsx(Lo,{size:20,className:"ml-2"})]})})}),n.jsxs(w.Col,{md:12,className:"mb-2",children:[n.jsx(zt,{text:E("import_users")}),p.map(L=>n.jsx(As,{htmlFor:"import-user",text:L.text,isDisabled:_,backgroundColor:L.backgroundColor,onClick:()=>o(L.type)},L.text))]}),T?.length>0&&T.map((L,D)=>n.jsx(Nt,{text:L},D))]})})]})}})})]}):n.jsx(n.Fragment,{children:n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:12,className:"mt-2 mb-2 text-left",children:n.jsx(w.Button,{role:"button",color:"primary",onClick:()=>A(),children:n.jsxs("p",{className:"d-flex align-items-center mb-0",children:[E("download_template")," ",n.jsx(Lo,{size:20,className:"ml-2"})]})})}),n.jsxs(w.Col,{md:6,className:"mb-3",children:[n.jsx(w.Input,{id:"import-user",className:"d-none",type:"file",onChange:k=>x(k.target.files[0]),accept:"text/csv"}),n.jsx(zt,{text:E("import_users")}),n.jsx(As,{htmlFor:"import-user",text:E("import_users"),isDisabled:_,backgroundColor:"#0abde3",onClick:()=>{o(c.AllUser),T.length>0&&P([])}},"import-users")]}),T.length>0&&T.map((k,C)=>n.jsx(Nt,{text:k},C)),n.jsxs(w.Col,{md:6,className:"mb-3",children:[n.jsx(w.Input,{className:"d-none",type:"file",id:s,onChange:k=>x(k.target.files[0]),accept:"text/csv"}),p.map(k=>n.jsxs(n.Fragment,{children:[n.jsx(zt,{text:E(k.text)}),n.jsx(As,{htmlFor:s,text:E(k.text),isDisabled:_,backgroundColor:k.backgroundColor,onClick:()=>o(k.type)},k.text)]}))]})]})})})},Kj_=[{path:"/admin/users/user-list",title:"user_list",component:Qi},{path:"/admin/users/assign-student",title:"assign_student",component:qj_},{path:"/admin/users/user-deleted",title:"user_deleted",component:Gj_},{path:"/admin/users/import-csv",title:"csv_import",component:Qj_}],eN_=()=>n.jsx(Ki,{tabs:Kj_});function tN_(e){return Rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}const _N_=20097152,Rr=({fileName:e,maxWidth:t,maxHeight:_,setFile:o,canDelete:s,onDelete:c,isCheckFeedBack:u,onAddImage:g})=>{const d=Ee.useDispatch(),{t:p}=at.useTranslation(),[x,f]=v.useState(""),A={maxWidth:t||"100%",maxHeight:_||"100%"},T=x||o_(e),P=k=>{k.preventDefault();let C=new FileReader,N=k.target.files[0];if(N.size>_N_){d(J({type:"danger",message:"File can't be larger than 2MB"}));return}C.onloadend=()=>{o(N),f(C.result)},N&&C.readAsDataURL(N),g&&g()},E=x||e?n.jsx("img",{style:A,src:T,alt:"image"}):null;return n.jsxs("div",{className:"mb-2",children:[n.jsxs(w.Form,{className:"mb-2",children:[n.jsx(w.Input,{className:"d-none",type:"file",id:"uploadFile",onChange:P,accept:"image/*"}),n.jsxs("div",{className:"d-flex align-items-center",children:[n.jsx(w.Label,{htmlFor:"uploadFile",role:"button",tabIndex:0,className:V["input-file-label"],children:u==!0?n.jsx(tN_,{}):n.jsxs(v.Fragment,{children:[n.jsx("i",{className:"fa fa-paperclip mr-1","aria-hidden":"true"}),x||e?"Change file":p("choose_file")]})}),s&&E&&n.jsx(w.Button,{size:"sm",color:"danger",className:`${V["delete-avatar-button"]} ml-2 d-flex align-items-center justify-content-center`,onClick:()=>{f(null),c&&c()},children:n.jsx(Ni,{})})]})]}),E]})},sN_={id:"",firstName:"",lastName:"",email:"",dateOfBirth:"",roles:[],isActive:!0,profileImageFileName:"",teacherUserId:[]},da="/admin/users/user-list",nN_="User detail",oN_=e=>{const t=Ee.useDispatch(),_=Ct.useNavigate(),[o,s]=v.useState(sN_),[c,u]=v.useState(!1),[g,d]=v.useState([]),[p,x]=v.useState(null),[f,A]=v.useState(!1),[T,P]=v.useState({isHasAssistantData:!1,isHasCounselorData:!1,isHasEduTeacherData:!1,isHasSecondaryTeacherData:!1,isHasTeacherData:!1}),E=async()=>{localStorage.setItem(window.location.href,"true"),A(!0)},[k,C]=v.useState([]),N=()=>{u(!c)};v.useEffect(()=>{document.title=nN_,A(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},[]),v.useEffect(()=>{e&&(L(),D()),!e&&O()},[e]);const L=v.useCallback(async()=>{t(ne(!0));try{const q=await pS_(e);P(q.data)}catch(q){t(J({type:"danger",message:q.response?.data?.title||q.message}))}t(ne(!1))},[e]),D=v.useCallback(async()=>{t(ne(!0));try{const q=await To(e);s({...q.data,dateOfBirth:v_.format(new Date(q.data.dateOfBirth),qn),roles:q.data.roles.map(K=>K!="EduTeacher"?K:w_.EDUTEACHER)}),C(q?.data?.roles??[]),document.title=q.data?.fullName}catch(q){t(J({type:"danger",message:q.response?.data?.title||q.message}))}t(ne(!1))},[e]),O=async()=>{try{const q=await Fi({sortBy:"Email"});q.data&&d(q.data.map?.(K=>({label:K.email,value:K.id}))||[])}catch(q){t(J({type:"danger",message:q.response?.data?.title||q.message}))}},R=v.useCallback(q=>{_(q&&typeof q=="string"?da+`?query=${q}`:da)},[]),W=v.useCallback(async q=>{t(ne(!0));try{if(p){const xe=new FormData,{name:Ne}=p;xe.append("file",p,Ne);const De=(await pI_(xe))?.data?.key;q.profileImageFileName=De}const K=e?_S_:tS_;!e&&delete q.id,q.dateOfBirth===""&&delete q.dateOfBirth;const ee=await K(q);ee&&To(ee.data.id).then(xe=>{R(xe.data.fullName)}),e||alert("Password of "+ee.data.email+` is "${ee.data.password}"`),ee.data.id&&await $S_(ee.data.id,q.gradeLevel),t(J({type:"success",message:`${e?"Update":"Create"} user successfully`}))}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message}))}t(ne(!1))},[e,p]),F=q=>["Student","Parent","EduTeacher"].includes(q),Z=async q=>{t(ne(!0));try{await oS_(q),t(J({type:"success",message:"Change password successfully"}))}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message}))}t(ne(!1))},G=v.useCallback(async q=>{t(ne(!0));try{await aS_(q),t(J({type:"success",message:"Send forgot password link successfully"}))}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message||"Error occured"}))}t(ne(!1))},[]),H=v.useCallback(async q=>{t(ne(!0));try{const ee=await dS_({userId:q});if(ee.data){const xe=`${o.firstName} ${o.lastName}`;alert(`Password of ${xe} is ${ee.data}`),t(J({type:"success",message:"Update user password successfully"}))}}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message}))}t(ne(!1))},[o]);return{userDetail:o,backToList:R,confirmData:W,file:p,setFile:x,edited:f,setEdited:A,setEditedTrue:E,confirmChangePassword:Z,forgotPasswordRequest:G,currentRoles:k,handleDisableRoles:F,handleResetPassword:H,teacherOptions:g,openModel:c,handleToggleModel:N,userHasData:T}},aN_=ct.object({firstName:ct.string().required("First name is required"),lastName:ct.string().required("Last name is required"),email:ct.string().email("Email is invalid").required("Email is required"),roles:ct.array().of(ct.string()).min(1,"Role is required")}),iN_=ct.object({oldPassword:ct.string().required("Current password is required"),newPassword:ct.string().required("New password is required"),confirmedNewPassword:ct.string().required("Confirm password is required")}),rN_={currentPage:1,pageSize:100},cN_=(e,t)=>{const[_,o]=v.useState([]),[s,c]=v.useState(!1),[u,g]=v.useState(rN_),[d,p]=v.useState(),x=Ee.useDispatch(),f=v.useCallback(async()=>{c(!0);try{const N=(await rS_(u)).data?.items||[];o(T(N))}catch{x(J({type:"error",message:"Cannot get roster users"}))}c(!1)},[JSON.stringify(u)]),A=v.useCallback(async()=>{if(!t)return;const C=_.find(N=>N.value===t);if(C){p(C);return}c(!0);try{const L=(await cS_(t)).data;p({label:P(L),value:L.sourcedId})}catch(N){console.log("err:",N)}c(!1)},[t]),T=C=>C.map(N=>({label:P(N),value:N.sourcedId})),P=C=>{const N=[],{givenName:L,middleName:D,familyName:O,email:R,role:W}=C,F=[];return L&&F.push(L),D&&F.push(D),O&&F.push(O),F.length&&N.push(F.join(" ")),R&&N.push(R),`${N.join(" - ")}${W?` (${W})`:""}`},E=C=>{g(N=>({...N,searchString:C}))},k=v.useCallback(C=>{g({...u,...C})},[JSON.stringify(u)]);return v.useEffect(()=>{u.roles?.length&&f()},[JSON.stringify(u)]),v.useEffect(()=>{k({roles:e})},[JSON.stringify(e)]),v.useEffect(()=>{A()},[t]),{users:_,isLoading:s,user:d,handleInputChange:E}},lN_=({value:e,roles:t,onChange:_})=>{const{users:o,isLoading:s,user:c,handleInputChange:u}=cN_(t,e);return n.jsx(Dt,{options:o,value:c,placeholder:"Select user",onChange:_,isLoading:s,onInputChange:u})},dN_="create_user",uN_="edit_user",hN_="change_password",mN_=()=>{const{id:e}=Ct.useParams(),t=Ee.useSelector(G=>G.common.user),{t:_}=at.useTranslation(),{userDetail:o,backToList:s,confirmData:c,file:u,setFile:g,edited:d,setEdited:p,setEditedTrue:x,confirmChangePassword:f,forgotPasswordRequest:A,currentRoles:T,handleDisableRoles:P,handleResetPassword:E,teacherOptions:k,openModel:C,handleToggleModel:N,userHasData:L}=oN_(e),D={oldPassword:"",newPassword:"",confirmedNewPassword:""},O=_(e?`${uN_}`:`${dN_}`),R=_(e?"update":"create"),W=()=>{var G=window.location.origin+"/api/ExportDataUser/"+e;window.open(G)},F=async G=>{var H={email:G};A(H)},Z=()=>{if(!e)return;confirm("You want to reset this user's password")==!0&&E(e)};return n.jsx(d_.Formik,{initialValues:o,enableReinitialize:!0,validationSchema:aN_,onSubmit:G=>{c({...G,roles:G.roles.map(H=>H!=w_.EDUTEACHER?H:"EduTeacher")}),p(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},children:G=>{const{values:H,touched:q,errors:K,setFieldValue:ee,handleChange:xe,handleBlur:Ne,handleSubmit:et}=G,De=v.useCallback(le=>{if(H.roles.includes(le)){ee("roles",H.roles.filter(Ue=>Ue!==le));return}if([w_.STUDENT,w_.PARENT].includes(le)){ee("roles",[le]);return}if(H.roles.includes(w_.STUDENT)&&w_.STUDENT!=le){ee("roles",[le]);return}ee("roles",[...H.roles,le])},[H.roles]);return n.jsxs("div",{className:`animated fadeIn detail-buttons-padding ${Ps<=767?V["p-0-12"]:""}`,children:[n.jsx(Us,{when:d}),n.jsx("h5",{className:"mb-2",children:O}),n.jsxs(w.Row,{className:"pt-2",children:[n.jsxs(w.Col,{md:8,children:[n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("first_name"),className:"text-capitalize"}),n.jsx(w.Input,{name:"firstName",value:H.firstName,onChange:le=>{xe(le),x()},onBlur:Ne("subject"),placeholder:_("first_name"),className:V["input-name"]}),q.firstName&&K.firstName&&n.jsx(Nt,{text:K.firstName})]})}),n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(w.Label,{children:_("date_of_birth")}),n.jsx("div",{children:n.jsx(dd,{value:H.dateOfBirth,todayButton:"Today",peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",selected:H.dateOfBirth?xn(new Date(H.dateOfBirth)):null,onChange:le=>{G.setFieldValue("dateOfBirth",v_.format(le,qn)),x()},placeholderText:_("date_of_birth"),customInput:n.jsx(w.Input,{type:"text",style:{width:"maxContent"},placeholder:_("date_of_birth")})})})]})})]}),n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("last_name"),className:"text-capitalize"}),n.jsx(w.Input,{name:"lastName",value:H.lastName,onChange:le=>{xe(le),x()},onBlur:Ne("lastName"),placeholder:_("last_name"),className:V["input-name"]}),q.lastName&&K.lastName&&n.jsx(Nt,{text:K.lastName})]})}),n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("roles")}),n.jsx(w.Row,{children:n.jsx(w.Col,{md:12,className:"d-flex flex-wrap align-items-center",children:M3_.map(le=>n.jsx("div",{className:"mr-3",children:n.jsx(w.Input,{type:"checkbox",id:`role-checkbox-${le}`,label:le==="SecondaryTeacher"?"SupportTeacher":`${le}`,checked:H.roles.includes(le),onChange:()=>{e&&(L.isHasTeacherData&&le==="Teacher"||L.isHasAssistantData&&le==="Assistant"||L.isHasCounselorData&&le==="Counselor"||L.isHasSecondaryTeacherData&&le==="SecondaryTeacher"||le=="Student"&&(L.isHasAssistantData||L.isHasCounselorData||L.isHasSecondaryTeacherData||L.isHasTeacherData))?alert("Please switch data before removing the role"):(De(le),x())},disabled:T.includes("Parent")||T.includes("Student")&&e?T.concat(["Student","Parent"]).includes(le)||T.every(P):["Parent"].includes(le)})},le))})}),q.roles&&K.roles&&n.jsx(Nt,{text:K.roles})]})})]}),n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("email")}),n.jsx(w.Input,{name:"email",value:H.email,onChange:le=>{xe(le),x()},onBlur:Ne("email"),placeholder:_("email")}),q.email&&K.email&&n.jsx(Nt,{text:K.email})]})}),n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("status")}),n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:3,children:n.jsx(w.Input,{id:"role-checkbox-active",type:"radio",name:"active",label:_("active"),checked:!!H&&!!H.isActive,onChange:()=>{ee("isActive",!0),x()}})}),n.jsx(w.Col,{md:3,children:n.jsx(w.Input,{id:"role-checkbox-inActive",type:"radio",name:"active",label:_("inactive"),checked:!!H&&!H.isActive,onChange:()=>ee("isActive",!1)})})]})]})})]}),H.roles.includes(w_.STUDENT)&&n.jsx(w.Row,{children:n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(w.Label,{children:"Grade Level"}),n.jsx(Dt,{options:No,value:No.find(le=>le.value==H.gradeLevel),placeholder:"Grade Level",onChange:le=>{ee("gradeLevel",le.value)}})]})})}),!!e&&n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:(!H.roles.includes("Admin")||H.roles.length>1)&&!!H.roles.length&&n.jsxs(w.FormGroup,{children:[n.jsx(w.Label,{children:"Map from Roster"}),n.jsx(lN_,{roles:H.roles,value:H.sourcedId,onChange:le=>ee("sourcedId",le.value)})]})}),n.jsxs(w.Col,{md:6,children:[n.jsx(w.Button,{color:"primary",className:"w-100",onClick:()=>{F(H.email||"")},children:_("send_forgot_password_link")}),n.jsx(w.Button,{color:"primary",className:"w-100 mt-3",onClick:()=>Z(),children:_("reset_password")}),n.jsx(w.Button,{color:"success",className:"w-100 mt-3",onClick:()=>{W()},children:_("download_user_data")})]})]})]}),n.jsx(w.Col,{md:4,children:n.jsx(w.Row,{children:n.jsxs(w.Col,{md:8,children:[n.jsx(Rr,{setFile:g,fileName:H.profileImageFileName,onAddImage:x,canDelete:!0,onDelete:()=>{g(null),ee("profileImageFileName",""),x()}}),!u&&!H.profileImageFileName&&n.jsx("img",{src:G3_,style:{maxWidth:"100%"}})]})})})]}),t.id===e?n.jsxs("div",{children:[n.jsx("h5",{className:"mt-3",children:_(`${hN_}`)}),n.jsx(d_.Formik,{initialValues:D,enableReinitialize:!0,validationSchema:iN_,onSubmit:le=>{f(le)},children:le=>{const{values:Ue,touched:re,errors:ge,handleChange:Te,handleSubmit:Pe}=le;return n.jsxs(w.Row,{className:"pt-2 pb-5",children:[n.jsx(w.Col,{md:7,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("current_password"),className:"text-capitalize"}),n.jsx(w.Input,{name:"oldPassword",type:"password",value:Ue.oldPassword,onChange:Fe=>{Te(Fe),x()},onBlur:Ne("subject"),placeholder:_("current_password"),className:V["input-name"]}),re.oldPassword&&ge.oldPassword&&n.jsx(Nt,{text:ge.oldPassword})]})}),n.jsx(w.Col,{md:7,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("new_password"),className:"text-capitalize"}),n.jsx(w.Input,{name:"newPassword",type:"password",value:Ue.newPassword,onChange:Fe=>{Te(Fe),x()},onBlur:Ne("subject"),placeholder:_("new_password"),className:V["input-name"]}),re.newPassword&&ge.newPassword&&n.jsx(Nt,{text:ge.newPassword})]})}),n.jsx(w.Col,{md:7,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("confirm_password"),className:"text-capitalize"}),n.jsx(w.Input,{name:"confirmedNewPassword",type:"password",value:Ue.confirmedNewPassword,onChange:Fe=>{Te(Fe),x()},onBlur:Ne("subject"),placeholder:_("confirm_password"),className:V["input-name"]}),re.confirmedNewPassword&&ge.confirmedNewPassword&&n.jsx(Nt,{text:ge.confirmedNewPassword})]})}),n.jsx(w.Col,{md:12,children:n.jsx(w.Button,{color:"primary",size:"sm",className:"px-4 pl-1 mr-2 ml-3",onClick:()=>Pe(),children:_("save")})})]})}})]}):null,n.jsx(Hn,{confirmText:R,onConfirm:H.roles.includes(w_.STUDENT)&&!e?N:et,onCancel:s}),n.jsxs(w.Modal,{centered:!0,isOpen:C,toggle:()=>N(),children:[n.jsx(w.ModalHeader,{children:"Assign Teacher"}),n.jsx(w.ModalBody,{children:n.jsx(J_,{isMulti:!0,value:k.filter(le=>H.teacherUserId?.includes(le.value))||null,options:k,onChange:le=>ee("teacherUserId",le.map(Ue=>Ue.value)),placeholder:_("select_teacher"),className:"flex-grow-1 mb-3"})}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>N(),children:"Cancel"}),n.jsx(w.Button,{disabled:!H.teacherUserId,color:"primary",onClick:()=>{et()},children:"Assign"})]})]})]})}})},gN_={minWidth:"100vw",minHeight:"100vh",position:"fixed",top:0,left:0,zIndex:999999999,backgroundColor:"rgba(0, 0, 0, 0.4)",display:"flex",justifyContent:"center",alignItems:"center"},pN_=()=>{const e=Ee.useSelector(t=>t.common.isLoading);return localStorage.setItem("LAST_TIME_REQUETST",new Date().toISOString().replace("T"," ").split(".")[0]),e?n.jsx("div",{style:gN_,children:n.jsx("div",{className:"spinner-border text-secondary",role:"status",children:n.jsx("span",{className:"sr-only",children:"Loading..."})})}):null},yN_=()=>{const{pathname:e}=Ct.useLocation();return v.useEffect(()=>{window.scrollTo(0,0)},[e]),null},ua=e=>{switch(e){case"danger":return{header:"Error",color:$s.DANGER};case"warning":return{header:"Warning",color:$s.WARNING};case"success":return{header:"Success",color:$s.SUCCESS};default:return{header:"Infomation",color:$s.INFO}}},fN_=()=>{const e=Ee.useDispatch(),t=Ee.useSelector(x=>x.common.modal),{t:_}=at.useTranslation(),{isOpen:o,type:s,message:c,onConfirm:u}=t,g=v.useCallback(()=>{e(Yt({isOpen:!o,type:s}))},[o]),d={backgroundColor:ua(s).color},p=()=>{u&&u(),g()};return n.jsxs(w.Modal,{isOpen:o,toggle:g,fade:!0,zIndex:1202,children:[n.jsx(w.ModalHeader,{toggle:g,style:d,children:ua(s).header}),n.jsx(w.ModalBody,{children:c}),n.jsxs(w.ModalFooter,{children:[u&&n.jsx(w.Button,{color:s,onClick:p,children:_("confirm")}),n.jsx(w.Button,{color:"secondary",onClick:g,children:_("cancel")})]})]})},wN_={paddingBottom:"16px"},ha={fontSize:"1.5rem",textAlign:"center"},vN_=({header:e,rootHeader:t})=>n.jsx("div",{style:wN_,children:n.jsxs(w.Row,{children:[t&&n.jsx(w.Col,{md:4,children:n.jsx("span",{className:"text-muted",style:ha,children:t})}),n.jsx(w.Col,{md:4,children:n.jsx("span",{style:ha,children:e})})]})}),bN_=13,yn=15,$N_=()=>{const e=Ct.useNavigate(),[t,_]=v.useState(!1),[o,s]=v.useState({minutes:0,timeLogout:""}),c=()=>{try{return localStorage?.getItem?.("LAST_ACTIVITY_TIME")??null}catch{return null}},u=()=>{localStorage.removeItem(jt),sessionStorage.removeItem(jt),localStorage.removeItem("ROLES"),localStorage.removeItem("LAST_ACTIVITY_TIME"),_(!1),e("/login",{replace:!0})},g=()=>{if(!j_())return;const x=c();if(!x){localStorage?.setItem?.("LAST_ACTIVITY_TIME",new Date().toISOString());return}const f=new Date(x),A=new Date,T=v_.differenceInMinutes(A,f);if(T>=yn){u();return}const P=ys(v_.format(v_.addMinutes(A,yn-T),"yyyy-MM-dd HH:mm"),"HH:mm");T>=bN_&&(s({minutes:T,timeLogout:P}),_(!0))};v.useEffect(()=>{const p=setInterval(()=>{g()},6e4);return()=>clearInterval(p)},[]);const d=()=>{_(!t)};return n.jsxs(w.Modal,{isOpen:t,toggle:d,size:"xs",zIndex:1201,children:[n.jsx(w.ModalHeader,{toggle:d,children:"Notification Logout"}),n.jsx(w.ModalBody,{children:`Are you still here? You have had no action for ${o?.minutes} mins.
|
|
23
|
-
Your account could be log out after ${yn-o?.minutes} mins at ${o?.timeLogout} if you don't action.`}),n.jsx(w.ModalFooter,{className:"text-right",children:n.jsx(w.Button,{color:"primary",onClick:d,children:"Confirm"})})]})},kN_=({onClick:e,className:t})=>n.jsx("div",{className:`d-inline text-center cursor-pointer hover-opacity ${t}`,title:"Edit",onClick:e,children:n.jsx(qC_,{})}),xN_=()=>{const e=Ee.useSelector(_=>_?.common?.isSandboxMode),t=location.pathname==="/login";return e&&n.jsxs("div",{className:`sandbox-alert ${t?"sandbox-alert--login":""} d-flex justify-content-center align-items-center p-3`,children:[n.jsx("div",{children:"Sandbox Mode:"})," ",n.jsx("div",{className:"ml-2 green-circle"})]})},CN_={DropdownIndicator:null},IN_=e=>{const{inputValue:t,value:_,placeholder:o,handleChange:s,handleInputChange:c,handleKeyDown:u}=e;return n.jsx(Pr,{components:CN_,placeholder:o||"Type something to create option",isClearable:!0,isMulti:!0,menuIsOpen:!1,value:_,inputValue:t,onChange:s,onInputChange:c,onKeyDown:u})},SN_=e=>{const{id:t}=e,_=t&&$n.find(o=>o.value===t)||null;return n.jsx(u_,{options:$n,value:_,...e})},AN_=`${ft}/api/SuggestionCategory`,EN_=()=>ue.get(AN_),TN_=e=>{const[t,_]=v.useState([]);v.useEffect(()=>{o()},[]);const o=async()=>{try{const g=await EN_();_(g.data.items)}catch(g){console.error(g)}},{id:s}=e,c=t.map(g=>({id:g.id,value:g.id,label:g.name})),u=s&&c.find(g=>g.value===s)||null;return n.jsx(u_,{options:c,value:u,...e})},Lr=`${ft}/api/QuestionCategory`,jN_=e=>ue.get(Lr,{params:{parentCategoryId:e}}),NN_=e=>ue.get(Lr,{params:e}),PN_=e=>{const[t,_]=v.useState([]),{id:o,parentCategoryId:s}=e;v.useEffect(()=>{c()},[]);const c=async()=>{try{const d=await jN_(s);_(d.data.items)}catch(d){console.error(d)}},u=t.map(d=>({id:d.id,value:d.id,label:d.name})),g=o&&u.find(d=>d.value===o)||null;return n.jsx(u_,{options:u,value:g,...e})},qN_=()=>{const[e,t]=v.useState([]),_=Ee.useDispatch(),o=v.useCallback(async()=>{_(ne(!0));try{const c=await NN_({...Pn,pageSize:-1}),u=s(c.data.items);t(u)}catch(c){_(J({type:"danger",message:c.response?.data?.title||c.message}))}_(ne(!1))},[]),s=(c,u,g)=>{let d=[];return u?(d.push(u),g?.forEach(p=>{const x=c.filter(A=>A.parentCategoryId?.includes(p.id)),f={...p,label:p.name,value:p.id,level:u.level?u.level+1:1,isDisabled:!1};d=d.concat(s(c,f,x))})):c.filter(x=>!x.parentCategoryId).forEach(x=>{const f=c.filter(T=>T.parentCategoryId?.includes(x.id)),A={...x,label:x.name,value:x.id,level:0,isDisabled:!1};d=d.concat(s(c,A,f))}),d};return v.useEffect(()=>{o()},[]),{categories:e}},RN_={control:e=>({...e,backgroundColor:"white"}),option:(e,{data:t})=>({...e,fontWeight:t?.level?"normal":"bold",paddingLeft:`${(t?.level||0)+1}rem`,paddingRight:"1rem",cursor:t.isDisabled?"not-allowed":"pointer",color:"var(--color)","&:first-letter":{textTransform:"uppercase"}})},LN_=({value:e,...t})=>{const{categories:_}=qN_(),{t:o}=at.useTranslation(),s=e&&_.find(c=>c.value===e)||null;return n.jsx(u_,{value:s,options:_,styles:RN_,placeholder:o("select_category"),...t})},MN_=e=>{const{id:t}=e,_=t&&po.find(o=>o.value===t)||null;return n.jsx(u_,{options:po,value:_,...e,menuPlacement:"top"})},ma="primary",ga="secondary",DN_=({textLeft:e,textRight:t,isLeft:_,clickLeft:o,clickRight:s})=>n.jsxs("div",{className:"w-100 d-flex",children:[n.jsx(w.Button,{size:"sm",color:_?ma:ga,onClick:o,className:"toggle-btn toggle-btn-left flex-grow-1",children:e}),n.jsx(w.Button,{size:"sm",color:_?ga:ma,onClick:s,className:"toggle-btn toggle-btn-right flex-grow-1",children:t})]}),BN_=({icon:e,accept:t="*",callback:_})=>{const o=async s=>{try{const c=new FormData,u=s.target.files[0],g=u.name;c.append("file",u,g),c.append("customKey","conversation");const d=await Li(c),{name:p,key:x,type:f}=d.data;_(p,o_(x),f)}catch(c){console.error(c.message)}};return n.jsxs(v.Fragment,{children:[n.jsx(w.Input,{className:"d-none",type:"file",id:"upload-file-btn",onChange:o,accept:t}),n.jsx(w.Label,{htmlFor:"upload-file-btn",role:"button",children:e})]})},ON_=[{value:!0,label:"Read"},{value:!1,label:"Unread"}],GN_=({value:e,onChange:t})=>{const _={menu:o=>({...o,zIndex:10})};return n.jsx(Dt,{defaultValue:e,options:ON_,onChange:t,styles:_})},zN_=v.memo(GN_);function FN_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fn={exports:{}};var pa;function HN_(){return pa||(pa=1,(function(e,t){(function(o,s){e.exports=s()})(window,function(){return(function(_){var o={};function s(c){if(o[c])return o[c].exports;var u=o[c]={i:c,l:!1,exports:{}};return _[c].call(u.exports,u,u.exports,s),u.l=!0,u.exports}return s.m=_,s.c=o,s.d=function(c,u,g){s.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:g})},s.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.t=function(c,u){if(u&1&&(c=s(c)),u&8||u&4&&typeof c=="object"&&c&&c.__esModule)return c;var g=Object.create(null);if(s.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:c}),u&2&&typeof c!="string")for(var d in c)s.d(g,d,(function(p){return c[p]}).bind(null,d));return g},s.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return s.d(u,"a",u),u},s.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},s.p="",s(s.s=3)})([(function(_,o,s){var c=this&&this.__extends||(function(){var E=function(k,C){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var D in L)L.hasOwnProperty(D)&&(N[D]=L[D])},E(k,C)};return function(k,C){E(k,C);function N(){this.constructor=k}k.prototype=C===null?Object.create(C):(N.prototype=C.prototype,new N)}})();Object.defineProperty(o,"__esModule",{value:!0});var u=256,g=(function(){function E(k){k===void 0&&(k="="),this._paddingCharacter=k}return E.prototype.encodedLength=function(k){return this._paddingCharacter?(k+2)/3*4|0:(k*8+5)/6|0},E.prototype.encode=function(k){for(var C="",N=0;N<k.length-2;N+=3){var L=k[N]<<16|k[N+1]<<8|k[N+2];C+=this._encodeByte(L>>>18&63),C+=this._encodeByte(L>>>12&63),C+=this._encodeByte(L>>>6&63),C+=this._encodeByte(L>>>0&63)}var D=k.length-N;if(D>0){var L=k[N]<<16|(D===2?k[N+1]<<8:0);C+=this._encodeByte(L>>>18&63),C+=this._encodeByte(L>>>12&63),D===2?C+=this._encodeByte(L>>>6&63):C+=this._paddingCharacter||"",C+=this._paddingCharacter||""}return C},E.prototype.maxDecodedLength=function(k){return this._paddingCharacter?k/4*3|0:(k*6+7)/8|0},E.prototype.decodedLength=function(k){return this.maxDecodedLength(k.length-this._getPaddingLength(k))},E.prototype.decode=function(k){if(k.length===0)return new Uint8Array(0);for(var C=this._getPaddingLength(k),N=k.length-C,L=new Uint8Array(this.maxDecodedLength(N)),D=0,O=0,R=0,W=0,F=0,Z=0,G=0;O<N-4;O+=4)W=this._decodeChar(k.charCodeAt(O+0)),F=this._decodeChar(k.charCodeAt(O+1)),Z=this._decodeChar(k.charCodeAt(O+2)),G=this._decodeChar(k.charCodeAt(O+3)),L[D++]=W<<2|F>>>4,L[D++]=F<<4|Z>>>2,L[D++]=Z<<6|G,R|=W&u,R|=F&u,R|=Z&u,R|=G&u;if(O<N-1&&(W=this._decodeChar(k.charCodeAt(O)),F=this._decodeChar(k.charCodeAt(O+1)),L[D++]=W<<2|F>>>4,R|=W&u,R|=F&u),O<N-2&&(Z=this._decodeChar(k.charCodeAt(O+2)),L[D++]=F<<4|Z>>>2,R|=Z&u),O<N-3&&(G=this._decodeChar(k.charCodeAt(O+3)),L[D++]=Z<<6|G,R|=G&u),R!==0)throw new Error("Base64Coder: incorrect characters for decoding");return L},E.prototype._encodeByte=function(k){var C=k;return C+=65,C+=25-k>>>8&6,C+=51-k>>>8&-75,C+=61-k>>>8&-15,C+=62-k>>>8&3,String.fromCharCode(C)},E.prototype._decodeChar=function(k){var C=u;return C+=(42-k&k-44)>>>8&-u+k-43+62,C+=(46-k&k-48)>>>8&-u+k-47+63,C+=(47-k&k-58)>>>8&-u+k-48+52,C+=(64-k&k-91)>>>8&-u+k-65+0,C+=(96-k&k-123)>>>8&-u+k-97+26,C},E.prototype._getPaddingLength=function(k){var C=0;if(this._paddingCharacter){for(var N=k.length-1;N>=0&&k[N]===this._paddingCharacter;N--)C++;if(k.length<4||C>2)throw new Error("Base64Coder: incorrect padding")}return C},E})();o.Coder=g;var d=new g;function p(E){return d.encode(E)}o.encode=p;function x(E){return d.decode(E)}o.decode=x;var f=(function(E){c(k,E);function k(){return E!==null&&E.apply(this,arguments)||this}return k.prototype._encodeByte=function(C){var N=C;return N+=65,N+=25-C>>>8&6,N+=51-C>>>8&-75,N+=61-C>>>8&-13,N+=62-C>>>8&49,String.fromCharCode(N)},k.prototype._decodeChar=function(C){var N=u;return N+=(44-C&C-46)>>>8&-u+C-45+62,N+=(94-C&C-96)>>>8&-u+C-95+63,N+=(47-C&C-58)>>>8&-u+C-48+52,N+=(64-C&C-91)>>>8&-u+C-65+0,N+=(96-C&C-123)>>>8&-u+C-97+26,N},k})(g);o.URLSafeCoder=f;var A=new f;function T(E){return A.encode(E)}o.encodeURLSafe=T;function P(E){return A.decode(E)}o.decodeURLSafe=P,o.encodedLength=function(E){return d.encodedLength(E)},o.maxDecodedLength=function(E){return d.maxDecodedLength(E)},o.decodedLength=function(E){return d.decodedLength(E)}}),(function(_,o,s){Object.defineProperty(o,"__esModule",{value:!0});var c="utf8: invalid string",u="utf8: invalid source encoding";function g(x){for(var f=new Uint8Array(d(x)),A=0,T=0;T<x.length;T++){var P=x.charCodeAt(T);P<128?f[A++]=P:P<2048?(f[A++]=192|P>>6,f[A++]=128|P&63):P<55296?(f[A++]=224|P>>12,f[A++]=128|P>>6&63,f[A++]=128|P&63):(T++,P=(P&1023)<<10,P|=x.charCodeAt(T)&1023,P+=65536,f[A++]=240|P>>18,f[A++]=128|P>>12&63,f[A++]=128|P>>6&63,f[A++]=128|P&63)}return f}o.encode=g;function d(x){for(var f=0,A=0;A<x.length;A++){var T=x.charCodeAt(A);if(T<128)f+=1;else if(T<2048)f+=2;else if(T<55296)f+=3;else if(T<=57343){if(A>=x.length-1)throw new Error(c);A++,f+=4}else throw new Error(c)}return f}o.encodedLength=d;function p(x){for(var f=[],A=0;A<x.length;A++){var T=x[A];if(T&128){var P=void 0;if(T<224){if(A>=x.length)throw new Error(u);var E=x[++A];if((E&192)!==128)throw new Error(u);T=(T&31)<<6|E&63,P=128}else if(T<240){if(A>=x.length-1)throw new Error(u);var E=x[++A],k=x[++A];if((E&192)!==128||(k&192)!==128)throw new Error(u);T=(T&15)<<12|(E&63)<<6|k&63,P=2048}else if(T<248){if(A>=x.length-2)throw new Error(u);var E=x[++A],k=x[++A],C=x[++A];if((E&192)!==128||(k&192)!==128||(C&192)!==128)throw new Error(u);T=(T&15)<<18|(E&63)<<12|(k&63)<<6|C&63,P=65536}else throw new Error(u);if(T<P||T>=55296&&T<=57343)throw new Error(u);if(T>=65536){if(T>1114111)throw new Error(u);T-=65536,f.push(String.fromCharCode(55296|T>>10)),T=56320|T&1023}}f.push(String.fromCharCode(T))}return f.join("")}o.decode=p}),(function(_,o,s){(function(c){var u=function(m){var $,b=new Float64Array(16);if(m)for($=0;$<m.length;$++)b[$]=m[$];return b},g=function(){throw new Error("no PRNG")},d=new Uint8Array(16),p=new Uint8Array(32);p[0]=9;var x=u(),f=u([1]),A=u([56129,1]),T=u([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),P=u([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),E=u([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),k=u([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),C=u([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function N(m,$,b,l){m[$]=b>>24&255,m[$+1]=b>>16&255,m[$+2]=b>>8&255,m[$+3]=b&255,m[$+4]=l>>24&255,m[$+5]=l>>16&255,m[$+6]=l>>8&255,m[$+7]=l&255}function L(m,$,b,l,I){var M,B=0;for(M=0;M<I;M++)B|=m[$+M]^b[l+M];return(1&B-1>>>8)-1}function D(m,$,b,l){return L(m,$,b,l,16)}function O(m,$,b,l){return L(m,$,b,l,32)}function R(m,$,b,l){for(var I=l[0]&255|(l[1]&255)<<8|(l[2]&255)<<16|(l[3]&255)<<24,M=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,B=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,_e=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,ie=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,Ae=l[4]&255|(l[5]&255)<<8|(l[6]&255)<<16|(l[7]&255)<<24,me=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,gt=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,ve=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,ze=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,He=l[8]&255|(l[9]&255)<<8|(l[10]&255)<<16|(l[11]&255)<<24,Je=b[16]&255|(b[17]&255)<<8|(b[18]&255)<<16|(b[19]&255)<<24,Be=b[20]&255|(b[21]&255)<<8|(b[22]&255)<<16|(b[23]&255)<<24,Ve=b[24]&255|(b[25]&255)<<8|(b[26]&255)<<16|(b[27]&255)<<24,Ze=b[28]&255|(b[29]&255)<<8|(b[30]&255)<<16|(b[31]&255)<<24,We=l[12]&255|(l[13]&255)<<8|(l[14]&255)<<16|(l[15]&255)<<24,be=I,je=M,ye=B,ke=_e,Ce=ie,he=Ae,U=me,Y=gt,oe=ve,te=ze,se=He,ae=Je,Re=Be,Qe=Ve,tt=Ze,Ke=We,j,nt=0;nt<20;nt+=2)j=be+Re|0,Ce^=j<<7|j>>>25,j=Ce+be|0,oe^=j<<9|j>>>23,j=oe+Ce|0,Re^=j<<13|j>>>19,j=Re+oe|0,be^=j<<18|j>>>14,j=he+je|0,te^=j<<7|j>>>25,j=te+he|0,Qe^=j<<9|j>>>23,j=Qe+te|0,je^=j<<13|j>>>19,j=je+Qe|0,he^=j<<18|j>>>14,j=se+U|0,tt^=j<<7|j>>>25,j=tt+se|0,ye^=j<<9|j>>>23,j=ye+tt|0,U^=j<<13|j>>>19,j=U+ye|0,se^=j<<18|j>>>14,j=Ke+ae|0,ke^=j<<7|j>>>25,j=ke+Ke|0,Y^=j<<9|j>>>23,j=Y+ke|0,ae^=j<<13|j>>>19,j=ae+Y|0,Ke^=j<<18|j>>>14,j=be+ke|0,je^=j<<7|j>>>25,j=je+be|0,ye^=j<<9|j>>>23,j=ye+je|0,ke^=j<<13|j>>>19,j=ke+ye|0,be^=j<<18|j>>>14,j=he+Ce|0,U^=j<<7|j>>>25,j=U+he|0,Y^=j<<9|j>>>23,j=Y+U|0,Ce^=j<<13|j>>>19,j=Ce+Y|0,he^=j<<18|j>>>14,j=se+te|0,ae^=j<<7|j>>>25,j=ae+se|0,oe^=j<<9|j>>>23,j=oe+ae|0,te^=j<<13|j>>>19,j=te+oe|0,se^=j<<18|j>>>14,j=Ke+tt|0,Re^=j<<7|j>>>25,j=Re+Ke|0,Qe^=j<<9|j>>>23,j=Qe+Re|0,tt^=j<<13|j>>>19,j=tt+Qe|0,Ke^=j<<18|j>>>14;be=be+I|0,je=je+M|0,ye=ye+B|0,ke=ke+_e|0,Ce=Ce+ie|0,he=he+Ae|0,U=U+me|0,Y=Y+gt|0,oe=oe+ve|0,te=te+ze|0,se=se+He|0,ae=ae+Je|0,Re=Re+Be|0,Qe=Qe+Ve|0,tt=tt+Ze|0,Ke=Ke+We|0,m[0]=be>>>0&255,m[1]=be>>>8&255,m[2]=be>>>16&255,m[3]=be>>>24&255,m[4]=je>>>0&255,m[5]=je>>>8&255,m[6]=je>>>16&255,m[7]=je>>>24&255,m[8]=ye>>>0&255,m[9]=ye>>>8&255,m[10]=ye>>>16&255,m[11]=ye>>>24&255,m[12]=ke>>>0&255,m[13]=ke>>>8&255,m[14]=ke>>>16&255,m[15]=ke>>>24&255,m[16]=Ce>>>0&255,m[17]=Ce>>>8&255,m[18]=Ce>>>16&255,m[19]=Ce>>>24&255,m[20]=he>>>0&255,m[21]=he>>>8&255,m[22]=he>>>16&255,m[23]=he>>>24&255,m[24]=U>>>0&255,m[25]=U>>>8&255,m[26]=U>>>16&255,m[27]=U>>>24&255,m[28]=Y>>>0&255,m[29]=Y>>>8&255,m[30]=Y>>>16&255,m[31]=Y>>>24&255,m[32]=oe>>>0&255,m[33]=oe>>>8&255,m[34]=oe>>>16&255,m[35]=oe>>>24&255,m[36]=te>>>0&255,m[37]=te>>>8&255,m[38]=te>>>16&255,m[39]=te>>>24&255,m[40]=se>>>0&255,m[41]=se>>>8&255,m[42]=se>>>16&255,m[43]=se>>>24&255,m[44]=ae>>>0&255,m[45]=ae>>>8&255,m[46]=ae>>>16&255,m[47]=ae>>>24&255,m[48]=Re>>>0&255,m[49]=Re>>>8&255,m[50]=Re>>>16&255,m[51]=Re>>>24&255,m[52]=Qe>>>0&255,m[53]=Qe>>>8&255,m[54]=Qe>>>16&255,m[55]=Qe>>>24&255,m[56]=tt>>>0&255,m[57]=tt>>>8&255,m[58]=tt>>>16&255,m[59]=tt>>>24&255,m[60]=Ke>>>0&255,m[61]=Ke>>>8&255,m[62]=Ke>>>16&255,m[63]=Ke>>>24&255}function W(m,$,b,l){for(var I=l[0]&255|(l[1]&255)<<8|(l[2]&255)<<16|(l[3]&255)<<24,M=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,B=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,_e=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,ie=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,Ae=l[4]&255|(l[5]&255)<<8|(l[6]&255)<<16|(l[7]&255)<<24,me=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,gt=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,ve=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,ze=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,He=l[8]&255|(l[9]&255)<<8|(l[10]&255)<<16|(l[11]&255)<<24,Je=b[16]&255|(b[17]&255)<<8|(b[18]&255)<<16|(b[19]&255)<<24,Be=b[20]&255|(b[21]&255)<<8|(b[22]&255)<<16|(b[23]&255)<<24,Ve=b[24]&255|(b[25]&255)<<8|(b[26]&255)<<16|(b[27]&255)<<24,Ze=b[28]&255|(b[29]&255)<<8|(b[30]&255)<<16|(b[31]&255)<<24,We=l[12]&255|(l[13]&255)<<8|(l[14]&255)<<16|(l[15]&255)<<24,be=I,je=M,ye=B,ke=_e,Ce=ie,he=Ae,U=me,Y=gt,oe=ve,te=ze,se=He,ae=Je,Re=Be,Qe=Ve,tt=Ze,Ke=We,j,nt=0;nt<20;nt+=2)j=be+Re|0,Ce^=j<<7|j>>>25,j=Ce+be|0,oe^=j<<9|j>>>23,j=oe+Ce|0,Re^=j<<13|j>>>19,j=Re+oe|0,be^=j<<18|j>>>14,j=he+je|0,te^=j<<7|j>>>25,j=te+he|0,Qe^=j<<9|j>>>23,j=Qe+te|0,je^=j<<13|j>>>19,j=je+Qe|0,he^=j<<18|j>>>14,j=se+U|0,tt^=j<<7|j>>>25,j=tt+se|0,ye^=j<<9|j>>>23,j=ye+tt|0,U^=j<<13|j>>>19,j=U+ye|0,se^=j<<18|j>>>14,j=Ke+ae|0,ke^=j<<7|j>>>25,j=ke+Ke|0,Y^=j<<9|j>>>23,j=Y+ke|0,ae^=j<<13|j>>>19,j=ae+Y|0,Ke^=j<<18|j>>>14,j=be+ke|0,je^=j<<7|j>>>25,j=je+be|0,ye^=j<<9|j>>>23,j=ye+je|0,ke^=j<<13|j>>>19,j=ke+ye|0,be^=j<<18|j>>>14,j=he+Ce|0,U^=j<<7|j>>>25,j=U+he|0,Y^=j<<9|j>>>23,j=Y+U|0,Ce^=j<<13|j>>>19,j=Ce+Y|0,he^=j<<18|j>>>14,j=se+te|0,ae^=j<<7|j>>>25,j=ae+se|0,oe^=j<<9|j>>>23,j=oe+ae|0,te^=j<<13|j>>>19,j=te+oe|0,se^=j<<18|j>>>14,j=Ke+tt|0,Re^=j<<7|j>>>25,j=Re+Ke|0,Qe^=j<<9|j>>>23,j=Qe+Re|0,tt^=j<<13|j>>>19,j=tt+Qe|0,Ke^=j<<18|j>>>14;m[0]=be>>>0&255,m[1]=be>>>8&255,m[2]=be>>>16&255,m[3]=be>>>24&255,m[4]=he>>>0&255,m[5]=he>>>8&255,m[6]=he>>>16&255,m[7]=he>>>24&255,m[8]=se>>>0&255,m[9]=se>>>8&255,m[10]=se>>>16&255,m[11]=se>>>24&255,m[12]=Ke>>>0&255,m[13]=Ke>>>8&255,m[14]=Ke>>>16&255,m[15]=Ke>>>24&255,m[16]=U>>>0&255,m[17]=U>>>8&255,m[18]=U>>>16&255,m[19]=U>>>24&255,m[20]=Y>>>0&255,m[21]=Y>>>8&255,m[22]=Y>>>16&255,m[23]=Y>>>24&255,m[24]=oe>>>0&255,m[25]=oe>>>8&255,m[26]=oe>>>16&255,m[27]=oe>>>24&255,m[28]=te>>>0&255,m[29]=te>>>8&255,m[30]=te>>>16&255,m[31]=te>>>24&255}function F(m,$,b,l){R(m,$,b,l)}function Z(m,$,b,l){W(m,$,b,l)}var G=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function H(m,$,b,l,I,M,B){var _e=new Uint8Array(16),ie=new Uint8Array(64),Ae,me;for(me=0;me<16;me++)_e[me]=0;for(me=0;me<8;me++)_e[me]=M[me];for(;I>=64;){for(F(ie,_e,B,G),me=0;me<64;me++)m[$+me]=b[l+me]^ie[me];for(Ae=1,me=8;me<16;me++)Ae=Ae+(_e[me]&255)|0,_e[me]=Ae&255,Ae>>>=8;I-=64,$+=64,l+=64}if(I>0)for(F(ie,_e,B,G),me=0;me<I;me++)m[$+me]=b[l+me]^ie[me];return 0}function q(m,$,b,l,I){var M=new Uint8Array(16),B=new Uint8Array(64),_e,ie;for(ie=0;ie<16;ie++)M[ie]=0;for(ie=0;ie<8;ie++)M[ie]=l[ie];for(;b>=64;){for(F(B,M,I,G),ie=0;ie<64;ie++)m[$+ie]=B[ie];for(_e=1,ie=8;ie<16;ie++)_e=_e+(M[ie]&255)|0,M[ie]=_e&255,_e>>>=8;b-=64,$+=64}if(b>0)for(F(B,M,I,G),ie=0;ie<b;ie++)m[$+ie]=B[ie];return 0}function K(m,$,b,l,I){var M=new Uint8Array(32);Z(M,l,I,G);for(var B=new Uint8Array(8),_e=0;_e<8;_e++)B[_e]=l[_e+16];return q(m,$,b,B,M)}function ee(m,$,b,l,I,M,B){var _e=new Uint8Array(32);Z(_e,M,B,G);for(var ie=new Uint8Array(8),Ae=0;Ae<8;Ae++)ie[Ae]=M[Ae+16];return H(m,$,b,l,I,ie,_e)}var xe=function(m){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var $,b,l,I,M,B,_e,ie;$=m[0]&255|(m[1]&255)<<8,this.r[0]=$&8191,b=m[2]&255|(m[3]&255)<<8,this.r[1]=($>>>13|b<<3)&8191,l=m[4]&255|(m[5]&255)<<8,this.r[2]=(b>>>10|l<<6)&7939,I=m[6]&255|(m[7]&255)<<8,this.r[3]=(l>>>7|I<<9)&8191,M=m[8]&255|(m[9]&255)<<8,this.r[4]=(I>>>4|M<<12)&255,this.r[5]=M>>>1&8190,B=m[10]&255|(m[11]&255)<<8,this.r[6]=(M>>>14|B<<2)&8191,_e=m[12]&255|(m[13]&255)<<8,this.r[7]=(B>>>11|_e<<5)&8065,ie=m[14]&255|(m[15]&255)<<8,this.r[8]=(_e>>>8|ie<<8)&8191,this.r[9]=ie>>>5&127,this.pad[0]=m[16]&255|(m[17]&255)<<8,this.pad[1]=m[18]&255|(m[19]&255)<<8,this.pad[2]=m[20]&255|(m[21]&255)<<8,this.pad[3]=m[22]&255|(m[23]&255)<<8,this.pad[4]=m[24]&255|(m[25]&255)<<8,this.pad[5]=m[26]&255|(m[27]&255)<<8,this.pad[6]=m[28]&255|(m[29]&255)<<8,this.pad[7]=m[30]&255|(m[31]&255)<<8};xe.prototype.blocks=function(m,$,b){for(var l=this.fin?0:2048,I,M,B,_e,ie,Ae,me,gt,ve,ze,He,Je,Be,Ve,Ze,We,be,je,ye,ke=this.h[0],Ce=this.h[1],he=this.h[2],U=this.h[3],Y=this.h[4],oe=this.h[5],te=this.h[6],se=this.h[7],ae=this.h[8],Re=this.h[9],Qe=this.r[0],tt=this.r[1],Ke=this.r[2],j=this.r[3],nt=this.r[4],it=this.r[5],pt=this.r[6],_t=this.r[7],dt=this.r[8],ut=this.r[9];b>=16;)I=m[$+0]&255|(m[$+1]&255)<<8,ke+=I&8191,M=m[$+2]&255|(m[$+3]&255)<<8,Ce+=(I>>>13|M<<3)&8191,B=m[$+4]&255|(m[$+5]&255)<<8,he+=(M>>>10|B<<6)&8191,_e=m[$+6]&255|(m[$+7]&255)<<8,U+=(B>>>7|_e<<9)&8191,ie=m[$+8]&255|(m[$+9]&255)<<8,Y+=(_e>>>4|ie<<12)&8191,oe+=ie>>>1&8191,Ae=m[$+10]&255|(m[$+11]&255)<<8,te+=(ie>>>14|Ae<<2)&8191,me=m[$+12]&255|(m[$+13]&255)<<8,se+=(Ae>>>11|me<<5)&8191,gt=m[$+14]&255|(m[$+15]&255)<<8,ae+=(me>>>8|gt<<8)&8191,Re+=gt>>>5|l,ve=0,ze=ve,ze+=ke*Qe,ze+=Ce*(5*ut),ze+=he*(5*dt),ze+=U*(5*_t),ze+=Y*(5*pt),ve=ze>>>13,ze&=8191,ze+=oe*(5*it),ze+=te*(5*nt),ze+=se*(5*j),ze+=ae*(5*Ke),ze+=Re*(5*tt),ve+=ze>>>13,ze&=8191,He=ve,He+=ke*tt,He+=Ce*Qe,He+=he*(5*ut),He+=U*(5*dt),He+=Y*(5*_t),ve=He>>>13,He&=8191,He+=oe*(5*pt),He+=te*(5*it),He+=se*(5*nt),He+=ae*(5*j),He+=Re*(5*Ke),ve+=He>>>13,He&=8191,Je=ve,Je+=ke*Ke,Je+=Ce*tt,Je+=he*Qe,Je+=U*(5*ut),Je+=Y*(5*dt),ve=Je>>>13,Je&=8191,Je+=oe*(5*_t),Je+=te*(5*pt),Je+=se*(5*it),Je+=ae*(5*nt),Je+=Re*(5*j),ve+=Je>>>13,Je&=8191,Be=ve,Be+=ke*j,Be+=Ce*Ke,Be+=he*tt,Be+=U*Qe,Be+=Y*(5*ut),ve=Be>>>13,Be&=8191,Be+=oe*(5*dt),Be+=te*(5*_t),Be+=se*(5*pt),Be+=ae*(5*it),Be+=Re*(5*nt),ve+=Be>>>13,Be&=8191,Ve=ve,Ve+=ke*nt,Ve+=Ce*j,Ve+=he*Ke,Ve+=U*tt,Ve+=Y*Qe,ve=Ve>>>13,Ve&=8191,Ve+=oe*(5*ut),Ve+=te*(5*dt),Ve+=se*(5*_t),Ve+=ae*(5*pt),Ve+=Re*(5*it),ve+=Ve>>>13,Ve&=8191,Ze=ve,Ze+=ke*it,Ze+=Ce*nt,Ze+=he*j,Ze+=U*Ke,Ze+=Y*tt,ve=Ze>>>13,Ze&=8191,Ze+=oe*Qe,Ze+=te*(5*ut),Ze+=se*(5*dt),Ze+=ae*(5*_t),Ze+=Re*(5*pt),ve+=Ze>>>13,Ze&=8191,We=ve,We+=ke*pt,We+=Ce*it,We+=he*nt,We+=U*j,We+=Y*Ke,ve=We>>>13,We&=8191,We+=oe*tt,We+=te*Qe,We+=se*(5*ut),We+=ae*(5*dt),We+=Re*(5*_t),ve+=We>>>13,We&=8191,be=ve,be+=ke*_t,be+=Ce*pt,be+=he*it,be+=U*nt,be+=Y*j,ve=be>>>13,be&=8191,be+=oe*Ke,be+=te*tt,be+=se*Qe,be+=ae*(5*ut),be+=Re*(5*dt),ve+=be>>>13,be&=8191,je=ve,je+=ke*dt,je+=Ce*_t,je+=he*pt,je+=U*it,je+=Y*nt,ve=je>>>13,je&=8191,je+=oe*j,je+=te*Ke,je+=se*tt,je+=ae*Qe,je+=Re*(5*ut),ve+=je>>>13,je&=8191,ye=ve,ye+=ke*ut,ye+=Ce*dt,ye+=he*_t,ye+=U*pt,ye+=Y*it,ve=ye>>>13,ye&=8191,ye+=oe*nt,ye+=te*j,ye+=se*Ke,ye+=ae*tt,ye+=Re*Qe,ve+=ye>>>13,ye&=8191,ve=(ve<<2)+ve|0,ve=ve+ze|0,ze=ve&8191,ve=ve>>>13,He+=ve,ke=ze,Ce=He,he=Je,U=Be,Y=Ve,oe=Ze,te=We,se=be,ae=je,Re=ye,$+=16,b-=16;this.h[0]=ke,this.h[1]=Ce,this.h[2]=he,this.h[3]=U,this.h[4]=Y,this.h[5]=oe,this.h[6]=te,this.h[7]=se,this.h[8]=ae,this.h[9]=Re},xe.prototype.finish=function(m,$){var b=new Uint16Array(10),l,I,M,B;if(this.leftover){for(B=this.leftover,this.buffer[B++]=1;B<16;B++)this.buffer[B]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(l=this.h[1]>>>13,this.h[1]&=8191,B=2;B<10;B++)this.h[B]+=l,l=this.h[B]>>>13,this.h[B]&=8191;for(this.h[0]+=l*5,l=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=l,l=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=l,b[0]=this.h[0]+5,l=b[0]>>>13,b[0]&=8191,B=1;B<10;B++)b[B]=this.h[B]+l,l=b[B]>>>13,b[B]&=8191;for(b[9]-=8192,I=(l^1)-1,B=0;B<10;B++)b[B]&=I;for(I=~I,B=0;B<10;B++)this.h[B]=this.h[B]&I|b[B];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,M=this.h[0]+this.pad[0],this.h[0]=M&65535,B=1;B<8;B++)M=(this.h[B]+this.pad[B]|0)+(M>>>16)|0,this.h[B]=M&65535;m[$+0]=this.h[0]>>>0&255,m[$+1]=this.h[0]>>>8&255,m[$+2]=this.h[1]>>>0&255,m[$+3]=this.h[1]>>>8&255,m[$+4]=this.h[2]>>>0&255,m[$+5]=this.h[2]>>>8&255,m[$+6]=this.h[3]>>>0&255,m[$+7]=this.h[3]>>>8&255,m[$+8]=this.h[4]>>>0&255,m[$+9]=this.h[4]>>>8&255,m[$+10]=this.h[5]>>>0&255,m[$+11]=this.h[5]>>>8&255,m[$+12]=this.h[6]>>>0&255,m[$+13]=this.h[6]>>>8&255,m[$+14]=this.h[7]>>>0&255,m[$+15]=this.h[7]>>>8&255},xe.prototype.update=function(m,$,b){var l,I;if(this.leftover){for(I=16-this.leftover,I>b&&(I=b),l=0;l<I;l++)this.buffer[this.leftover+l]=m[$+l];if(b-=I,$+=I,this.leftover+=I,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(b>=16&&(I=b-b%16,this.blocks(m,$,I),$+=I,b-=I),b){for(l=0;l<b;l++)this.buffer[this.leftover+l]=m[$+l];this.leftover+=b}};function Ne(m,$,b,l,I,M){var B=new xe(M);return B.update(b,l,I),B.finish(m,$),0}function et(m,$,b,l,I,M){var B=new Uint8Array(16);return Ne(B,0,b,l,I,M),D(m,$,B,0)}function De(m,$,b,l,I){var M;if(b<32)return-1;for(ee(m,0,$,0,b,l,I),Ne(m,16,m,32,b-32,m),M=0;M<16;M++)m[M]=0;return 0}function le(m,$,b,l,I){var M,B=new Uint8Array(32);if(b<32||(K(B,0,32,l,I),et($,16,$,32,b-32,B)!==0))return-1;for(ee(m,0,$,0,b,l,I),M=0;M<32;M++)m[M]=0;return 0}function Ue(m,$){var b;for(b=0;b<16;b++)m[b]=$[b]|0}function re(m){var $,b,l=1;for($=0;$<16;$++)b=m[$]+l+65535,l=Math.floor(b/65536),m[$]=b-l*65536;m[0]+=l-1+37*(l-1)}function ge(m,$,b){for(var l,I=~(b-1),M=0;M<16;M++)l=I&(m[M]^$[M]),m[M]^=l,$[M]^=l}function Te(m,$){var b,l,I,M=u(),B=u();for(b=0;b<16;b++)B[b]=$[b];for(re(B),re(B),re(B),l=0;l<2;l++){for(M[0]=B[0]-65517,b=1;b<15;b++)M[b]=B[b]-65535-(M[b-1]>>16&1),M[b-1]&=65535;M[15]=B[15]-32767-(M[14]>>16&1),I=M[15]>>16&1,M[14]&=65535,ge(B,M,1-I)}for(b=0;b<16;b++)m[2*b]=B[b]&255,m[2*b+1]=B[b]>>8}function Pe(m,$){var b=new Uint8Array(32),l=new Uint8Array(32);return Te(b,m),Te(l,$),O(b,0,l,0)}function Fe(m){var $=new Uint8Array(32);return Te($,m),$[0]&1}function ht(m,$){var b;for(b=0;b<16;b++)m[b]=$[2*b]+($[2*b+1]<<8);m[15]&=32767}function Ye(m,$,b){for(var l=0;l<16;l++)m[l]=$[l]+b[l]}function pe(m,$,b){for(var l=0;l<16;l++)m[l]=$[l]-b[l]}function $e(m,$,b){var l,I,M=0,B=0,_e=0,ie=0,Ae=0,me=0,gt=0,ve=0,ze=0,He=0,Je=0,Be=0,Ve=0,Ze=0,We=0,be=0,je=0,ye=0,ke=0,Ce=0,he=0,U=0,Y=0,oe=0,te=0,se=0,ae=0,Re=0,Qe=0,tt=0,Ke=0,j=b[0],nt=b[1],it=b[2],pt=b[3],_t=b[4],dt=b[5],ut=b[6],Tt=b[7],wt=b[8],St=b[9],At=b[10],Et=b[11],qt=b[12],xt=b[13],Gt=b[14],Bt=b[15];l=$[0],M+=l*j,B+=l*nt,_e+=l*it,ie+=l*pt,Ae+=l*_t,me+=l*dt,gt+=l*ut,ve+=l*Tt,ze+=l*wt,He+=l*St,Je+=l*At,Be+=l*Et,Ve+=l*qt,Ze+=l*xt,We+=l*Gt,be+=l*Bt,l=$[1],B+=l*j,_e+=l*nt,ie+=l*it,Ae+=l*pt,me+=l*_t,gt+=l*dt,ve+=l*ut,ze+=l*Tt,He+=l*wt,Je+=l*St,Be+=l*At,Ve+=l*Et,Ze+=l*qt,We+=l*xt,be+=l*Gt,je+=l*Bt,l=$[2],_e+=l*j,ie+=l*nt,Ae+=l*it,me+=l*pt,gt+=l*_t,ve+=l*dt,ze+=l*ut,He+=l*Tt,Je+=l*wt,Be+=l*St,Ve+=l*At,Ze+=l*Et,We+=l*qt,be+=l*xt,je+=l*Gt,ye+=l*Bt,l=$[3],ie+=l*j,Ae+=l*nt,me+=l*it,gt+=l*pt,ve+=l*_t,ze+=l*dt,He+=l*ut,Je+=l*Tt,Be+=l*wt,Ve+=l*St,Ze+=l*At,We+=l*Et,be+=l*qt,je+=l*xt,ye+=l*Gt,ke+=l*Bt,l=$[4],Ae+=l*j,me+=l*nt,gt+=l*it,ve+=l*pt,ze+=l*_t,He+=l*dt,Je+=l*ut,Be+=l*Tt,Ve+=l*wt,Ze+=l*St,We+=l*At,be+=l*Et,je+=l*qt,ye+=l*xt,ke+=l*Gt,Ce+=l*Bt,l=$[5],me+=l*j,gt+=l*nt,ve+=l*it,ze+=l*pt,He+=l*_t,Je+=l*dt,Be+=l*ut,Ve+=l*Tt,Ze+=l*wt,We+=l*St,be+=l*At,je+=l*Et,ye+=l*qt,ke+=l*xt,Ce+=l*Gt,he+=l*Bt,l=$[6],gt+=l*j,ve+=l*nt,ze+=l*it,He+=l*pt,Je+=l*_t,Be+=l*dt,Ve+=l*ut,Ze+=l*Tt,We+=l*wt,be+=l*St,je+=l*At,ye+=l*Et,ke+=l*qt,Ce+=l*xt,he+=l*Gt,U+=l*Bt,l=$[7],ve+=l*j,ze+=l*nt,He+=l*it,Je+=l*pt,Be+=l*_t,Ve+=l*dt,Ze+=l*ut,We+=l*Tt,be+=l*wt,je+=l*St,ye+=l*At,ke+=l*Et,Ce+=l*qt,he+=l*xt,U+=l*Gt,Y+=l*Bt,l=$[8],ze+=l*j,He+=l*nt,Je+=l*it,Be+=l*pt,Ve+=l*_t,Ze+=l*dt,We+=l*ut,be+=l*Tt,je+=l*wt,ye+=l*St,ke+=l*At,Ce+=l*Et,he+=l*qt,U+=l*xt,Y+=l*Gt,oe+=l*Bt,l=$[9],He+=l*j,Je+=l*nt,Be+=l*it,Ve+=l*pt,Ze+=l*_t,We+=l*dt,be+=l*ut,je+=l*Tt,ye+=l*wt,ke+=l*St,Ce+=l*At,he+=l*Et,U+=l*qt,Y+=l*xt,oe+=l*Gt,te+=l*Bt,l=$[10],Je+=l*j,Be+=l*nt,Ve+=l*it,Ze+=l*pt,We+=l*_t,be+=l*dt,je+=l*ut,ye+=l*Tt,ke+=l*wt,Ce+=l*St,he+=l*At,U+=l*Et,Y+=l*qt,oe+=l*xt,te+=l*Gt,se+=l*Bt,l=$[11],Be+=l*j,Ve+=l*nt,Ze+=l*it,We+=l*pt,be+=l*_t,je+=l*dt,ye+=l*ut,ke+=l*Tt,Ce+=l*wt,he+=l*St,U+=l*At,Y+=l*Et,oe+=l*qt,te+=l*xt,se+=l*Gt,ae+=l*Bt,l=$[12],Ve+=l*j,Ze+=l*nt,We+=l*it,be+=l*pt,je+=l*_t,ye+=l*dt,ke+=l*ut,Ce+=l*Tt,he+=l*wt,U+=l*St,Y+=l*At,oe+=l*Et,te+=l*qt,se+=l*xt,ae+=l*Gt,Re+=l*Bt,l=$[13],Ze+=l*j,We+=l*nt,be+=l*it,je+=l*pt,ye+=l*_t,ke+=l*dt,Ce+=l*ut,he+=l*Tt,U+=l*wt,Y+=l*St,oe+=l*At,te+=l*Et,se+=l*qt,ae+=l*xt,Re+=l*Gt,Qe+=l*Bt,l=$[14],We+=l*j,be+=l*nt,je+=l*it,ye+=l*pt,ke+=l*_t,Ce+=l*dt,he+=l*ut,U+=l*Tt,Y+=l*wt,oe+=l*St,te+=l*At,se+=l*Et,ae+=l*qt,Re+=l*xt,Qe+=l*Gt,tt+=l*Bt,l=$[15],be+=l*j,je+=l*nt,ye+=l*it,ke+=l*pt,Ce+=l*_t,he+=l*dt,U+=l*ut,Y+=l*Tt,oe+=l*wt,te+=l*St,se+=l*At,ae+=l*Et,Re+=l*qt,Qe+=l*xt,tt+=l*Gt,Ke+=l*Bt,M+=38*je,B+=38*ye,_e+=38*ke,ie+=38*Ce,Ae+=38*he,me+=38*U,gt+=38*Y,ve+=38*oe,ze+=38*te,He+=38*se,Je+=38*ae,Be+=38*Re,Ve+=38*Qe,Ze+=38*tt,We+=38*Ke,I=1,l=M+I+65535,I=Math.floor(l/65536),M=l-I*65536,l=B+I+65535,I=Math.floor(l/65536),B=l-I*65536,l=_e+I+65535,I=Math.floor(l/65536),_e=l-I*65536,l=ie+I+65535,I=Math.floor(l/65536),ie=l-I*65536,l=Ae+I+65535,I=Math.floor(l/65536),Ae=l-I*65536,l=me+I+65535,I=Math.floor(l/65536),me=l-I*65536,l=gt+I+65535,I=Math.floor(l/65536),gt=l-I*65536,l=ve+I+65535,I=Math.floor(l/65536),ve=l-I*65536,l=ze+I+65535,I=Math.floor(l/65536),ze=l-I*65536,l=He+I+65535,I=Math.floor(l/65536),He=l-I*65536,l=Je+I+65535,I=Math.floor(l/65536),Je=l-I*65536,l=Be+I+65535,I=Math.floor(l/65536),Be=l-I*65536,l=Ve+I+65535,I=Math.floor(l/65536),Ve=l-I*65536,l=Ze+I+65535,I=Math.floor(l/65536),Ze=l-I*65536,l=We+I+65535,I=Math.floor(l/65536),We=l-I*65536,l=be+I+65535,I=Math.floor(l/65536),be=l-I*65536,M+=I-1+37*(I-1),I=1,l=M+I+65535,I=Math.floor(l/65536),M=l-I*65536,l=B+I+65535,I=Math.floor(l/65536),B=l-I*65536,l=_e+I+65535,I=Math.floor(l/65536),_e=l-I*65536,l=ie+I+65535,I=Math.floor(l/65536),ie=l-I*65536,l=Ae+I+65535,I=Math.floor(l/65536),Ae=l-I*65536,l=me+I+65535,I=Math.floor(l/65536),me=l-I*65536,l=gt+I+65535,I=Math.floor(l/65536),gt=l-I*65536,l=ve+I+65535,I=Math.floor(l/65536),ve=l-I*65536,l=ze+I+65535,I=Math.floor(l/65536),ze=l-I*65536,l=He+I+65535,I=Math.floor(l/65536),He=l-I*65536,l=Je+I+65535,I=Math.floor(l/65536),Je=l-I*65536,l=Be+I+65535,I=Math.floor(l/65536),Be=l-I*65536,l=Ve+I+65535,I=Math.floor(l/65536),Ve=l-I*65536,l=Ze+I+65535,I=Math.floor(l/65536),Ze=l-I*65536,l=We+I+65535,I=Math.floor(l/65536),We=l-I*65536,l=be+I+65535,I=Math.floor(l/65536),be=l-I*65536,M+=I-1+37*(I-1),m[0]=M,m[1]=B,m[2]=_e,m[3]=ie,m[4]=Ae,m[5]=me,m[6]=gt,m[7]=ve,m[8]=ze,m[9]=He,m[10]=Je,m[11]=Be,m[12]=Ve,m[13]=Ze,m[14]=We,m[15]=be}function $t(m,$){$e(m,$,$)}function Ht(m,$){var b=u(),l;for(l=0;l<16;l++)b[l]=$[l];for(l=253;l>=0;l--)$t(b,b),l!==2&&l!==4&&$e(b,b,$);for(l=0;l<16;l++)m[l]=b[l]}function It(m,$){var b=u(),l;for(l=0;l<16;l++)b[l]=$[l];for(l=250;l>=0;l--)$t(b,b),l!==1&&$e(b,b,$);for(l=0;l<16;l++)m[l]=b[l]}function Vt(m,$,b){var l=new Uint8Array(32),I=new Float64Array(80),M,B,_e=u(),ie=u(),Ae=u(),me=u(),gt=u(),ve=u();for(B=0;B<31;B++)l[B]=$[B];for(l[31]=$[31]&127|64,l[0]&=248,ht(I,b),B=0;B<16;B++)ie[B]=I[B],me[B]=_e[B]=Ae[B]=0;for(_e[0]=me[0]=1,B=254;B>=0;--B)M=l[B>>>3]>>>(B&7)&1,ge(_e,ie,M),ge(Ae,me,M),Ye(gt,_e,Ae),pe(_e,_e,Ae),Ye(Ae,ie,me),pe(ie,ie,me),$t(me,gt),$t(ve,_e),$e(_e,Ae,_e),$e(Ae,ie,gt),Ye(gt,_e,Ae),pe(_e,_e,Ae),$t(ie,_e),pe(Ae,me,ve),$e(_e,Ae,A),Ye(_e,_e,me),$e(Ae,Ae,_e),$e(_e,me,ve),$e(me,ie,I),$t(ie,gt),ge(_e,ie,M),ge(Ae,me,M);for(B=0;B<16;B++)I[B+16]=_e[B],I[B+32]=Ae[B],I[B+48]=ie[B],I[B+64]=me[B];var ze=I.subarray(32),He=I.subarray(16);return Ht(ze,ze),$e(He,He,ze),Te(m,He),0}function Xt(m,$){return Vt(m,$,p)}function Zt(m,$){return g($,32),Xt(m,$)}function Jt(m,$,b){var l=new Uint8Array(32);return Vt(l,b,$),Z(m,d,l,G)}var k_=De,x_=le;function C_(m,$,b,l,I,M){var B=new Uint8Array(32);return Jt(B,I,M),k_(m,$,b,l,B)}function q_(m,$,b,l,I,M){var B=new Uint8Array(32);return Jt(B,I,M),x_(m,$,b,l,B)}var g_=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function I_(m,$,b,l){for(var I=new Int32Array(16),M=new Int32Array(16),B,_e,ie,Ae,me,gt,ve,ze,He,Je,Be,Ve,Ze,We,be,je,ye,ke,Ce,he,U,Y,oe,te,se,ae,Re=m[0],Qe=m[1],tt=m[2],Ke=m[3],j=m[4],nt=m[5],it=m[6],pt=m[7],_t=$[0],dt=$[1],ut=$[2],Tt=$[3],wt=$[4],St=$[5],At=$[6],Et=$[7],qt=0;l>=128;){for(Ce=0;Ce<16;Ce++)he=8*Ce+qt,I[Ce]=b[he+0]<<24|b[he+1]<<16|b[he+2]<<8|b[he+3],M[Ce]=b[he+4]<<24|b[he+5]<<16|b[he+6]<<8|b[he+7];for(Ce=0;Ce<80;Ce++)if(B=Re,_e=Qe,ie=tt,Ae=Ke,me=j,gt=nt,ve=it,ze=pt,He=_t,Je=dt,Be=ut,Ve=Tt,Ze=wt,We=St,be=At,je=Et,U=pt,Y=Et,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=(j>>>14|wt<<18)^(j>>>18|wt<<14)^(wt>>>9|j<<23),Y=(wt>>>14|j<<18)^(wt>>>18|j<<14)^(j>>>9|wt<<23),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=j&nt^~j&it,Y=wt&St^~wt&At,oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=g_[Ce*2],Y=g_[Ce*2+1],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=I[Ce%16],Y=M[Ce%16],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,ye=se&65535|ae<<16,ke=oe&65535|te<<16,U=ye,Y=ke,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=(Re>>>28|_t<<4)^(_t>>>2|Re<<30)^(_t>>>7|Re<<25),Y=(_t>>>28|Re<<4)^(Re>>>2|_t<<30)^(Re>>>7|_t<<25),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=Re&Qe^Re&tt^Qe&tt,Y=_t&dt^_t&ut^dt&ut,oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,ze=se&65535|ae<<16,je=oe&65535|te<<16,U=Ae,Y=Ve,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=ye,Y=ke,oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,Ae=se&65535|ae<<16,Ve=oe&65535|te<<16,Qe=B,tt=_e,Ke=ie,j=Ae,nt=me,it=gt,pt=ve,Re=ze,dt=He,ut=Je,Tt=Be,wt=Ve,St=Ze,At=We,Et=be,_t=je,Ce%16===15)for(he=0;he<16;he++)U=I[he],Y=M[he],oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=I[(he+9)%16],Y=M[(he+9)%16],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,ye=I[(he+1)%16],ke=M[(he+1)%16],U=(ye>>>1|ke<<31)^(ye>>>8|ke<<24)^ye>>>7,Y=(ke>>>1|ye<<31)^(ke>>>8|ye<<24)^(ke>>>7|ye<<25),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,ye=I[(he+14)%16],ke=M[(he+14)%16],U=(ye>>>19|ke<<13)^(ke>>>29|ye<<3)^ye>>>6,Y=(ke>>>19|ye<<13)^(ye>>>29|ke<<3)^(ke>>>6|ye<<26),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,I[he]=se&65535|ae<<16,M[he]=oe&65535|te<<16;U=Re,Y=_t,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[0],Y=$[0],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[0]=Re=se&65535|ae<<16,$[0]=_t=oe&65535|te<<16,U=Qe,Y=dt,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[1],Y=$[1],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[1]=Qe=se&65535|ae<<16,$[1]=dt=oe&65535|te<<16,U=tt,Y=ut,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[2],Y=$[2],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[2]=tt=se&65535|ae<<16,$[2]=ut=oe&65535|te<<16,U=Ke,Y=Tt,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[3],Y=$[3],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[3]=Ke=se&65535|ae<<16,$[3]=Tt=oe&65535|te<<16,U=j,Y=wt,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[4],Y=$[4],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[4]=j=se&65535|ae<<16,$[4]=wt=oe&65535|te<<16,U=nt,Y=St,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[5],Y=$[5],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[5]=nt=se&65535|ae<<16,$[5]=St=oe&65535|te<<16,U=it,Y=At,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[6],Y=$[6],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[6]=it=se&65535|ae<<16,$[6]=At=oe&65535|te<<16,U=pt,Y=Et,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[7],Y=$[7],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[7]=pt=se&65535|ae<<16,$[7]=Et=oe&65535|te<<16,qt+=128,l-=128}return l}function Qt(m,$,b){var l=new Int32Array(8),I=new Int32Array(8),M=new Uint8Array(256),B,_e=b;for(l[0]=1779033703,l[1]=3144134277,l[2]=1013904242,l[3]=2773480762,l[4]=1359893119,l[5]=2600822924,l[6]=528734635,l[7]=1541459225,I[0]=4089235720,I[1]=2227873595,I[2]=4271175723,I[3]=1595750129,I[4]=2917565137,I[5]=725511199,I[6]=4215389547,I[7]=327033209,I_(l,I,$,b),b%=128,B=0;B<b;B++)M[B]=$[_e-b+B];for(M[b]=128,b=256-128*(b<112?1:0),M[b-9]=0,N(M,b-8,_e/536870912|0,_e<<3),I_(l,I,M,b),B=0;B<8;B++)N(m,8*B,l[B],I[B]);return 0}function e_(m,$){var b=u(),l=u(),I=u(),M=u(),B=u(),_e=u(),ie=u(),Ae=u(),me=u();pe(b,m[1],m[0]),pe(me,$[1],$[0]),$e(b,b,me),Ye(l,m[0],m[1]),Ye(me,$[0],$[1]),$e(l,l,me),$e(I,m[3],$[3]),$e(I,I,P),$e(M,m[2],$[2]),Ye(M,M,M),pe(B,l,b),pe(_e,M,I),Ye(ie,M,I),Ye(Ae,l,b),$e(m[0],B,_e),$e(m[1],Ae,ie),$e(m[2],ie,_e),$e(m[3],B,Ae)}function S_(m,$,b){var l;for(l=0;l<4;l++)ge(m[l],$[l],b)}function t_(m,$){var b=u(),l=u(),I=u();Ht(I,$[2]),$e(b,$[0],I),$e(l,$[1],I),Te(m,l),m[31]^=Fe(b)<<7}function i_(m,$,b){var l,I;for(Ue(m[0],x),Ue(m[1],f),Ue(m[2],f),Ue(m[3],x),I=255;I>=0;--I)l=b[I/8|0]>>(I&7)&1,S_(m,$,l),e_($,m),e_(m,m),S_(m,$,l)}function yt(m,$){var b=[u(),u(),u(),u()];Ue(b[0],E),Ue(b[1],k),Ue(b[2],f),$e(b[3],E,k),i_(m,b,$)}function p_(m,$,b){var l=new Uint8Array(64),I=[u(),u(),u(),u()],M;for(b||g($,32),Qt(l,$,32),l[0]&=248,l[31]&=127,l[31]|=64,yt(I,l),t_(m,I),M=0;M<32;M++)$[M+32]=m[M];return 0}var r_=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function de(m,$){var b,l,I,M;for(l=63;l>=32;--l){for(b=0,I=l-32,M=l-12;I<M;++I)$[I]+=b-16*$[l]*r_[I-(l-32)],b=Math.floor(($[I]+128)/256),$[I]-=b*256;$[I]+=b,$[l]=0}for(b=0,I=0;I<32;I++)$[I]+=b-($[31]>>4)*r_[I],b=$[I]>>8,$[I]&=255;for(I=0;I<32;I++)$[I]-=b*r_[I];for(l=0;l<32;l++)$[l+1]+=$[l]>>8,m[l]=$[l]&255}function we(m){var $=new Float64Array(64),b;for(b=0;b<64;b++)$[b]=m[b];for(b=0;b<64;b++)m[b]=0;de(m,$)}function Ie(m,$,b,l){var I=new Uint8Array(64),M=new Uint8Array(64),B=new Uint8Array(64),_e,ie,Ae=new Float64Array(64),me=[u(),u(),u(),u()];Qt(I,l,32),I[0]&=248,I[31]&=127,I[31]|=64;var gt=b+64;for(_e=0;_e<b;_e++)m[64+_e]=$[_e];for(_e=0;_e<32;_e++)m[32+_e]=I[32+_e];for(Qt(B,m.subarray(32),b+32),we(B),yt(me,B),t_(m,me),_e=32;_e<64;_e++)m[_e]=l[_e];for(Qt(M,m,b+64),we(M),_e=0;_e<64;_e++)Ae[_e]=0;for(_e=0;_e<32;_e++)Ae[_e]=B[_e];for(_e=0;_e<32;_e++)for(ie=0;ie<32;ie++)Ae[_e+ie]+=M[_e]*I[ie];return de(m.subarray(32),Ae),gt}function mt(m,$){var b=u(),l=u(),I=u(),M=u(),B=u(),_e=u(),ie=u();return Ue(m[2],f),ht(m[1],$),$t(I,m[1]),$e(M,I,T),pe(I,I,m[2]),Ye(M,m[2],M),$t(B,M),$t(_e,B),$e(ie,_e,B),$e(b,ie,I),$e(b,b,M),It(b,b),$e(b,b,I),$e(b,b,M),$e(b,b,M),$e(m[0],b,M),$t(l,m[0]),$e(l,l,M),Pe(l,I)&&$e(m[0],m[0],C),$t(l,m[0]),$e(l,l,M),Pe(l,I)?-1:(Fe(m[0])===$[31]>>7&&pe(m[0],x,m[0]),$e(m[3],m[0],m[1]),0)}function Ge(m,$,b,l){var I,M=new Uint8Array(32),B=new Uint8Array(64),_e=[u(),u(),u(),u()],ie=[u(),u(),u(),u()];if(b<64||mt(ie,l))return-1;for(I=0;I<b;I++)m[I]=$[I];for(I=0;I<32;I++)m[I+32]=l[I];if(Qt(B,m,b),we(B),i_(_e,ie,B),yt(ie,$.subarray(32)),e_(_e,ie),t_(M,_e),b-=64,O($,0,M,0)){for(I=0;I<b;I++)m[I]=0;return-1}for(I=0;I<b;I++)m[I]=$[I+64];return b}var z=32,Se=24,Xe=32,lt=16,Ut=32,z_=32,R_=32,L_=32,es=32,F_=Se,Ks=Xe,__=lt,s_=64,y_=32,A_=64,ts=32,c_=64;c.lowlevel={crypto_core_hsalsa20:Z,crypto_stream_xor:ee,crypto_stream:K,crypto_stream_salsa20_xor:H,crypto_stream_salsa20:q,crypto_onetimeauth:Ne,crypto_onetimeauth_verify:et,crypto_verify_16:D,crypto_verify_32:O,crypto_secretbox:De,crypto_secretbox_open:le,crypto_scalarmult:Vt,crypto_scalarmult_base:Xt,crypto_box_beforenm:Jt,crypto_box_afternm:k_,crypto_box:C_,crypto_box_open:q_,crypto_box_keypair:Zt,crypto_hash:Qt,crypto_sign:Ie,crypto_sign_keypair:p_,crypto_sign_open:Ge,crypto_secretbox_KEYBYTES:z,crypto_secretbox_NONCEBYTES:Se,crypto_secretbox_ZEROBYTES:Xe,crypto_secretbox_BOXZEROBYTES:lt,crypto_scalarmult_BYTES:Ut,crypto_scalarmult_SCALARBYTES:z_,crypto_box_PUBLICKEYBYTES:R_,crypto_box_SECRETKEYBYTES:L_,crypto_box_BEFORENMBYTES:es,crypto_box_NONCEBYTES:F_,crypto_box_ZEROBYTES:Ks,crypto_box_BOXZEROBYTES:__,crypto_sign_BYTES:s_,crypto_sign_PUBLICKEYBYTES:y_,crypto_sign_SECRETKEYBYTES:A_,crypto_sign_SEEDBYTES:ts,crypto_hash_BYTES:c_,gf:u,D:T,L:r_,pack25519:Te,unpack25519:ht,M:$e,A:Ye,S:$t,Z:pe,pow2523:It,add:e_,set25519:Ue,modL:de,scalarmult:i_,scalarbase:yt};function fs(m,$){if(m.length!==z)throw new Error("bad key size");if($.length!==Se)throw new Error("bad nonce size")}function ws(m,$){if(m.length!==R_)throw new Error("bad public key size");if($.length!==L_)throw new Error("bad secret key size")}function Wt(){for(var m=0;m<arguments.length;m++)if(!(arguments[m]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function _s(m){for(var $=0;$<m.length;$++)m[$]=0}c.randomBytes=function(m){var $=new Uint8Array(m);return g($,m),$},c.secretbox=function(m,$,b){Wt(m,$,b),fs(b,$);for(var l=new Uint8Array(Xe+m.length),I=new Uint8Array(l.length),M=0;M<m.length;M++)l[M+Xe]=m[M];return De(I,l,l.length,$,b),I.subarray(lt)},c.secretbox.open=function(m,$,b){Wt(m,$,b),fs(b,$);for(var l=new Uint8Array(lt+m.length),I=new Uint8Array(l.length),M=0;M<m.length;M++)l[M+lt]=m[M];return l.length<32||le(I,l,l.length,$,b)!==0?null:I.subarray(Xe)},c.secretbox.keyLength=z,c.secretbox.nonceLength=Se,c.secretbox.overheadLength=lt,c.scalarMult=function(m,$){if(Wt(m,$),m.length!==z_)throw new Error("bad n size");if($.length!==Ut)throw new Error("bad p size");var b=new Uint8Array(Ut);return Vt(b,m,$),b},c.scalarMult.base=function(m){if(Wt(m),m.length!==z_)throw new Error("bad n size");var $=new Uint8Array(Ut);return Xt($,m),$},c.scalarMult.scalarLength=z_,c.scalarMult.groupElementLength=Ut,c.box=function(m,$,b,l){var I=c.box.before(b,l);return c.secretbox(m,$,I)},c.box.before=function(m,$){Wt(m,$),ws(m,$);var b=new Uint8Array(es);return Jt(b,m,$),b},c.box.after=c.secretbox,c.box.open=function(m,$,b,l){var I=c.box.before(b,l);return c.secretbox.open(m,$,I)},c.box.open.after=c.secretbox.open,c.box.keyPair=function(){var m=new Uint8Array(R_),$=new Uint8Array(L_);return Zt(m,$),{publicKey:m,secretKey:$}},c.box.keyPair.fromSecretKey=function(m){if(Wt(m),m.length!==L_)throw new Error("bad secret key size");var $=new Uint8Array(R_);return Xt($,m),{publicKey:$,secretKey:new Uint8Array(m)}},c.box.publicKeyLength=R_,c.box.secretKeyLength=L_,c.box.sharedKeyLength=es,c.box.nonceLength=F_,c.box.overheadLength=c.secretbox.overheadLength,c.sign=function(m,$){if(Wt(m,$),$.length!==A_)throw new Error("bad secret key size");var b=new Uint8Array(s_+m.length);return Ie(b,m,m.length,$),b},c.sign.open=function(m,$){if(Wt(m,$),$.length!==y_)throw new Error("bad public key size");var b=new Uint8Array(m.length),l=Ge(b,m,m.length,$);if(l<0)return null;for(var I=new Uint8Array(l),M=0;M<I.length;M++)I[M]=b[M];return I},c.sign.detached=function(m,$){for(var b=c.sign(m,$),l=new Uint8Array(s_),I=0;I<l.length;I++)l[I]=b[I];return l},c.sign.detached.verify=function(m,$,b){if(Wt(m,$,b),$.length!==s_)throw new Error("bad signature size");if(b.length!==y_)throw new Error("bad public key size");var l=new Uint8Array(s_+m.length),I=new Uint8Array(s_+m.length),M;for(M=0;M<s_;M++)l[M]=$[M];for(M=0;M<m.length;M++)l[M+s_]=m[M];return Ge(I,l,l.length,b)>=0},c.sign.keyPair=function(){var m=new Uint8Array(y_),$=new Uint8Array(A_);return p_(m,$),{publicKey:m,secretKey:$}},c.sign.keyPair.fromSecretKey=function(m){if(Wt(m),m.length!==A_)throw new Error("bad secret key size");for(var $=new Uint8Array(y_),b=0;b<$.length;b++)$[b]=m[32+b];return{publicKey:$,secretKey:new Uint8Array(m)}},c.sign.keyPair.fromSeed=function(m){if(Wt(m),m.length!==ts)throw new Error("bad seed size");for(var $=new Uint8Array(y_),b=new Uint8Array(A_),l=0;l<32;l++)b[l]=m[l];return p_($,b,!0),{publicKey:$,secretKey:b}},c.sign.publicKeyLength=y_,c.sign.secretKeyLength=A_,c.sign.seedLength=ts,c.sign.signatureLength=s_,c.hash=function(m){Wt(m);var $=new Uint8Array(c_);return Qt($,m,m.length),$},c.hash.hashLength=c_,c.verify=function(m,$){return Wt(m,$),m.length===0||$.length===0||m.length!==$.length?!1:L(m,0,$,0,m.length)===0},c.setPRNG=function(m){g=m},(function(){var m=typeof self<"u"?self.crypto||self.msCrypto:null;if(m&&m.getRandomValues){var $=65536;c.setPRNG(function(b,l){var I,M=new Uint8Array(l);for(I=0;I<l;I+=$)m.getRandomValues(M.subarray(I,I+Math.min(l-I,$)));for(I=0;I<l;I++)b[I]=M[I];_s(M)})}else m=s(4),m&&m.randomBytes&&c.setPRNG(function(b,l){var I,M=m.randomBytes(l);for(I=0;I<l;I++)b[I]=M[I];_s(M)})})()})(_.exports?_.exports:self.nacl=self.nacl||{})}),(function(_,o,s){_.exports=s(5).default}),(function(_,o){}),(function(_,o,s){s.r(o);var c=(function(){function i(a,r){this.lastId=0,this.prefix=a,this.name=r}return i.prototype.create=function(a){this.lastId++;var r=this.lastId,h=this.prefix+r,y=this.name+"["+r+"]",S=!1,X=function(){S||(a.apply(null,arguments),S=!0)};return this[r]=X,{number:r,id:h,name:y,callback:X}},i.prototype.remove=function(a){delete this[a.number]},i})(),u=new c("_pusher_script_","Pusher.ScriptReceivers"),g={VERSION:"7.6.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},d=g,p=(function(){function i(a){this.options=a,this.receivers=a.receivers||u,this.loading={}}return i.prototype.load=function(a,r,h){var y=this;if(y.loading[a]&&y.loading[a].length>0)y.loading[a].push(h);else{y.loading[a]=[h];var S=st.createScriptRequest(y.getPath(a,r)),X=y.receivers.create(function(ce){if(y.receivers.remove(X),y.loading[a]){var Me=y.loading[a];delete y.loading[a];for(var fe=function(Lt){Lt||S.cleanup()},rt=0;rt<Me.length;rt++)Me[rt](ce,fe)}});S.send(X)}},i.prototype.getRoot=function(a){var r,h=st.getDocument().location.protocol;return a&&a.useTLS||h==="https:"?r=this.options.cdn_https:r=this.options.cdn_http,r.replace(/\/*$/,"")+"/"+this.options.version},i.prototype.getPath=function(a,r){return this.getRoot(r)+"/"+a+this.options.suffix+".js"},i})(),x=p,f=new c("_pusher_dependencies","Pusher.DependenciesReceivers"),A=new x({cdn_http:d.cdn_http,cdn_https:d.cdn_https,version:d.VERSION,suffix:d.dependency_suffix,receivers:f}),T={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},P=function(i){var a="See:",r=T.urls[i];if(!r)return"";var h;return r.fullUrl?h=r.fullUrl:r.path&&(h=T.baseUrl+r.path),h?a+" "+h:""},E={buildLogSuffix:P},k;(function(i){i.UserAuthentication="user-authentication",i.ChannelAuthorization="channel-authorization"})(k||(k={}));var C=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),N=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),L=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),D=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),O=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),R=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),W=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),F=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),Z=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),G=(function(i){C(a,i);function a(r,h){var y=this.constructor,S=i.call(this,h)||this;return S.status=r,Object.setPrototypeOf(S,y.prototype),S}return a})(Error),H=function(i,a,r,h,y){var S=st.createXHR();S.open("POST",r.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var X in r.headers)S.setRequestHeader(X,r.headers[X]);if(r.headersProvider!=null){var ce=r.headersProvider();for(var X in ce)S.setRequestHeader(X,ce[X])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){var Me=void 0,fe=!1;try{Me=JSON.parse(S.responseText),fe=!0}catch{y(new G(200,"JSON returned from "+h.toString()+" endpoint was invalid, yet status code was 200. Data was: "+S.responseText),null)}fe&&y(null,Me)}else{var rt="";switch(h){case k.UserAuthentication:rt=E.buildLogSuffix("authenticationEndpoint");break;case k.ChannelAuthorization:rt="Clients must be authorized to join private or presence channels. "+E.buildLogSuffix("authorizationEndpoint");break}y(new G(S.status,"Unable to retrieve auth string from "+h.toString()+" endpoint - "+("received status: "+S.status+" from "+r.endpoint+". "+rt)),null)}},S.send(a),S},q=H;function K(i){return le(et(i))}var ee=String.fromCharCode,xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=function(i){var a=i.charCodeAt(0);return a<128?i:a<2048?ee(192|a>>>6)+ee(128|a&63):ee(224|a>>>12&15)+ee(128|a>>>6&63)+ee(128|a&63)},et=function(i){return i.replace(/[^\x00-\x7F]/g,Ne)},De=function(i){var a=[0,2,1][i.length%3],r=i.charCodeAt(0)<<16|(i.length>1?i.charCodeAt(1):0)<<8|(i.length>2?i.charCodeAt(2):0),h=[xe.charAt(r>>>18),xe.charAt(r>>>12&63),a>=2?"=":xe.charAt(r>>>6&63),a>=1?"=":xe.charAt(r&63)];return h.join("")},le=window.btoa||function(i){return i.replace(/[\s\S]{1,3}/g,De)},Ue=(function(){function i(a,r,h,y){var S=this;this.clear=r,this.timer=a(function(){S.timer&&(S.timer=y(S.timer))},h)}return i.prototype.isRunning=function(){return this.timer!==null},i.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},i})(),re=Ue,ge=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})();function Te(i){window.clearTimeout(i)}function Pe(i){window.clearInterval(i)}var Fe=(function(i){ge(a,i);function a(r,h){return i.call(this,setTimeout,Te,r,function(y){return h(),null})||this}return a})(re),ht=(function(i){ge(a,i);function a(r,h){return i.call(this,setInterval,Pe,r,function(y){return h(),y})||this}return a})(re),Ye={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(i){return new Fe(0,i)},method:function(i){var a=Array.prototype.slice.call(arguments,1);return function(r){return r[i].apply(r,a.concat(arguments))}}},pe=Ye;function $e(i){for(var a=[],r=1;r<arguments.length;r++)a[r-1]=arguments[r];for(var h=0;h<a.length;h++){var y=a[h];for(var S in y)y[S]&&y[S].constructor&&y[S].constructor===Object?i[S]=$e(i[S]||{},y[S]):i[S]=y[S]}return i}function $t(){for(var i=["Pusher"],a=0;a<arguments.length;a++)typeof arguments[a]=="string"?i.push(arguments[a]):i.push(t_(arguments[a]));return i.join(" : ")}function Ht(i,a){var r=Array.prototype.indexOf;if(i===null)return-1;if(r&&i.indexOf===r)return i.indexOf(a);for(var h=0,y=i.length;h<y;h++)if(i[h]===a)return h;return-1}function It(i,a){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&a(i[r],r,i)}function Vt(i){var a=[];return It(i,function(r,h){a.push(h)}),a}function Xt(i){var a=[];return It(i,function(r){a.push(r)}),a}function Zt(i,a,r){for(var h=0;h<i.length;h++)a.call(r||window,i[h],h,i)}function Jt(i,a){for(var r=[],h=0;h<i.length;h++)r.push(a(i[h],h,i,r));return r}function k_(i,a){var r={};return It(i,function(h,y){r[y]=a(h)}),r}function x_(i,a){a=a||function(y){return!!y};for(var r=[],h=0;h<i.length;h++)a(i[h],h,i,r)&&r.push(i[h]);return r}function C_(i,a){var r={};return It(i,function(h,y){(a&&a(h,y,i,r)||h)&&(r[y]=h)}),r}function q_(i){var a=[];return It(i,function(r,h){a.push([h,r])}),a}function g_(i,a){for(var r=0;r<i.length;r++)if(a(i[r],r,i))return!0;return!1}function I_(i,a){for(var r=0;r<i.length;r++)if(!a(i[r],r,i))return!1;return!0}function Qt(i){return k_(i,function(a){return typeof a=="object"&&(a=t_(a)),encodeURIComponent(K(a.toString()))})}function e_(i){var a=C_(i,function(h){return h!==void 0}),r=Jt(q_(Qt(a)),pe.method("join","=")).join("&");return r}function S_(i){var a=[],r=[];return(function h(y,S){var X,ce,Me;switch(typeof y){case"object":if(!y)return null;for(X=0;X<a.length;X+=1)if(a[X]===y)return{$ref:r[X]};if(a.push(y),r.push(S),Object.prototype.toString.apply(y)==="[object Array]")for(Me=[],X=0;X<y.length;X+=1)Me[X]=h(y[X],S+"["+X+"]");else{Me={};for(ce in y)Object.prototype.hasOwnProperty.call(y,ce)&&(Me[ce]=h(y[ce],S+"["+JSON.stringify(ce)+"]"))}return Me;case"number":case"string":case"boolean":return y}})(i,"$")}function t_(i){try{return JSON.stringify(i)}catch{return JSON.stringify(S_(i))}}var i_=(function(){function i(){this.globalLog=function(a){window.console&&window.console.log&&window.console.log(a)}}return i.prototype.debug=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];this.log(this.globalLog,a)},i.prototype.warn=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];this.log(this.globalLogWarn,a)},i.prototype.error=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];this.log(this.globalLogError,a)},i.prototype.globalLogWarn=function(a){window.console&&window.console.warn?window.console.warn(a):this.globalLog(a)},i.prototype.globalLogError=function(a){window.console&&window.console.error?window.console.error(a):this.globalLogWarn(a)},i.prototype.log=function(a){var r=$t.apply(this,arguments);if(V_.log)V_.log(r);else if(V_.logToConsole){var h=a.bind(this);h(r)}},i})(),yt=new i_,p_=function(i,a,r,h,y){(r.headers!==void 0||r.headersProvider!=null)&&yt.warn("To send headers with the "+h.toString()+" request, you must use AJAX, rather than JSONP.");var S=i.nextAuthCallbackID.toString();i.nextAuthCallbackID++;var X=i.getDocument(),ce=X.createElement("script");i.auth_callbacks[S]=function(rt){y(null,rt)};var Me="Pusher.auth_callbacks['"+S+"']";ce.src=r.endpoint+"?callback="+encodeURIComponent(Me)+"&"+a;var fe=X.getElementsByTagName("head")[0]||X.documentElement;fe.insertBefore(ce,fe.firstChild)},r_=p_,de=(function(){function i(a){this.src=a}return i.prototype.send=function(a){var r=this,h="Error loading "+r.src;r.script=document.createElement("script"),r.script.id=a.id,r.script.src=r.src,r.script.type="text/javascript",r.script.charset="UTF-8",r.script.addEventListener?(r.script.onerror=function(){a.callback(h)},r.script.onload=function(){a.callback(null)}):r.script.onreadystatechange=function(){(r.script.readyState==="loaded"||r.script.readyState==="complete")&&a.callback(null)},r.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(r.errorScript=document.createElement("script"),r.errorScript.id=a.id+"_error",r.errorScript.text=a.name+"('"+h+"');",r.script.async=r.errorScript.async=!1):r.script.async=!0;var y=document.getElementsByTagName("head")[0];y.insertBefore(r.script,y.firstChild),r.errorScript&&y.insertBefore(r.errorScript,r.script.nextSibling)},i.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},i})(),we=de,Ie=(function(){function i(a,r){this.url=a,this.data=r}return i.prototype.send=function(a){if(!this.request){var r=e_(this.data),h=this.url+"/"+a.number+"?"+r;this.request=st.createScriptRequest(h),this.request.send(a)}},i.prototype.cleanup=function(){this.request&&this.request.cleanup()},i})(),mt=Ie,Ge=function(i,a){return function(r,h){var y="http"+(a?"s":"")+"://",S=y+(i.host||i.options.host)+i.options.path,X=st.createJSONPRequest(S,r),ce=st.ScriptReceivers.create(function(Me,fe){u.remove(ce),X.cleanup(),fe&&fe.host&&(i.host=fe.host),h&&h(Me,fe)});X.send(ce)}},z={name:"jsonp",getAgent:Ge},Se=z;function Xe(i,a,r){var h=i+(a.useTLS?"s":""),y=a.useTLS?a.hostTLS:a.hostNonTLS;return h+"://"+y+r}function lt(i,a){var r="/app/"+i,h="?protocol="+d.PROTOCOL+"&client=js&version="+d.VERSION+(a?"&"+a:"");return r+h}var Ut={getInitial:function(i,a){var r=(a.httpPath||"")+lt(i,"flash=false");return Xe("ws",a,r)}},z_={getInitial:function(i,a){var r=(a.httpPath||"/pusher")+lt(i);return Xe("http",a,r)}},R_={getInitial:function(i,a){return Xe("http",a,a.httpPath||"/pusher")},getPath:function(i,a){return lt(i)}},L_=(function(){function i(){this._callbacks={}}return i.prototype.get=function(a){return this._callbacks[F_(a)]},i.prototype.add=function(a,r,h){var y=F_(a);this._callbacks[y]=this._callbacks[y]||[],this._callbacks[y].push({fn:r,context:h})},i.prototype.remove=function(a,r,h){if(!a&&!r&&!h){this._callbacks={};return}var y=a?[F_(a)]:Vt(this._callbacks);r||h?this.removeCallback(y,r,h):this.removeAllCallbacks(y)},i.prototype.removeCallback=function(a,r,h){Zt(a,function(y){this._callbacks[y]=x_(this._callbacks[y]||[],function(S){return r&&r!==S.fn||h&&h!==S.context}),this._callbacks[y].length===0&&delete this._callbacks[y]},this)},i.prototype.removeAllCallbacks=function(a){Zt(a,function(r){delete this._callbacks[r]},this)},i})(),es=L_;function F_(i){return"_"+i}var Ks=(function(){function i(a){this.callbacks=new es,this.global_callbacks=[],this.failThrough=a}return i.prototype.bind=function(a,r,h){return this.callbacks.add(a,r,h),this},i.prototype.bind_global=function(a){return this.global_callbacks.push(a),this},i.prototype.unbind=function(a,r,h){return this.callbacks.remove(a,r,h),this},i.prototype.unbind_global=function(a){return a?(this.global_callbacks=x_(this.global_callbacks||[],function(r){return r!==a}),this):(this.global_callbacks=[],this)},i.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},i.prototype.emit=function(a,r,h){for(var y=0;y<this.global_callbacks.length;y++)this.global_callbacks[y](a,r);var S=this.callbacks.get(a),X=[];if(h?X.push(r,h):r&&X.push(r),S&&S.length>0)for(var y=0;y<S.length;y++)S[y].fn.apply(S[y].context||window,X);else this.failThrough&&this.failThrough(a,r);return this},i})(),__=Ks,s_=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),y_=(function(i){s_(a,i);function a(r,h,y,S,X){var ce=i.call(this)||this;return ce.initialize=st.transportConnectionInitializer,ce.hooks=r,ce.name=h,ce.priority=y,ce.key=S,ce.options=X,ce.state="new",ce.timeline=X.timeline,ce.activityTimeout=X.activityTimeout,ce.id=ce.timeline.generateUniqueID(),ce}return a.prototype.handlesActivityChecks=function(){return!!this.hooks.handlesActivityChecks},a.prototype.supportsPing=function(){return!!this.hooks.supportsPing},a.prototype.connect=function(){var r=this;if(this.socket||this.state!=="initialized")return!1;var h=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(h,this.options)}catch(y){return pe.defer(function(){r.onError(y),r.changeState("closed")}),!1}return this.bindListeners(),yt.debug("Connecting",{transport:this.name,url:h}),this.changeState("connecting"),!0},a.prototype.close=function(){return this.socket?(this.socket.close(),!0):!1},a.prototype.send=function(r){var h=this;return this.state==="open"?(pe.defer(function(){h.socket&&h.socket.send(r)}),!0):!1},a.prototype.ping=function(){this.state==="open"&&this.supportsPing()&&this.socket.ping()},a.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},a.prototype.onError=function(r){this.emit("error",{type:"WebSocketError",error:r}),this.timeline.error(this.buildTimelineMessage({error:r.toString()}))},a.prototype.onClose=function(r){r?this.changeState("closed",{code:r.code,reason:r.reason,wasClean:r.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},a.prototype.onMessage=function(r){this.emit("message",r)},a.prototype.onActivity=function(){this.emit("activity")},a.prototype.bindListeners=function(){var r=this;this.socket.onopen=function(){r.onOpen()},this.socket.onerror=function(h){r.onError(h)},this.socket.onclose=function(h){r.onClose(h)},this.socket.onmessage=function(h){r.onMessage(h)},this.supportsPing()&&(this.socket.onactivity=function(){r.onActivity()})},a.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},a.prototype.changeState=function(r,h){this.state=r,this.timeline.info(this.buildTimelineMessage({state:r,params:h})),this.emit(r,h)},a.prototype.buildTimelineMessage=function(r){return $e({cid:this.id},r)},a})(__),A_=y_,ts=(function(){function i(a){this.hooks=a}return i.prototype.isSupported=function(a){return this.hooks.isSupported(a)},i.prototype.createConnection=function(a,r,h,y){return new A_(this.hooks,a,r,h,y)},i})(),c_=ts,fs=new c_({urls:Ut,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!st.getWebSocketAPI()},isSupported:function(){return!!st.getWebSocketAPI()},getSocket:function(i){return st.createWebSocket(i)}}),ws={urls:z_,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Wt=$e({getSocket:function(i){return st.HTTPFactory.createStreamingSocket(i)}},ws),_s=$e({getSocket:function(i){return st.HTTPFactory.createPollingSocket(i)}},ws),m={isSupported:function(){return st.isXHRSupported()}},$=new c_($e({},Wt,m)),b=new c_($e({},_s,m)),l={ws:fs,xhr_streaming:$,xhr_polling:b},I=l,M=new c_({file:"sockjs",urls:R_,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(i,a){return new window.SockJS(i,null,{js_path:A.getPath("sockjs",{useTLS:a.useTLS}),ignore_null_origin:a.ignoreNullOrigin})},beforeOpen:function(i,a){i.send(JSON.stringify({path:a}))}}),B={isSupported:function(i){var a=st.isXDRSupported(i.useTLS);return a}},_e=new c_($e({},Wt,B)),ie=new c_($e({},_s,B));I.xdr_streaming=_e,I.xdr_polling=ie,I.sockjs=M;var Ae=I,me=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),gt=(function(i){me(a,i);function a(){var r=i.call(this)||this,h=r;return window.addEventListener!==void 0&&(window.addEventListener("online",function(){h.emit("online")},!1),window.addEventListener("offline",function(){h.emit("offline")},!1)),r}return a.prototype.isOnline=function(){return window.navigator.onLine===void 0?!0:window.navigator.onLine},a})(__),ve=new gt,ze=(function(){function i(a,r,h){this.manager=a,this.transport=r,this.minPingDelay=h.minPingDelay,this.maxPingDelay=h.maxPingDelay,this.pingDelay=void 0}return i.prototype.createConnection=function(a,r,h,y){var S=this;y=$e({},y,{activityTimeout:this.pingDelay});var X=this.transport.createConnection(a,r,h,y),ce=null,Me=function(){X.unbind("open",Me),X.bind("closed",fe),ce=pe.now()},fe=function(rt){if(X.unbind("closed",fe),rt.code===1002||rt.code===1003)S.manager.reportDeath();else if(!rt.wasClean&&ce){var Lt=pe.now()-ce;Lt<2*S.maxPingDelay&&(S.manager.reportDeath(),S.pingDelay=Math.max(Lt/2,S.minPingDelay))}};return X.bind("open",Me),X},i.prototype.isSupported=function(a){return this.manager.isAlive()&&this.transport.isSupported(a)},i})(),He=ze,Je={decodeMessage:function(i){try{var a=JSON.parse(i.data),r=a.data;if(typeof r=="string")try{r=JSON.parse(a.data)}catch{}var h={event:a.event,channel:a.channel,data:r};return a.user_id&&(h.user_id=a.user_id),h}catch(y){throw{type:"MessageParseError",error:y,data:i.data}}},encodeMessage:function(i){return JSON.stringify(i)},processHandshake:function(i){var a=Je.decodeMessage(i);if(a.event==="pusher:connection_established"){if(!a.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:a.data.socket_id,activityTimeout:a.data.activity_timeout*1e3}}else{if(a.event==="pusher:error")return{action:this.getCloseAction(a.data),error:this.getCloseError(a.data)};throw"Invalid handshake"}},getCloseAction:function(i){return i.code<4e3?i.code>=1002&&i.code<=1004?"backoff":null:i.code===4e3?"tls_only":i.code<4100?"refused":i.code<4200?"backoff":i.code<4300?"retry":"refused"},getCloseError:function(i){return i.code!==1e3&&i.code!==1001?{type:"PusherError",data:{code:i.code,message:i.reason||i.message}}:null}},Be=Je,Ve=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Ze=(function(i){Ve(a,i);function a(r,h){var y=i.call(this)||this;return y.id=r,y.transport=h,y.activityTimeout=h.activityTimeout,y.bindListeners(),y}return a.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},a.prototype.send=function(r){return this.transport.send(r)},a.prototype.send_event=function(r,h,y){var S={event:r,data:h};return y&&(S.channel=y),yt.debug("Event sent",S),this.send(Be.encodeMessage(S))},a.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},a.prototype.close=function(){this.transport.close()},a.prototype.bindListeners=function(){var r=this,h={message:function(S){var X;try{X=Be.decodeMessage(S)}catch(ce){r.emit("error",{type:"MessageParseError",error:ce,data:S.data})}if(X!==void 0){switch(yt.debug("Event recd",X),X.event){case"pusher:error":r.emit("error",{type:"PusherError",data:X.data});break;case"pusher:ping":r.emit("ping");break;case"pusher:pong":r.emit("pong");break}r.emit("message",X)}},activity:function(){r.emit("activity")},error:function(S){r.emit("error",S)},closed:function(S){y(),S&&S.code&&r.handleCloseEvent(S),r.transport=null,r.emit("closed")}},y=function(){It(h,function(S,X){r.transport.unbind(X,S)})};It(h,function(S,X){r.transport.bind(X,S)})},a.prototype.handleCloseEvent=function(r){var h=Be.getCloseAction(r),y=Be.getCloseError(r);y&&this.emit("error",y),h&&this.emit(h,{action:h,error:y})},a})(__),We=Ze,be=(function(){function i(a,r){this.transport=a,this.callback=r,this.bindListeners()}return i.prototype.close=function(){this.unbindListeners(),this.transport.close()},i.prototype.bindListeners=function(){var a=this;this.onMessage=function(r){a.unbindListeners();var h;try{h=Be.processHandshake(r)}catch(y){a.finish("error",{error:y}),a.transport.close();return}h.action==="connected"?a.finish("connected",{connection:new We(h.id,a.transport),activityTimeout:h.activityTimeout}):(a.finish(h.action,{error:h.error}),a.transport.close())},this.onClosed=function(r){a.unbindListeners();var h=Be.getCloseAction(r)||"backoff",y=Be.getCloseError(r);a.finish(h,{error:y})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},i.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},i.prototype.finish=function(a,r){this.callback($e({transport:this.transport,action:a},r))},i})(),je=be,ye=(function(){function i(a,r){this.timeline=a,this.options=r||{}}return i.prototype.send=function(a,r){this.timeline.isEmpty()||this.timeline.send(st.TimelineTransport.getAgent(this,a),r)},i})(),ke=ye,Ce=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),he=(function(i){Ce(a,i);function a(r,h){var y=i.call(this,function(S,X){yt.debug("No callbacks on "+r+" for "+S)})||this;return y.name=r,y.pusher=h,y.subscribed=!1,y.subscriptionPending=!1,y.subscriptionCancelled=!1,y}return a.prototype.authorize=function(r,h){return h(null,{auth:""})},a.prototype.trigger=function(r,h){if(r.indexOf("client-")!==0)throw new N("Event '"+r+"' does not start with 'client-'");if(!this.subscribed){var y=E.buildLogSuffix("triggeringClientEvents");yt.warn("Client event triggered before channel 'subscription_succeeded' event . "+y)}return this.pusher.send_event(r,h,this.name)},a.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},a.prototype.handleEvent=function(r){var h=r.event,y=r.data;if(h==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(r);else if(h==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(r);else if(h.indexOf("pusher_internal:")!==0){var S={};this.emit(h,y,S)}},a.prototype.handleSubscriptionSucceededEvent=function(r){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",r.data)},a.prototype.handleSubscriptionCountEvent=function(r){r.data.subscription_count&&(this.subscriptionCount=r.data.subscription_count),this.emit("pusher:subscription_count",r.data)},a.prototype.subscribe=function(){var r=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(h,y){h?(r.subscriptionPending=!1,yt.error(h.toString()),r.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:h.message},h instanceof G?{status:h.status}:{}))):r.pusher.send_event("pusher:subscribe",{auth:y.auth,channel_data:y.channel_data,channel:r.name})}))},a.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},a.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},a.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},a})(__),U=he,Y=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),oe=(function(i){Y(a,i);function a(){return i!==null&&i.apply(this,arguments)||this}return a.prototype.authorize=function(r,h){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:r},h)},a})(U),te=oe,se=(function(){function i(){this.reset()}return i.prototype.get=function(a){return Object.prototype.hasOwnProperty.call(this.members,a)?{id:a,info:this.members[a]}:null},i.prototype.each=function(a){var r=this;It(this.members,function(h,y){a(r.get(y))})},i.prototype.setMyID=function(a){this.myID=a},i.prototype.onSubscription=function(a){this.members=a.presence.hash,this.count=a.presence.count,this.me=this.get(this.myID)},i.prototype.addMember=function(a){return this.get(a.user_id)===null&&this.count++,this.members[a.user_id]=a.user_info,this.get(a.user_id)},i.prototype.removeMember=function(a){var r=this.get(a.user_id);return r&&(delete this.members[a.user_id],this.count--),r},i.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},i})(),ae=se,Re=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Qe=function(i,a,r,h){function y(S){return S instanceof r?S:new r(function(X){X(S)})}return new(r||(r=Promise))(function(S,X){function ce(rt){try{fe(h.next(rt))}catch(Lt){X(Lt)}}function Me(rt){try{fe(h.throw(rt))}catch(Lt){X(Lt)}}function fe(rt){rt.done?S(rt.value):y(rt.value).then(ce,Me)}fe((h=h.apply(i,a||[])).next())})},tt=function(i,a){var r={label:0,sent:function(){if(S[0]&1)throw S[1];return S[1]},trys:[],ops:[]},h,y,S,X;return X={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(X[Symbol.iterator]=function(){return this}),X;function ce(fe){return function(rt){return Me([fe,rt])}}function Me(fe){if(h)throw new TypeError("Generator is already executing.");for(;r;)try{if(h=1,y&&(S=fe[0]&2?y.return:fe[0]?y.throw||((S=y.return)&&S.call(y),0):y.next)&&!(S=S.call(y,fe[1])).done)return S;switch(y=0,S&&(fe=[fe[0]&2,S.value]),fe[0]){case 0:case 1:S=fe;break;case 4:return r.label++,{value:fe[1],done:!1};case 5:r.label++,y=fe[1],fe=[0];continue;case 7:fe=r.ops.pop(),r.trys.pop();continue;default:if(S=r.trys,!(S=S.length>0&&S[S.length-1])&&(fe[0]===6||fe[0]===2)){r=0;continue}if(fe[0]===3&&(!S||fe[1]>S[0]&&fe[1]<S[3])){r.label=fe[1];break}if(fe[0]===6&&r.label<S[1]){r.label=S[1],S=fe;break}if(S&&r.label<S[2]){r.label=S[2],r.ops.push(fe);break}S[2]&&r.ops.pop(),r.trys.pop();continue}fe=a.call(i,r)}catch(rt){fe=[6,rt],y=0}finally{h=S=0}if(fe[0]&5)throw fe[1];return{value:fe[0]?fe[1]:void 0,done:!0}}},Ke=(function(i){Re(a,i);function a(r,h){var y=i.call(this,r,h)||this;return y.members=new ae,y}return a.prototype.authorize=function(r,h){var y=this;i.prototype.authorize.call(this,r,function(S,X){return Qe(y,void 0,void 0,function(){var ce,Me;return tt(this,function(fe){switch(fe.label){case 0:return S?[3,3]:(X=X,X.channel_data==null?[3,1]:(ce=JSON.parse(X.channel_data),this.members.setMyID(ce.user_id),[3,3]));case 1:return[4,this.pusher.user.signinDonePromise];case 2:if(fe.sent(),this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else return Me=E.buildLogSuffix("authorizationEndpoint"),yt.error("Invalid auth response for channel '"+this.name+"', "+("expected 'channel_data' field. "+Me+", ")+"or the user should be signed in."),h("Invalid auth response"),[2];fe.label=3;case 3:return h(S,X),[2]}})})})},a.prototype.handleEvent=function(r){var h=r.event;if(h.indexOf("pusher_internal:")===0)this.handleInternalEvent(r);else{var y=r.data,S={};r.user_id&&(S.user_id=r.user_id),this.emit(h,y,S)}},a.prototype.handleInternalEvent=function(r){var h=r.event,y=r.data;switch(h){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(r);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(r);break;case"pusher_internal:member_added":var S=this.members.addMember(y);this.emit("pusher:member_added",S);break;case"pusher_internal:member_removed":var X=this.members.removeMember(y);X&&this.emit("pusher:member_removed",X);break}},a.prototype.handleSubscriptionSucceededEvent=function(r){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(r.data),this.emit("pusher:subscription_succeeded",this.members))},a.prototype.disconnect=function(){this.members.reset(),i.prototype.disconnect.call(this)},a})(te),j=Ke,nt=s(1),it=s(0),pt=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),_t=(function(i){pt(a,i);function a(r,h,y){var S=i.call(this,r,h)||this;return S.key=null,S.nacl=y,S}return a.prototype.authorize=function(r,h){var y=this;i.prototype.authorize.call(this,r,function(S,X){if(S){h(S,X);return}var ce=X.shared_secret;if(!ce){h(new Error("No shared_secret key in auth payload for encrypted channel: "+y.name),null);return}y.key=Object(it.decode)(ce),delete X.shared_secret,h(null,X)})},a.prototype.trigger=function(r,h){throw new W("Client events are not currently supported for encrypted channels")},a.prototype.handleEvent=function(r){var h=r.event,y=r.data;if(h.indexOf("pusher_internal:")===0||h.indexOf("pusher:")===0){i.prototype.handleEvent.call(this,r);return}this.handleEncryptedEvent(h,y)},a.prototype.handleEncryptedEvent=function(r,h){var y=this;if(!this.key){yt.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!h.ciphertext||!h.nonce){yt.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+h);return}var S=Object(it.decode)(h.ciphertext);if(S.length<this.nacl.secretbox.overheadLength){yt.error("Expected encrypted event ciphertext length to be "+this.nacl.secretbox.overheadLength+", got: "+S.length);return}var X=Object(it.decode)(h.nonce);if(X.length<this.nacl.secretbox.nonceLength){yt.error("Expected encrypted event nonce length to be "+this.nacl.secretbox.nonceLength+", got: "+X.length);return}var ce=this.nacl.secretbox.open(S,X,this.key);if(ce===null){yt.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,function(Me,fe){if(Me){yt.error("Failed to make a request to the authEndpoint: "+fe+". Unable to fetch new key, so dropping encrypted event");return}if(ce=y.nacl.secretbox.open(S,X,y.key),ce===null){yt.error("Failed to decrypt event with new key. Dropping encrypted event");return}y.emit(r,y.getDataToEmit(ce))});return}this.emit(r,this.getDataToEmit(ce))},a.prototype.getDataToEmit=function(r){var h=Object(nt.decode)(r);try{return JSON.parse(h)}catch{return h}},a})(te),dt=_t,ut=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Tt=(function(i){ut(a,i);function a(r,h){var y=i.call(this)||this;y.state="initialized",y.connection=null,y.key=r,y.options=h,y.timeline=y.options.timeline,y.usingTLS=y.options.useTLS,y.errorCallbacks=y.buildErrorCallbacks(),y.connectionCallbacks=y.buildConnectionCallbacks(y.errorCallbacks),y.handshakeCallbacks=y.buildHandshakeCallbacks(y.errorCallbacks);var S=st.getNetwork();return S.bind("online",function(){y.timeline.info({netinfo:"online"}),(y.state==="connecting"||y.state==="unavailable")&&y.retryIn(0)}),S.bind("offline",function(){y.timeline.info({netinfo:"offline"}),y.connection&&y.sendActivityCheck()}),y.updateStrategy(),y}return a.prototype.connect=function(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}},a.prototype.send=function(r){return this.connection?this.connection.send(r):!1},a.prototype.send_event=function(r,h,y){return this.connection?this.connection.send_event(r,h,y):!1},a.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},a.prototype.isUsingTLS=function(){return this.usingTLS},a.prototype.startConnecting=function(){var r=this,h=function(y,S){y?r.runner=r.strategy.connect(0,h):S.action==="error"?(r.emit("error",{type:"HandshakeError",error:S.error}),r.timeline.error({handshakeError:S.error})):(r.abortConnecting(),r.handshakeCallbacks[S.action](S))};this.runner=this.strategy.connect(0,h)},a.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},a.prototype.disconnectInternally=function(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var r=this.abandonConnection();r.close()}},a.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},a.prototype.retryIn=function(r){var h=this;this.timeline.info({action:"retry",delay:r}),r>0&&this.emit("connecting_in",Math.round(r/1e3)),this.retryTimer=new Fe(r||0,function(){h.disconnectInternally(),h.connect()})},a.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},a.prototype.setUnavailableTimer=function(){var r=this;this.unavailableTimer=new Fe(this.options.unavailableTimeout,function(){r.updateState("unavailable")})},a.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},a.prototype.sendActivityCheck=function(){var r=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Fe(this.options.pongTimeout,function(){r.timeline.error({pong_timed_out:r.options.pongTimeout}),r.retryIn(0)})},a.prototype.resetActivityCheck=function(){var r=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Fe(this.activityTimeout,function(){r.sendActivityCheck()}))},a.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},a.prototype.buildConnectionCallbacks=function(r){var h=this;return $e({},r,{message:function(y){h.resetActivityCheck(),h.emit("message",y)},ping:function(){h.send_event("pusher:pong",{})},activity:function(){h.resetActivityCheck()},error:function(y){h.emit("error",y)},closed:function(){h.abandonConnection(),h.shouldRetry()&&h.retryIn(1e3)}})},a.prototype.buildHandshakeCallbacks=function(r){var h=this;return $e({},r,{connected:function(y){h.activityTimeout=Math.min(h.options.activityTimeout,y.activityTimeout,y.connection.activityTimeout||1/0),h.clearUnavailableTimer(),h.setConnection(y.connection),h.socket_id=h.connection.id,h.updateState("connected",{socket_id:h.socket_id})}})},a.prototype.buildErrorCallbacks=function(){var r=this,h=function(y){return function(S){S.error&&r.emit("error",{type:"WebSocketError",error:S.error}),y(S)}};return{tls_only:h(function(){r.usingTLS=!0,r.updateStrategy(),r.retryIn(0)}),refused:h(function(){r.disconnect()}),backoff:h(function(){r.retryIn(1e3)}),retry:h(function(){r.retryIn(0)})}},a.prototype.setConnection=function(r){this.connection=r;for(var h in this.connectionCallbacks)this.connection.bind(h,this.connectionCallbacks[h]);this.resetActivityCheck()},a.prototype.abandonConnection=function(){if(this.connection){this.stopActivityCheck();for(var r in this.connectionCallbacks)this.connection.unbind(r,this.connectionCallbacks[r]);var h=this.connection;return this.connection=null,h}},a.prototype.updateState=function(r,h){var y=this.state;if(this.state=r,y!==r){var S=r;S==="connected"&&(S+=" with new socket ID "+h.socket_id),yt.debug("State changed",y+" -> "+S),this.timeline.info({state:r,params:h}),this.emit("state_change",{previous:y,current:r}),this.emit(r,h)}},a.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},a})(__),wt=Tt,St=(function(){function i(){this.channels={}}return i.prototype.add=function(a,r){return this.channels[a]||(this.channels[a]=Et(a,r)),this.channels[a]},i.prototype.all=function(){return Xt(this.channels)},i.prototype.find=function(a){return this.channels[a]},i.prototype.remove=function(a){var r=this.channels[a];return delete this.channels[a],r},i.prototype.disconnect=function(){It(this.channels,function(a){a.disconnect()})},i})(),At=St;function Et(i,a){if(i.indexOf("private-encrypted-")===0){if(a.config.nacl)return xt.createEncryptedChannel(i,a,a.config.nacl);var r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",h=E.buildLogSuffix("encryptedChannelSupport");throw new W(r+". "+h)}else{if(i.indexOf("private-")===0)return xt.createPrivateChannel(i,a);if(i.indexOf("presence-")===0)return xt.createPresenceChannel(i,a);if(i.indexOf("#")===0)throw new L('Cannot create a channel with name "'+i+'".');return xt.createChannel(i,a)}}var qt={createChannels:function(){return new At},createConnectionManager:function(i,a){return new wt(i,a)},createChannel:function(i,a){return new U(i,a)},createPrivateChannel:function(i,a){return new te(i,a)},createPresenceChannel:function(i,a){return new j(i,a)},createEncryptedChannel:function(i,a,r){return new dt(i,a,r)},createTimelineSender:function(i,a){return new ke(i,a)},createHandshake:function(i,a){return new je(i,a)},createAssistantToTheTransportManager:function(i,a,r){return new He(i,a,r)}},xt=qt,Gt=(function(){function i(a){this.options=a||{},this.livesLeft=this.options.lives||1/0}return i.prototype.getAssistant=function(a){return xt.createAssistantToTheTransportManager(this,a,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},i.prototype.isAlive=function(){return this.livesLeft>0},i.prototype.reportDeath=function(){this.livesLeft-=1},i})(),Bt=Gt,Pc=(function(){function i(a,r){this.strategies=a,this.loop=!!r.loop,this.failFast=!!r.failFast,this.timeout=r.timeout,this.timeoutLimit=r.timeoutLimit}return i.prototype.isSupported=function(){return g_(this.strategies,pe.method("isSupported"))},i.prototype.connect=function(a,r){var h=this,y=this.strategies,S=0,X=this.timeout,ce=null,Me=function(fe,rt){rt?r(null,rt):(S=S+1,h.loop&&(S=S%y.length),S<y.length?(X&&(X=X*2,h.timeoutLimit&&(X=Math.min(X,h.timeoutLimit))),ce=h.tryStrategy(y[S],a,{timeout:X,failFast:h.failFast},Me)):r(!0))};return ce=this.tryStrategy(y[S],a,{timeout:X,failFast:this.failFast},Me),{abort:function(){ce.abort()},forceMinPriority:function(fe){a=fe,ce&&ce.forceMinPriority(fe)}}},i.prototype.tryStrategy=function(a,r,h,y){var S=null,X=null;return h.timeout>0&&(S=new Fe(h.timeout,function(){X.abort(),y(!0)})),X=a.connect(r,function(ce,Me){ce&&S&&S.isRunning()&&!h.failFast||(S&&S.ensureAborted(),y(ce,Me))}),{abort:function(){S&&S.ensureAborted(),X.abort()},forceMinPriority:function(ce){X.forceMinPriority(ce)}}},i})(),M_=Pc,qc=(function(){function i(a){this.strategies=a}return i.prototype.isSupported=function(){return g_(this.strategies,pe.method("isSupported"))},i.prototype.connect=function(a,r){return Rc(this.strategies,a,function(h,y){return function(S,X){if(y[h].error=S,S){Lc(y)&&r(!0);return}Zt(y,function(ce){ce.forceMinPriority(X.transport.priority)}),r(null,X)}})},i})(),en=qc;function Rc(i,a,r){var h=Jt(i,function(y,S,X,ce){return y.connect(a,r(S,ce))});return{abort:function(){Zt(h,Mc)},forceMinPriority:function(y){Zt(h,function(S){S.forceMinPriority(y)})}}}function Lc(i){return I_(i,function(a){return!!a.error})}function Mc(i){!i.error&&!i.aborted&&(i.abort(),i.aborted=!0)}var Dc=(function(){function i(a,r,h){this.strategy=a,this.transports=r,this.ttl=h.ttl||1800*1e3,this.usingTLS=h.useTLS,this.timeline=h.timeline}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(a,r){var h=this.usingTLS,y=Oc(h),S=[this.strategy];if(y&&y.timestamp+this.ttl>=pe.now()){var X=this.transports[y.transport];X&&(this.timeline.info({cached:!0,transport:y.transport,latency:y.latency}),S.push(new M_([X],{timeout:y.latency*2+1e3,failFast:!0})))}var ce=pe.now(),Me=S.pop().connect(a,function fe(rt,Lt){rt?(eo(h),S.length>0?(ce=pe.now(),Me=S.pop().connect(a,fe)):r(rt)):(Gc(h,Lt.transport.name,pe.now()-ce),r(null,Lt))});return{abort:function(){Me.abort()},forceMinPriority:function(fe){a=fe,Me&&Me.forceMinPriority(fe)}}},i})(),Bc=Dc;function tn(i){return"pusherTransport"+(i?"TLS":"NonTLS")}function Oc(i){var a=st.getLocalStorage();if(a)try{var r=a[tn(i)];if(r)return JSON.parse(r)}catch{eo(i)}return null}function Gc(i,a,r){var h=st.getLocalStorage();if(h)try{h[tn(i)]=t_({timestamp:pe.now(),transport:a,latency:r})}catch{}}function eo(i){var a=st.getLocalStorage();if(a)try{delete a[tn(i)]}catch{}}var zc=(function(){function i(a,r){var h=r.delay;this.strategy=a,this.options={delay:h}}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(a,r){var h=this.strategy,y,S=new Fe(this.options.delay,function(){y=h.connect(a,r)});return{abort:function(){S.ensureAborted(),y&&y.abort()},forceMinPriority:function(X){a=X,y&&y.forceMinPriority(X)}}},i})(),vs=zc,Fc=(function(){function i(a,r,h){this.test=a,this.trueBranch=r,this.falseBranch=h}return i.prototype.isSupported=function(){var a=this.test()?this.trueBranch:this.falseBranch;return a.isSupported()},i.prototype.connect=function(a,r){var h=this.test()?this.trueBranch:this.falseBranch;return h.connect(a,r)},i})(),ss=Fc,Hc=(function(){function i(a){this.strategy=a}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(a,r){var h=this.strategy.connect(a,function(y,S){S&&h.abort(),r(y,S)});return h},i})(),Vc=Hc;function ns(i){return function(){return i.isSupported()}}var Wc=function(i,a,r){var h={};function y(mo,_d,sd,nd,od){var go=r(i,mo,_d,sd,nd,od);return h[mo]=go,go}var S=Object.assign({},a,{hostNonTLS:i.wsHost+":"+i.wsPort,hostTLS:i.wsHost+":"+i.wssPort,httpPath:i.wsPath}),X=Object.assign({},S,{useTLS:!0}),ce=Object.assign({},a,{hostNonTLS:i.httpHost+":"+i.httpPort,hostTLS:i.httpHost+":"+i.httpsPort,httpPath:i.httpPath}),Me={loop:!0,timeout:15e3,timeoutLimit:6e4},fe=new Bt({lives:2,minPingDelay:1e4,maxPingDelay:i.activityTimeout}),rt=new Bt({lives:2,minPingDelay:1e4,maxPingDelay:i.activityTimeout}),Lt=y("ws","ws",3,S,fe),l_=y("wss","ws",3,X,fe),Jl=y("sockjs","sockjs",1,ce),io=y("xhr_streaming","xhr_streaming",1,ce,rt),Ql=y("xdr_streaming","xdr_streaming",1,ce,rt),ro=y("xhr_polling","xhr_polling",1,ce),Kl=y("xdr_polling","xdr_polling",1,ce),co=new M_([Lt],Me),ed=new M_([l_],Me),td=new M_([Jl],Me),lo=new M_([new ss(ns(io),io,Ql)],Me),uo=new M_([new ss(ns(ro),ro,Kl)],Me),ho=new M_([new ss(ns(lo),new en([lo,new vs(uo,{delay:4e3})]),uo)],Me),nn=new ss(ns(ho),ho,td),on;return a.useTLS?on=new en([co,new vs(nn,{delay:2e3})]):on=new en([co,new vs(ed,{delay:2e3}),new vs(nn,{delay:5e3})]),new Bc(new Vc(new ss(ns(Lt),on,nn)),h,{ttl:18e5,timeline:a.timeline,useTLS:a.useTLS})},Uc=Wc,Yc=(function(){var i=this;i.timeline.info(i.buildTimelineMessage({transport:i.name+(i.options.useTLS?"s":"")})),i.hooks.isInitialized()?i.changeState("initialized"):i.hooks.file?(i.changeState("initializing"),A.load(i.hooks.file,{useTLS:i.options.useTLS},function(a,r){i.hooks.isInitialized()?(i.changeState("initialized"),r(!0)):(a&&i.onError(a),i.onClose(),r(!1))})):i.onClose()}),Xc={getRequest:function(i){var a=new window.XDomainRequest;return a.ontimeout=function(){i.emit("error",new D),i.close()},a.onerror=function(r){i.emit("error",r),i.close()},a.onprogress=function(){a.responseText&&a.responseText.length>0&&i.onChunk(200,a.responseText)},a.onload=function(){a.responseText&&a.responseText.length>0&&i.onChunk(200,a.responseText),i.emit("finished",200),i.close()},a},abortRequest:function(i){i.ontimeout=i.onerror=i.onprogress=i.onload=null,i.abort()}},Zc=Xc,Jc=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Qc=256*1024,Kc=(function(i){Jc(a,i);function a(r,h,y){var S=i.call(this)||this;return S.hooks=r,S.method=h,S.url=y,S}return a.prototype.start=function(r){var h=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){h.close()},st.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(r)},a.prototype.close=function(){this.unloader&&(st.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},a.prototype.onChunk=function(r,h){for(;;){var y=this.advanceBuffer(h);if(y)this.emit("chunk",{status:r,data:y});else break}this.isBufferTooLong(h)&&this.emit("buffer_too_long")},a.prototype.advanceBuffer=function(r){var h=r.slice(this.position),y=h.indexOf(`
|
|
20
|
+
${t?"":"cursor-pointer hover-opacity"}`,style:{...zj_,backgroundColor:o,opacity:t?.5:1,gap:"8px"},onClick:u=>s(),children:[n.jsx("i",{className:"fa fa-paperclip mr-1","aria-hidden":"true"}),_]}),Fj_=`${ft}/api/ImportCsv/csv`,Qn=`${ft}/api/Teacher`;const ca=e=>Ot.post(`${Fj_}/importClassReflection`,e),Hj_=(e,t)=>Ot.post(`${Qn}/adminImportStudentByTeacherId/${e}`,t),Vj_=e=>ue.post(`${Qn}/adminImportChunkUser`,e),Wj_=()=>ue.get(`${Qn}/download-template-file-user`);var qr=(e=>(e.Students="students",e.Subjects="subjects",e.Grades="grades",e.Attendances="attendances",e.ClassReflection="classReflection",e.Others="others",e.AllUser="allUser",e))(qr||{});const Uj_=[{text:"import_users",backgroundColor:"#0abde3",type:"allUser"}],Yj_=[{text:"import_class_reflection",backgroundColor:"#e74c3c",type:"classReflection"}],Xj_="CSV Import",pn="csvupload",la={teacherName:"",teacherEmail:"",studentIds:[],file:""},Zj_=()=>{const e=Ee.useDispatch(),t=Ee.useSelector(q=>q.common.isLoading),[_,o]=v.useState(null),[s,c]=v.useState(),[u,g]=v.useState([]),[d,p]=v.useState(la),[x,f]=v.useState(),[A,T]=v.useState([]),P=!0,[E,k]=v.useState(0),[C,N]=v.useState("");v.useEffect(()=>{document.title=Xj_},[]);const L=P?Uj_:Yj_,D=async()=>{e(ne(!0));try{const ee=await Wj_();var q=new Blob([ee.data.content],{type:"text/csv"});const xe=window.URL.createObjectURL(q);var K=document.createElement("a");K.href=xe,K.setAttribute("download",ee.data.nameFile),K.click(),e(J({type:"success",message:"Download successfully"}))}catch(ee){e(J({type:"danger",message:ee.message}))}e(ne(!1))},O=v.useCallback(async q=>{if(!_||!q)return;e(ne(!0));try{const Ne=new FormData;Ne.append("file",q,q.name);const et=_==="allUser"?kn.Admin:kn.Teacher,De=await mA_(Ne,et);if(De.data&&De.data.length>0){T(De.data),e(ne(!1));return}if(_=="allUser"){let Ue=(await q.text()).trim();const ie=Ue.split(`
|
|
21
|
+
`).map(pe=>pe.trim()),ge=ie.findIndex(pe=>pe.split(",").includes("First Name"));if(ge===0)throw new Error("Invalid CSV: Missing header row.");Ue=ie.slice(ge).join(`
|
|
22
|
+
`);const Te=bn.parse(Ue,{header:!0,skipEmptyLines:!0}),Pe=Te.meta.fields,Fe=Te.data;if(!Fe.length){e(ne(!1)),e(J({type:"danger",message:"The file has no data or some column names are misformed."}));return}const ht=10,Ye=[];for(let pe=0;pe<Fe.length;pe+=ht){const $t=Fe.slice(pe,pe+ht).map(Ht=>Object.values(Ht).map(It=>(It??"").toString().trim()));Pe&&$t.unshift(Pe),console.log({valuesOnly:$t}),Ye.push($t)}for(let pe=0;pe<Ye.length;pe++)await Vj_({chunks:Ye[pe]}),await new Promise($e=>setTimeout($e,500))}else P&&_=="classReflection"&&await ca(Ne);e(J({type:"success",message:"Import CSV successfully"}))}catch(Ne){console.error("❌ Upload failed",Ne),e(J({type:"danger",message:Ne.response?.data?.title||Ne.message}))}e(ne(!1));const K=document.getElementById(pn),ee=document.getElementById("import-student"),xe=document.getElementById("import-classReflection");K&&(K.value=""),ee&&(ee.value=""),xe&&(xe.value="")},[_]),R=async q=>{if(!E){e(J({type:"danger",message:"Select teacher before import csv"}));return}if(!_||!q)return;e(ne(!0));try{const ee=new FormData;ee.append("file",q,q.name),await Hj_(E,ee),e(J({type:"success",message:"Import CSV successfully"}))}catch(ee){e(J({type:"danger",message:ee.response?.data?.title||ee.message}))}e(ne(!1));const K=document.getElementById("teacherSelector");K&&(K.value="")},W=async q=>{if(!s||!s)return;e(ne(!0));try{const ee=new FormData;ee.append("file",s,s.name),ee.append("teacherName",q.teacherName),ee.append("teacherEmail",q.teacherEmail),q.studentIds.forEach(xe=>{ee.append("studentIds",xe)}),await ca(ee),e(J({type:"success",message:"Import CSV successfully"})),p(la)}catch(ee){e(J({type:"danger",message:ee.response?.data?.title||ee.message}))}e(ne(!1));const K=document.getElementById(pn);K&&(K.value="")},F=q=>{k(q.value)},Z=q=>{f(q),N(q?.name||"")},G=()=>{if(!x){e(J({type:"danger",message:"Select CSV to import"}));return}R(x)};return{isLoading:t,buttons:L,id:pn,setType:o,upload:O,initImportReflection:d,setInitImportReflection:p,onConfirm:W,CSVType:qr,dataFile:s,setDataFile:c,setArrStudent:g,arrStudent:u,isCheckDomainIBS:P,onChangeTeacher:F,uploadByTeacherId:R,setDataFileImportStudent:Z,onUpLoadStudentFile:G,defaultTeacher:E,fileName:C,onStudentSubmit:()=>{e(Yt({isOpen:!0,type:"warning",message:"Are you sure upload this file?",onConfirm:()=>{G()}}))},downloadTemplateUser:D,errorsValidate:A,setErrorsValidate:T}},Jj_=ct.object({teacherName:ct.string()?.trim().required(),teacherEmail:ct.string()?.trim().email("Invalid email").required(),studentIds:ct.array().required().test("test students","Please choose student",function(){return!!this.parent.studentIds&&!!this.parent.studentIds.length}),file:ct.string()?.trim().required()}),Qj_=()=>{const{initImportReflection:e,onConfirm:t,isLoading:_,setType:o,id:s,CSVType:c,dataFile:u,setDataFile:g,setArrStudent:d,buttons:p,upload:x,isCheckDomainIBS:f,downloadTemplateUser:A,errorsValidate:T,setErrorsValidate:P}=Zj_(),{t:E}=at.useTranslation();return n.jsx("div",{className:"animated fadeIn pt-3",children:f?n.jsxs(n.Fragment,{children:[n.jsx(w.Input,{className:"d-none",type:"file",id:"import-user",onChange:k=>x(k.target.files[0]),accept:"text/csv"}),n.jsx(w.Input,{className:"d-none",type:"file",id:"import-classReflection",onChange:k=>x(k.target.files[0]),accept:"text/csv"}),n.jsx("div",{className:"class-reflection",children:n.jsx(d_.Formik,{initialValues:e,enableReinitialize:!0,validationSchema:Jj_,onSubmit:(k,C)=>{t(k),g(""),d([]),C.resetForm()},children:k=>{const{touched:C,errors:N}=k;return n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Input,{className:"d-none",type:"file",id:s,onChange:L=>{g(L.target.files[0]),k.setFieldValue("file","imported");const D=document.getElementById(s);D&&(D.value="")},accept:"text/csv"}),n.jsx(w.Col,{md:6,className:"mb-2 d-flex mt-5",children:n.jsxs(w.Row,{className:"w-100 flex-column",children:[n.jsxs(w.Col,{md:12,className:"",children:[n.jsx(zt,{text:E("import_class_reflection")}),n.jsx(As,{htmlFor:"import-classReflection",text:E("import_class_reflection"),isDisabled:_,backgroundColor:"#e74c3c",onClick:()=>{o(c.ClassReflection)}},"Import class reflections"),!!u&&n.jsx("p",{style:{color:"#007bff",fontStyle:"italic",marginTop:"5px"},children:u.name})]}),!u&&n.jsx(w.Col,{md:12,className:"mb-2",children:C.file&&N.file&&n.jsx(Nt,{text:N.file})})]})}),n.jsx(w.Col,{md:6,className:"mb-2",children:n.jsxs(w.Row,{className:"flex-column",children:[n.jsx(w.Col,{md:12,className:"mb-2 text-right",style:{textAlign:"right"},children:n.jsx(w.Button,{role:"button",color:"primary",onClick:()=>A(),children:n.jsxs("p",{className:"d-flex align-items-center mb-0",children:[E("download_template")," ",n.jsx(Lo,{size:20,className:"ml-2"})]})})}),n.jsxs(w.Col,{md:12,className:"mb-2",children:[n.jsx(zt,{text:E("import_users")}),p.map(L=>n.jsx(As,{htmlFor:"import-user",text:L.text,isDisabled:_,backgroundColor:L.backgroundColor,onClick:()=>o(L.type)},L.text))]}),T?.length>0&&T.map((L,D)=>n.jsx(Nt,{text:L},D))]})})]})}})})]}):n.jsx(n.Fragment,{children:n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:12,className:"mt-2 mb-2 text-left",children:n.jsx(w.Button,{role:"button",color:"primary",onClick:()=>A(),children:n.jsxs("p",{className:"d-flex align-items-center mb-0",children:[E("download_template")," ",n.jsx(Lo,{size:20,className:"ml-2"})]})})}),n.jsxs(w.Col,{md:6,className:"mb-3",children:[n.jsx(w.Input,{id:"import-user",className:"d-none",type:"file",onChange:k=>x(k.target.files[0]),accept:"text/csv"}),n.jsx(zt,{text:E("import_users")}),n.jsx(As,{htmlFor:"import-user",text:E("import_users"),isDisabled:_,backgroundColor:"#0abde3",onClick:()=>{o(c.AllUser),T.length>0&&P([])}},"import-users")]}),T.length>0&&T.map((k,C)=>n.jsx(Nt,{text:k},C)),n.jsxs(w.Col,{md:6,className:"mb-3",children:[n.jsx(w.Input,{className:"d-none",type:"file",id:s,onChange:k=>x(k.target.files[0]),accept:"text/csv"}),p.map(k=>n.jsxs(n.Fragment,{children:[n.jsx(zt,{text:E(k.text)}),n.jsx(As,{htmlFor:s,text:E(k.text),isDisabled:_,backgroundColor:k.backgroundColor,onClick:()=>o(k.type)},k.text)]}))]})]})})})},Kj_=[{path:"/admin/users/user-list",title:"user_list",component:Qi},{path:"/admin/users/assign-student",title:"assign_student",component:qj_},{path:"/admin/users/user-deleted",title:"user_deleted",component:Gj_},{path:"/admin/users/import-csv",title:"csv_import",component:Qj_}],eN_=()=>n.jsx(Ki,{tabs:Kj_});function tN_(e){return Rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5a2.5 2.5 0 015 0v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5a2.5 2.5 0 005 0V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}]})(e)}const _N_=20097152,Rr=({fileName:e,maxWidth:t,maxHeight:_,setFile:o,canDelete:s,onDelete:c,isCheckFeedBack:u,onAddImage:g})=>{const d=Ee.useDispatch(),{t:p}=at.useTranslation(),[x,f]=v.useState(""),A={maxWidth:t||"100%",maxHeight:_||"100%"},T=x||o_(e),P=k=>{k.preventDefault();let C=new FileReader,N=k.target.files[0];if(N.size>_N_){d(J({type:"danger",message:"File can't be larger than 2MB"}));return}C.onloadend=()=>{o(N),f(C.result)},N&&C.readAsDataURL(N),g&&g()},E=x||e?n.jsx("img",{style:A,src:T,alt:"image"}):null;return n.jsxs("div",{className:"mb-2",children:[n.jsxs(w.Form,{className:"mb-2",children:[n.jsx(w.Input,{className:"d-none",type:"file",id:"uploadFile",onChange:P,accept:"image/*"}),n.jsxs("div",{className:"d-flex align-items-center",children:[n.jsx(w.Label,{htmlFor:"uploadFile",role:"button",tabIndex:0,className:V["input-file-label"],children:u==!0?n.jsx(tN_,{}):n.jsxs(v.Fragment,{children:[n.jsx("i",{className:"fa fa-paperclip mr-1","aria-hidden":"true"}),x||e?"Change file":p("choose_file")]})}),s&&E&&n.jsx(w.Button,{size:"sm",color:"danger",className:`${V["delete-avatar-button"]} ml-2 d-flex align-items-center justify-content-center`,onClick:()=>{f(null),c&&c()},children:n.jsx(Ni,{})})]})]}),E]})},sN_={id:"",firstName:"",lastName:"",email:"",dateOfBirth:"",roles:[],isActive:!0,profileImageFileName:"",teacherUserId:[]},da="/admin/users/user-list",nN_="User detail",oN_=e=>{const t=Ee.useDispatch(),_=Ct.useNavigate(),[o,s]=v.useState(sN_),[c,u]=v.useState(!1),[g,d]=v.useState([]),[p,x]=v.useState(null),[f,A]=v.useState(!1),[T,P]=v.useState({isHasAssistantData:!1,isHasCounselorData:!1,isHasEduTeacherData:!1,isHasSecondaryTeacherData:!1,isHasTeacherData:!1}),E=async()=>{localStorage.setItem(window.location.href,"true"),A(!0)},[k,C]=v.useState([]),N=()=>{u(!c)};v.useEffect(()=>{document.title=nN_,A(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},[]),v.useEffect(()=>{e&&(L(),D()),!e&&O()},[e]);const L=v.useCallback(async()=>{t(ne(!0));try{const q=await pS_(e);P(q.data)}catch(q){t(J({type:"danger",message:q.response?.data?.title||q.message}))}t(ne(!1))},[e]),D=v.useCallback(async()=>{t(ne(!0));try{const q=await To(e);s({...q.data,dateOfBirth:v_.format(new Date(q.data.dateOfBirth),qn),roles:q.data.roles.map(K=>K!="EduTeacher"?K:w_.EDUTEACHER)}),C(q?.data?.roles??[]),document.title=q.data?.fullName}catch(q){t(J({type:"danger",message:q.response?.data?.title||q.message}))}t(ne(!1))},[e]),O=async()=>{try{const q=await Fi({sortBy:"Email"});q.data&&d(q.data.map?.(K=>({label:K.email,value:K.id}))||[])}catch(q){t(J({type:"danger",message:q.response?.data?.title||q.message}))}},R=v.useCallback(q=>{_(q&&typeof q=="string"?da+`?query=${q}`:da)},[]),W=v.useCallback(async q=>{t(ne(!0));try{if(p){const xe=new FormData,{name:Ne}=p;xe.append("file",p,Ne);const De=(await pI_(xe))?.data?.key;q.profileImageFileName=De}const K=e?_S_:tS_;!e&&delete q.id,q.dateOfBirth===""&&delete q.dateOfBirth;const ee=await K(q);ee&&To(ee.data.id).then(xe=>{R(xe.data.fullName)}),e||alert("Password of "+ee.data.email+` is "${ee.data.password}"`),ee.data.id&&await $S_(ee.data.id,q.gradeLevel),t(J({type:"success",message:`${e?"Update":"Create"} user successfully`}))}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message}))}t(ne(!1))},[e,p]),F=q=>["Student","Parent","EduTeacher"].includes(q),Z=async q=>{t(ne(!0));try{await oS_(q),t(J({type:"success",message:"Change password successfully"}))}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message}))}t(ne(!1))},G=v.useCallback(async q=>{t(ne(!0));try{await aS_(q),t(J({type:"success",message:"Send forgot password link successfully"}))}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message||"Error occured"}))}t(ne(!1))},[]),H=v.useCallback(async q=>{t(ne(!0));try{const ee=await dS_({userId:q});if(ee.data){const xe=`${o.firstName} ${o.lastName}`;alert(`Password of ${xe} is ${ee.data}`),t(J({type:"success",message:"Update user password successfully"}))}}catch(K){t(J({type:"danger",message:K.response?.data?.title||K.message}))}t(ne(!1))},[o]);return{userDetail:o,backToList:R,confirmData:W,file:p,setFile:x,edited:f,setEdited:A,setEditedTrue:E,confirmChangePassword:Z,forgotPasswordRequest:G,currentRoles:k,handleDisableRoles:F,handleResetPassword:H,teacherOptions:g,openModel:c,handleToggleModel:N,userHasData:T}},aN_=ct.object({firstName:ct.string().required("First name is required"),lastName:ct.string().required("Last name is required"),email:ct.string().email("Email is invalid").required("Email is required"),roles:ct.array().of(ct.string()).min(1,"Role is required")}),iN_=ct.object({oldPassword:ct.string().required("Current password is required"),newPassword:ct.string().required("New password is required"),confirmedNewPassword:ct.string().required("Confirm password is required")}),rN_={currentPage:1,pageSize:100},cN_=(e,t)=>{const[_,o]=v.useState([]),[s,c]=v.useState(!1),[u,g]=v.useState(rN_),[d,p]=v.useState(),x=Ee.useDispatch(),f=v.useCallback(async()=>{c(!0);try{const N=(await rS_(u)).data?.items||[];o(T(N))}catch{x(J({type:"error",message:"Cannot get roster users"}))}c(!1)},[JSON.stringify(u)]),A=v.useCallback(async()=>{if(!t)return;const C=_.find(N=>N.value===t);if(C){p(C);return}c(!0);try{const L=(await cS_(t)).data;p({label:P(L),value:L.sourcedId})}catch(N){console.log("err:",N)}c(!1)},[t]),T=C=>C.map(N=>({label:P(N),value:N.sourcedId})),P=C=>{const N=[],{givenName:L,middleName:D,familyName:O,email:R,role:W}=C,F=[];return L&&F.push(L),D&&F.push(D),O&&F.push(O),F.length&&N.push(F.join(" ")),R&&N.push(R),`${N.join(" - ")}${W?` (${W})`:""}`},E=C=>{g(N=>({...N,searchString:C}))},k=v.useCallback(C=>{g({...u,...C})},[JSON.stringify(u)]);return v.useEffect(()=>{u.roles?.length&&f()},[JSON.stringify(u)]),v.useEffect(()=>{k({roles:e})},[JSON.stringify(e)]),v.useEffect(()=>{A()},[t]),{users:_,isLoading:s,user:d,handleInputChange:E}},lN_=({value:e,roles:t,onChange:_})=>{const{users:o,isLoading:s,user:c,handleInputChange:u}=cN_(t,e);return n.jsx(Dt,{options:o,value:c,placeholder:"Select user",onChange:_,isLoading:s,onInputChange:u})},dN_="create_user",uN_="edit_user",hN_="change_password",mN_=()=>{const{id:e}=Ct.useParams(),t=Ee.useSelector(G=>G.common.user),{t:_}=at.useTranslation(),{userDetail:o,backToList:s,confirmData:c,file:u,setFile:g,edited:d,setEdited:p,setEditedTrue:x,confirmChangePassword:f,forgotPasswordRequest:A,currentRoles:T,handleDisableRoles:P,handleResetPassword:E,teacherOptions:k,openModel:C,handleToggleModel:N,userHasData:L}=oN_(e),D={oldPassword:"",newPassword:"",confirmedNewPassword:""},O=_(e?`${uN_}`:`${dN_}`),R=_(e?"update":"create"),W=()=>{var G=window.location.origin+"/api/ExportDataUser/"+e;window.open(G)},F=async G=>{var H={email:G};A(H)},Z=()=>{if(!e)return;confirm("You want to reset this user's password")==!0&&E(e)};return n.jsx(d_.Formik,{initialValues:o,enableReinitialize:!0,validationSchema:aN_,onSubmit:G=>{c({...G,roles:G.roles.map(H=>H!=w_.EDUTEACHER?H:"EduTeacher")}),p(!1),localStorage.getItem(window.location.href)&&localStorage.removeItem(window.location.href)},children:G=>{const{values:H,touched:q,errors:K,setFieldValue:ee,handleChange:xe,handleBlur:Ne,handleSubmit:et}=G,De=v.useCallback(le=>{if(H.roles.includes(le)){ee("roles",H.roles.filter(Ue=>Ue!==le));return}if([w_.STUDENT,w_.PARENT].includes(le)){ee("roles",[le]);return}if(H.roles.includes(w_.STUDENT)&&w_.STUDENT!=le){ee("roles",[le]);return}ee("roles",[...H.roles,le])},[H.roles]);return n.jsxs("div",{className:`animated fadeIn detail-buttons-padding ${Ps<=767?V["p-0-12"]:""}`,children:[n.jsx(Us,{when:d}),n.jsx("h5",{className:"mb-2",children:O}),n.jsxs(w.Row,{className:"pt-2",children:[n.jsxs(w.Col,{md:8,children:[n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("first_name"),className:"text-capitalize"}),n.jsx(w.Input,{name:"firstName",value:H.firstName,onChange:le=>{xe(le),x()},onBlur:Ne("subject"),placeholder:_("first_name"),className:V["input-name"]}),q.firstName&&K.firstName&&n.jsx(Nt,{text:K.firstName})]})}),n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(w.Label,{children:_("date_of_birth")}),n.jsx("div",{children:n.jsx(dd,{value:H.dateOfBirth,todayButton:"Today",peekNextMonth:!0,showMonthDropdown:!0,showYearDropdown:!0,dropdownMode:"select",selected:H.dateOfBirth?xn(new Date(H.dateOfBirth)):null,onChange:le=>{G.setFieldValue("dateOfBirth",v_.format(le,qn)),x()},placeholderText:_("date_of_birth"),customInput:n.jsx(w.Input,{type:"text",style:{width:"maxContent"},placeholder:_("date_of_birth")})})})]})})]}),n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("last_name"),className:"text-capitalize"}),n.jsx(w.Input,{name:"lastName",value:H.lastName,onChange:le=>{xe(le),x()},onBlur:Ne("lastName"),placeholder:_("last_name"),className:V["input-name"]}),q.lastName&&K.lastName&&n.jsx(Nt,{text:K.lastName})]})}),n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("roles")}),n.jsx(w.Row,{children:n.jsx(w.Col,{md:12,className:"d-flex flex-wrap align-items-center",children:M3_.map(le=>n.jsx("div",{className:"mr-3",children:n.jsx(w.Input,{type:"checkbox",id:`role-checkbox-${le}`,label:le==="SecondaryTeacher"?"SupportTeacher":`${le}`,checked:H.roles.includes(le),onChange:()=>{e&&(L.isHasTeacherData&&le==="Teacher"||L.isHasAssistantData&&le==="Assistant"||L.isHasCounselorData&&le==="Counselor"||L.isHasSecondaryTeacherData&&le==="SecondaryTeacher"||le=="Student"&&(L.isHasAssistantData||L.isHasCounselorData||L.isHasSecondaryTeacherData||L.isHasTeacherData))?alert("Please switch data before removing the role"):(De(le),x())},disabled:T.includes("Parent")||T.includes("Student")&&e?T.concat(["Student","Parent"]).includes(le)||T.every(P):["Parent"].includes(le)})},le))})}),q.roles&&K.roles&&n.jsx(Nt,{text:K.roles})]})})]}),n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("email")}),n.jsx(w.Input,{name:"email",value:H.email,onChange:le=>{xe(le),x()},onBlur:Ne("email"),placeholder:_("email")}),q.email&&K.email&&n.jsx(Nt,{text:K.email})]})}),n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("status")}),n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:3,children:n.jsx(w.Input,{id:"role-checkbox-active",type:"radio",name:"active",label:_("active"),checked:!!H&&!!H.isActive,onChange:()=>{ee("isActive",!0),x()}})}),n.jsx(w.Col,{md:3,children:n.jsx(w.Input,{id:"role-checkbox-inActive",type:"radio",name:"active",label:_("inactive"),checked:!!H&&!H.isActive,onChange:()=>ee("isActive",!1)})})]})]})})]}),H.roles.includes(w_.STUDENT)&&n.jsx(w.Row,{children:n.jsx(w.Col,{md:6,children:n.jsxs(w.FormGroup,{children:[n.jsx(w.Label,{children:"Grade Level"}),n.jsx(Dt,{options:No,value:No.find(le=>le.value==H.gradeLevel),placeholder:"Grade Level",onChange:le=>{ee("gradeLevel",le.value)}})]})})}),!!e&&n.jsxs(w.Row,{children:[n.jsx(w.Col,{md:6,children:(!H.roles.includes("Admin")||H.roles.length>1)&&!!H.roles.length&&n.jsxs(w.FormGroup,{children:[n.jsx(w.Label,{children:"Map from Roster"}),n.jsx(lN_,{roles:H.roles,value:H.sourcedId,onChange:le=>ee("sourcedId",le.value)})]})}),n.jsxs(w.Col,{md:6,children:[n.jsx(w.Button,{color:"primary",className:"w-100",onClick:()=>{F(H.email||"")},children:_("send_forgot_password_link")}),n.jsx(w.Button,{color:"primary",className:"w-100 mt-3",onClick:()=>Z(),children:_("reset_password")}),n.jsx(w.Button,{color:"success",className:"w-100 mt-3",onClick:()=>{W()},children:_("download_user_data")})]})]})]}),n.jsx(w.Col,{md:4,children:n.jsx(w.Row,{children:n.jsxs(w.Col,{md:8,children:[n.jsx(Rr,{setFile:g,fileName:H.profileImageFileName,onAddImage:x,canDelete:!0,onDelete:()=>{g(null),ee("profileImageFileName",""),x()}}),!u&&!H.profileImageFileName&&n.jsx("img",{src:G3_,style:{maxWidth:"100%"}})]})})})]}),t.id===e?n.jsxs("div",{children:[n.jsx("h5",{className:"mt-3",children:_(`${hN_}`)}),n.jsx(d_.Formik,{initialValues:D,enableReinitialize:!0,validationSchema:iN_,onSubmit:le=>{f(le)},children:le=>{const{values:Ue,touched:ie,errors:ge,handleChange:Te,handleSubmit:Pe}=le;return n.jsxs(w.Row,{className:"pt-2 pb-5",children:[n.jsx(w.Col,{md:7,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("current_password"),className:"text-capitalize"}),n.jsx(w.Input,{name:"oldPassword",type:"password",value:Ue.oldPassword,onChange:Fe=>{Te(Fe),x()},onBlur:Ne("subject"),placeholder:_("current_password"),className:V["input-name"]}),ie.oldPassword&&ge.oldPassword&&n.jsx(Nt,{text:ge.oldPassword})]})}),n.jsx(w.Col,{md:7,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("new_password"),className:"text-capitalize"}),n.jsx(w.Input,{name:"newPassword",type:"password",value:Ue.newPassword,onChange:Fe=>{Te(Fe),x()},onBlur:Ne("subject"),placeholder:_("new_password"),className:V["input-name"]}),ie.newPassword&&ge.newPassword&&n.jsx(Nt,{text:ge.newPassword})]})}),n.jsx(w.Col,{md:7,children:n.jsxs(w.FormGroup,{children:[n.jsx(zt,{text:_("confirm_password"),className:"text-capitalize"}),n.jsx(w.Input,{name:"confirmedNewPassword",type:"password",value:Ue.confirmedNewPassword,onChange:Fe=>{Te(Fe),x()},onBlur:Ne("subject"),placeholder:_("confirm_password"),className:V["input-name"]}),ie.confirmedNewPassword&&ge.confirmedNewPassword&&n.jsx(Nt,{text:ge.confirmedNewPassword})]})}),n.jsx(w.Col,{md:12,children:n.jsx(w.Button,{color:"primary",size:"sm",className:"px-4 pl-1 mr-2 ml-3",onClick:()=>Pe(),children:_("save")})})]})}})]}):null,n.jsx(Hn,{confirmText:R,onConfirm:H.roles.includes(w_.STUDENT)&&!e?N:et,onCancel:s}),n.jsxs(w.Modal,{centered:!0,isOpen:C,toggle:()=>N(),children:[n.jsx(w.ModalHeader,{children:"Assign Teacher"}),n.jsx(w.ModalBody,{children:n.jsx(J_,{isMulti:!0,value:k.filter(le=>H.teacherUserId?.includes(le.value))||null,options:k,onChange:le=>ee("teacherUserId",le.map(Ue=>Ue.value)),placeholder:_("select_teacher"),className:"flex-grow-1 mb-3"})}),n.jsxs(w.ModalFooter,{className:"text-right",children:[n.jsx(w.Button,{onClick:()=>N(),children:"Cancel"}),n.jsx(w.Button,{disabled:!H.teacherUserId,color:"primary",onClick:()=>{et()},children:"Assign"})]})]})]})}})},gN_={minWidth:"100vw",minHeight:"100vh",position:"fixed",top:0,left:0,zIndex:999999999,backgroundColor:"rgba(0, 0, 0, 0.4)",display:"flex",justifyContent:"center",alignItems:"center"},pN_=()=>{const e=Ee.useSelector(t=>t.common.isLoading);return localStorage.setItem("LAST_TIME_REQUETST",new Date().toISOString().replace("T"," ").split(".")[0]),e?n.jsx("div",{style:gN_,children:n.jsx("div",{className:"spinner-border text-secondary",role:"status",children:n.jsx("span",{className:"sr-only",children:"Loading..."})})}):null},yN_=()=>{const{pathname:e}=Ct.useLocation();return v.useEffect(()=>{window.scrollTo(0,0)},[e]),null},ua=e=>{switch(e){case"danger":return{header:"Error",color:$s.DANGER};case"warning":return{header:"Warning",color:$s.WARNING};case"success":return{header:"Success",color:$s.SUCCESS};default:return{header:"Infomation",color:$s.INFO}}},fN_=()=>{const e=Ee.useDispatch(),t=Ee.useSelector(x=>x.common.modal),{t:_}=at.useTranslation(),{isOpen:o,type:s,message:c,onConfirm:u}=t,g=v.useCallback(()=>{e(Yt({isOpen:!o,type:s}))},[o]),d={backgroundColor:ua(s).color},p=()=>{u&&u(),g()};return n.jsxs(w.Modal,{isOpen:o,toggle:g,fade:!0,zIndex:1202,children:[n.jsx(w.ModalHeader,{toggle:g,style:d,children:ua(s).header}),n.jsx(w.ModalBody,{children:c}),n.jsxs(w.ModalFooter,{children:[u&&n.jsx(w.Button,{color:s,onClick:p,children:_("confirm")}),n.jsx(w.Button,{color:"secondary",onClick:g,children:_("cancel")})]})]})},wN_={paddingBottom:"16px"},ha={fontSize:"1.5rem",textAlign:"center"},vN_=({header:e,rootHeader:t})=>n.jsx("div",{style:wN_,children:n.jsxs(w.Row,{children:[t&&n.jsx(w.Col,{md:4,children:n.jsx("span",{className:"text-muted",style:ha,children:t})}),n.jsx(w.Col,{md:4,children:n.jsx("span",{style:ha,children:e})})]})}),bN_=13,yn=15,$N_=()=>{const e=Ct.useNavigate(),[t,_]=v.useState(!1),[o,s]=v.useState({minutes:0,timeLogout:""}),c=()=>{try{return localStorage?.getItem?.("LAST_ACTIVITY_TIME")??null}catch{return null}},u=()=>{localStorage.removeItem(jt),sessionStorage.removeItem(jt),localStorage.removeItem("ROLES"),localStorage.removeItem("LAST_ACTIVITY_TIME"),_(!1),e("/login",{replace:!0})},g=()=>{if(!j_())return;const x=c();if(!x){localStorage?.setItem?.("LAST_ACTIVITY_TIME",new Date().toISOString());return}const f=new Date(x),A=new Date,T=v_.differenceInMinutes(A,f);if(T>=yn){u();return}const P=ys(v_.format(v_.addMinutes(A,yn-T),"yyyy-MM-dd HH:mm"),"HH:mm");T>=bN_&&(s({minutes:T,timeLogout:P}),_(!0))};v.useEffect(()=>{const p=setInterval(()=>{g()},6e4);return()=>clearInterval(p)},[]);const d=()=>{_(!t)};return n.jsxs(w.Modal,{isOpen:t,toggle:d,size:"xs",zIndex:1201,children:[n.jsx(w.ModalHeader,{toggle:d,children:"Notification Logout"}),n.jsx(w.ModalBody,{children:`Are you still here? You have had no action for ${o?.minutes} mins.
|
|
23
|
+
Your account could be log out after ${yn-o?.minutes} mins at ${o?.timeLogout} if you don't action.`}),n.jsx(w.ModalFooter,{className:"text-right",children:n.jsx(w.Button,{color:"primary",onClick:d,children:"Confirm"})})]})},kN_=({onClick:e,className:t})=>n.jsx("div",{className:`d-inline text-center cursor-pointer hover-opacity ${t}`,title:"Edit",onClick:e,children:n.jsx(qC_,{})}),xN_=()=>{const e=Ee.useSelector(_=>_?.common?.isSandboxMode),t=location.pathname==="/login";return e&&n.jsxs("div",{className:`sandbox-alert ${t?"sandbox-alert--login":""} d-flex justify-content-center align-items-center p-3`,children:[n.jsx("div",{children:"Sandbox Mode:"})," ",n.jsx("div",{className:"ml-2 green-circle"})]})},CN_={DropdownIndicator:null},IN_=e=>{const{inputValue:t,value:_,placeholder:o,handleChange:s,handleInputChange:c,handleKeyDown:u}=e;return n.jsx(Pr,{components:CN_,placeholder:o||"Type something to create option",isClearable:!0,isMulti:!0,menuIsOpen:!1,value:_,inputValue:t,onChange:s,onInputChange:c,onKeyDown:u})},SN_=e=>{const{id:t}=e,_=t&&$n.find(o=>o.value===t)||null;return n.jsx(u_,{options:$n,value:_,...e})},AN_=`${ft}/api/SuggestionCategory`,EN_=()=>ue.get(AN_),TN_=e=>{const[t,_]=v.useState([]);v.useEffect(()=>{o()},[]);const o=async()=>{try{const g=await EN_();_(g.data.items)}catch(g){console.error(g)}},{id:s}=e,c=t.map(g=>({id:g.id,value:g.id,label:g.name})),u=s&&c.find(g=>g.value===s)||null;return n.jsx(u_,{options:c,value:u,...e})},Lr=`${ft}/api/QuestionCategory`,jN_=e=>ue.get(Lr,{params:{parentCategoryId:e}}),NN_=e=>ue.get(Lr,{params:e}),PN_=e=>{const[t,_]=v.useState([]),{id:o,parentCategoryId:s}=e;v.useEffect(()=>{c()},[]);const c=async()=>{try{const d=await jN_(s);_(d.data.items)}catch(d){console.error(d)}},u=t.map(d=>({id:d.id,value:d.id,label:d.name})),g=o&&u.find(d=>d.value===o)||null;return n.jsx(u_,{options:u,value:g,...e})},qN_=()=>{const[e,t]=v.useState([]),_=Ee.useDispatch(),o=v.useCallback(async()=>{_(ne(!0));try{const c=await NN_({...Pn,pageSize:-1}),u=s(c.data.items);t(u)}catch(c){_(J({type:"danger",message:c.response?.data?.title||c.message}))}_(ne(!1))},[]),s=(c,u,g)=>{let d=[];return u?(d.push(u),g?.forEach(p=>{const x=c.filter(A=>A.parentCategoryId?.includes(p.id)),f={...p,label:p.name,value:p.id,level:u.level?u.level+1:1,isDisabled:!1};d=d.concat(s(c,f,x))})):c.filter(x=>!x.parentCategoryId).forEach(x=>{const f=c.filter(T=>T.parentCategoryId?.includes(x.id)),A={...x,label:x.name,value:x.id,level:0,isDisabled:!1};d=d.concat(s(c,A,f))}),d};return v.useEffect(()=>{o()},[]),{categories:e}},RN_={control:e=>({...e,backgroundColor:"white"}),option:(e,{data:t})=>({...e,fontWeight:t?.level?"normal":"bold",paddingLeft:`${(t?.level||0)+1}rem`,paddingRight:"1rem",cursor:t.isDisabled?"not-allowed":"pointer",color:"var(--color)","&:first-letter":{textTransform:"uppercase"}})},LN_=({value:e,...t})=>{const{categories:_}=qN_(),{t:o}=at.useTranslation(),s=e&&_.find(c=>c.value===e)||null;return n.jsx(u_,{value:s,options:_,styles:RN_,placeholder:o("select_category"),...t})},MN_=e=>{const{id:t}=e,_=t&&po.find(o=>o.value===t)||null;return n.jsx(u_,{options:po,value:_,...e,menuPlacement:"top"})},ma="primary",ga="secondary",DN_=({textLeft:e,textRight:t,isLeft:_,clickLeft:o,clickRight:s})=>n.jsxs("div",{className:"w-100 d-flex",children:[n.jsx(w.Button,{size:"sm",color:_?ma:ga,onClick:o,className:"toggle-btn toggle-btn-left flex-grow-1",children:e}),n.jsx(w.Button,{size:"sm",color:_?ga:ma,onClick:s,className:"toggle-btn toggle-btn-right flex-grow-1",children:t})]}),BN_=({icon:e,accept:t="*",callback:_})=>{const o=async s=>{try{const c=new FormData,u=s.target.files[0],g=u.name;c.append("file",u,g),c.append("customKey","conversation");const d=await Li(c),{name:p,key:x,type:f}=d.data;_(p,o_(x),f)}catch(c){console.error(c.message)}};return n.jsxs(v.Fragment,{children:[n.jsx(w.Input,{className:"d-none",type:"file",id:"upload-file-btn",onChange:o,accept:t}),n.jsx(w.Label,{htmlFor:"upload-file-btn",role:"button",children:e})]})},ON_=[{value:!0,label:"Read"},{value:!1,label:"Unread"}],GN_=({value:e,onChange:t})=>{const _={menu:o=>({...o,zIndex:10})};return n.jsx(Dt,{defaultValue:e,options:ON_,onChange:t,styles:_})},zN_=v.memo(GN_);function FN_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fn={exports:{}};var pa;function HN_(){return pa||(pa=1,(function(e,t){(function(o,s){e.exports=s()})(window,function(){return(function(_){var o={};function s(c){if(o[c])return o[c].exports;var u=o[c]={i:c,l:!1,exports:{}};return _[c].call(u.exports,u,u.exports,s),u.l=!0,u.exports}return s.m=_,s.c=o,s.d=function(c,u,g){s.o(c,u)||Object.defineProperty(c,u,{enumerable:!0,get:g})},s.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},s.t=function(c,u){if(u&1&&(c=s(c)),u&8||u&4&&typeof c=="object"&&c&&c.__esModule)return c;var g=Object.create(null);if(s.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:c}),u&2&&typeof c!="string")for(var d in c)s.d(g,d,(function(p){return c[p]}).bind(null,d));return g},s.n=function(c){var u=c&&c.__esModule?function(){return c.default}:function(){return c};return s.d(u,"a",u),u},s.o=function(c,u){return Object.prototype.hasOwnProperty.call(c,u)},s.p="",s(s.s=3)})([(function(_,o,s){var c=this&&this.__extends||(function(){var E=function(k,C){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,L){N.__proto__=L}||function(N,L){for(var D in L)L.hasOwnProperty(D)&&(N[D]=L[D])},E(k,C)};return function(k,C){E(k,C);function N(){this.constructor=k}k.prototype=C===null?Object.create(C):(N.prototype=C.prototype,new N)}})();Object.defineProperty(o,"__esModule",{value:!0});var u=256,g=(function(){function E(k){k===void 0&&(k="="),this._paddingCharacter=k}return E.prototype.encodedLength=function(k){return this._paddingCharacter?(k+2)/3*4|0:(k*8+5)/6|0},E.prototype.encode=function(k){for(var C="",N=0;N<k.length-2;N+=3){var L=k[N]<<16|k[N+1]<<8|k[N+2];C+=this._encodeByte(L>>>18&63),C+=this._encodeByte(L>>>12&63),C+=this._encodeByte(L>>>6&63),C+=this._encodeByte(L>>>0&63)}var D=k.length-N;if(D>0){var L=k[N]<<16|(D===2?k[N+1]<<8:0);C+=this._encodeByte(L>>>18&63),C+=this._encodeByte(L>>>12&63),D===2?C+=this._encodeByte(L>>>6&63):C+=this._paddingCharacter||"",C+=this._paddingCharacter||""}return C},E.prototype.maxDecodedLength=function(k){return this._paddingCharacter?k/4*3|0:(k*6+7)/8|0},E.prototype.decodedLength=function(k){return this.maxDecodedLength(k.length-this._getPaddingLength(k))},E.prototype.decode=function(k){if(k.length===0)return new Uint8Array(0);for(var C=this._getPaddingLength(k),N=k.length-C,L=new Uint8Array(this.maxDecodedLength(N)),D=0,O=0,R=0,W=0,F=0,Z=0,G=0;O<N-4;O+=4)W=this._decodeChar(k.charCodeAt(O+0)),F=this._decodeChar(k.charCodeAt(O+1)),Z=this._decodeChar(k.charCodeAt(O+2)),G=this._decodeChar(k.charCodeAt(O+3)),L[D++]=W<<2|F>>>4,L[D++]=F<<4|Z>>>2,L[D++]=Z<<6|G,R|=W&u,R|=F&u,R|=Z&u,R|=G&u;if(O<N-1&&(W=this._decodeChar(k.charCodeAt(O)),F=this._decodeChar(k.charCodeAt(O+1)),L[D++]=W<<2|F>>>4,R|=W&u,R|=F&u),O<N-2&&(Z=this._decodeChar(k.charCodeAt(O+2)),L[D++]=F<<4|Z>>>2,R|=Z&u),O<N-3&&(G=this._decodeChar(k.charCodeAt(O+3)),L[D++]=Z<<6|G,R|=G&u),R!==0)throw new Error("Base64Coder: incorrect characters for decoding");return L},E.prototype._encodeByte=function(k){var C=k;return C+=65,C+=25-k>>>8&6,C+=51-k>>>8&-75,C+=61-k>>>8&-15,C+=62-k>>>8&3,String.fromCharCode(C)},E.prototype._decodeChar=function(k){var C=u;return C+=(42-k&k-44)>>>8&-u+k-43+62,C+=(46-k&k-48)>>>8&-u+k-47+63,C+=(47-k&k-58)>>>8&-u+k-48+52,C+=(64-k&k-91)>>>8&-u+k-65+0,C+=(96-k&k-123)>>>8&-u+k-97+26,C},E.prototype._getPaddingLength=function(k){var C=0;if(this._paddingCharacter){for(var N=k.length-1;N>=0&&k[N]===this._paddingCharacter;N--)C++;if(k.length<4||C>2)throw new Error("Base64Coder: incorrect padding")}return C},E})();o.Coder=g;var d=new g;function p(E){return d.encode(E)}o.encode=p;function x(E){return d.decode(E)}o.decode=x;var f=(function(E){c(k,E);function k(){return E!==null&&E.apply(this,arguments)||this}return k.prototype._encodeByte=function(C){var N=C;return N+=65,N+=25-C>>>8&6,N+=51-C>>>8&-75,N+=61-C>>>8&-13,N+=62-C>>>8&49,String.fromCharCode(N)},k.prototype._decodeChar=function(C){var N=u;return N+=(44-C&C-46)>>>8&-u+C-45+62,N+=(94-C&C-96)>>>8&-u+C-95+63,N+=(47-C&C-58)>>>8&-u+C-48+52,N+=(64-C&C-91)>>>8&-u+C-65+0,N+=(96-C&C-123)>>>8&-u+C-97+26,N},k})(g);o.URLSafeCoder=f;var A=new f;function T(E){return A.encode(E)}o.encodeURLSafe=T;function P(E){return A.decode(E)}o.decodeURLSafe=P,o.encodedLength=function(E){return d.encodedLength(E)},o.maxDecodedLength=function(E){return d.maxDecodedLength(E)},o.decodedLength=function(E){return d.decodedLength(E)}}),(function(_,o,s){Object.defineProperty(o,"__esModule",{value:!0});var c="utf8: invalid string",u="utf8: invalid source encoding";function g(x){for(var f=new Uint8Array(d(x)),A=0,T=0;T<x.length;T++){var P=x.charCodeAt(T);P<128?f[A++]=P:P<2048?(f[A++]=192|P>>6,f[A++]=128|P&63):P<55296?(f[A++]=224|P>>12,f[A++]=128|P>>6&63,f[A++]=128|P&63):(T++,P=(P&1023)<<10,P|=x.charCodeAt(T)&1023,P+=65536,f[A++]=240|P>>18,f[A++]=128|P>>12&63,f[A++]=128|P>>6&63,f[A++]=128|P&63)}return f}o.encode=g;function d(x){for(var f=0,A=0;A<x.length;A++){var T=x.charCodeAt(A);if(T<128)f+=1;else if(T<2048)f+=2;else if(T<55296)f+=3;else if(T<=57343){if(A>=x.length-1)throw new Error(c);A++,f+=4}else throw new Error(c)}return f}o.encodedLength=d;function p(x){for(var f=[],A=0;A<x.length;A++){var T=x[A];if(T&128){var P=void 0;if(T<224){if(A>=x.length)throw new Error(u);var E=x[++A];if((E&192)!==128)throw new Error(u);T=(T&31)<<6|E&63,P=128}else if(T<240){if(A>=x.length-1)throw new Error(u);var E=x[++A],k=x[++A];if((E&192)!==128||(k&192)!==128)throw new Error(u);T=(T&15)<<12|(E&63)<<6|k&63,P=2048}else if(T<248){if(A>=x.length-2)throw new Error(u);var E=x[++A],k=x[++A],C=x[++A];if((E&192)!==128||(k&192)!==128||(C&192)!==128)throw new Error(u);T=(T&15)<<18|(E&63)<<12|(k&63)<<6|C&63,P=65536}else throw new Error(u);if(T<P||T>=55296&&T<=57343)throw new Error(u);if(T>=65536){if(T>1114111)throw new Error(u);T-=65536,f.push(String.fromCharCode(55296|T>>10)),T=56320|T&1023}}f.push(String.fromCharCode(T))}return f.join("")}o.decode=p}),(function(_,o,s){(function(c){var u=function(m){var $,b=new Float64Array(16);if(m)for($=0;$<m.length;$++)b[$]=m[$];return b},g=function(){throw new Error("no PRNG")},d=new Uint8Array(16),p=new Uint8Array(32);p[0]=9;var x=u(),f=u([1]),A=u([56129,1]),T=u([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),P=u([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),E=u([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),k=u([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),C=u([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function N(m,$,b,l){m[$]=b>>24&255,m[$+1]=b>>16&255,m[$+2]=b>>8&255,m[$+3]=b&255,m[$+4]=l>>24&255,m[$+5]=l>>16&255,m[$+6]=l>>8&255,m[$+7]=l&255}function L(m,$,b,l,I){var M,B=0;for(M=0;M<I;M++)B|=m[$+M]^b[l+M];return(1&B-1>>>8)-1}function D(m,$,b,l){return L(m,$,b,l,16)}function O(m,$,b,l){return L(m,$,b,l,32)}function R(m,$,b,l){for(var I=l[0]&255|(l[1]&255)<<8|(l[2]&255)<<16|(l[3]&255)<<24,M=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,B=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,_e=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,re=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,Ae=l[4]&255|(l[5]&255)<<8|(l[6]&255)<<16|(l[7]&255)<<24,me=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,gt=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,ve=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,ze=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,He=l[8]&255|(l[9]&255)<<8|(l[10]&255)<<16|(l[11]&255)<<24,Je=b[16]&255|(b[17]&255)<<8|(b[18]&255)<<16|(b[19]&255)<<24,Be=b[20]&255|(b[21]&255)<<8|(b[22]&255)<<16|(b[23]&255)<<24,Ve=b[24]&255|(b[25]&255)<<8|(b[26]&255)<<16|(b[27]&255)<<24,Ze=b[28]&255|(b[29]&255)<<8|(b[30]&255)<<16|(b[31]&255)<<24,We=l[12]&255|(l[13]&255)<<8|(l[14]&255)<<16|(l[15]&255)<<24,be=I,je=M,ye=B,ke=_e,Ce=re,he=Ae,U=me,Y=gt,oe=ve,te=ze,se=He,ae=Je,Re=Be,Qe=Ve,tt=Ze,Ke=We,j,nt=0;nt<20;nt+=2)j=be+Re|0,Ce^=j<<7|j>>>25,j=Ce+be|0,oe^=j<<9|j>>>23,j=oe+Ce|0,Re^=j<<13|j>>>19,j=Re+oe|0,be^=j<<18|j>>>14,j=he+je|0,te^=j<<7|j>>>25,j=te+he|0,Qe^=j<<9|j>>>23,j=Qe+te|0,je^=j<<13|j>>>19,j=je+Qe|0,he^=j<<18|j>>>14,j=se+U|0,tt^=j<<7|j>>>25,j=tt+se|0,ye^=j<<9|j>>>23,j=ye+tt|0,U^=j<<13|j>>>19,j=U+ye|0,se^=j<<18|j>>>14,j=Ke+ae|0,ke^=j<<7|j>>>25,j=ke+Ke|0,Y^=j<<9|j>>>23,j=Y+ke|0,ae^=j<<13|j>>>19,j=ae+Y|0,Ke^=j<<18|j>>>14,j=be+ke|0,je^=j<<7|j>>>25,j=je+be|0,ye^=j<<9|j>>>23,j=ye+je|0,ke^=j<<13|j>>>19,j=ke+ye|0,be^=j<<18|j>>>14,j=he+Ce|0,U^=j<<7|j>>>25,j=U+he|0,Y^=j<<9|j>>>23,j=Y+U|0,Ce^=j<<13|j>>>19,j=Ce+Y|0,he^=j<<18|j>>>14,j=se+te|0,ae^=j<<7|j>>>25,j=ae+se|0,oe^=j<<9|j>>>23,j=oe+ae|0,te^=j<<13|j>>>19,j=te+oe|0,se^=j<<18|j>>>14,j=Ke+tt|0,Re^=j<<7|j>>>25,j=Re+Ke|0,Qe^=j<<9|j>>>23,j=Qe+Re|0,tt^=j<<13|j>>>19,j=tt+Qe|0,Ke^=j<<18|j>>>14;be=be+I|0,je=je+M|0,ye=ye+B|0,ke=ke+_e|0,Ce=Ce+re|0,he=he+Ae|0,U=U+me|0,Y=Y+gt|0,oe=oe+ve|0,te=te+ze|0,se=se+He|0,ae=ae+Je|0,Re=Re+Be|0,Qe=Qe+Ve|0,tt=tt+Ze|0,Ke=Ke+We|0,m[0]=be>>>0&255,m[1]=be>>>8&255,m[2]=be>>>16&255,m[3]=be>>>24&255,m[4]=je>>>0&255,m[5]=je>>>8&255,m[6]=je>>>16&255,m[7]=je>>>24&255,m[8]=ye>>>0&255,m[9]=ye>>>8&255,m[10]=ye>>>16&255,m[11]=ye>>>24&255,m[12]=ke>>>0&255,m[13]=ke>>>8&255,m[14]=ke>>>16&255,m[15]=ke>>>24&255,m[16]=Ce>>>0&255,m[17]=Ce>>>8&255,m[18]=Ce>>>16&255,m[19]=Ce>>>24&255,m[20]=he>>>0&255,m[21]=he>>>8&255,m[22]=he>>>16&255,m[23]=he>>>24&255,m[24]=U>>>0&255,m[25]=U>>>8&255,m[26]=U>>>16&255,m[27]=U>>>24&255,m[28]=Y>>>0&255,m[29]=Y>>>8&255,m[30]=Y>>>16&255,m[31]=Y>>>24&255,m[32]=oe>>>0&255,m[33]=oe>>>8&255,m[34]=oe>>>16&255,m[35]=oe>>>24&255,m[36]=te>>>0&255,m[37]=te>>>8&255,m[38]=te>>>16&255,m[39]=te>>>24&255,m[40]=se>>>0&255,m[41]=se>>>8&255,m[42]=se>>>16&255,m[43]=se>>>24&255,m[44]=ae>>>0&255,m[45]=ae>>>8&255,m[46]=ae>>>16&255,m[47]=ae>>>24&255,m[48]=Re>>>0&255,m[49]=Re>>>8&255,m[50]=Re>>>16&255,m[51]=Re>>>24&255,m[52]=Qe>>>0&255,m[53]=Qe>>>8&255,m[54]=Qe>>>16&255,m[55]=Qe>>>24&255,m[56]=tt>>>0&255,m[57]=tt>>>8&255,m[58]=tt>>>16&255,m[59]=tt>>>24&255,m[60]=Ke>>>0&255,m[61]=Ke>>>8&255,m[62]=Ke>>>16&255,m[63]=Ke>>>24&255}function W(m,$,b,l){for(var I=l[0]&255|(l[1]&255)<<8|(l[2]&255)<<16|(l[3]&255)<<24,M=b[0]&255|(b[1]&255)<<8|(b[2]&255)<<16|(b[3]&255)<<24,B=b[4]&255|(b[5]&255)<<8|(b[6]&255)<<16|(b[7]&255)<<24,_e=b[8]&255|(b[9]&255)<<8|(b[10]&255)<<16|(b[11]&255)<<24,re=b[12]&255|(b[13]&255)<<8|(b[14]&255)<<16|(b[15]&255)<<24,Ae=l[4]&255|(l[5]&255)<<8|(l[6]&255)<<16|(l[7]&255)<<24,me=$[0]&255|($[1]&255)<<8|($[2]&255)<<16|($[3]&255)<<24,gt=$[4]&255|($[5]&255)<<8|($[6]&255)<<16|($[7]&255)<<24,ve=$[8]&255|($[9]&255)<<8|($[10]&255)<<16|($[11]&255)<<24,ze=$[12]&255|($[13]&255)<<8|($[14]&255)<<16|($[15]&255)<<24,He=l[8]&255|(l[9]&255)<<8|(l[10]&255)<<16|(l[11]&255)<<24,Je=b[16]&255|(b[17]&255)<<8|(b[18]&255)<<16|(b[19]&255)<<24,Be=b[20]&255|(b[21]&255)<<8|(b[22]&255)<<16|(b[23]&255)<<24,Ve=b[24]&255|(b[25]&255)<<8|(b[26]&255)<<16|(b[27]&255)<<24,Ze=b[28]&255|(b[29]&255)<<8|(b[30]&255)<<16|(b[31]&255)<<24,We=l[12]&255|(l[13]&255)<<8|(l[14]&255)<<16|(l[15]&255)<<24,be=I,je=M,ye=B,ke=_e,Ce=re,he=Ae,U=me,Y=gt,oe=ve,te=ze,se=He,ae=Je,Re=Be,Qe=Ve,tt=Ze,Ke=We,j,nt=0;nt<20;nt+=2)j=be+Re|0,Ce^=j<<7|j>>>25,j=Ce+be|0,oe^=j<<9|j>>>23,j=oe+Ce|0,Re^=j<<13|j>>>19,j=Re+oe|0,be^=j<<18|j>>>14,j=he+je|0,te^=j<<7|j>>>25,j=te+he|0,Qe^=j<<9|j>>>23,j=Qe+te|0,je^=j<<13|j>>>19,j=je+Qe|0,he^=j<<18|j>>>14,j=se+U|0,tt^=j<<7|j>>>25,j=tt+se|0,ye^=j<<9|j>>>23,j=ye+tt|0,U^=j<<13|j>>>19,j=U+ye|0,se^=j<<18|j>>>14,j=Ke+ae|0,ke^=j<<7|j>>>25,j=ke+Ke|0,Y^=j<<9|j>>>23,j=Y+ke|0,ae^=j<<13|j>>>19,j=ae+Y|0,Ke^=j<<18|j>>>14,j=be+ke|0,je^=j<<7|j>>>25,j=je+be|0,ye^=j<<9|j>>>23,j=ye+je|0,ke^=j<<13|j>>>19,j=ke+ye|0,be^=j<<18|j>>>14,j=he+Ce|0,U^=j<<7|j>>>25,j=U+he|0,Y^=j<<9|j>>>23,j=Y+U|0,Ce^=j<<13|j>>>19,j=Ce+Y|0,he^=j<<18|j>>>14,j=se+te|0,ae^=j<<7|j>>>25,j=ae+se|0,oe^=j<<9|j>>>23,j=oe+ae|0,te^=j<<13|j>>>19,j=te+oe|0,se^=j<<18|j>>>14,j=Ke+tt|0,Re^=j<<7|j>>>25,j=Re+Ke|0,Qe^=j<<9|j>>>23,j=Qe+Re|0,tt^=j<<13|j>>>19,j=tt+Qe|0,Ke^=j<<18|j>>>14;m[0]=be>>>0&255,m[1]=be>>>8&255,m[2]=be>>>16&255,m[3]=be>>>24&255,m[4]=he>>>0&255,m[5]=he>>>8&255,m[6]=he>>>16&255,m[7]=he>>>24&255,m[8]=se>>>0&255,m[9]=se>>>8&255,m[10]=se>>>16&255,m[11]=se>>>24&255,m[12]=Ke>>>0&255,m[13]=Ke>>>8&255,m[14]=Ke>>>16&255,m[15]=Ke>>>24&255,m[16]=U>>>0&255,m[17]=U>>>8&255,m[18]=U>>>16&255,m[19]=U>>>24&255,m[20]=Y>>>0&255,m[21]=Y>>>8&255,m[22]=Y>>>16&255,m[23]=Y>>>24&255,m[24]=oe>>>0&255,m[25]=oe>>>8&255,m[26]=oe>>>16&255,m[27]=oe>>>24&255,m[28]=te>>>0&255,m[29]=te>>>8&255,m[30]=te>>>16&255,m[31]=te>>>24&255}function F(m,$,b,l){R(m,$,b,l)}function Z(m,$,b,l){W(m,$,b,l)}var G=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function H(m,$,b,l,I,M,B){var _e=new Uint8Array(16),re=new Uint8Array(64),Ae,me;for(me=0;me<16;me++)_e[me]=0;for(me=0;me<8;me++)_e[me]=M[me];for(;I>=64;){for(F(re,_e,B,G),me=0;me<64;me++)m[$+me]=b[l+me]^re[me];for(Ae=1,me=8;me<16;me++)Ae=Ae+(_e[me]&255)|0,_e[me]=Ae&255,Ae>>>=8;I-=64,$+=64,l+=64}if(I>0)for(F(re,_e,B,G),me=0;me<I;me++)m[$+me]=b[l+me]^re[me];return 0}function q(m,$,b,l,I){var M=new Uint8Array(16),B=new Uint8Array(64),_e,re;for(re=0;re<16;re++)M[re]=0;for(re=0;re<8;re++)M[re]=l[re];for(;b>=64;){for(F(B,M,I,G),re=0;re<64;re++)m[$+re]=B[re];for(_e=1,re=8;re<16;re++)_e=_e+(M[re]&255)|0,M[re]=_e&255,_e>>>=8;b-=64,$+=64}if(b>0)for(F(B,M,I,G),re=0;re<b;re++)m[$+re]=B[re];return 0}function K(m,$,b,l,I){var M=new Uint8Array(32);Z(M,l,I,G);for(var B=new Uint8Array(8),_e=0;_e<8;_e++)B[_e]=l[_e+16];return q(m,$,b,B,M)}function ee(m,$,b,l,I,M,B){var _e=new Uint8Array(32);Z(_e,M,B,G);for(var re=new Uint8Array(8),Ae=0;Ae<8;Ae++)re[Ae]=M[Ae+16];return H(m,$,b,l,I,re,_e)}var xe=function(m){this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0;var $,b,l,I,M,B,_e,re;$=m[0]&255|(m[1]&255)<<8,this.r[0]=$&8191,b=m[2]&255|(m[3]&255)<<8,this.r[1]=($>>>13|b<<3)&8191,l=m[4]&255|(m[5]&255)<<8,this.r[2]=(b>>>10|l<<6)&7939,I=m[6]&255|(m[7]&255)<<8,this.r[3]=(l>>>7|I<<9)&8191,M=m[8]&255|(m[9]&255)<<8,this.r[4]=(I>>>4|M<<12)&255,this.r[5]=M>>>1&8190,B=m[10]&255|(m[11]&255)<<8,this.r[6]=(M>>>14|B<<2)&8191,_e=m[12]&255|(m[13]&255)<<8,this.r[7]=(B>>>11|_e<<5)&8065,re=m[14]&255|(m[15]&255)<<8,this.r[8]=(_e>>>8|re<<8)&8191,this.r[9]=re>>>5&127,this.pad[0]=m[16]&255|(m[17]&255)<<8,this.pad[1]=m[18]&255|(m[19]&255)<<8,this.pad[2]=m[20]&255|(m[21]&255)<<8,this.pad[3]=m[22]&255|(m[23]&255)<<8,this.pad[4]=m[24]&255|(m[25]&255)<<8,this.pad[5]=m[26]&255|(m[27]&255)<<8,this.pad[6]=m[28]&255|(m[29]&255)<<8,this.pad[7]=m[30]&255|(m[31]&255)<<8};xe.prototype.blocks=function(m,$,b){for(var l=this.fin?0:2048,I,M,B,_e,re,Ae,me,gt,ve,ze,He,Je,Be,Ve,Ze,We,be,je,ye,ke=this.h[0],Ce=this.h[1],he=this.h[2],U=this.h[3],Y=this.h[4],oe=this.h[5],te=this.h[6],se=this.h[7],ae=this.h[8],Re=this.h[9],Qe=this.r[0],tt=this.r[1],Ke=this.r[2],j=this.r[3],nt=this.r[4],it=this.r[5],pt=this.r[6],_t=this.r[7],dt=this.r[8],ut=this.r[9];b>=16;)I=m[$+0]&255|(m[$+1]&255)<<8,ke+=I&8191,M=m[$+2]&255|(m[$+3]&255)<<8,Ce+=(I>>>13|M<<3)&8191,B=m[$+4]&255|(m[$+5]&255)<<8,he+=(M>>>10|B<<6)&8191,_e=m[$+6]&255|(m[$+7]&255)<<8,U+=(B>>>7|_e<<9)&8191,re=m[$+8]&255|(m[$+9]&255)<<8,Y+=(_e>>>4|re<<12)&8191,oe+=re>>>1&8191,Ae=m[$+10]&255|(m[$+11]&255)<<8,te+=(re>>>14|Ae<<2)&8191,me=m[$+12]&255|(m[$+13]&255)<<8,se+=(Ae>>>11|me<<5)&8191,gt=m[$+14]&255|(m[$+15]&255)<<8,ae+=(me>>>8|gt<<8)&8191,Re+=gt>>>5|l,ve=0,ze=ve,ze+=ke*Qe,ze+=Ce*(5*ut),ze+=he*(5*dt),ze+=U*(5*_t),ze+=Y*(5*pt),ve=ze>>>13,ze&=8191,ze+=oe*(5*it),ze+=te*(5*nt),ze+=se*(5*j),ze+=ae*(5*Ke),ze+=Re*(5*tt),ve+=ze>>>13,ze&=8191,He=ve,He+=ke*tt,He+=Ce*Qe,He+=he*(5*ut),He+=U*(5*dt),He+=Y*(5*_t),ve=He>>>13,He&=8191,He+=oe*(5*pt),He+=te*(5*it),He+=se*(5*nt),He+=ae*(5*j),He+=Re*(5*Ke),ve+=He>>>13,He&=8191,Je=ve,Je+=ke*Ke,Je+=Ce*tt,Je+=he*Qe,Je+=U*(5*ut),Je+=Y*(5*dt),ve=Je>>>13,Je&=8191,Je+=oe*(5*_t),Je+=te*(5*pt),Je+=se*(5*it),Je+=ae*(5*nt),Je+=Re*(5*j),ve+=Je>>>13,Je&=8191,Be=ve,Be+=ke*j,Be+=Ce*Ke,Be+=he*tt,Be+=U*Qe,Be+=Y*(5*ut),ve=Be>>>13,Be&=8191,Be+=oe*(5*dt),Be+=te*(5*_t),Be+=se*(5*pt),Be+=ae*(5*it),Be+=Re*(5*nt),ve+=Be>>>13,Be&=8191,Ve=ve,Ve+=ke*nt,Ve+=Ce*j,Ve+=he*Ke,Ve+=U*tt,Ve+=Y*Qe,ve=Ve>>>13,Ve&=8191,Ve+=oe*(5*ut),Ve+=te*(5*dt),Ve+=se*(5*_t),Ve+=ae*(5*pt),Ve+=Re*(5*it),ve+=Ve>>>13,Ve&=8191,Ze=ve,Ze+=ke*it,Ze+=Ce*nt,Ze+=he*j,Ze+=U*Ke,Ze+=Y*tt,ve=Ze>>>13,Ze&=8191,Ze+=oe*Qe,Ze+=te*(5*ut),Ze+=se*(5*dt),Ze+=ae*(5*_t),Ze+=Re*(5*pt),ve+=Ze>>>13,Ze&=8191,We=ve,We+=ke*pt,We+=Ce*it,We+=he*nt,We+=U*j,We+=Y*Ke,ve=We>>>13,We&=8191,We+=oe*tt,We+=te*Qe,We+=se*(5*ut),We+=ae*(5*dt),We+=Re*(5*_t),ve+=We>>>13,We&=8191,be=ve,be+=ke*_t,be+=Ce*pt,be+=he*it,be+=U*nt,be+=Y*j,ve=be>>>13,be&=8191,be+=oe*Ke,be+=te*tt,be+=se*Qe,be+=ae*(5*ut),be+=Re*(5*dt),ve+=be>>>13,be&=8191,je=ve,je+=ke*dt,je+=Ce*_t,je+=he*pt,je+=U*it,je+=Y*nt,ve=je>>>13,je&=8191,je+=oe*j,je+=te*Ke,je+=se*tt,je+=ae*Qe,je+=Re*(5*ut),ve+=je>>>13,je&=8191,ye=ve,ye+=ke*ut,ye+=Ce*dt,ye+=he*_t,ye+=U*pt,ye+=Y*it,ve=ye>>>13,ye&=8191,ye+=oe*nt,ye+=te*j,ye+=se*Ke,ye+=ae*tt,ye+=Re*Qe,ve+=ye>>>13,ye&=8191,ve=(ve<<2)+ve|0,ve=ve+ze|0,ze=ve&8191,ve=ve>>>13,He+=ve,ke=ze,Ce=He,he=Je,U=Be,Y=Ve,oe=Ze,te=We,se=be,ae=je,Re=ye,$+=16,b-=16;this.h[0]=ke,this.h[1]=Ce,this.h[2]=he,this.h[3]=U,this.h[4]=Y,this.h[5]=oe,this.h[6]=te,this.h[7]=se,this.h[8]=ae,this.h[9]=Re},xe.prototype.finish=function(m,$){var b=new Uint16Array(10),l,I,M,B;if(this.leftover){for(B=this.leftover,this.buffer[B++]=1;B<16;B++)this.buffer[B]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(l=this.h[1]>>>13,this.h[1]&=8191,B=2;B<10;B++)this.h[B]+=l,l=this.h[B]>>>13,this.h[B]&=8191;for(this.h[0]+=l*5,l=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=l,l=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=l,b[0]=this.h[0]+5,l=b[0]>>>13,b[0]&=8191,B=1;B<10;B++)b[B]=this.h[B]+l,l=b[B]>>>13,b[B]&=8191;for(b[9]-=8192,I=(l^1)-1,B=0;B<10;B++)b[B]&=I;for(I=~I,B=0;B<10;B++)this.h[B]=this.h[B]&I|b[B];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,M=this.h[0]+this.pad[0],this.h[0]=M&65535,B=1;B<8;B++)M=(this.h[B]+this.pad[B]|0)+(M>>>16)|0,this.h[B]=M&65535;m[$+0]=this.h[0]>>>0&255,m[$+1]=this.h[0]>>>8&255,m[$+2]=this.h[1]>>>0&255,m[$+3]=this.h[1]>>>8&255,m[$+4]=this.h[2]>>>0&255,m[$+5]=this.h[2]>>>8&255,m[$+6]=this.h[3]>>>0&255,m[$+7]=this.h[3]>>>8&255,m[$+8]=this.h[4]>>>0&255,m[$+9]=this.h[4]>>>8&255,m[$+10]=this.h[5]>>>0&255,m[$+11]=this.h[5]>>>8&255,m[$+12]=this.h[6]>>>0&255,m[$+13]=this.h[6]>>>8&255,m[$+14]=this.h[7]>>>0&255,m[$+15]=this.h[7]>>>8&255},xe.prototype.update=function(m,$,b){var l,I;if(this.leftover){for(I=16-this.leftover,I>b&&(I=b),l=0;l<I;l++)this.buffer[this.leftover+l]=m[$+l];if(b-=I,$+=I,this.leftover+=I,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(b>=16&&(I=b-b%16,this.blocks(m,$,I),$+=I,b-=I),b){for(l=0;l<b;l++)this.buffer[this.leftover+l]=m[$+l];this.leftover+=b}};function Ne(m,$,b,l,I,M){var B=new xe(M);return B.update(b,l,I),B.finish(m,$),0}function et(m,$,b,l,I,M){var B=new Uint8Array(16);return Ne(B,0,b,l,I,M),D(m,$,B,0)}function De(m,$,b,l,I){var M;if(b<32)return-1;for(ee(m,0,$,0,b,l,I),Ne(m,16,m,32,b-32,m),M=0;M<16;M++)m[M]=0;return 0}function le(m,$,b,l,I){var M,B=new Uint8Array(32);if(b<32||(K(B,0,32,l,I),et($,16,$,32,b-32,B)!==0))return-1;for(ee(m,0,$,0,b,l,I),M=0;M<32;M++)m[M]=0;return 0}function Ue(m,$){var b;for(b=0;b<16;b++)m[b]=$[b]|0}function ie(m){var $,b,l=1;for($=0;$<16;$++)b=m[$]+l+65535,l=Math.floor(b/65536),m[$]=b-l*65536;m[0]+=l-1+37*(l-1)}function ge(m,$,b){for(var l,I=~(b-1),M=0;M<16;M++)l=I&(m[M]^$[M]),m[M]^=l,$[M]^=l}function Te(m,$){var b,l,I,M=u(),B=u();for(b=0;b<16;b++)B[b]=$[b];for(ie(B),ie(B),ie(B),l=0;l<2;l++){for(M[0]=B[0]-65517,b=1;b<15;b++)M[b]=B[b]-65535-(M[b-1]>>16&1),M[b-1]&=65535;M[15]=B[15]-32767-(M[14]>>16&1),I=M[15]>>16&1,M[14]&=65535,ge(B,M,1-I)}for(b=0;b<16;b++)m[2*b]=B[b]&255,m[2*b+1]=B[b]>>8}function Pe(m,$){var b=new Uint8Array(32),l=new Uint8Array(32);return Te(b,m),Te(l,$),O(b,0,l,0)}function Fe(m){var $=new Uint8Array(32);return Te($,m),$[0]&1}function ht(m,$){var b;for(b=0;b<16;b++)m[b]=$[2*b]+($[2*b+1]<<8);m[15]&=32767}function Ye(m,$,b){for(var l=0;l<16;l++)m[l]=$[l]+b[l]}function pe(m,$,b){for(var l=0;l<16;l++)m[l]=$[l]-b[l]}function $e(m,$,b){var l,I,M=0,B=0,_e=0,re=0,Ae=0,me=0,gt=0,ve=0,ze=0,He=0,Je=0,Be=0,Ve=0,Ze=0,We=0,be=0,je=0,ye=0,ke=0,Ce=0,he=0,U=0,Y=0,oe=0,te=0,se=0,ae=0,Re=0,Qe=0,tt=0,Ke=0,j=b[0],nt=b[1],it=b[2],pt=b[3],_t=b[4],dt=b[5],ut=b[6],Tt=b[7],wt=b[8],St=b[9],At=b[10],Et=b[11],qt=b[12],xt=b[13],Gt=b[14],Bt=b[15];l=$[0],M+=l*j,B+=l*nt,_e+=l*it,re+=l*pt,Ae+=l*_t,me+=l*dt,gt+=l*ut,ve+=l*Tt,ze+=l*wt,He+=l*St,Je+=l*At,Be+=l*Et,Ve+=l*qt,Ze+=l*xt,We+=l*Gt,be+=l*Bt,l=$[1],B+=l*j,_e+=l*nt,re+=l*it,Ae+=l*pt,me+=l*_t,gt+=l*dt,ve+=l*ut,ze+=l*Tt,He+=l*wt,Je+=l*St,Be+=l*At,Ve+=l*Et,Ze+=l*qt,We+=l*xt,be+=l*Gt,je+=l*Bt,l=$[2],_e+=l*j,re+=l*nt,Ae+=l*it,me+=l*pt,gt+=l*_t,ve+=l*dt,ze+=l*ut,He+=l*Tt,Je+=l*wt,Be+=l*St,Ve+=l*At,Ze+=l*Et,We+=l*qt,be+=l*xt,je+=l*Gt,ye+=l*Bt,l=$[3],re+=l*j,Ae+=l*nt,me+=l*it,gt+=l*pt,ve+=l*_t,ze+=l*dt,He+=l*ut,Je+=l*Tt,Be+=l*wt,Ve+=l*St,Ze+=l*At,We+=l*Et,be+=l*qt,je+=l*xt,ye+=l*Gt,ke+=l*Bt,l=$[4],Ae+=l*j,me+=l*nt,gt+=l*it,ve+=l*pt,ze+=l*_t,He+=l*dt,Je+=l*ut,Be+=l*Tt,Ve+=l*wt,Ze+=l*St,We+=l*At,be+=l*Et,je+=l*qt,ye+=l*xt,ke+=l*Gt,Ce+=l*Bt,l=$[5],me+=l*j,gt+=l*nt,ve+=l*it,ze+=l*pt,He+=l*_t,Je+=l*dt,Be+=l*ut,Ve+=l*Tt,Ze+=l*wt,We+=l*St,be+=l*At,je+=l*Et,ye+=l*qt,ke+=l*xt,Ce+=l*Gt,he+=l*Bt,l=$[6],gt+=l*j,ve+=l*nt,ze+=l*it,He+=l*pt,Je+=l*_t,Be+=l*dt,Ve+=l*ut,Ze+=l*Tt,We+=l*wt,be+=l*St,je+=l*At,ye+=l*Et,ke+=l*qt,Ce+=l*xt,he+=l*Gt,U+=l*Bt,l=$[7],ve+=l*j,ze+=l*nt,He+=l*it,Je+=l*pt,Be+=l*_t,Ve+=l*dt,Ze+=l*ut,We+=l*Tt,be+=l*wt,je+=l*St,ye+=l*At,ke+=l*Et,Ce+=l*qt,he+=l*xt,U+=l*Gt,Y+=l*Bt,l=$[8],ze+=l*j,He+=l*nt,Je+=l*it,Be+=l*pt,Ve+=l*_t,Ze+=l*dt,We+=l*ut,be+=l*Tt,je+=l*wt,ye+=l*St,ke+=l*At,Ce+=l*Et,he+=l*qt,U+=l*xt,Y+=l*Gt,oe+=l*Bt,l=$[9],He+=l*j,Je+=l*nt,Be+=l*it,Ve+=l*pt,Ze+=l*_t,We+=l*dt,be+=l*ut,je+=l*Tt,ye+=l*wt,ke+=l*St,Ce+=l*At,he+=l*Et,U+=l*qt,Y+=l*xt,oe+=l*Gt,te+=l*Bt,l=$[10],Je+=l*j,Be+=l*nt,Ve+=l*it,Ze+=l*pt,We+=l*_t,be+=l*dt,je+=l*ut,ye+=l*Tt,ke+=l*wt,Ce+=l*St,he+=l*At,U+=l*Et,Y+=l*qt,oe+=l*xt,te+=l*Gt,se+=l*Bt,l=$[11],Be+=l*j,Ve+=l*nt,Ze+=l*it,We+=l*pt,be+=l*_t,je+=l*dt,ye+=l*ut,ke+=l*Tt,Ce+=l*wt,he+=l*St,U+=l*At,Y+=l*Et,oe+=l*qt,te+=l*xt,se+=l*Gt,ae+=l*Bt,l=$[12],Ve+=l*j,Ze+=l*nt,We+=l*it,be+=l*pt,je+=l*_t,ye+=l*dt,ke+=l*ut,Ce+=l*Tt,he+=l*wt,U+=l*St,Y+=l*At,oe+=l*Et,te+=l*qt,se+=l*xt,ae+=l*Gt,Re+=l*Bt,l=$[13],Ze+=l*j,We+=l*nt,be+=l*it,je+=l*pt,ye+=l*_t,ke+=l*dt,Ce+=l*ut,he+=l*Tt,U+=l*wt,Y+=l*St,oe+=l*At,te+=l*Et,se+=l*qt,ae+=l*xt,Re+=l*Gt,Qe+=l*Bt,l=$[14],We+=l*j,be+=l*nt,je+=l*it,ye+=l*pt,ke+=l*_t,Ce+=l*dt,he+=l*ut,U+=l*Tt,Y+=l*wt,oe+=l*St,te+=l*At,se+=l*Et,ae+=l*qt,Re+=l*xt,Qe+=l*Gt,tt+=l*Bt,l=$[15],be+=l*j,je+=l*nt,ye+=l*it,ke+=l*pt,Ce+=l*_t,he+=l*dt,U+=l*ut,Y+=l*Tt,oe+=l*wt,te+=l*St,se+=l*At,ae+=l*Et,Re+=l*qt,Qe+=l*xt,tt+=l*Gt,Ke+=l*Bt,M+=38*je,B+=38*ye,_e+=38*ke,re+=38*Ce,Ae+=38*he,me+=38*U,gt+=38*Y,ve+=38*oe,ze+=38*te,He+=38*se,Je+=38*ae,Be+=38*Re,Ve+=38*Qe,Ze+=38*tt,We+=38*Ke,I=1,l=M+I+65535,I=Math.floor(l/65536),M=l-I*65536,l=B+I+65535,I=Math.floor(l/65536),B=l-I*65536,l=_e+I+65535,I=Math.floor(l/65536),_e=l-I*65536,l=re+I+65535,I=Math.floor(l/65536),re=l-I*65536,l=Ae+I+65535,I=Math.floor(l/65536),Ae=l-I*65536,l=me+I+65535,I=Math.floor(l/65536),me=l-I*65536,l=gt+I+65535,I=Math.floor(l/65536),gt=l-I*65536,l=ve+I+65535,I=Math.floor(l/65536),ve=l-I*65536,l=ze+I+65535,I=Math.floor(l/65536),ze=l-I*65536,l=He+I+65535,I=Math.floor(l/65536),He=l-I*65536,l=Je+I+65535,I=Math.floor(l/65536),Je=l-I*65536,l=Be+I+65535,I=Math.floor(l/65536),Be=l-I*65536,l=Ve+I+65535,I=Math.floor(l/65536),Ve=l-I*65536,l=Ze+I+65535,I=Math.floor(l/65536),Ze=l-I*65536,l=We+I+65535,I=Math.floor(l/65536),We=l-I*65536,l=be+I+65535,I=Math.floor(l/65536),be=l-I*65536,M+=I-1+37*(I-1),I=1,l=M+I+65535,I=Math.floor(l/65536),M=l-I*65536,l=B+I+65535,I=Math.floor(l/65536),B=l-I*65536,l=_e+I+65535,I=Math.floor(l/65536),_e=l-I*65536,l=re+I+65535,I=Math.floor(l/65536),re=l-I*65536,l=Ae+I+65535,I=Math.floor(l/65536),Ae=l-I*65536,l=me+I+65535,I=Math.floor(l/65536),me=l-I*65536,l=gt+I+65535,I=Math.floor(l/65536),gt=l-I*65536,l=ve+I+65535,I=Math.floor(l/65536),ve=l-I*65536,l=ze+I+65535,I=Math.floor(l/65536),ze=l-I*65536,l=He+I+65535,I=Math.floor(l/65536),He=l-I*65536,l=Je+I+65535,I=Math.floor(l/65536),Je=l-I*65536,l=Be+I+65535,I=Math.floor(l/65536),Be=l-I*65536,l=Ve+I+65535,I=Math.floor(l/65536),Ve=l-I*65536,l=Ze+I+65535,I=Math.floor(l/65536),Ze=l-I*65536,l=We+I+65535,I=Math.floor(l/65536),We=l-I*65536,l=be+I+65535,I=Math.floor(l/65536),be=l-I*65536,M+=I-1+37*(I-1),m[0]=M,m[1]=B,m[2]=_e,m[3]=re,m[4]=Ae,m[5]=me,m[6]=gt,m[7]=ve,m[8]=ze,m[9]=He,m[10]=Je,m[11]=Be,m[12]=Ve,m[13]=Ze,m[14]=We,m[15]=be}function $t(m,$){$e(m,$,$)}function Ht(m,$){var b=u(),l;for(l=0;l<16;l++)b[l]=$[l];for(l=253;l>=0;l--)$t(b,b),l!==2&&l!==4&&$e(b,b,$);for(l=0;l<16;l++)m[l]=b[l]}function It(m,$){var b=u(),l;for(l=0;l<16;l++)b[l]=$[l];for(l=250;l>=0;l--)$t(b,b),l!==1&&$e(b,b,$);for(l=0;l<16;l++)m[l]=b[l]}function Vt(m,$,b){var l=new Uint8Array(32),I=new Float64Array(80),M,B,_e=u(),re=u(),Ae=u(),me=u(),gt=u(),ve=u();for(B=0;B<31;B++)l[B]=$[B];for(l[31]=$[31]&127|64,l[0]&=248,ht(I,b),B=0;B<16;B++)re[B]=I[B],me[B]=_e[B]=Ae[B]=0;for(_e[0]=me[0]=1,B=254;B>=0;--B)M=l[B>>>3]>>>(B&7)&1,ge(_e,re,M),ge(Ae,me,M),Ye(gt,_e,Ae),pe(_e,_e,Ae),Ye(Ae,re,me),pe(re,re,me),$t(me,gt),$t(ve,_e),$e(_e,Ae,_e),$e(Ae,re,gt),Ye(gt,_e,Ae),pe(_e,_e,Ae),$t(re,_e),pe(Ae,me,ve),$e(_e,Ae,A),Ye(_e,_e,me),$e(Ae,Ae,_e),$e(_e,me,ve),$e(me,re,I),$t(re,gt),ge(_e,re,M),ge(Ae,me,M);for(B=0;B<16;B++)I[B+16]=_e[B],I[B+32]=Ae[B],I[B+48]=re[B],I[B+64]=me[B];var ze=I.subarray(32),He=I.subarray(16);return Ht(ze,ze),$e(He,He,ze),Te(m,He),0}function Xt(m,$){return Vt(m,$,p)}function Zt(m,$){return g($,32),Xt(m,$)}function Jt(m,$,b){var l=new Uint8Array(32);return Vt(l,b,$),Z(m,d,l,G)}var k_=De,x_=le;function C_(m,$,b,l,I,M){var B=new Uint8Array(32);return Jt(B,I,M),k_(m,$,b,l,B)}function q_(m,$,b,l,I,M){var B=new Uint8Array(32);return Jt(B,I,M),x_(m,$,b,l,B)}var g_=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function I_(m,$,b,l){for(var I=new Int32Array(16),M=new Int32Array(16),B,_e,re,Ae,me,gt,ve,ze,He,Je,Be,Ve,Ze,We,be,je,ye,ke,Ce,he,U,Y,oe,te,se,ae,Re=m[0],Qe=m[1],tt=m[2],Ke=m[3],j=m[4],nt=m[5],it=m[6],pt=m[7],_t=$[0],dt=$[1],ut=$[2],Tt=$[3],wt=$[4],St=$[5],At=$[6],Et=$[7],qt=0;l>=128;){for(Ce=0;Ce<16;Ce++)he=8*Ce+qt,I[Ce]=b[he+0]<<24|b[he+1]<<16|b[he+2]<<8|b[he+3],M[Ce]=b[he+4]<<24|b[he+5]<<16|b[he+6]<<8|b[he+7];for(Ce=0;Ce<80;Ce++)if(B=Re,_e=Qe,re=tt,Ae=Ke,me=j,gt=nt,ve=it,ze=pt,He=_t,Je=dt,Be=ut,Ve=Tt,Ze=wt,We=St,be=At,je=Et,U=pt,Y=Et,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=(j>>>14|wt<<18)^(j>>>18|wt<<14)^(wt>>>9|j<<23),Y=(wt>>>14|j<<18)^(wt>>>18|j<<14)^(j>>>9|wt<<23),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=j&nt^~j&it,Y=wt&St^~wt&At,oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=g_[Ce*2],Y=g_[Ce*2+1],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=I[Ce%16],Y=M[Ce%16],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,ye=se&65535|ae<<16,ke=oe&65535|te<<16,U=ye,Y=ke,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=(Re>>>28|_t<<4)^(_t>>>2|Re<<30)^(_t>>>7|Re<<25),Y=(_t>>>28|Re<<4)^(Re>>>2|_t<<30)^(Re>>>7|_t<<25),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,U=Re&Qe^Re&tt^Qe&tt,Y=_t&dt^_t&ut^dt&ut,oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,ze=se&65535|ae<<16,je=oe&65535|te<<16,U=Ae,Y=Ve,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=ye,Y=ke,oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,Ae=se&65535|ae<<16,Ve=oe&65535|te<<16,Qe=B,tt=_e,Ke=re,j=Ae,nt=me,it=gt,pt=ve,Re=ze,dt=He,ut=Je,Tt=Be,wt=Ve,St=Ze,At=We,Et=be,_t=je,Ce%16===15)for(he=0;he<16;he++)U=I[he],Y=M[he],oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=I[(he+9)%16],Y=M[(he+9)%16],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,ye=I[(he+1)%16],ke=M[(he+1)%16],U=(ye>>>1|ke<<31)^(ye>>>8|ke<<24)^ye>>>7,Y=(ke>>>1|ye<<31)^(ke>>>8|ye<<24)^(ke>>>7|ye<<25),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,ye=I[(he+14)%16],ke=M[(he+14)%16],U=(ye>>>19|ke<<13)^(ke>>>29|ye<<3)^ye>>>6,Y=(ke>>>19|ye<<13)^(ye>>>29|ke<<3)^(ke>>>6|ye<<26),oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,I[he]=se&65535|ae<<16,M[he]=oe&65535|te<<16;U=Re,Y=_t,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[0],Y=$[0],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[0]=Re=se&65535|ae<<16,$[0]=_t=oe&65535|te<<16,U=Qe,Y=dt,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[1],Y=$[1],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[1]=Qe=se&65535|ae<<16,$[1]=dt=oe&65535|te<<16,U=tt,Y=ut,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[2],Y=$[2],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[2]=tt=se&65535|ae<<16,$[2]=ut=oe&65535|te<<16,U=Ke,Y=Tt,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[3],Y=$[3],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[3]=Ke=se&65535|ae<<16,$[3]=Tt=oe&65535|te<<16,U=j,Y=wt,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[4],Y=$[4],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[4]=j=se&65535|ae<<16,$[4]=wt=oe&65535|te<<16,U=nt,Y=St,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[5],Y=$[5],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[5]=nt=se&65535|ae<<16,$[5]=St=oe&65535|te<<16,U=it,Y=At,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[6],Y=$[6],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[6]=it=se&65535|ae<<16,$[6]=At=oe&65535|te<<16,U=pt,Y=Et,oe=Y&65535,te=Y>>>16,se=U&65535,ae=U>>>16,U=m[7],Y=$[7],oe+=Y&65535,te+=Y>>>16,se+=U&65535,ae+=U>>>16,te+=oe>>>16,se+=te>>>16,ae+=se>>>16,m[7]=pt=se&65535|ae<<16,$[7]=Et=oe&65535|te<<16,qt+=128,l-=128}return l}function Qt(m,$,b){var l=new Int32Array(8),I=new Int32Array(8),M=new Uint8Array(256),B,_e=b;for(l[0]=1779033703,l[1]=3144134277,l[2]=1013904242,l[3]=2773480762,l[4]=1359893119,l[5]=2600822924,l[6]=528734635,l[7]=1541459225,I[0]=4089235720,I[1]=2227873595,I[2]=4271175723,I[3]=1595750129,I[4]=2917565137,I[5]=725511199,I[6]=4215389547,I[7]=327033209,I_(l,I,$,b),b%=128,B=0;B<b;B++)M[B]=$[_e-b+B];for(M[b]=128,b=256-128*(b<112?1:0),M[b-9]=0,N(M,b-8,_e/536870912|0,_e<<3),I_(l,I,M,b),B=0;B<8;B++)N(m,8*B,l[B],I[B]);return 0}function e_(m,$){var b=u(),l=u(),I=u(),M=u(),B=u(),_e=u(),re=u(),Ae=u(),me=u();pe(b,m[1],m[0]),pe(me,$[1],$[0]),$e(b,b,me),Ye(l,m[0],m[1]),Ye(me,$[0],$[1]),$e(l,l,me),$e(I,m[3],$[3]),$e(I,I,P),$e(M,m[2],$[2]),Ye(M,M,M),pe(B,l,b),pe(_e,M,I),Ye(re,M,I),Ye(Ae,l,b),$e(m[0],B,_e),$e(m[1],Ae,re),$e(m[2],re,_e),$e(m[3],B,Ae)}function S_(m,$,b){var l;for(l=0;l<4;l++)ge(m[l],$[l],b)}function t_(m,$){var b=u(),l=u(),I=u();Ht(I,$[2]),$e(b,$[0],I),$e(l,$[1],I),Te(m,l),m[31]^=Fe(b)<<7}function i_(m,$,b){var l,I;for(Ue(m[0],x),Ue(m[1],f),Ue(m[2],f),Ue(m[3],x),I=255;I>=0;--I)l=b[I/8|0]>>(I&7)&1,S_(m,$,l),e_($,m),e_(m,m),S_(m,$,l)}function yt(m,$){var b=[u(),u(),u(),u()];Ue(b[0],E),Ue(b[1],k),Ue(b[2],f),$e(b[3],E,k),i_(m,b,$)}function p_(m,$,b){var l=new Uint8Array(64),I=[u(),u(),u(),u()],M;for(b||g($,32),Qt(l,$,32),l[0]&=248,l[31]&=127,l[31]|=64,yt(I,l),t_(m,I),M=0;M<32;M++)$[M+32]=m[M];return 0}var r_=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function de(m,$){var b,l,I,M;for(l=63;l>=32;--l){for(b=0,I=l-32,M=l-12;I<M;++I)$[I]+=b-16*$[l]*r_[I-(l-32)],b=Math.floor(($[I]+128)/256),$[I]-=b*256;$[I]+=b,$[l]=0}for(b=0,I=0;I<32;I++)$[I]+=b-($[31]>>4)*r_[I],b=$[I]>>8,$[I]&=255;for(I=0;I<32;I++)$[I]-=b*r_[I];for(l=0;l<32;l++)$[l+1]+=$[l]>>8,m[l]=$[l]&255}function we(m){var $=new Float64Array(64),b;for(b=0;b<64;b++)$[b]=m[b];for(b=0;b<64;b++)m[b]=0;de(m,$)}function Ie(m,$,b,l){var I=new Uint8Array(64),M=new Uint8Array(64),B=new Uint8Array(64),_e,re,Ae=new Float64Array(64),me=[u(),u(),u(),u()];Qt(I,l,32),I[0]&=248,I[31]&=127,I[31]|=64;var gt=b+64;for(_e=0;_e<b;_e++)m[64+_e]=$[_e];for(_e=0;_e<32;_e++)m[32+_e]=I[32+_e];for(Qt(B,m.subarray(32),b+32),we(B),yt(me,B),t_(m,me),_e=32;_e<64;_e++)m[_e]=l[_e];for(Qt(M,m,b+64),we(M),_e=0;_e<64;_e++)Ae[_e]=0;for(_e=0;_e<32;_e++)Ae[_e]=B[_e];for(_e=0;_e<32;_e++)for(re=0;re<32;re++)Ae[_e+re]+=M[_e]*I[re];return de(m.subarray(32),Ae),gt}function mt(m,$){var b=u(),l=u(),I=u(),M=u(),B=u(),_e=u(),re=u();return Ue(m[2],f),ht(m[1],$),$t(I,m[1]),$e(M,I,T),pe(I,I,m[2]),Ye(M,m[2],M),$t(B,M),$t(_e,B),$e(re,_e,B),$e(b,re,I),$e(b,b,M),It(b,b),$e(b,b,I),$e(b,b,M),$e(b,b,M),$e(m[0],b,M),$t(l,m[0]),$e(l,l,M),Pe(l,I)&&$e(m[0],m[0],C),$t(l,m[0]),$e(l,l,M),Pe(l,I)?-1:(Fe(m[0])===$[31]>>7&&pe(m[0],x,m[0]),$e(m[3],m[0],m[1]),0)}function Ge(m,$,b,l){var I,M=new Uint8Array(32),B=new Uint8Array(64),_e=[u(),u(),u(),u()],re=[u(),u(),u(),u()];if(b<64||mt(re,l))return-1;for(I=0;I<b;I++)m[I]=$[I];for(I=0;I<32;I++)m[I+32]=l[I];if(Qt(B,m,b),we(B),i_(_e,re,B),yt(re,$.subarray(32)),e_(_e,re),t_(M,_e),b-=64,O($,0,M,0)){for(I=0;I<b;I++)m[I]=0;return-1}for(I=0;I<b;I++)m[I]=$[I+64];return b}var z=32,Se=24,Xe=32,lt=16,Ut=32,z_=32,R_=32,L_=32,es=32,F_=Se,Ks=Xe,__=lt,s_=64,y_=32,A_=64,ts=32,c_=64;c.lowlevel={crypto_core_hsalsa20:Z,crypto_stream_xor:ee,crypto_stream:K,crypto_stream_salsa20_xor:H,crypto_stream_salsa20:q,crypto_onetimeauth:Ne,crypto_onetimeauth_verify:et,crypto_verify_16:D,crypto_verify_32:O,crypto_secretbox:De,crypto_secretbox_open:le,crypto_scalarmult:Vt,crypto_scalarmult_base:Xt,crypto_box_beforenm:Jt,crypto_box_afternm:k_,crypto_box:C_,crypto_box_open:q_,crypto_box_keypair:Zt,crypto_hash:Qt,crypto_sign:Ie,crypto_sign_keypair:p_,crypto_sign_open:Ge,crypto_secretbox_KEYBYTES:z,crypto_secretbox_NONCEBYTES:Se,crypto_secretbox_ZEROBYTES:Xe,crypto_secretbox_BOXZEROBYTES:lt,crypto_scalarmult_BYTES:Ut,crypto_scalarmult_SCALARBYTES:z_,crypto_box_PUBLICKEYBYTES:R_,crypto_box_SECRETKEYBYTES:L_,crypto_box_BEFORENMBYTES:es,crypto_box_NONCEBYTES:F_,crypto_box_ZEROBYTES:Ks,crypto_box_BOXZEROBYTES:__,crypto_sign_BYTES:s_,crypto_sign_PUBLICKEYBYTES:y_,crypto_sign_SECRETKEYBYTES:A_,crypto_sign_SEEDBYTES:ts,crypto_hash_BYTES:c_,gf:u,D:T,L:r_,pack25519:Te,unpack25519:ht,M:$e,A:Ye,S:$t,Z:pe,pow2523:It,add:e_,set25519:Ue,modL:de,scalarmult:i_,scalarbase:yt};function fs(m,$){if(m.length!==z)throw new Error("bad key size");if($.length!==Se)throw new Error("bad nonce size")}function ws(m,$){if(m.length!==R_)throw new Error("bad public key size");if($.length!==L_)throw new Error("bad secret key size")}function Wt(){for(var m=0;m<arguments.length;m++)if(!(arguments[m]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function _s(m){for(var $=0;$<m.length;$++)m[$]=0}c.randomBytes=function(m){var $=new Uint8Array(m);return g($,m),$},c.secretbox=function(m,$,b){Wt(m,$,b),fs(b,$);for(var l=new Uint8Array(Xe+m.length),I=new Uint8Array(l.length),M=0;M<m.length;M++)l[M+Xe]=m[M];return De(I,l,l.length,$,b),I.subarray(lt)},c.secretbox.open=function(m,$,b){Wt(m,$,b),fs(b,$);for(var l=new Uint8Array(lt+m.length),I=new Uint8Array(l.length),M=0;M<m.length;M++)l[M+lt]=m[M];return l.length<32||le(I,l,l.length,$,b)!==0?null:I.subarray(Xe)},c.secretbox.keyLength=z,c.secretbox.nonceLength=Se,c.secretbox.overheadLength=lt,c.scalarMult=function(m,$){if(Wt(m,$),m.length!==z_)throw new Error("bad n size");if($.length!==Ut)throw new Error("bad p size");var b=new Uint8Array(Ut);return Vt(b,m,$),b},c.scalarMult.base=function(m){if(Wt(m),m.length!==z_)throw new Error("bad n size");var $=new Uint8Array(Ut);return Xt($,m),$},c.scalarMult.scalarLength=z_,c.scalarMult.groupElementLength=Ut,c.box=function(m,$,b,l){var I=c.box.before(b,l);return c.secretbox(m,$,I)},c.box.before=function(m,$){Wt(m,$),ws(m,$);var b=new Uint8Array(es);return Jt(b,m,$),b},c.box.after=c.secretbox,c.box.open=function(m,$,b,l){var I=c.box.before(b,l);return c.secretbox.open(m,$,I)},c.box.open.after=c.secretbox.open,c.box.keyPair=function(){var m=new Uint8Array(R_),$=new Uint8Array(L_);return Zt(m,$),{publicKey:m,secretKey:$}},c.box.keyPair.fromSecretKey=function(m){if(Wt(m),m.length!==L_)throw new Error("bad secret key size");var $=new Uint8Array(R_);return Xt($,m),{publicKey:$,secretKey:new Uint8Array(m)}},c.box.publicKeyLength=R_,c.box.secretKeyLength=L_,c.box.sharedKeyLength=es,c.box.nonceLength=F_,c.box.overheadLength=c.secretbox.overheadLength,c.sign=function(m,$){if(Wt(m,$),$.length!==A_)throw new Error("bad secret key size");var b=new Uint8Array(s_+m.length);return Ie(b,m,m.length,$),b},c.sign.open=function(m,$){if(Wt(m,$),$.length!==y_)throw new Error("bad public key size");var b=new Uint8Array(m.length),l=Ge(b,m,m.length,$);if(l<0)return null;for(var I=new Uint8Array(l),M=0;M<I.length;M++)I[M]=b[M];return I},c.sign.detached=function(m,$){for(var b=c.sign(m,$),l=new Uint8Array(s_),I=0;I<l.length;I++)l[I]=b[I];return l},c.sign.detached.verify=function(m,$,b){if(Wt(m,$,b),$.length!==s_)throw new Error("bad signature size");if(b.length!==y_)throw new Error("bad public key size");var l=new Uint8Array(s_+m.length),I=new Uint8Array(s_+m.length),M;for(M=0;M<s_;M++)l[M]=$[M];for(M=0;M<m.length;M++)l[M+s_]=m[M];return Ge(I,l,l.length,b)>=0},c.sign.keyPair=function(){var m=new Uint8Array(y_),$=new Uint8Array(A_);return p_(m,$),{publicKey:m,secretKey:$}},c.sign.keyPair.fromSecretKey=function(m){if(Wt(m),m.length!==A_)throw new Error("bad secret key size");for(var $=new Uint8Array(y_),b=0;b<$.length;b++)$[b]=m[32+b];return{publicKey:$,secretKey:new Uint8Array(m)}},c.sign.keyPair.fromSeed=function(m){if(Wt(m),m.length!==ts)throw new Error("bad seed size");for(var $=new Uint8Array(y_),b=new Uint8Array(A_),l=0;l<32;l++)b[l]=m[l];return p_($,b,!0),{publicKey:$,secretKey:b}},c.sign.publicKeyLength=y_,c.sign.secretKeyLength=A_,c.sign.seedLength=ts,c.sign.signatureLength=s_,c.hash=function(m){Wt(m);var $=new Uint8Array(c_);return Qt($,m,m.length),$},c.hash.hashLength=c_,c.verify=function(m,$){return Wt(m,$),m.length===0||$.length===0||m.length!==$.length?!1:L(m,0,$,0,m.length)===0},c.setPRNG=function(m){g=m},(function(){var m=typeof self<"u"?self.crypto||self.msCrypto:null;if(m&&m.getRandomValues){var $=65536;c.setPRNG(function(b,l){var I,M=new Uint8Array(l);for(I=0;I<l;I+=$)m.getRandomValues(M.subarray(I,I+Math.min(l-I,$)));for(I=0;I<l;I++)b[I]=M[I];_s(M)})}else m=s(4),m&&m.randomBytes&&c.setPRNG(function(b,l){var I,M=m.randomBytes(l);for(I=0;I<l;I++)b[I]=M[I];_s(M)})})()})(_.exports?_.exports:self.nacl=self.nacl||{})}),(function(_,o,s){_.exports=s(5).default}),(function(_,o){}),(function(_,o,s){s.r(o);var c=(function(){function i(a,r){this.lastId=0,this.prefix=a,this.name=r}return i.prototype.create=function(a){this.lastId++;var r=this.lastId,h=this.prefix+r,y=this.name+"["+r+"]",S=!1,X=function(){S||(a.apply(null,arguments),S=!0)};return this[r]=X,{number:r,id:h,name:y,callback:X}},i.prototype.remove=function(a){delete this[a.number]},i})(),u=new c("_pusher_script_","Pusher.ScriptReceivers"),g={VERSION:"7.6.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},d=g,p=(function(){function i(a){this.options=a,this.receivers=a.receivers||u,this.loading={}}return i.prototype.load=function(a,r,h){var y=this;if(y.loading[a]&&y.loading[a].length>0)y.loading[a].push(h);else{y.loading[a]=[h];var S=st.createScriptRequest(y.getPath(a,r)),X=y.receivers.create(function(ce){if(y.receivers.remove(X),y.loading[a]){var Me=y.loading[a];delete y.loading[a];for(var fe=function(Lt){Lt||S.cleanup()},rt=0;rt<Me.length;rt++)Me[rt](ce,fe)}});S.send(X)}},i.prototype.getRoot=function(a){var r,h=st.getDocument().location.protocol;return a&&a.useTLS||h==="https:"?r=this.options.cdn_https:r=this.options.cdn_http,r.replace(/\/*$/,"")+"/"+this.options.version},i.prototype.getPath=function(a,r){return this.getRoot(r)+"/"+a+this.options.suffix+".js"},i})(),x=p,f=new c("_pusher_dependencies","Pusher.DependenciesReceivers"),A=new x({cdn_http:d.cdn_http,cdn_https:d.cdn_https,version:d.VERSION,suffix:d.dependency_suffix,receivers:f}),T={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},P=function(i){var a="See:",r=T.urls[i];if(!r)return"";var h;return r.fullUrl?h=r.fullUrl:r.path&&(h=T.baseUrl+r.path),h?a+" "+h:""},E={buildLogSuffix:P},k;(function(i){i.UserAuthentication="user-authentication",i.ChannelAuthorization="channel-authorization"})(k||(k={}));var C=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),N=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),L=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),D=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),O=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),R=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),W=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),F=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),Z=(function(i){C(a,i);function a(r){var h=this.constructor,y=i.call(this,r)||this;return Object.setPrototypeOf(y,h.prototype),y}return a})(Error),G=(function(i){C(a,i);function a(r,h){var y=this.constructor,S=i.call(this,h)||this;return S.status=r,Object.setPrototypeOf(S,y.prototype),S}return a})(Error),H=function(i,a,r,h,y){var S=st.createXHR();S.open("POST",r.endpoint,!0),S.setRequestHeader("Content-Type","application/x-www-form-urlencoded");for(var X in r.headers)S.setRequestHeader(X,r.headers[X]);if(r.headersProvider!=null){var ce=r.headersProvider();for(var X in ce)S.setRequestHeader(X,ce[X])}return S.onreadystatechange=function(){if(S.readyState===4)if(S.status===200){var Me=void 0,fe=!1;try{Me=JSON.parse(S.responseText),fe=!0}catch{y(new G(200,"JSON returned from "+h.toString()+" endpoint was invalid, yet status code was 200. Data was: "+S.responseText),null)}fe&&y(null,Me)}else{var rt="";switch(h){case k.UserAuthentication:rt=E.buildLogSuffix("authenticationEndpoint");break;case k.ChannelAuthorization:rt="Clients must be authorized to join private or presence channels. "+E.buildLogSuffix("authorizationEndpoint");break}y(new G(S.status,"Unable to retrieve auth string from "+h.toString()+" endpoint - "+("received status: "+S.status+" from "+r.endpoint+". "+rt)),null)}},S.send(a),S},q=H;function K(i){return le(et(i))}var ee=String.fromCharCode,xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=function(i){var a=i.charCodeAt(0);return a<128?i:a<2048?ee(192|a>>>6)+ee(128|a&63):ee(224|a>>>12&15)+ee(128|a>>>6&63)+ee(128|a&63)},et=function(i){return i.replace(/[^\x00-\x7F]/g,Ne)},De=function(i){var a=[0,2,1][i.length%3],r=i.charCodeAt(0)<<16|(i.length>1?i.charCodeAt(1):0)<<8|(i.length>2?i.charCodeAt(2):0),h=[xe.charAt(r>>>18),xe.charAt(r>>>12&63),a>=2?"=":xe.charAt(r>>>6&63),a>=1?"=":xe.charAt(r&63)];return h.join("")},le=window.btoa||function(i){return i.replace(/[\s\S]{1,3}/g,De)},Ue=(function(){function i(a,r,h,y){var S=this;this.clear=r,this.timer=a(function(){S.timer&&(S.timer=y(S.timer))},h)}return i.prototype.isRunning=function(){return this.timer!==null},i.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},i})(),ie=Ue,ge=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})();function Te(i){window.clearTimeout(i)}function Pe(i){window.clearInterval(i)}var Fe=(function(i){ge(a,i);function a(r,h){return i.call(this,setTimeout,Te,r,function(y){return h(),null})||this}return a})(ie),ht=(function(i){ge(a,i);function a(r,h){return i.call(this,setInterval,Pe,r,function(y){return h(),y})||this}return a})(ie),Ye={now:function(){return Date.now?Date.now():new Date().valueOf()},defer:function(i){return new Fe(0,i)},method:function(i){var a=Array.prototype.slice.call(arguments,1);return function(r){return r[i].apply(r,a.concat(arguments))}}},pe=Ye;function $e(i){for(var a=[],r=1;r<arguments.length;r++)a[r-1]=arguments[r];for(var h=0;h<a.length;h++){var y=a[h];for(var S in y)y[S]&&y[S].constructor&&y[S].constructor===Object?i[S]=$e(i[S]||{},y[S]):i[S]=y[S]}return i}function $t(){for(var i=["Pusher"],a=0;a<arguments.length;a++)typeof arguments[a]=="string"?i.push(arguments[a]):i.push(t_(arguments[a]));return i.join(" : ")}function Ht(i,a){var r=Array.prototype.indexOf;if(i===null)return-1;if(r&&i.indexOf===r)return i.indexOf(a);for(var h=0,y=i.length;h<y;h++)if(i[h]===a)return h;return-1}function It(i,a){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&a(i[r],r,i)}function Vt(i){var a=[];return It(i,function(r,h){a.push(h)}),a}function Xt(i){var a=[];return It(i,function(r){a.push(r)}),a}function Zt(i,a,r){for(var h=0;h<i.length;h++)a.call(r||window,i[h],h,i)}function Jt(i,a){for(var r=[],h=0;h<i.length;h++)r.push(a(i[h],h,i,r));return r}function k_(i,a){var r={};return It(i,function(h,y){r[y]=a(h)}),r}function x_(i,a){a=a||function(y){return!!y};for(var r=[],h=0;h<i.length;h++)a(i[h],h,i,r)&&r.push(i[h]);return r}function C_(i,a){var r={};return It(i,function(h,y){(a&&a(h,y,i,r)||h)&&(r[y]=h)}),r}function q_(i){var a=[];return It(i,function(r,h){a.push([h,r])}),a}function g_(i,a){for(var r=0;r<i.length;r++)if(a(i[r],r,i))return!0;return!1}function I_(i,a){for(var r=0;r<i.length;r++)if(!a(i[r],r,i))return!1;return!0}function Qt(i){return k_(i,function(a){return typeof a=="object"&&(a=t_(a)),encodeURIComponent(K(a.toString()))})}function e_(i){var a=C_(i,function(h){return h!==void 0}),r=Jt(q_(Qt(a)),pe.method("join","=")).join("&");return r}function S_(i){var a=[],r=[];return(function h(y,S){var X,ce,Me;switch(typeof y){case"object":if(!y)return null;for(X=0;X<a.length;X+=1)if(a[X]===y)return{$ref:r[X]};if(a.push(y),r.push(S),Object.prototype.toString.apply(y)==="[object Array]")for(Me=[],X=0;X<y.length;X+=1)Me[X]=h(y[X],S+"["+X+"]");else{Me={};for(ce in y)Object.prototype.hasOwnProperty.call(y,ce)&&(Me[ce]=h(y[ce],S+"["+JSON.stringify(ce)+"]"))}return Me;case"number":case"string":case"boolean":return y}})(i,"$")}function t_(i){try{return JSON.stringify(i)}catch{return JSON.stringify(S_(i))}}var i_=(function(){function i(){this.globalLog=function(a){window.console&&window.console.log&&window.console.log(a)}}return i.prototype.debug=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];this.log(this.globalLog,a)},i.prototype.warn=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];this.log(this.globalLogWarn,a)},i.prototype.error=function(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];this.log(this.globalLogError,a)},i.prototype.globalLogWarn=function(a){window.console&&window.console.warn?window.console.warn(a):this.globalLog(a)},i.prototype.globalLogError=function(a){window.console&&window.console.error?window.console.error(a):this.globalLogWarn(a)},i.prototype.log=function(a){var r=$t.apply(this,arguments);if(V_.log)V_.log(r);else if(V_.logToConsole){var h=a.bind(this);h(r)}},i})(),yt=new i_,p_=function(i,a,r,h,y){(r.headers!==void 0||r.headersProvider!=null)&&yt.warn("To send headers with the "+h.toString()+" request, you must use AJAX, rather than JSONP.");var S=i.nextAuthCallbackID.toString();i.nextAuthCallbackID++;var X=i.getDocument(),ce=X.createElement("script");i.auth_callbacks[S]=function(rt){y(null,rt)};var Me="Pusher.auth_callbacks['"+S+"']";ce.src=r.endpoint+"?callback="+encodeURIComponent(Me)+"&"+a;var fe=X.getElementsByTagName("head")[0]||X.documentElement;fe.insertBefore(ce,fe.firstChild)},r_=p_,de=(function(){function i(a){this.src=a}return i.prototype.send=function(a){var r=this,h="Error loading "+r.src;r.script=document.createElement("script"),r.script.id=a.id,r.script.src=r.src,r.script.type="text/javascript",r.script.charset="UTF-8",r.script.addEventListener?(r.script.onerror=function(){a.callback(h)},r.script.onload=function(){a.callback(null)}):r.script.onreadystatechange=function(){(r.script.readyState==="loaded"||r.script.readyState==="complete")&&a.callback(null)},r.script.async===void 0&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(r.errorScript=document.createElement("script"),r.errorScript.id=a.id+"_error",r.errorScript.text=a.name+"('"+h+"');",r.script.async=r.errorScript.async=!1):r.script.async=!0;var y=document.getElementsByTagName("head")[0];y.insertBefore(r.script,y.firstChild),r.errorScript&&y.insertBefore(r.errorScript,r.script.nextSibling)},i.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},i})(),we=de,Ie=(function(){function i(a,r){this.url=a,this.data=r}return i.prototype.send=function(a){if(!this.request){var r=e_(this.data),h=this.url+"/"+a.number+"?"+r;this.request=st.createScriptRequest(h),this.request.send(a)}},i.prototype.cleanup=function(){this.request&&this.request.cleanup()},i})(),mt=Ie,Ge=function(i,a){return function(r,h){var y="http"+(a?"s":"")+"://",S=y+(i.host||i.options.host)+i.options.path,X=st.createJSONPRequest(S,r),ce=st.ScriptReceivers.create(function(Me,fe){u.remove(ce),X.cleanup(),fe&&fe.host&&(i.host=fe.host),h&&h(Me,fe)});X.send(ce)}},z={name:"jsonp",getAgent:Ge},Se=z;function Xe(i,a,r){var h=i+(a.useTLS?"s":""),y=a.useTLS?a.hostTLS:a.hostNonTLS;return h+"://"+y+r}function lt(i,a){var r="/app/"+i,h="?protocol="+d.PROTOCOL+"&client=js&version="+d.VERSION+(a?"&"+a:"");return r+h}var Ut={getInitial:function(i,a){var r=(a.httpPath||"")+lt(i,"flash=false");return Xe("ws",a,r)}},z_={getInitial:function(i,a){var r=(a.httpPath||"/pusher")+lt(i);return Xe("http",a,r)}},R_={getInitial:function(i,a){return Xe("http",a,a.httpPath||"/pusher")},getPath:function(i,a){return lt(i)}},L_=(function(){function i(){this._callbacks={}}return i.prototype.get=function(a){return this._callbacks[F_(a)]},i.prototype.add=function(a,r,h){var y=F_(a);this._callbacks[y]=this._callbacks[y]||[],this._callbacks[y].push({fn:r,context:h})},i.prototype.remove=function(a,r,h){if(!a&&!r&&!h){this._callbacks={};return}var y=a?[F_(a)]:Vt(this._callbacks);r||h?this.removeCallback(y,r,h):this.removeAllCallbacks(y)},i.prototype.removeCallback=function(a,r,h){Zt(a,function(y){this._callbacks[y]=x_(this._callbacks[y]||[],function(S){return r&&r!==S.fn||h&&h!==S.context}),this._callbacks[y].length===0&&delete this._callbacks[y]},this)},i.prototype.removeAllCallbacks=function(a){Zt(a,function(r){delete this._callbacks[r]},this)},i})(),es=L_;function F_(i){return"_"+i}var Ks=(function(){function i(a){this.callbacks=new es,this.global_callbacks=[],this.failThrough=a}return i.prototype.bind=function(a,r,h){return this.callbacks.add(a,r,h),this},i.prototype.bind_global=function(a){return this.global_callbacks.push(a),this},i.prototype.unbind=function(a,r,h){return this.callbacks.remove(a,r,h),this},i.prototype.unbind_global=function(a){return a?(this.global_callbacks=x_(this.global_callbacks||[],function(r){return r!==a}),this):(this.global_callbacks=[],this)},i.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},i.prototype.emit=function(a,r,h){for(var y=0;y<this.global_callbacks.length;y++)this.global_callbacks[y](a,r);var S=this.callbacks.get(a),X=[];if(h?X.push(r,h):r&&X.push(r),S&&S.length>0)for(var y=0;y<S.length;y++)S[y].fn.apply(S[y].context||window,X);else this.failThrough&&this.failThrough(a,r);return this},i})(),__=Ks,s_=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),y_=(function(i){s_(a,i);function a(r,h,y,S,X){var ce=i.call(this)||this;return ce.initialize=st.transportConnectionInitializer,ce.hooks=r,ce.name=h,ce.priority=y,ce.key=S,ce.options=X,ce.state="new",ce.timeline=X.timeline,ce.activityTimeout=X.activityTimeout,ce.id=ce.timeline.generateUniqueID(),ce}return a.prototype.handlesActivityChecks=function(){return!!this.hooks.handlesActivityChecks},a.prototype.supportsPing=function(){return!!this.hooks.supportsPing},a.prototype.connect=function(){var r=this;if(this.socket||this.state!=="initialized")return!1;var h=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(h,this.options)}catch(y){return pe.defer(function(){r.onError(y),r.changeState("closed")}),!1}return this.bindListeners(),yt.debug("Connecting",{transport:this.name,url:h}),this.changeState("connecting"),!0},a.prototype.close=function(){return this.socket?(this.socket.close(),!0):!1},a.prototype.send=function(r){var h=this;return this.state==="open"?(pe.defer(function(){h.socket&&h.socket.send(r)}),!0):!1},a.prototype.ping=function(){this.state==="open"&&this.supportsPing()&&this.socket.ping()},a.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},a.prototype.onError=function(r){this.emit("error",{type:"WebSocketError",error:r}),this.timeline.error(this.buildTimelineMessage({error:r.toString()}))},a.prototype.onClose=function(r){r?this.changeState("closed",{code:r.code,reason:r.reason,wasClean:r.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},a.prototype.onMessage=function(r){this.emit("message",r)},a.prototype.onActivity=function(){this.emit("activity")},a.prototype.bindListeners=function(){var r=this;this.socket.onopen=function(){r.onOpen()},this.socket.onerror=function(h){r.onError(h)},this.socket.onclose=function(h){r.onClose(h)},this.socket.onmessage=function(h){r.onMessage(h)},this.supportsPing()&&(this.socket.onactivity=function(){r.onActivity()})},a.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},a.prototype.changeState=function(r,h){this.state=r,this.timeline.info(this.buildTimelineMessage({state:r,params:h})),this.emit(r,h)},a.prototype.buildTimelineMessage=function(r){return $e({cid:this.id},r)},a})(__),A_=y_,ts=(function(){function i(a){this.hooks=a}return i.prototype.isSupported=function(a){return this.hooks.isSupported(a)},i.prototype.createConnection=function(a,r,h,y){return new A_(this.hooks,a,r,h,y)},i})(),c_=ts,fs=new c_({urls:Ut,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return!!st.getWebSocketAPI()},isSupported:function(){return!!st.getWebSocketAPI()},getSocket:function(i){return st.createWebSocket(i)}}),ws={urls:z_,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Wt=$e({getSocket:function(i){return st.HTTPFactory.createStreamingSocket(i)}},ws),_s=$e({getSocket:function(i){return st.HTTPFactory.createPollingSocket(i)}},ws),m={isSupported:function(){return st.isXHRSupported()}},$=new c_($e({},Wt,m)),b=new c_($e({},_s,m)),l={ws:fs,xhr_streaming:$,xhr_polling:b},I=l,M=new c_({file:"sockjs",urls:R_,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return window.SockJS!==void 0},getSocket:function(i,a){return new window.SockJS(i,null,{js_path:A.getPath("sockjs",{useTLS:a.useTLS}),ignore_null_origin:a.ignoreNullOrigin})},beforeOpen:function(i,a){i.send(JSON.stringify({path:a}))}}),B={isSupported:function(i){var a=st.isXDRSupported(i.useTLS);return a}},_e=new c_($e({},Wt,B)),re=new c_($e({},_s,B));I.xdr_streaming=_e,I.xdr_polling=re,I.sockjs=M;var Ae=I,me=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),gt=(function(i){me(a,i);function a(){var r=i.call(this)||this,h=r;return window.addEventListener!==void 0&&(window.addEventListener("online",function(){h.emit("online")},!1),window.addEventListener("offline",function(){h.emit("offline")},!1)),r}return a.prototype.isOnline=function(){return window.navigator.onLine===void 0?!0:window.navigator.onLine},a})(__),ve=new gt,ze=(function(){function i(a,r,h){this.manager=a,this.transport=r,this.minPingDelay=h.minPingDelay,this.maxPingDelay=h.maxPingDelay,this.pingDelay=void 0}return i.prototype.createConnection=function(a,r,h,y){var S=this;y=$e({},y,{activityTimeout:this.pingDelay});var X=this.transport.createConnection(a,r,h,y),ce=null,Me=function(){X.unbind("open",Me),X.bind("closed",fe),ce=pe.now()},fe=function(rt){if(X.unbind("closed",fe),rt.code===1002||rt.code===1003)S.manager.reportDeath();else if(!rt.wasClean&&ce){var Lt=pe.now()-ce;Lt<2*S.maxPingDelay&&(S.manager.reportDeath(),S.pingDelay=Math.max(Lt/2,S.minPingDelay))}};return X.bind("open",Me),X},i.prototype.isSupported=function(a){return this.manager.isAlive()&&this.transport.isSupported(a)},i})(),He=ze,Je={decodeMessage:function(i){try{var a=JSON.parse(i.data),r=a.data;if(typeof r=="string")try{r=JSON.parse(a.data)}catch{}var h={event:a.event,channel:a.channel,data:r};return a.user_id&&(h.user_id=a.user_id),h}catch(y){throw{type:"MessageParseError",error:y,data:i.data}}},encodeMessage:function(i){return JSON.stringify(i)},processHandshake:function(i){var a=Je.decodeMessage(i);if(a.event==="pusher:connection_established"){if(!a.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:a.data.socket_id,activityTimeout:a.data.activity_timeout*1e3}}else{if(a.event==="pusher:error")return{action:this.getCloseAction(a.data),error:this.getCloseError(a.data)};throw"Invalid handshake"}},getCloseAction:function(i){return i.code<4e3?i.code>=1002&&i.code<=1004?"backoff":null:i.code===4e3?"tls_only":i.code<4100?"refused":i.code<4200?"backoff":i.code<4300?"retry":"refused"},getCloseError:function(i){return i.code!==1e3&&i.code!==1001?{type:"PusherError",data:{code:i.code,message:i.reason||i.message}}:null}},Be=Je,Ve=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Ze=(function(i){Ve(a,i);function a(r,h){var y=i.call(this)||this;return y.id=r,y.transport=h,y.activityTimeout=h.activityTimeout,y.bindListeners(),y}return a.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},a.prototype.send=function(r){return this.transport.send(r)},a.prototype.send_event=function(r,h,y){var S={event:r,data:h};return y&&(S.channel=y),yt.debug("Event sent",S),this.send(Be.encodeMessage(S))},a.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},a.prototype.close=function(){this.transport.close()},a.prototype.bindListeners=function(){var r=this,h={message:function(S){var X;try{X=Be.decodeMessage(S)}catch(ce){r.emit("error",{type:"MessageParseError",error:ce,data:S.data})}if(X!==void 0){switch(yt.debug("Event recd",X),X.event){case"pusher:error":r.emit("error",{type:"PusherError",data:X.data});break;case"pusher:ping":r.emit("ping");break;case"pusher:pong":r.emit("pong");break}r.emit("message",X)}},activity:function(){r.emit("activity")},error:function(S){r.emit("error",S)},closed:function(S){y(),S&&S.code&&r.handleCloseEvent(S),r.transport=null,r.emit("closed")}},y=function(){It(h,function(S,X){r.transport.unbind(X,S)})};It(h,function(S,X){r.transport.bind(X,S)})},a.prototype.handleCloseEvent=function(r){var h=Be.getCloseAction(r),y=Be.getCloseError(r);y&&this.emit("error",y),h&&this.emit(h,{action:h,error:y})},a})(__),We=Ze,be=(function(){function i(a,r){this.transport=a,this.callback=r,this.bindListeners()}return i.prototype.close=function(){this.unbindListeners(),this.transport.close()},i.prototype.bindListeners=function(){var a=this;this.onMessage=function(r){a.unbindListeners();var h;try{h=Be.processHandshake(r)}catch(y){a.finish("error",{error:y}),a.transport.close();return}h.action==="connected"?a.finish("connected",{connection:new We(h.id,a.transport),activityTimeout:h.activityTimeout}):(a.finish(h.action,{error:h.error}),a.transport.close())},this.onClosed=function(r){a.unbindListeners();var h=Be.getCloseAction(r)||"backoff",y=Be.getCloseError(r);a.finish(h,{error:y})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},i.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},i.prototype.finish=function(a,r){this.callback($e({transport:this.transport,action:a},r))},i})(),je=be,ye=(function(){function i(a,r){this.timeline=a,this.options=r||{}}return i.prototype.send=function(a,r){this.timeline.isEmpty()||this.timeline.send(st.TimelineTransport.getAgent(this,a),r)},i})(),ke=ye,Ce=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),he=(function(i){Ce(a,i);function a(r,h){var y=i.call(this,function(S,X){yt.debug("No callbacks on "+r+" for "+S)})||this;return y.name=r,y.pusher=h,y.subscribed=!1,y.subscriptionPending=!1,y.subscriptionCancelled=!1,y}return a.prototype.authorize=function(r,h){return h(null,{auth:""})},a.prototype.trigger=function(r,h){if(r.indexOf("client-")!==0)throw new N("Event '"+r+"' does not start with 'client-'");if(!this.subscribed){var y=E.buildLogSuffix("triggeringClientEvents");yt.warn("Client event triggered before channel 'subscription_succeeded' event . "+y)}return this.pusher.send_event(r,h,this.name)},a.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},a.prototype.handleEvent=function(r){var h=r.event,y=r.data;if(h==="pusher_internal:subscription_succeeded")this.handleSubscriptionSucceededEvent(r);else if(h==="pusher_internal:subscription_count")this.handleSubscriptionCountEvent(r);else if(h.indexOf("pusher_internal:")!==0){var S={};this.emit(h,y,S)}},a.prototype.handleSubscriptionSucceededEvent=function(r){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",r.data)},a.prototype.handleSubscriptionCountEvent=function(r){r.data.subscription_count&&(this.subscriptionCount=r.data.subscription_count),this.emit("pusher:subscription_count",r.data)},a.prototype.subscribe=function(){var r=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,function(h,y){h?(r.subscriptionPending=!1,yt.error(h.toString()),r.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:h.message},h instanceof G?{status:h.status}:{}))):r.pusher.send_event("pusher:subscribe",{auth:y.auth,channel_data:y.channel_data,channel:r.name})}))},a.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},a.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},a.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},a})(__),U=he,Y=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),oe=(function(i){Y(a,i);function a(){return i!==null&&i.apply(this,arguments)||this}return a.prototype.authorize=function(r,h){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:r},h)},a})(U),te=oe,se=(function(){function i(){this.reset()}return i.prototype.get=function(a){return Object.prototype.hasOwnProperty.call(this.members,a)?{id:a,info:this.members[a]}:null},i.prototype.each=function(a){var r=this;It(this.members,function(h,y){a(r.get(y))})},i.prototype.setMyID=function(a){this.myID=a},i.prototype.onSubscription=function(a){this.members=a.presence.hash,this.count=a.presence.count,this.me=this.get(this.myID)},i.prototype.addMember=function(a){return this.get(a.user_id)===null&&this.count++,this.members[a.user_id]=a.user_info,this.get(a.user_id)},i.prototype.removeMember=function(a){var r=this.get(a.user_id);return r&&(delete this.members[a.user_id],this.count--),r},i.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},i})(),ae=se,Re=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Qe=function(i,a,r,h){function y(S){return S instanceof r?S:new r(function(X){X(S)})}return new(r||(r=Promise))(function(S,X){function ce(rt){try{fe(h.next(rt))}catch(Lt){X(Lt)}}function Me(rt){try{fe(h.throw(rt))}catch(Lt){X(Lt)}}function fe(rt){rt.done?S(rt.value):y(rt.value).then(ce,Me)}fe((h=h.apply(i,a||[])).next())})},tt=function(i,a){var r={label:0,sent:function(){if(S[0]&1)throw S[1];return S[1]},trys:[],ops:[]},h,y,S,X;return X={next:ce(0),throw:ce(1),return:ce(2)},typeof Symbol=="function"&&(X[Symbol.iterator]=function(){return this}),X;function ce(fe){return function(rt){return Me([fe,rt])}}function Me(fe){if(h)throw new TypeError("Generator is already executing.");for(;r;)try{if(h=1,y&&(S=fe[0]&2?y.return:fe[0]?y.throw||((S=y.return)&&S.call(y),0):y.next)&&!(S=S.call(y,fe[1])).done)return S;switch(y=0,S&&(fe=[fe[0]&2,S.value]),fe[0]){case 0:case 1:S=fe;break;case 4:return r.label++,{value:fe[1],done:!1};case 5:r.label++,y=fe[1],fe=[0];continue;case 7:fe=r.ops.pop(),r.trys.pop();continue;default:if(S=r.trys,!(S=S.length>0&&S[S.length-1])&&(fe[0]===6||fe[0]===2)){r=0;continue}if(fe[0]===3&&(!S||fe[1]>S[0]&&fe[1]<S[3])){r.label=fe[1];break}if(fe[0]===6&&r.label<S[1]){r.label=S[1],S=fe;break}if(S&&r.label<S[2]){r.label=S[2],r.ops.push(fe);break}S[2]&&r.ops.pop(),r.trys.pop();continue}fe=a.call(i,r)}catch(rt){fe=[6,rt],y=0}finally{h=S=0}if(fe[0]&5)throw fe[1];return{value:fe[0]?fe[1]:void 0,done:!0}}},Ke=(function(i){Re(a,i);function a(r,h){var y=i.call(this,r,h)||this;return y.members=new ae,y}return a.prototype.authorize=function(r,h){var y=this;i.prototype.authorize.call(this,r,function(S,X){return Qe(y,void 0,void 0,function(){var ce,Me;return tt(this,function(fe){switch(fe.label){case 0:return S?[3,3]:(X=X,X.channel_data==null?[3,1]:(ce=JSON.parse(X.channel_data),this.members.setMyID(ce.user_id),[3,3]));case 1:return[4,this.pusher.user.signinDonePromise];case 2:if(fe.sent(),this.pusher.user.user_data!=null)this.members.setMyID(this.pusher.user.user_data.id);else return Me=E.buildLogSuffix("authorizationEndpoint"),yt.error("Invalid auth response for channel '"+this.name+"', "+("expected 'channel_data' field. "+Me+", ")+"or the user should be signed in."),h("Invalid auth response"),[2];fe.label=3;case 3:return h(S,X),[2]}})})})},a.prototype.handleEvent=function(r){var h=r.event;if(h.indexOf("pusher_internal:")===0)this.handleInternalEvent(r);else{var y=r.data,S={};r.user_id&&(S.user_id=r.user_id),this.emit(h,y,S)}},a.prototype.handleInternalEvent=function(r){var h=r.event,y=r.data;switch(h){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(r);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(r);break;case"pusher_internal:member_added":var S=this.members.addMember(y);this.emit("pusher:member_added",S);break;case"pusher_internal:member_removed":var X=this.members.removeMember(y);X&&this.emit("pusher:member_removed",X);break}},a.prototype.handleSubscriptionSucceededEvent=function(r){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(r.data),this.emit("pusher:subscription_succeeded",this.members))},a.prototype.disconnect=function(){this.members.reset(),i.prototype.disconnect.call(this)},a})(te),j=Ke,nt=s(1),it=s(0),pt=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),_t=(function(i){pt(a,i);function a(r,h,y){var S=i.call(this,r,h)||this;return S.key=null,S.nacl=y,S}return a.prototype.authorize=function(r,h){var y=this;i.prototype.authorize.call(this,r,function(S,X){if(S){h(S,X);return}var ce=X.shared_secret;if(!ce){h(new Error("No shared_secret key in auth payload for encrypted channel: "+y.name),null);return}y.key=Object(it.decode)(ce),delete X.shared_secret,h(null,X)})},a.prototype.trigger=function(r,h){throw new W("Client events are not currently supported for encrypted channels")},a.prototype.handleEvent=function(r){var h=r.event,y=r.data;if(h.indexOf("pusher_internal:")===0||h.indexOf("pusher:")===0){i.prototype.handleEvent.call(this,r);return}this.handleEncryptedEvent(h,y)},a.prototype.handleEncryptedEvent=function(r,h){var y=this;if(!this.key){yt.debug("Received encrypted event before key has been retrieved from the authEndpoint");return}if(!h.ciphertext||!h.nonce){yt.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+h);return}var S=Object(it.decode)(h.ciphertext);if(S.length<this.nacl.secretbox.overheadLength){yt.error("Expected encrypted event ciphertext length to be "+this.nacl.secretbox.overheadLength+", got: "+S.length);return}var X=Object(it.decode)(h.nonce);if(X.length<this.nacl.secretbox.nonceLength){yt.error("Expected encrypted event nonce length to be "+this.nacl.secretbox.nonceLength+", got: "+X.length);return}var ce=this.nacl.secretbox.open(S,X,this.key);if(ce===null){yt.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),this.authorize(this.pusher.connection.socket_id,function(Me,fe){if(Me){yt.error("Failed to make a request to the authEndpoint: "+fe+". Unable to fetch new key, so dropping encrypted event");return}if(ce=y.nacl.secretbox.open(S,X,y.key),ce===null){yt.error("Failed to decrypt event with new key. Dropping encrypted event");return}y.emit(r,y.getDataToEmit(ce))});return}this.emit(r,this.getDataToEmit(ce))},a.prototype.getDataToEmit=function(r){var h=Object(nt.decode)(r);try{return JSON.parse(h)}catch{return h}},a})(te),dt=_t,ut=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Tt=(function(i){ut(a,i);function a(r,h){var y=i.call(this)||this;y.state="initialized",y.connection=null,y.key=r,y.options=h,y.timeline=y.options.timeline,y.usingTLS=y.options.useTLS,y.errorCallbacks=y.buildErrorCallbacks(),y.connectionCallbacks=y.buildConnectionCallbacks(y.errorCallbacks),y.handshakeCallbacks=y.buildHandshakeCallbacks(y.errorCallbacks);var S=st.getNetwork();return S.bind("online",function(){y.timeline.info({netinfo:"online"}),(y.state==="connecting"||y.state==="unavailable")&&y.retryIn(0)}),S.bind("offline",function(){y.timeline.info({netinfo:"offline"}),y.connection&&y.sendActivityCheck()}),y.updateStrategy(),y}return a.prototype.connect=function(){if(!(this.connection||this.runner)){if(!this.strategy.isSupported()){this.updateState("failed");return}this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()}},a.prototype.send=function(r){return this.connection?this.connection.send(r):!1},a.prototype.send_event=function(r,h,y){return this.connection?this.connection.send_event(r,h,y):!1},a.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},a.prototype.isUsingTLS=function(){return this.usingTLS},a.prototype.startConnecting=function(){var r=this,h=function(y,S){y?r.runner=r.strategy.connect(0,h):S.action==="error"?(r.emit("error",{type:"HandshakeError",error:S.error}),r.timeline.error({handshakeError:S.error})):(r.abortConnecting(),r.handshakeCallbacks[S.action](S))};this.runner=this.strategy.connect(0,h)},a.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},a.prototype.disconnectInternally=function(){if(this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection){var r=this.abandonConnection();r.close()}},a.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},a.prototype.retryIn=function(r){var h=this;this.timeline.info({action:"retry",delay:r}),r>0&&this.emit("connecting_in",Math.round(r/1e3)),this.retryTimer=new Fe(r||0,function(){h.disconnectInternally(),h.connect()})},a.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},a.prototype.setUnavailableTimer=function(){var r=this;this.unavailableTimer=new Fe(this.options.unavailableTimeout,function(){r.updateState("unavailable")})},a.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},a.prototype.sendActivityCheck=function(){var r=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new Fe(this.options.pongTimeout,function(){r.timeline.error({pong_timed_out:r.options.pongTimeout}),r.retryIn(0)})},a.prototype.resetActivityCheck=function(){var r=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new Fe(this.activityTimeout,function(){r.sendActivityCheck()}))},a.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},a.prototype.buildConnectionCallbacks=function(r){var h=this;return $e({},r,{message:function(y){h.resetActivityCheck(),h.emit("message",y)},ping:function(){h.send_event("pusher:pong",{})},activity:function(){h.resetActivityCheck()},error:function(y){h.emit("error",y)},closed:function(){h.abandonConnection(),h.shouldRetry()&&h.retryIn(1e3)}})},a.prototype.buildHandshakeCallbacks=function(r){var h=this;return $e({},r,{connected:function(y){h.activityTimeout=Math.min(h.options.activityTimeout,y.activityTimeout,y.connection.activityTimeout||1/0),h.clearUnavailableTimer(),h.setConnection(y.connection),h.socket_id=h.connection.id,h.updateState("connected",{socket_id:h.socket_id})}})},a.prototype.buildErrorCallbacks=function(){var r=this,h=function(y){return function(S){S.error&&r.emit("error",{type:"WebSocketError",error:S.error}),y(S)}};return{tls_only:h(function(){r.usingTLS=!0,r.updateStrategy(),r.retryIn(0)}),refused:h(function(){r.disconnect()}),backoff:h(function(){r.retryIn(1e3)}),retry:h(function(){r.retryIn(0)})}},a.prototype.setConnection=function(r){this.connection=r;for(var h in this.connectionCallbacks)this.connection.bind(h,this.connectionCallbacks[h]);this.resetActivityCheck()},a.prototype.abandonConnection=function(){if(this.connection){this.stopActivityCheck();for(var r in this.connectionCallbacks)this.connection.unbind(r,this.connectionCallbacks[r]);var h=this.connection;return this.connection=null,h}},a.prototype.updateState=function(r,h){var y=this.state;if(this.state=r,y!==r){var S=r;S==="connected"&&(S+=" with new socket ID "+h.socket_id),yt.debug("State changed",y+" -> "+S),this.timeline.info({state:r,params:h}),this.emit("state_change",{previous:y,current:r}),this.emit(r,h)}},a.prototype.shouldRetry=function(){return this.state==="connecting"||this.state==="connected"},a})(__),wt=Tt,St=(function(){function i(){this.channels={}}return i.prototype.add=function(a,r){return this.channels[a]||(this.channels[a]=Et(a,r)),this.channels[a]},i.prototype.all=function(){return Xt(this.channels)},i.prototype.find=function(a){return this.channels[a]},i.prototype.remove=function(a){var r=this.channels[a];return delete this.channels[a],r},i.prototype.disconnect=function(){It(this.channels,function(a){a.disconnect()})},i})(),At=St;function Et(i,a){if(i.indexOf("private-encrypted-")===0){if(a.config.nacl)return xt.createEncryptedChannel(i,a,a.config.nacl);var r="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",h=E.buildLogSuffix("encryptedChannelSupport");throw new W(r+". "+h)}else{if(i.indexOf("private-")===0)return xt.createPrivateChannel(i,a);if(i.indexOf("presence-")===0)return xt.createPresenceChannel(i,a);if(i.indexOf("#")===0)throw new L('Cannot create a channel with name "'+i+'".');return xt.createChannel(i,a)}}var qt={createChannels:function(){return new At},createConnectionManager:function(i,a){return new wt(i,a)},createChannel:function(i,a){return new U(i,a)},createPrivateChannel:function(i,a){return new te(i,a)},createPresenceChannel:function(i,a){return new j(i,a)},createEncryptedChannel:function(i,a,r){return new dt(i,a,r)},createTimelineSender:function(i,a){return new ke(i,a)},createHandshake:function(i,a){return new je(i,a)},createAssistantToTheTransportManager:function(i,a,r){return new He(i,a,r)}},xt=qt,Gt=(function(){function i(a){this.options=a||{},this.livesLeft=this.options.lives||1/0}return i.prototype.getAssistant=function(a){return xt.createAssistantToTheTransportManager(this,a,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},i.prototype.isAlive=function(){return this.livesLeft>0},i.prototype.reportDeath=function(){this.livesLeft-=1},i})(),Bt=Gt,Pc=(function(){function i(a,r){this.strategies=a,this.loop=!!r.loop,this.failFast=!!r.failFast,this.timeout=r.timeout,this.timeoutLimit=r.timeoutLimit}return i.prototype.isSupported=function(){return g_(this.strategies,pe.method("isSupported"))},i.prototype.connect=function(a,r){var h=this,y=this.strategies,S=0,X=this.timeout,ce=null,Me=function(fe,rt){rt?r(null,rt):(S=S+1,h.loop&&(S=S%y.length),S<y.length?(X&&(X=X*2,h.timeoutLimit&&(X=Math.min(X,h.timeoutLimit))),ce=h.tryStrategy(y[S],a,{timeout:X,failFast:h.failFast},Me)):r(!0))};return ce=this.tryStrategy(y[S],a,{timeout:X,failFast:this.failFast},Me),{abort:function(){ce.abort()},forceMinPriority:function(fe){a=fe,ce&&ce.forceMinPriority(fe)}}},i.prototype.tryStrategy=function(a,r,h,y){var S=null,X=null;return h.timeout>0&&(S=new Fe(h.timeout,function(){X.abort(),y(!0)})),X=a.connect(r,function(ce,Me){ce&&S&&S.isRunning()&&!h.failFast||(S&&S.ensureAborted(),y(ce,Me))}),{abort:function(){S&&S.ensureAborted(),X.abort()},forceMinPriority:function(ce){X.forceMinPriority(ce)}}},i})(),M_=Pc,qc=(function(){function i(a){this.strategies=a}return i.prototype.isSupported=function(){return g_(this.strategies,pe.method("isSupported"))},i.prototype.connect=function(a,r){return Rc(this.strategies,a,function(h,y){return function(S,X){if(y[h].error=S,S){Lc(y)&&r(!0);return}Zt(y,function(ce){ce.forceMinPriority(X.transport.priority)}),r(null,X)}})},i})(),en=qc;function Rc(i,a,r){var h=Jt(i,function(y,S,X,ce){return y.connect(a,r(S,ce))});return{abort:function(){Zt(h,Mc)},forceMinPriority:function(y){Zt(h,function(S){S.forceMinPriority(y)})}}}function Lc(i){return I_(i,function(a){return!!a.error})}function Mc(i){!i.error&&!i.aborted&&(i.abort(),i.aborted=!0)}var Dc=(function(){function i(a,r,h){this.strategy=a,this.transports=r,this.ttl=h.ttl||1800*1e3,this.usingTLS=h.useTLS,this.timeline=h.timeline}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(a,r){var h=this.usingTLS,y=Oc(h),S=[this.strategy];if(y&&y.timestamp+this.ttl>=pe.now()){var X=this.transports[y.transport];X&&(this.timeline.info({cached:!0,transport:y.transport,latency:y.latency}),S.push(new M_([X],{timeout:y.latency*2+1e3,failFast:!0})))}var ce=pe.now(),Me=S.pop().connect(a,function fe(rt,Lt){rt?(eo(h),S.length>0?(ce=pe.now(),Me=S.pop().connect(a,fe)):r(rt)):(Gc(h,Lt.transport.name,pe.now()-ce),r(null,Lt))});return{abort:function(){Me.abort()},forceMinPriority:function(fe){a=fe,Me&&Me.forceMinPriority(fe)}}},i})(),Bc=Dc;function tn(i){return"pusherTransport"+(i?"TLS":"NonTLS")}function Oc(i){var a=st.getLocalStorage();if(a)try{var r=a[tn(i)];if(r)return JSON.parse(r)}catch{eo(i)}return null}function Gc(i,a,r){var h=st.getLocalStorage();if(h)try{h[tn(i)]=t_({timestamp:pe.now(),transport:a,latency:r})}catch{}}function eo(i){var a=st.getLocalStorage();if(a)try{delete a[tn(i)]}catch{}}var zc=(function(){function i(a,r){var h=r.delay;this.strategy=a,this.options={delay:h}}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(a,r){var h=this.strategy,y,S=new Fe(this.options.delay,function(){y=h.connect(a,r)});return{abort:function(){S.ensureAborted(),y&&y.abort()},forceMinPriority:function(X){a=X,y&&y.forceMinPriority(X)}}},i})(),vs=zc,Fc=(function(){function i(a,r,h){this.test=a,this.trueBranch=r,this.falseBranch=h}return i.prototype.isSupported=function(){var a=this.test()?this.trueBranch:this.falseBranch;return a.isSupported()},i.prototype.connect=function(a,r){var h=this.test()?this.trueBranch:this.falseBranch;return h.connect(a,r)},i})(),ss=Fc,Hc=(function(){function i(a){this.strategy=a}return i.prototype.isSupported=function(){return this.strategy.isSupported()},i.prototype.connect=function(a,r){var h=this.strategy.connect(a,function(y,S){S&&h.abort(),r(y,S)});return h},i})(),Vc=Hc;function ns(i){return function(){return i.isSupported()}}var Wc=function(i,a,r){var h={};function y(mo,_d,sd,nd,od){var go=r(i,mo,_d,sd,nd,od);return h[mo]=go,go}var S=Object.assign({},a,{hostNonTLS:i.wsHost+":"+i.wsPort,hostTLS:i.wsHost+":"+i.wssPort,httpPath:i.wsPath}),X=Object.assign({},S,{useTLS:!0}),ce=Object.assign({},a,{hostNonTLS:i.httpHost+":"+i.httpPort,hostTLS:i.httpHost+":"+i.httpsPort,httpPath:i.httpPath}),Me={loop:!0,timeout:15e3,timeoutLimit:6e4},fe=new Bt({lives:2,minPingDelay:1e4,maxPingDelay:i.activityTimeout}),rt=new Bt({lives:2,minPingDelay:1e4,maxPingDelay:i.activityTimeout}),Lt=y("ws","ws",3,S,fe),l_=y("wss","ws",3,X,fe),Jl=y("sockjs","sockjs",1,ce),io=y("xhr_streaming","xhr_streaming",1,ce,rt),Ql=y("xdr_streaming","xdr_streaming",1,ce,rt),ro=y("xhr_polling","xhr_polling",1,ce),Kl=y("xdr_polling","xdr_polling",1,ce),co=new M_([Lt],Me),ed=new M_([l_],Me),td=new M_([Jl],Me),lo=new M_([new ss(ns(io),io,Ql)],Me),uo=new M_([new ss(ns(ro),ro,Kl)],Me),ho=new M_([new ss(ns(lo),new en([lo,new vs(uo,{delay:4e3})]),uo)],Me),nn=new ss(ns(ho),ho,td),on;return a.useTLS?on=new en([co,new vs(nn,{delay:2e3})]):on=new en([co,new vs(ed,{delay:2e3}),new vs(nn,{delay:5e3})]),new Bc(new Vc(new ss(ns(Lt),on,nn)),h,{ttl:18e5,timeline:a.timeline,useTLS:a.useTLS})},Uc=Wc,Yc=(function(){var i=this;i.timeline.info(i.buildTimelineMessage({transport:i.name+(i.options.useTLS?"s":"")})),i.hooks.isInitialized()?i.changeState("initialized"):i.hooks.file?(i.changeState("initializing"),A.load(i.hooks.file,{useTLS:i.options.useTLS},function(a,r){i.hooks.isInitialized()?(i.changeState("initialized"),r(!0)):(a&&i.onError(a),i.onClose(),r(!1))})):i.onClose()}),Xc={getRequest:function(i){var a=new window.XDomainRequest;return a.ontimeout=function(){i.emit("error",new D),i.close()},a.onerror=function(r){i.emit("error",r),i.close()},a.onprogress=function(){a.responseText&&a.responseText.length>0&&i.onChunk(200,a.responseText)},a.onload=function(){a.responseText&&a.responseText.length>0&&i.onChunk(200,a.responseText),i.emit("finished",200),i.close()},a},abortRequest:function(i){i.ontimeout=i.onerror=i.onprogress=i.onload=null,i.abort()}},Zc=Xc,Jc=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Qc=256*1024,Kc=(function(i){Jc(a,i);function a(r,h,y){var S=i.call(this)||this;return S.hooks=r,S.method=h,S.url=y,S}return a.prototype.start=function(r){var h=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){h.close()},st.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(r)},a.prototype.close=function(){this.unloader&&(st.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},a.prototype.onChunk=function(r,h){for(;;){var y=this.advanceBuffer(h);if(y)this.emit("chunk",{status:r,data:y});else break}this.isBufferTooLong(h)&&this.emit("buffer_too_long")},a.prototype.advanceBuffer=function(r){var h=r.slice(this.position),y=h.indexOf(`
|
|
24
24
|
`);return y!==-1?(this.position+=y+1,h.slice(0,y)):null},a.prototype.isBufferTooLong=function(r){return this.position===r.length&&r.length>Qc},a})(__),el=Kc,_n;(function(i){i[i.CONNECTING=0]="CONNECTING",i[i.OPEN=1]="OPEN",i[i.CLOSED=3]="CLOSED"})(_n||(_n={}));var D_=_n,tl=1,_l=(function(){function i(a,r){this.hooks=a,this.session=_o(1e3)+"/"+al(8),this.location=sl(r),this.readyState=D_.CONNECTING,this.openStream()}return i.prototype.send=function(a){return this.sendRaw(JSON.stringify([a]))},i.prototype.ping=function(){this.hooks.sendHeartbeat(this)},i.prototype.close=function(a,r){this.onClose(a,r,!0)},i.prototype.sendRaw=function(a){if(this.readyState===D_.OPEN)try{return st.createSocketRequest("POST",to(nl(this.location,this.session))).start(a),!0}catch{return!1}else return!1},i.prototype.reconnect=function(){this.closeStream(),this.openStream()},i.prototype.onClose=function(a,r,h){this.closeStream(),this.readyState=D_.CLOSED,this.onclose&&this.onclose({code:a,reason:r,wasClean:h})},i.prototype.onChunk=function(a){if(a.status===200){this.readyState===D_.OPEN&&this.onActivity();var r,h=a.data.slice(0,1);switch(h){case"o":r=JSON.parse(a.data.slice(1)||"{}"),this.onOpen(r);break;case"a":r=JSON.parse(a.data.slice(1)||"[]");for(var y=0;y<r.length;y++)this.onEvent(r[y]);break;case"m":r=JSON.parse(a.data.slice(1)||"null"),this.onEvent(r);break;case"h":this.hooks.onHeartbeat(this);break;case"c":r=JSON.parse(a.data.slice(1)||"[]"),this.onClose(r[0],r[1],!0);break}}},i.prototype.onOpen=function(a){this.readyState===D_.CONNECTING?(a&&a.hostname&&(this.location.base=ol(this.location.base,a.hostname)),this.readyState=D_.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},i.prototype.onEvent=function(a){this.readyState===D_.OPEN&&this.onmessage&&this.onmessage({data:a})},i.prototype.onActivity=function(){this.onactivity&&this.onactivity()},i.prototype.onError=function(a){this.onerror&&this.onerror(a)},i.prototype.openStream=function(){var a=this;this.stream=st.createSocketRequest("POST",to(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",function(r){a.onChunk(r)}),this.stream.bind("finished",function(r){a.hooks.onFinished(a,r)}),this.stream.bind("buffer_too_long",function(){a.reconnect()});try{this.stream.start()}catch(r){pe.defer(function(){a.onError(r),a.onClose(1006,"Could not start streaming",!1)})}},i.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},i})();function sl(i){var a=/([^\?]*)\/*(\??.*)/.exec(i);return{base:a[1],queryString:a[2]}}function nl(i,a){return i.base+"/"+a+"/xhr_send"}function to(i){var a=i.indexOf("?")===-1?"?":"&";return i+a+"t="+ +new Date+"&n="+tl++}function ol(i,a){var r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(i);return r[1]+a+r[3]}function _o(i){return st.randomInt(i)}function al(i){for(var a=[],r=0;r<i;r++)a.push(_o(32).toString(32));return a.join("")}var il=_l,rl={getReceiveURL:function(i,a){return i.base+"/"+a+"/xhr_streaming"+i.queryString},onHeartbeat:function(i){i.sendRaw("[]")},sendHeartbeat:function(i){i.sendRaw("[]")},onFinished:function(i,a){i.onClose(1006,"Connection interrupted ("+a+")",!1)}},cl=rl,ll={getReceiveURL:function(i,a){return i.base+"/"+a+"/xhr"+i.queryString},onHeartbeat:function(){},sendHeartbeat:function(i){i.sendRaw("[]")},onFinished:function(i,a){a===200?i.reconnect():i.onClose(1006,"Connection interrupted ("+a+")",!1)}},dl=ll,ul={getRequest:function(i){var a=st.getXHRAPI(),r=new a;return r.onreadystatechange=r.onprogress=function(){switch(r.readyState){case 3:r.responseText&&r.responseText.length>0&&i.onChunk(r.status,r.responseText);break;case 4:r.responseText&&r.responseText.length>0&&i.onChunk(r.status,r.responseText),i.emit("finished",r.status),i.close();break}},r},abortRequest:function(i){i.onreadystatechange=null,i.abort()}},hl=ul,ml={createStreamingSocket:function(i){return this.createSocket(cl,i)},createPollingSocket:function(i){return this.createSocket(dl,i)},createSocket:function(i,a){return new il(i,a)},createXHR:function(i,a){return this.createRequest(hl,i,a)},createRequest:function(i,a,r){return new el(i,a,r)}},so=ml;so.createXDR=function(i,a){return this.createRequest(Zc,i,a)};var gl=so,pl={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:u,DependenciesReceivers:f,getDefaultStrategy:Uc,Transports:Ae,transportConnectionInitializer:Yc,HTTPFactory:gl,TimelineTransport:Se,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(i){var a=this;window.Pusher=i;var r=function(){a.onDocumentBody(i.ready)};window.JSON?r():A.load("json2",{},r)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:q,jsonp:r_}},onDocumentBody:function(i){var a=this;document.body?i():setTimeout(function(){a.onDocumentBody(i)},0)},createJSONPRequest:function(i,a){return new mt(i,a)},createScriptRequest:function(i){return new we(i)},getLocalStorage:function(){try{return window.localStorage}catch{return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){var i=this.getXHRAPI();return new i},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return ve},createWebSocket:function(i){var a=this.getWebSocketAPI();return new a(i)},createSocketRequest:function(i,a){if(this.isXHRSupported())return this.HTTPFactory.createXHR(i,a);if(this.isXDRSupported(a.indexOf("https:")===0))return this.HTTPFactory.createXDR(i,a);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var i=this.getXHRAPI();return!!i&&new i().withCredentials!==void 0},isXDRSupported:function(i){var a=i?"https:":"http:",r=this.getProtocol();return!!window.XDomainRequest&&r===a},addUnloadListener:function(i){window.addEventListener!==void 0?window.addEventListener("unload",i,!1):window.attachEvent!==void 0&&window.attachEvent("onunload",i)},removeUnloadListener:function(i){window.addEventListener!==void 0?window.removeEventListener("unload",i,!1):window.detachEvent!==void 0&&window.detachEvent("onunload",i)},randomInt:function(i){var a=function(){var r=window.crypto||window.msCrypto,h=r.getRandomValues(new Uint32Array(1))[0];return h/Math.pow(2,32)};return Math.floor(a()*i)}},st=pl,sn;(function(i){i[i.ERROR=3]="ERROR",i[i.INFO=6]="INFO",i[i.DEBUG=7]="DEBUG"})(sn||(sn={}));var bs=sn,yl=(function(){function i(a,r,h){this.key=a,this.session=r,this.events=[],this.options=h||{},this.sent=0,this.uniqueID=0}return i.prototype.log=function(a,r){a<=this.options.level&&(this.events.push($e({},r,{timestamp:pe.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},i.prototype.error=function(a){this.log(bs.ERROR,a)},i.prototype.info=function(a){this.log(bs.INFO,a)},i.prototype.debug=function(a){this.log(bs.DEBUG,a)},i.prototype.isEmpty=function(){return this.events.length===0},i.prototype.send=function(a,r){var h=this,y=$e({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],a(y,function(S,X){S||h.sent++,r&&r(S,X)}),!0},i.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},i})(),fl=yl,wl=(function(){function i(a,r,h,y){this.name=a,this.priority=r,this.transport=h,this.options=y||{}}return i.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},i.prototype.connect=function(a,r){var h=this;if(this.isSupported()){if(this.priority<a)return no(new O,r)}else return no(new Z,r);var y=!1,S=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),X=null,ce=function(){S.unbind("initialized",ce),S.connect()},Me=function(){X=xt.createHandshake(S,function(l_){y=!0,Lt(),r(null,l_)})},fe=function(l_){Lt(),r(l_)},rt=function(){Lt();var l_;l_=t_(S),r(new R(l_))},Lt=function(){S.unbind("initialized",ce),S.unbind("open",Me),S.unbind("error",fe),S.unbind("closed",rt)};return S.bind("initialized",ce),S.bind("open",Me),S.bind("error",fe),S.bind("closed",rt),S.initialize(),{abort:function(){y||(Lt(),X?X.close():S.close())},forceMinPriority:function(l_){y||h.priority<l_&&(X?X.close():S.close())}}},i})(),vl=wl;function no(i,a){return pe.defer(function(){a(i)}),{abort:function(){},forceMinPriority:function(){}}}var bl=st.Transports,$l=function(i,a,r,h,y,S){var X=bl[r];if(!X)throw new F(r);var ce=(!i.enabledTransports||Ht(i.enabledTransports,a)!==-1)&&(!i.disabledTransports||Ht(i.disabledTransports,a)===-1),Me;return ce?(y=Object.assign({ignoreNullOrigin:i.ignoreNullOrigin},y),Me=new vl(a,h,S?S.getAssistant(X):X,y)):Me=kl,Me},kl={isSupported:function(){return!1},connect:function(i,a){var r=pe.defer(function(){a(new Z)});return{abort:function(){r.ensureAborted()},forceMinPriority:function(){}}}},xl=function(i,a){var r="socket_id="+encodeURIComponent(i.socketId);for(var h in a.params)r+="&"+encodeURIComponent(h)+"="+encodeURIComponent(a.params[h]);if(a.paramsProvider!=null){var y=a.paramsProvider();for(var h in y)r+="&"+encodeURIComponent(h)+"="+encodeURIComponent(y[h])}return r},Cl=function(i){if(typeof st.getAuthorizers()[i.transport]>"u")throw"'"+i.transport+"' is not a recognized auth transport";return function(a,r){var h=xl(a,i);st.getAuthorizers()[i.transport](st,h,i,k.UserAuthentication,r)}},Il=Cl,Sl=function(i,a){var r="socket_id="+encodeURIComponent(i.socketId);r+="&channel_name="+encodeURIComponent(i.channelName);for(var h in a.params)r+="&"+encodeURIComponent(h)+"="+encodeURIComponent(a.params[h]);if(a.paramsProvider!=null){var y=a.paramsProvider();for(var h in y)r+="&"+encodeURIComponent(h)+"="+encodeURIComponent(y[h])}return r},Al=function(i){if(typeof st.getAuthorizers()[i.transport]>"u")throw"'"+i.transport+"' is not a recognized auth transport";return function(a,r){var h=Sl(a,i);st.getAuthorizers()[i.transport](st,h,i,k.ChannelAuthorization,r)}},El=Al,Tl=function(i,a,r){var h={authTransport:a.transport,authEndpoint:a.endpoint,auth:{params:a.params,headers:a.headers}};return function(y,S){var X=i.channel(y.channelName),ce=r(X,h);ce.authorize(y.socketId,S)}},H_=function(){return H_=Object.assign||function(i){for(var a,r=1,h=arguments.length;r<h;r++){a=arguments[r];for(var y in a)Object.prototype.hasOwnProperty.call(a,y)&&(i[y]=a[y])}return i},H_.apply(this,arguments)};function jl(i,a){var r={activityTimeout:i.activityTimeout||d.activityTimeout,cluster:i.cluster||d.cluster,httpPath:i.httpPath||d.httpPath,httpPort:i.httpPort||d.httpPort,httpsPort:i.httpsPort||d.httpsPort,pongTimeout:i.pongTimeout||d.pongTimeout,statsHost:i.statsHost||d.stats_host,unavailableTimeout:i.unavailableTimeout||d.unavailableTimeout,wsPath:i.wsPath||d.wsPath,wsPort:i.wsPort||d.wsPort,wssPort:i.wssPort||d.wssPort,enableStats:Rl(i),httpHost:Nl(i),useTLS:ql(i),wsHost:Pl(i),userAuthenticator:Ll(i),channelAuthorizer:Dl(i,a)};return"disabledTransports"in i&&(r.disabledTransports=i.disabledTransports),"enabledTransports"in i&&(r.enabledTransports=i.enabledTransports),"ignoreNullOrigin"in i&&(r.ignoreNullOrigin=i.ignoreNullOrigin),"timelineParams"in i&&(r.timelineParams=i.timelineParams),"nacl"in i&&(r.nacl=i.nacl),r}function Nl(i){return i.httpHost?i.httpHost:i.cluster?"sockjs-"+i.cluster+".pusher.com":d.httpHost}function Pl(i){return i.wsHost?i.wsHost:i.cluster?oo(i.cluster):oo(d.cluster)}function oo(i){return"ws-"+i+".pusher.com"}function ql(i){return st.getProtocol()==="https:"?!0:i.forceTLS!==!1}function Rl(i){return"enableStats"in i?i.enableStats:"disableStats"in i?!i.disableStats:!1}function Ll(i){var a=H_(H_({},d.userAuthentication),i.userAuthentication);return"customHandler"in a&&a.customHandler!=null?a.customHandler:Il(a)}function Ml(i,a){var r;return"channelAuthorization"in i?r=H_(H_({},d.channelAuthorization),i.channelAuthorization):(r={transport:i.authTransport||d.authTransport,endpoint:i.authEndpoint||d.authEndpoint},"auth"in i&&("params"in i.auth&&(r.params=i.auth.params),"headers"in i.auth&&(r.headers=i.auth.headers)),"authorizer"in i&&(r.customHandler=Tl(a,r,i.authorizer))),r}function Dl(i,a){var r=Ml(i,a);return"customHandler"in r&&r.customHandler!=null?r.customHandler:El(r)}var Bl=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Ol=(function(i){Bl(a,i);function a(r){var h=i.call(this,function(y,S){yt.debug("No callbacks on watchlist events for "+y)})||this;return h.pusher=r,h.bindWatchlistInternalEvent(),h}return a.prototype.handleEvent=function(r){var h=this;r.data.events.forEach(function(y){h.emit(y.name,y)})},a.prototype.bindWatchlistInternalEvent=function(){var r=this;this.pusher.connection.bind("message",function(h){var y=h.event;y==="pusher_internal:watchlist_events"&&r.handleEvent(h)})},a})(__),Gl=Ol;function zl(){var i,a,r=new Promise(function(h,y){i=h,a=y});return{promise:r,resolve:i,reject:a}}var Fl=zl,Hl=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Vl=(function(i){Hl(a,i);function a(r){var h=i.call(this,function(y,S){yt.debug("No callbacks on user for "+y)})||this;return h.signin_requested=!1,h.user_data=null,h.serverToUserChannel=null,h.signinDonePromise=null,h._signinDoneResolve=null,h._onAuthorize=function(y,S){if(y){yt.warn("Error during signin: "+y),h._cleanup();return}h.pusher.send_event("pusher:signin",{auth:S.auth,user_data:S.user_data})},h.pusher=r,h.pusher.connection.bind("state_change",function(y){var S=y.previous,X=y.current;S!=="connected"&&X==="connected"&&h._signin(),S==="connected"&&X!=="connected"&&(h._cleanup(),h._newSigninPromiseIfNeeded())}),h.watchlist=new Gl(r),h.pusher.connection.bind("message",function(y){var S=y.event;S==="pusher:signin_success"&&h._onSigninSuccess(y.data),h.serverToUserChannel&&h.serverToUserChannel.name===y.channel&&h.serverToUserChannel.handleEvent(y)}),h}return a.prototype.signin=function(){this.signin_requested||(this.signin_requested=!0,this._signin())},a.prototype._signin=function(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),this.pusher.connection.state==="connected"&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))},a.prototype._onSigninSuccess=function(r){try{this.user_data=JSON.parse(r.user_data)}catch{yt.error("Failed parsing user data after signin: "+r.user_data),this._cleanup();return}if(typeof this.user_data.id!="string"||this.user_data.id===""){yt.error("user_data doesn't contain an id. user_data: "+this.user_data),this._cleanup();return}this._signinDoneResolve(),this._subscribeChannels()},a.prototype._subscribeChannels=function(){var r=this,h=function(y){y.subscriptionPending&&y.subscriptionCancelled?y.reinstateSubscription():!y.subscriptionPending&&r.pusher.connection.state==="connected"&&y.subscribe()};this.serverToUserChannel=new U("#server-to-user-"+this.user_data.id,this.pusher),this.serverToUserChannel.bind_global(function(y,S){y.indexOf("pusher_internal:")===0||y.indexOf("pusher:")===0||r.emit(y,S)}),h(this.serverToUserChannel)},a.prototype._cleanup=function(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()},a.prototype._newSigninPromiseIfNeeded=function(){if(this.signin_requested&&!(this.signinDonePromise&&!this.signinDonePromise.done)){var r=Fl(),h=r.promise,y=r.resolve;h.done=!1;var S=function(){h.done=!0};h.then(S).catch(S),this.signinDonePromise=h,this._signinDoneResolve=y}},a})(__),Wl=Vl,ao=(function(){function i(a,r){var h=this;if(Ul(a),r=r||{},!r.cluster&&!(r.wsHost||r.httpHost)){var y=E.buildLogSuffix("javascriptQuickStart");yt.warn("You should always specify a cluster when connecting. "+y)}"disableStats"in r&&yt.warn("The disableStats option is deprecated in favor of enableStats"),this.key=a,this.config=jl(r,this),this.channels=xt.createChannels(),this.global_emitter=new __,this.sessionID=st.randomInt(1e9),this.timeline=new fl(this.key,this.sessionID,{cluster:this.config.cluster,features:i.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:bs.INFO,version:d.VERSION}),this.config.enableStats&&(this.timelineSender=xt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+st.TimelineTransport.name}));var S=function(X){return st.getDefaultStrategy(h.config,X,$l)};this.connection=xt.createConnectionManager(this.key,{getStrategy:S,timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:!!this.config.useTLS}),this.connection.bind("connected",function(){h.subscribeAll(),h.timelineSender&&h.timelineSender.send(h.connection.isUsingTLS())}),this.connection.bind("message",function(X){var ce=X.event,Me=ce.indexOf("pusher_internal:")===0;if(X.channel){var fe=h.channel(X.channel);fe&&fe.handleEvent(X)}Me||h.global_emitter.emit(X.event,X.data)}),this.connection.bind("connecting",function(){h.channels.disconnect()}),this.connection.bind("disconnected",function(){h.channels.disconnect()}),this.connection.bind("error",function(X){yt.warn(X)}),i.instances.push(this),this.timeline.info({instances:i.instances.length}),this.user=new Wl(this),i.isReady&&this.connect()}return i.ready=function(){i.isReady=!0;for(var a=0,r=i.instances.length;a<r;a++)i.instances[a].connect()},i.getClientFeatures=function(){return Vt(C_({ws:st.Transports.ws},function(a){return a.isSupported({})}))},i.prototype.channel=function(a){return this.channels.find(a)},i.prototype.allChannels=function(){return this.channels.all()},i.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var a=this.connection.isUsingTLS(),r=this.timelineSender;this.timelineSenderTimer=new ht(6e4,function(){r.send(a)})}},i.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},i.prototype.bind=function(a,r,h){return this.global_emitter.bind(a,r,h),this},i.prototype.unbind=function(a,r,h){return this.global_emitter.unbind(a,r,h),this},i.prototype.bind_global=function(a){return this.global_emitter.bind_global(a),this},i.prototype.unbind_global=function(a){return this.global_emitter.unbind_global(a),this},i.prototype.unbind_all=function(a){return this.global_emitter.unbind_all(),this},i.prototype.subscribeAll=function(){var a;for(a in this.channels.channels)this.channels.channels.hasOwnProperty(a)&&this.subscribe(a)},i.prototype.subscribe=function(a){var r=this.channels.add(a,this);return r.subscriptionPending&&r.subscriptionCancelled?r.reinstateSubscription():!r.subscriptionPending&&this.connection.state==="connected"&&r.subscribe(),r},i.prototype.unsubscribe=function(a){var r=this.channels.find(a);r&&r.subscriptionPending?r.cancelSubscription():(r=this.channels.remove(a),r&&r.subscribed&&r.unsubscribe())},i.prototype.send_event=function(a,r,h){return this.connection.send_event(a,r,h)},i.prototype.shouldUseTLS=function(){return this.config.useTLS},i.prototype.signin=function(){this.user.signin()},i.instances=[],i.isReady=!1,i.logToConsole=!1,i.Runtime=st,i.ScriptReceivers=st.ScriptReceivers,i.DependenciesReceivers=st.DependenciesReceivers,i.auth_callbacks=st.auth_callbacks,i})(),V_=ao;function Ul(i){if(i==null)throw"You must pass your app key when you instantiate Pusher."}st.setup(ao);var Yl=s(2),Xl=(function(){var i=function(a,r){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,y){h.__proto__=y}||function(h,y){for(var S in y)y.hasOwnProperty(S)&&(h[S]=y[S])},i(a,r)};return function(a,r){i(a,r);function h(){this.constructor=a}a.prototype=r===null?Object.create(r):(h.prototype=r.prototype,new h)}})(),Zl=(function(i){Xl(a,i);function a(r,h){var y=this;return V_.logToConsole=a.logToConsole,V_.log=a.log,h=h||{},h.nacl=Yl,y=i.call(this,r,h)||this,y}return a})(V_);o.default=Zl})])})})(fn)),fn.exports}var wn,ya;function VN_(){return ya||(ya=1,wn=HN_()),wn}var WN_=VN_();const UN_=FN_(WN_),Kn=`${ft}/api/notification`,YN_=e=>ue.get(Kn,{params:{...e}}),XN_=e=>ue.put(`${Kn}/${e}`),ZN_=()=>ue.put(`${Kn}/updateAllStatus`),Mr=Q.createAction("notifications/setNotification"),JN_=Q.createAction("notifications/setUnReadNotification"),QN_=Q.createAction("notifications/updateUnReadNotification"),KN_={currentPage:1,pageSize:30,searchString:"",isRead:!1},eP_="Notification list",fa="NOTIFICATION_CHANNEL",tP_="NEW_NOTIFICATION",_P_=()=>{const e=Ee.useDispatch(),{roles:t}=Ct.useParams(),_=Ee.useSelector(L=>L.common.user),o=_?.id,s=_?.studentId,c=Ee.useSelector(L=>L.notification.notificationList),u=Ee.useSelector(L=>L.common.user.pusherKey),g=Ee.useSelector(L=>L.common.user.pusherCluster),d=Ee.useSelector(L=>L.notification.totalItems),p=Ee.useSelector(L=>L.notification.unReadNotification),[x,f]=v.useState(KN_),[A,T]=v.useState(!1),P=L=>f({...x,...L}),E=L=>{const{source:D,extraData:O}=L;switch(D){case"AssessmentAssignment":window.open(`/player/diagnosticsurvey/${Number(O)}`);break;case"NewConferenceCreated":window.open(`/start-conference/${JSON.parse(O)?.[0]}/${JSON.parse(O)?.[1]}/conferenceRubric`);break;case"Class Reflection":window.open(`/start-reflection/${O?.replace(/[\[\]]/g,"")?.split(",")?.[1]}`);break;case"Class Reflection Completed":window.open(`/result-reflection/${O?.replace(/[\[\]]/g,"")?.split(",")?.[1]}`);break;case"External Reflection Completed":window.open(`/result-reflection/${JSON.parse(O)?.[0]}/external`);break;case"NewSessionCreated":window.open(`/start-question/${JSON.parse(O)?.[0]}/${JSON.parse(O)?.[1]}`);break;case"NewSessionComplete":window.open(`/start-question/${JSON.parse(O)?.[0]}/${JSON.parse(O)?.[1]}`);break;case"ActionPointReminder":window.open("/action-point/to-do");break;case"SendNotiPLP":window.open("/personal-learning-plan");break;case"SendNotiGOAL":window.open(`/my-goals/${JSON.parse(O)}`);break;case"CertificateApproved":window.open("/dashboard/certification/2");break;case"RequestCheckIn":window.open(`/start-question/${JSON.parse(O)?.[0]}/${JSON.parse(O)?.[1]}`);case"NewSurveyCreated":s&&window.open(`/start-survey/${JSON.parse(O)?.[0]}/${s}`);break;case"StudentCompletedSurvey":window.open(`/start-survey/${JSON.parse(O)?.[0]}/${JSON.parse(O)?.[1]}`);break}},k=v.useCallback(async()=>{e(ne(!0));try{const L=await YN_({...x,roles:t?.trim()?[t]:_?.roles}),{items:D,totalItems:O}=L.data;e(Mr({notificationList:D,totalItems:O}))}catch(L){e(J({type:"danger",message:L.response?.data?.title||L.message}))}e(ne(!1))},[x]);v.useEffect(()=>{document.title=eP_},[]),v.useEffect(()=>{k();const L=new UN_(u,{cluster:g});return L.subscribe(`${fa}-${o}`).bind(tP_,k),()=>L.unsubscribe(`${fa}-${o}`)},[x,o]);const C=v.useCallback((L,D)=>{try{e(Yt({isOpen:!0,type:"warning",message:`Do you want to mark this notification ${D?"read":"unread"}?`,onConfirm:async()=>{await XN_(L),k()}}))}catch(O){e(J({type:"danger",message:O.response?.data?.title||O.message}))}},[c,p]),N=v.useCallback(async()=>{try{if(c.length===0)throw new Error("There are no unread messages");e(Yt({isOpen:!0,type:"warning",message:"Do you want to mark all notification ?",onConfirm:async()=>{T(!0),await ZN_(),k(),T(!1)}}))}catch(L){e(J({type:"danger",message:L.response?.data?.title||L.message}))}},[c]);return{notificationList:c,totalItems:d,unReadNotification:p,filters:x,changeFilters:P,updateNotification:C,viewNotification:E,updateAll:N,toggleUpdateAllStatus:A}},sP_="Notification list",nP_=20,oP_=()=>{const{notificationList:e,totalItems:t,filters:_,changeFilters:o,updateNotification:s,viewNotification:c,updateAll:u,toggleUpdateAllStatus:g}=_P_(),{t:d}=at.useTranslation();return n.jsxs("div",{className:"animated fadeIn",style:{padding:"56px"},children:[n.jsx("h5",{className:"mb-2",children:sP_}),n.jsxs(w.Row,{className:"my-2",children:[n.jsx(w.Col,{md:8,children:n.jsx(K_,{initValue:_.searchString,onSearch:p=>o({searchString:p}),placeholder:"Type something to search"})}),n.jsx(w.Col,{md:4,children:n.jsx(zN_,{value:_.isRead,onChange:p=>o({isRead:p.value})})})]}),n.jsx(w.Row,{className:"my-2 d-flex justify-content-center",children:n.jsxs(w.Col,{md:12,className:"d-flex justify-content-end align-items-center",children:[_.isRead===!1&&n.jsxs("div",{className:"d-flex align-items-center justify-content-end mx-2",children:["Mark all as read",n.jsx(w.Input,{checked:g,className:"mx-2",type:"checkbox",id:"status-checkbox",onChange:()=>u()})]}),"Total of notifications: ",t]})}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:12,children:e&&e.length>0?n.jsx("div",{children:n.jsxs(w.Table,{bordered:!0,hover:!0,striped:!0,responsive:!0,size:"sm",children:[n.jsx("thead",{children:n.jsxs("tr",{children:[n.jsx("th",{className:"align-top",children:"Text"}),n.jsx("th",{className:"align-top",children:"Time"}),n.jsx("th",{className:"text-center",children:"Is read"}),n.jsx("th",{className:"text-center",children:"Action"})]})}),n.jsx("tbody",{children:e.map(p=>n.jsxs("tr",{children:[n.jsx("td",{className:"align-middle",children:p.text}),n.jsx("td",{className:"align-middle",children:ys(p.time,"yyyy-MM-DD HH:mm")}),n.jsx("td",{className:`${V["control-input"]} text-center align-middle`,children:n.jsx(w.Input,{type:"checkbox",id:`status-checkbox-${p.id}`,checked:p.isRead,onChange:()=>s(p.id,!p.isRead)})}),n.jsx("td",{className:"text-center align-middle",children:["AssessmentAssignment","NewConferenceCreated","NewSessionCreated","CertificateApproved","Class Reflection","NewSessionComplete","ActionPointReminder","SendNotiPLP","SendNotiGOAL","Class Reflection Completed","External Reflection Completed","RequestCheckIn","NewSurveyCreated","StudentCompletedSurvey"].includes(p.source)&&n.jsx(sA_,{className:"cursor-pointer",size:nP_,title:"Detail",onClick:()=>c(p)})})]},p.id))})]})}):n.jsx(Q_,{label:d("notification")})}),n.jsx(w.Col,{md:12,children:n.jsx(G_,{filters:_,totalRecordCount:t,changePageSize:p=>o({pageSize:p}),changePage:p=>o({currentPage:p})})})]})]})},aP_=()=>{const e=Ee.useDispatch(),t=Ee.useSelector(s=>s.common.alert),_=v.useRef(null),o=()=>{e(J({message:""})),_&&_.current&&clearTimeout(_.current)};return v.useEffect(()=>{t.message?.length&&(_&&_.current&&clearTimeout(_.current),_.current=setTimeout(()=>{e(J({message:""}))},3e3))},[t]),t.message?.length>0?n.jsx("div",{className:`app-alert ${V["app-alert"]} ${V[`app-alert--${t.type}`]}`,children:n.jsx(w.Alert,{color:t.type,isOpen:t.message.length>0,toggle:o,children:t.message})}):null},iP_=ct.object({name:ct.string().required("Name is required")}),rP_=(e,t)=>{const{targetMedia:_,onConfirm:o}=e,s=_?.key?"Update":"Create",c=_?.key?"Rename":"Folder";return n.jsx(d_.Formik,{initialValues:{name:_?.name},enableReinitialize:!0,validationSchema:iP_,onSubmit:(u,g)=>{o&&o(u),g.resetForm()},children:u=>{const{values:g,touched:d,errors:p,handleChange:x,handleBlur:f,handleSubmit:A}=u;return n.jsx(Xs,{header:c,confirmText:s,onConfirm:A,ref:t,children:n.jsx(w.Row,{children:n.jsxs(w.Col,{md:12,children:[n.jsx(w.Input,{name:"name",placeholder:`Enter your ${_?.key?"file":"folder"} name`,value:g.name,onChange:x,onBlur:f("question")}),d.name&&p.name&&n.jsx(Nt,{text:p.name})]})})})}})},cP_=v.forwardRef(rP_),lP_=({isLibrary:e,step:t,breadcumb:_,currentPrefix:o,targetMedia:s,handleSelectFile:c,handleCreateFolder:u,handleRenameFile:g,handleGoBack:d,handleDownloadMedia:p,handleDeleteMediaOrFolder:x,showErrorAlert:f})=>{const A=v.useRef(null),T=v.useRef(null),{t:P}=at.useTranslation(),E=()=>A?.current?.toggle(),k=()=>n.jsxs(w.Row,{className:"p-2 pl-3",style:{gap:"8px"},children:[!!t&&n.jsxs(w.Button,{className:"mr-2",color:"secondary",onClick:d,style:{width:"auto",display:"flex",gap:"4px"},children:[n.jsx(IC_,{}),n.jsx(w.Label,{className:"ml-1 h6 m-0",children:"Go up"})]}),s&&!s.isFolder&&n.jsxs(w.Button,{className:"mr-2",color:"success",onClick:p,style:{width:"auto",display:"flex",gap:"4px"},children:[n.jsx(SC_,{}),n.jsx(w.Label,{className:"ml-1 h6 m-0",children:"Download"})]}),s&&!e&&n.jsxs(w.Button,{className:"mr-2",color:"danger",onClick:x,style:{width:"auto",display:"flex",gap:"4px"},children:[n.jsx(NC_,{}),n.jsx(w.Label,{className:"ml-1 h6 m-0",children:"Delete"})]}),s&&!e&&!s.isFolder&&n.jsxs(w.Button,{className:"mr-2",color:"primary",onClick:E,style:{width:"auto",display:"flex",gap:"4px"},children:[n.jsx(AC_,{}),n.jsx(w.Label,{className:"ml-1 h6 m-0",children:"Rename"})]}),!s&&!e&&n.jsxs(w.Button,{className:"mr-2",color:"success",onClick:E,style:{width:"auto",display:"flex",gap:"4px"},children:[n.jsx(TC_,{}),n.jsx(w.Label,{className:"ml-1 h6 m-0",children:P("new_folder")})]}),!s&&!e&&n.jsxs(w.Button,{className:"mr-2",color:"info",onClick:()=>T?.current?.click(),style:{width:"auto",display:"flex",gap:"4px"},children:[n.jsx(EC_,{}),n.jsx(w.Label,{className:"ml-1 h6 m-0",children:P("upload")})]}),_&&n.jsx(w.Col,{className:"h-100 d-flex align-items-center",children:_})]});return n.jsxs("div",{children:[k(),n.jsx(cP_,{ref:A,targetMedia:s,onConfirm:async C=>{C.name!=""?s&&!s.isFolder?(E(),await g(C.name)):(E(),await u(o,C.name)):f("Name can't be empty")}}),n.jsx("input",{type:"file",id:"customMediaUpload",ref:T,style:{display:"none"},onChange:async C=>{const N=C?.target?.files[0];N&&await c({key:o,file:N})}})]})},dP_=v.memo(lP_),ds={"media-wrapper":"_media-wrapper_1nc2k_6","media-image":"_media-image_1nc2k_11","media-image-selected":"_media-image-selected_1nc2k_17","media-title":"_media-title_1nc2k_21","filter-media-file":"_filter-media-file_1nc2k_30"},B_={USER_CONVERSATION_AVATAR:"images/user.png",GROUP_CONVERSATION_AVATAR:"images/group.png",LOGO:"images/logo-white.svg",LOGO_HEADER:"images/logo-header.png",LOGO_MINIMIZED:"images/logo-small.png",DOCS_IMAGE:"images/docs.png",AUDIO_IMAGE:"images/audio.png",PHOTO_IMAGE:"images/image.png",VIDEO_IMAGE:"images/video.png",FOLDER_IMAGE:"images/folder.png",UNKNOW_IMAGE:"images/unknow.png"};var Ft=(e=>(e[e.IMAGE=0]="IMAGE",e[e.VIDEO=1]="VIDEO",e[e.AUDIO=2]="AUDIO",e[e.DOC=3]="DOC",e[e.UNKNOW=4]="UNKNOW",e))(Ft||{});const uP_=["png","jpg","jpeg","gif"],hP_=["mp4","mp4v"],mP_=["txt","pdf","doc","docx","xls","csv"],gP_=["wav","mp3"],Dr=e=>{if(e){if(uP_.includes(e))return Ft.IMAGE;if(hP_.includes(e))return Ft.VIDEO;if(mP_.includes(e))return Ft.DOC;if(gP_.includes(e))return Ft.AUDIO}return Ft.UNKNOW},pP_=e=>{if(e.isFolder)return B_.FOLDER_IMAGE;const t=Dr(e.extension);return t===Ft.IMAGE?B_.PHOTO_IMAGE:t===Ft.VIDEO?B_.VIDEO_IMAGE:t===Ft.AUDIO?B_.AUDIO_IMAGE:t===Ft.DOC?B_.DOCS_IMAGE:B_.UNKNOW_IMAGE},yP_=({media:e,isTarget:t})=>{const _=pP_(e);return n.jsxs(w.Card,{className:`${t?ds["media-image-selected"]:""} border-0 `,children:[n.jsx(w.CardImg,{className:`${ds["media-image"]} p-1`,top:!0,width:"90%",src:n_(_),alt:e.name}),n.jsx(w.CardBody,{className:"p-1",style:{height:45},children:n.jsx(w.CardTitle,{tag:"h6",className:ds["media-title"],children:e.name})})]})},fP_=v.memo(yP_),wP_=[{value:Ft.IMAGE,label:"images"},{value:Ft.AUDIO,label:"audios"},{value:Ft.DOC,label:"docs"},{value:Ft.VIDEO,label:"videos"}],vP_=({changeFilters:e})=>{const[t,_]=v.useState(),{t:o}=at.useTranslation();return n.jsxs(w.Row,{className:`${ds["filter-media-file"]}`,children:[n.jsx(w.Col,{sm:8,children:n.jsx(K_,{initValue:"",onSearch:s=>e({searchString:s}),placeholder:o("type_something_to_search_by_file_name")})}),n.jsx(w.Col,{sm:4,children:n.jsx(Dt,{value:t,isMulti:!0,options:wP_.map(s=>({...s,label:o(s.label)})),onChange:s=>{_(s);const c=s.map(u=>u.value);e({types:c})}})})]})},Br=Q.createAction("gallery/setGallery"),f_=Q.createAction("gallery/setTargetMedia"),bP_=`${ft}/api/file`,$P_=e=>ue.get(`${bP_}`,{params:e}),kP_="Gallery",xP_={searchString:""},Or=(e=!1)=>{const t=Ee.useSelector(R=>R.gallery.mediaList),_=Ee.useSelector(R=>R.gallery.totalItems),o=Ee.useSelector(R=>R.gallery.targetMedia),s=Ee.useDispatch(),[c,u]=v.useState(),[g,d]=v.useState(Object.assign({...xP_},e?{isLibrary:!0}:{})),[p,x]=v.useState({link:"",step:0}),f=R=>{R.isFolder&&(d({prefix:R.key,isLibrary:e}),R.key&&x({link:R.key,step:p.step+1}))},A=()=>{const{link:R,step:W}=p;if(!R||R==""||W<1)return;let F=R.split("/");F[F.length-1]===""?x({link:`${F.splice(0,F.length-2).join("/")}/`,step:W-1}):(F.pop(),x({link:`${F.join("/")}/`,step:W-1}))},T=R=>{s(f_({targetMedia:void 0})),o?R.key===o.key?s(f_({targetMedia:void 0})):s(f_({targetMedia:R})):s(f_({targetMedia:R}))},P=async R=>{o?.key&&R&&(s(ne(!0)),await $I_(o.key,R),s(f_({targetMedia:void 0})),s(ne(!1)),D())},E=()=>{if(o?.key){const R=o_(o.key);window.open(R,"_blank")}else s(J({type:"danger",message:"Error to download media, please try later."}))},k=R=>{J({type:"danger",message:R})},C=async()=>{o?.key?s(Yt({isOpen:!0,type:"warning",message:`Do you want to remove this ${o.isFolder?"folder":"file"}`,onConfirm:async()=>{s(ne(!0)),o.isFolder?(await vI_(o.key||""),s(f_({targetMedia:void 0}))):(await wI_(o?.key||""),s(f_({targetMedia:void 0}))),s(ne(!1)),D()}})):s(J({type:"danger",message:"Error to delete media, please try later."}))},N=async(R,W)=>{W&&(await bI_(R,W),D())},L=R=>d({...g,...R}),D=v.useCallback(async()=>{s(ne(!0));try{const R=await $P_(g);s(Br({mediaList:R.data,totalItems:R.data.length||0}))}catch(R){s(J({type:"danger",message:R.response?.data?.title||R.message}))}s(ne(!1))},[s,g]);v.useEffect(()=>{document.title=kP_,s(f_({targetMedia:void 0}))},[]),v.useEffect(()=>{L({prefix:p.link})},[p.link]),v.useEffect(()=>{D()},[g]),v.useEffect(()=>{async function R(){if(!e){s(ne(!0));try{if(c){const{file:W,key:F}=c,{name:Z}=W,G=F,H=new FormData;H.append("file",W,Z),H.append("customKey",G?.slice(0,-1)||""),await Li(H),D()}}catch(W){s(J({type:"danger",message:W.response?.data?.title||W.message}))}s(ne(!1))}}R()},[c]);const O=v.useMemo(()=>{try{const R=p.link?.split("/");return R.splice(2,R.length).join("/")}catch{return""}},[p.link]);return{mediaList:t,filters:g,totalItems:_,targetMedia:o,router:p,breadcrumb:O,getData:D,changeFilters:L,handleSelectFile:u,handleOpenFolder:f,handleSelectMedia:T,handleRenameFile:P,handleDownloadMedia:E,handleDeleteMediaOrFolder:C,handleCreateFolder:N,handleGoBack:A,showErrorAlert:k}},CP_=({height:e,isLibrary:t})=>{const{filters:_,mediaList:o,targetMedia:s,router:c,breadcrumb:u,changeFilters:g,handleOpenFolder:d,handleSelectMedia:p,handleSelectFile:x,handleCreateFolder:f,handleRenameFile:A,handleDownloadMedia:T,handleDeleteMediaOrFolder:P,handleGoBack:E,showErrorAlert:k}=Or(t),C=()=>o.map(N=>{const L=s?.key===N.key;return n.jsx(w.Col,{className:"p-2",xs:"auto",children:n.jsx("div",{onDoubleClick:()=>d(N),onClick:()=>p(N),className:ds["media-wrapper"],children:n.jsx(fP_,{media:N,isTarget:L})})},N.key)});return n.jsxs(w.Card,{children:[n.jsxs(w.CardHeader,{children:[n.jsx(vP_,{changeFilters:g,filters:_}),n.jsx(dP_,{isLibrary:t,step:c.step,breadcumb:u,currentPrefix:_.prefix||"",targetMedia:s,handleSelectFile:x,handleCreateFolder:f,handleRenameFile:A,handleDownloadMedia:T,handleDeleteMediaOrFolder:P,handleGoBack:E,showErrorAlert:k})]}),n.jsx(w.CardBody,{style:{minHeight:e},children:n.jsx(w.Row,{className:"p-1",children:C()})})]})},IP_=({targetMedia:e})=>{if(!e||e?.isFolder)return n.jsx("div",{});const t=Dr(e.extension),_=o_(e.key||"");return n.jsxs(w.Card,{className:"position-sticky",children:[n.jsx(w.CardHeader,{children:e?.name||"Media name"}),t===Ft.IMAGE&&n.jsx(w.CardImg,{className:"p-2",src:_,loading:"lazy"}),t===Ft.VIDEO&&n.jsx("div",{className:"p-2",children:n.jsx("video",{id:e.key,width:"100%",height:"100%",controls:!0,children:n.jsx("source",{src:_})})}),t===Ft.AUDIO&&n.jsx("div",{className:"p-2",children:n.jsx("audio",{controls:!0,className:"w-100",children:n.jsx("source",{src:_})})}),n.jsxs(w.CardBody,{children:[n.jsx(w.CardTitle,{tag:"h6",children:"General Info"}),n.jsxs(w.CardText,{children:["File extension: ",e.extension?.toUpperCase()]})]})]})},SP_=v.memo(IP_),AP_="media_gallery",EP_=({isLibrary:e})=>{const t=Ee.useSelector(o=>o.gallery.targetMedia),{t:_}=at.useTranslation();return n.jsxs("div",{className:"fadeIn animated",children:[!e&&n.jsx("h5",{className:"mb-2",children:_(AP_)}),n.jsxs(w.Row,{className:"mb-2",children:[n.jsx(w.Col,{md:8,children:n.jsx(CP_,{height:"100vh",isLibrary:e})}),n.jsx(w.Col,{md:4,children:n.jsx(SP_,{targetMedia:t},t?.key)})]})]})},TP_=`${ft}/api/academicclass`,jP_=()=>ue.get(TP_),NP_=e=>{const[t,_]=v.useState([]);v.useEffect(()=>{o()},[]);const o=async()=>{try{const g=await jP_();_(g.data.items)}catch(g){console.error(g)}},{id:s}=e,c=t.map(g=>({id:g.id,value:g.id,label:g.name})),u=s&&c.find(g=>g.value===s)||null;return n.jsx(u_,{options:c,value:u,...e})},PP_=()=>n.jsx("div",{children:"District school list"});function Tn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vn=()=>Math.random().toString(36).substring(7).split("").join("."),qP_={INIT:`@@redux/INIT${vn()}`,REPLACE:`@@redux/REPLACE${vn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vn()}`},us=qP_;function RP_(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function LP_(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(BP_(e))return"date";if(DP_(e))return"error";const _=MP_(e);switch(_){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return _}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function MP_(e){return typeof e.constructor=="function"?e.constructor.name:null}function DP_(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function BP_(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function OP_(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=LP_(e)),t}function wa(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function GP_(e,t,_,o){const s=Object.keys(t),c=_&&_.type===us.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(s.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!RP_(e))return`The ${c} has unexpected type of "${OP_(e)}". Expected argument to be an object with the following keys: "${s.join('", "')}"`;const u=Object.keys(e).filter(g=>!t.hasOwnProperty(g)&&!o[g]);if(u.forEach(g=>{o[g]=!0}),!(_&&_.type===us.REPLACE)&&u.length>0)return`Unexpected ${u.length>1?"keys":"key"} "${u.join('", "')}" found in ${c}. Expected to find one of the known reducer keys instead: "${s.join('", "')}". Unexpected keys will be ignored.`}function zP_(e){Object.keys(e).forEach(t=>{const _=e[t];if(typeof _(void 0,{type:us.INIT})>"u")throw new Error(process.env.NODE_ENV==="production"?Tn(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof _(void 0,{type:us.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(process.env.NODE_ENV==="production"?Tn(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${us.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}function FP_(e){const t=Object.keys(e),_={};for(let u=0;u<t.length;u++){const g=t[u];process.env.NODE_ENV!=="production"&&typeof e[g]>"u"&&wa(`No reducer provided for key "${g}"`),typeof e[g]=="function"&&(_[g]=e[g])}const o=Object.keys(_);let s;process.env.NODE_ENV!=="production"&&(s={});let c;try{zP_(_)}catch(u){c=u}return function(g={},d){if(c)throw c;if(process.env.NODE_ENV!=="production"){const f=GP_(g,_,d,s);f&&wa(f)}let p=!1;const x={};for(let f=0;f<o.length;f++){const A=o[f],T=_[A],P=g[A],E=T(P,d);if(typeof E>"u"){const k=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?Tn(14):`When called with an action of type ${k?`"${String(k)}"`:"(unknown type)"}, the slice reducer for key "${A}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}x[A]=E,p=p||E!==P}return p=p||o.length!==Object.keys(g).length,p?x:g}}const va={sidebarShow:"responsive",isLoading:!1,alert:{type:"",message:""},modal:{isOpen:!1},user:null,currentStudentId:parseInt(localStorage.getItem("currentStudentId")??"0"),currentStudentUserId:localStorage.getItem("currentStudentUserId")||"",currentStudentName:localStorage.getItem("currentStudentName")||"",turnOffPassWhenChangeMode:!1,menuBar:!0,defaultFontSize:16,isEnableIEP:!0,isEnableSurvey:!1,isEnableMarioAi:!1,isConversationOneToOne:!1,isSandboxMode:!1,isLoginGoogle:!1,inforUserGoogle:null,language:Ns,amplitude:{user_id:"",status:"",student_id:"",page:"",part:"",iep_date:null,saved:null,first_login:"",duration_since:0,last_page:"",event:"",roles:""}},HP_=Q.createReducer(va,e=>{e.addCase(ne,(t,_)=>{t.isLoading=_.payload}).addCase(Yt,(t,_)=>{t.modal=_.payload}).addCase(zs,(t,_)=>{t.user=_.payload}).addCase(m4_,(t,_)=>{t.sidebarShow=_.payload}).addCase(Ts,(t,_)=>{t.isLoginGoogle=_.payload}).addCase(On,(t,_)=>{t.inforUserGoogle=_.payload}).addCase(J,(t,_)=>{t.alert=_.payload}).addCase(ot,(t,_)=>(localStorage.removeItem("currentStudentId"),localStorage.removeItem("currentStudentUserId"),localStorage.removeItem("currentStudentName"),va)).addCase(vi,(t,_)=>{t.currentStudentId=_.payload}).addCase(bi,(t,_)=>{t.currentStudentUserId=_.payload}).addCase($i,(t,_)=>{t.currentStudentName=_.payload}).addCase(ki,(t,_)=>{t.turnOffPassWhenChangeMode=_.payload}).addCase(ui,(t,_)=>{t.menuBar=_.payload}).addCase(mi,(t,_)=>{t.isEnableIEP=_.payload}).addCase(gi,(t,_)=>{t.isEnableSurvey=_.payload}).addCase(pi,(t,_)=>{t.isEnableWellBeing=_.payload}).addCase(yi,(t,_)=>{t.isEnableMarioAi=_.payload}).addCase(fi,(t,_)=>{t.isConversationOneToOne=_.payload}).addCase(wi,(t,_)=>{t.language=_.payload}).addCase(hi,(t,_)=>{t.defaultFontSize=_.payload}).addCase(Gn,(t,_)=>{t.isSandboxMode=_.payload}).addCase(xi,(t,_)=>{const o=window.location.hostname;var s={user_id:_.payload?.name,status:_.payload?.status?_.payload?.status:"",student_id:_.payload?.student_id?_.payload.student_id:"",page:_.payload?.page?_.payload.page:"",part:_.payload?.part?_.payload.part:"",iep_date:_.payload?.iep_date?_.payload.iep_date:null,saved:typeof _.payload?.saved=="boolean"?_.payload.saved:null,first_login:_.payload?.first_login?_.payload.first_login:"",duration_since:_.payload?.duration_since?_.payload.duration_since:0,last_page:_.payload?.last_page?_.payload.last_page:"",event:_.payload.event,domain:o||"",roles:_.payload?.roles?_.payload?.roles?.toString():"",answer:_.payload?.answer?_.payload.answer:"",chart:_.payload?.chart?_.payload.chart:""};t.amplitude=s})}),Gr=Q.createAction("classes/setClassList"),ba={classList:[],totalItems:0},VP_=Q.createReducer(ba,e=>{e.addCase(Gr,(t,_)=>{t.classList=_.payload.classList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>ba)}),zr=Q.createAction("conferenceRubric/setConferenceRubricList"),$a={conferenceRubricList:[],totalItems:0},WP_=Q.createReducer($a,e=>{e.addCase(zr,(t,_)=>{t.conferenceRubricList=_.payload.conferenceRubricList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>$a)}),UP_=Q.createAction("faqs/setFaqList"),ka={faqList:[],totalItems:0},YP_=Q.createReducer(ka,e=>{e.addCase(UP_,(t,_)=>{t.faqList=_.payload.faqList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>ka)}),xa={skillList:[],totalItems:0},XP_=Q.createReducer(xa,e=>{e.addCase(Bi,(t,_)=>{t.skillList=_.payload.skillList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>xa)}),Ca={emailTemplateList:[],totalItems:0},ZP_=Q.createReducer(Ca,e=>{e.addCase(Pi,(t,_)=>{t.emailTemplateList=_.payload.emailTemplateList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ca)}),Fr=Q.createAction("suggestionBank/setSuggestionList"),Ia={suggestionList:[],totalItems:0},JP_=Q.createReducer(Ia,e=>{e.addCase(Fr,(t,_)=>{t.suggestionList=_.payload.suggestionList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ia)}),Hr=Q.createAction("learningStrategy/setStrategyList"),Sa={strategyList:[],totalItems:0},QP_=Q.createReducer(Sa,e=>{e.addCase(Hr,(t,_)=>{t.strategyList=_.payload.strategyList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Sa)}),Vr=Q.createAction("subjects/setSubjectList"),Aa={subjectList:[],totalItems:0},KP_=Q.createReducer(Aa,e=>{e.addCase(Vr,(t,_)=>{t.subjectList=_.payload.subjectList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Aa)}),Wr=Q.createAction("learningSupportCategories/setLearningSupportCategoryList"),Ea={learningSupportCategoryList:[],totalItems:0},eq_=Q.createReducer(Ea,e=>{e.addCase(Wr,(t,_)=>{t.learningSupportCategoryList=_.payload.learningSupportCategoryList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ea)}),Ur=Q.createAction("questionBank/setQuestionList"),Ta={questionList:[],totalItems:0},tq_=Q.createReducer(Ta,e=>{e.addCase(Ur,(t,_)=>{t.questionList=_.payload.questionList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ta)}),Yr=Q.createAction("badges/setBadgeList"),ja={badgeList:[],totalItems:0},_q_=Q.createReducer(ja,e=>{e.addCase(Yr,(t,_)=>{t.badgeList=_.payload.badgeList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>ja)}),Xr=Q.createAction("semester/setSemesterList"),sq_={semesterList:[],totalItems:0},nq_=Q.createReducer(sq_,e=>{e.addCase(Xr,(t,_)=>{t.semesterList=_.payload.semesterList,t.totalItems=_.payload.totalItems})}),Zr=Q.createAction("assignment/setAssignmentList"),Na={assignmentList:[],totalItems:0},oq_=Q.createReducer(Na,e=>{e.addCase(Zr,(t,_)=>{t.assignmentList=_.payload.assignmentList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Na)}),Jr=Q.createAction("goalExamples/setGoalExampleList"),Pa={goalExampleList:[],totalItems:0},aq_=Q.createReducer(Pa,e=>{e.addCase(Jr,(t,_)=>{t.goalExampleList=_.payload.goalExampleList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Pa)}),qa={userList:[],totalItems:0,studentList:[]},iq_=Q.createReducer(qa,e=>{e.addCase(ls,(t,_)=>{t.userList=_.payload.userList,t.totalItems=_.payload.totalItems}).addCase(Gi,(t,_)=>{t.studentList=_.payload}).addCase(ot,(t,_)=>qa)}),Qr=Q.createAction("feedback/setFeedbackList"),Ra={feedbackList:[],totalItems:0},rq_=Q.createReducer(Ra,e=>{e.addCase(Qr,(t,_)=>{t.feedbackList=_.payload.feedbackList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ra)}),Kr=Q.createAction("assessments/setAssessmentList"),La={assessmentList:[],totalItems:0},cq_=Q.createReducer(La,e=>{e.addCase(Kr,(t,_)=>{t.assessmentList=_.payload.assessmentList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>La)}),ec=Q.createAction("reflectionForms/setReflectionList"),Ma={reflectionList:[],totalItems:0},lq_=Q.createReducer(Ma,e=>{e.addCase(ec,(t,_)=>{t.reflectionList=_.payload.reflectionList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ma)}),tc=Q.createAction("reflectionForms/setReflectionResultList"),Da={reflectionResultList:[],totalItems:0},dq_=Q.createReducer(Da,e=>{e.addCase(tc,(t,_)=>{t.reflectionResultList=_.payload.reflectionResultList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Da)}),_c=Q.createAction("questionByCategory/setQuestionByCategory"),sc=Q.createAction("questionByCategory/setSelectQuestion"),uq_=Q.createAction("questionByCategory/setUnSelectQuestion"),nc=Q.createAction("questionByCategory/setMoveItemQuestion"),oc=Q.createAction("questionByCategory/setEditItemQuesion"),ac=Q.createAction("questionByCategory/setResetQuestionList"),Ba={questionByCategoryList:[],selectedQuestions:[],selectQuestion:[]},Es=(e,t)=>{var _=new Set(e.map(s=>s.id)),o=[...e,...t.filter(s=>!_.has(s.id))];return o},hq_=Q.createReducer(Ba,e=>{e.addCase(_c,(t,_)=>{t.questionByCategoryList=_.payload,t.selectedQuestions.length>0&&(t.questionByCategoryList=t.questionByCategoryList.filter(o=>!t.selectedQuestions.some(s=>s.id===o.id)))}),e.addCase(sc,(t,_)=>{let o=t.selectQuestion.findIndex(s=>s.id===_.payload.id);o===-1?t.selectQuestion.push(_.payload):t.selectQuestion.splice(o,1)}),e.addCase(uq_,(t,_)=>{t.selectQuestion=_.payload}),e.addCase(nc,(t,_)=>{switch(_.payload){case"right":t.selectedQuestions=Es(t.selectedQuestions,t.selectQuestion),t.questionByCategoryList=t.questionByCategoryList.filter(c=>!t.selectedQuestions.some(u=>u.id===c.id)),t.selectQuestion=[];break;case"right-all":t.selectedQuestions=Es(t.selectedQuestions,t.questionByCategoryList),t.selectQuestion=[],t.questionByCategoryList=[];break;case"left":t.questionByCategoryList=Es(t.questionByCategoryList,t.selectQuestion),t.selectedQuestions=t.selectedQuestions.filter(c=>!t.selectQuestion.some(u=>u.id===c.id)),t.selectQuestion=[];break;case"left-all":t.questionByCategoryList=Es(t.questionByCategoryList,t.selectedQuestions),t.selectedQuestions=[],t.selectQuestion=[];break;case"move-up":const o=t.selectedQuestions.findIndex(c=>c.id===t.selectQuestion[0].id);o!==-1&&t.selectedQuestions.splice(o-1,0,t.selectedQuestions.splice(o,1)[0]);break;case"move-down":const s=t.selectedQuestions.findIndex(c=>c.id===t.selectQuestion[0].id);s!==-1&&t.selectedQuestions.splice(s+1,0,t.selectedQuestions.splice(s,1)[0]);break}}),e.addCase(oc,(t,_)=>{t.questionByCategoryList=[],t.selectedQuestions=_.payload}),e.addCase(ac,t=>{t.questionByCategoryList=[],t.selectedQuestions=[]}),e.addCase(ot,(t,_)=>Ba)}),Oa={mailCategoryList:[]},mq_=Q.createReducer(Oa,e=>{e.addCase(Vs,(t,_)=>{t.mailCategoryList=_.payload}).addCase(ot,(t,_)=>Oa)}),ic=Q.createAction("questionCate/setQuestionCateList"),Ga={questionCateList:[],totalItems:0},gq_=Q.createReducer(Ga,e=>{e.addCase(ic,(t,_)=>{t.questionCateList=_.payload.questionCateList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ga)}),za={notificationList:[],totalItems:0,unReadNotification:0},pq_=Q.createReducer(za,e=>{e.addCase(Mr,(t,_)=>{t.notificationList=_.payload.notificationList,t.totalItems=_.payload.totalItems,t.unReadNotification=_.payload.unReadNotification}).addCase(JN_,(t,_)=>{t.unReadNotification=_.payload}).addCase(QN_,(t,_)=>{t.unReadNotification+=_.payload}).addCase(ot,(t,_)=>za)}),rc=Q.createAction("myStudent/setMyStudentList"),Fa={myStudentList:[],totalItems:0},yq_=Q.createReducer(Fa,e=>{e.addCase(rc,(t,_)=>{t.myStudentList=_.payload}).addCase(ot,(t,_)=>Fa)}),cc=Q.createAction("assistants/setAssistantList"),Ha={assistantList:[]},fq_=Q.createReducer(Ha,e=>{e.addCase(cc,(t,_)=>{t.assistantList=_.payload}).addCase(ot,(t,_)=>Ha)}),lc=Q.createAction("sessionTemplates/setSessionTemplateList"),Va={sessionTemplateList:[],totalItems:0},wq_=Q.createReducer(Va,e=>{e.addCase(lc,(t,_)=>{t.sessionTemplateList=_.payload.sessionTemplateList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Va)}),dc=Q.createAction("sessionTemplateGeneralClasses/setSessionTemplateList"),Wa={sessionTemplateGeneralClassList:[],totalItems:0},vq_=Q.createReducer(Wa,e=>{e.addCase(dc,(t,_)=>{t.sessionTemplateGeneralClassList=_.payload.sessionTemplateGeneralClassList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Wa)}),uc=Q.createAction("tutorialScreens/setTutorialScreenList"),Ua={tutorialScreenList:[],totalItems:0},bq_=Q.createReducer(Ua,e=>{e.addCase(uc,(t,_)=>{t.tutorialScreenList=_.payload.tutorialScreenList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ua)}),hc=Q.createAction("customAlerts/setCustomAlertList"),Ya={customAlertList:[],totalItems:0},$q_=Q.createReducer(Ya,e=>{e.addCase(hc,(t,_)=>{t.customAlertList=_.payload.customAlertList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Ya)}),Xa={mediaList:[],totalItems:0,targetMedia:void 0},kq_=Q.createReducer(Xa,e=>{e.addCase(Br,(t,_)=>{t.mediaList=_.payload.mediaList,t.totalItems=_.payload.totalItems}).addCase(f_,(t,_)=>{t.targetMedia=_.payload.targetMedia}).addCase(ot,(t,_)=>Xa)}),mc=Q.createAction("dashboard/addTab"),gc=Q.createAction("dashboard/closeTab"),pc=Q.createAction("dashboard/editTab"),yc=Q.createAction("dashboard/clearTab"),xq_={tabs:localStorage.getItem("myTab")?JSON.parse(localStorage.getItem("myTab")??""):[]},Cq_=Q.createReducer(xq_,e=>{e.addCase(mc,(t,_)=>t.tabs.some(o=>o.url===_.payload.url)?t:{...t,tabs:[_.payload,...t.tabs]}).addCase(gc,(t,_)=>{let o=JSON.parse(JSON.stringify(t.tabs));return delete o[_.payload],o=o.filter(Boolean),{...t,tabs:o}}).addCase(ot,(t,_)=>(localStorage.removeItem("myTab"),{tabs:[]})).addCase(pc,(t,_)=>{const o=JSON.parse(JSON.stringify(t.tabs)),s=o.find(c=>_.payload.label===c.label);return s.url=_.payload.url,{...t,tabs:o}}).addCase(yc,(t,_)=>(localStorage.removeItem("myTab"),{tabs:[]}))}),fc=Q.createAction("sessionPlayer/changeNote"),wc=Q.createAction("sessionPlayer/changeTags"),vc=Q.createAction("sessionPlayer/answerQuestion"),bc=Q.createAction("sessionPlayer/setSessionPlayer"),$c=Q.createAction("sessionPlayer/setStartTime"),Za={sessionId:0,session:{id:0,studentId:0,teacherId:0,duration:0,conferenceRubric:null,studentDefaultQuestions:[],teacherDefaultQuestions:[],additionalQuestions:[]},results:[],startTime:""},Iq_=Q.createReducer(Za,e=>{e.addCase(bc,(t,_)=>_.payload).addCase(fc,(t,_)=>{const{isConfidential:o,text:s}=_.payload,c=t.results.find(d=>d.isTeacherResult);if(!c)return t;const u=JSON.parse(JSON.stringify(c)),g=u.notes.find(d=>!!d.isConfidential===o);return g?g.text=s:u.notes.push({isConfidential:o,text:s}),{...t,results:t.results.map(d=>d.isTeacherResult?u:d)}}).addCase(wc,(t,_)=>{const o=_.payload,s=t.results.find(u=>u.isTeacherResult);if(!s)return t;const c=JSON.parse(JSON.stringify(s));return c.tags=o,{...t,results:t.results.map(u=>u.isTeacherResult?c:u)}}).addCase(vc,(t,_)=>{const{text:o,questionId:s,isTeacherResult:c}=_.payload,u=t.results.find(p=>p.isTeacherResult===c);if(!u)return t;const g=JSON.parse(JSON.stringify(u)),d=g.questionResponses.find(p=>p.questionId===s);return d?d.text=o:g.questionResponses.push({questionId:s,text:o}),{...t,results:t.results.map(p=>p.isTeacherResult===c?g:p)}}).addCase($c,(t,_)=>{const o=_.payload;if(!o)return t;t.startTime=o}).addCase(ot,(t,_)=>Za)}),kc=Q.createAction("dataPlayer/setDataPlayer"),xc=Q.createAction("dataPlayer/answerQuestionDataPlayer"),Ja={id:0,questions:[{id:0,text:"",type:"",subQuestions:[],answers:[]}],questionResponse:[]},Sq_=Q.createReducer(Ja,e=>{e.addCase(kc,(t,_)=>_.payload).addCase(xc,(t,_)=>{const{questionId:o,text:s}=_.payload,c=t.questionResponse;if(!c)return t;const u=JSON.parse(JSON.stringify(c)),g=u.find(d=>d.questionId===o);return g?g.text=s:u.push({questionId:o,text:s}),{...t,questionResponse:u}}).addCase(ot,(t,_)=>Ja)}),Cc=Q.createAction("certificates/setCertificateList"),Qa={certificateList:[],totalItems:0},Aq_=Q.createReducer(Qa,e=>{e.addCase(Cc,(t,_)=>{t.certificateList=_.payload.certificateList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>Qa)}),Ic=Q.createAction("improveMyClass/setImproveMyClass"),Ka={improveMyClassList:[]},Eq_=Q.createReducer(Ka,e=>{e.addCase(Ic,(t,_)=>{t.improveMyClassList=_.payload}).addCase(ot,(t,_)=>Ka)}),Sc=Q.createAction("setFilterWidget"),ei={filterWidget:"Year"},Tq_=Q.createReducer(ei,e=>{e.addCase(Sc,(t,_)=>{t.filterWidget=_.payload.filterWidget}).addCase(ot,(t,_)=>ei)}),Ac=Q.createAction("bandScores/setBandScoreList"),ti={bandScoreList:[],totalItems:0},jq_=Q.createReducer(ti,e=>{e.addCase(Ac,(t,_)=>{t.bandScoreList=_.payload.bandScoreList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>ti)}),Ec=Q.createAction("schoolBlankDays/setSchoolBlankDayList"),_i={schoolBlankDayList:[],totalItems:0},Nq_=Q.createReducer(_i,e=>{e.addCase(Ec,(t,_)=>{t.schoolBlankDayList=_.payload.schoolBlankDayList,t.totalItems=_.payload.totalItems}).addCase(ot,(t,_)=>_i)}),Tc=Q.createAction("navMobile/setStudentIdSelectedByTeacher"),si={studentIdSelectedByTeacher:0},Pq_=Q.createReducer(si,e=>{e.addCase(Tc,(t,_)=>{t.studentIdSelectedByTeacher=_.payload}).addCase(ot,(t,_)=>si)}),jc=Q.createAction("setWeeklyQuestList"),Nc=Q.createAction("setOpenModelCongratulation"),ni={isOpenModelCongratulation:!1,lastQuest:void 0,weeklyQuests:[]},qq_=Q.createReducer(ni,e=>{e.addCase(jc,(t,_)=>{t.weeklyQuests=_.payload}).addCase(Nc,(t,_)=>{t.isOpenModelCongratulation=_.payload}).addCase(ot,(t,_)=>ni)}),Rq_=FP_({common:HP_,classes:VP_,conferenceRubrics:WP_,faqs:YP_,skills:XP_,emailTemplate:ZP_,suggestionBank:JP_,learningStrategy:QP_,subjects:KP_,learningSupportCategories:eq_,questionBank:tq_,badges:_q_,semester:nq_,goalExamples:aq_,users:iq_,reflections:lq_,reflectionResults:dq_,feedbacks:rq_,assessments:cq_,questionByCategory:hq_,mailCategory:mq_,questionCate:gq_,notification:pq_,myStudent:yq_,assignments:oq_,assistants:fq_,sesstionTemplates:wq_,sessionTemplateGeneralClasses:vq_,tutorialScreens:bq_,customAlerts:$q_,gallery:kq_,dashboard:Cq_,sessionPlayer:Iq_,dataPlayer:Sq_,certificate:Aq_,improveMyClass:Eq_,widget:Tq_,bandScores:jq_,schoolBlankDays:Nq_,navMobileReducer:Pq_,weeklyQuests:qq_}),Lq_=Q.configureStore({reducer:Rq_,middleware:e=>e({serializableCheck:!1})}),Mq_=async()=>{try{const e=j_();return!(!e||!(await f4_(e)).data)}catch{return!1}},Dq_=(e,t)=>Array.isArray(e)?Array.isArray(t)?e.filter(o=>t.includes(o)).length>0:!0:!1,Bq_=e=>{const t=e?.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},Oq_=(e,t)=>{let _=null;return(...o)=>{const s=()=>e(...o);clearTimeout(_),_=setTimeout(s,t)}},Gq_=e=>{const t=document.createElement("p");t.innerHTML=e;const _=t.innerText;return t.remove(),_},zq_=()=>(Math.random()+1).toString(36).substring(7),Fq_=E_;exports.i18n=jn;Object.defineProperty(exports,"I18nextProvider",{enumerable:!0,get:()=>at.I18nextProvider});Object.defineProperty(exports,"useTranslation",{enumerable:!0,get:()=>at.useTranslation});exports.ACCESS_TOKEN=jt;exports.ANSWER_EDITOR_HEIGHT=Ln;exports.AcademicClassSelector=NP_;exports.AddButton=Fs;exports.BASE_URL=ft;exports.CHAT_CHANNEL=D3_;exports.CategorySelector=LN_;exports.CommonAlert=aP_;exports.CommonHeader=vN_;exports.CommonModal=Xs;exports.CreatableSelector=IN_;exports.CustomPagination=G_;exports.CustomSelector=Dt;exports.CustomTab=Ki;exports.DATE_FORMAT=qn;exports.DATE_RESULT=li;exports.DEFAULT_FILTER=Pn;exports.DEFAULT_LANGUAGE_CODE=Ns;exports.Dashboard=bC_;exports.DeleteButtonIcon=Hs;exports.DetailActionButtons=Hn;exports.EMOTIONS=z3_;exports.EditButtonIcon=kN_;exports.EmailTemplateDetail=RI_;exports.EmailTemplateList=ZC_;exports.EmptyDataAlert=Q_;exports.ErrorHandler=Nt;exports.FULL_DATE_RESULT=q3_;exports.FileInput=BN_;exports.GOOGLE_RECAPTCHA_KEY=N3_;exports.GalleryList=EP_;exports.INIT_AMPLITUDE_KEY_PROD=ii;exports.INIT_AMPLITUDE_KEY_STAGE=ri;exports.IS_USER_SESSION_BROWSER=O_;exports.Images=B_;exports.LANGUAGES=H3_;exports.LICENSE_AGGRID=R3_;exports.LinkEditButton=ms;exports.Loading=pN_;exports.Login=oC_;exports.NOTIFICATION_ALERT_KEY=Mn;exports.NOTIFICATION_CHANNEL=B3_;exports.NotFound=Fn;exports.NotificationList=oP_;exports.NotificationLogoutModal=$N_;exports.NotificationModal=fN_;exports.QUESTION_TYPES=L3_;exports.QUESTION_TYPES_OPTIONS=$n;exports.QuestionCategorySelector=PN_;exports.QuestionTypeSelector=SN_;exports.QuitPrompt=Us;exports.RequiredLabel=zt;exports.SANDBOX_NOTIFICATION=O3_;exports.SUPPORTED_LANGUAGES_CODE=di;exports.SandboxAlert=xN_;exports.SchoolList=PP_;exports.ScrollToTop=yN_;exports.SearchBox=K_;exports.SearchBoxContainer=Wi;exports.SkillList=YI_;exports.StarRatingSelector=MN_;exports.SuggestionCategorySelector=TN_;exports.TAB_COLORS=F3_;exports.TINY_MCE_API_KEY=j3_;exports.TheContent=CC_;exports.ToggleButton=DN_;exports.UploadFileButton=Rr;exports.UserContainer=eN_;exports.UserDetail=mN_;exports.UserList=Qi;exports.addTab=mc;exports.amplitudeClient=Fq_;exports.answerQuestion=vc;exports.answerQuestionDataPlayer=xc;exports.api=ue;exports.apiUpload=Ot;exports.canAccessRoute=Dq_;exports.changeNote=fc;exports.changeTags=wc;exports.clearTab=yc;exports.closeTab=gc;exports.debounce=Oq_;exports.editTab=pc;exports.editorConfig=Mi;exports.firstCheckToken=Mq_;exports.generateRandomString=zq_;exports.getAccessToken=j_;exports.getCookieValue=Ai;exports.getFileUrl=o_;exports.getInfo=w4_;exports.getStaticFileUrl=n_;exports.getTextFromHTML=Gq_;exports.initAmplitude=xi;exports.isInViewport=Bq_;exports.isLocalhost=U_;exports.reset=ot;exports.setAlert=J;exports.setAssessmentList=Kr;exports.setAssignmentList=Zr;exports.setAssistantList=cc;exports.setBadgeList=Yr;exports.setBandScoreList=Ac;exports.setCertificateList=Cc;exports.setClassList=Gr;exports.setConferenceRubricList=zr;exports.setConversationOneToOne=fi;exports.setCurrentStudentId=vi;exports.setCurrentStudentName=$i;exports.setCurrentStudentUserId=bi;exports.setCustomAlertList=hc;exports.setDataPlayer=kc;exports.setEditItemQuesion=oc;exports.setEnableIEP=mi;exports.setEnableMarioAi=yi;exports.setEnableSurvey=gi;exports.setEnableWellBeing=pi;exports.setFeedbackList=Qr;exports.setFilterWidget=Sc;exports.setGoalExampleList=Jr;exports.setImproveMyClass=Ic;exports.setLanguage=wi;exports.setLearningSupportCategoryList=Wr;exports.setLoading=ne;exports.setMailCategory=Vs;exports.setModal=Yt;exports.setMoveItemQuestion=nc;exports.setMyStudent=rc;exports.setOpenModelCongratulation=Nc;exports.setQuestionByCategory=_c;exports.setQuestionCateList=ic;exports.setQuestionList=Ur;exports.setReflectionList=ec;exports.setReflectionResultList=tc;exports.setResetQuestionList=ac;exports.setSandboxMode=Gn;exports.setSchoolBlankDayList=Ec;exports.setSelectQuestion=sc;exports.setSemesterList=Xr;exports.setSessionPlayer=bc;exports.setSessionTemplateGeneralClassList=dc;exports.setSessionTemplateList=lc;exports.setStartTime=$c;exports.setStrategyList=Hr;exports.setStudentIdSelectedByTeacher=Tc;exports.setStudentList=Gi;exports.setSubjectList=Vr;exports.setSuggestionList=Fr;exports.setTurnOffPassWhenChangeMode=ki;exports.setTutorialScreenList=uc;exports.setUser=zs;exports.setUserList=ls;exports.setWeeklyQuestList=jc;exports.showFontSize=hi;exports.showMenuBar=ui;exports.store=Lq_;exports.systemCertificateUpload=gI_;exports.systemStudentBadge=mI_;exports.uploadFile=hI_;exports.useFilters=Ws;exports.useGalleryList=Or;exports.utcToLocalTime=ys;
|