@blueking/ai-blueking 1.2.4 → 1.2.5-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/dist/composables/use-session-store.d.ts +3 -0
  2. package/dist/store/sessionStore.d.ts +3 -0
  3. package/dist/vue2/{arc-BOUitg-B.mjs → arc-Cu6J9qUw.mjs} +1 -1
  4. package/dist/vue2/{blockDiagram-38ab4fdb-DliGca9k.mjs → blockDiagram-38ab4fdb-LsJeZjpP.mjs} +5 -5
  5. package/dist/{vue3/c4Diagram-3d4e48cf-Czp_A6Dy.mjs → vue2/c4Diagram-3d4e48cf-CGDHpak-.mjs} +2 -2
  6. package/dist/{vue3/channel-BXebI77b.mjs → vue2/channel-B0DIEPPg.mjs} +1 -1
  7. package/dist/vue2/{classDiagram-70f12bd4-1J2xo3td.mjs → classDiagram-70f12bd4-nGiNgLZY.mjs} +5 -5
  8. package/dist/vue2/{classDiagram-v2-f2320105-CT2fy2BZ.mjs → classDiagram-v2-f2320105-Bz8BaiM6.mjs} +5 -5
  9. package/dist/vue2/{clone-DlmS6Hpz.mjs → clone-As6PecbR.mjs} +1 -1
  10. package/dist/vue2/{createText-2e5e7dd3-hozOM-m6.mjs → createText-2e5e7dd3-DcW-I4ZS.mjs} +1 -1
  11. package/dist/{vue3/edges-e0da2a9e-GHcemDlW.mjs → vue2/edges-e0da2a9e-C_Hf4mPX.mjs} +3 -3
  12. package/dist/{vue3/erDiagram-9861fffd-B1NTSuzT.mjs → vue2/erDiagram-9861fffd-DheTYAr2.mjs} +4 -4
  13. package/dist/vue2/{flowDb-956e92f1-DfgEsOQ_.mjs → flowDb-956e92f1-Dv1A_e5P.mjs} +1 -1
  14. package/dist/{vue3/flowDiagram-66a62f08-CesPe1Wm.mjs → vue2/flowDiagram-66a62f08-BCAIvIN9.mjs} +6 -6
  15. package/dist/vue2/{flowDiagram-v2-96b9c2cf-C6LJ2Yaa.mjs → flowDiagram-v2-96b9c2cf-YxJetz1Q.mjs} +5 -5
  16. package/dist/vue2/{flowchart-elk-definition-4a651766-D-aGmsVO.mjs → flowchart-elk-definition-4a651766-DsEs7lFp.mjs} +4 -4
  17. package/dist/{vue3/ganttDiagram-c361ad54-CBanyFTw.mjs → vue2/ganttDiagram-c361ad54-DIpHRixj.mjs} +2 -2
  18. package/dist/{vue3/gitGraphDiagram-72cf32ee-BofFrjnz.mjs → vue2/gitGraphDiagram-72cf32ee-4AOTfy-i.mjs} +1 -1
  19. package/dist/vue2/{graph-BpqfoG35.mjs → graph-DtkSnG_z.mjs} +1 -1
  20. package/dist/{vue3/index-3862675e-D15pFlwW.mjs → vue2/index-3862675e-lCbHaey0.mjs} +6 -6
  21. package/dist/vue2/index.es.min.js +1 -1
  22. package/dist/vue2/index.iife.min.js +2 -2
  23. package/dist/vue2/index.umd.min.js +2 -2
  24. package/dist/vue2/{infoDiagram-f8f76790-BQI1AJW0.mjs → infoDiagram-f8f76790-CgAdTmu2.mjs} +1 -1
  25. package/dist/vue2/{journeyDiagram-49397b02-Cxl5Wcrv.mjs → journeyDiagram-49397b02-Cvbcutge.mjs} +3 -3
  26. package/dist/vue2/{layout-Bp6b2t6Q.mjs → layout-DzkmTH4I.mjs} +2 -2
  27. package/dist/vue2/{line-gynmqiLG.mjs → line-Dh6wGedm.mjs} +1 -1
  28. package/dist/vue2/{linear-Baahmd3t.mjs → linear-BipEvy3z.mjs} +1 -1
  29. package/dist/vue2/{mindmap-definition-fc14e90a-BHaNc8DC.mjs → mindmap-definition-fc14e90a-BkOGodac.mjs} +2 -2
  30. package/dist/vue2/{pieDiagram-8a3498a8-nmkVk00q.mjs → pieDiagram-8a3498a8-DN3C4H02.mjs} +2 -2
  31. package/dist/vue2/{quadrantDiagram-120e2f19-CwbX_iGj.mjs → quadrantDiagram-120e2f19-D-rVXQ4X.mjs} +2 -2
  32. package/dist/vue2/{requirementDiagram-deff3bca-D52cx1_G.mjs → requirementDiagram-deff3bca-COrRiOz1.mjs} +4 -4
  33. package/dist/vue2/{sankeyDiagram-04a897e0-BPCBBkOd.mjs → sankeyDiagram-04a897e0-CW5YHP54.mjs} +1 -1
  34. package/dist/vue2/{sequenceDiagram-704730f1-DCtPjob5.mjs → sequenceDiagram-704730f1-B2oomfGv.mjs} +2 -2
  35. package/dist/{vue3/stateDiagram-587899a1-BxMKFnYy.mjs → vue2/stateDiagram-587899a1-DgbZEcZC.mjs} +5 -5
  36. package/dist/vue2/{stateDiagram-v2-d93cdb3a-CJc3mbvF.mjs → stateDiagram-v2-d93cdb3a-DT4mL6qz.mjs} +5 -5
  37. package/dist/{vue3/styles-6aaf32cf-fe6SY6Yz.mjs → vue2/styles-6aaf32cf-BZzzSjn9.mjs} +1 -1
  38. package/dist/vue2/{styles-9a916d00-DOYk4ZOF.mjs → styles-9a916d00-CTCN8KF_.mjs} +1 -1
  39. package/dist/{vue3/styles-c10674c1-FhAp19qy.mjs → vue2/styles-c10674c1-CdDNlWSY.mjs} +4 -4
  40. package/dist/vue2/{svgDrawCommon-08f97a94-Dlyho8qU.mjs → svgDrawCommon-08f97a94-dN7ccW-t.mjs} +1 -1
  41. package/dist/vue2/{timeline-definition-85554ec2-BgDt5xsK.mjs → timeline-definition-85554ec2-_OuXIGce.mjs} +2 -2
  42. package/dist/vue2/{vue2-DZV7x_6k.mjs → vue2-C5t6FPGH.mjs} +27 -31
  43. package/dist/vue2/{xychartDiagram-e933f94c-Cyhzi9_B.mjs → xychartDiagram-e933f94c-C1oI7x9F.mjs} +4 -4
  44. package/dist/vue3/{arc-h_dMv_KS.mjs → arc-uFVJ_Yu4.mjs} +1 -1
  45. package/dist/vue3/{blockDiagram-38ab4fdb-CY9QtX38.mjs → blockDiagram-38ab4fdb-VvBw6min.mjs} +5 -5
  46. package/dist/{vue2/c4Diagram-3d4e48cf-BKcAm1aV.mjs → vue3/c4Diagram-3d4e48cf-BMyKP8jH.mjs} +2 -2
  47. package/dist/{vue2/channel-Sj8DPX3z.mjs → vue3/channel-TAFM2ljU.mjs} +1 -1
  48. package/dist/vue3/{classDiagram-70f12bd4-WBcT4cRp.mjs → classDiagram-70f12bd4-BRm0RqjZ.mjs} +5 -5
  49. package/dist/vue3/{classDiagram-v2-f2320105-BD7okj8D.mjs → classDiagram-v2-f2320105-DWIRfqxB.mjs} +5 -5
  50. package/dist/vue3/{clone-W_ZiobXS.mjs → clone-DhQiUV_u.mjs} +1 -1
  51. package/dist/vue3/{createText-2e5e7dd3-rtYwyyxn.mjs → createText-2e5e7dd3-ObgwFgM_.mjs} +1 -1
  52. package/dist/{vue2/edges-e0da2a9e-BPUfD9yl.mjs → vue3/edges-e0da2a9e-BBbYkHfs.mjs} +3 -3
  53. package/dist/{vue2/erDiagram-9861fffd-BnVKEInB.mjs → vue3/erDiagram-9861fffd-33a5mW0V.mjs} +4 -4
  54. package/dist/vue3/{flowDb-956e92f1-gwYhfsBN.mjs → flowDb-956e92f1-DiG6o5Lq.mjs} +1 -1
  55. package/dist/{vue2/flowDiagram-66a62f08-DJucFMSN.mjs → vue3/flowDiagram-66a62f08-je9191YA.mjs} +6 -6
  56. package/dist/vue3/{flowDiagram-v2-96b9c2cf-FfVCxps5.mjs → flowDiagram-v2-96b9c2cf-C9AqpCcm.mjs} +5 -5
  57. package/dist/vue3/{flowchart-elk-definition-4a651766-BOaXbNAz.mjs → flowchart-elk-definition-4a651766-DyOIWy1_.mjs} +4 -4
  58. package/dist/{vue2/ganttDiagram-c361ad54-CDTwD8OX.mjs → vue3/ganttDiagram-c361ad54-BL89I3T5.mjs} +2 -2
  59. package/dist/{vue2/gitGraphDiagram-72cf32ee-BY_Mc4Iy.mjs → vue3/gitGraphDiagram-72cf32ee-B5cO6o0R.mjs} +1 -1
  60. package/dist/vue3/{graph-CAB6rvd7.mjs → graph-B_ZCIhCv.mjs} +1 -1
  61. package/dist/{vue2/index-3862675e-BwovxPkh.mjs → vue3/index-3862675e-p21c3uf0.mjs} +6 -6
  62. package/dist/vue3/index.es.min.js +1 -1
  63. package/dist/vue3/index.iife.min.js +2 -2
  64. package/dist/vue3/index.umd.min.js +2 -2
  65. package/dist/vue3/{infoDiagram-f8f76790--Fgm45GF.mjs → infoDiagram-f8f76790-C-UhBSCJ.mjs} +1 -1
  66. package/dist/vue3/{journeyDiagram-49397b02-BFvgBLCQ.mjs → journeyDiagram-49397b02-CjlyJjDk.mjs} +3 -3
  67. package/dist/vue3/{layout-2meHoN06.mjs → layout-BiEtBuT0.mjs} +2 -2
  68. package/dist/vue3/{line-B7b4lLrD.mjs → line-51tzIvbT.mjs} +1 -1
  69. package/dist/vue3/{linear-B7qPtrLj.mjs → linear-iV8MpW-v.mjs} +1 -1
  70. package/dist/vue3/{mindmap-definition-fc14e90a-MQtNV4PV.mjs → mindmap-definition-fc14e90a-Be2kQgY5.mjs} +2 -2
  71. package/dist/vue3/{pieDiagram-8a3498a8-D7v5SP6r.mjs → pieDiagram-8a3498a8-D4ZR0jOY.mjs} +2 -2
  72. package/dist/vue3/{quadrantDiagram-120e2f19-CJw2xF6z.mjs → quadrantDiagram-120e2f19-Co_Rrg4s.mjs} +2 -2
  73. package/dist/vue3/{requirementDiagram-deff3bca--Zn_qOIZ.mjs → requirementDiagram-deff3bca-tsegkqgU.mjs} +4 -4
  74. package/dist/vue3/{sankeyDiagram-04a897e0-DCUxAEhV.mjs → sankeyDiagram-04a897e0-BNysrFHu.mjs} +1 -1
  75. package/dist/vue3/{sequenceDiagram-704730f1-FioRuUjK.mjs → sequenceDiagram-704730f1-zNUpB2vi.mjs} +2 -2
  76. package/dist/{vue2/stateDiagram-587899a1-hNNKpVTK.mjs → vue3/stateDiagram-587899a1-DrpZ-YJc.mjs} +5 -5
  77. package/dist/vue3/{stateDiagram-v2-d93cdb3a-BwF1x08-.mjs → stateDiagram-v2-d93cdb3a-L_XkeGU3.mjs} +5 -5
  78. package/dist/{vue2/styles-6aaf32cf-BZkBFTVa.mjs → vue3/styles-6aaf32cf-8q11zTzh.mjs} +1 -1
  79. package/dist/vue3/{styles-9a916d00-OdgVhxz-.mjs → styles-9a916d00-CiHXRQ9C.mjs} +1 -1
  80. package/dist/{vue2/styles-c10674c1-BNZsbAjZ.mjs → vue3/styles-c10674c1-Dz193kd_.mjs} +4 -4
  81. package/dist/vue3/{svgDrawCommon-08f97a94-Cdpm7CY0.mjs → svgDrawCommon-08f97a94-DnREWheN.mjs} +1 -1
  82. package/dist/vue3/{timeline-definition-85554ec2-B20gSoSo.mjs → timeline-definition-85554ec2-BvQmXSuC.mjs} +2 -2
  83. package/dist/vue3/{vue3-CxINvXAN.mjs → vue3-BNNGYfPD.mjs} +27 -31
  84. package/dist/vue3/{xychartDiagram-e933f94c-CyyyeKQm.mjs → xychartDiagram-e933f94c-Dpdm07-V.mjs} +4 -4
  85. package/package.json +2 -2
@@ -183,7 +183,7 @@
183
183
  &~ .knowledge-head {
184
184
  margin-bottom: 8px;
185
185
  }
186
- }`;n=document.createElement("style"),n.textContent=o,document.head.appendChild(n)},a=()=>{n&&(n.remove(),n=null)};J.onBeforeMount(()=>{r()}),J.onBeforeUnmount(()=>{a()})};function KRe(n,r,a,o,u,d,h){try{var b=n[d](h),v=b.value}catch(y){a(y);return}b.done?r(v):Promise.resolve(v).then(o,u)}function Zw(n){return function(){var r=this,a=arguments;return new Promise(function(o,u){var d=n.apply(r,a);function h(v){KRe(d,o,u,h,b,"next",v)}function b(v){KRe(d,o,u,h,b,"throw",v)}h(void 0)})}}function uYt(n,r,a){return r in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n}function Bue(n){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{},o=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(a).filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable}))),o.forEach(function(u){uYt(n,u,a[u])})}return n}function hYt(n,r){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);a.push.apply(a,o)}return a}function fYt(n,r){return r=r??{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):hYt(Object(r)).forEach(function(a){Object.defineProperty(n,a,Object.getOwnPropertyDescriptor(r,a))}),n}const dYt=({handleStart:n,handleText:r,handleReferenceDoc:a,handleThink:o,handleEnd:u,handleError:d,requestOptions:h,otherOptions:b})=>{let v=WRe({apiPrefix:h.url,headers:h.headers,beforeRequest:h.beforeRequest,afterRequest:h.afterRequest});const y="内容正在生成中...",A=J.ref(h),k=J.ref(),C=J.ref({}),T=J.ref([]),B={},L={},I=J.ref(!1),O=J.computed(()=>{const ft=[];for(let on=T.value.length-1;on>=0;on--){const Bt=T.value[on];let ut=on+1,dt=T.value[ut];for(;dt&&![Zr.Ai,Zr.TokenExpired,Zr.ImageNotSupported,Zr.Pause,Zr.Guide].includes(dt.role);)ut+=1,dt=T.value[ut];if(Bt.role===Zr.System)break;Bt.status!==Of.Fail&&!((dt==null?void 0:dt.status)===Of.Fail&&[Zr.User,Zr.UserImage].includes(Bt.role))&&![Zr.Time,Zr.System].includes(Bt.role)&&ft.unshift(Bt)}return ft}),F=J.computed(()=>{var ft;const on=(ft=k.value)===null||ft===void 0?void 0:ft.sessionCode;return on?C.value[on]:!1}),z=J.computed(()=>{var ft,on,Bt;const ut=[],dt=[],jt=[],et=T.value.findLastIndex(ht=>ht.role===Zr.System&&["已启用角色","已启用模型"].some(mt=>ht.content.includes(mt)));let je=0;(Bt=k.value)===null||Bt===void 0||(on=Bt.roleInfo)===null||on===void 0||(ft=on.content)===null||ft===void 0||ft.forEach(ht=>{const mt=T.value[et+1+je];let sn=T.value[et+2+je];if((mt==null?void 0:mt.content)===ht.content&&mt.role!==Zr.System&&(ut.push(Sue(mt)),je+=1,(mt==null?void 0:mt.role)===Zr.Pause)){for(;sn&&sn.role===Zr.System;)je+=1,sn=T.value[et+1+je];for(;sn&&[Zr.User,Zr.UserImage].includes(sn.role);)ut.push(Sue(sn)),je+=1,sn=T.value[et+1+je]}}),dt.push(...O.value.map(Sue));const wt=ht=>{let mt=!0;for(let Ne=ht;Ne<ut.length;Ne++){var sn;ut[Ne].content!==((sn=dt[Ne-ht])===null||sn===void 0?void 0:sn.content)&&(mt=!1)}return mt};for(let ht=0;ht<ut.length;ht++){const mt=ut[ht];if(wt(ht))break;jt.push(mt)}return jt.push(...dt),jt.forEach(ht=>{ht.content=oYt(ht.content),ht.content=D$t(ht.content)}),jt}),j=new _$t({handleStart:re,handleText:Le,handleReferenceDoc:De,handleThink:Ze,handleEnd:ot,handleError:Be,beforeRequest:h.beforeRequest,afterRequest:h.afterRequest});function G(ft){A.value=Bue({},A.value,ft),(ft.url||ft.headers)&&(v=WRe({apiPrefix:A.value.url,headers:A.value.headers,beforeRequest:A.value.beforeRequest,afterRequest:A.value.afterRequest}))}function U(ft){return v.plusSessionContent(ft).then(on=>(ft.id=on.id,ft.createdAt=on.createdAt,ft))}const q=k$t((ft,on)=>v.modifySessionContent(on),1e3);function Q(ft){k.value=ft,ft!=null&&ft.sessionCode&&(B[ft.sessionCode]||(B[ft.sessionCode]=[]),T.value=B[ft.sessionCode])}function H(ft){k.value&&(B[k.value.sessionCode]=ft,T.value=ft)}function Y(ft){return P.apply(this,arguments)}function P(){return P=Zw(function*(ft){k.value=ft;try{I.value=!0;const on=yield v.getSessionContents(ft.sessionCode);B[k.value.sessionCode]=on,T.value=on,I.value=!1}catch{I.value=!1}}),P.apply(this,arguments)}function X(ft,on){return ie(on).find(ut=>ut.id===ft)}function N(ft){var on;return((on=k.value)===null||on===void 0?void 0:on.sessionCode)===ft?T.value.at(-1):B[ft].at(-1)}function ie(ft){var on;return((on=k.value)===null||on===void 0?void 0:on.sessionCode)===ft?T.value:B[ft]}function le(ft,on){return ie(ft).push(on),U(on)}function fe(ft){var on;const ut=(((on=k.value)===null||on===void 0?void 0:on.sessionCode)===ft.sessionCode?T.value:B[ft.sessionCode]).find(dt=>+(dt.id||0)==+(ft.id||0));return ut&&Object.assign(ut,ft),q(ft.id,ft)}function ce(ft,on,Bt){var ut;const dt=((ut=k.value)===null||ut===void 0?void 0:ut.sessionCode)===ft?T.value:B[ft],jt=[];return on.forEach(et=>{const je=dt.findIndex(wt=>wt.id===et);if(je>-1){const wt=dt[je-1],ht=dt[je+1],mt=dt[je+2];if(dt.splice(je,1),jt.push(et),[Zr.Hidden].includes(wt==null?void 0:wt.role)){const sn=dt.findIndex(Ne=>Ne.id===wt.id);dt.splice(sn,1),jt.push(wt.id)}if((ht==null?void 0:ht.role)===Zr.Ai||Bt&&[Zr.Ai,Zr.Guide,Zr.TokenExpired,Zr.ImageNotSupported,Zr.Pause].includes(ht==null?void 0:ht.role)){const sn=dt.findIndex(Ne=>Ne.id===ht.id);dt.splice(sn,1),jt.push(ht.id)}if([Zr.Guide].includes(mt==null?void 0:mt.role)&&Bt){const sn=dt.findIndex(Ne=>Ne.id===mt.id);dt.splice(sn,1),jt.push(mt.id)}}}),jt}function ue(ft,on){const Bt=ce(ft,[on],!0);return v.batchDeleteSessionContents(Bt)}function he(ft,on){const Bt=ce(ft,on,!1);return v.batchDeleteSessionContents(Bt)}function re(ft){return be.apply(this,arguments)}function be(){return be=Zw(function*(ft){C.value[ft]=!0;const on={sessionCode:ft,role:Zr.Ai,status:Of.Loading,content:y};return yield le(ft,on),n==null?void 0:n(ft,on)}),be.apply(this,arguments)}function De(ft,on,Bt){return ge.apply(this,arguments)}function ge(){return ge=Zw(function*(ft,on,Bt){const ut=N(ft),dt=L$t(on,b==null?void 0:b.hideReferenceDocIcon);ut.content=Bt?dt:ut.content+dt,yield q(ut.id,ut),yield a==null?void 0:a(ft,ut)}),ge.apply(this,arguments)}function Ze(ft,on,Bt,ut){return _e.apply(this,arguments)}function _e(){return _e=Zw(function*(ft,on,Bt,ut){const dt=N(ft);dt.content=sYt(dt.content,on,Bt,ut),yield q(dt.id,dt),yield o==null?void 0:o(ft,dt)}),_e.apply(this,arguments)}function Le(ft,on,Bt){return Ve.apply(this,arguments)}function Ve(){return Ve=Zw(function*(ft,on,Bt){const ut=N(ft);if(ut.content===y)ut.content=on;else if(ut.status===Of.Loading)ut.content=Bt?on:ut.content+on;else return;yield q(ut.id,ut),yield r==null?void 0:r(ft,ut)}),Ve.apply(this,arguments)}function ot(ft,on){return Se.apply(this,arguments)}function Se(){return Se=Zw(function*(ft,on){const Bt=N(ft);if(Bt.content===y||cYt(Bt.content)){Be(ft,"聊天内容已中断");return}Bt.status===Of.Loading&&(C.value[ft]=!1,on&&(Bt.content=on),Bt.status=Of.Success,yield q(Bt.id,Bt),yield u==null?void 0:u(ft,Bt))}),Se.apply(this,arguments)}function Be(ft,on,Bt){return we.apply(this,arguments)}function we(){return we=Zw(function*(ft,on,Bt){const ut=N(ft);if(ut.status=Of.Fail,ut.content=on,C.value[ft]=!1,Bt===FQ.TokenExpired){var dt,jt;if(ut.content="抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))",ut.role=Zr.TokenExpired,!((jt=k.value)===null||jt===void 0||(dt=jt.sessionProperty)===null||dt===void 0)&&dt.isAutoClear){var et;yield le(ft,{sessionCode:ft,role:Zr.System,content:"由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息"}),yield v.clearSession((et=k.value)===null||et===void 0?void 0:et.sessionCode)}}Bt===FQ.ImageNotSupported&&(ut.content="抱歉,当前模型不支持图片内容解析",ut.role=Zr.ImageNotSupported),yield q(ut.id,ut),yield d==null?void 0:d(ft,ut,Bt)}),we.apply(this,arguments)}function ke(ft,on){return Te.apply(this,arguments)}function Te(){return Te=Zw(function*(ft,on){let Bt=!1;L[ft]=[];for(const ut of on)if(Bt)L[ft].push(ut);else{const dt=fYt(Bue({},iYt(ut)),{sessionCode:ft,status:Of.Success});yield le(ft,dt),dt.role===Zr.Pause&&(Bt=!0)}}),Te.apply(this,arguments)}function vt(ft,on,Bt){if(on.role!==Zr.Ai)return;const ut=T.value.slice(Bt,T.value.length).map(jt=>jt.id).filter(jt=>jt!==void 0);ut.length>0&&he(ft,ut);const dt=T.value[Bt-1];dt&&Pe(dt)}function Pe({sessionCode:ft,url:on,data:Bt,headers:ut}){const dt=L[ft];(dt==null?void 0:dt.length)>0?ke(ft,dt):Dn(ft,Bt,on,ut)}function Dn(ft,on,Bt,ut){var dt;const jt=N(ft);j.stream({sessionCode:ft,url:Bt||`${A.value.url}/chat_completion/`,data:Bue({session_content_id:jt==null?void 0:jt.id,session_code:ft,execute_kwargs:{stream:!0}},on,A.value.data),headers:ut||((dt=A.value)===null||dt===void 0?void 0:dt.headers)})}function st(ft,on,Bt){return wn.apply(this,arguments)}function wn(){return wn=Zw(function*(ft,on,Bt){var ut,dt;if(on.role!==Zr.User)return;const jt=T.value.slice(Bt,T.value.length).map(et=>et.id).filter(et=>et!==void 0);jt.length>0&&he(ft,jt),yield le(ft,{role:Zr.User,content:on.content,sessionCode:ft,property:{extra:{cite:(dt=on.property)===null||dt===void 0||(ut=dt.extra)===null||ut===void 0?void 0:ut.cite}}}),Pe(on)}),wn.apply(this,arguments)}function fn(ft,on){let Bt=[];if(T.value[ft].role===Zr.User){Bt=T.value.slice(ft,ft+2).map(dt=>dt.id).filter(dt=>dt!==void 0),he(on,Bt);return}Bt=T.value.slice(ft-1,ft+1).map(dt=>dt.id).filter(dt=>dt!==void 0),he(on,Bt)}function Wn(ft){j.stop(ft)}return{currentSession:k,sessionContents:T,sessionContentsMap:B,sessionLoadingMap:C,prompts:z,currentSessionLoading:F,isLoadingSessionContents:I,chat:Pe,stopChat:Wn,plusSessionContent:le,updateSessionContent:fe,getSessionContentById:X,getLastSessionContentBySessionCode:N,getSessionContentsBySessionCode:ie,setCurrentSession:Q,setCurrentSessionChain:Y,setSessionContents:H,deleteSessionContent:ue,deleteSessionContents:he,handleStartChat:re,handleErrorChat:Be,handleCompleteRole:ke,reGenerateChat:vt,reSendChat:st,deleteChat:fn,getAgentInfoApi:(...ft)=>v.getAgentInfo(...ft),clearSessionApi:(...ft)=>v.clearSession(...ft),getSessionsApi:(...ft)=>v.getSessions(...ft),plusSessionApi:(...ft)=>v.plusSession(...ft),modifySessionApi:(...ft)=>v.modifySession(...ft),deleteSessionApi:(...ft)=>v.deleteSession(...ft),batchDeleteSessionsApi:(...ft)=>v.batchDeleteSessions(...ft),getSessionApi:(...ft)=>v.getSession(...ft),getSessionContentsApi:(...ft)=>v.getSessionContents(...ft),plusSessionContentApi:(...ft)=>v.plusSessionContent(...ft),modifySessionContentApi:(...ft)=>v.modifySessionContent(...ft),deleteSessionContentApi:(...ft)=>v.deleteSessionContent(...ft),batchDeleteSessionContentsApi:(...ft)=>v.batchDeleteSessionContents(...ft),renameSessionApi:(...ft)=>v.renameSession(...ft),updateRequestOptions:G}};(function(){var n='<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-refresh" viewBox="0 0 64 64"><path d="M54.3 23.1C55.4 25.9 56 29 56 32c0 13.3-10.8 24-24 24-5.7 0-11.2-2-15.5-5.7h4.8v-4H10v11.2h4v-4.1c11.8 9.9 29.5 8.4 39.4-3.4 6.8-8.1 8.4-19.2 4.3-28.9l-3.4 2zM9.7 40.9C8.6 38.1 8 35 8 32 8 18.7 18.8 8 32 8c5.7 0 11.2 2 15.5 5.7h-4.8v4H54V6.5h-4v4.1C38.2.6 20.5 2.2 10.6 14c-6.8 8.1-8.4 19.2-4.3 28.9l3.4-2z"/></g></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-auto-refresh-line" viewBox="0 0 64 64"><path d="M54.3 23.1l3.4-2c4.1 9.7 2.5 20.8-4.3 28.9-9.8 11.7-27.2 13.3-39 3.7l-.4-.3v4.1h-4V46.3h11.3v4h-4.8C20.8 54 26.3 56 32 56c13.2 0 24-10.7 24-24 0-2.8-.5-5.7-1.5-8.4l-.2-.5 3.4-2-3.4 2zM49.6 10.3l.4.3V6.5h4v11.2H42.7v-4h4.8C43.2 10 37.7 8 32 8 18.8 8 8 18.7 8 32c0 2.8.5 5.7 1.5 8.4l.2.5-3.4 2C2.2 33.2 3.8 22.1 10.6 14c9.8-11.7 27.2-13.4 39-3.7z"/><path d="M43.1 43.3h-5.3l-1.7-5.2h-8.2l-1.7 5.2H21l8.3-22.7H35l8.1 22.7zM35 34.4l-2.6-7.9c-.2-.5-.3-1.2-.4-2h-.1c-.1.7-.2 1.3-.4 1.9l-2.6 7.9H35z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-apijiedian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M451.372 703.988h-84.794l-33.707-87.22H178.554l-31.868 87.22H64L214.37 320h82.428l154.574 383.988zm-143.518-151.92L254.66 409.572l-52.142 142.496h105.337zm184.861 151.92V320h125.083c47.398 0 78.298 1.926 92.7 5.767 22.124 5.766 40.645 18.287 55.562 37.586 14.917 19.3 22.381 44.22 22.381 74.784 0 23.579-4.302 43.39-12.907 59.459-8.604 16.068-19.525 28.687-32.787 37.855-13.25 9.168-26.733 15.24-40.424 18.202-18.606 3.67-45.56 5.498-80.847 5.498h-50.83V704h-77.943l.012-.012zm77.943-319.031v108.969h42.654c30.729 0 51.26-2.012 61.617-6.023 10.357-4.01 18.483-10.302 24.354-18.86 5.884-8.559 8.825-18.507 8.825-29.858 0-13.971-4.13-25.492-12.38-34.575-8.248-9.083-18.691-14.752-31.34-17.02-9.304-1.743-28.008-2.62-56.089-2.62h-37.654l.013-.013zm279.4 319.03V320H928v383.988h-77.943z"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",n):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",n)})})();const gYt=()=>{I$t(),lYt()},pYt=J.defineComponent({setup(n,{expose:r}){const a=J.ref(!1),o=J.ref(),u=J.ref();let d;const h=()=>{var y;window.open((y=o.value)===null||y===void 0?void 0:y.apply_url,"_blank")},b=()=>{a.value=!1,d==null||d()};return r({handleShow:(y,A)=>{var k,C,T,B,L,I,O,F,z,j;o.value=y,a.value=!0,u.value=[{system_name:y==null||(k=y.permission)===null||k===void 0?void 0:k.system_name,name:y==null||(T=y.permission)===null||T===void 0||(C=T.actions)===null||C===void 0?void 0:C.map(G=>G.name).join(","),instance_name:y==null||(j=y.permission)===null||j===void 0||(z=j.actions[0])===null||z===void 0||(F=z.related_resource_types)===null||F===void 0||(O=F[0])===null||O===void 0||(I=O.instances)===null||I===void 0||(L=I[0])===null||L===void 0||(B=L.at(-1))===null||B===void 0?void 0:B.name}],d=A}}),(y,A)=>{const k=J.resolveComponent("bk-exception"),C=J.resolveComponent("bk-table-column"),T=J.resolveComponent("bk-table"),B=J.resolveComponent("bk-button"),L=J.resolveComponent("bk-dialog");return J.openBlock(),J.createBlock(L,{"is-show":a.value,width:640,class:"auth-dialog",onClosed:b},{header:J.withCtx(()=>[J.createVNode(k,{type:"403",scene:"part",title:"该操作需要以下权限"})]),footer:J.withCtx(()=>[J.createElementVNode("div",null,[J.createVNode(B,{theme:"primary",onClick:h},{default:J.withCtx(()=>A[0]||(A[0]=[J.createTextVNode(" 去申请 ")])),_:1,__:[0]}),J.createVNode(B,{class:"g-ml-8",onClick:b},{default:J.withCtx(()=>A[1]||(A[1]=[J.createTextVNode(" 取消 ")])),_:1,__:[1]})])]),default:J.withCtx(()=>[J.createVNode(T,{class:"g-mb-20","show-overflow-tooltip":"","empty-cell-text":"--",data:u.value},{default:J.withCtx(()=>[J.createVNode(C,{label:"系统",field:"system_name"}),J.createVNode(C,{label:"需要申请的权限",field:"name"}),J.createVNode(C,{label:"关联的资源实例",field:"instance_name"})]),_:1},8,["data"])]),_:1},8,["is-show"])}}});pYt.__file="./src/components/render-auth/auth-dialog.vue";const iM=document.createElement("div");iM.id="directive-ele",iM.style.position="absolute",iM.style.zIndex="999999",iM.classList.add("g-permission-cursor-element"),iM.style.height="0",document.body.appendChild(iM);const XRe=n=>r=>typeof r=="string"&&r.startsWith(n),Mue=XRe("--"),mYt=XRe("var(--"),_ue=n=>mYt(n)?bYt.test(n.split("/*")[0].trim()):!1,bYt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,EO={};function JRe(n){for(const r in n)EO[r]=n[r],Mue(r)&&(EO[r].isCSSVariable=!0)}function VQ(n,r){const a=typeof n=="string"&&!r?`${n}Context`:r,o=Symbol(a);return[h=>{const b=J.inject(o,h);if(b||b===null)return b;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(n)?`one of the following components: ${n.join(", ")}`:`\`${n}\``}`)},h=>(J.provide(o,h),h)]}const[vYt,wYt]=VQ("Motion"),[yYt,jfr]=VQ("LayoutGroup");function CO(n,r,a){if(Array.isArray(n))return n.reduce((o,u)=>{const d=CO(u,r,a);return d?{...o,...d}:o},{});if(typeof n=="object")return n;if(n&&r){const o=r[n];return typeof o=="function"?o(a):o}}function AYt(n,r){return typeof n!=typeof r?!0:Array.isArray(n)&&Array.isArray(r)?!xYt(n,r):n!==r}function xYt(n,r){const a=r.length;if(a!==n.length)return!1;for(let o=0;o<a;o++)if(r[o]!==n[o])return!1;return!0}function ZRe(n,r){return n[r]?{...n,...n[r],[r]:void 0}:{...n}}function eOe(n){return n==null?void 0:n.startsWith("--")}const kYt=n=>n;function EYt(n){return typeof n=="number"}const CYt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],TYt=new Set(CYt);function SYt(n){return TYt.has(n)}function BYt(n,r){const a=n.animate,o=r.animate;if(a===o)return!1;if(!a||!o)return!0;if(typeof a=="object"||typeof o=="object"){const u=Object.keys(a),d=Object.keys(o);return u.length!==d.length?!0:u.some(h=>{if(h==="transition")return!1;const b=a[h],v=o[h];return b!==v})}return console.log(2344),a!==o}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const MYt=n=>typeof n<"u",tOe={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:n=>`${n}deg`},_Yt={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:n=>`${n}px`},rotate:tOe,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:kYt},skew:tOe},LYt=["translate","scale","rotate","skew"],DYt=["","X","Y","Z"],Lue=new Map,UQ=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];LYt.forEach(n=>{DYt.forEach(r=>{UQ.push(n+r),Lue.set(n+r,_Yt[n])})});const IYt=new Set(UQ),RYt=n=>IYt.has(n),nOe={x:"translateX",y:"translateY",z:"translateZ"};function OYt([n],[r]){return UQ.indexOf(n)-UQ.indexOf(r)}function FYt(n,[r,a]){return`${n} ${r}(${a})`}function NYt(n){return n.sort(OYt).reduce(FYt,"").trim()}const PYt={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function GQ(n){return!!(n&&n.getVelocity)}const zYt={get:(n,r)=>{let a=eOe(r)?n.style.getPropertyValue(r):getComputedStyle(n)[r];if(!a&&a!=="0"){const o=Lue.get(r);o&&(a=o.initialValue)}return a},set:(n,r,a)=>{eOe(r)?n.style.setProperty(r,a):n.style[r]=a}};function jYt(n){var r;const a={},o=[];for(let u in n){let d=n[u];d=GQ(d)?d.get():d,RYt(u)&&u in nOe&&(u=nOe[u]);let h=Array.isArray(d)?d[0]:d;const b=Lue.get(u);b?(h=EYt(d)?(r=b.toDefaultUnit)==null?void 0:r.call(b,d):d,o.push([u,h])):a[u]=h}return o.length&&(a.transform=NYt(o)),a}const rOe={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function HYt(n){const r={},a={};for(const o in n)if(o in rOe){const u=rOe[o],d=typeof u=="string"?u:o,h=n[o];r[d]=GQ(h)?h.get():h}else a[o]=n[o];return{attributes:r,style:a}}function iOe(n){return n?n.flatMap(r=>r.type===J.Fragment?iOe(r.children):[r]):[]}const VYt=J.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(n,{attrs:r,slots:a}){return()=>{var o,u;if(!a.default)return null;const d=iOe(a.default()),h=d.findIndex(A=>A.type!==J.Comment);if(h===-1)return d;const b=d[h];(o=b.props)==null||delete o.ref;const v=b.props?J.mergeProps(r,b.props):r;r.class&&((u=b.props)!=null&&u.class)&&delete b.props.class;const y=J.cloneVNode(b,v);for(const A in v)A.startsWith("on")&&(y.props||(y.props={}),y.props[A]=v[A]);return d.length===1?y:(d[h]=y,d)}}}),UYt=J.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"},getProps:{type:Function,default:()=>({})}},setup(n,{attrs:r,slots:a}){const o=n.asChild?"template":n.as,u=["area","img","input"];return()=>{const h={...n.getProps(),...r};return typeof o=="string"&&u.includes(o)?J.h(o,h):o!=="template"?J.h(n.as,h,{default:a.default}):J.h(VYt,h,{default:a.default})}}}),jk=new WeakMap;class C5{constructor(r){this.state=r}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}const Mg=n=>n;let aOe=Mg;const qQ=["read","resolveKeyframes","update","preRender","render","postRender"];function GYt(n,r){let a=new Set,o=new Set,u=!1,d=!1;const h=new WeakSet;let b={delta:0,timestamp:0,isProcessing:!1};function v(A){h.has(A)&&(y.schedule(A),n()),A(b)}const y={schedule:(A,k=!1,C=!1)=>{const B=C&&u?a:o;return k&&h.add(A),B.has(A)||B.add(A),A},cancel:A=>{o.delete(A),h.delete(A)},process:A=>{if(b=A,u){d=!0;return}u=!0,[a,o]=[o,a],a.forEach(v),a.clear(),u=!1,d&&(d=!1,y.process(A))}};return y}const qYt=40;function sOe(n,r){let a=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>a=!0,h=qQ.reduce((O,F)=>(O[F]=GYt(d),O),{}),{read:b,resolveKeyframes:v,update:y,preRender:A,render:k,postRender:C}=h,T=()=>{const O=performance.now();a=!1,u.delta=o?1e3/60:Math.max(Math.min(O-u.timestamp,qYt),1),u.timestamp=O,u.isProcessing=!0,b.process(u),v.process(u),y.process(u),A.process(u),k.process(u),C.process(u),u.isProcessing=!1,a&&r&&(o=!1,n(T))},B=()=>{a=!0,o=!0,u.isProcessing||n(T)};return{schedule:qQ.reduce((O,F)=>{const z=h[F];return O[F]=(j,G=!1,U=!1)=>(a||B(),z.schedule(j,G,U)),O},{}),cancel:O=>{for(let F=0;F<qQ.length;F++)h[qQ[F]].cancel(O)},state:u,steps:h}}const{schedule:Dl,cancel:e8,state:Ff,steps:Due}=sOe(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mg,!0);function QYt(n){return n instanceof SVGElement&&n.tagName!=="svg"}class $Yt extends C5{mount(){const r=this.state.element;if(!QYt(r))return;const a=this.state.visualElement;Dl.read(()=>{try{a.renderState.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{a.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}const TO=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),UA=TO("deg"),t8=TO("%"),Ja=TO("px"),YYt=TO("vh"),WYt=TO("vw"),oOe={...t8,parse:n=>t8.parse(n)/100,transform:n=>t8.transform(n*100)};function cOe(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const SO={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(Ja.test(n))n=parseFloat(n);else return n;const a=cOe(n,r.target.x),o=cOe(n,r.target.y);return`${a}% ${o}%`}},_h=(n,r,a)=>n+(r-n)*a,GA=(n,r,a)=>a>r?r:a<n?n:a,aM={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},BO={...aM,transform:n=>GA(0,1,n)},QQ={...aM,default:1},MO=n=>Math.round(n*1e5)/1e5,Iue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function KYt(n){return n==null}const XYt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rue=(n,r)=>a=>!!(typeof a=="string"&&XYt.test(a)&&a.startsWith(n)||r&&!KYt(a)&&Object.prototype.hasOwnProperty.call(a,r)),lOe=(n,r,a)=>o=>{if(typeof o!="string")return o;const[u,d,h,b]=o.match(Iue);return{[n]:parseFloat(u),[r]:parseFloat(d),[a]:parseFloat(h),alpha:b!==void 0?parseFloat(b):1}},JYt=n=>GA(0,255,n),Oue={...aM,transform:n=>Math.round(JYt(n))},Hk={test:Rue("rgb","red"),parse:lOe("red","green","blue"),transform:({red:n,green:r,blue:a,alpha:o=1})=>"rgba("+Oue.transform(n)+", "+Oue.transform(r)+", "+Oue.transform(a)+", "+MO(BO.transform(o))+")"};function ZYt(n){let r="",a="",o="",u="";return n.length>5?(r=n.substring(1,3),a=n.substring(3,5),o=n.substring(5,7),u=n.substring(7,9)):(r=n.substring(1,2),a=n.substring(2,3),o=n.substring(3,4),u=n.substring(4,5),r+=r,a+=a,o+=o,u+=u),{red:parseInt(r,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const Fue={test:Rue("#"),parse:ZYt,transform:Hk.transform},sM={test:Rue("hsl","hue"),parse:lOe("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:a,alpha:o=1})=>"hsla("+Math.round(n)+", "+t8.transform(MO(r))+", "+t8.transform(MO(a))+", "+MO(BO.transform(o))+")"},yd={test:n=>Hk.test(n)||Fue.test(n)||sM.test(n),parse:n=>Hk.test(n)?Hk.parse(n):sM.test(n)?sM.parse(n):Fue.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Hk.transform(n):sM.transform(n)},eWt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tWt(n){var r,a;return isNaN(n)&&typeof n=="string"&&(((r=n.match(Iue))===null||r===void 0?void 0:r.length)||0)+(((a=n.match(eWt))===null||a===void 0?void 0:a.length)||0)>0}const uOe="number",hOe="color",nWt="var",rWt="var(",fOe="${}",iWt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _O(n){const r=n.toString(),a=[],o={color:[],number:[],var:[]},u=[];let d=0;const b=r.replace(iWt,v=>(yd.test(v)?(o.color.push(d),u.push(hOe),a.push(yd.parse(v))):v.startsWith(rWt)?(o.var.push(d),u.push(nWt),a.push(v)):(o.number.push(d),u.push(uOe),a.push(parseFloat(v))),++d,fOe)).split(fOe);return{values:a,split:b,indexes:o,types:u}}function dOe(n){return _O(n).values}function gOe(n){const{split:r,types:a}=_O(n),o=r.length;return u=>{let d="";for(let h=0;h<o;h++)if(d+=r[h],u[h]!==void 0){const b=a[h];b===uOe?d+=MO(u[h]):b===hOe?d+=yd.transform(u[h]):d+=u[h]}return d}}const aWt=n=>typeof n=="number"?0:n;function sWt(n){const r=dOe(n);return gOe(n)(r.map(aWt))}const qA={test:tWt,parse:dOe,createTransformer:gOe,getAnimatableNone:sWt},oWt={correct:(n,{treeScale:r,projectionDelta:a})=>{const o=n,u=qA.parse(n);if(u.length>5)return o;const d=qA.createTransformer(n),h=typeof u[0]!="number"?1:0,b=a.x.scale*r.x,v=a.y.scale*r.y;u[0+h]/=b,u[1+h]/=v;const y=_h(b,v,.5);return typeof u[2+h]=="number"&&(u[2+h]/=y),typeof u[3+h]=="number"&&(u[3+h]/=y),d(u)}},pOe={borderRadius:{...SO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:SO,borderTopRightRadius:SO,borderBottomLeftRadius:SO,borderBottomRightRadius:SO,boxShadow:oWt},$Q={hasAnimatedSinceResize:!0,hasEverUpdated:!1};class cWt extends C5{constructor(r){super(r),JRe(pOe)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var r,a;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((a=(r=this.state.visualElement.projection)==null?void 0:r.root)==null||a.didUpdate())}mount(){var r;const a=this.state.options,o=this.state.options.layoutGroup;if(a.layout||a.layoutId){const u=this.state.visualElement.projection;u&&(u.promote(),(r=o==null?void 0:o.group)==null||r.add(u)),$Q.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const r=this.state.visualElement.projection;r&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(r.isPresent=!1,r.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){var r,a;const o=this.state.options.layoutGroup,u=this.state.visualElement.projection;if(u){if(o!=null&&o.group&&o.group.remove(u),(a=(r=u.getStack())==null?void 0:r.lead)!=null&&a.animationProgress)return;this.didUpdate()}}}function mOe(n){return n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1}function Nue(n,r="page"){return{point:{x:n[`${r}X`],y:n[`${r}Y`]}}}function lWt(n){return r=>mOe(r)&&n(r,Nue(r))}function YQ(n,r,a,o={passive:!0}){return n.addEventListener(r,a,o),()=>n.removeEventListener(r,a)}function LO(n,r,a,o){return YQ(n,r,lWt(a),o)}const bOe=(n,r)=>Math.abs(n-r);function uWt(n,r){const a=bOe(n.x,r.x),o=bOe(n.y,r.y);return Math.sqrt(a**2+o**2)}const hWt=(n,r)=>a=>r(n(a)),DO=(...n)=>n.reduce(hWt),fWt=n=>n*1e3;function dWt(n){return n/1e3}class vOe{constructor(r,a,{transformPagePoint:o,contextWindow:u,dragSnapToOrigin:d=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=zue(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,T=uWt(k.offset,{x:0,y:0})>=3;if(!C&&!T)return;const{point:B}=k,{timestamp:L}=Ff;this.history.push({...B,timestamp:L});const{onStart:I,onMove:O}=this.handlers;C||(I&&I(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,k)},this.handlePointerMove=(k,C)=>{this.lastMoveEvent=k,this.lastMoveEventInfo=Pue(C,this.transformPagePoint),Dl.update(this.updatePoint,!0)},this.handlePointerUp=(k,C)=>{this.end();const{onEnd:T,onSessionEnd:B,resumeAnimation:L}=this.handlers;if(this.dragSnapToOrigin&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const I=zue(k.type==="pointercancel"?this.lastMoveEventInfo:Pue(C,this.transformPagePoint),this.history);this.startEvent&&T&&T(k,I),B&&B(k,I)},!mOe(r))return;this.dragSnapToOrigin=d,this.handlers=a,this.transformPagePoint=o,this.contextWindow=u||window;const h=Nue(r),b=Pue(h,this.transformPagePoint),{point:v}=b,{timestamp:y}=Ff;this.history=[{...v,timestamp:y}];const{onSessionStart:A}=a;A&&A(r,zue(b,this.history)),this.removeListeners=DO(LO(this.contextWindow,"pointermove",this.handlePointerMove),LO(this.contextWindow,"pointerup",this.handlePointerUp),LO(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),e8(this.updatePoint)}}function Pue(n,r){return r?{point:r(n.point)}:n}function wOe(n,r){return{x:n.x-r.x,y:n.y-r.y}}function zue({point:n},r){return{point:n,delta:wOe(n,yOe(r)),offset:wOe(n,gWt(r)),velocity:pWt(r,.1)}}function gWt(n){return n[0]}function yOe(n){return n[n.length-1]}function pWt(n,r){if(n.length<2)return{x:0,y:0};let a=n.length-1,o=null;const u=yOe(n);for(;a>=0&&(o=n[a],!(u.timestamp-o.timestamp>fWt(r)));)a--;if(!o)return{x:0,y:0};const d=dWt(u.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(u.x-o.x)/d,y:(u.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function AOe({current:n}){return n?n.ownerDocument.defaultView:null}function xOe(n){return(r,a)=>{n&&Dl.postRender(()=>n(r,a))}}class mWt extends C5{constructor(){super(...arguments),this.removePointerDownListener=Mg}onPointerDown(r){this.session=new vOe(r,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:AOe(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:xOe((r,a)=>{const{onPanSessionStart:o}=this.state.options;o&&o(r,a)}),onStart:xOe((r,a)=>{const{onPanStart:o}=this.state.options;o&&o(r,a)}),onMove:(r,a)=>{const{onPan:o}=this.state.options;o&&o(r,a)},onEnd:(r,a)=>{const{onPanEnd:o}=this.state.options;delete this.session,o&&Dl.postRender(()=>o(r,a))}}}mount(){this.removePointerDownListener=LO(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function kOe(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}class bWt extends C5{constructor(r){super(r)}updateAnimationControlsSubscription(){const{animate:r}=this.state.options;kOe(r)&&(this.unmountControls=r.subscribe(this.state))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.state.options,{animate:a}=this.state.visualElement.prevProps||{};r!==a&&this.updateAnimationControlsSubscription()}unmount(){var r;(r=this.unmountControls)==null||r.call(this)}}function jue(n,r){return n?n[r]||n.default||n:void 0}const vWt={useManualTiming:!1};let WQ;function wWt(){WQ=void 0}const T5={now:()=>(WQ===void 0&&T5.set(Ff.isProcessing||vWt.useManualTiming?Ff.timestamp:performance.now()),WQ),set:n=>{WQ=n,queueMicrotask(wWt)}};function Hue(n,r){n.indexOf(r)===-1&&n.push(r)}function KQ(n,r){const a=n.indexOf(r);a>-1&&n.splice(a,1)}class Vue{constructor(){this.subscriptions=[]}add(r){return Hue(this.subscriptions,r),()=>KQ(this.subscriptions,r)}notify(r,a,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](r,a,o);else for(let d=0;d<u;d++){const h=this.subscriptions[d];h&&h(r,a,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function EOe(n,r){return r?n*(1e3/r):0}const COe=30,yWt=n=>!isNaN(parseFloat(n));class AWt{constructor(r,a={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,u=!0)=>{const d=T5.now();this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(r),this.owner=a.owner}setCurrent(r){this.current=r,this.updatedAt=T5.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=yWt(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,a){this.events[r]||(this.events[r]=new Vue);const o=this.events[r].add(a);return r==="change"?()=>{o(),Dl.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,a){this.passiveEffect=r,this.stopPassiveEffect=a}set(r,a=!0){!a||!this.passiveEffect?this.updateAndNotify(r,a):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,a=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=T5.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>COe)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,COe);return EOe(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(r){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=r(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function IO(n,r){return new AWt(n,r)}const Ad=n=>!!(n&&n.getVelocity);function Uue(n){let r;return()=>(r===void 0&&(r=n()),r)}const xWt=Uue(()=>window.ScrollTimeline!==void 0);class kWt{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>"finished"in r?r.finished:r))}getAll(r){return this.animations[0][r]}setAll(r,a){for(let o=0;o<this.animations.length;o++)this.animations[o][r]=a}attachTimeline(r,a){const o=this.animations.map(u=>{if(xWt()&&u.attachTimeline)return u.attachTimeline(r);if(typeof a=="function")return a(u)});return()=>{o.forEach((u,d)=>{u&&u(),this.animations[d].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get startTime(){return this.getAll("startTime")}get duration(){let r=0;for(let a=0;a<this.animations.length;a++)r=Math.max(r,this.animations[a].duration);return r}runAll(r){this.animations.forEach(a=>a[r]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class TOe extends kWt{then(r,a){return Promise.all(this.animations).then(r).catch(a)}}const n8=n=>n*1e3,r8=n=>n/1e3;function XQ(n){return typeof n=="function"}function SOe(n,r){n.timeline=r,n.onfinish=null}const Gue=n=>Array.isArray(n)&&typeof n[0]=="number",EWt={linearEasing:void 0};function CWt(n,r){const a=Uue(n);return()=>{var o;return(o=EWt[r])!==null&&o!==void 0?o:a()}}const JQ=CWt(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),RO=(n,r,a)=>{const o=r-n;return o===0?1:(a-n)/o},BOe=(n,r,a=10)=>{let o="";const u=Math.max(Math.round(r/a),2);for(let d=0;d<u;d++)o+=n(RO(0,u-1,d))+", ";return`linear(${o.substring(0,o.length-2)})`};function MOe(n){return!!(typeof n=="function"&&JQ()||!n||typeof n=="string"&&(n in que||JQ())||Gue(n)||Array.isArray(n)&&n.every(MOe))}const OO=([n,r,a,o])=>`cubic-bezier(${n}, ${r}, ${a}, ${o})`,que={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:OO([0,.65,.55,1]),circOut:OO([.55,0,1,.45]),backIn:OO([.31,.01,.66,-.59]),backOut:OO([.33,1.53,.69,.99])};function _Oe(n,r){if(n)return typeof n=="function"&&JQ()?BOe(n,r):Gue(n)?OO(n):Array.isArray(n)?n.map(a=>_Oe(a,r)||que.easeOut):que[n]}const LOe=(n,r,a)=>(((1-3*a+3*r)*n+(3*a-6*r))*n+3*r)*n,TWt=1e-7,SWt=12;function BWt(n,r,a,o,u){let d,h,b=0;do h=r+(a-r)/2,d=LOe(h,o,u)-n,d>0?a=h:r=h;while(Math.abs(d)>TWt&&++b<SWt);return h}function FO(n,r,a,o){if(n===r&&a===o)return Mg;const u=d=>BWt(d,0,1,n,a);return d=>d===0||d===1?d:LOe(u(d),r,o)}const DOe=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,IOe=n=>r=>1-n(1-r),ROe=FO(.33,1.53,.69,.99),Que=IOe(ROe),OOe=DOe(Que),FOe=n=>(n*=2)<1?.5*Que(n):.5*(2-Math.pow(2,-10*(n-1))),$ue=n=>1-Math.sin(Math.acos(n)),NOe=IOe($ue),POe=DOe($ue),zOe=n=>/^0[^.\s]+$/u.test(n);function MWt(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||zOe(n):!0}const oM=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cM=new Set(oM),jOe=new Set(["width","height","top","left","right","bottom",...oM]),_Wt=new Set(["brightness","contrast","saturate","opacity"]);function LWt(n){const[r,a]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[o]=a.match(Iue)||[];if(!o)return n;const u=a.replace(o,"");let d=_Wt.has(r)?1:0;return o!==a&&(d*=100),r+"("+d+u+")"}const DWt=/\b([a-z-]*)\(.*?\)/gu,Yue={...qA,getAnimatableNone:n=>{const r=n.match(DWt);return r?r.map(LWt).join(" "):n}},IWt={borderWidth:Ja,borderTopWidth:Ja,borderRightWidth:Ja,borderBottomWidth:Ja,borderLeftWidth:Ja,borderRadius:Ja,radius:Ja,borderTopLeftRadius:Ja,borderTopRightRadius:Ja,borderBottomRightRadius:Ja,borderBottomLeftRadius:Ja,width:Ja,maxWidth:Ja,height:Ja,maxHeight:Ja,top:Ja,right:Ja,bottom:Ja,left:Ja,padding:Ja,paddingTop:Ja,paddingRight:Ja,paddingBottom:Ja,paddingLeft:Ja,margin:Ja,marginTop:Ja,marginRight:Ja,marginBottom:Ja,marginLeft:Ja,backgroundPositionX:Ja,backgroundPositionY:Ja},RWt={rotate:UA,rotateX:UA,rotateY:UA,rotateZ:UA,scale:QQ,scaleX:QQ,scaleY:QQ,scaleZ:QQ,skew:UA,skewX:UA,skewY:UA,distance:Ja,translateX:Ja,translateY:Ja,translateZ:Ja,x:Ja,y:Ja,z:Ja,perspective:Ja,transformPerspective:Ja,opacity:BO,originX:oOe,originY:oOe,originZ:Ja},HOe={...aM,transform:Math.round},Wue={...IWt,...RWt,zIndex:HOe,size:Ja,fillOpacity:BO,strokeOpacity:BO,numOctaves:HOe},OWt={...Wue,color:yd,backgroundColor:yd,outlineColor:yd,fill:yd,stroke:yd,borderColor:yd,borderTopColor:yd,borderRightColor:yd,borderBottomColor:yd,borderLeftColor:yd,filter:Yue,WebkitFilter:Yue},Kue=n=>OWt[n];function VOe(n,r){let a=Kue(n);return a!==Yue&&(a=qA),a.getAnimatableNone?a.getAnimatableNone(r):void 0}const FWt=new Set(["auto","none","0"]);function NWt(n,r,a){let o=0,u;for(;o<n.length&&!u;){const d=n[o];typeof d=="string"&&!FWt.has(d)&&_O(d).values.length&&(u=n[o]),o++}if(u&&a)for(const d of r)n[d]=VOe(a,u)}const UOe=n=>n===aM||n===Ja,GOe=(n,r)=>parseFloat(n.split(", ")[r]),qOe=(n,r)=>(a,{transform:o})=>{if(o==="none"||!o)return 0;const u=o.match(/^matrix3d\((.+)\)$/u);if(u)return GOe(u[1],r);{const d=o.match(/^matrix\((.+)\)$/u);return d?GOe(d[1],n):0}},PWt=new Set(["x","y","z"]),zWt=oM.filter(n=>!PWt.has(n));function jWt(n){const r=[];return zWt.forEach(a=>{const o=n.getValue(a);o!==void 0&&(r.push([a,o.get()]),o.set(a.startsWith("scale")?1:0))}),r}const lM={width:({x:n},{paddingLeft:r="0",paddingRight:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),height:({y:n},{paddingTop:r="0",paddingBottom:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:qOe(4,13),y:qOe(5,14)};lM.translateX=lM.x,lM.translateY=lM.y;const Vk=new Set;let Xue=!1,Jue=!1;function QOe(){if(Jue){const n=Array.from(Vk).filter(o=>o.needsMeasurement),r=new Set(n.map(o=>o.element)),a=new Map;r.forEach(o=>{const u=jWt(o);u.length&&(a.set(o,u),o.render())}),n.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const u=a.get(o);u&&u.forEach(([d,h])=>{var b;(b=o.getValue(d))===null||b===void 0||b.set(h)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Jue=!1,Xue=!1,Vk.forEach(n=>n.complete()),Vk.clear()}function $Oe(){Vk.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Jue=!0)})}function HWt(){$Oe(),QOe()}class Zue{constructor(r,a,o,u,d,h=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...r],this.onComplete=a,this.name=o,this.motionValue=u,this.element=d,this.isAsync=h}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Vk.add(this),Xue||(Xue=!0,Dl.read($Oe),Dl.resolveKeyframes(QOe))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:a,element:o,motionValue:u}=this;for(let d=0;d<r.length;d++)if(r[d]===null)if(d===0){const h=u==null?void 0:u.get(),b=r[r.length-1];if(h!==void 0)r[0]=h;else if(o&&a){const v=o.readValue(a,b);v!=null&&(r[0]=v)}r[0]===void 0&&(r[0]=b),u&&h===void 0&&u.set(r[0])}else r[d]=r[d-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Vk.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Vk.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const YOe=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),VWt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UWt(n){const r=VWt.exec(n);if(!r)return[,];const[,a,o,u]=r;return[`--${a??o}`,u]}function WOe(n,r,a=1){const[o,u]=UWt(n);if(!o)return;const d=window.getComputedStyle(r).getPropertyValue(o);if(d){const h=d.trim();return YOe(h)?parseFloat(h):h}return _ue(u)?WOe(u,r,a+1):u}const KOe=n=>r=>r.test(n),XOe=[aM,Ja,t8,UA,WYt,YYt,{test:n=>n==="auto",parse:n=>n}],JOe=n=>XOe.find(KOe(n));class ZOe extends Zue{constructor(r,a,o,u,d){super(r,a,o,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:a,name:o}=this;if(!a||!a.current)return;super.readKeyframes();for(let v=0;v<r.length;v++){let y=r[v];if(typeof y=="string"&&(y=y.trim(),_ue(y))){const A=WOe(y,a.current);A!==void 0&&(r[v]=A),v===r.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!jOe.has(o)||r.length!==2)return;const[u,d]=r,h=JOe(u),b=JOe(d);if(h!==b)if(UOe(h)&&UOe(b))for(let v=0;v<r.length;v++){const y=r[v];typeof y=="string"&&(r[v]=parseFloat(y))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:a}=this,o=[];for(let u=0;u<r.length;u++)MWt(r[u])&&o.push(u);o.length&&NWt(r,o,a)}measureInitialState(){const{element:r,unresolvedKeyframes:a,name:o}=this;if(!r||!r.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lM[o](r.measureViewportBox(),window.getComputedStyle(r.current)),a[0]=this.measuredOrigin;const u=a[a.length-1];u!==void 0&&r.getValue(o,u).jump(u,!1)}measureEndState(){var r;const{element:a,name:o,unresolvedKeyframes:u}=this;if(!a||!a.current)return;const d=a.getValue(o);d&&d.jump(this.measuredOrigin,!1);const h=u.length-1,b=u[h];u[h]=lM[o](a.measureViewportBox(),window.getComputedStyle(a.current)),b!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=b),!((r=this.removedTransforms)===null||r===void 0)&&r.length&&this.removedTransforms.forEach(([v,y])=>{a.getValue(v).set(y)}),this.resolveNoneKeyframes()}}const eFe=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(qA.test(n)||n==="0")&&!n.startsWith("url("));function GWt(n){const r=n[0];if(n.length===1)return!0;for(let a=0;a<n.length;a++)if(n[a]!==r)return!0}function qWt(n,r,a,o){const u=n[0];if(u===null)return!1;if(r==="display"||r==="visibility")return!0;const d=n[n.length-1],h=eFe(u,r),b=eFe(d,r);return!h||!b?!1:GWt(n)||(a==="spring"||XQ(a))&&o}const QWt=n=>n!==null;function ZQ(n,{repeat:r,repeatType:a="loop"},o){const u=n.filter(QWt),d=r&&a!=="loop"&&r%2===1?0:u.length-1;return!d||o===void 0?u[d]:o}const $Wt=40;class tFe{constructor({autoplay:r=!0,delay:a=0,type:o="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:h="loop",...b}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=T5.now(),this.options={autoplay:r,delay:a,type:o,repeat:u,repeatDelay:d,repeatType:h,...b},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$Wt?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HWt(),this._resolved}onKeyframesResolved(r,a){this.resolvedAt=T5.now(),this.hasAttemptedResolve=!0;const{name:o,type:u,velocity:d,delay:h,onComplete:b,onUpdate:v,isGenerator:y}=this.options;if(!y&&!qWt(r,o,u,d))if(h)this.options.duration=0;else{v&&v(ZQ(r,this.options,a)),b&&b(),this.resolveFinishedPromise();return}const A=this.initPlayback(r,a);A!==!1&&(this._resolved={keyframes:r,finalKeyframe:a,...A},this.onPostResolved())}onPostResolved(){}then(r,a){return this.currentFinishedPromise.then(r,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(r=>{this.resolveFinishedPromise=r})}}const e$=2e4;function e0e(n){let r=0;const a=50;let o=n.next(r);for(;!o.done&&r<e$;)r+=a,o=n.next(r);return r>=e$?1/0:r}function t0e(n,r,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?n+(r-n)*6*a:a<1/2?r:a<2/3?n+(r-n)*(2/3-a)*6:n}function YWt({hue:n,saturation:r,lightness:a,alpha:o}){n/=360,r/=100,a/=100;let u=0,d=0,h=0;if(!r)u=d=h=a;else{const b=a<.5?a*(1+r):a+r-a*r,v=2*a-b;u=t0e(v,b,n+1/3),d=t0e(v,b,n),h=t0e(v,b,n-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function t$(n,r){return a=>a>0?r:n}const n0e=(n,r,a)=>{const o=n*n,u=a*(r*r-o)+o;return u<0?0:Math.sqrt(u)},WWt=[Fue,Hk,sM],KWt=n=>WWt.find(r=>r.test(n));function nFe(n){const r=KWt(n);if(!r)return!1;let a=r.parse(n);return r===sM&&(a=YWt(a)),a}const rFe=(n,r)=>{const a=nFe(n),o=nFe(r);if(!a||!o)return t$(n,r);const u={...a};return d=>(u.red=n0e(a.red,o.red,d),u.green=n0e(a.green,o.green,d),u.blue=n0e(a.blue,o.blue,d),u.alpha=_h(a.alpha,o.alpha,d),Hk.transform(u))},r0e=new Set(["none","hidden"]);function XWt(n,r){return r0e.has(n)?a=>a<=0?n:r:a=>a>=1?r:n}function JWt(n,r){return a=>_h(n,r,a)}function i0e(n){return typeof n=="number"?JWt:typeof n=="string"?_ue(n)?t$:yd.test(n)?rFe:tKt:Array.isArray(n)?iFe:typeof n=="object"?yd.test(n)?rFe:ZWt:t$}function iFe(n,r){const a=[...n],o=a.length,u=n.map((d,h)=>i0e(d)(d,r[h]));return d=>{for(let h=0;h<o;h++)a[h]=u[h](d);return a}}function ZWt(n,r){const a={...n,...r},o={};for(const u in a)n[u]!==void 0&&r[u]!==void 0&&(o[u]=i0e(n[u])(n[u],r[u]));return u=>{for(const d in o)a[d]=o[d](u);return a}}function eKt(n,r){var a;const o=[],u={color:0,var:0,number:0};for(let d=0;d<r.values.length;d++){const h=r.types[d],b=n.indexes[h][u[h]],v=(a=n.values[b])!==null&&a!==void 0?a:0;o[d]=v,u[h]++}return o}const tKt=(n,r)=>{const a=qA.createTransformer(r),o=_O(n),u=_O(r);return o.indexes.var.length===u.indexes.var.length&&o.indexes.color.length===u.indexes.color.length&&o.indexes.number.length>=u.indexes.number.length?r0e.has(n)&&!u.values.length||r0e.has(r)&&!o.values.length?XWt(n,r):DO(iFe(eKt(o,u),u.values),a):t$(n,r)};function aFe(n,r,a){return typeof n=="number"&&typeof r=="number"&&typeof a=="number"?_h(n,r,a):i0e(n)(n,r)}const nKt=5;function sFe(n,r,a){const o=Math.max(r-nKt,0);return EOe(a-n(o),r-o)}const E0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},a0e=.001;function rKt({duration:n=E0.duration,bounce:r=E0.bounce,velocity:a=E0.velocity,mass:o=E0.mass}){let u,d,h=1-r;h=GA(E0.minDamping,E0.maxDamping,h),n=GA(E0.minDuration,E0.maxDuration,r8(n)),h<1?(u=y=>{const A=y*h,k=A*n,C=A-a,T=s0e(y,h),B=Math.exp(-k);return a0e-C/T*B},d=y=>{const k=y*h*n,C=k*a+a,T=Math.pow(h,2)*Math.pow(y,2)*n,B=Math.exp(-k),L=s0e(Math.pow(y,2),h);return(-u(y)+a0e>0?-1:1)*((C-T)*B)/L}):(u=y=>{const A=Math.exp(-y*n),k=(y-a)*n+1;return-a0e+A*k},d=y=>{const A=Math.exp(-y*n),k=(a-y)*(n*n);return A*k});const b=5/n,v=aKt(u,d,b);if(n=n8(n),isNaN(v))return{stiffness:E0.stiffness,damping:E0.damping,duration:n};{const y=Math.pow(v,2)*o;return{stiffness:y,damping:h*2*Math.sqrt(o*y),duration:n}}}const iKt=12;function aKt(n,r,a){let o=a;for(let u=1;u<iKt;u++)o=o-n(o)/r(o);return o}function s0e(n,r){return n*Math.sqrt(1-r*r)}const sKt=["duration","bounce"],oKt=["stiffness","damping","mass"];function oFe(n,r){return r.some(a=>n[a]!==void 0)}function cKt(n){let r={velocity:E0.velocity,stiffness:E0.stiffness,damping:E0.damping,mass:E0.mass,isResolvedFromDuration:!1,...n};if(!oFe(n,oKt)&&oFe(n,sKt))if(n.visualDuration){const a=n.visualDuration,o=2*Math.PI/(a*1.2),u=o*o,d=2*GA(.05,1,1-(n.bounce||0))*Math.sqrt(u);r={...r,mass:E0.mass,stiffness:u,damping:d}}else{const a=rKt(n);r={...r,...a,mass:E0.mass},r.isResolvedFromDuration=!0}return r}function o0e(n=E0.visualDuration,r=E0.bounce){const a=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:o,restDelta:u}=a;const d=a.keyframes[0],h=a.keyframes[a.keyframes.length-1],b={done:!1,value:d},{stiffness:v,damping:y,mass:A,duration:k,velocity:C,isResolvedFromDuration:T}=cKt({...a,velocity:-r8(a.velocity||0)}),B=C||0,L=y/(2*Math.sqrt(v*A)),I=h-d,O=r8(Math.sqrt(v/A)),F=Math.abs(I)<5;o||(o=F?E0.restSpeed.granular:E0.restSpeed.default),u||(u=F?E0.restDelta.granular:E0.restDelta.default);let z;if(L<1){const G=s0e(O,L);z=U=>{const q=Math.exp(-L*O*U);return h-q*((B+L*O*I)/G*Math.sin(G*U)+I*Math.cos(G*U))}}else if(L===1)z=G=>h-Math.exp(-O*G)*(I+(B+O*I)*G);else{const G=O*Math.sqrt(L*L-1);z=U=>{const q=Math.exp(-L*O*U),Q=Math.min(G*U,300);return h-q*((B+L*O*I)*Math.sinh(Q)+G*I*Math.cosh(Q))/G}}const j={calculatedDuration:T&&k||null,next:G=>{const U=z(G);if(T)b.done=G>=k;else{let q=0;L<1&&(q=G===0?n8(B):sFe(z,G,U));const Q=Math.abs(q)<=o,H=Math.abs(h-U)<=u;b.done=Q&&H}return b.value=b.done?h:U,b},toString:()=>{const G=Math.min(e0e(j),e$),U=BOe(q=>j.next(G*q).value,G,30);return G+"ms "+U}};return j}function cFe({keyframes:n,velocity:r=0,power:a=.8,timeConstant:o=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:h,min:b,max:v,restDelta:y=.5,restSpeed:A}){const k=n[0],C={done:!1,value:k},T=Q=>b!==void 0&&Q<b||v!==void 0&&Q>v,B=Q=>b===void 0?v:v===void 0||Math.abs(b-Q)<Math.abs(v-Q)?b:v;let L=a*r;const I=k+L,O=h===void 0?I:h(I);O!==I&&(L=O-k);const F=Q=>-L*Math.exp(-Q/o),z=Q=>O+F(Q),j=Q=>{const H=F(Q),Y=z(Q);C.done=Math.abs(H)<=y,C.value=C.done?O:Y};let G,U;const q=Q=>{T(C.value)&&(G=Q,U=o0e({keyframes:[C.value,B(C.value)],velocity:sFe(z,Q,C.value),damping:u,stiffness:d,restDelta:y,restSpeed:A}))};return q(0),{calculatedDuration:null,next:Q=>{let H=!1;return!U&&G===void 0&&(H=!0,j(Q),q(Q)),G!==void 0&&Q>=G?U.next(Q-G):(!H&&j(Q),C)}}}const lKt=FO(.42,0,1,1),uKt=FO(0,0,.58,1),lFe=FO(.42,0,.58,1),uFe=n=>Array.isArray(n)&&typeof n[0]!="number",hKt={linear:Mg,easeIn:lKt,easeInOut:lFe,easeOut:uKt,circIn:$ue,circInOut:POe,circOut:NOe,backIn:Que,backInOut:OOe,backOut:ROe,anticipate:FOe},hFe=n=>{if(Gue(n)){aOe(n.length===4);const[r,a,o,u]=n;return FO(r,a,o,u)}else if(typeof n=="string")return hKt[n];return n};function fKt(n,r,a){const o=[],u=a||aFe,d=n.length-1;for(let h=0;h<d;h++){let b=u(n[h],n[h+1]);if(r){const v=Array.isArray(r)?r[h]||Mg:r;b=DO(v,b)}o.push(b)}return o}function dKt(n,r,{clamp:a=!0,ease:o,mixer:u}={}){const d=n.length;if(aOe(d===r.length),d===1)return()=>r[0];if(d===2&&r[0]===r[1])return()=>r[1];const h=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),r=[...r].reverse());const b=fKt(r,o,u),v=b.length,y=A=>{if(h&&A<n[0])return r[0];let k=0;if(v>1)for(;k<n.length-2&&!(A<n[k+1]);k++);const C=RO(n[k],n[k+1],A);return b[k](C)};return a?A=>y(GA(n[0],n[d-1],A)):y}function fFe(n,r){const a=n[n.length-1];for(let o=1;o<=r;o++){const u=RO(0,r,o);n.push(_h(a,1,u))}}function dFe(n){const r=[0];return fFe(r,n.length-1),r}function gKt(n,r){return n.map(a=>a*r)}function pKt(n,r){return n.map(()=>r||lFe).splice(0,n.length-1)}function n$({duration:n=300,keyframes:r,times:a,ease:o="easeInOut"}){const u=uFe(o)?o.map(hFe):hFe(o),d={done:!1,value:r[0]},h=gKt(a&&a.length===r.length?a:dFe(r),n),b=dKt(h,r,{ease:Array.isArray(u)?u:pKt(r,u)});return{calculatedDuration:n,next:v=>(d.value=b(v),d.done=v>=n,d)}}const mKt=n=>{const r=({timestamp:a})=>n(a);return{start:()=>Dl.update(r,!0),stop:()=>e8(r),now:()=>Ff.isProcessing?Ff.timestamp:T5.now()}},bKt={decay:cFe,inertia:cFe,tween:n$,keyframes:n$,spring:o0e},vKt=n=>n/100;class c0e extends tFe{constructor(r){super(r),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:v}=this.options;v&&v()};const{name:a,motionValue:o,element:u,keyframes:d}=this.options,h=(u==null?void 0:u.KeyframeResolver)||Zue,b=(v,y)=>this.onKeyframesResolved(v,y);this.resolver=new h(d,b,a,o,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(r){const{type:a="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:d,velocity:h=0}=this.options,b=XQ(a)?a:bKt[a]||n$;let v,y;b!==n$&&typeof r[0]!="number"&&(v=DO(vKt,aFe(r[0],r[1])),r=[0,100]);const A=b({...this.options,keyframes:r});d==="mirror"&&(y=b({...this.options,keyframes:[...r].reverse(),velocity:-h})),A.calculatedDuration===null&&(A.calculatedDuration=e0e(A));const{calculatedDuration:k}=A,C=k+u,T=C*(o+1)-u;return{generator:A,mirroredGenerator:y,mapPercentToKeyframes:v,calculatedDuration:k,resolvedDuration:C,totalDuration:T}}onPostResolved(){const{autoplay:r=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!r?this.pause():this.state=this.pendingPlayState}tick(r,a=!1){const{resolved:o}=this;if(!o){const{keyframes:Q}=this.options;return{done:!0,value:Q[Q.length-1]}}const{finalKeyframe:u,generator:d,mirroredGenerator:h,mapPercentToKeyframes:b,keyframes:v,calculatedDuration:y,totalDuration:A,resolvedDuration:k}=o;if(this.startTime===null)return d.next(0);const{delay:C,repeat:T,repeatType:B,repeatDelay:L,onUpdate:I}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-A/this.speed,this.startTime)),a?this.currentTime=r:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(r-this.startTime)*this.speed;const O=this.currentTime-C*(this.speed>=0?1:-1),F=this.speed>=0?O<0:O>A;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=A);let z=this.currentTime,j=d;if(T){const Q=Math.min(this.currentTime,A)/k;let H=Math.floor(Q),Y=Q%1;!Y&&Q>=1&&(Y=1),Y===1&&H--,H=Math.min(H,T+1),!!(H%2)&&(B==="reverse"?(Y=1-Y,L&&(Y-=L/k)):B==="mirror"&&(j=h)),z=GA(0,1,Y)*k}const G=F?{done:!1,value:v[0]}:j.next(z);b&&(G.value=b(G.value));let{done:U}=G;!F&&y!==null&&(U=this.speed>=0?this.currentTime>=A:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return q&&u!==void 0&&(G.value=ZQ(v,this.options,u)),I&&I(G.value),q&&this.finish(),G}get duration(){const{resolved:r}=this;return r?r8(r.calculatedDuration):0}get time(){return r8(this.currentTime)}set time(r){r=n8(r),this.currentTime=r,this.holdTime!==null||this.speed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.speed)}get speed(){return this.playbackSpeed}set speed(r){const a=this.playbackSpeed!==r;this.playbackSpeed=r,a&&(this.time=r8(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:r=mKt,onPlay:a,startTime:o}=this.options;this.driver||(this.driver=r(d=>this.tick(d))),a&&a();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var r;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(r=this.currentTime)!==null&&r!==void 0?r:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:r}=this.options;r&&r()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}}const wKt=new Set(["opacity","clipPath","filter","transform"]);function yKt(n,r,a,{delay:o=0,duration:u=300,repeat:d=0,repeatType:h="loop",ease:b="easeInOut",times:v}={}){const y={[r]:a};v&&(y.offset=v);const A=_Oe(b,u);return Array.isArray(A)&&(y.easing=A),n.animate(y,{delay:o,duration:u,easing:Array.isArray(A)?"linear":A,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"})}const AKt=Uue(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),r$=10,xKt=2e4;function kKt(n){return XQ(n.type)||n.type==="spring"||!MOe(n.ease)}function EKt(n,r){const a=new c0e({...r,keyframes:n,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:n[0]};const u=[];let d=0;for(;!o.done&&d<xKt;)o=a.sample(d),u.push(o.value),d+=r$;return{times:void 0,keyframes:u,duration:d-r$,ease:"linear"}}const gFe={anticipate:FOe,backInOut:OOe,circInOut:POe};function CKt(n){return n in gFe}class pFe extends tFe{constructor(r){super(r);const{name:a,motionValue:o,element:u,keyframes:d}=this.options;this.resolver=new ZOe(d,(h,b)=>this.onKeyframesResolved(h,b),a,o,u),this.resolver.scheduleResolve()}initPlayback(r,a){let{duration:o=300,times:u,ease:d,type:h,motionValue:b,name:v,startTime:y}=this.options;if(!b.owner||!b.owner.current)return!1;if(typeof d=="string"&&JQ()&&CKt(d)&&(d=gFe[d]),kKt(this.options)){const{onComplete:k,onUpdate:C,motionValue:T,element:B,...L}=this.options,I=EKt(r,L);r=I.keyframes,r.length===1&&(r[1]=r[0]),o=I.duration,u=I.times,d=I.ease,h="keyframes"}const A=yKt(b.owner.current,v,r,{...this.options,duration:o,times:u,ease:d});return A.startTime=y??this.calcStartTime(),this.pendingTimeline?(SOe(A,this.pendingTimeline),this.pendingTimeline=void 0):A.onfinish=()=>{const{onComplete:k}=this.options;b.set(ZQ(r,this.options,a)),k&&k(),this.cancel(),this.resolveFinishedPromise()},{animation:A,duration:o,times:u,type:h,ease:d,keyframes:r}}get duration(){const{resolved:r}=this;if(!r)return 0;const{duration:a}=r;return r8(a)}get time(){const{resolved:r}=this;if(!r)return 0;const{animation:a}=r;return r8(a.currentTime||0)}set time(r){const{resolved:a}=this;if(!a)return;const{animation:o}=a;o.currentTime=n8(r)}get speed(){const{resolved:r}=this;if(!r)return 1;const{animation:a}=r;return a.playbackRate}set speed(r){const{resolved:a}=this;if(!a)return;const{animation:o}=a;o.playbackRate=r}get state(){const{resolved:r}=this;if(!r)return"idle";const{animation:a}=r;return a.playState}get startTime(){const{resolved:r}=this;if(!r)return null;const{animation:a}=r;return a.startTime}attachTimeline(r){if(!this._resolved)this.pendingTimeline=r;else{const{resolved:a}=this;if(!a)return Mg;const{animation:o}=a;SOe(o,r)}return Mg}play(){if(this.isStopped)return;const{resolved:r}=this;if(!r)return;const{animation:a}=r;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){const{resolved:r}=this;if(!r)return;const{animation:a}=r;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:r}=this;if(!r)return;const{animation:a,keyframes:o,duration:u,type:d,ease:h,times:b}=r;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){const{motionValue:y,onUpdate:A,onComplete:k,element:C,...T}=this.options,B=new c0e({...T,keyframes:o,duration:u,type:d,ease:h,times:b,isGenerator:!0}),L=n8(this.time);y.setWithVelocity(B.sample(L-r$).value,B.sample(L).value,r$)}const{onStop:v}=this.options;v&&v(),this.cancel()}complete(){const{resolved:r}=this;r&&r.animation.finish()}cancel(){const{resolved:r}=this;r&&r.animation.cancel()}static supports(r){const{motionValue:a,name:o,repeatDelay:u,repeatType:d,damping:h,type:b}=r;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;const{onUpdate:v,transformTemplate:y}=a.owner.getProps();return AKt()&&o&&wKt.has(o)&&!v&&!y&&!u&&d!=="mirror"&&h!==0&&b!=="inertia"}}const TKt={type:"spring",stiffness:500,damping:25,restSpeed:10},SKt=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),BKt={type:"keyframes",duration:.8},MKt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_Kt=(n,{keyframes:r})=>r.length>2?BKt:cM.has(n)?n.startsWith("scale")?SKt(r[1]):TKt:MKt;function LKt({when:n,delay:r,delayChildren:a,staggerChildren:o,staggerDirection:u,repeat:d,repeatType:h,repeatDelay:b,from:v,elapsed:y,...A}){return!!Object.keys(A).length}const l0e=(n,r,a,o={},u,d)=>h=>{const b=jue(o,n)||{},v=b.delay||o.delay||0;let{elapsed:y=0}=o;y=y-n8(v);let A={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:r.getVelocity(),...b,delay:-y,onUpdate:C=>{r.set(C),b.onUpdate&&b.onUpdate(C)},onComplete:()=>{h(),b.onComplete&&b.onComplete()},name:n,motionValue:r,element:d?void 0:u};LKt(b)||(A={...A,..._Kt(n,A)}),A.duration&&(A.duration=n8(A.duration)),A.repeatDelay&&(A.repeatDelay=n8(A.repeatDelay)),A.from!==void 0&&(A.keyframes[0]=A.from);let k=!1;if((A.type===!1||A.duration===0&&!A.repeatDelay)&&(A.duration=0,A.delay===0&&(k=!0)),k&&!d&&r.get()!==void 0){const C=ZQ(A.keyframes,b);if(C!==void 0)return Dl.update(()=>{A.onUpdate(C),A.onComplete()}),new TOe([])}return!d&&pFe.supports(A)?new pFe(A):new c0e(A)};function mFe(n,r,a){const o=Ad(n)?n:IO(n);return o.start(l0e("",o,r,a)),o.animation}const u0e=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),DKt="data-"+u0e("framerAppearId");function bFe(n){return n.props[DKt]}const{schedule:IKt}=sOe(queueMicrotask,!1);function vFe(n){return n instanceof SVGElement&&n.tagName!=="svg"}const RKt=(n,r)=>n.depth-r.depth;class OKt{constructor(){this.children=[],this.isDirty=!1}add(r){Hue(this.children,r),this.isDirty=!0}remove(r){KQ(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(RKt),this.isDirty=!1,this.children.forEach(r)}}function FKt(n,r){const a=T5.now(),o=({timestamp:u})=>{const d=u-a;d>=r&&(e8(o),n(d-r))};return Dl.read(o,!0),()=>e8(o)}const NKt=n=>Array.isArray(n),PKt=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),zKt=n=>NKt(n)?n[n.length-1]||0:n;function h0e(n){const r=Ad(n)?n.get():n;return PKt(r)?r.toValue():r}const wFe=["TopLeft","TopRight","BottomLeft","BottomRight"],jKt=wFe.length,yFe=n=>typeof n=="string"?parseFloat(n):n,AFe=n=>typeof n=="number"||Ja.test(n);function HKt(n,r,a,o,u,d){u?(n.opacity=_h(0,a.opacity!==void 0?a.opacity:1,VKt(o)),n.opacityExit=_h(r.opacity!==void 0?r.opacity:1,0,UKt(o))):d&&(n.opacity=_h(r.opacity!==void 0?r.opacity:1,a.opacity!==void 0?a.opacity:1,o));for(let h=0;h<jKt;h++){const b=`border${wFe[h]}Radius`;let v=xFe(r,b),y=xFe(a,b);if(v===void 0&&y===void 0)continue;v||(v=0),y||(y=0),v===0||y===0||AFe(v)===AFe(y)?(n[b]=Math.max(_h(yFe(v),yFe(y),o),0),(t8.test(y)||t8.test(v))&&(n[b]+="%")):n[b]=y}(r.rotate||a.rotate)&&(n.rotate=_h(r.rotate||0,a.rotate||0,o))}function xFe(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const VKt=kFe(0,.5,NOe),UKt=kFe(.5,.95,Mg);function kFe(n,r,a){return o=>o<n?0:o>r?1:a(RO(n,r,o))}function EFe(n,r){n.min=r.min,n.max=r.max}function m3(n,r){EFe(n.x,r.x),EFe(n.y,r.y)}function CFe(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function f0e(n){return n===void 0||n===1}function d0e({scale:n,scaleX:r,scaleY:a}){return!f0e(n)||!f0e(r)||!f0e(a)}function Uk(n){return d0e(n)||TFe(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function TFe(n){return SFe(n.x)||SFe(n.y)}function SFe(n){return n&&n!=="0%"}function i$(n,r,a){const o=n-a,u=r*o;return a+u}function BFe(n,r,a,o,u){return u!==void 0&&(n=i$(n,u,o)),i$(n,a,o)+r}function g0e(n,r=0,a=1,o,u){n.min=BFe(n.min,r,a,o,u),n.max=BFe(n.max,r,a,o,u)}function MFe(n,{x:r,y:a}){g0e(n.x,r.translate,r.scale,r.originPoint),g0e(n.y,a.translate,a.scale,a.originPoint)}const _Fe=.999999999999,LFe=1.0000000000001;function GKt(n,r,a,o=!1){const u=a.length;if(!u)return;r.x=r.y=1;let d,h;for(let b=0;b<u;b++){d=a[b],h=d.projectionDelta;const{visualElement:v}=d.options;v&&v.props.style&&v.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&uM(n,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(r.x*=h.x.scale,r.y*=h.y.scale,MFe(n,h)),o&&Uk(d.latestValues)&&uM(n,d.latestValues))}r.x<LFe&&r.x>_Fe&&(r.x=1),r.y<LFe&&r.y>_Fe&&(r.y=1)}function a$(n,r){n.min=n.min+r,n.max=n.max+r}function DFe(n,r,a,o,u=.5){const d=_h(n.min,n.max,u);g0e(n,r,a,d,o)}function uM(n,r){DFe(n.x,r.x,r.scaleX,r.scale,r.originX),DFe(n.y,r.y,r.scaleY,r.scale,r.originY)}const IFe=1e-4,qKt=1-IFe,QKt=1+IFe,RFe=.01,$Kt=0-RFe,YKt=0+RFe;function b3(n){return n.max-n.min}function WKt(n,r,a){return Math.abs(n-r)<=a}function OFe(n,r,a,o=.5){n.origin=o,n.originPoint=_h(r.min,r.max,n.origin),n.scale=b3(a)/b3(r),n.translate=_h(a.min,a.max,n.origin)-n.originPoint,(n.scale>=qKt&&n.scale<=QKt||isNaN(n.scale))&&(n.scale=1),(n.translate>=$Kt&&n.translate<=YKt||isNaN(n.translate))&&(n.translate=0)}function NO(n,r,a,o){OFe(n.x,r.x,a.x,o?o.originX:void 0),OFe(n.y,r.y,a.y,o?o.originY:void 0)}function FFe(n,r,a){n.min=a.min+r.min,n.max=n.min+b3(r)}function KKt(n,r,a){FFe(n.x,r.x,a.x),FFe(n.y,r.y,a.y)}function NFe(n,r,a){n.min=r.min-a.min,n.max=n.min+b3(r)}function PO(n,r,a){NFe(n.x,r.x,a.x),NFe(n.y,r.y,a.y)}function PFe(n,r,a,o,u){return n-=r,n=i$(n,1/a,o),u!==void 0&&(n=i$(n,1/u,o)),n}function XKt(n,r=0,a=1,o=.5,u,d=n,h=n){if(t8.test(r)&&(r=parseFloat(r),r=_h(h.min,h.max,r/100)-h.min),typeof r!="number")return;let b=_h(d.min,d.max,o);n===d&&(b-=r),n.min=PFe(n.min,r,a,b,u),n.max=PFe(n.max,r,a,b,u)}function zFe(n,r,[a,o,u],d,h){XKt(n,r[a],r[o],r[u],r.scale,d,h)}const JKt=["x","scaleX","originX"],ZKt=["y","scaleY","originY"];function jFe(n,r,a,o){zFe(n.x,r,JKt,a?a.x:void 0,o?o.x:void 0),zFe(n.y,r,ZKt,a?a.y:void 0,o?o.y:void 0)}const HFe=()=>({translate:0,scale:1,origin:0,originPoint:0}),hM=()=>({x:HFe(),y:HFe()}),VFe=()=>({min:0,max:0}),Y0=()=>({x:VFe(),y:VFe()});function UFe(n){return n.translate===0&&n.scale===1}function GFe(n){return UFe(n.x)&&UFe(n.y)}function qFe(n,r){return n.min===r.min&&n.max===r.max}function eXt(n,r){return qFe(n.x,r.x)&&qFe(n.y,r.y)}function QFe(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function $Fe(n,r){return QFe(n.x,r.x)&&QFe(n.y,r.y)}function YFe(n){return b3(n.x)/b3(n.y)}function WFe(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}class tXt{constructor(){this.members=[]}add(r){Hue(this.members,r),r.scheduleRender()}remove(r){if(KQ(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(r){const a=this.members.findIndex(u=>r===u);if(a===0)return!1;let o;for(let u=a;u>=0;u--){const d=this.members[u];if(d.isPresent!==!1){o=d;break}}return o?(this.promote(o),!0):!1}promote(r,a){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,a&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:u}=r.options;u===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:a,resumingFrom:o}=r;a.onExitComplete&&a.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nXt(n,r,a){let o="";const u=n.x.translate/r.x,d=n.y.translate/r.y,h=(a==null?void 0:a.z)||0;if((u||d||h)&&(o=`translate3d(${u}px, ${d}px, ${h}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),a){const{transformPerspective:y,rotate:A,rotateX:k,rotateY:C,skewX:T,skewY:B}=a;y&&(o=`perspective(${y}px) ${o}`),A&&(o+=`rotate(${A}deg) `),k&&(o+=`rotateX(${k}deg) `),C&&(o+=`rotateY(${C}deg) `),T&&(o+=`skewX(${T}deg) `),B&&(o+=`skewY(${B}deg) `)}const b=n.x.scale*r.x,v=n.y.scale*r.y;return(b!==1||v!==1)&&(o+=`scale(${b}, ${v})`),o||"none"}function KFe(n){return[n("x"),n("y")]}const p0e=["","X","Y","Z"],rXt={visibility:"hidden"},XFe=1e3;let iXt=0;function m0e(n,r,a,o){const{latestValues:u}=r;u[n]&&(a[n]=u[n],r.setStaticValue(n,0),o&&(o[n]=0))}function JFe(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const a=bFe(r);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(a,"transform",Dl,!(u||d))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&JFe(o)}function ZFe({attachResizeListener:n,defaultParent:r,measureScroll:a,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(h={},b=r==null?void 0:r()){this.id=iXt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oXt),this.nodes.forEach(fXt),this.nodes.forEach(dXt),this.nodes.forEach(cXt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=b?b.root||b:this,this.path=b?[...b.path,b]:[],this.parent=b,this.depth=b?b.depth+1:0;for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new OKt)}addEventListener(h,b){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Vue),this.eventHandlers.get(h).add(b)}notifyListeners(h,...b){const v=this.eventHandlers.get(h);v&&v.notify(...b)}hasListeners(h){return this.eventHandlers.has(h)}mount(h,b=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vFe(h),this.instance=h;const{layoutId:v,layout:y,visualElement:A}=this.options;if(A&&!A.current&&A.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),b&&(y||v)&&(this.isLayoutDirty=!0),n){let k;const C=()=>this.root.updateBlockedByResize=!1;n(h,()=>{this.root.updateBlockedByResize=!0,k&&k(),k=FKt(C,250),$Q.hasAnimatedSinceResize&&($Q.hasAnimatedSinceResize=!1,this.nodes.forEach(tNe))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&A&&(v||y)&&this.addEventListener("didUpdate",({delta:k,hasLayoutChanged:C,hasRelativeLayoutChanged:T,layout:B})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const L=this.options.transition||A.getDefaultTransition()||vXt,{onLayoutAnimationStart:I,onLayoutAnimationComplete:O}=A.getProps(),F=!this.targetLayout||!$Fe(this.targetLayout,B),z=!C&&T;if(this.options.layoutRoot||this.resumeFrom||z||C&&(F||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(k,z);const j={...jue(L,"layout"),onPlay:I,onComplete:O};(A.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else C||tNe(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=B})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,e8(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gXt),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&JFe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A<this.path.length;A++){const k=this.path[A];k.shouldResetTransform=!0,k.updateScroll("snapshot"),k.options.layoutRoot&&k.willUpdate(!1)}const{layoutId:b,layout:v}=this.options;if(b===void 0&&!v)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eNe);return}this.isUpdating||this.nodes.forEach(uXt),this.isUpdating=!1,this.nodes.forEach(hXt),this.nodes.forEach(aXt),this.nodes.forEach(sXt),this.clearAllSnapshots();const b=T5.now();Ff.delta=GA(0,1e3/60,b-Ff.timestamp),Ff.timestamp=b,Ff.isProcessing=!0,Due.update.process(Ff),Due.preRender.process(Ff),Due.render.process(Ff),Ff.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,IKt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lXt),this.sharedNodes.forEach(pXt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Dl.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Dl.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!b3(this.snapshot.measuredBox.x)&&!b3(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let v=0;v<this.path.length;v++)this.path[v].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y0(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:b}=this.options;b&&b.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let b=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(b=!1),b){const v=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:v,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:v}}}resetTransform(){if(!u)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,b=this.projectionDelta&&!GFe(this.projectionDelta),v=this.getTransformTemplate(),y=v?v(this.latestValues,""):void 0,A=y!==this.prevTransformTemplateValue;h&&(b||Uk(this.latestValues)||A)&&(u(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const b=this.measurePageBox();let v=this.removeElementScroll(b);return h&&(v=this.removeTransform(v)),wXt(v),{animationId:this.root.animationId,measuredBox:b,layoutBox:v,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:b}=this.options;if(!b)return Y0();const v=b.measureViewportBox();if(!(((h=this.scroll)===null||h===void 0?void 0:h.wasRoot)||this.path.some(yXt))){const{scroll:A}=this.root;A&&(a$(v.x,A.offset.x),a$(v.y,A.offset.y))}return v}removeElementScroll(h){var b;const v=Y0();if(m3(v,h),!((b=this.scroll)===null||b===void 0)&&b.wasRoot)return v;for(let y=0;y<this.path.length;y++){const A=this.path[y],{scroll:k,options:C}=A;A!==this.root&&k&&C.layoutScroll&&(k.wasRoot&&m3(v,h),a$(v.x,k.offset.x),a$(v.y,k.offset.y))}return v}applyTransform(h,b=!1){const v=Y0();m3(v,h);for(let y=0;y<this.path.length;y++){const A=this.path[y];!b&&A.options.layoutScroll&&A.scroll&&A!==A.root&&uM(v,{x:-A.scroll.offset.x,y:-A.scroll.offset.y}),Uk(A.latestValues)&&uM(v,A.latestValues)}return Uk(this.latestValues)&&uM(v,this.latestValues),v}removeTransform(h){const b=Y0();m3(b,h);for(let v=0;v<this.path.length;v++){const y=this.path[v];if(!y.instance||!Uk(y.latestValues))continue;d0e(y.latestValues)&&y.updateSnapshot();const A=Y0(),k=y.measurePageBox();m3(A,k),jFe(b,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,A)}return Uk(this.latestValues)&&jFe(b,this.latestValues),b}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ff.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var b;const v=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=v.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=v.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=v.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==v;if(!(h||y&&this.isSharedProjectionDirty||this.isProjectionDirty||!((b=this.parent)===null||b===void 0)&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:k,layoutId:C}=this.options;if(!(!this.layout||!(k||C))){if(this.resolvedRelativeTargetAt=Ff.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y0(),this.relativeTargetOrigin=Y0(),PO(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),m3(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y0(),this.targetWithTransforms=Y0()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KKt(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):m3(this.target,this.layout.layoutBox),MFe(this.target,this.targetDelta)):m3(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y0(),this.relativeTargetOrigin=Y0(),PO(this.relativeTargetOrigin,this.target,T.target),m3(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||d0e(this.parent.latestValues)||TFe(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var h;const b=this.getLead(),v=!!this.resumingFrom||this!==b;let y=!0;if((this.isProjectionDirty||!((h=this.parent)===null||h===void 0)&&h.isProjectionDirty)&&(y=!1),v&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===Ff.timestamp&&(y=!1),y)return;const{layout:A,layoutId:k}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(A||k))return;m3(this.layoutCorrected,this.layout.layoutBox);const C=this.treeScale.x,T=this.treeScale.y;GKt(this.layoutCorrected,this.treeScale,this.path,v),b.layout&&!b.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(b.target=b.layout.layoutBox,b.targetWithTransforms=Y0());const{target:B}=b;if(!B){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(CFe(this.prevProjectionDelta.x,this.projectionDelta.x),CFe(this.prevProjectionDelta.y,this.projectionDelta.y)),NO(this.projectionDelta,this.layoutCorrected,B,this.latestValues),(this.treeScale.x!==C||this.treeScale.y!==T||!WFe(this.projectionDelta.x,this.prevProjectionDelta.x)||!WFe(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",B))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var b;if((b=this.options.visualElement)===null||b===void 0||b.scheduleRender(),h){const v=this.getStack();v&&v.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hM(),this.projectionDelta=hM(),this.projectionDeltaWithTransform=hM()}setAnimationOrigin(h,b=!1){const v=this.snapshot,y=v?v.latestValues:{},A={...this.latestValues},k=hM();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;const C=Y0(),T=v?v.source:void 0,B=this.layout?this.layout.source:void 0,L=T!==B,I=this.getStack(),O=!I||I.members.length<=1,F=!!(L&&!O&&this.options.crossfade===!0&&!this.path.some(bXt));this.animationProgress=0;let z;this.mixTargetDelta=j=>{const G=j/1e3;nNe(k.x,h.x,G),nNe(k.y,h.y,G),this.setTargetDelta(k),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(PO(C,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mXt(this.relativeTarget,this.relativeTargetOrigin,C,G),z&&eXt(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Y0()),m3(z,this.relativeTarget)),L&&(this.animationValues=A,HKt(A,y,this.latestValues,G,F,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(e8(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dl.update(()=>{$Q.hasAnimatedSinceResize=!0,this.currentAnimation=mFe(0,XFe,{...h,onUpdate:b=>{this.mixTargetDelta(b),h.onUpdate&&h.onUpdate(b)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(XFe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:b,target:v,layout:y,latestValues:A}=h;if(!(!b||!v||!y)){if(this!==h&&this.layout&&y&&oNe(this.options.animationType,this.layout.layoutBox,y.layoutBox)){v=this.target||Y0();const k=b3(this.layout.layoutBox.x);v.x.min=h.target.x.min,v.x.max=v.x.min+k;const C=b3(this.layout.layoutBox.y);v.y.min=h.target.y.min,v.y.max=v.y.min+C}m3(b,v),uM(b,A),NO(this.projectionDeltaWithTransform,this.layoutCorrected,b,A)}}registerSharedNode(h,b){this.sharedNodes.has(h)||this.sharedNodes.set(h,new tXt),this.sharedNodes.get(h).add(b);const y=b.options.initialPromotionConfig;b.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(b):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var h;const{layoutId:b}=this.options;return b?((h=this.getStack())===null||h===void 0?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:b}=this.options;return b?(h=this.getStack())===null||h===void 0?void 0:h.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:b,preserveFollowOpacity:v}={}){const y=this.getStack();y&&y.promote(this,v),h&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let b=!1;const{latestValues:v}=h;if((v.z||v.rotate||v.rotateX||v.rotateY||v.rotateZ||v.skewX||v.skewY)&&(b=!0),!b)return;const y={};v.z&&m0e("z",h,y,this.animationValues);for(let A=0;A<p0e.length;A++)m0e(`rotate${p0e[A]}`,h,y,this.animationValues),m0e(`skew${p0e[A]}`,h,y,this.animationValues);h.render();for(const A in y)h.setStaticValue(A,y[A]),this.animationValues&&(this.animationValues[A]=y[A]);h.scheduleRender()}getProjectionStyles(h){var b,v;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rXt;const y={visibility:""},A=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,y.opacity="",y.pointerEvents=h0e(h==null?void 0:h.pointerEvents)||"",y.transform=A?A(this.latestValues,""):"none",y;const k=this.getLead();if(!this.projectionDelta||!this.layout||!k.target){const L={};return this.options.layoutId&&(L.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,L.pointerEvents=h0e(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Uk(this.latestValues)&&(L.transform=A?A({},""):"none",this.hasProjected=!1),L}const C=k.animationValues||k.latestValues;this.applyTransformsToTarget(),y.transform=nXt(this.projectionDeltaWithTransform,this.treeScale,C),A&&(y.transform=A(C,y.transform));const{x:T,y:B}=this.projectionDelta;y.transformOrigin=`${T.origin*100}% ${B.origin*100}% 0`,k.animationValues?y.opacity=k===this?(v=(b=C.opacity)!==null&&b!==void 0?b:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:y.opacity=k===this?C.opacity!==void 0?C.opacity:"":C.opacityExit!==void 0?C.opacityExit:0;for(const L in EO){if(C[L]===void 0)continue;const{correct:I,applyTo:O,isCSSVariable:F}=EO[L],z=y.transform==="none"?C[L]:I(C[L],k);if(O){const j=O.length;for(let G=0;G<j;G++)y[O[G]]=z}else F?this.options.visualElement.renderState.vars[L]=z:y[L]=z}return this.options.layoutId&&(y.pointerEvents=k===this?h0e(h==null?void 0:h.pointerEvents)||"":"none"),y}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var b;return(b=h.currentAnimation)===null||b===void 0?void 0:b.stop()}),this.root.nodes.forEach(eNe),this.root.sharedNodes.clear()}}}function aXt(n){n.updateLayout()}function sXt(n){var r;const a=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=n.layout,{animationType:d}=n.options,h=a.source!==n.layout.source;d==="size"?KFe(k=>{const C=h?a.measuredBox[k]:a.layoutBox[k],T=b3(C);C.min=o[k].min,C.max=C.min+T}):oNe(d,a.layoutBox,o)&&KFe(k=>{const C=h?a.measuredBox[k]:a.layoutBox[k],T=b3(o[k]);C.max=C.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[k].max=n.relativeTarget[k].min+T)});const b=hM();NO(b,o,a.layoutBox);const v=hM();h?NO(v,n.applyTransform(u,!0),a.measuredBox):NO(v,o,a.layoutBox);const y=!GFe(b);let A=!1;if(!n.resumeFrom){const k=n.getClosestProjectingParent();if(k&&!k.resumeFrom){const{snapshot:C,layout:T}=k;if(C&&T){const B=Y0();PO(B,a.layoutBox,C.layoutBox);const L=Y0();PO(L,o,T.layoutBox),$Fe(B,L)||(A=!0),k.options.layoutRoot&&(n.relativeTarget=L,n.relativeTargetOrigin=B,n.relativeParent=k)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:a,delta:v,layoutDelta:b,hasLayoutChanged:y,hasRelativeLayoutChanged:A})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function oXt(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function cXt(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function lXt(n){n.clearSnapshot()}function eNe(n){n.clearMeasurements()}function uXt(n){n.isLayoutDirty=!1}function hXt(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function tNe(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function fXt(n){n.resolveTargetDelta()}function dXt(n){n.calcProjection()}function gXt(n){n.resetSkewAndRotation()}function pXt(n){n.removeLeadSnapshot()}function nNe(n,r,a){n.translate=_h(r.translate,0,a),n.scale=_h(r.scale,1,a),n.origin=r.origin,n.originPoint=r.originPoint}function rNe(n,r,a,o){n.min=_h(r.min,a.min,o),n.max=_h(r.max,a.max,o)}function mXt(n,r,a,o){rNe(n.x,r.x,a.x,o),rNe(n.y,r.y,a.y,o)}function bXt(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const vXt={duration:.45,ease:[.4,0,.1,1]},iNe=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),aNe=iNe("applewebkit/")&&!iNe("chrome/")?Math.round:Mg;function sNe(n){n.min=aNe(n.min),n.max=aNe(n.max)}function wXt(n){sNe(n.x),sNe(n.y)}function oNe(n,r,a){return n==="position"||n==="preserve-aspect"&&!WKt(YFe(r),YFe(a),.2)}function yXt(n){var r;return n!==n.root&&((r=n.scroll)===null||r===void 0?void 0:r.wasRoot)}function AXt(n,r,a,o={passive:!0}){return n.addEventListener(r,a,o),()=>n.removeEventListener(r,a)}const xXt=ZFe({attachResizeListener:(n,r)=>AXt(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),b0e={current:void 0},kXt=ZFe({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!b0e.current){const n=new xXt({});n.mount(window),n.setOptions({layoutScroll:!0}),b0e.current=n}return b0e.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"});function cNe(n){if(n)return n.options.allowProjection!==!1?n.projection:cNe(n.parent)}function zO(n){return typeof n=="object"&&n!==null&&"nodeType"in n}const v0e=new WeakMap,[EXt,Ufr]=VQ("AnimatePresenceContext");class CXt extends C5{constructor(r){super(r),JRe(pOe)}initProjection(){const r=this.state.options;this.state.visualElement.projection=new kXt(this.state.visualElement.latestValues,r["data-framer-portal-id"]?void 0:cNe(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const r=this.state.options;this.state.visualElement.projection.setOptions({layout:r.layout,layoutId:r.layoutId,alwaysMeasureLayout:!!r.drag||r.dragConstraints&&zO(r.dragConstraints),visualElement:this.state.visualElement,animationType:typeof r.layout=="string"?r.layout:"both",layoutRoot:r.layoutRoot,layoutScroll:r.layoutScroll,crossfade:r.crossfade,onExitComplete:()=>{var a;if(!((a=this.state.visualElement.projection)!=null&&a.isPresent)){const o=v0e.get(this.state.element);this.state.isSafeToRemove=!0,o&&o({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var r;(r=this.state.visualElement.projection)==null||r.mount(this.state.element)}}class TXt extends C5{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.state.element.matches(":focus-visible")}catch{r=!0}r&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=DO(YQ(this.state.element,"focus",()=>this.onFocus()),YQ(this.state.element,"blur",()=>this.onBlur()))}}const SXt={y:!1};function BXt(){return SXt.y}function w0e(n,r,a){var o;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let u=document;const d=(o=a==null?void 0:a[n])!==null&&o!==void 0?o:u.querySelectorAll(n);return d?Array.from(d):[]}return Array.from(n)}function lNe(n,r){const a=w0e(n),o=new AbortController,u={passive:!0,...r,signal:o.signal};return[a,u,()=>o.abort()]}function uNe(n){return!(n.pointerType==="touch"||BXt())}function MXt(n,r,a={}){const[o,u,d]=lNe(n,a),h=b=>{if(!uNe(b))return;const{target:v}=b,y=r(v,b);if(typeof y!="function"||!v)return;const A=k=>{uNe(k)&&(y(k),v.removeEventListener("pointerleave",A))};v.addEventListener("pointerleave",A,u)};return o.forEach(b=>{b.addEventListener("pointerenter",h,u)}),d}function hNe(n,r){const a=`${r}PointerCapture`;if(n.target instanceof Element&&a in n.target&&n.pointerId!==void 0)try{n.target[a](n.pointerId)}catch{}}const fNe=(n,r)=>r?n===r?!0:fNe(n,r.parentElement):!1,_Xt=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,LXt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DXt(n){return LXt.has(n.tagName)||n.tabIndex!==-1}const jO=new WeakSet;function dNe(n){return r=>{r.key==="Enter"&&n(r)}}function y0e(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const IXt=(n,r)=>{const a=n.currentTarget;if(!a)return;const o=dNe(()=>{if(jO.has(a))return;y0e(a,"down");const u=dNe(()=>{y0e(a,"up")}),d=()=>y0e(a,"cancel");a.addEventListener("keyup",u,r),a.addEventListener("blur",d,r)});a.addEventListener("keydown",o,r),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),r)};function gNe(n){return _Xt(n)&&!0}function RXt(n,r,a={}){const[o,u,d]=lNe(n,a),h=b=>{const v=b.currentTarget;if(!v||!gNe(b)||jO.has(v))return;jO.add(v),hNe(b,"set");const y=r(v,b),A=(T,B)=>{v.removeEventListener("pointerup",k),v.removeEventListener("pointercancel",C),hNe(T,"release"),!(!gNe(T)||!jO.has(v))&&(jO.delete(v),typeof y=="function"&&y(T,{success:B}))},k=T=>{(T.isTrusted?OXt(T,v instanceof Element?v.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?A(T,!1):A(T,!(v instanceof Element)||fNe(v,T.target))},C=T=>{A(T,!1)};v.addEventListener("pointerup",k,u),v.addEventListener("pointercancel",C,u),v.addEventListener("lostpointercapture",C,u)};return o.forEach(b=>{b=a.useGlobalTarget?window:b;let v=!1;b instanceof HTMLElement&&(v=!0,!DXt(b)&&b.getAttribute("tabindex")===null&&(b.tabIndex=0)),b.addEventListener("pointerdown",h,u),v&&b.addEventListener("focus",y=>IXt(y,u),u)}),d}function OXt(n,r){return n.clientX<r.left||n.clientX>r.right||n.clientY<r.top||n.clientY>r.bottom}function pNe(n){return{point:{x:n.pageX,y:n.pageY}}}function mNe(n,r,a){const o=n.options;o.whilePress&&n.setActive("whilePress",a==="Start");const u=`onPress${a==="End"?"":a}`,d=o[u];d&&Dl.postRender(()=>d(r,pNe(r)))}class FXt extends C5{isActive(){return!!this.state.options.press}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=RXt(r,(a,o)=>(mNe(this.state,o,"Start"),(u,{success:d})=>mNe(this.state,u,d?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function bNe(n,r,a){const o=n.options;o.whileHover&&n.setActive("whileHover",a==="Start");const u=`onHover${a}`,d=o[u];d&&Dl.postRender(()=>d(r,pNe(r)))}class NXt extends C5{isActive(){return!!this.state.getOptions().whileHover}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=MXt(r,(a,o)=>(bNe(this.state,o,"Start"),u=>{bNe(this.state,u,"End")})))}}const PXt={some:0,all:1};function zXt(n,r,{root:a,margin:o,amount:u="some"}={}){const d=w0e(n),h=new WeakMap,b=y=>{y.forEach(A=>{const k=h.get(A.target);if(A.isIntersecting!==!!k)if(A.isIntersecting){const C=r(A.target,A);typeof C=="function"?h.set(A.target,C):v.unobserve(A.target)}else typeof k=="function"&&(k(A),h.delete(A.target))})},v=new IntersectionObserver(b,{root:a,rootMargin:o,threshold:typeof u=="number"?u:PXt[u]});return d.forEach(y=>v.observe(y)),()=>v.disconnect()}function vNe(n,r,a){const o=n.options;o.whileInView&&n.setActive("whileInView",a==="Enter");const u=`onViewport${a}`,d=o[u];d&&Dl.postRender(()=>d(r))}class jXt extends C5{isActive(){return!!this.state.getOptions().whileInView}constructor(r){super(r)}startObserver(){const r=this.state.element;if(!r)return;this.unmount();const{once:a,...o}=this.state.getOptions().inViewOptions||{};this.unmount=zXt(r,(u,d)=>{if(vNe(this.state,d,"Enter"),!a)return h=>{vNe(this.state,d,"Leave")}},o)}mount(){this.startObserver()}update(){const{props:r,prevProps:a}=this.state.visualElement;["amount","margin","root"].some(HXt(r,a))&&this.startObserver()}}function HXt({inViewOptions:n={}},{inViewOptions:r={}}={}){return a=>n[a]!==r[a]}function wNe(n){let r=null;return()=>{const a=()=>{r=null};return r===null?(r=n,a):!1}}const yNe=wNe("dragHorizontal"),ANe=wNe("dragVertical");function VXt(n){let r=!1;if(n==="y")r=ANe();else if(n==="x")r=yNe();else{const a=yNe(),o=ANe();a&&o?r=()=>{a(),o()}:(a&&a(),o&&o())}return r}function A0e(n){return n.max-n.min}function UXt(n,r,a){return a>r?r:a<n?n:a}function s$(n,r,a){return n+(r-n)*a}function xNe(n,r,a){const o=r-n;return o===0?1:(a-n)/o}function GXt(n,{min:r,max:a},o){return r!==void 0&&n<r?n=o?s$(r,n,o.min):Math.max(n,r):a!==void 0&&n>a&&(n=o?s$(a,n,o.max):Math.min(n,a)),n}const x0e=.35;function qXt(n,{top:r,left:a,bottom:o,right:u}){return{x:kNe(n.x,a,u),y:kNe(n.y,r,o)}}function kNe(n,r,a){return{min:r!==void 0?n.min+r:void 0,max:a!==void 0?n.max+a-(n.max-n.min):void 0}}function QXt(n=x0e){return n===!1?n=0:n===!0&&(n=x0e),{x:ENe(n,"left","right"),y:ENe(n,"top","bottom")}}function ENe(n,r,a){return{min:CNe(n,r),max:CNe(n,a)}}function CNe(n,r){return typeof n=="number"?n:n[r]||0}function $Xt(n,r){const a={};return r.min!==void 0&&(a.min=r.min-n.min),r.max!==void 0&&(a.max=r.max-n.min),a}function YXt(n,r){return{x:TNe(n.x,r.x),y:TNe(n.y,r.y)}}function TNe(n,r){let a=r.min-n.min,o=r.max-n.max;return r.max-r.min<n.max-n.min&&([a,o]=[o,a]),{min:a,max:o}}function WXt(n,r){let a=.5;const o=A0e(n),u=A0e(r);return u>o?a=xNe(r.min,r.max-o,n.min):o>u&&(a=xNe(n.min,n.max-u,r.min)),UXt(0,1,a)}const SNe=()=>({min:0,max:0});function KXt(){return{x:SNe(),y:SNe()}}function S5(n){return[n("x"),n("y")]}function XXt(n){return{test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}}const JXt=XXt("%");function ZXt(n){return!!(GQ(n)&&n.add)}function BNe(n,r){const a=n.getValue("willChange");if(ZXt(a))return a.add(r)}function MNe({top:n,left:r,right:a,bottom:o}){return{x:{min:r,max:a},y:{min:n,max:o}}}function eJt(n,r){if(!r)return n;const a=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function tJt({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function _Ne(n,r){n.min=n.min+r,n.max=n.max+r}function nJt(n,r){return MNe(eJt(n.getBoundingClientRect(),r))}function rJt(n,r,a){const o=nJt(n,a),{scroll:u}=r;return u&&(_Ne(o.x,u.offset.x),_Ne(o.y,u.offset.y)),o}function LNe(n){return!v0e.has(n.current)}const iJt=new WeakMap;class aJt{constructor(r){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=KXt(),this.visualElement=r}start(r,{snapToCursor:a=!1}={}){if(!LNe(this.visualElement))return;const o=y=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Nue(y,"page").point)},u=(y,A)=>{const{drag:k,dragPropagation:C,onDragStart:T}=this.getProps();if(k&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=VXt(k),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),S5(L=>{let I=this.getAxisMotionValue(L).get()||0;if(JXt.test(I)){const{projection:O}=this.visualElement;if(O&&O.layout){const F=O.layout.layoutBox[L];F&&(I=A0e(F)*(parseFloat(I)/100))}}this.originPoint[L]=I}),T&&Dl.postRender(()=>T(y,A)),BNe(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},d=(y,A)=>{const{dragPropagation:k,dragDirectionLock:C,onDirectionLock:T,onDrag:B}=this.getProps();if(!k&&!this.openGlobalLock)return;const{offset:L}=A;if(C&&this.currentDirection===null){this.currentDirection=sJt(L),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",A.point,L),this.updateAxis("y",A.point,L),this.visualElement.render(),B&&B(y,A)},h=(y,A)=>this.stop(y,A),b=()=>S5(y=>{var A;return this.getAnimationState(y)==="paused"&&((A=this.getAxisMotionValue(y).animation)==null?void 0:A.play())}),{dragSnapToOrigin:v}=this.getProps();this.panSession=new vOe(r,{onSessionStart:o,onStart:u,onMove:d,onSessionEnd:h,resumeAnimation:b},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,contextWindow:AOe(this.visualElement)})}stop(r,a){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Dl.postRender(()=>d(r,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:a}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(r,a,o){const{drag:u}=this.getProps();if(!o||!o$(r,u,this.currentDirection))return;const d=this.getAxisMotionValue(r);let h=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(h=GXt(h,this.constraints[r],this.elastic[r])),d.set(h)}resolveConstraints(){var r;const{dragConstraints:a,dragElastic:o}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,d=this.constraints;a&&zO(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&u?this.constraints=qXt(u.layoutBox,a):this.constraints=!1,this.elastic=QXt(o),d!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&S5(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=$Xt(u.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:a}=this.getProps();if(!r||!zO(r))return!1;const o=r,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=rJt(o,u.root,this.visualElement.getTransformPagePoint());let h=YXt(u.layout.layoutBox,d);if(a){const b=a(tJt(h));this.hasMutatedConstraints=!!b,b&&(h=MNe(b))}return h}startAnimation(r){const{drag:a,dragMomentum:o,dragElastic:u,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:b}=this.getProps(),v=this.constraints||{},y=S5(A=>{if(!o$(A,a,this.currentDirection))return;let k=v&&v[A]||{};h&&(k={min:0,max:0});const C=u?200:1e6,T=u?40:1e7,B={type:"inertia",velocity:o?r[A]:0,bounceStiffness:C,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...d,...k};return this.startAxisValueAnimation(A,B)});return Promise.all(y).then(b)}startAxisValueAnimation(r,a){const o=this.getAxisMotionValue(r);return BNe(this.visualElement,r),o.start(l0e(r,o,0,a,this.visualElement,!1))}stopAnimation(){LNe(this.visualElement)&&S5(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){S5(r=>{var a;return(a=this.getAxisMotionValue(r).animation)==null?void 0:a.pause()})}getAnimationState(r){var a;return(a=this.getAxisMotionValue(r).animation)==null?void 0:a.state}getAxisMotionValue(r){const a=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[a]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){S5(a=>{const{drag:o}=this.getProps();if(!o$(a,o,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(a);if(u&&u.layout){const{min:h,max:b}=u.layout.layoutBox[a];d.set(r[a]-s$(h,b,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!zO(a)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};S5(h=>{const b=this.getAxisMotionValue(h);if(b&&this.constraints!==!1){const v=b.get();u[h]=WXt({min:v,max:v},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),S5(h=>{if(!o$(h,r,null))return;const b=this.getAxisMotionValue(h),{min:v,max:y}=this.constraints[h];b.set(s$(v,y,u[h]))})}addListeners(){if(!this.visualElement.current)return;iJt.set(this.visualElement,this);const r=this.visualElement.current,a=LO(r,"pointerdown",v=>{const{drag:y,dragListener:A=!0}=this.getProps();y&&A&&this.start(v)}),o=()=>{const{dragConstraints:v}=this.getProps();zO(v)&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,d=u.addEventListener("measure",o);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Dl.read(o);const h=YQ(window,"resize",()=>this.scalePositionWithinConstraints()),b=u.addEventListener("didUpdate",({delta:v,hasLayoutChanged:y})=>{this.isDragging&&y&&(S5(A=>{const k=this.getAxisMotionValue(A);k&&(this.originPoint[A]+=v[A].translate,k.set(k.get()+v[A].translate))}),this.visualElement.render())});return()=>{h(),a(),d(),b&&b()}}getProps(){const r=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:h=x0e,dragMomentum:b=!0}=r;return{...r,drag:a,dragDirectionLock:o,dragPropagation:u,dragConstraints:d,dragElastic:h,dragMomentum:b}}}function o$(n,r,a){return(r===!0||r===n)&&(a===null||a===n)}function sJt(n,r=10){let a=null;return Math.abs(n.y)>r?a="y":Math.abs(n.x)>r&&(a="x"),a}class oJt extends C5{constructor(r){super(r),this.removeGroupControls=Mg,this.removeListeners=Mg,this.controls=new aJt(r.visualElement)}mount(){const{dragControls:r}=this.state.options;r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mg}unmount(){this.removeGroupControls(),this.removeListeners()}}class cJt{constructor(r){this.features=[],this.features=[new NXt(r),new FXt(r),new jXt(r),new $Yt(r),new cWt(r),new CXt(r),new mWt(r),new oJt(r),new TXt(r),new bWt(r)]}mount(){this.features.forEach(r=>r.mount())}beforeMount(){this.features.forEach(r=>{var a;return(a=r.beforeMount)==null?void 0:a.call(r)})}unmount(){this.features.forEach(r=>r.unmount())}update(){this.features.forEach(r=>{var a;return(a=r.update)==null?void 0:a.call(r)})}beforeUpdate(){this.features.forEach(r=>r.beforeUpdate())}beforeUnmount(){this.features.forEach(r=>r.beforeUnmount())}}function lJt({top:n,left:r,right:a,bottom:o}){return{x:{min:r,max:a},y:{min:n,max:o}}}function uJt(n,r){if(!r)return n;const a=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function hJt(n,r){return lJt(uJt(n.getBoundingClientRect(),r))}const DNe={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},k0e={};for(const n in DNe)k0e[n]={isEnabled:r=>DNe[n].some(a=>!!r[a])};const fJt=typeof window<"u",E0e={current:null},INe={current:!1};function dJt(){if(INe.current=!0,!!fJt)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>E0e.current=n.matches;n.addListener(r),r()}else E0e.current=!1}const gJt=[...XOe,yd,qA],pJt=n=>gJt.find(KOe(n));function mJt(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function bJt(n){return typeof n=="string"||Array.isArray(n)}const vJt=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function RNe(n){return mJt(n.animate)||vJt.some(r=>bJt(n[r]))}function wJt(n){return!!(RNe(n)||n.variants)}function yJt(n,r,a){for(const o in r){const u=r[o],d=a[o];if(Ad(u))n.addValue(o,u);else if(Ad(d))n.addValue(o,IO(u,{owner:n}));else if(d!==u)if(n.hasValue(o)){const h=n.getValue(o);h.liveStyle===!0?h.jump(u):h.hasAnimated||h.set(u)}else{const h=n.getStaticValue(o);n.addValue(o,IO(h!==void 0?h:u,{owner:n}))}}for(const o in a)r[o]===void 0&&n.removeValue(o);return r}function ONe(n){const r=[{},{}];return n==null||n.values.forEach((a,o)=>{r[0][o]=a.get(),r[1][o]=a.getVelocity()}),r}function FNe(n,r,a,o){if(typeof r=="function"){const[u,d]=ONe(o);r=r(a!==void 0?a:n.custom,u,d)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[u,d]=ONe(o);r=r(a!==void 0?a:n.custom,u,d)}return r}const NNe=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class PNe{scrapeMotionValuesFromProps(r,a,o){return{}}constructor({parent:r,props:a,presenceContext:o,reducedMotionConfig:u,blockInitialAnimation:d,visualState:h},b={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zue,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=T5.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Dl.render(this.render,!1,!0))};const{latestValues:v,renderState:y,onUpdate:A}=h;this.onUpdate=A,this.latestValues=v,this.baseTarget={...v},this.initialValues=a.initial?{...v}:{},this.renderState=y,this.parent=r,this.props=a,this.presenceContext=o,this.depth=r?r.depth+1:0,this.reducedMotionConfig=u,this.options=b,this.blockInitialAnimation=!!d,this.isControllingVariants=RNe(a),this.isVariantNode=wJt(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:k,...C}=this.scrapeMotionValuesFromProps(a,{},this);for(const T in C){const B=C[T];v[T]!==void 0&&Ad(B)&&B.set(v[T],!1)}}mount(r){this.current=r,jk.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),INe.current||dJt(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:E0e.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),e8(this.notifyUpdate),e8(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const a=this.features[r];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(r,a){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=cM.has(r);o&&this.onBindTransform&&this.onBindTransform();const u=a.on("change",b=>{this.latestValues[r]=b,this.props.onUpdate&&Dl.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),d=a.on("renderRequest",this.scheduleRender);let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,r,a)),this.valueSubscriptions.set(r,()=>{u(),d(),h&&h(),a.owner&&a.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in k0e){const a=k0e[r];if(!a)continue;const{isEnabled:o,Feature:u}=a;if(!this.features[r]&&u&&o(this.props)&&(this.features[r]=new u(this)),this.features[r]){const d=this.features[r];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y0()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,a){this.latestValues[r]=a}update(r,a){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;o<NNe.length;o++){const u=NNe[o];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,h=r[d];h&&(this.propEventSubscriptions[u]=this.on(u,h))}this.prevMotionValues=yJt(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(r),()=>a.variantChildren.delete(r)}addValue(r,a){const o=this.values.get(r);a!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,a),this.values.set(r,a),this.latestValues[r]=a.get())}removeValue(r){this.values.delete(r);const a=this.valueSubscriptions.get(r);a&&(a(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,a){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&a!==void 0&&(o=IO(a===null?void 0:a,{owner:this}),this.addValue(r,o)),o}readValue(r,a){var o;let u=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:(o=this.getBaseTargetFromProps(this.props,r))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,r,this.options);return u!=null&&(typeof u=="string"&&(YOe(u)||zOe(u))?u=parseFloat(u):!pJt(u)&&qA.test(a)&&(u=VOe(r,a)),this.setBaseTarget(r,Ad(u)?u.get():u)),Ad(u)?u.get():u}setBaseTarget(r,a){this.baseTarget[r]=a}getBaseTarget(r){var a;const{initial:o}=this.props;let u;if(typeof o=="string"||typeof o=="object"){const h=FNe(this.props,o,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);h&&(u=h[r])}if(o&&u!==void 0)return u;const d=this.getBaseTargetFromProps(this.props,r);return d!==void 0&&!Ad(d)?d:this.initialValues[r]!==void 0&&u===void 0?void 0:this.baseTarget[r]}on(r,a){return this.events[r]||(this.events[r]=new Vue),this.events[r].add(a)}notify(r,...a){this.events[r]&&this.events[r].notify(...a)}}class zNe extends PNe{constructor(){super(...arguments),this.KeyframeResolver=ZOe}sortInstanceNodePosition(r,a){return r.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(r,a){return r.style?r.style[a]:void 0}removeValueFromRenderState(r,{vars:a,style:o}){delete a[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Ad(r)&&(this.childSubscription=r.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}const jNe=(n,r)=>r&&typeof n=="number"?r.transform(n):n,AJt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xJt=oM.length;function kJt(n,r,a){let o="",u=!0;for(let d=0;d<xJt;d++){const h=oM[d],b=n[h];if(b===void 0)continue;let v=!0;if(typeof b=="number"?v=b===(h.startsWith("scale")?1:0):v=parseFloat(b)===0,!v||a){const y=jNe(b,Wue[h]);if(!v){u=!1;const A=AJt[h]||h;o+=`${A}(${y}) `}a&&(r[h]=y)}}return o=o.trim(),a?o=a(r,u?"":o):u&&(o="none"),o}function HNe(n,r,a){const{style:o,vars:u,transformOrigin:d}=n;let h=!1,b=!1;for(const v in r){const y=r[v];if(cM.has(v)){h=!0;continue}else if(Mue(v)){u[v]=y;continue}else{const A=jNe(y,Wue[v]);v.startsWith("origin")?(b=!0,d[v]=A):o[v]=A}}if(r.transform||(h||a?o.transform=kJt(r,n.transform,a):o.transform&&(o.transform="none")),b){const{originX:v="50%",originY:y="50%",originZ:A=0}=d;o.transformOrigin=`${v} ${y} ${A}`}}function VNe(n,{style:r,vars:a},o,u){Object.assign(n.style,r,u&&u.getProjectionStyles(o));for(const d in a)n.style.setProperty(d,a[d])}function EJt(n,{layout:r,layoutId:a}){return cM.has(n)||n.startsWith("origin")||(r||a!==void 0)&&(!!EO[n]||n==="opacity")}function UNe(n,r,a){var o;const{style:u}=n,d={};for(const h in u)(Ad(u[h])||r.style&&Ad(r.style[h])||EJt(h,n)||((o=a==null?void 0:a.getValue(h))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(d[h]=u[h]);return d}function CJt(n){return window.getComputedStyle(n)}class GNe extends zNe{constructor(){super(...arguments),this.type="html",this.renderInstance=VNe}readValueFromInstance(r,a){if(cM.has(a)){const o=Kue(a);return o&&o.default||0}else{const o=CJt(r),u=(Mue(a)?o.getPropertyValue(a):o[a])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(r,{transformPagePoint:a}){return hJt(r,a)}build(r,a,o){HNe(r,a,o.transformTemplate)}scrapeMotionValuesFromProps(r,a,o){return UNe(r,a,o)}}const TJt={offset:"stroke-dashoffset",array:"stroke-dasharray"},SJt={offset:"strokeDashoffset",array:"strokeDasharray"};function BJt(n,r,a=1,o=0,u=!0){n.pathLength=1;const d=u?TJt:SJt;n[d.offset]=Ja.transform(-o);const h=Ja.transform(r),b=Ja.transform(a);n[d.array]=`${h} ${b}`}function qNe(n,r,a){return typeof n=="string"?n:Ja.transform(r+a*n)}function MJt(n,r,a){const o=qNe(r,n.x,n.width),u=qNe(a,n.y,n.height);return`${o} ${u}`}function _Jt(n,{attrX:r,attrY:a,attrScale:o,originX:u,originY:d,pathLength:h,pathSpacing:b=1,pathOffset:v=0,...y},A,k){if(HNe(n,y,k),A){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:C,style:T,dimensions:B}=n;C.transform&&(B&&(T.transform=C.transform),delete C.transform),B&&(u!==void 0||d!==void 0||T.transform)&&(T.transformOrigin=MJt(B,u!==void 0?u:.5,d!==void 0?d:.5)),r!==void 0&&(C.x=r),a!==void 0&&(C.y=a),o!==void 0&&(C.scale=o),h!==void 0&&BJt(C,h,b,v,!1)}const QNe=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),LJt=n=>typeof n=="string"&&n.toLowerCase()==="svg";function DJt(n,r){try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}function IJt(n,r,a,o){VNe(n,r,void 0,o);for(const u in r.attrs)n.setAttribute(QNe.has(u)?u:u0e(u),r.attrs[u])}function RJt(n,r,a){const o=UNe(n,r,a);for(const u in n)if(Ad(n[u])||Ad(r[u])){const d=oM.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[d]=n[u]}return o}class $Ne extends zNe{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y0,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&DJt(this.current,this.renderState)}}getBaseTargetFromProps(r,a){return r[a]}readValueFromInstance(r,a){if(cM.has(a)){const o=Kue(a);return o&&o.default||0}return a=QNe.has(a)?a:u0e(a),r.getAttribute(a)}scrapeMotionValuesFromProps(r,a,o){return RJt(r,a,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Dl.postRender(this.updateDimensions)}build(r,a,o){_Jt(r,a,this.isSVGTag,o.transformTemplate)}renderInstance(r,a,o,u){IJt(r,a,o,u)}mount(r){this.isSVGTag=LJt(r.tagName),super.mount(r)}}function OJt(n,r){return SYt(n)?new $Ne(r):new GNe(r)}function YNe(n,r,a){return new CustomEvent(n,{detail:{target:r,isExit:a}})}function FJt(n,r=100,a){const o=a({...n,keyframes:[0,r]}),u=Math.min(e0e(o),e$);return{type:"keyframes",ease:d=>o.next(u*d).value/r,duration:r8(u)}}const NJt=(n,r,a)=>{const o=r-n;return((a-n)%o+o)%o+n};function WNe(n,r){return uFe(n)?n[NJt(0,n.length,r)]:n}function C0e(n){return typeof n=="object"&&!Array.isArray(n)}function KNe(n,r,a,o){return typeof n=="string"&&C0e(r)?w0e(n,a,o):n instanceof NodeList?Array.from(n):Array.isArray(n)?n:[n]}function PJt(n,r,a){return n*(r+1)}function XNe(n,r,a,o){var u;return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,n+parseFloat(r)):r==="<"?a:(u=o.get(r))!==null&&u!==void 0?u:n}function zJt(n,r,a){for(let o=0;o<n.length;o++){const u=n[o];u.at>r&&u.at<a&&(KQ(n,u),o--)}}function jJt(n,r,a,o,u,d){zJt(n,u,d);for(let h=0;h<r.length;h++)n.push({value:r[h],at:_h(u,d,o[h]),easing:WNe(a,h)})}function HJt(n,r){for(let a=0;a<n.length;a++)n[a]=n[a]/(r+1)}function VJt(n,r){return n.at===r.at?n.value===null?1:r.value===null?-1:0:n.at-r.at}const UJt="easeInOut";function GJt(n,{defaultTransition:r={},...a}={},o,u){const d=r.duration||.3,h=new Map,b=new Map,v={},y=new Map;let A=0,k=0,C=0;for(let T=0;T<n.length;T++){const B=n[T];if(typeof B=="string"){y.set(B,k);continue}else if(!Array.isArray(B)){y.set(B.name,XNe(k,B.at,A,y));continue}let[L,I,O={}]=B;O.at!==void 0&&(k=XNe(k,O.at,A,y));let F=0;const z=(j,G,U,q=0,Q=0)=>{const H=qJt(j),{delay:Y=0,times:P=dFe(H),type:X="keyframes",repeat:N,repeatType:ie,repeatDelay:le=0,...fe}=G;let{ease:ce=r.ease||"easeOut",duration:ue}=G;const he=typeof Y=="function"?Y(q,Q):Y,re=H.length,be=XQ(X)?X:u==null?void 0:u[X];if(re<=2&&be){let _e=100;if(re===2&&YJt(H)){const ot=H[1]-H[0];_e=Math.abs(ot)}const Le={...fe};ue!==void 0&&(Le.duration=n8(ue));const Ve=FJt(Le,_e,be);ce=Ve.ease,ue=Ve.duration}ue??(ue=d);const De=k+he;P.length===1&&P[0]===0&&(P[1]=1);const ge=P.length-H.length;if(ge>0&&fFe(P,ge),H.length===1&&H.unshift(null),N){ue=PJt(ue,N);const _e=[...H],Le=[...P];ce=Array.isArray(ce)?[...ce]:[ce];const Ve=[...ce];for(let ot=0;ot<N;ot++){H.push(..._e);for(let Se=0;Se<_e.length;Se++)P.push(Le[Se]+(ot+1)),ce.push(Se===0?"linear":WNe(Ve,Se-1))}HJt(P,N)}const Ze=De+ue;jJt(U,H,ce,P,De,Ze),F=Math.max(he+ue,F),C=Math.max(Ze,C)};if(Ad(L)){const j=JNe(L,b);z(I,O,ZNe("default",j))}else{const j=KNe(L,I,o,v),G=j.length;for(let U=0;U<G;U++){I=I,O=O;const q=j[U],Q=JNe(q,b);for(const H in I)z(I[H],QJt(O,H),ZNe(H,Q),U,G)}}A=k,k+=F}return b.forEach((T,B)=>{for(const L in T){const I=T[L];I.sort(VJt);const O=[],F=[],z=[];for(let G=0;G<I.length;G++){const{at:U,value:q,easing:Q}=I[G];O.push(q),F.push(RO(0,C,U)),z.push(Q||"easeOut")}F[0]!==0&&(F.unshift(0),O.unshift(O[0]),z.unshift(UJt)),F[F.length-1]!==1&&(F.push(1),O.push(null)),h.has(B)||h.set(B,{keyframes:{},transition:{}});const j=h.get(B);j.keyframes[L]=O,j.transition[L]={...r,duration:C,ease:z,times:F,...a}}}),h}function JNe(n,r){return!r.has(n)&&r.set(n,{}),r.get(n)}function ZNe(n,r){return r[n]||(r[n]=[]),r[n]}function qJt(n){return Array.isArray(n)?n:[n]}function QJt(n,r){return n&&n[r]?{...n,...n[r]}:{...n}}const $Jt=n=>typeof n=="number",YJt=n=>n.every($Jt);function WJt(n,r,a){const o=n.getProps();return FNe(o,r,o.custom,n)}function KJt(n,r,a){n.hasValue(r)?n.getValue(r).set(a):n.addValue(r,IO(a))}function XJt(n,r){const a=WJt(n,r);let{transitionEnd:o={},transition:u={},...d}=a||{};d={...d,...o};for(const h in d){const b=zKt(d[h]);KJt(n,h,b)}}function JJt(n){return!!(Ad(n)&&n.add)}function ZJt(n,r){const a=n.getValue("willChange");if(JJt(a))return a.add(r)}function eZt({protectedKeys:n,needsAnimating:r},a){const o=n.hasOwnProperty(a)&&r[a]!==!0;return r[a]=!1,o}function tZt(n,r,{delay:a=0,transitionOverride:o,type:u}={}){var d;let{transition:h=n.getDefaultTransition(),transitionEnd:b,...v}=r;o&&(h=o);const y=[],A=u&&n.animationState&&n.animationState.getState()[u];for(const k in v){const C=n.getValue(k,(d=n.latestValues[k])!==null&&d!==void 0?d:null),T=v[k];if(T===void 0||A&&eZt(A,k))continue;const B={delay:a,...jue(h||{},k)};let L=!1;if(window.MotionHandoffAnimation){const O=bFe(n);if(O){const F=window.MotionHandoffAnimation(O,k,Dl);F!==null&&(B.startTime=F,L=!0)}}ZJt(n,k),C.start(l0e(k,C,T,n.shouldReduceMotion&&jOe.has(k)?{type:!1}:B,n,L));const I=C.animation;I&&y.push(I)}return b&&Promise.all(y).then(()=>{Dl.update(()=>{b&&XJt(n,b)})}),y}function nZt(n,r){return n in r}class rZt extends PNe{constructor(){super(...arguments),this.type="object"}readValueFromInstance(r,a){if(nZt(a,r)){const o=r[a];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(r,a){delete a.output[r]}measureInstanceViewportBox(){return Y0()}build(r,a){Object.assign(r.output,a)}renderInstance(r,{output:a}){Object.assign(r,a)}sortInstanceNodePosition(){return 0}}function iZt(n){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},a=vFe(n)?new $Ne(r):new GNe(r);a.mount(n),jk.set(n,a)}function aZt(n){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},a=new rZt(r);a.mount(n),jk.set(n,a)}function sZt(n,r){return Ad(n)||typeof n=="number"||typeof n=="string"&&!C0e(r)}function ePe(n,r,a,o){const u=[];if(sZt(n,r))u.push(mFe(n,C0e(r)&&r.default||r,a&&(a.default||a)));else{const d=KNe(n,r,o),h=d.length;for(let b=0;b<h;b++){const v=d[b],y=v instanceof Element?iZt:aZt;jk.has(v)||y(v);const A=jk.get(v),k={...a};"delay"in k&&typeof k.delay=="function"&&(k.delay=k.delay(b,h)),u.push(...tZt(A,{...r,transition:k},{}))}}return u}function oZt(n,r,a){const o=[];return GJt(n,r,a,{spring:o0e}).forEach(({keyframes:d,transition:h},b)=>{o.push(...ePe(b,d,h))}),o}function cZt(n){return Array.isArray(n)&&n.some(Array.isArray)}function lZt(n){function r(a,o,u){let d=[];return cZt(a)?d=oZt(a,o,n):d=ePe(a,o,u,n),new TOe(d)}return r}const uZt=lZt(),hZt=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];function fZt({controlActiveState:n=void 0,controlDelay:r=0,directAnimate:a,directTransition:o,isFallback:u=!1,isExit:d=!1}={}){const h=this.target;this.target={...this.baseTarget};let b={};const v={...this.options.transition};a?b=dZt.call(this,a,o,b):b=gZt.call(this,n,v);const y=pZt.call(this,h,b,r),{getChildAnimations:A,childAnimations:k}=mZt.call(this,v,this.activeStates,u);return bZt.call(this,{factories:y,getChildAnimations:A,childAnimations:k,transition:v,controlActiveState:n,isExit:d})}function dZt(n,r){const a=CO(n,this.options.variants,this.options.custom);if(!a)return{};const o={...this.options.transition,...r||a.transition},u={};return Object.entries(a).forEach(([d,h])=>{d!=="transition"&&(this.target[d]=h,u[d]=ZRe(o,d))}),u}function gZt(n,r){n&&(this.activeStates={...this.activeStates,...n});const a={};let o={},u={};return hZt.forEach(d=>{if(!this.activeStates[d]||kOe(this.options[d]))return;const h=this.options[d];let b=MYt(h)?CO(h,this.options.variants,this.options.custom):void 0;if(this.visualElement.isVariantNode){const v=CO(this.context[d],this.options.variants,this.options.custom);b=v?Object.assign(v||{},b):u}b&&(d!=="initial"&&(o=b.transition||this.options.transition),u=Object.assign(u,b))}),Object.assign(r,o),Object.entries(u).forEach(([d,h])=>{d!=="transition"&&(this.target[d]=h,a[d]=ZRe(r,d))}),a}function pZt(n,r,a){const o=[];return Object.keys(this.target).forEach(u=>{var d;if(!AYt(n[u],this.target[u]))return;(d=this.baseTarget)[u]??(d[u]=zYt.get(this.element,u));const h=this.target[u]==="none"?PYt[u]:this.target[u],b=r[u];o.push(()=>uZt(this.element,{[u]:h},{...b,delay:((b==null?void 0:b.delay)||0)+a}))}),o}function mZt(n,r,a){var o;if(!((o=this.visualElement.variantChildren)!=null&&o.size)||!r)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:u=0,staggerDirection:d=1,delayChildren:h=0}=n||{},b=(this.visualElement.variantChildren.size-1)*u,v=d===1?(A=0)=>A*u:(A=0)=>b-A*u,y=Array.from(this.visualElement.variantChildren).map((A,k)=>{const C=h+v(k);return A.state.animateUpdates({controlActiveState:r,controlDelay:a?0:C})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(y.map(A=>A==null?void 0:A())),childAnimations:y}}function bZt({factories:n,getChildAnimations:r,childAnimations:a,transition:o,controlActiveState:u,isExit:d=!1}){const h=()=>Promise.all(n.map(k=>k()).filter(Boolean)),b={...this.target},v=this.element,y=k=>{v.dispatchEvent(YNe("motionstart",b)),k.then(()=>{v.dispatchEvent(YNe("motioncomplete",b,d))}).catch(Mg)},A=()=>{const k=o!=null&&o.when?(o.when==="beforeChildren"?h():r()).then(()=>o.when==="beforeChildren"?r():h()):Promise.all([h(),r()]);return y(k),k};return u?A:A()}function vZt(n){return typeof n=="string"||n===!1||Array.isArray(n)}const tPe=new WeakMap;let wZt=0;const T0e=new Set;class yZt{constructor(r,a){var o;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=fZt,this.id=`motion-state-${wZt++}`,this.options=r,this.parent=a,(o=a==null?void 0:a.children)==null||o.add(this),this.depth=(a==null?void 0:a.depth)+1||0;const u=this.context.initial===!1?["initial","animate"]:["initial"];this.initTarget(u),this.visualElement=OJt(this.options.as,{presenceContext:null,parent:a==null?void 0:a.visualElement,props:{...this.options,whileHover:this.options.whileHover,whileTap:this.options.whilePress,whileInView:this.options.whileInView},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.baseTarget}},reducedMotionConfig:r.motionConfig.reduceMotion}),this.featureManager=new cJt(this)}get context(){if(!this._context){const r={get:(a,o)=>{var u;return vZt(this.options[o])?this.options[o]:(u=this.parent)==null?void 0:u.context[o]}};this._context=new Proxy({},r)}return this._context}initTarget(r){this.baseTarget=r.reduce((a,o)=>({...a,...CO(this.options[o]||this.context[o],this.options.variants)}),{}),this.target={}}updateOptions(){this.visualElement.update({...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!v0e.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(r,a,o=!1){this.element=r,this.options=a,tPe.set(r,this),jk.get(r)||(this.visualElement.mount(r),jk.set(r,this.visualElement)),this.visualElement.state=this,this.updateOptions(),this.featureManager.mount(),!o&&this.options.animate&&this.startAnimation(),this.options.layoutId&&(T0e.add(this.options.layoutId),Dl.render(()=>{T0e.clear()}))}clearAnimation(){var r;this.currentProcess&&e8(this.currentProcess),this.currentProcess=null,(r=this.visualElement.variantChildren)==null||r.forEach(a=>{a.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=Dl.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(r=!1){const a=this.options.layoutId&&!T0e.has(this.options.layoutId);(()=>{r&&Array.from(this.children).reverse().forEach(this.unmountChild);const u=()=>{var d,h,b;(h=(d=this.parent)==null?void 0:d.children)==null||h.delete(this),tPe.delete(this.element),this.featureManager.unmount(),(b=this.visualElement)==null||b.unmount()};a?Promise.resolve().then(u):u()})()}unmountChild(r){r.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(r){const a=BYt(this.options,r);this.options=r,this.updateOptions(),this.featureManager.update(),a&&this.startAnimation()}setActive(r,a,o=!0){var u;!this.element||this.activeStates[r]===a||(this.activeStates[r]=a,(u=this.visualElement.variantChildren)==null||u.forEach(d=>{d.state.setActive(r,a,!1)}),o&&this.animateUpdates({isFallback:!a&&r!=="exit"&&this.visualElement.isControllingVariants,isExit:this.activeStates.exit}))}isMounted(){return!!this.element}getOptions(){return this.options}willUpdate(r){var a;(this.options.layout||this.options.layoutId)&&((a=this.visualElement.projection)==null||a.willUpdate())}}function c$(n){return(n==null?void 0:n.nodeType)===3||(n==null?void 0:n.nodeType)===8?c$(n.nextSibling):n}function AZt(n){var r;const a=((r=c$(n.$el))==null?void 0:r.style.display)==="none";return n.$.vnode.transition&&a}const xZt={reduceMotion:"never",transition:void 0,nonce:void 0},[kZt,qfr]=VQ("MotionConfig");function EZt(){return kZt(J.computed(()=>xZt))}const S0e=J.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:J.mergeDefaults({as:{},asChild:{type:Boolean},hover:{},press:{},inView:{},focus:{},whileDrag:{},whileHover:{},whilePress:{},whileInView:{},whileFocus:{},custom:{},initial:{type:[String,Array,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},layoutGroup:{},motionConfig:{},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String]},layoutId:{},layoutScroll:{type:Boolean},layoutRoot:{type:Boolean},"data-framer-portal-id":{},crossfade:{type:Boolean},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object]},dragMomentum:{type:Boolean},dragTransition:{},dragListener:{type:Boolean},dragControls:{},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0,layout:!1,layoutId:void 0,layoutScroll:!1,layoutRoot:!1,dragListener:!0,dragElastic:.5,dragMomentum:!0,whileDrag:void 0,crossfade:!0,whileHover:({hover:n})=>n,whilePress:({press:n})=>n,whileInView:({inView:n})=>n,whileFocus:({focus:n})=>n}),setup(n){const r=n,a=EXt({}),o=vYt(null),u=J.useAttrs(),d=yYt({}),h=EZt();function b(){return d.id&&r.layoutId?`${d.id}-${r.layoutId}`:r.layoutId||void 0}function v(){return{...u,...r,layoutId:b(),transition:r.transition??h.value.transition,layoutGroup:d,motionConfig:h.value,inViewOptions:r.inViewOptions??h.value.inViewOptions,initial:a.initial===!1?a.initial:r.initial===!0?void 0:r.initial}}const y=new yZt(v(),o);wYt(y);const A=J.getCurrentInstance().proxy;J.onBeforeMount(()=>{y.beforeMount()}),J.onMounted(()=>{y.mount(c$(A.$el),v(),AZt(A))}),J.onBeforeUnmount(()=>y.beforeUnmount()),J.onUnmounted(()=>{const B=c$(A.$el);B!=null&&B.isConnected||y.unmount()}),J.onBeforeUpdate(()=>{y.beforeUpdate()}),J.onUpdated(()=>{y.update(v())});function k(){const B=y.visualElement.type==="svg",L={...u};Object.keys(u).forEach(O=>{GQ(u[O])&&(L[O]=u[O].get())});let I={...r.style,...B?{}:y.visualElement.latestValues};if(B){const{attributes:O,style:F}=HYt(y.isMounted()?y.target:y.baseTarget);Object.assign(L,O),Object.assign(I,F)}return r.drag&&r.dragListener!==!1&&Object.assign(I,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`}),I=jYt({...I,...r.style}),L.style=I,L}const C=J.ref();function T(B){var L,I;r.asChild&&((L=C.value)==null||L.$forceUpdate()),(I=u.onMotioncomplete)==null||I.call(u,B)}return(B,L)=>{var I;return J.openBlock(),J.createBlock(J.unref(UYt),{ref_key:"PrimitiveRef",ref:C,"get-props":k,as:B.as,"as-child":B.asChild,"data-motion-group":((I=J.unref(d).key)==null?void 0:I.value)||void 0,onMotioncomplete:T},{default:J.withCtx(()=>[J.renderSlot(B.$slots,"default")]),_:3},8,["as","as-child","data-motion-group"])}}}),nPe=new Map,B0e=new Proxy(S0e,{get(n,r){if(typeof r=="symbol")return n[r];let a=nPe.get(r);return r==="create"?o=>J.defineComponent({inheritAttrs:!1,name:`motion.${o.$name}`,setup(u,{attrs:d,slots:h}){return()=>J.h(S0e,{...d,as:o,asChild:!1},h)}}):(a||(a=J.defineComponent({inheritAttrs:!1,name:`motion.${r}`,setup(o,{attrs:u,slots:d}){return()=>J.h(S0e,{...u,as:r,asChild:!1},d)}}),nPe.set(r,a)),a)}});function rPe(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Function]"}function fM(n,r,a,o=1){const[u,d]=typeof o=="number"?[o,o]:o,h=Math.round(r/u/n[0])*n[0],b=Math.round(a/d/n[1])*n[1];return[h,b]}function M0e(n,r,a){return n-r-a}function _0e(n,r,a){return n-r-a}function v3(n,r,a){return r!==null&&n<r?r:a!==null&&a<n?a:n}function iPe(n,r,a){let o=n;const u=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(d=>rPe(o[d]));if(!rPe(o[u]))return!1;do{if(o[u](r))return!0;if(o===a)return!1;o=o.parentNode}while(o);return!1}function CZt(n){const r=window.getComputedStyle(n);return[parseFloat(r.getPropertyValue("width"),10),parseFloat(r.getPropertyValue("height"),10)]}function Gk(n,r,a){n&&(n.attachEvent?n.attachEvent("on"+r,a):n.addEventListener?n.addEventListener(r,a,!0):n["on"+r]=a)}function i8(n,r,a){n&&(n.detachEvent?n.detachEvent("on"+r,a):n.removeEventListener?n.removeEventListener(r,a,!0):n["on"+r]=null)}const TZt=(n,r)=>{const a=n.__vccOpts||n;for(const[o,u]of r)a[o]=u;return a},l$={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},SZt={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},BZt={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"};let a8=l$.mouse;const MZt={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},h:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},minWidth:{type:Number,default:0,validator:n=>n>=0},minHeight:{type:Number,default:0,validator:n=>n>=0},maxWidth:{type:Number,default:null,validator:n=>n>=0},maxHeight:{type:Number,default:null,validator:n=>n>=0},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:n=>typeof n=="string"?n==="auto":n>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:n=>{const r=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(n.filter(a=>r.has(a))).size===n.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:n=>["x","y","both"].includes(n)},grid:{type:Array,default:()=>[1,1]},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:n=>typeof n=="number"?n>0:n.length===2&&n[0]>0&&n[1]>0},onDragStart:{type:Function,default:()=>!0},onDrag:{type:Function,default:()=>!0},onResizeStart:{type:Function,default:()=>!0},onResize:{type:Function,default:()=>!0}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxHeight&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1);const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r;const[a,o]=CZt(this.$el);this.aspectFactor=(this.w!=="auto"?this.w:a)/(this.h!=="auto"?this.h:o),this.width=this.w!=="auto"?this.w:a,this.height=this.h!=="auto"?this.h:o,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),Gk(document.documentElement,"mousedown",this.deselect),Gk(document.documentElement,"touchend touchcancel",this.deselect),Gk(window,"resize",this.checkParentSize)},beforeUnmount:function(){i8(document.documentElement,"mousedown",this.deselect),i8(document.documentElement,"touchstart",this.handleUp),i8(document.documentElement,"mousemove",this.move),i8(document.documentElement,"touchmove",this.move),i8(document.documentElement,"mouseup",this.handleUp),i8(document.documentElement,"touchend touchcancel",this.deselect),i8(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize(){if(this.parent){const n=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(n.getPropertyValue("width"),10),parseInt(n.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown(n){a8=l$.touch,this.elementDown(n)},elementMouseDown(n){a8=l$.mouse,this.elementDown(n)},elementDown(n){if(n instanceof MouseEvent&&n.button!==0)return;const r=n.target||n.srcElement;if(this.$el.contains(r)){if(this.onDragStart(n)===!1)return;if(this.dragHandle&&!iPe(r,this.dragHandle,this.$el)||this.dragCancel&&iPe(r,this.dragCancel,this.$el)){this.dragging=!1;return}this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=n.touches?n.touches[0].pageX:n.pageX,this.mouseClickPosition.mouseY=n.touches?n.touches[0].pageY:n.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),Gk(document.documentElement,a8.move,this.move),Gk(document.documentElement,a8.stop,this.handleUp)}},calcDragLimits(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(n){const r=n.target||n.srcElement,a=new RegExp(this.className+"-([trmbl]{2})","");!this.$el.contains(r)&&!a.test(r.className)&&(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),i8(document.documentElement,a8.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown(n,r){a8=l$.touch,this.handleDown(n,r)},handleDown(n,r){r instanceof MouseEvent&&r.which!==1||this.onResizeStart(n,r)!==!1&&(r.stopPropagation&&r.stopPropagation(),this.lockAspectRatio&&!n.includes("m")?this.handle="m"+n.substring(1):this.handle=n,this.resizeEnable=!0,this.mouseClickPosition.mouseX=r.touches?r.touches[0].pageX:r.pageX,this.mouseClickPosition.mouseY=r.touches?r.touches[0].pageY:r.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),Gk(document.documentElement,a8.move,this.handleResize),Gk(document.documentElement,a8.stop,this.handleUp))},calcResizeLimits(){let n=this.minW,r=this.minH,a=this.maxW,o=this.maxH;const u=this.aspectFactor,[d,h]=this.grid,b=this.width,v=this.height,y=this.left,A=this.top,k=this.right,C=this.bottom;this.lockAspectRatio&&(n/r>u?r=n/u:n=u*r,a&&o?(a=Math.min(a,u*o),o=Math.min(o,a/u)):a?o=a/u:o&&(a=u*o)),a=a-a%d,o=o-o%h;const T={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(T.minLeft=y%d,T.maxLeft=y+Math.floor((b-n)/d)*d,T.minTop=A%h,T.maxTop=A+Math.floor((v-r)/h)*h,T.minRight=k%d,T.maxRight=k+Math.floor((b-n)/d)*d,T.minBottom=C%h,T.maxBottom=C+Math.floor((v-r)/h)*h,a&&(T.minLeft=Math.max(T.minLeft,this.parentWidth-k-a),T.minRight=Math.max(T.minRight,this.parentWidth-y-a)),o&&(T.minTop=Math.max(T.minTop,this.parentHeight-C-o),T.minBottom=Math.max(T.minBottom,this.parentHeight-A-o)),this.lockAspectRatio&&(T.minLeft=Math.max(T.minLeft,y-A*u),T.minTop=Math.max(T.minTop,A-y/u),T.minRight=Math.max(T.minRight,k-C*u),T.minBottom=Math.max(T.minBottom,C-k/u))):(T.minLeft=null,T.maxLeft=y+Math.floor((b-n)/d)*d,T.minTop=null,T.maxTop=A+Math.floor((v-r)/h)*h,T.minRight=null,T.maxRight=k+Math.floor((b-n)/d)*d,T.minBottom=null,T.maxBottom=C+Math.floor((v-r)/h)*h,a&&(T.minLeft=-(k+a),T.minRight=-(y+a)),o&&(T.minTop=-(C+o),T.minBottom=-(A+o)),this.lockAspectRatio&&a&&o&&(T.minLeft=Math.min(T.minLeft,-(k+a)),T.minTop=Math.min(T.minTop,-(o+C)),T.minRight=Math.min(T.minRight,-y-a),T.minBottom=Math.min(T.minBottom,-A-o))),T},move(n){this.resizing?this.handleResize(n):this.dragEnable&&this.handleDrag(n)},handleDrag(n){const r=this.axis,a=this.grid,o=this.bounds,u=this.mouseClickPosition,d=r&&r!=="y"?u.mouseX-(n.touches?n.touches[0].pageX:n.pageX):0,h=r&&r!=="x"?u.mouseY-(n.touches?n.touches[0].pageY:n.pageY):0,[b,v]=fM(a,d,h,this.scale),y=v3(u.left-b,o.minLeft,o.maxLeft),A=v3(u.top-v,o.minTop,o.maxTop);if(this.onDrag(y,A)===!1)return;const k=v3(u.right+b,o.minRight,o.maxRight),C=v3(u.bottom+v,o.minBottom,o.maxBottom);this.left=y,this.top=A,this.right=k,this.bottom=C,this.$emit("dragging",this.left,this.top),this.dragging=!0},moveHorizontally(n){const[r,a]=fM(this.grid,n,this.top,1),o=v3(r,this.bounds.minLeft,this.bounds.maxLeft);this.left=o,this.right=this.parentWidth-this.width-o},moveVertically(n){const[r,a]=fM(this.grid,this.left,n,1),o=v3(a,this.bounds.minTop,this.bounds.maxTop);this.top=o,this.bottom=this.parentHeight-this.height-o},handleResize(n){let r=this.left,a=this.top,o=this.right,u=this.bottom;const d=this.mouseClickPosition,h=this.aspectFactor,b=d.mouseX-(n.touches?n.touches[0].pageX:n.pageX),v=d.mouseY-(n.touches?n.touches[0].pageY:n.pageY);!this.widthTouched&&b&&(this.widthTouched=!0),!this.heightTouched&&v&&(this.heightTouched=!0);const[y,A]=fM(this.grid,b,v,this.scale);this.handle.includes("b")?(u=v3(d.bottom+A,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(o=this.right-(this.bottom-u)*h)):this.handle.includes("t")&&(a=v3(d.top-A,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(r=this.left-(this.top-a)*h)),this.handle.includes("r")?(o=v3(d.right+y,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(u=this.bottom-(this.right-o)/h)):this.handle.includes("l")&&(r=v3(d.left-y,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(a=this.top-(this.left-r)/h));const k=M0e(this.parentWidth,r,o),C=_0e(this.parentHeight,a,u);this.onResize(this.handle,r,a,k,C)!==!1&&(this.left=r,this.top=a,this.right=o,this.bottom=u,this.width=k,this.height=C,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth(n){const[r,a]=fM(this.grid,n,0,1),o=v3(this.parentWidth-r-this.left,this.bounds.minRight,this.bounds.maxRight);let u=this.bottom;this.lockAspectRatio&&(u=this.bottom-(this.right-o)/this.aspectFactor);const d=M0e(this.parentWidth,this.left,o),h=_0e(this.parentHeight,this.top,u);this.right=o,this.bottom=u,this.width=d,this.height=h},changeHeight(n){const[r,a]=fM(this.grid,0,n,1),o=v3(this.parentHeight-a-this.top,this.bounds.minBottom,this.bounds.maxBottom);let u=this.right;this.lockAspectRatio&&(u=this.right-(this.bottom-o)*this.aspectFactor);const d=M0e(this.parentWidth,this.left,u),h=_0e(this.parentHeight,this.top,o);this.right=u,this.bottom=o,this.width=d,this.height=h},handleUp(n){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizeStop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragStop",this.left,this.top)),i8(document.documentElement,a8.move,this.handleResize)}},computed:{style(){return{transform:`translate(${this.left}px, ${this.top}px)`,width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?SZt:BZt}},actualHandles(){return this.resizable?this.handles:[]},computedWidth(){return this.w==="auto"&&!this.widthTouched?"auto":this.width+"px"},computedHeight(){return this.h==="auto"&&!this.heightTouched?"auto":this.height+"px"},minW(){return this.minWidth},minH(){return this.minHeight},maxW(){return this.maxWidth},maxH(){return this.maxHeight},resizingOnX(){return!!this.handle&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return!!this.handle&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return!!this.handle&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(n){this.enabled=n,n?this.$emit("activated"):this.$emit("deactivated")},z(n){(n>=0||n==="auto")&&(this.zIndex=n)},x(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(n))},y(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(n))},lockAspectRatio(n){n?this.aspectFactor=this.width/this.height:this.aspectFactor=void 0},w(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(n))},h(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(n))}}},_Zt=["onMousedown","onTouchstart"];function LZt(n,r,a,o,u,d){return J.openBlock(),J.createElementBlock("div",{style:J.normalizeStyle(d.style),class:J.normalizeClass([{[a.classNameActive]:n.enabled,[a.classNameDragging]:n.dragging,[a.classNameResizing]:n.resizing,[a.classNameDraggable]:a.draggable,[a.classNameResizable]:a.resizable},a.className]),onMousedown:r[0]||(r[0]=(...h)=>d.elementMouseDown&&d.elementMouseDown(...h)),onTouchstart:r[1]||(r[1]=(...h)=>d.elementTouchDown&&d.elementTouchDown(...h))},[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(d.actualHandles,h=>(J.openBlock(),J.createElementBlock("div",{key:h,class:J.normalizeClass([a.classNameHandle,a.classNameHandle+"-"+h]),style:J.normalizeStyle({display:n.enabled?"block":"none"}),onMousedown:J.withModifiers(b=>d.handleDown(h,b),["stop","prevent"]),onTouchstart:J.withModifiers(b=>d.handleTouchDown(h,b),["stop","prevent"])},[J.renderSlot(n.$slots,h)],46,_Zt))),128)),J.renderSlot(n.$slots,"default")],38)}const L0e=TZt(MZt,[["render",LZt]]);function D0e(n){D0e.installed||(D0e.installed=!0,n.component("VueDraggableResizable",L0e))}const DZt={install:D0e};let u$=null;typeof window<"u"?u$=window.Vue:typeof global<"u"&&(u$=global.Vue),u$&&u$.use(DZt);const I0e="data:image/png;base64,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";var _g="top",w3="bottom",y3="right",Lg="left",R0e="auto",HO=[_g,w3,y3,Lg],dM="start",VO="end",IZt="clippingParents",aPe="viewport",UO="popper",RZt="reference",sPe=HO.reduce(function(n,r){return n.concat([r+"-"+dM,r+"-"+VO])},[]),oPe=[].concat(HO,[R0e]).reduce(function(n,r){return n.concat([r,r+"-"+dM,r+"-"+VO])},[]),OZt="beforeRead",FZt="read",NZt="afterRead",PZt="beforeMain",zZt="main",jZt="afterMain",HZt="beforeWrite",VZt="write",UZt="afterWrite",GZt=[OZt,FZt,NZt,PZt,zZt,jZt,HZt,VZt,UZt];function B5(n){return n?(n.nodeName||"").toLowerCase():null}function Yp(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function qk(n){var r=Yp(n).Element;return n instanceof r||n instanceof Element}function A3(n){var r=Yp(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function O0e(n){if(typeof ShadowRoot>"u")return!1;var r=Yp(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}function qZt(n){var r=n.state;Object.keys(r.elements).forEach(function(a){var o=r.styles[a]||{},u=r.attributes[a]||{},d=r.elements[a];!A3(d)||!B5(d)||(Object.assign(d.style,o),Object.keys(u).forEach(function(h){var b=u[h];b===!1?d.removeAttribute(h):d.setAttribute(h,b===!0?"":b)}))})}function QZt(n){var r=n.state,a={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,a.popper),r.styles=a,r.elements.arrow&&Object.assign(r.elements.arrow.style,a.arrow),function(){Object.keys(r.elements).forEach(function(o){var u=r.elements[o],d=r.attributes[o]||{},h=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:a[o]),b=h.reduce(function(v,y){return v[y]="",v},{});!A3(u)||!B5(u)||(Object.assign(u.style,b),Object.keys(d).forEach(function(v){u.removeAttribute(v)}))})}}const cPe={name:"applyStyles",enabled:!0,phase:"write",fn:qZt,effect:QZt,requires:["computeStyles"]};function M5(n){return n.split("-")[0]}var Qk=Math.max,h$=Math.min,gM=Math.round;function F0e(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function lPe(){return!/^((?!chrome|android).)*safari/i.test(F0e())}function pM(n,r,a){r===void 0&&(r=!1),a===void 0&&(a=!1);var o=n.getBoundingClientRect(),u=1,d=1;r&&A3(n)&&(u=n.offsetWidth>0&&gM(o.width)/n.offsetWidth||1,d=n.offsetHeight>0&&gM(o.height)/n.offsetHeight||1);var h=qk(n)?Yp(n):window,b=h.visualViewport,v=!lPe()&&a,y=(o.left+(v&&b?b.offsetLeft:0))/u,A=(o.top+(v&&b?b.offsetTop:0))/d,k=o.width/u,C=o.height/d;return{width:k,height:C,top:A,right:y+k,bottom:A+C,left:y,x:y,y:A}}function N0e(n){var r=pM(n),a=n.offsetWidth,o=n.offsetHeight;return Math.abs(r.width-a)<=1&&(a=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:n.offsetLeft,y:n.offsetTop,width:a,height:o}}function uPe(n,r){var a=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(a&&O0e(a)){var o=r;do{if(o&&n.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function s8(n){return Yp(n).getComputedStyle(n)}function $Zt(n){return["table","td","th"].indexOf(B5(n))>=0}function QA(n){return((qk(n)?n.ownerDocument:n.document)||window.document).documentElement}function f$(n){return B5(n)==="html"?n:n.assignedSlot||n.parentNode||(O0e(n)?n.host:null)||QA(n)}function hPe(n){return!A3(n)||s8(n).position==="fixed"?null:n.offsetParent}function YZt(n){var r=/firefox/i.test(F0e()),a=/Trident/i.test(F0e());if(a&&A3(n)){var o=s8(n);if(o.position==="fixed")return null}var u=f$(n);for(O0e(u)&&(u=u.host);A3(u)&&["html","body"].indexOf(B5(u))<0;){var d=s8(u);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||r&&d.willChange==="filter"||r&&d.filter&&d.filter!=="none")return u;u=u.parentNode}return null}function GO(n){for(var r=Yp(n),a=hPe(n);a&&$Zt(a)&&s8(a).position==="static";)a=hPe(a);return a&&(B5(a)==="html"||B5(a)==="body"&&s8(a).position==="static")?r:a||YZt(n)||r}function P0e(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function qO(n,r,a){return Qk(n,h$(r,a))}function WZt(n,r,a){var o=qO(n,r,a);return o>a?a:o}function fPe(){return{top:0,right:0,bottom:0,left:0}}function dPe(n){return Object.assign({},fPe(),n)}function gPe(n,r){return r.reduce(function(a,o){return a[o]=n,a},{})}var KZt=function(r,a){return r=typeof r=="function"?r(Object.assign({},a.rects,{placement:a.placement})):r,dPe(typeof r!="number"?r:gPe(r,HO))};function XZt(n){var r,a=n.state,o=n.name,u=n.options,d=a.elements.arrow,h=a.modifiersData.popperOffsets,b=M5(a.placement),v=P0e(b),y=[Lg,y3].indexOf(b)>=0,A=y?"height":"width";if(!(!d||!h)){var k=KZt(u.padding,a),C=N0e(d),T=v==="y"?_g:Lg,B=v==="y"?w3:y3,L=a.rects.reference[A]+a.rects.reference[v]-h[v]-a.rects.popper[A],I=h[v]-a.rects.reference[v],O=GO(d),F=O?v==="y"?O.clientHeight||0:O.clientWidth||0:0,z=L/2-I/2,j=k[T],G=F-C[A]-k[B],U=F/2-C[A]/2+z,q=qO(j,U,G),Q=v;a.modifiersData[o]=(r={},r[Q]=q,r.centerOffset=q-U,r)}}function JZt(n){var r=n.state,a=n.options,o=a.element,u=o===void 0?"[data-popper-arrow]":o;u!=null&&(typeof u=="string"&&(u=r.elements.popper.querySelector(u),!u)||uPe(r.elements.popper,u)&&(r.elements.arrow=u))}const ZZt={name:"arrow",enabled:!0,phase:"main",fn:XZt,effect:JZt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mM(n){return n.split("-")[1]}var een={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ten(n,r){var a=n.x,o=n.y,u=r.devicePixelRatio||1;return{x:gM(a*u)/u||0,y:gM(o*u)/u||0}}function pPe(n){var r,a=n.popper,o=n.popperRect,u=n.placement,d=n.variation,h=n.offsets,b=n.position,v=n.gpuAcceleration,y=n.adaptive,A=n.roundOffsets,k=n.isFixed,C=h.x,T=C===void 0?0:C,B=h.y,L=B===void 0?0:B,I=typeof A=="function"?A({x:T,y:L}):{x:T,y:L};T=I.x,L=I.y;var O=h.hasOwnProperty("x"),F=h.hasOwnProperty("y"),z=Lg,j=_g,G=window;if(y){var U=GO(a),q="clientHeight",Q="clientWidth";if(U===Yp(a)&&(U=QA(a),s8(U).position!=="static"&&b==="absolute"&&(q="scrollHeight",Q="scrollWidth")),U=U,u===_g||(u===Lg||u===y3)&&d===VO){j=w3;var H=k&&U===G&&G.visualViewport?G.visualViewport.height:U[q];L-=H-o.height,L*=v?1:-1}if(u===Lg||(u===_g||u===w3)&&d===VO){z=y3;var Y=k&&U===G&&G.visualViewport?G.visualViewport.width:U[Q];T-=Y-o.width,T*=v?1:-1}}var P=Object.assign({position:b},y&&een),X=A===!0?ten({x:T,y:L},Yp(a)):{x:T,y:L};if(T=X.x,L=X.y,v){var N;return Object.assign({},P,(N={},N[j]=F?"0":"",N[z]=O?"0":"",N.transform=(G.devicePixelRatio||1)<=1?"translate("+T+"px, "+L+"px)":"translate3d("+T+"px, "+L+"px, 0)",N))}return Object.assign({},P,(r={},r[j]=F?L+"px":"",r[z]=O?T+"px":"",r.transform="",r))}function nen(n){var r=n.state,a=n.options,o=a.gpuAcceleration,u=o===void 0?!0:o,d=a.adaptive,h=d===void 0?!0:d,b=a.roundOffsets,v=b===void 0?!0:b,y={placement:M5(r.placement),variation:mM(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:u,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,pPe(Object.assign({},y,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:h,roundOffsets:v})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,pPe(Object.assign({},y,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:v})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const ren={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nen,data:{}};var d$={passive:!0};function ien(n){var r=n.state,a=n.instance,o=n.options,u=o.scroll,d=u===void 0?!0:u,h=o.resize,b=h===void 0?!0:h,v=Yp(r.elements.popper),y=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&y.forEach(function(A){A.addEventListener("scroll",a.update,d$)}),b&&v.addEventListener("resize",a.update,d$),function(){d&&y.forEach(function(A){A.removeEventListener("scroll",a.update,d$)}),b&&v.removeEventListener("resize",a.update,d$)}}const aen={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ien,data:{}};var sen={left:"right",right:"left",bottom:"top",top:"bottom"};function g$(n){return n.replace(/left|right|bottom|top/g,function(r){return sen[r]})}var oen={start:"end",end:"start"};function mPe(n){return n.replace(/start|end/g,function(r){return oen[r]})}function z0e(n){var r=Yp(n),a=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:a,scrollTop:o}}function j0e(n){return pM(QA(n)).left+z0e(n).scrollLeft}function cen(n,r){var a=Yp(n),o=QA(n),u=a.visualViewport,d=o.clientWidth,h=o.clientHeight,b=0,v=0;if(u){d=u.width,h=u.height;var y=lPe();(y||!y&&r==="fixed")&&(b=u.offsetLeft,v=u.offsetTop)}return{width:d,height:h,x:b+j0e(n),y:v}}function len(n){var r,a=QA(n),o=z0e(n),u=(r=n.ownerDocument)==null?void 0:r.body,d=Qk(a.scrollWidth,a.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),h=Qk(a.scrollHeight,a.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),b=-o.scrollLeft+j0e(n),v=-o.scrollTop;return s8(u||a).direction==="rtl"&&(b+=Qk(a.clientWidth,u?u.clientWidth:0)-d),{width:d,height:h,x:b,y:v}}function H0e(n){var r=s8(n),a=r.overflow,o=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(a+u+o)}function bPe(n){return["html","body","#document"].indexOf(B5(n))>=0?n.ownerDocument.body:A3(n)&&H0e(n)?n:bPe(f$(n))}function QO(n,r){var a;r===void 0&&(r=[]);var o=bPe(n),u=o===((a=n.ownerDocument)==null?void 0:a.body),d=Yp(o),h=u?[d].concat(d.visualViewport||[],H0e(o)?o:[]):o,b=r.concat(h);return u?b:b.concat(QO(f$(h)))}function V0e(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function uen(n,r){var a=pM(n,!1,r==="fixed");return a.top=a.top+n.clientTop,a.left=a.left+n.clientLeft,a.bottom=a.top+n.clientHeight,a.right=a.left+n.clientWidth,a.width=n.clientWidth,a.height=n.clientHeight,a.x=a.left,a.y=a.top,a}function vPe(n,r,a){return r===aPe?V0e(cen(n,a)):qk(r)?uen(r,a):V0e(len(QA(n)))}function hen(n){var r=QO(f$(n)),a=["absolute","fixed"].indexOf(s8(n).position)>=0,o=a&&A3(n)?GO(n):n;return qk(o)?r.filter(function(u){return qk(u)&&uPe(u,o)&&B5(u)!=="body"}):[]}function fen(n,r,a,o){var u=r==="clippingParents"?hen(n):[].concat(r),d=[].concat(u,[a]),h=d[0],b=d.reduce(function(v,y){var A=vPe(n,y,o);return v.top=Qk(A.top,v.top),v.right=h$(A.right,v.right),v.bottom=h$(A.bottom,v.bottom),v.left=Qk(A.left,v.left),v},vPe(n,h,o));return b.width=b.right-b.left,b.height=b.bottom-b.top,b.x=b.left,b.y=b.top,b}function wPe(n){var r=n.reference,a=n.element,o=n.placement,u=o?M5(o):null,d=o?mM(o):null,h=r.x+r.width/2-a.width/2,b=r.y+r.height/2-a.height/2,v;switch(u){case _g:v={x:h,y:r.y-a.height};break;case w3:v={x:h,y:r.y+r.height};break;case y3:v={x:r.x+r.width,y:b};break;case Lg:v={x:r.x-a.width,y:b};break;default:v={x:r.x,y:r.y}}var y=u?P0e(u):null;if(y!=null){var A=y==="y"?"height":"width";switch(d){case dM:v[y]=v[y]-(r[A]/2-a[A]/2);break;case VO:v[y]=v[y]+(r[A]/2-a[A]/2);break}}return v}function $O(n,r){r===void 0&&(r={});var a=r,o=a.placement,u=o===void 0?n.placement:o,d=a.strategy,h=d===void 0?n.strategy:d,b=a.boundary,v=b===void 0?IZt:b,y=a.rootBoundary,A=y===void 0?aPe:y,k=a.elementContext,C=k===void 0?UO:k,T=a.altBoundary,B=T===void 0?!1:T,L=a.padding,I=L===void 0?0:L,O=dPe(typeof I!="number"?I:gPe(I,HO)),F=C===UO?RZt:UO,z=n.rects.popper,j=n.elements[B?F:C],G=fen(qk(j)?j:j.contextElement||QA(n.elements.popper),v,A,h),U=pM(n.elements.reference),q=wPe({reference:U,element:z,placement:u}),Q=V0e(Object.assign({},z,q)),H=C===UO?Q:U,Y={top:G.top-H.top+O.top,bottom:H.bottom-G.bottom+O.bottom,left:G.left-H.left+O.left,right:H.right-G.right+O.right},P=n.modifiersData.offset;if(C===UO&&P){var X=P[u];Object.keys(Y).forEach(function(N){var ie=[y3,w3].indexOf(N)>=0?1:-1,le=[_g,w3].indexOf(N)>=0?"y":"x";Y[N]+=X[le]*ie})}return Y}function den(n,r){r===void 0&&(r={});var a=r,o=a.placement,u=a.boundary,d=a.rootBoundary,h=a.padding,b=a.flipVariations,v=a.allowedAutoPlacements,y=v===void 0?oPe:v,A=mM(o),k=A?b?sPe:sPe.filter(function(B){return mM(B)===A}):HO,C=k.filter(function(B){return y.indexOf(B)>=0});C.length===0&&(C=k);var T=C.reduce(function(B,L){return B[L]=$O(n,{placement:L,boundary:u,rootBoundary:d,padding:h})[M5(L)],B},{});return Object.keys(T).sort(function(B,L){return T[B]-T[L]})}function gen(n){if(M5(n)===R0e)return[];var r=g$(n);return[mPe(n),r,mPe(r)]}function pen(n){var r=n.state,a=n.options,o=n.name;if(!r.modifiersData[o]._skip){for(var u=a.mainAxis,d=u===void 0?!0:u,h=a.altAxis,b=h===void 0?!0:h,v=a.fallbackPlacements,y=a.padding,A=a.boundary,k=a.rootBoundary,C=a.altBoundary,T=a.flipVariations,B=T===void 0?!0:T,L=a.allowedAutoPlacements,I=r.options.placement,O=M5(I),F=O===I,z=v||(F||!B?[g$(I)]:gen(I)),j=[I].concat(z).reduce(function(Ze,_e){return Ze.concat(M5(_e)===R0e?den(r,{placement:_e,boundary:A,rootBoundary:k,padding:y,flipVariations:B,allowedAutoPlacements:L}):_e)},[]),G=r.rects.reference,U=r.rects.popper,q=new Map,Q=!0,H=j[0],Y=0;Y<j.length;Y++){var P=j[Y],X=M5(P),N=mM(P)===dM,ie=[_g,w3].indexOf(X)>=0,le=ie?"width":"height",fe=$O(r,{placement:P,boundary:A,rootBoundary:k,altBoundary:C,padding:y}),ce=ie?N?y3:Lg:N?w3:_g;G[le]>U[le]&&(ce=g$(ce));var ue=g$(ce),he=[];if(d&&he.push(fe[X]<=0),b&&he.push(fe[ce]<=0,fe[ue]<=0),he.every(function(Ze){return Ze})){H=P,Q=!1;break}q.set(P,he)}if(Q)for(var re=B?3:1,be=function(_e){var Le=j.find(function(Ve){var ot=q.get(Ve);if(ot)return ot.slice(0,_e).every(function(Se){return Se})});if(Le)return H=Le,"break"},De=re;De>0;De--){var ge=be(De);if(ge==="break")break}r.placement!==H&&(r.modifiersData[o]._skip=!0,r.placement=H,r.reset=!0)}}const men={name:"flip",enabled:!0,phase:"main",fn:pen,requiresIfExists:["offset"],data:{_skip:!1}};function yPe(n,r,a){return a===void 0&&(a={x:0,y:0}),{top:n.top-r.height-a.y,right:n.right-r.width+a.x,bottom:n.bottom-r.height+a.y,left:n.left-r.width-a.x}}function APe(n){return[_g,y3,w3,Lg].some(function(r){return n[r]>=0})}function ben(n){var r=n.state,a=n.name,o=r.rects.reference,u=r.rects.popper,d=r.modifiersData.preventOverflow,h=$O(r,{elementContext:"reference"}),b=$O(r,{altBoundary:!0}),v=yPe(h,o),y=yPe(b,u,d),A=APe(v),k=APe(y);r.modifiersData[a]={referenceClippingOffsets:v,popperEscapeOffsets:y,isReferenceHidden:A,hasPopperEscaped:k},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":A,"data-popper-escaped":k})}const ven={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ben};function wen(n,r,a){var o=M5(n),u=[Lg,_g].indexOf(o)>=0?-1:1,d=typeof a=="function"?a(Object.assign({},r,{placement:n})):a,h=d[0],b=d[1];return h=h||0,b=(b||0)*u,[Lg,y3].indexOf(o)>=0?{x:b,y:h}:{x:h,y:b}}function yen(n){var r=n.state,a=n.options,o=n.name,u=a.offset,d=u===void 0?[0,0]:u,h=oPe.reduce(function(A,k){return A[k]=wen(k,r.rects,d),A},{}),b=h[r.placement],v=b.x,y=b.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=v,r.modifiersData.popperOffsets.y+=y),r.modifiersData[o]=h}const Aen={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yen};function xen(n){var r=n.state,a=n.name;r.modifiersData[a]=wPe({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const ken={name:"popperOffsets",enabled:!0,phase:"read",fn:xen,data:{}};function Een(n){return n==="x"?"y":"x"}function Cen(n){var r=n.state,a=n.options,o=n.name,u=a.mainAxis,d=u===void 0?!0:u,h=a.altAxis,b=h===void 0?!1:h,v=a.boundary,y=a.rootBoundary,A=a.altBoundary,k=a.padding,C=a.tether,T=C===void 0?!0:C,B=a.tetherOffset,L=B===void 0?0:B,I=$O(r,{boundary:v,rootBoundary:y,padding:k,altBoundary:A}),O=M5(r.placement),F=mM(r.placement),z=!F,j=P0e(O),G=Een(j),U=r.modifiersData.popperOffsets,q=r.rects.reference,Q=r.rects.popper,H=typeof L=="function"?L(Object.assign({},r.rects,{placement:r.placement})):L,Y=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),P=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,X={x:0,y:0};if(U){if(d){var N,ie=j==="y"?_g:Lg,le=j==="y"?w3:y3,fe=j==="y"?"height":"width",ce=U[j],ue=ce+I[ie],he=ce-I[le],re=T?-Q[fe]/2:0,be=F===dM?q[fe]:Q[fe],De=F===dM?-Q[fe]:-q[fe],ge=r.elements.arrow,Ze=T&&ge?N0e(ge):{width:0,height:0},_e=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:fPe(),Le=_e[ie],Ve=_e[le],ot=qO(0,q[fe],Ze[fe]),Se=z?q[fe]/2-re-ot-Le-Y.mainAxis:be-ot-Le-Y.mainAxis,Be=z?-q[fe]/2+re+ot+Ve+Y.mainAxis:De+ot+Ve+Y.mainAxis,we=r.elements.arrow&&GO(r.elements.arrow),ke=we?j==="y"?we.clientTop||0:we.clientLeft||0:0,Te=(N=P==null?void 0:P[j])!=null?N:0,vt=ce+Se-Te-ke,Pe=ce+Be-Te,Dn=qO(T?h$(ue,vt):ue,ce,T?Qk(he,Pe):he);U[j]=Dn,X[j]=Dn-ce}if(b){var st,wn=j==="x"?_g:Lg,fn=j==="x"?w3:y3,Wn=U[G],ft=G==="y"?"height":"width",on=Wn+I[wn],Bt=Wn-I[fn],ut=[_g,Lg].indexOf(O)!==-1,dt=(st=P==null?void 0:P[G])!=null?st:0,jt=ut?on:Wn-q[ft]-Q[ft]-dt+Y.altAxis,et=ut?Wn+q[ft]+Q[ft]-dt-Y.altAxis:Bt,je=T&&ut?WZt(jt,Wn,et):qO(T?jt:on,Wn,T?et:Bt);U[G]=je,X[G]=je-Wn}r.modifiersData[o]=X}}const Ten={name:"preventOverflow",enabled:!0,phase:"main",fn:Cen,requiresIfExists:["offset"]};function Sen(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Ben(n){return n===Yp(n)||!A3(n)?z0e(n):Sen(n)}function Men(n){var r=n.getBoundingClientRect(),a=gM(r.width)/n.offsetWidth||1,o=gM(r.height)/n.offsetHeight||1;return a!==1||o!==1}function _en(n,r,a){a===void 0&&(a=!1);var o=A3(r),u=A3(r)&&Men(r),d=QA(r),h=pM(n,u,a),b={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(o||!o&&!a)&&((B5(r)!=="body"||H0e(d))&&(b=Ben(r)),A3(r)?(v=pM(r,!0),v.x+=r.clientLeft,v.y+=r.clientTop):d&&(v.x=j0e(d))),{x:h.left+b.scrollLeft-v.x,y:h.top+b.scrollTop-v.y,width:h.width,height:h.height}}function Len(n){var r=new Map,a=new Set,o=[];n.forEach(function(d){r.set(d.name,d)});function u(d){a.add(d.name);var h=[].concat(d.requires||[],d.requiresIfExists||[]);h.forEach(function(b){if(!a.has(b)){var v=r.get(b);v&&u(v)}}),o.push(d)}return n.forEach(function(d){a.has(d.name)||u(d)}),o}function Den(n){var r=Len(n);return GZt.reduce(function(a,o){return a.concat(r.filter(function(u){return u.phase===o}))},[])}function Ien(n){var r;return function(){return r||(r=new Promise(function(a){Promise.resolve().then(function(){r=void 0,a(n())})})),r}}function Ren(n){var r=n.reduce(function(a,o){var u=a[o.name];return a[o.name]=u?Object.assign({},u,o,{options:Object.assign({},u.options,o.options),data:Object.assign({},u.data,o.data)}):o,a},{});return Object.keys(r).map(function(a){return r[a]})}var xPe={placement:"bottom",modifiers:[],strategy:"absolute"};function kPe(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Oen(n){n===void 0&&(n={});var r=n,a=r.defaultModifiers,o=a===void 0?[]:a,u=r.defaultOptions,d=u===void 0?xPe:u;return function(b,v,y){y===void 0&&(y=d);var A={placement:"bottom",orderedModifiers:[],options:Object.assign({},xPe,d),modifiersData:{},elements:{reference:b,popper:v},attributes:{},styles:{}},k=[],C=!1,T={state:A,setOptions:function(O){var F=typeof O=="function"?O(A.options):O;L(),A.options=Object.assign({},d,A.options,F),A.scrollParents={reference:qk(b)?QO(b):b.contextElement?QO(b.contextElement):[],popper:QO(v)};var z=Den(Ren([].concat(o,A.options.modifiers)));return A.orderedModifiers=z.filter(function(j){return j.enabled}),B(),T.update()},forceUpdate:function(){if(!C){var O=A.elements,F=O.reference,z=O.popper;if(kPe(F,z)){A.rects={reference:_en(F,GO(z),A.options.strategy==="fixed"),popper:N0e(z)},A.reset=!1,A.placement=A.options.placement,A.orderedModifiers.forEach(function(Y){return A.modifiersData[Y.name]=Object.assign({},Y.data)});for(var j=0;j<A.orderedModifiers.length;j++){if(A.reset===!0){A.reset=!1,j=-1;continue}var G=A.orderedModifiers[j],U=G.fn,q=G.options,Q=q===void 0?{}:q,H=G.name;typeof U=="function"&&(A=U({state:A,options:Q,name:H,instance:T})||A)}}}},update:Ien(function(){return new Promise(function(I){T.forceUpdate(),I(A)})}),destroy:function(){L(),C=!0}};if(!kPe(b,v))return T;T.setOptions(y).then(function(I){!C&&y.onFirstUpdate&&y.onFirstUpdate(I)});function B(){A.orderedModifiers.forEach(function(I){var O=I.name,F=I.options,z=F===void 0?{}:F,j=I.effect;if(typeof j=="function"){var G=j({state:A,name:O,instance:T,options:z}),U=function(){};k.push(G||U)}})}function L(){k.forEach(function(I){return I()}),k=[]}return T}}var Fen=[aen,ken,ren,cPe,Aen,men,Ten,ZZt,ven],Nen=Oen({defaultModifiers:Fen}),Pen="tippy-box",EPe="tippy-content",zen="tippy-backdrop",CPe="tippy-arrow",TPe="tippy-svg-arrow",$k={passive:!0,capture:!0},SPe=function(){return document.body};function U0e(n,r,a){if(Array.isArray(n)){var o=n[r];return o??(Array.isArray(a)?a[r]:a)}return n}function G0e(n,r){var a={}.toString.call(n);return a.indexOf("[object")===0&&a.indexOf(r+"]")>-1}function BPe(n,r){return typeof n=="function"?n.apply(void 0,r):n}function MPe(n,r){if(r===0)return n;var a;return function(o){clearTimeout(a),a=setTimeout(function(){n(o)},r)}}function jen(n){return n.split(/\s+/).filter(Boolean)}function bM(n){return[].concat(n)}function _Pe(n,r){n.indexOf(r)===-1&&n.push(r)}function Hen(n){return n.filter(function(r,a){return n.indexOf(r)===a})}function Ven(n){return n.split("-")[0]}function p$(n){return[].slice.call(n)}function LPe(n){return Object.keys(n).reduce(function(r,a){return n[a]!==void 0&&(r[a]=n[a]),r},{})}function YO(){return document.createElement("div")}function m$(n){return["Element","Fragment"].some(function(r){return G0e(n,r)})}function Uen(n){return G0e(n,"NodeList")}function Gen(n){return G0e(n,"MouseEvent")}function qen(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function Qen(n){return m$(n)?[n]:Uen(n)?p$(n):Array.isArray(n)?n:p$(document.querySelectorAll(n))}function q0e(n,r){n.forEach(function(a){a&&(a.style.transitionDuration=r+"ms")})}function DPe(n,r){n.forEach(function(a){a&&a.setAttribute("data-state",r)})}function $en(n){var r,a=bM(n),o=a[0];return o!=null&&(r=o.ownerDocument)!=null&&r.body?o.ownerDocument:document}function Yen(n,r){var a=r.clientX,o=r.clientY;return n.every(function(u){var d=u.popperRect,h=u.popperState,b=u.props,v=b.interactiveBorder,y=Ven(h.placement),A=h.modifiersData.offset;if(!A)return!0;var k=y==="bottom"?A.top.y:0,C=y==="top"?A.bottom.y:0,T=y==="right"?A.left.x:0,B=y==="left"?A.right.x:0,L=d.top-o+k>v,I=o-d.bottom-C>v,O=d.left-a+T>v,F=a-d.right-B>v;return L||I||O||F})}function Q0e(n,r,a){var o=r+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(u){n[o](u,a)})}function IPe(n,r){for(var a=r;a;){var o;if(n.contains(a))return!0;a=a.getRootNode==null||(o=a.getRootNode())==null?void 0:o.host}return!1}var _5={isTouch:!1},RPe=0;function Wen(){_5.isTouch||(_5.isTouch=!0,window.performance&&document.addEventListener("mousemove",OPe))}function OPe(){var n=performance.now();n-RPe<20&&(_5.isTouch=!1,document.removeEventListener("mousemove",OPe)),RPe=n}function Ken(){var n=document.activeElement;if(qen(n)){var r=n._tippy;n.blur&&!r.state.isVisible&&n.blur()}}function Xen(){document.addEventListener("touchstart",Wen,$k),window.addEventListener("blur",Ken)}var Jen=typeof window<"u"&&typeof document<"u",Zen=Jen?!!window.msCrypto:!1,etn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ttn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},kb=Object.assign({appendTo:SPe,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},etn,ttn),ntn=Object.keys(kb),rtn=function(r){var a=Object.keys(r);a.forEach(function(o){kb[o]=r[o]})};function FPe(n){var r=n.plugins||[],a=r.reduce(function(o,u){var d=u.name,h=u.defaultValue;if(d){var b;o[d]=n[d]!==void 0?n[d]:(b=kb[d])!=null?b:h}return o},{});return Object.assign({},n,a)}function itn(n,r){var a=r?Object.keys(FPe(Object.assign({},kb,{plugins:r}))):ntn,o=a.reduce(function(u,d){var h=(n.getAttribute("data-tippy-"+d)||"").trim();if(!h)return u;if(d==="content")u[d]=h;else try{u[d]=JSON.parse(h)}catch{u[d]=h}return u},{});return o}function NPe(n,r){var a=Object.assign({},r,{content:BPe(r.content,[n])},r.ignoreAttributes?{}:itn(n,r.plugins));return a.aria=Object.assign({},kb.aria,a.aria),a.aria={expanded:a.aria.expanded==="auto"?r.interactive:a.aria.expanded,content:a.aria.content==="auto"?r.interactive?null:"describedby":a.aria.content},a}var atn=function(){return"innerHTML"};function $0e(n,r){n[atn()]=r}function PPe(n){var r=YO();return n===!0?r.className=CPe:(r.className=TPe,m$(n)?r.appendChild(n):$0e(r,n)),r}function zPe(n,r){m$(r.content)?($0e(n,""),n.appendChild(r.content)):typeof r.content!="function"&&(r.allowHTML?$0e(n,r.content):n.textContent=r.content)}function Y0e(n){var r=n.firstElementChild,a=p$(r.children);return{box:r,content:a.find(function(o){return o.classList.contains(EPe)}),arrow:a.find(function(o){return o.classList.contains(CPe)||o.classList.contains(TPe)}),backdrop:a.find(function(o){return o.classList.contains(zen)})}}function jPe(n){var r=YO(),a=YO();a.className=Pen,a.setAttribute("data-state","hidden"),a.setAttribute("tabindex","-1");var o=YO();o.className=EPe,o.setAttribute("data-state","hidden"),zPe(o,n.props),r.appendChild(a),a.appendChild(o),u(n.props,n.props);function u(d,h){var b=Y0e(r),v=b.box,y=b.content,A=b.arrow;h.theme?v.setAttribute("data-theme",h.theme):v.removeAttribute("data-theme"),typeof h.animation=="string"?v.setAttribute("data-animation",h.animation):v.removeAttribute("data-animation"),h.inertia?v.setAttribute("data-inertia",""):v.removeAttribute("data-inertia"),v.style.maxWidth=typeof h.maxWidth=="number"?h.maxWidth+"px":h.maxWidth,h.role?v.setAttribute("role",h.role):v.removeAttribute("role"),(d.content!==h.content||d.allowHTML!==h.allowHTML)&&zPe(y,n.props),h.arrow?A?d.arrow!==h.arrow&&(v.removeChild(A),v.appendChild(PPe(h.arrow))):v.appendChild(PPe(h.arrow)):A&&v.removeChild(A)}return{popper:r,onUpdate:u}}jPe.$$tippy=!0;var stn=1,b$=[],W0e=[];function otn(n,r){var a=NPe(n,Object.assign({},kb,FPe(LPe(r)))),o,u,d,h=!1,b=!1,v=!1,y=!1,A,k,C,T=[],B=MPe(vt,a.interactiveDebounce),L,I=stn++,O=null,F=Hen(a.plugins),z={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},j={id:I,reference:n,popper:YO(),popperInstance:O,props:a,state:z,plugins:F,clearDelayTimeouts:jt,setProps:et,setContent:je,show:wt,hide:ht,hideWithInteractivity:mt,enable:ut,disable:dt,unmount:sn,destroy:Ne};if(!a.render)return j;var G=a.render(j),U=G.popper,q=G.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+j.id,j.popper=U,n._tippy=j,U._tippy=j;var Q=F.map(function(We){return We.fn(j)}),H=n.hasAttribute("aria-expanded");return we(),re(),ce(),ue("onCreate",[j]),a.showOnCreate&&on(),U.addEventListener("mouseenter",function(){j.props.interactive&&j.state.isVisible&&j.clearDelayTimeouts()}),U.addEventListener("mouseleave",function(){j.props.interactive&&j.props.trigger.indexOf("mouseenter")>=0&&ie().addEventListener("mousemove",B)}),j;function Y(){var We=j.props.touch;return Array.isArray(We)?We:[We,0]}function P(){return Y()[0]==="hold"}function X(){var We;return!!((We=j.props.render)!=null&&We.$$tippy)}function N(){return L||n}function ie(){var We=N().parentNode;return We?$en(We):document}function le(){return Y0e(U)}function fe(We){return j.state.isMounted&&!j.state.isVisible||_5.isTouch||A&&A.type==="focus"?0:U0e(j.props.delay,We?0:1,kb.delay)}function ce(We){We===void 0&&(We=!1),U.style.pointerEvents=j.props.interactive&&!We?"":"none",U.style.zIndex=""+j.props.zIndex}function ue(We,yt,Ut){if(Ut===void 0&&(Ut=!0),Q.forEach(function(Hn){Hn[We]&&Hn[We].apply(Hn,yt)}),Ut){var qt;(qt=j.props)[We].apply(qt,yt)}}function he(){var We=j.props.aria;if(We.content){var yt="aria-"+We.content,Ut=U.id,qt=bM(j.props.triggerTarget||n);qt.forEach(function(Hn){var dn=Hn.getAttribute(yt);if(j.state.isVisible)Hn.setAttribute(yt,dn?dn+" "+Ut:Ut);else{var Hr=dn&&dn.replace(Ut,"").trim();Hr?Hn.setAttribute(yt,Hr):Hn.removeAttribute(yt)}})}}function re(){if(!(H||!j.props.aria.expanded)){var We=bM(j.props.triggerTarget||n);We.forEach(function(yt){j.props.interactive?yt.setAttribute("aria-expanded",j.state.isVisible&&yt===N()?"true":"false"):yt.removeAttribute("aria-expanded")})}}function be(){ie().removeEventListener("mousemove",B),b$=b$.filter(function(We){return We!==B})}function De(We){if(!(_5.isTouch&&(v||We.type==="mousedown"))){var yt=We.composedPath&&We.composedPath()[0]||We.target;if(!(j.props.interactive&&IPe(U,yt))){if(bM(j.props.triggerTarget||n).some(function(Ut){return IPe(Ut,yt)})){if(_5.isTouch||j.state.isVisible&&j.props.trigger.indexOf("click")>=0)return}else ue("onClickOutside",[j,We]);j.props.hideOnClick===!0&&(j.clearDelayTimeouts(),j.hide(),b=!0,setTimeout(function(){b=!1}),j.state.isMounted||Le())}}}function ge(){v=!0}function Ze(){v=!1}function _e(){var We=ie();We.addEventListener("mousedown",De,!0),We.addEventListener("touchend",De,$k),We.addEventListener("touchstart",Ze,$k),We.addEventListener("touchmove",ge,$k)}function Le(){var We=ie();We.removeEventListener("mousedown",De,!0),We.removeEventListener("touchend",De,$k),We.removeEventListener("touchstart",Ze,$k),We.removeEventListener("touchmove",ge,$k)}function Ve(We,yt){Se(We,function(){!j.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&yt()})}function ot(We,yt){Se(We,yt)}function Se(We,yt){var Ut=le().box;function qt(Hn){Hn.target===Ut&&(Q0e(Ut,"remove",qt),yt())}if(We===0)return yt();Q0e(Ut,"remove",k),Q0e(Ut,"add",qt),k=qt}function Be(We,yt,Ut){Ut===void 0&&(Ut=!1);var qt=bM(j.props.triggerTarget||n);qt.forEach(function(Hn){Hn.addEventListener(We,yt,Ut),T.push({node:Hn,eventType:We,handler:yt,options:Ut})})}function we(){P()&&(Be("touchstart",Te,{passive:!0}),Be("touchend",Pe,{passive:!0})),jen(j.props.trigger).forEach(function(We){if(We!=="manual")switch(Be(We,Te),We){case"mouseenter":Be("mouseleave",Pe);break;case"focus":Be(Zen?"focusout":"blur",Dn);break;case"focusin":Be("focusout",Dn);break}})}function ke(){T.forEach(function(We){var yt=We.node,Ut=We.eventType,qt=We.handler,Hn=We.options;yt.removeEventListener(Ut,qt,Hn)}),T=[]}function Te(We){var yt,Ut=!1;if(!(!j.state.isEnabled||st(We)||b)){var qt=((yt=A)==null?void 0:yt.type)==="focus";A=We,L=We.currentTarget,re(),!j.state.isVisible&&Gen(We)&&b$.forEach(function(Hn){return Hn(We)}),We.type==="click"&&(j.props.trigger.indexOf("mouseenter")<0||h)&&j.props.hideOnClick!==!1&&j.state.isVisible?Ut=!0:on(We),We.type==="click"&&(h=!Ut),Ut&&!qt&&Bt(We)}}function vt(We){var yt=We.target,Ut=N().contains(yt)||U.contains(yt);if(!(We.type==="mousemove"&&Ut)){var qt=ft().concat(U).map(function(Hn){var dn,Hr=Hn._tippy,ei=(dn=Hr.popperInstance)==null?void 0:dn.state;return ei?{popperRect:Hn.getBoundingClientRect(),popperState:ei,props:a}:null}).filter(Boolean);Yen(qt,We)&&(be(),Bt(We))}}function Pe(We){var yt=st(We)||j.props.trigger.indexOf("click")>=0&&h;if(!yt){if(j.props.interactive){j.hideWithInteractivity(We);return}Bt(We)}}function Dn(We){j.props.trigger.indexOf("focusin")<0&&We.target!==N()||j.props.interactive&&We.relatedTarget&&U.contains(We.relatedTarget)||Bt(We)}function st(We){return _5.isTouch?P()!==We.type.indexOf("touch")>=0:!1}function wn(){fn();var We=j.props,yt=We.popperOptions,Ut=We.placement,qt=We.offset,Hn=We.getReferenceClientRect,dn=We.moveTransition,Hr=X()?Y0e(U).arrow:null,ei=Hn?{getBoundingClientRect:Hn,contextElement:Hn.contextElement||N()}:n,Wr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Vn){var si=Vn.state;if(X()){var Vr=le(),Yi=Vr.box;["placement","reference-hidden","escaped"].forEach(function(Vi){Vi==="placement"?Yi.setAttribute("data-placement",si.placement):si.attributes.popper["data-popper-"+Vi]?Yi.setAttribute("data-"+Vi,""):Yi.removeAttribute("data-"+Vi)}),si.attributes.popper={}}}},ci=[{name:"offset",options:{offset:qt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!dn}},Wr];X()&&Hr&&ci.push({name:"arrow",options:{element:Hr,padding:3}}),ci.push.apply(ci,(yt==null?void 0:yt.modifiers)||[]),j.popperInstance=Nen(ei,U,Object.assign({},yt,{placement:Ut,onFirstUpdate:C,modifiers:ci}))}function fn(){j.popperInstance&&(j.popperInstance.destroy(),j.popperInstance=null)}function Wn(){var We=j.props.appendTo,yt,Ut=N();j.props.interactive&&We===SPe||We==="parent"?yt=Ut.parentNode:yt=BPe(We,[Ut]),yt.contains(U)||yt.appendChild(U),j.state.isMounted=!0,wn()}function ft(){return p$(U.querySelectorAll("[data-tippy-root]"))}function on(We){j.clearDelayTimeouts(),We&&ue("onTrigger",[j,We]),_e();var yt=fe(!0),Ut=Y(),qt=Ut[0],Hn=Ut[1];_5.isTouch&&qt==="hold"&&Hn&&(yt=Hn),yt?o=setTimeout(function(){j.show()},yt):j.show()}function Bt(We){if(j.clearDelayTimeouts(),ue("onUntrigger",[j,We]),!j.state.isVisible){Le();return}if(!(j.props.trigger.indexOf("mouseenter")>=0&&j.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(We.type)>=0&&h)){var yt=fe(!1);yt?u=setTimeout(function(){j.state.isVisible&&j.hide()},yt):d=requestAnimationFrame(function(){j.hide()})}}function ut(){j.state.isEnabled=!0}function dt(){j.hide(),j.state.isEnabled=!1}function jt(){clearTimeout(o),clearTimeout(u),cancelAnimationFrame(d)}function et(We){if(!j.state.isDestroyed){ue("onBeforeUpdate",[j,We]),ke();var yt=j.props,Ut=NPe(n,Object.assign({},yt,LPe(We),{ignoreAttributes:!0}));j.props=Ut,we(),yt.interactiveDebounce!==Ut.interactiveDebounce&&(be(),B=MPe(vt,Ut.interactiveDebounce)),yt.triggerTarget&&!Ut.triggerTarget?bM(yt.triggerTarget).forEach(function(qt){qt.removeAttribute("aria-expanded")}):Ut.triggerTarget&&n.removeAttribute("aria-expanded"),re(),ce(),q&&q(yt,Ut),j.popperInstance&&(wn(),ft().forEach(function(qt){requestAnimationFrame(qt._tippy.popperInstance.forceUpdate)})),ue("onAfterUpdate",[j,We])}}function je(We){j.setProps({content:We})}function wt(){var We=j.state.isVisible,yt=j.state.isDestroyed,Ut=!j.state.isEnabled,qt=_5.isTouch&&!j.props.touch,Hn=U0e(j.props.duration,0,kb.duration);if(!(We||yt||Ut||qt)&&!N().hasAttribute("disabled")&&(ue("onShow",[j],!1),j.props.onShow(j)!==!1)){if(j.state.isVisible=!0,X()&&(U.style.visibility="visible"),ce(),_e(),j.state.isMounted||(U.style.transition="none"),X()){var dn=le(),Hr=dn.box,ei=dn.content;q0e([Hr,ei],0)}C=function(){var ci;if(!(!j.state.isVisible||y)){if(y=!0,U.offsetHeight,U.style.transition=j.props.moveTransition,X()&&j.props.animation){var vi=le(),Vn=vi.box,si=vi.content;q0e([Vn,si],Hn),DPe([Vn,si],"visible")}he(),re(),_Pe(W0e,j),(ci=j.popperInstance)==null||ci.forceUpdate(),ue("onMount",[j]),j.props.animation&&X()&&ot(Hn,function(){j.state.isShown=!0,ue("onShown",[j])})}},Wn()}}function ht(){var We=!j.state.isVisible,yt=j.state.isDestroyed,Ut=!j.state.isEnabled,qt=U0e(j.props.duration,1,kb.duration);if(!(We||yt||Ut)&&(ue("onHide",[j],!1),j.props.onHide(j)!==!1)){if(j.state.isVisible=!1,j.state.isShown=!1,y=!1,h=!1,X()&&(U.style.visibility="hidden"),be(),Le(),ce(!0),X()){var Hn=le(),dn=Hn.box,Hr=Hn.content;j.props.animation&&(q0e([dn,Hr],qt),DPe([dn,Hr],"hidden"))}he(),re(),j.props.animation?X()&&Ve(qt,j.unmount):j.unmount()}}function mt(We){ie().addEventListener("mousemove",B),_Pe(b$,B),B(We)}function sn(){j.state.isVisible&&j.hide(),j.state.isMounted&&(fn(),ft().forEach(function(We){We._tippy.unmount()}),U.parentNode&&U.parentNode.removeChild(U),W0e=W0e.filter(function(We){return We!==j}),j.state.isMounted=!1,ue("onHidden",[j]))}function Ne(){j.state.isDestroyed||(j.clearDelayTimeouts(),j.unmount(),ke(),delete n._tippy,j.state.isDestroyed=!0,ue("onDestroy",[j]))}}function Yk(n,r){r===void 0&&(r={});var a=kb.plugins.concat(r.plugins||[]);Xen();var o=Object.assign({},r,{plugins:a}),u=Qen(n),d=u.reduce(function(h,b){var v=b&&otn(b,o);return v&&h.push(v),h},[]);return m$(n)?d[0]:d}Yk.defaultProps=kb,Yk.setDefaultProps=rtn,Yk.currentInput=_5,Object.assign({},cPe,{effect:function(r){var a=r.state,o={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(a.elements.popper.style,o.popper),a.styles=o,a.elements.arrow&&Object.assign(a.elements.arrow.style,o.arrow)}}),Yk.setDefaultProps({render:jPe});function ctn(n){const{triggerRef:r,panelComponent:a,panelProps:o={},tippyOptions:u={}}=n,d=J.ref(null);let h=null;const b=()=>{h||(h=document.createElement("div"));const L=J.h(a,{...o,onClose:k});return J.render(L,h),h},v=L=>{var z;const I=L.target,O=r.value;if(O&&O.contains(I))return;const F=document.querySelector('.tippy-box[data-theme~="history-panel"]');F&&F.contains(I)||(z=d.value)!=null&&z.state.isVisible&&d.value.hide()},y=()=>{if(!r.value||d.value)return;const L={placement:"bottom-end",offset:[0,8],appendTo:document.querySelector(".ai-blueking-container-wrapper")||document.body};d.value=Yk(r.value,{content:b(),interactive:!0,trigger:"manual",theme:"light history-panel",arrow:!1,hideOnClick:!1,animation:"scale",duration:200,delay:[0,0],...L,...u,onShow:()=>{d.value&&h&&d.value.setContent(b()),setTimeout(()=>{document.addEventListener("click",v,!1)},0)},onHidden:()=>{document.removeEventListener("click",v,!1)}})},A=()=>{var L;d.value||y(),(L=d.value)==null||L.show()},k=()=>{var L;(L=d.value)==null||L.hide()},C=()=>{var L;d.value||y(),(L=d.value)!=null&&L.state.isVisible?k():A()},T=L=>{L.stopPropagation(),C()},B=()=>{d.value&&(d.value.destroy(),d.value=null),h&&(J.render(null,h),h=null),document.removeEventListener("click",v,!1)};return J.onBeforeUnmount(()=>{B()}),{show:A,hide:k,toggle:C,handleTriggerClick:T,destroy:B,isVisible:()=>{var L;return((L=d.value)==null?void 0:L.state.isVisible)??!1}}}const v$=[Zr.HiddenAi,Zr.HiddenUser,Zr.HiddenGuide,Zr.HiddenRole],ltn=n=>{const r=document.cookie.match(new RegExp(`(^| )${n}=([^;]*)(;|$)`));return r?r[2]:""},HPe=n=>n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),utn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const r=Math.random()*16|0;return(n=="x"?r:r&3|8).toString(16)}),htn=n=>{if(!n)return n;try{if(n.startsWith("http://")||n.startsWith("https://")){const a=window.location.protocol,o=new URL(n);return a==="https:"&&o.protocol==="http:"?(o.protocol="https:",o.toString()):n}if(n.startsWith("//"))return`${window.location.protocol}${n}`;if(n.startsWith("/"))return`${window.location.protocol}//${window.location.host}${n}`;const r=`${window.location.protocol}//${window.location.host}${window.location.pathname}`;return new URL(n,r).toString()}catch(r){return console.warn("URL normalization failed:",r),n}},ftn=ltn("blueking_language")||"zh-cn",dtn={小鲸:"BK GPT",向下收缩:"shrink down",向上扩展:"expand upward",清空聊天记录:"Empty chat records",关闭:"close","内容正在执行中,请执行完成后再发送":"The content is being executed, please send it after the execution is completed.",发送:"Send","您可以键入 “/” 查看更多Prompt":'You can type "/" to see more Prompts',请输入:"Please input",返回最新:"Latest",终止生成:"Stop",向上滚动加载更多记录:"Scroll up to load more records",日:" sunday",一:" monday",二:" tuesday",三:" wednesday",四:" thursday",五:" friday",六:" saturday",昨天:"yesterday",本周:"this week",上周:"last week",复制成功:"Copy success",您选择的文本内容:"The text content you selected",问小鲸:"Ask BK GPT",想对选中的文本做什么:"What do you want to do with the selected text?",translateShortcut:`You are a highly skilled AI trained in language translation. I would like you to translate the text delimited by triple quotes (Translation of Chinese into English and other languages into Chinese), ensuring that the translation is colloquial and authentic.
186
+ }`;n=document.createElement("style"),n.textContent=o,document.head.appendChild(n)},a=()=>{n&&(n.remove(),n=null)};J.onBeforeMount(()=>{r()}),J.onBeforeUnmount(()=>{a()})};function KRe(n,r,a,o,u,d,h){try{var b=n[d](h),v=b.value}catch(y){a(y);return}b.done?r(v):Promise.resolve(v).then(o,u)}function Zw(n){return function(){var r=this,a=arguments;return new Promise(function(o,u){var d=n.apply(r,a);function h(v){KRe(d,o,u,h,b,"next",v)}function b(v){KRe(d,o,u,h,b,"throw",v)}h(void 0)})}}function uYt(n,r,a){return r in n?Object.defineProperty(n,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[r]=a,n}function Bue(n){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{},o=Object.keys(a);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(a).filter(function(u){return Object.getOwnPropertyDescriptor(a,u).enumerable}))),o.forEach(function(u){uYt(n,u,a[u])})}return n}function hYt(n,r){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);a.push.apply(a,o)}return a}function fYt(n,r){return r=r??{},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):hYt(Object(r)).forEach(function(a){Object.defineProperty(n,a,Object.getOwnPropertyDescriptor(r,a))}),n}const dYt=({handleStart:n,handleText:r,handleReferenceDoc:a,handleThink:o,handleEnd:u,handleError:d,requestOptions:h,otherOptions:b})=>{let v=WRe({apiPrefix:h.url,headers:h.headers,beforeRequest:h.beforeRequest,afterRequest:h.afterRequest});const y="内容正在生成中...",A=J.ref(h),k=J.ref(),C=J.ref({}),T=J.ref([]),B={},L={},I=J.ref(!1),O=J.computed(()=>{const ft=[];for(let on=T.value.length-1;on>=0;on--){const Bt=T.value[on];let ut=on+1,dt=T.value[ut];for(;dt&&![Zr.Ai,Zr.TokenExpired,Zr.ImageNotSupported,Zr.Pause,Zr.Guide].includes(dt.role);)ut+=1,dt=T.value[ut];if(Bt.role===Zr.System)break;Bt.status!==Of.Fail&&!((dt==null?void 0:dt.status)===Of.Fail&&[Zr.User,Zr.UserImage].includes(Bt.role))&&![Zr.Time,Zr.System].includes(Bt.role)&&ft.unshift(Bt)}return ft}),F=J.computed(()=>{var ft;const on=(ft=k.value)===null||ft===void 0?void 0:ft.sessionCode;return on?C.value[on]:!1}),z=J.computed(()=>{var ft,on,Bt;const ut=[],dt=[],jt=[],et=T.value.findLastIndex(ht=>ht.role===Zr.System&&["已启用角色","已启用模型"].some(mt=>ht.content.includes(mt)));let je=0;(Bt=k.value)===null||Bt===void 0||(on=Bt.roleInfo)===null||on===void 0||(ft=on.content)===null||ft===void 0||ft.forEach(ht=>{const mt=T.value[et+1+je];let sn=T.value[et+2+je];if((mt==null?void 0:mt.content)===ht.content&&mt.role!==Zr.System&&(ut.push(Sue(mt)),je+=1,(mt==null?void 0:mt.role)===Zr.Pause)){for(;sn&&sn.role===Zr.System;)je+=1,sn=T.value[et+1+je];for(;sn&&[Zr.User,Zr.UserImage].includes(sn.role);)ut.push(Sue(sn)),je+=1,sn=T.value[et+1+je]}}),dt.push(...O.value.map(Sue));const wt=ht=>{let mt=!0;for(let Ne=ht;Ne<ut.length;Ne++){var sn;ut[Ne].content!==((sn=dt[Ne-ht])===null||sn===void 0?void 0:sn.content)&&(mt=!1)}return mt};for(let ht=0;ht<ut.length;ht++){const mt=ut[ht];if(wt(ht))break;jt.push(mt)}return jt.push(...dt),jt.forEach(ht=>{ht.content=oYt(ht.content),ht.content=D$t(ht.content)}),jt}),j=new _$t({handleStart:re,handleText:Le,handleReferenceDoc:De,handleThink:Ze,handleEnd:ot,handleError:Be,beforeRequest:h.beforeRequest,afterRequest:h.afterRequest});function G(ft){A.value=Bue({},A.value,ft),(ft.url||ft.headers)&&(v=WRe({apiPrefix:A.value.url,headers:A.value.headers,beforeRequest:A.value.beforeRequest,afterRequest:A.value.afterRequest}))}function U(ft){return v.plusSessionContent(ft).then(on=>(ft.id=on.id,ft.createdAt=on.createdAt,ft))}const q=k$t((ft,on)=>v.modifySessionContent(on),1e3);function Q(ft){k.value=ft,ft!=null&&ft.sessionCode&&(B[ft.sessionCode]||(B[ft.sessionCode]=[]),T.value=B[ft.sessionCode])}function H(ft){k.value&&(B[k.value.sessionCode]=ft,T.value=ft)}function Y(ft){return P.apply(this,arguments)}function P(){return P=Zw(function*(ft){k.value=ft;try{I.value=!0;const on=yield v.getSessionContents(ft.sessionCode);B[k.value.sessionCode]=on,T.value=on,I.value=!1}catch{I.value=!1}}),P.apply(this,arguments)}function X(ft,on){return ie(on).find(ut=>ut.id===ft)}function N(ft){var on;return((on=k.value)===null||on===void 0?void 0:on.sessionCode)===ft?T.value.at(-1):B[ft].at(-1)}function ie(ft){var on;return((on=k.value)===null||on===void 0?void 0:on.sessionCode)===ft?T.value:B[ft]}function le(ft,on){return ie(ft).push(on),U(on)}function fe(ft){var on;const ut=(((on=k.value)===null||on===void 0?void 0:on.sessionCode)===ft.sessionCode?T.value:B[ft.sessionCode]).find(dt=>+(dt.id||0)==+(ft.id||0));return ut&&Object.assign(ut,ft),q(ft.id,ft)}function ce(ft,on,Bt){var ut;const dt=((ut=k.value)===null||ut===void 0?void 0:ut.sessionCode)===ft?T.value:B[ft],jt=[];return on.forEach(et=>{const je=dt.findIndex(wt=>wt.id===et);if(je>-1){const wt=dt[je-1],ht=dt[je+1],mt=dt[je+2];if(dt.splice(je,1),jt.push(et),[Zr.Hidden].includes(wt==null?void 0:wt.role)){const sn=dt.findIndex(Ne=>Ne.id===wt.id);dt.splice(sn,1),jt.push(wt.id)}if((ht==null?void 0:ht.role)===Zr.Ai||Bt&&[Zr.Ai,Zr.Guide,Zr.TokenExpired,Zr.ImageNotSupported,Zr.Pause].includes(ht==null?void 0:ht.role)){const sn=dt.findIndex(Ne=>Ne.id===ht.id);dt.splice(sn,1),jt.push(ht.id)}if([Zr.Guide].includes(mt==null?void 0:mt.role)&&Bt){const sn=dt.findIndex(Ne=>Ne.id===mt.id);dt.splice(sn,1),jt.push(mt.id)}}}),jt}function ue(ft,on){const Bt=ce(ft,[on],!0);return v.batchDeleteSessionContents(Bt)}function he(ft,on){const Bt=ce(ft,on,!1);return v.batchDeleteSessionContents(Bt)}function re(ft){return be.apply(this,arguments)}function be(){return be=Zw(function*(ft){C.value[ft]=!0;const on={sessionCode:ft,role:Zr.Ai,status:Of.Loading,content:y};return yield le(ft,on),n==null?void 0:n(ft,on)}),be.apply(this,arguments)}function De(ft,on,Bt){return ge.apply(this,arguments)}function ge(){return ge=Zw(function*(ft,on,Bt){const ut=N(ft),dt=L$t(on,b==null?void 0:b.hideReferenceDocIcon);ut.content=Bt?dt:ut.content+dt,yield q(ut.id,ut),yield a==null?void 0:a(ft,ut)}),ge.apply(this,arguments)}function Ze(ft,on,Bt,ut){return _e.apply(this,arguments)}function _e(){return _e=Zw(function*(ft,on,Bt,ut){const dt=N(ft);dt.content=sYt(dt.content,on,Bt,ut),yield q(dt.id,dt),yield o==null?void 0:o(ft,dt)}),_e.apply(this,arguments)}function Le(ft,on,Bt){return Ve.apply(this,arguments)}function Ve(){return Ve=Zw(function*(ft,on,Bt){const ut=N(ft);if(ut.content===y)ut.content=on;else if(ut.status===Of.Loading)ut.content=Bt?on:ut.content+on;else return;yield q(ut.id,ut),yield r==null?void 0:r(ft,ut)}),Ve.apply(this,arguments)}function ot(ft,on){return Se.apply(this,arguments)}function Se(){return Se=Zw(function*(ft,on){const Bt=N(ft);if(Bt.content===y||cYt(Bt.content)){Be(ft,"聊天内容已中断");return}Bt.status===Of.Loading&&(C.value[ft]=!1,on&&(Bt.content=on),Bt.status=Of.Success,yield q(Bt.id,Bt),yield u==null?void 0:u(ft,Bt))}),Se.apply(this,arguments)}function Be(ft,on,Bt){return we.apply(this,arguments)}function we(){return we=Zw(function*(ft,on,Bt){const ut=N(ft);if(ut.status=Of.Fail,ut.content=on,C.value[ft]=!1,Bt===FQ.TokenExpired){var dt,jt;if(ut.content="抱歉,您的剩余 Token 不足,无法返回回答内容,请先清空当前会话(上下文仍会作为历史记录保留))",ut.role=Zr.TokenExpired,!((jt=k.value)===null||jt===void 0||(dt=jt.sessionProperty)===null||dt===void 0)&&dt.isAutoClear){var et;yield le(ft,{sessionCode:ft,role:Zr.System,content:"由于Token超限,已自动清理会话,后续会话不会携带先前的会话信息"}),yield v.clearSession((et=k.value)===null||et===void 0?void 0:et.sessionCode)}}Bt===FQ.ImageNotSupported&&(ut.content="抱歉,当前模型不支持图片内容解析",ut.role=Zr.ImageNotSupported),yield q(ut.id,ut),yield d==null?void 0:d(ft,ut,Bt)}),we.apply(this,arguments)}function ke(ft,on){return Te.apply(this,arguments)}function Te(){return Te=Zw(function*(ft,on){let Bt=!1;L[ft]=[];for(const ut of on)if(Bt)L[ft].push(ut);else{const dt=fYt(Bue({},iYt(ut)),{sessionCode:ft,status:Of.Success});yield le(ft,dt),dt.role===Zr.Pause&&(Bt=!0)}}),Te.apply(this,arguments)}function vt(ft,on,Bt){if(on.role!==Zr.Ai)return;const ut=T.value.slice(Bt,T.value.length).map(jt=>jt.id).filter(jt=>jt!==void 0);ut.length>0&&he(ft,ut);const dt=T.value[Bt-1];dt&&Pe(dt)}function Pe({sessionCode:ft,url:on,data:Bt,headers:ut}){const dt=L[ft];(dt==null?void 0:dt.length)>0?ke(ft,dt):Dn(ft,Bt,on,ut)}function Dn(ft,on,Bt,ut){var dt;const jt=N(ft);j.stream({sessionCode:ft,url:Bt||`${A.value.url}/chat_completion/`,data:Bue({session_content_id:jt==null?void 0:jt.id,session_code:ft,execute_kwargs:{stream:!0}},on,A.value.data),headers:ut||((dt=A.value)===null||dt===void 0?void 0:dt.headers)})}function st(ft,on,Bt){return wn.apply(this,arguments)}function wn(){return wn=Zw(function*(ft,on,Bt){var ut,dt;if(on.role!==Zr.User)return;const jt=T.value.slice(Bt,T.value.length).map(et=>et.id).filter(et=>et!==void 0);jt.length>0&&he(ft,jt),yield le(ft,{role:Zr.User,content:on.content,sessionCode:ft,property:{extra:{cite:(dt=on.property)===null||dt===void 0||(ut=dt.extra)===null||ut===void 0?void 0:ut.cite}}}),Pe(on)}),wn.apply(this,arguments)}function fn(ft,on){let Bt=[];if(T.value[ft].role===Zr.User){Bt=T.value.slice(ft,ft+2).map(dt=>dt.id).filter(dt=>dt!==void 0),he(on,Bt);return}Bt=T.value.slice(ft-1,ft+1).map(dt=>dt.id).filter(dt=>dt!==void 0),he(on,Bt)}function Wn(ft){j.stop(ft)}return{currentSession:k,sessionContents:T,sessionContentsMap:B,sessionLoadingMap:C,prompts:z,currentSessionLoading:F,isLoadingSessionContents:I,chat:Pe,stopChat:Wn,plusSessionContent:le,updateSessionContent:fe,getSessionContentById:X,getLastSessionContentBySessionCode:N,getSessionContentsBySessionCode:ie,setCurrentSession:Q,setCurrentSessionChain:Y,setSessionContents:H,deleteSessionContent:ue,deleteSessionContents:he,handleStartChat:re,handleErrorChat:Be,handleCompleteRole:ke,reGenerateChat:vt,reSendChat:st,deleteChat:fn,getAgentInfoApi:(...ft)=>v.getAgentInfo(...ft),clearSessionApi:(...ft)=>v.clearSession(...ft),getSessionsApi:(...ft)=>v.getSessions(...ft),plusSessionApi:(...ft)=>v.plusSession(...ft),modifySessionApi:(...ft)=>v.modifySession(...ft),deleteSessionApi:(...ft)=>v.deleteSession(...ft),batchDeleteSessionsApi:(...ft)=>v.batchDeleteSessions(...ft),getSessionApi:(...ft)=>v.getSession(...ft),getSessionContentsApi:(...ft)=>v.getSessionContents(...ft),plusSessionContentApi:(...ft)=>v.plusSessionContent(...ft),modifySessionContentApi:(...ft)=>v.modifySessionContent(...ft),deleteSessionContentApi:(...ft)=>v.deleteSessionContent(...ft),batchDeleteSessionContentsApi:(...ft)=>v.batchDeleteSessionContents(...ft),renameSessionApi:(...ft)=>v.renameSession(...ft),updateRequestOptions:G}};(function(){var n='<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-refresh" viewBox="0 0 64 64"><path d="M54.3 23.1C55.4 25.9 56 29 56 32c0 13.3-10.8 24-24 24-5.7 0-11.2-2-15.5-5.7h4.8v-4H10v11.2h4v-4.1c11.8 9.9 29.5 8.4 39.4-3.4 6.8-8.1 8.4-19.2 4.3-28.9l-3.4 2zM9.7 40.9C8.6 38.1 8 35 8 32 8 18.7 18.8 8 32 8c5.7 0 11.2 2 15.5 5.7h-4.8v4H54V6.5h-4v4.1C38.2.6 20.5 2.2 10.6 14c-6.8 8.1-8.4 19.2-4.3 28.9l3.4-2z"/></g></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-auto-refresh-line" viewBox="0 0 64 64"><path d="M54.3 23.1l3.4-2c4.1 9.7 2.5 20.8-4.3 28.9-9.8 11.7-27.2 13.3-39 3.7l-.4-.3v4.1h-4V46.3h11.3v4h-4.8C20.8 54 26.3 56 32 56c13.2 0 24-10.7 24-24 0-2.8-.5-5.7-1.5-8.4l-.2-.5 3.4-2-3.4 2zM49.6 10.3l.4.3V6.5h4v11.2H42.7v-4h4.8C43.2 10 37.7 8 32 8 18.8 8 8 18.7 8 32c0 2.8.5 5.7 1.5 8.4l.2.5-3.4 2C2.2 33.2 3.8 22.1 10.6 14c9.8-11.7 27.2-13.4 39-3.7z"/><path d="M43.1 43.3h-5.3l-1.7-5.2h-8.2l-1.7 5.2H21l8.3-22.7H35l8.1 22.7zM35 34.4l-2.6-7.9c-.2-.5-.3-1.2-.4-2h-.1c-.1.7-.2 1.3-.4 1.9l-2.6 7.9H35z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-apijiedian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M451.372 703.988h-84.794l-33.707-87.22H178.554l-31.868 87.22H64L214.37 320h82.428l154.574 383.988zm-143.518-151.92L254.66 409.572l-52.142 142.496h105.337zm184.861 151.92V320h125.083c47.398 0 78.298 1.926 92.7 5.767 22.124 5.766 40.645 18.287 55.562 37.586 14.917 19.3 22.381 44.22 22.381 74.784 0 23.579-4.302 43.39-12.907 59.459-8.604 16.068-19.525 28.687-32.787 37.855-13.25 9.168-26.733 15.24-40.424 18.202-18.606 3.67-45.56 5.498-80.847 5.498h-50.83V704h-77.943l.012-.012zm77.943-319.031v108.969h42.654c30.729 0 51.26-2.012 61.617-6.023 10.357-4.01 18.483-10.302 24.354-18.86 5.884-8.559 8.825-18.507 8.825-29.858 0-13.971-4.13-25.492-12.38-34.575-8.248-9.083-18.691-14.752-31.34-17.02-9.304-1.743-28.008-2.62-56.089-2.62h-37.654l.013-.013zm279.4 319.03V320H928v383.988h-77.943z"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",n):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",n)})})();const gYt=()=>{I$t(),lYt()},pYt=J.defineComponent({setup(n,{expose:r}){const a=J.ref(!1),o=J.ref(),u=J.ref();let d;const h=()=>{var y;window.open((y=o.value)===null||y===void 0?void 0:y.apply_url,"_blank")},b=()=>{a.value=!1,d==null||d()};return r({handleShow:(y,A)=>{var k,C,T,B,L,I,O,F,z,j;o.value=y,a.value=!0,u.value=[{system_name:y==null||(k=y.permission)===null||k===void 0?void 0:k.system_name,name:y==null||(T=y.permission)===null||T===void 0||(C=T.actions)===null||C===void 0?void 0:C.map(G=>G.name).join(","),instance_name:y==null||(j=y.permission)===null||j===void 0||(z=j.actions[0])===null||z===void 0||(F=z.related_resource_types)===null||F===void 0||(O=F[0])===null||O===void 0||(I=O.instances)===null||I===void 0||(L=I[0])===null||L===void 0||(B=L.at(-1))===null||B===void 0?void 0:B.name}],d=A}}),(y,A)=>{const k=J.resolveComponent("bk-exception"),C=J.resolveComponent("bk-table-column"),T=J.resolveComponent("bk-table"),B=J.resolveComponent("bk-button"),L=J.resolveComponent("bk-dialog");return J.openBlock(),J.createBlock(L,{"is-show":a.value,width:640,class:"auth-dialog",onClosed:b},{header:J.withCtx(()=>[J.createVNode(k,{type:"403",scene:"part",title:"该操作需要以下权限"})]),footer:J.withCtx(()=>[J.createElementVNode("div",null,[J.createVNode(B,{theme:"primary",onClick:h},{default:J.withCtx(()=>A[0]||(A[0]=[J.createTextVNode(" 去申请 ")])),_:1}),J.createVNode(B,{class:"g-ml-8",onClick:b},{default:J.withCtx(()=>A[1]||(A[1]=[J.createTextVNode(" 取消 ")])),_:1})])]),default:J.withCtx(()=>[J.createVNode(T,{class:"g-mb-20","show-overflow-tooltip":"","empty-cell-text":"--",data:u.value},{default:J.withCtx(()=>[J.createVNode(C,{label:"系统",field:"system_name"}),J.createVNode(C,{label:"需要申请的权限",field:"name"}),J.createVNode(C,{label:"关联的资源实例",field:"instance_name"})]),_:1},8,["data"])]),_:1},8,["is-show"])}}});pYt.__file="./src/components/render-auth/auth-dialog.vue";const iM=document.createElement("div");iM.id="directive-ele",iM.style.position="absolute",iM.style.zIndex="999999",iM.classList.add("g-permission-cursor-element"),iM.style.height="0",document.body.appendChild(iM);const XRe=n=>r=>typeof r=="string"&&r.startsWith(n),Mue=XRe("--"),mYt=XRe("var(--"),_ue=n=>mYt(n)?bYt.test(n.split("/*")[0].trim()):!1,bYt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,EO={};function JRe(n){for(const r in n)EO[r]=n[r],Mue(r)&&(EO[r].isCSSVariable=!0)}function VQ(n,r){const a=typeof n=="string"&&!r?`${n}Context`:r,o=Symbol(a);return[h=>{const b=J.inject(o,h);if(b||b===null)return b;throw new Error(`Injection \`${o.toString()}\` not found. Component must be used within ${Array.isArray(n)?`one of the following components: ${n.join(", ")}`:`\`${n}\``}`)},h=>(J.provide(o,h),h)]}const[vYt,wYt]=VQ("Motion"),[yYt,jfr]=VQ("LayoutGroup");function CO(n,r,a){if(Array.isArray(n))return n.reduce((o,u)=>{const d=CO(u,r,a);return d?{...o,...d}:o},{});if(typeof n=="object")return n;if(n&&r){const o=r[n];return typeof o=="function"?o(a):o}}function AYt(n,r){return typeof n!=typeof r?!0:Array.isArray(n)&&Array.isArray(r)?!xYt(n,r):n!==r}function xYt(n,r){const a=r.length;if(a!==n.length)return!1;for(let o=0;o<a;o++)if(r[o]!==n[o])return!1;return!0}function ZRe(n,r){return n[r]?{...n,...n[r],[r]:void 0}:{...n}}function eOe(n){return n==null?void 0:n.startsWith("--")}const kYt=n=>n;function EYt(n){return typeof n=="number"}const CYt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],TYt=new Set(CYt);function SYt(n){return TYt.has(n)}function BYt(n,r){const a=n.animate,o=r.animate;if(a===o)return!1;if(!a||!o)return!0;if(typeof a=="object"||typeof o=="object"){const u=Object.keys(a),d=Object.keys(o);return u.length!==d.length?!0:u.some(h=>{if(h==="transition")return!1;const b=a[h],v=o[h];return b!==v})}return console.log(2344),a!==o}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const MYt=n=>typeof n<"u",tOe={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:n=>`${n}deg`},_Yt={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:n=>`${n}px`},rotate:tOe,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:kYt},skew:tOe},LYt=["translate","scale","rotate","skew"],DYt=["","X","Y","Z"],Lue=new Map,UQ=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];LYt.forEach(n=>{DYt.forEach(r=>{UQ.push(n+r),Lue.set(n+r,_Yt[n])})});const IYt=new Set(UQ),RYt=n=>IYt.has(n),nOe={x:"translateX",y:"translateY",z:"translateZ"};function OYt([n],[r]){return UQ.indexOf(n)-UQ.indexOf(r)}function FYt(n,[r,a]){return`${n} ${r}(${a})`}function NYt(n){return n.sort(OYt).reduce(FYt,"").trim()}const PYt={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function GQ(n){return!!(n&&n.getVelocity)}const zYt={get:(n,r)=>{let a=eOe(r)?n.style.getPropertyValue(r):getComputedStyle(n)[r];if(!a&&a!=="0"){const o=Lue.get(r);o&&(a=o.initialValue)}return a},set:(n,r,a)=>{eOe(r)?n.style.setProperty(r,a):n.style[r]=a}};function jYt(n){var r;const a={},o=[];for(let u in n){let d=n[u];d=GQ(d)?d.get():d,RYt(u)&&u in nOe&&(u=nOe[u]);let h=Array.isArray(d)?d[0]:d;const b=Lue.get(u);b?(h=EYt(d)?(r=b.toDefaultUnit)==null?void 0:r.call(b,d):d,o.push([u,h])):a[u]=h}return o.length&&(a.transform=NYt(o)),a}const rOe={fill:!0,stroke:!0,strokeWidth:!0,opacity:!0,fillOpacity:!0,strokeOpacity:!0,strokeLinecap:!0,strokeLinejoin:!0,strokeDasharray:!0,strokeDashoffset:!0,cx:!0,cy:!0,r:!0,d:!0,x:!0,y:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,pathLength:!0,transform:!0,viewBox:!0,width:!0,height:!0,preserveAspectRatio:!0,clipPath:!0,filter:!0,mask:!0,stopColor:!0,stopOpacity:!0,gradientTransform:!0,gradientUnits:!0,spreadMethod:!0,markerEnd:!0,markerMid:!0,markerStart:!0,textAnchor:!0,dominantBaseline:!0,fontFamily:!0,fontSize:!0,fontWeight:!0,letterSpacing:!0,vectorEffect:!0};function HYt(n){const r={},a={};for(const o in n)if(o in rOe){const u=rOe[o],d=typeof u=="string"?u:o,h=n[o];r[d]=GQ(h)?h.get():h}else a[o]=n[o];return{attributes:r,style:a}}function iOe(n){return n?n.flatMap(r=>r.type===J.Fragment?iOe(r.children):[r]):[]}const VYt=J.defineComponent({name:"PrimitiveSlot",inheritAttrs:!1,setup(n,{attrs:r,slots:a}){return()=>{var o,u;if(!a.default)return null;const d=iOe(a.default()),h=d.findIndex(A=>A.type!==J.Comment);if(h===-1)return d;const b=d[h];(o=b.props)==null||delete o.ref;const v=b.props?J.mergeProps(r,b.props):r;r.class&&((u=b.props)!=null&&u.class)&&delete b.props.class;const y=J.cloneVNode(b,v);for(const A in v)A.startsWith("on")&&(y.props||(y.props={}),y.props[A]=v[A]);return d.length===1?y:(d[h]=y,d)}}}),UYt=J.defineComponent({name:"Primitive",inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:"div"},getProps:{type:Function,default:()=>({})}},setup(n,{attrs:r,slots:a}){const o=n.asChild?"template":n.as,u=["area","img","input"];return()=>{const h={...n.getProps(),...r};return typeof o=="string"&&u.includes(o)?J.h(o,h):o!=="template"?J.h(n.as,h,{default:a.default}):J.h(VYt,h,{default:a.default})}}}),jk=new WeakMap;class C5{constructor(r){this.state=r}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}const Mg=n=>n;let aOe=Mg;const qQ=["read","resolveKeyframes","update","preRender","render","postRender"];function GYt(n,r){let a=new Set,o=new Set,u=!1,d=!1;const h=new WeakSet;let b={delta:0,timestamp:0,isProcessing:!1};function v(A){h.has(A)&&(y.schedule(A),n()),A(b)}const y={schedule:(A,k=!1,C=!1)=>{const B=C&&u?a:o;return k&&h.add(A),B.has(A)||B.add(A),A},cancel:A=>{o.delete(A),h.delete(A)},process:A=>{if(b=A,u){d=!0;return}u=!0,[a,o]=[o,a],a.forEach(v),a.clear(),u=!1,d&&(d=!1,y.process(A))}};return y}const qYt=40;function sOe(n,r){let a=!1,o=!0;const u={delta:0,timestamp:0,isProcessing:!1},d=()=>a=!0,h=qQ.reduce((O,F)=>(O[F]=GYt(d),O),{}),{read:b,resolveKeyframes:v,update:y,preRender:A,render:k,postRender:C}=h,T=()=>{const O=performance.now();a=!1,u.delta=o?1e3/60:Math.max(Math.min(O-u.timestamp,qYt),1),u.timestamp=O,u.isProcessing=!0,b.process(u),v.process(u),y.process(u),A.process(u),k.process(u),C.process(u),u.isProcessing=!1,a&&r&&(o=!1,n(T))},B=()=>{a=!0,o=!0,u.isProcessing||n(T)};return{schedule:qQ.reduce((O,F)=>{const z=h[F];return O[F]=(j,G=!1,U=!1)=>(a||B(),z.schedule(j,G,U)),O},{}),cancel:O=>{for(let F=0;F<qQ.length;F++)h[qQ[F]].cancel(O)},state:u,steps:h}}const{schedule:Dl,cancel:e8,state:Ff,steps:Due}=sOe(typeof requestAnimationFrame<"u"?requestAnimationFrame:Mg,!0);function QYt(n){return n instanceof SVGElement&&n.tagName!=="svg"}class $Yt extends C5{mount(){const r=this.state.element;if(!QYt(r))return;const a=this.state.visualElement;Dl.read(()=>{try{a.renderState.dimensions=typeof r.getBBox=="function"?r.getBBox():r.getBoundingClientRect()}catch{a.renderState.dimensions={x:0,y:0,width:0,height:0}}})}unmount(){}}const TO=n=>({test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}),UA=TO("deg"),t8=TO("%"),Ja=TO("px"),YYt=TO("vh"),WYt=TO("vw"),oOe={...t8,parse:n=>t8.parse(n)/100,transform:n=>t8.transform(n*100)};function cOe(n,r){return r.max===r.min?0:n/(r.max-r.min)*100}const SO={correct:(n,r)=>{if(!r.target)return n;if(typeof n=="string")if(Ja.test(n))n=parseFloat(n);else return n;const a=cOe(n,r.target.x),o=cOe(n,r.target.y);return`${a}% ${o}%`}},_h=(n,r,a)=>n+(r-n)*a,GA=(n,r,a)=>a>r?r:a<n?n:a,aM={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},BO={...aM,transform:n=>GA(0,1,n)},QQ={...aM,default:1},MO=n=>Math.round(n*1e5)/1e5,Iue=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function KYt(n){return n==null}const XYt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rue=(n,r)=>a=>!!(typeof a=="string"&&XYt.test(a)&&a.startsWith(n)||r&&!KYt(a)&&Object.prototype.hasOwnProperty.call(a,r)),lOe=(n,r,a)=>o=>{if(typeof o!="string")return o;const[u,d,h,b]=o.match(Iue);return{[n]:parseFloat(u),[r]:parseFloat(d),[a]:parseFloat(h),alpha:b!==void 0?parseFloat(b):1}},JYt=n=>GA(0,255,n),Oue={...aM,transform:n=>Math.round(JYt(n))},Hk={test:Rue("rgb","red"),parse:lOe("red","green","blue"),transform:({red:n,green:r,blue:a,alpha:o=1})=>"rgba("+Oue.transform(n)+", "+Oue.transform(r)+", "+Oue.transform(a)+", "+MO(BO.transform(o))+")"};function ZYt(n){let r="",a="",o="",u="";return n.length>5?(r=n.substring(1,3),a=n.substring(3,5),o=n.substring(5,7),u=n.substring(7,9)):(r=n.substring(1,2),a=n.substring(2,3),o=n.substring(3,4),u=n.substring(4,5),r+=r,a+=a,o+=o,u+=u),{red:parseInt(r,16),green:parseInt(a,16),blue:parseInt(o,16),alpha:u?parseInt(u,16)/255:1}}const Fue={test:Rue("#"),parse:ZYt,transform:Hk.transform},sM={test:Rue("hsl","hue"),parse:lOe("hue","saturation","lightness"),transform:({hue:n,saturation:r,lightness:a,alpha:o=1})=>"hsla("+Math.round(n)+", "+t8.transform(MO(r))+", "+t8.transform(MO(a))+", "+MO(BO.transform(o))+")"},yd={test:n=>Hk.test(n)||Fue.test(n)||sM.test(n),parse:n=>Hk.test(n)?Hk.parse(n):sM.test(n)?sM.parse(n):Fue.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Hk.transform(n):sM.transform(n)},eWt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tWt(n){var r,a;return isNaN(n)&&typeof n=="string"&&(((r=n.match(Iue))===null||r===void 0?void 0:r.length)||0)+(((a=n.match(eWt))===null||a===void 0?void 0:a.length)||0)>0}const uOe="number",hOe="color",nWt="var",rWt="var(",fOe="${}",iWt=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _O(n){const r=n.toString(),a=[],o={color:[],number:[],var:[]},u=[];let d=0;const b=r.replace(iWt,v=>(yd.test(v)?(o.color.push(d),u.push(hOe),a.push(yd.parse(v))):v.startsWith(rWt)?(o.var.push(d),u.push(nWt),a.push(v)):(o.number.push(d),u.push(uOe),a.push(parseFloat(v))),++d,fOe)).split(fOe);return{values:a,split:b,indexes:o,types:u}}function dOe(n){return _O(n).values}function gOe(n){const{split:r,types:a}=_O(n),o=r.length;return u=>{let d="";for(let h=0;h<o;h++)if(d+=r[h],u[h]!==void 0){const b=a[h];b===uOe?d+=MO(u[h]):b===hOe?d+=yd.transform(u[h]):d+=u[h]}return d}}const aWt=n=>typeof n=="number"?0:n;function sWt(n){const r=dOe(n);return gOe(n)(r.map(aWt))}const qA={test:tWt,parse:dOe,createTransformer:gOe,getAnimatableNone:sWt},oWt={correct:(n,{treeScale:r,projectionDelta:a})=>{const o=n,u=qA.parse(n);if(u.length>5)return o;const d=qA.createTransformer(n),h=typeof u[0]!="number"?1:0,b=a.x.scale*r.x,v=a.y.scale*r.y;u[0+h]/=b,u[1+h]/=v;const y=_h(b,v,.5);return typeof u[2+h]=="number"&&(u[2+h]/=y),typeof u[3+h]=="number"&&(u[3+h]/=y),d(u)}},pOe={borderRadius:{...SO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:SO,borderTopRightRadius:SO,borderBottomLeftRadius:SO,borderBottomRightRadius:SO,boxShadow:oWt},$Q={hasAnimatedSinceResize:!0,hasEverUpdated:!1};class cWt extends C5{constructor(r){super(r),JRe(pOe)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var r,a;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((a=(r=this.state.visualElement.projection)==null?void 0:r.root)==null||a.didUpdate())}mount(){var r;const a=this.state.options,o=this.state.options.layoutGroup;if(a.layout||a.layoutId){const u=this.state.visualElement.projection;u&&(u.promote(),(r=o==null?void 0:o.group)==null||r.add(u)),$Q.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const r=this.state.visualElement.projection;r&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(r.isPresent=!1,r.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){var r,a;const o=this.state.options.layoutGroup,u=this.state.visualElement.projection;if(u){if(o!=null&&o.group&&o.group.remove(u),(a=(r=u.getStack())==null?void 0:r.lead)!=null&&a.animationProgress)return;this.didUpdate()}}}function mOe(n){return n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1}function Nue(n,r="page"){return{point:{x:n[`${r}X`],y:n[`${r}Y`]}}}function lWt(n){return r=>mOe(r)&&n(r,Nue(r))}function YQ(n,r,a,o={passive:!0}){return n.addEventListener(r,a,o),()=>n.removeEventListener(r,a)}function LO(n,r,a,o){return YQ(n,r,lWt(a),o)}const bOe=(n,r)=>Math.abs(n-r);function uWt(n,r){const a=bOe(n.x,r.x),o=bOe(n.y,r.y);return Math.sqrt(a**2+o**2)}const hWt=(n,r)=>a=>r(n(a)),DO=(...n)=>n.reduce(hWt),fWt=n=>n*1e3;function dWt(n){return n/1e3}class vOe{constructor(r,a,{transformPagePoint:o,contextWindow:u,dragSnapToOrigin:d=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=zue(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,T=uWt(k.offset,{x:0,y:0})>=3;if(!C&&!T)return;const{point:B}=k,{timestamp:L}=Ff;this.history.push({...B,timestamp:L});const{onStart:I,onMove:O}=this.handlers;C||(I&&I(this.lastMoveEvent,k),this.startEvent=this.lastMoveEvent),O&&O(this.lastMoveEvent,k)},this.handlePointerMove=(k,C)=>{this.lastMoveEvent=k,this.lastMoveEventInfo=Pue(C,this.transformPagePoint),Dl.update(this.updatePoint,!0)},this.handlePointerUp=(k,C)=>{this.end();const{onEnd:T,onSessionEnd:B,resumeAnimation:L}=this.handlers;if(this.dragSnapToOrigin&&L&&L(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const I=zue(k.type==="pointercancel"?this.lastMoveEventInfo:Pue(C,this.transformPagePoint),this.history);this.startEvent&&T&&T(k,I),B&&B(k,I)},!mOe(r))return;this.dragSnapToOrigin=d,this.handlers=a,this.transformPagePoint=o,this.contextWindow=u||window;const h=Nue(r),b=Pue(h,this.transformPagePoint),{point:v}=b,{timestamp:y}=Ff;this.history=[{...v,timestamp:y}];const{onSessionStart:A}=a;A&&A(r,zue(b,this.history)),this.removeListeners=DO(LO(this.contextWindow,"pointermove",this.handlePointerMove),LO(this.contextWindow,"pointerup",this.handlePointerUp),LO(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),e8(this.updatePoint)}}function Pue(n,r){return r?{point:r(n.point)}:n}function wOe(n,r){return{x:n.x-r.x,y:n.y-r.y}}function zue({point:n},r){return{point:n,delta:wOe(n,yOe(r)),offset:wOe(n,gWt(r)),velocity:pWt(r,.1)}}function gWt(n){return n[0]}function yOe(n){return n[n.length-1]}function pWt(n,r){if(n.length<2)return{x:0,y:0};let a=n.length-1,o=null;const u=yOe(n);for(;a>=0&&(o=n[a],!(u.timestamp-o.timestamp>fWt(r)));)a--;if(!o)return{x:0,y:0};const d=dWt(u.timestamp-o.timestamp);if(d===0)return{x:0,y:0};const h={x:(u.x-o.x)/d,y:(u.y-o.y)/d};return h.x===1/0&&(h.x=0),h.y===1/0&&(h.y=0),h}function AOe({current:n}){return n?n.ownerDocument.defaultView:null}function xOe(n){return(r,a)=>{n&&Dl.postRender(()=>n(r,a))}}class mWt extends C5{constructor(){super(...arguments),this.removePointerDownListener=Mg}onPointerDown(r){this.session=new vOe(r,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:AOe(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:xOe((r,a)=>{const{onPanSessionStart:o}=this.state.options;o&&o(r,a)}),onStart:xOe((r,a)=>{const{onPanStart:o}=this.state.options;o&&o(r,a)}),onMove:(r,a)=>{const{onPan:o}=this.state.options;o&&o(r,a)},onEnd:(r,a)=>{const{onPanEnd:o}=this.state.options;delete this.session,o&&Dl.postRender(()=>o(r,a))}}}mount(){this.removePointerDownListener=LO(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function kOe(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}class bWt extends C5{constructor(r){super(r)}updateAnimationControlsSubscription(){const{animate:r}=this.state.options;kOe(r)&&(this.unmountControls=r.subscribe(this.state))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.state.options,{animate:a}=this.state.visualElement.prevProps||{};r!==a&&this.updateAnimationControlsSubscription()}unmount(){var r;(r=this.unmountControls)==null||r.call(this)}}function jue(n,r){return n?n[r]||n.default||n:void 0}const vWt={useManualTiming:!1};let WQ;function wWt(){WQ=void 0}const T5={now:()=>(WQ===void 0&&T5.set(Ff.isProcessing||vWt.useManualTiming?Ff.timestamp:performance.now()),WQ),set:n=>{WQ=n,queueMicrotask(wWt)}};function Hue(n,r){n.indexOf(r)===-1&&n.push(r)}function KQ(n,r){const a=n.indexOf(r);a>-1&&n.splice(a,1)}class Vue{constructor(){this.subscriptions=[]}add(r){return Hue(this.subscriptions,r),()=>KQ(this.subscriptions,r)}notify(r,a,o){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](r,a,o);else for(let d=0;d<u;d++){const h=this.subscriptions[d];h&&h(r,a,o)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function EOe(n,r){return r?n*(1e3/r):0}const COe=30,yWt=n=>!isNaN(parseFloat(n));class AWt{constructor(r,a={}){this.version="12.4.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(o,u=!0)=>{const d=T5.now();this.updatedAt!==d&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(r),this.owner=a.owner}setCurrent(r){this.current=r,this.updatedAt=T5.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=yWt(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,a){this.events[r]||(this.events[r]=new Vue);const o=this.events[r].add(a);return r==="change"?()=>{o(),Dl.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,a){this.passiveEffect=r,this.stopPassiveEffect=a}set(r,a=!0){!a||!this.passiveEffect?this.updateAndNotify(r,a):this.passiveEffect(r,this.updateAndNotify)}setWithVelocity(r,a,o){this.set(a),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,a=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=T5.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>COe)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,COe);return EOe(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(r){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=r(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function IO(n,r){return new AWt(n,r)}const Ad=n=>!!(n&&n.getVelocity);function Uue(n){let r;return()=>(r===void 0&&(r=n()),r)}const xWt=Uue(()=>window.ScrollTimeline!==void 0);class kWt{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>"finished"in r?r.finished:r))}getAll(r){return this.animations[0][r]}setAll(r,a){for(let o=0;o<this.animations.length;o++)this.animations[o][r]=a}attachTimeline(r,a){const o=this.animations.map(u=>{if(xWt()&&u.attachTimeline)return u.attachTimeline(r);if(typeof a=="function")return a(u)});return()=>{o.forEach((u,d)=>{u&&u(),this.animations[d].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get startTime(){return this.getAll("startTime")}get duration(){let r=0;for(let a=0;a<this.animations.length;a++)r=Math.max(r,this.animations[a].duration);return r}runAll(r){this.animations.forEach(a=>a[r]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class TOe extends kWt{then(r,a){return Promise.all(this.animations).then(r).catch(a)}}const n8=n=>n*1e3,r8=n=>n/1e3;function XQ(n){return typeof n=="function"}function SOe(n,r){n.timeline=r,n.onfinish=null}const Gue=n=>Array.isArray(n)&&typeof n[0]=="number",EWt={linearEasing:void 0};function CWt(n,r){const a=Uue(n);return()=>{var o;return(o=EWt[r])!==null&&o!==void 0?o:a()}}const JQ=CWt(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),RO=(n,r,a)=>{const o=r-n;return o===0?1:(a-n)/o},BOe=(n,r,a=10)=>{let o="";const u=Math.max(Math.round(r/a),2);for(let d=0;d<u;d++)o+=n(RO(0,u-1,d))+", ";return`linear(${o.substring(0,o.length-2)})`};function MOe(n){return!!(typeof n=="function"&&JQ()||!n||typeof n=="string"&&(n in que||JQ())||Gue(n)||Array.isArray(n)&&n.every(MOe))}const OO=([n,r,a,o])=>`cubic-bezier(${n}, ${r}, ${a}, ${o})`,que={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:OO([0,.65,.55,1]),circOut:OO([.55,0,1,.45]),backIn:OO([.31,.01,.66,-.59]),backOut:OO([.33,1.53,.69,.99])};function _Oe(n,r){if(n)return typeof n=="function"&&JQ()?BOe(n,r):Gue(n)?OO(n):Array.isArray(n)?n.map(a=>_Oe(a,r)||que.easeOut):que[n]}const LOe=(n,r,a)=>(((1-3*a+3*r)*n+(3*a-6*r))*n+3*r)*n,TWt=1e-7,SWt=12;function BWt(n,r,a,o,u){let d,h,b=0;do h=r+(a-r)/2,d=LOe(h,o,u)-n,d>0?a=h:r=h;while(Math.abs(d)>TWt&&++b<SWt);return h}function FO(n,r,a,o){if(n===r&&a===o)return Mg;const u=d=>BWt(d,0,1,n,a);return d=>d===0||d===1?d:LOe(u(d),r,o)}const DOe=n=>r=>r<=.5?n(2*r)/2:(2-n(2*(1-r)))/2,IOe=n=>r=>1-n(1-r),ROe=FO(.33,1.53,.69,.99),Que=IOe(ROe),OOe=DOe(Que),FOe=n=>(n*=2)<1?.5*Que(n):.5*(2-Math.pow(2,-10*(n-1))),$ue=n=>1-Math.sin(Math.acos(n)),NOe=IOe($ue),POe=DOe($ue),zOe=n=>/^0[^.\s]+$/u.test(n);function MWt(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||zOe(n):!0}const oM=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],cM=new Set(oM),jOe=new Set(["width","height","top","left","right","bottom",...oM]),_Wt=new Set(["brightness","contrast","saturate","opacity"]);function LWt(n){const[r,a]=n.slice(0,-1).split("(");if(r==="drop-shadow")return n;const[o]=a.match(Iue)||[];if(!o)return n;const u=a.replace(o,"");let d=_Wt.has(r)?1:0;return o!==a&&(d*=100),r+"("+d+u+")"}const DWt=/\b([a-z-]*)\(.*?\)/gu,Yue={...qA,getAnimatableNone:n=>{const r=n.match(DWt);return r?r.map(LWt).join(" "):n}},IWt={borderWidth:Ja,borderTopWidth:Ja,borderRightWidth:Ja,borderBottomWidth:Ja,borderLeftWidth:Ja,borderRadius:Ja,radius:Ja,borderTopLeftRadius:Ja,borderTopRightRadius:Ja,borderBottomRightRadius:Ja,borderBottomLeftRadius:Ja,width:Ja,maxWidth:Ja,height:Ja,maxHeight:Ja,top:Ja,right:Ja,bottom:Ja,left:Ja,padding:Ja,paddingTop:Ja,paddingRight:Ja,paddingBottom:Ja,paddingLeft:Ja,margin:Ja,marginTop:Ja,marginRight:Ja,marginBottom:Ja,marginLeft:Ja,backgroundPositionX:Ja,backgroundPositionY:Ja},RWt={rotate:UA,rotateX:UA,rotateY:UA,rotateZ:UA,scale:QQ,scaleX:QQ,scaleY:QQ,scaleZ:QQ,skew:UA,skewX:UA,skewY:UA,distance:Ja,translateX:Ja,translateY:Ja,translateZ:Ja,x:Ja,y:Ja,z:Ja,perspective:Ja,transformPerspective:Ja,opacity:BO,originX:oOe,originY:oOe,originZ:Ja},HOe={...aM,transform:Math.round},Wue={...IWt,...RWt,zIndex:HOe,size:Ja,fillOpacity:BO,strokeOpacity:BO,numOctaves:HOe},OWt={...Wue,color:yd,backgroundColor:yd,outlineColor:yd,fill:yd,stroke:yd,borderColor:yd,borderTopColor:yd,borderRightColor:yd,borderBottomColor:yd,borderLeftColor:yd,filter:Yue,WebkitFilter:Yue},Kue=n=>OWt[n];function VOe(n,r){let a=Kue(n);return a!==Yue&&(a=qA),a.getAnimatableNone?a.getAnimatableNone(r):void 0}const FWt=new Set(["auto","none","0"]);function NWt(n,r,a){let o=0,u;for(;o<n.length&&!u;){const d=n[o];typeof d=="string"&&!FWt.has(d)&&_O(d).values.length&&(u=n[o]),o++}if(u&&a)for(const d of r)n[d]=VOe(a,u)}const UOe=n=>n===aM||n===Ja,GOe=(n,r)=>parseFloat(n.split(", ")[r]),qOe=(n,r)=>(a,{transform:o})=>{if(o==="none"||!o)return 0;const u=o.match(/^matrix3d\((.+)\)$/u);if(u)return GOe(u[1],r);{const d=o.match(/^matrix\((.+)\)$/u);return d?GOe(d[1],n):0}},PWt=new Set(["x","y","z"]),zWt=oM.filter(n=>!PWt.has(n));function jWt(n){const r=[];return zWt.forEach(a=>{const o=n.getValue(a);o!==void 0&&(r.push([a,o.get()]),o.set(a.startsWith("scale")?1:0))}),r}const lM={width:({x:n},{paddingLeft:r="0",paddingRight:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),height:({y:n},{paddingTop:r="0",paddingBottom:a="0"})=>n.max-n.min-parseFloat(r)-parseFloat(a),top:(n,{top:r})=>parseFloat(r),left:(n,{left:r})=>parseFloat(r),bottom:({y:n},{top:r})=>parseFloat(r)+(n.max-n.min),right:({x:n},{left:r})=>parseFloat(r)+(n.max-n.min),x:qOe(4,13),y:qOe(5,14)};lM.translateX=lM.x,lM.translateY=lM.y;const Vk=new Set;let Xue=!1,Jue=!1;function QOe(){if(Jue){const n=Array.from(Vk).filter(o=>o.needsMeasurement),r=new Set(n.map(o=>o.element)),a=new Map;r.forEach(o=>{const u=jWt(o);u.length&&(a.set(o,u),o.render())}),n.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const u=a.get(o);u&&u.forEach(([d,h])=>{var b;(b=o.getValue(d))===null||b===void 0||b.set(h)})}),n.forEach(o=>o.measureEndState()),n.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}Jue=!1,Xue=!1,Vk.forEach(n=>n.complete()),Vk.clear()}function $Oe(){Vk.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(Jue=!0)})}function HWt(){$Oe(),QOe()}class Zue{constructor(r,a,o,u,d,h=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...r],this.onComplete=a,this.name=o,this.motionValue=u,this.element=d,this.isAsync=h}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Vk.add(this),Xue||(Xue=!0,Dl.read($Oe),Dl.resolveKeyframes(QOe))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:a,element:o,motionValue:u}=this;for(let d=0;d<r.length;d++)if(r[d]===null)if(d===0){const h=u==null?void 0:u.get(),b=r[r.length-1];if(h!==void 0)r[0]=h;else if(o&&a){const v=o.readValue(a,b);v!=null&&(r[0]=v)}r[0]===void 0&&(r[0]=b),u&&h===void 0&&u.set(r[0])}else r[d]=r[d-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Vk.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Vk.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const YOe=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),VWt=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function UWt(n){const r=VWt.exec(n);if(!r)return[,];const[,a,o,u]=r;return[`--${a??o}`,u]}function WOe(n,r,a=1){const[o,u]=UWt(n);if(!o)return;const d=window.getComputedStyle(r).getPropertyValue(o);if(d){const h=d.trim();return YOe(h)?parseFloat(h):h}return _ue(u)?WOe(u,r,a+1):u}const KOe=n=>r=>r.test(n),XOe=[aM,Ja,t8,UA,WYt,YYt,{test:n=>n==="auto",parse:n=>n}],JOe=n=>XOe.find(KOe(n));class ZOe extends Zue{constructor(r,a,o,u,d){super(r,a,o,u,d,!0)}readKeyframes(){const{unresolvedKeyframes:r,element:a,name:o}=this;if(!a||!a.current)return;super.readKeyframes();for(let v=0;v<r.length;v++){let y=r[v];if(typeof y=="string"&&(y=y.trim(),_ue(y))){const A=WOe(y,a.current);A!==void 0&&(r[v]=A),v===r.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!jOe.has(o)||r.length!==2)return;const[u,d]=r,h=JOe(u),b=JOe(d);if(h!==b)if(UOe(h)&&UOe(b))for(let v=0;v<r.length;v++){const y=r[v];typeof y=="string"&&(r[v]=parseFloat(y))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:a}=this,o=[];for(let u=0;u<r.length;u++)MWt(r[u])&&o.push(u);o.length&&NWt(r,o,a)}measureInitialState(){const{element:r,unresolvedKeyframes:a,name:o}=this;if(!r||!r.current)return;o==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=lM[o](r.measureViewportBox(),window.getComputedStyle(r.current)),a[0]=this.measuredOrigin;const u=a[a.length-1];u!==void 0&&r.getValue(o,u).jump(u,!1)}measureEndState(){var r;const{element:a,name:o,unresolvedKeyframes:u}=this;if(!a||!a.current)return;const d=a.getValue(o);d&&d.jump(this.measuredOrigin,!1);const h=u.length-1,b=u[h];u[h]=lM[o](a.measureViewportBox(),window.getComputedStyle(a.current)),b!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=b),!((r=this.removedTransforms)===null||r===void 0)&&r.length&&this.removedTransforms.forEach(([v,y])=>{a.getValue(v).set(y)}),this.resolveNoneKeyframes()}}const eFe=(n,r)=>r==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(qA.test(n)||n==="0")&&!n.startsWith("url("));function GWt(n){const r=n[0];if(n.length===1)return!0;for(let a=0;a<n.length;a++)if(n[a]!==r)return!0}function qWt(n,r,a,o){const u=n[0];if(u===null)return!1;if(r==="display"||r==="visibility")return!0;const d=n[n.length-1],h=eFe(u,r),b=eFe(d,r);return!h||!b?!1:GWt(n)||(a==="spring"||XQ(a))&&o}const QWt=n=>n!==null;function ZQ(n,{repeat:r,repeatType:a="loop"},o){const u=n.filter(QWt),d=r&&a!=="loop"&&r%2===1?0:u.length-1;return!d||o===void 0?u[d]:o}const $Wt=40;class tFe{constructor({autoplay:r=!0,delay:a=0,type:o="keyframes",repeat:u=0,repeatDelay:d=0,repeatType:h="loop",...b}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=T5.now(),this.options={autoplay:r,delay:a,type:o,repeat:u,repeatDelay:d,repeatType:h,...b},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$Wt?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&HWt(),this._resolved}onKeyframesResolved(r,a){this.resolvedAt=T5.now(),this.hasAttemptedResolve=!0;const{name:o,type:u,velocity:d,delay:h,onComplete:b,onUpdate:v,isGenerator:y}=this.options;if(!y&&!qWt(r,o,u,d))if(h)this.options.duration=0;else{v&&v(ZQ(r,this.options,a)),b&&b(),this.resolveFinishedPromise();return}const A=this.initPlayback(r,a);A!==!1&&(this._resolved={keyframes:r,finalKeyframe:a,...A},this.onPostResolved())}onPostResolved(){}then(r,a){return this.currentFinishedPromise.then(r,a)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(r=>{this.resolveFinishedPromise=r})}}const e$=2e4;function e0e(n){let r=0;const a=50;let o=n.next(r);for(;!o.done&&r<e$;)r+=a,o=n.next(r);return r>=e$?1/0:r}function t0e(n,r,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?n+(r-n)*6*a:a<1/2?r:a<2/3?n+(r-n)*(2/3-a)*6:n}function YWt({hue:n,saturation:r,lightness:a,alpha:o}){n/=360,r/=100,a/=100;let u=0,d=0,h=0;if(!r)u=d=h=a;else{const b=a<.5?a*(1+r):a+r-a*r,v=2*a-b;u=t0e(v,b,n+1/3),d=t0e(v,b,n),h=t0e(v,b,n-1/3)}return{red:Math.round(u*255),green:Math.round(d*255),blue:Math.round(h*255),alpha:o}}function t$(n,r){return a=>a>0?r:n}const n0e=(n,r,a)=>{const o=n*n,u=a*(r*r-o)+o;return u<0?0:Math.sqrt(u)},WWt=[Fue,Hk,sM],KWt=n=>WWt.find(r=>r.test(n));function nFe(n){const r=KWt(n);if(!r)return!1;let a=r.parse(n);return r===sM&&(a=YWt(a)),a}const rFe=(n,r)=>{const a=nFe(n),o=nFe(r);if(!a||!o)return t$(n,r);const u={...a};return d=>(u.red=n0e(a.red,o.red,d),u.green=n0e(a.green,o.green,d),u.blue=n0e(a.blue,o.blue,d),u.alpha=_h(a.alpha,o.alpha,d),Hk.transform(u))},r0e=new Set(["none","hidden"]);function XWt(n,r){return r0e.has(n)?a=>a<=0?n:r:a=>a>=1?r:n}function JWt(n,r){return a=>_h(n,r,a)}function i0e(n){return typeof n=="number"?JWt:typeof n=="string"?_ue(n)?t$:yd.test(n)?rFe:tKt:Array.isArray(n)?iFe:typeof n=="object"?yd.test(n)?rFe:ZWt:t$}function iFe(n,r){const a=[...n],o=a.length,u=n.map((d,h)=>i0e(d)(d,r[h]));return d=>{for(let h=0;h<o;h++)a[h]=u[h](d);return a}}function ZWt(n,r){const a={...n,...r},o={};for(const u in a)n[u]!==void 0&&r[u]!==void 0&&(o[u]=i0e(n[u])(n[u],r[u]));return u=>{for(const d in o)a[d]=o[d](u);return a}}function eKt(n,r){var a;const o=[],u={color:0,var:0,number:0};for(let d=0;d<r.values.length;d++){const h=r.types[d],b=n.indexes[h][u[h]],v=(a=n.values[b])!==null&&a!==void 0?a:0;o[d]=v,u[h]++}return o}const tKt=(n,r)=>{const a=qA.createTransformer(r),o=_O(n),u=_O(r);return o.indexes.var.length===u.indexes.var.length&&o.indexes.color.length===u.indexes.color.length&&o.indexes.number.length>=u.indexes.number.length?r0e.has(n)&&!u.values.length||r0e.has(r)&&!o.values.length?XWt(n,r):DO(iFe(eKt(o,u),u.values),a):t$(n,r)};function aFe(n,r,a){return typeof n=="number"&&typeof r=="number"&&typeof a=="number"?_h(n,r,a):i0e(n)(n,r)}const nKt=5;function sFe(n,r,a){const o=Math.max(r-nKt,0);return EOe(a-n(o),r-o)}const E0={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},a0e=.001;function rKt({duration:n=E0.duration,bounce:r=E0.bounce,velocity:a=E0.velocity,mass:o=E0.mass}){let u,d,h=1-r;h=GA(E0.minDamping,E0.maxDamping,h),n=GA(E0.minDuration,E0.maxDuration,r8(n)),h<1?(u=y=>{const A=y*h,k=A*n,C=A-a,T=s0e(y,h),B=Math.exp(-k);return a0e-C/T*B},d=y=>{const k=y*h*n,C=k*a+a,T=Math.pow(h,2)*Math.pow(y,2)*n,B=Math.exp(-k),L=s0e(Math.pow(y,2),h);return(-u(y)+a0e>0?-1:1)*((C-T)*B)/L}):(u=y=>{const A=Math.exp(-y*n),k=(y-a)*n+1;return-a0e+A*k},d=y=>{const A=Math.exp(-y*n),k=(a-y)*(n*n);return A*k});const b=5/n,v=aKt(u,d,b);if(n=n8(n),isNaN(v))return{stiffness:E0.stiffness,damping:E0.damping,duration:n};{const y=Math.pow(v,2)*o;return{stiffness:y,damping:h*2*Math.sqrt(o*y),duration:n}}}const iKt=12;function aKt(n,r,a){let o=a;for(let u=1;u<iKt;u++)o=o-n(o)/r(o);return o}function s0e(n,r){return n*Math.sqrt(1-r*r)}const sKt=["duration","bounce"],oKt=["stiffness","damping","mass"];function oFe(n,r){return r.some(a=>n[a]!==void 0)}function cKt(n){let r={velocity:E0.velocity,stiffness:E0.stiffness,damping:E0.damping,mass:E0.mass,isResolvedFromDuration:!1,...n};if(!oFe(n,oKt)&&oFe(n,sKt))if(n.visualDuration){const a=n.visualDuration,o=2*Math.PI/(a*1.2),u=o*o,d=2*GA(.05,1,1-(n.bounce||0))*Math.sqrt(u);r={...r,mass:E0.mass,stiffness:u,damping:d}}else{const a=rKt(n);r={...r,...a,mass:E0.mass},r.isResolvedFromDuration=!0}return r}function o0e(n=E0.visualDuration,r=E0.bounce){const a=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:r}:n;let{restSpeed:o,restDelta:u}=a;const d=a.keyframes[0],h=a.keyframes[a.keyframes.length-1],b={done:!1,value:d},{stiffness:v,damping:y,mass:A,duration:k,velocity:C,isResolvedFromDuration:T}=cKt({...a,velocity:-r8(a.velocity||0)}),B=C||0,L=y/(2*Math.sqrt(v*A)),I=h-d,O=r8(Math.sqrt(v/A)),F=Math.abs(I)<5;o||(o=F?E0.restSpeed.granular:E0.restSpeed.default),u||(u=F?E0.restDelta.granular:E0.restDelta.default);let z;if(L<1){const G=s0e(O,L);z=U=>{const q=Math.exp(-L*O*U);return h-q*((B+L*O*I)/G*Math.sin(G*U)+I*Math.cos(G*U))}}else if(L===1)z=G=>h-Math.exp(-O*G)*(I+(B+O*I)*G);else{const G=O*Math.sqrt(L*L-1);z=U=>{const q=Math.exp(-L*O*U),Q=Math.min(G*U,300);return h-q*((B+L*O*I)*Math.sinh(Q)+G*I*Math.cosh(Q))/G}}const j={calculatedDuration:T&&k||null,next:G=>{const U=z(G);if(T)b.done=G>=k;else{let q=0;L<1&&(q=G===0?n8(B):sFe(z,G,U));const Q=Math.abs(q)<=o,H=Math.abs(h-U)<=u;b.done=Q&&H}return b.value=b.done?h:U,b},toString:()=>{const G=Math.min(e0e(j),e$),U=BOe(q=>j.next(G*q).value,G,30);return G+"ms "+U}};return j}function cFe({keyframes:n,velocity:r=0,power:a=.8,timeConstant:o=325,bounceDamping:u=10,bounceStiffness:d=500,modifyTarget:h,min:b,max:v,restDelta:y=.5,restSpeed:A}){const k=n[0],C={done:!1,value:k},T=Q=>b!==void 0&&Q<b||v!==void 0&&Q>v,B=Q=>b===void 0?v:v===void 0||Math.abs(b-Q)<Math.abs(v-Q)?b:v;let L=a*r;const I=k+L,O=h===void 0?I:h(I);O!==I&&(L=O-k);const F=Q=>-L*Math.exp(-Q/o),z=Q=>O+F(Q),j=Q=>{const H=F(Q),Y=z(Q);C.done=Math.abs(H)<=y,C.value=C.done?O:Y};let G,U;const q=Q=>{T(C.value)&&(G=Q,U=o0e({keyframes:[C.value,B(C.value)],velocity:sFe(z,Q,C.value),damping:u,stiffness:d,restDelta:y,restSpeed:A}))};return q(0),{calculatedDuration:null,next:Q=>{let H=!1;return!U&&G===void 0&&(H=!0,j(Q),q(Q)),G!==void 0&&Q>=G?U.next(Q-G):(!H&&j(Q),C)}}}const lKt=FO(.42,0,1,1),uKt=FO(0,0,.58,1),lFe=FO(.42,0,.58,1),uFe=n=>Array.isArray(n)&&typeof n[0]!="number",hKt={linear:Mg,easeIn:lKt,easeInOut:lFe,easeOut:uKt,circIn:$ue,circInOut:POe,circOut:NOe,backIn:Que,backInOut:OOe,backOut:ROe,anticipate:FOe},hFe=n=>{if(Gue(n)){aOe(n.length===4);const[r,a,o,u]=n;return FO(r,a,o,u)}else if(typeof n=="string")return hKt[n];return n};function fKt(n,r,a){const o=[],u=a||aFe,d=n.length-1;for(let h=0;h<d;h++){let b=u(n[h],n[h+1]);if(r){const v=Array.isArray(r)?r[h]||Mg:r;b=DO(v,b)}o.push(b)}return o}function dKt(n,r,{clamp:a=!0,ease:o,mixer:u}={}){const d=n.length;if(aOe(d===r.length),d===1)return()=>r[0];if(d===2&&r[0]===r[1])return()=>r[1];const h=n[0]===n[1];n[0]>n[d-1]&&(n=[...n].reverse(),r=[...r].reverse());const b=fKt(r,o,u),v=b.length,y=A=>{if(h&&A<n[0])return r[0];let k=0;if(v>1)for(;k<n.length-2&&!(A<n[k+1]);k++);const C=RO(n[k],n[k+1],A);return b[k](C)};return a?A=>y(GA(n[0],n[d-1],A)):y}function fFe(n,r){const a=n[n.length-1];for(let o=1;o<=r;o++){const u=RO(0,r,o);n.push(_h(a,1,u))}}function dFe(n){const r=[0];return fFe(r,n.length-1),r}function gKt(n,r){return n.map(a=>a*r)}function pKt(n,r){return n.map(()=>r||lFe).splice(0,n.length-1)}function n$({duration:n=300,keyframes:r,times:a,ease:o="easeInOut"}){const u=uFe(o)?o.map(hFe):hFe(o),d={done:!1,value:r[0]},h=gKt(a&&a.length===r.length?a:dFe(r),n),b=dKt(h,r,{ease:Array.isArray(u)?u:pKt(r,u)});return{calculatedDuration:n,next:v=>(d.value=b(v),d.done=v>=n,d)}}const mKt=n=>{const r=({timestamp:a})=>n(a);return{start:()=>Dl.update(r,!0),stop:()=>e8(r),now:()=>Ff.isProcessing?Ff.timestamp:T5.now()}},bKt={decay:cFe,inertia:cFe,tween:n$,keyframes:n$,spring:o0e},vKt=n=>n/100;class c0e extends tFe{constructor(r){super(r),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:v}=this.options;v&&v()};const{name:a,motionValue:o,element:u,keyframes:d}=this.options,h=(u==null?void 0:u.KeyframeResolver)||Zue,b=(v,y)=>this.onKeyframesResolved(v,y);this.resolver=new h(d,b,a,o,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(r){const{type:a="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:d,velocity:h=0}=this.options,b=XQ(a)?a:bKt[a]||n$;let v,y;b!==n$&&typeof r[0]!="number"&&(v=DO(vKt,aFe(r[0],r[1])),r=[0,100]);const A=b({...this.options,keyframes:r});d==="mirror"&&(y=b({...this.options,keyframes:[...r].reverse(),velocity:-h})),A.calculatedDuration===null&&(A.calculatedDuration=e0e(A));const{calculatedDuration:k}=A,C=k+u,T=C*(o+1)-u;return{generator:A,mirroredGenerator:y,mapPercentToKeyframes:v,calculatedDuration:k,resolvedDuration:C,totalDuration:T}}onPostResolved(){const{autoplay:r=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!r?this.pause():this.state=this.pendingPlayState}tick(r,a=!1){const{resolved:o}=this;if(!o){const{keyframes:Q}=this.options;return{done:!0,value:Q[Q.length-1]}}const{finalKeyframe:u,generator:d,mirroredGenerator:h,mapPercentToKeyframes:b,keyframes:v,calculatedDuration:y,totalDuration:A,resolvedDuration:k}=o;if(this.startTime===null)return d.next(0);const{delay:C,repeat:T,repeatType:B,repeatDelay:L,onUpdate:I}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-A/this.speed,this.startTime)),a?this.currentTime=r:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(r-this.startTime)*this.speed;const O=this.currentTime-C*(this.speed>=0?1:-1),F=this.speed>=0?O<0:O>A;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=A);let z=this.currentTime,j=d;if(T){const Q=Math.min(this.currentTime,A)/k;let H=Math.floor(Q),Y=Q%1;!Y&&Q>=1&&(Y=1),Y===1&&H--,H=Math.min(H,T+1),!!(H%2)&&(B==="reverse"?(Y=1-Y,L&&(Y-=L/k)):B==="mirror"&&(j=h)),z=GA(0,1,Y)*k}const G=F?{done:!1,value:v[0]}:j.next(z);b&&(G.value=b(G.value));let{done:U}=G;!F&&y!==null&&(U=this.speed>=0?this.currentTime>=A:this.currentTime<=0);const q=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&U);return q&&u!==void 0&&(G.value=ZQ(v,this.options,u)),I&&I(G.value),q&&this.finish(),G}get duration(){const{resolved:r}=this;return r?r8(r.calculatedDuration):0}get time(){return r8(this.currentTime)}set time(r){r=n8(r),this.currentTime=r,this.holdTime!==null||this.speed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.speed)}get speed(){return this.playbackSpeed}set speed(r){const a=this.playbackSpeed!==r;this.playbackSpeed=r,a&&(this.time=r8(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:r=mKt,onPlay:a,startTime:o}=this.options;this.driver||(this.driver=r(d=>this.tick(d))),a&&a();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=o??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var r;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(r=this.currentTime)!==null&&r!==void 0?r:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:r}=this.options;r&&r()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}}const wKt=new Set(["opacity","clipPath","filter","transform"]);function yKt(n,r,a,{delay:o=0,duration:u=300,repeat:d=0,repeatType:h="loop",ease:b="easeInOut",times:v}={}){const y={[r]:a};v&&(y.offset=v);const A=_Oe(b,u);return Array.isArray(A)&&(y.easing=A),n.animate(y,{delay:o,duration:u,easing:Array.isArray(A)?"linear":A,fill:"both",iterations:d+1,direction:h==="reverse"?"alternate":"normal"})}const AKt=Uue(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),r$=10,xKt=2e4;function kKt(n){return XQ(n.type)||n.type==="spring"||!MOe(n.ease)}function EKt(n,r){const a=new c0e({...r,keyframes:n,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:n[0]};const u=[];let d=0;for(;!o.done&&d<xKt;)o=a.sample(d),u.push(o.value),d+=r$;return{times:void 0,keyframes:u,duration:d-r$,ease:"linear"}}const gFe={anticipate:FOe,backInOut:OOe,circInOut:POe};function CKt(n){return n in gFe}class pFe extends tFe{constructor(r){super(r);const{name:a,motionValue:o,element:u,keyframes:d}=this.options;this.resolver=new ZOe(d,(h,b)=>this.onKeyframesResolved(h,b),a,o,u),this.resolver.scheduleResolve()}initPlayback(r,a){let{duration:o=300,times:u,ease:d,type:h,motionValue:b,name:v,startTime:y}=this.options;if(!b.owner||!b.owner.current)return!1;if(typeof d=="string"&&JQ()&&CKt(d)&&(d=gFe[d]),kKt(this.options)){const{onComplete:k,onUpdate:C,motionValue:T,element:B,...L}=this.options,I=EKt(r,L);r=I.keyframes,r.length===1&&(r[1]=r[0]),o=I.duration,u=I.times,d=I.ease,h="keyframes"}const A=yKt(b.owner.current,v,r,{...this.options,duration:o,times:u,ease:d});return A.startTime=y??this.calcStartTime(),this.pendingTimeline?(SOe(A,this.pendingTimeline),this.pendingTimeline=void 0):A.onfinish=()=>{const{onComplete:k}=this.options;b.set(ZQ(r,this.options,a)),k&&k(),this.cancel(),this.resolveFinishedPromise()},{animation:A,duration:o,times:u,type:h,ease:d,keyframes:r}}get duration(){const{resolved:r}=this;if(!r)return 0;const{duration:a}=r;return r8(a)}get time(){const{resolved:r}=this;if(!r)return 0;const{animation:a}=r;return r8(a.currentTime||0)}set time(r){const{resolved:a}=this;if(!a)return;const{animation:o}=a;o.currentTime=n8(r)}get speed(){const{resolved:r}=this;if(!r)return 1;const{animation:a}=r;return a.playbackRate}set speed(r){const{resolved:a}=this;if(!a)return;const{animation:o}=a;o.playbackRate=r}get state(){const{resolved:r}=this;if(!r)return"idle";const{animation:a}=r;return a.playState}get startTime(){const{resolved:r}=this;if(!r)return null;const{animation:a}=r;return a.startTime}attachTimeline(r){if(!this._resolved)this.pendingTimeline=r;else{const{resolved:a}=this;if(!a)return Mg;const{animation:o}=a;SOe(o,r)}return Mg}play(){if(this.isStopped)return;const{resolved:r}=this;if(!r)return;const{animation:a}=r;a.playState==="finished"&&this.updateFinishedPromise(),a.play()}pause(){const{resolved:r}=this;if(!r)return;const{animation:a}=r;a.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:r}=this;if(!r)return;const{animation:a,keyframes:o,duration:u,type:d,ease:h,times:b}=r;if(a.playState==="idle"||a.playState==="finished")return;if(this.time){const{motionValue:y,onUpdate:A,onComplete:k,element:C,...T}=this.options,B=new c0e({...T,keyframes:o,duration:u,type:d,ease:h,times:b,isGenerator:!0}),L=n8(this.time);y.setWithVelocity(B.sample(L-r$).value,B.sample(L).value,r$)}const{onStop:v}=this.options;v&&v(),this.cancel()}complete(){const{resolved:r}=this;r&&r.animation.finish()}cancel(){const{resolved:r}=this;r&&r.animation.cancel()}static supports(r){const{motionValue:a,name:o,repeatDelay:u,repeatType:d,damping:h,type:b}=r;if(!a||!a.owner||!(a.owner.current instanceof HTMLElement))return!1;const{onUpdate:v,transformTemplate:y}=a.owner.getProps();return AKt()&&o&&wKt.has(o)&&!v&&!y&&!u&&d!=="mirror"&&h!==0&&b!=="inertia"}}const TKt={type:"spring",stiffness:500,damping:25,restSpeed:10},SKt=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),BKt={type:"keyframes",duration:.8},MKt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_Kt=(n,{keyframes:r})=>r.length>2?BKt:cM.has(n)?n.startsWith("scale")?SKt(r[1]):TKt:MKt;function LKt({when:n,delay:r,delayChildren:a,staggerChildren:o,staggerDirection:u,repeat:d,repeatType:h,repeatDelay:b,from:v,elapsed:y,...A}){return!!Object.keys(A).length}const l0e=(n,r,a,o={},u,d)=>h=>{const b=jue(o,n)||{},v=b.delay||o.delay||0;let{elapsed:y=0}=o;y=y-n8(v);let A={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:r.getVelocity(),...b,delay:-y,onUpdate:C=>{r.set(C),b.onUpdate&&b.onUpdate(C)},onComplete:()=>{h(),b.onComplete&&b.onComplete()},name:n,motionValue:r,element:d?void 0:u};LKt(b)||(A={...A,..._Kt(n,A)}),A.duration&&(A.duration=n8(A.duration)),A.repeatDelay&&(A.repeatDelay=n8(A.repeatDelay)),A.from!==void 0&&(A.keyframes[0]=A.from);let k=!1;if((A.type===!1||A.duration===0&&!A.repeatDelay)&&(A.duration=0,A.delay===0&&(k=!0)),k&&!d&&r.get()!==void 0){const C=ZQ(A.keyframes,b);if(C!==void 0)return Dl.update(()=>{A.onUpdate(C),A.onComplete()}),new TOe([])}return!d&&pFe.supports(A)?new pFe(A):new c0e(A)};function mFe(n,r,a){const o=Ad(n)?n:IO(n);return o.start(l0e("",o,r,a)),o.animation}const u0e=n=>n.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),DKt="data-"+u0e("framerAppearId");function bFe(n){return n.props[DKt]}const{schedule:IKt}=sOe(queueMicrotask,!1);function vFe(n){return n instanceof SVGElement&&n.tagName!=="svg"}const RKt=(n,r)=>n.depth-r.depth;class OKt{constructor(){this.children=[],this.isDirty=!1}add(r){Hue(this.children,r),this.isDirty=!0}remove(r){KQ(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(RKt),this.isDirty=!1,this.children.forEach(r)}}function FKt(n,r){const a=T5.now(),o=({timestamp:u})=>{const d=u-a;d>=r&&(e8(o),n(d-r))};return Dl.read(o,!0),()=>e8(o)}const NKt=n=>Array.isArray(n),PKt=n=>!!(n&&typeof n=="object"&&n.mix&&n.toValue),zKt=n=>NKt(n)?n[n.length-1]||0:n;function h0e(n){const r=Ad(n)?n.get():n;return PKt(r)?r.toValue():r}const wFe=["TopLeft","TopRight","BottomLeft","BottomRight"],jKt=wFe.length,yFe=n=>typeof n=="string"?parseFloat(n):n,AFe=n=>typeof n=="number"||Ja.test(n);function HKt(n,r,a,o,u,d){u?(n.opacity=_h(0,a.opacity!==void 0?a.opacity:1,VKt(o)),n.opacityExit=_h(r.opacity!==void 0?r.opacity:1,0,UKt(o))):d&&(n.opacity=_h(r.opacity!==void 0?r.opacity:1,a.opacity!==void 0?a.opacity:1,o));for(let h=0;h<jKt;h++){const b=`border${wFe[h]}Radius`;let v=xFe(r,b),y=xFe(a,b);if(v===void 0&&y===void 0)continue;v||(v=0),y||(y=0),v===0||y===0||AFe(v)===AFe(y)?(n[b]=Math.max(_h(yFe(v),yFe(y),o),0),(t8.test(y)||t8.test(v))&&(n[b]+="%")):n[b]=y}(r.rotate||a.rotate)&&(n.rotate=_h(r.rotate||0,a.rotate||0,o))}function xFe(n,r){return n[r]!==void 0?n[r]:n.borderRadius}const VKt=kFe(0,.5,NOe),UKt=kFe(.5,.95,Mg);function kFe(n,r,a){return o=>o<n?0:o>r?1:a(RO(n,r,o))}function EFe(n,r){n.min=r.min,n.max=r.max}function m3(n,r){EFe(n.x,r.x),EFe(n.y,r.y)}function CFe(n,r){n.translate=r.translate,n.scale=r.scale,n.originPoint=r.originPoint,n.origin=r.origin}function f0e(n){return n===void 0||n===1}function d0e({scale:n,scaleX:r,scaleY:a}){return!f0e(n)||!f0e(r)||!f0e(a)}function Uk(n){return d0e(n)||TFe(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function TFe(n){return SFe(n.x)||SFe(n.y)}function SFe(n){return n&&n!=="0%"}function i$(n,r,a){const o=n-a,u=r*o;return a+u}function BFe(n,r,a,o,u){return u!==void 0&&(n=i$(n,u,o)),i$(n,a,o)+r}function g0e(n,r=0,a=1,o,u){n.min=BFe(n.min,r,a,o,u),n.max=BFe(n.max,r,a,o,u)}function MFe(n,{x:r,y:a}){g0e(n.x,r.translate,r.scale,r.originPoint),g0e(n.y,a.translate,a.scale,a.originPoint)}const _Fe=.999999999999,LFe=1.0000000000001;function GKt(n,r,a,o=!1){const u=a.length;if(!u)return;r.x=r.y=1;let d,h;for(let b=0;b<u;b++){d=a[b],h=d.projectionDelta;const{visualElement:v}=d.options;v&&v.props.style&&v.props.style.display==="contents"||(o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&uM(n,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),h&&(r.x*=h.x.scale,r.y*=h.y.scale,MFe(n,h)),o&&Uk(d.latestValues)&&uM(n,d.latestValues))}r.x<LFe&&r.x>_Fe&&(r.x=1),r.y<LFe&&r.y>_Fe&&(r.y=1)}function a$(n,r){n.min=n.min+r,n.max=n.max+r}function DFe(n,r,a,o,u=.5){const d=_h(n.min,n.max,u);g0e(n,r,a,d,o)}function uM(n,r){DFe(n.x,r.x,r.scaleX,r.scale,r.originX),DFe(n.y,r.y,r.scaleY,r.scale,r.originY)}const IFe=1e-4,qKt=1-IFe,QKt=1+IFe,RFe=.01,$Kt=0-RFe,YKt=0+RFe;function b3(n){return n.max-n.min}function WKt(n,r,a){return Math.abs(n-r)<=a}function OFe(n,r,a,o=.5){n.origin=o,n.originPoint=_h(r.min,r.max,n.origin),n.scale=b3(a)/b3(r),n.translate=_h(a.min,a.max,n.origin)-n.originPoint,(n.scale>=qKt&&n.scale<=QKt||isNaN(n.scale))&&(n.scale=1),(n.translate>=$Kt&&n.translate<=YKt||isNaN(n.translate))&&(n.translate=0)}function NO(n,r,a,o){OFe(n.x,r.x,a.x,o?o.originX:void 0),OFe(n.y,r.y,a.y,o?o.originY:void 0)}function FFe(n,r,a){n.min=a.min+r.min,n.max=n.min+b3(r)}function KKt(n,r,a){FFe(n.x,r.x,a.x),FFe(n.y,r.y,a.y)}function NFe(n,r,a){n.min=r.min-a.min,n.max=n.min+b3(r)}function PO(n,r,a){NFe(n.x,r.x,a.x),NFe(n.y,r.y,a.y)}function PFe(n,r,a,o,u){return n-=r,n=i$(n,1/a,o),u!==void 0&&(n=i$(n,1/u,o)),n}function XKt(n,r=0,a=1,o=.5,u,d=n,h=n){if(t8.test(r)&&(r=parseFloat(r),r=_h(h.min,h.max,r/100)-h.min),typeof r!="number")return;let b=_h(d.min,d.max,o);n===d&&(b-=r),n.min=PFe(n.min,r,a,b,u),n.max=PFe(n.max,r,a,b,u)}function zFe(n,r,[a,o,u],d,h){XKt(n,r[a],r[o],r[u],r.scale,d,h)}const JKt=["x","scaleX","originX"],ZKt=["y","scaleY","originY"];function jFe(n,r,a,o){zFe(n.x,r,JKt,a?a.x:void 0,o?o.x:void 0),zFe(n.y,r,ZKt,a?a.y:void 0,o?o.y:void 0)}const HFe=()=>({translate:0,scale:1,origin:0,originPoint:0}),hM=()=>({x:HFe(),y:HFe()}),VFe=()=>({min:0,max:0}),Y0=()=>({x:VFe(),y:VFe()});function UFe(n){return n.translate===0&&n.scale===1}function GFe(n){return UFe(n.x)&&UFe(n.y)}function qFe(n,r){return n.min===r.min&&n.max===r.max}function eXt(n,r){return qFe(n.x,r.x)&&qFe(n.y,r.y)}function QFe(n,r){return Math.round(n.min)===Math.round(r.min)&&Math.round(n.max)===Math.round(r.max)}function $Fe(n,r){return QFe(n.x,r.x)&&QFe(n.y,r.y)}function YFe(n){return b3(n.x)/b3(n.y)}function WFe(n,r){return n.translate===r.translate&&n.scale===r.scale&&n.originPoint===r.originPoint}class tXt{constructor(){this.members=[]}add(r){Hue(this.members,r),r.scheduleRender()}remove(r){if(KQ(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(r){const a=this.members.findIndex(u=>r===u);if(a===0)return!1;let o;for(let u=a;u>=0;u--){const d=this.members[u];if(d.isPresent!==!1){o=d;break}}return o?(this.promote(o),!0):!1}promote(r,a){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,a&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:u}=r.options;u===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:a,resumingFrom:o}=r;a.onExitComplete&&a.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nXt(n,r,a){let o="";const u=n.x.translate/r.x,d=n.y.translate/r.y,h=(a==null?void 0:a.z)||0;if((u||d||h)&&(o=`translate3d(${u}px, ${d}px, ${h}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),a){const{transformPerspective:y,rotate:A,rotateX:k,rotateY:C,skewX:T,skewY:B}=a;y&&(o=`perspective(${y}px) ${o}`),A&&(o+=`rotate(${A}deg) `),k&&(o+=`rotateX(${k}deg) `),C&&(o+=`rotateY(${C}deg) `),T&&(o+=`skewX(${T}deg) `),B&&(o+=`skewY(${B}deg) `)}const b=n.x.scale*r.x,v=n.y.scale*r.y;return(b!==1||v!==1)&&(o+=`scale(${b}, ${v})`),o||"none"}function KFe(n){return[n("x"),n("y")]}const p0e=["","X","Y","Z"],rXt={visibility:"hidden"},XFe=1e3;let iXt=0;function m0e(n,r,a,o){const{latestValues:u}=r;u[n]&&(a[n]=u[n],r.setStaticValue(n,0),o&&(o[n]=0))}function JFe(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:r}=n.options;if(!r)return;const a=bFe(r);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:u,layoutId:d}=n.options;window.MotionCancelOptimisedAnimation(a,"transform",Dl,!(u||d))}const{parent:o}=n;o&&!o.hasCheckedOptimisedAppear&&JFe(o)}function ZFe({attachResizeListener:n,defaultParent:r,measureScroll:a,checkIsScrollRoot:o,resetTransform:u}){return class{constructor(h={},b=r==null?void 0:r()){this.id=iXt++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oXt),this.nodes.forEach(fXt),this.nodes.forEach(dXt),this.nodes.forEach(cXt)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=h,this.root=b?b.root||b:this,this.path=b?[...b.path,b]:[],this.parent=b,this.depth=b?b.depth+1:0;for(let v=0;v<this.path.length;v++)this.path[v].shouldResetTransform=!0;this.root===this&&(this.nodes=new OKt)}addEventListener(h,b){return this.eventHandlers.has(h)||this.eventHandlers.set(h,new Vue),this.eventHandlers.get(h).add(b)}notifyListeners(h,...b){const v=this.eventHandlers.get(h);v&&v.notify(...b)}hasListeners(h){return this.eventHandlers.has(h)}mount(h,b=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=vFe(h),this.instance=h;const{layoutId:v,layout:y,visualElement:A}=this.options;if(A&&!A.current&&A.mount(h),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),b&&(y||v)&&(this.isLayoutDirty=!0),n){let k;const C=()=>this.root.updateBlockedByResize=!1;n(h,()=>{this.root.updateBlockedByResize=!0,k&&k(),k=FKt(C,250),$Q.hasAnimatedSinceResize&&($Q.hasAnimatedSinceResize=!1,this.nodes.forEach(tNe))})}v&&this.root.registerSharedNode(v,this),this.options.animate!==!1&&A&&(v||y)&&this.addEventListener("didUpdate",({delta:k,hasLayoutChanged:C,hasRelativeLayoutChanged:T,layout:B})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const L=this.options.transition||A.getDefaultTransition()||vXt,{onLayoutAnimationStart:I,onLayoutAnimationComplete:O}=A.getProps(),F=!this.targetLayout||!$Fe(this.targetLayout,B),z=!C&&T;if(this.options.layoutRoot||this.resumeFrom||z||C&&(F||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(k,z);const j={...jue(L,"layout"),onPlay:I,onComplete:O};(A.shouldReduceMotion||this.options.layoutRoot)&&(j.delay=0,j.type=!1),this.startAnimation(j)}else C||tNe(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=B})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const h=this.getStack();h&&h.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,e8(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gXt),this.animationId++)}getTransformTemplate(){const{visualElement:h}=this.options;return h&&h.getProps().transformTemplate}willUpdate(h=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&JFe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let A=0;A<this.path.length;A++){const k=this.path[A];k.shouldResetTransform=!0,k.updateScroll("snapshot"),k.options.layoutRoot&&k.willUpdate(!1)}const{layoutId:b,layout:v}=this.options;if(b===void 0&&!v)return;const y=this.getTransformTemplate();this.prevTransformTemplateValue=y?y(this.latestValues,""):void 0,this.updateSnapshot(),h&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(eNe);return}this.isUpdating||this.nodes.forEach(uXt),this.isUpdating=!1,this.nodes.forEach(hXt),this.nodes.forEach(aXt),this.nodes.forEach(sXt),this.clearAllSnapshots();const b=T5.now();Ff.delta=GA(0,1e3/60,b-Ff.timestamp),Ff.timestamp=b,Ff.isProcessing=!0,Due.update.process(Ff),Due.preRender.process(Ff),Due.render.process(Ff),Ff.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,IKt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lXt),this.sharedNodes.forEach(pXt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Dl.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Dl.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!b3(this.snapshot.measuredBox.x)&&!b3(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let v=0;v<this.path.length;v++)this.path[v].updateScroll();const h=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Y0(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:b}=this.options;b&&b.notify("LayoutMeasure",this.layout.layoutBox,h?h.layoutBox:void 0)}updateScroll(h="measure"){let b=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===h&&(b=!1),b){const v=o(this.instance);this.scroll={animationId:this.root.animationId,phase:h,isRoot:v,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:v}}}resetTransform(){if(!u)return;const h=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,b=this.projectionDelta&&!GFe(this.projectionDelta),v=this.getTransformTemplate(),y=v?v(this.latestValues,""):void 0,A=y!==this.prevTransformTemplateValue;h&&(b||Uk(this.latestValues)||A)&&(u(this.instance,y),this.shouldResetTransform=!1,this.scheduleRender())}measure(h=!0){const b=this.measurePageBox();let v=this.removeElementScroll(b);return h&&(v=this.removeTransform(v)),wXt(v),{animationId:this.root.animationId,measuredBox:b,layoutBox:v,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:b}=this.options;if(!b)return Y0();const v=b.measureViewportBox();if(!(((h=this.scroll)===null||h===void 0?void 0:h.wasRoot)||this.path.some(yXt))){const{scroll:A}=this.root;A&&(a$(v.x,A.offset.x),a$(v.y,A.offset.y))}return v}removeElementScroll(h){var b;const v=Y0();if(m3(v,h),!((b=this.scroll)===null||b===void 0)&&b.wasRoot)return v;for(let y=0;y<this.path.length;y++){const A=this.path[y],{scroll:k,options:C}=A;A!==this.root&&k&&C.layoutScroll&&(k.wasRoot&&m3(v,h),a$(v.x,k.offset.x),a$(v.y,k.offset.y))}return v}applyTransform(h,b=!1){const v=Y0();m3(v,h);for(let y=0;y<this.path.length;y++){const A=this.path[y];!b&&A.options.layoutScroll&&A.scroll&&A!==A.root&&uM(v,{x:-A.scroll.offset.x,y:-A.scroll.offset.y}),Uk(A.latestValues)&&uM(v,A.latestValues)}return Uk(this.latestValues)&&uM(v,this.latestValues),v}removeTransform(h){const b=Y0();m3(b,h);for(let v=0;v<this.path.length;v++){const y=this.path[v];if(!y.instance||!Uk(y.latestValues))continue;d0e(y.latestValues)&&y.updateSnapshot();const A=Y0(),k=y.measurePageBox();m3(A,k),jFe(b,y.latestValues,y.snapshot?y.snapshot.layoutBox:void 0,A)}return Uk(this.latestValues)&&jFe(b,this.latestValues),b}setTargetDelta(h){this.targetDelta=h,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(h){this.options={...this.options,...h,crossfade:h.crossfade!==void 0?h.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ff.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(h=!1){var b;const v=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=v.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=v.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=v.isSharedProjectionDirty);const y=!!this.resumingFrom||this!==v;if(!(h||y&&this.isSharedProjectionDirty||this.isProjectionDirty||!((b=this.parent)===null||b===void 0)&&b.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:k,layoutId:C}=this.options;if(!(!this.layout||!(k||C))){if(this.resolvedRelativeTargetAt=Ff.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y0(),this.relativeTargetOrigin=Y0(),PO(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),m3(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y0(),this.targetWithTransforms=Y0()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KKt(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):m3(this.target,this.layout.layoutBox),MFe(this.target,this.targetDelta)):m3(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y0(),this.relativeTargetOrigin=Y0(),PO(this.relativeTargetOrigin,this.target,T.target),m3(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||d0e(this.parent.latestValues)||TFe(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var h;const b=this.getLead(),v=!!this.resumingFrom||this!==b;let y=!0;if((this.isProjectionDirty||!((h=this.parent)===null||h===void 0)&&h.isProjectionDirty)&&(y=!1),v&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(y=!1),this.resolvedRelativeTargetAt===Ff.timestamp&&(y=!1),y)return;const{layout:A,layoutId:k}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(A||k))return;m3(this.layoutCorrected,this.layout.layoutBox);const C=this.treeScale.x,T=this.treeScale.y;GKt(this.layoutCorrected,this.treeScale,this.path,v),b.layout&&!b.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(b.target=b.layout.layoutBox,b.targetWithTransforms=Y0());const{target:B}=b;if(!B){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(CFe(this.prevProjectionDelta.x,this.projectionDelta.x),CFe(this.prevProjectionDelta.y,this.projectionDelta.y)),NO(this.projectionDelta,this.layoutCorrected,B,this.latestValues),(this.treeScale.x!==C||this.treeScale.y!==T||!WFe(this.projectionDelta.x,this.prevProjectionDelta.x)||!WFe(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",B))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(h=!0){var b;if((b=this.options.visualElement)===null||b===void 0||b.scheduleRender(),h){const v=this.getStack();v&&v.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=hM(),this.projectionDelta=hM(),this.projectionDeltaWithTransform=hM()}setAnimationOrigin(h,b=!1){const v=this.snapshot,y=v?v.latestValues:{},A={...this.latestValues},k=hM();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!b;const C=Y0(),T=v?v.source:void 0,B=this.layout?this.layout.source:void 0,L=T!==B,I=this.getStack(),O=!I||I.members.length<=1,F=!!(L&&!O&&this.options.crossfade===!0&&!this.path.some(bXt));this.animationProgress=0;let z;this.mixTargetDelta=j=>{const G=j/1e3;nNe(k.x,h.x,G),nNe(k.y,h.y,G),this.setTargetDelta(k),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(PO(C,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mXt(this.relativeTarget,this.relativeTargetOrigin,C,G),z&&eXt(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Y0()),m3(z,this.relativeTarget)),L&&(this.animationValues=A,HKt(A,y,this.latestValues,G,F,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=G},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(h){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(e8(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dl.update(()=>{$Q.hasAnimatedSinceResize=!0,this.currentAnimation=mFe(0,XFe,{...h,onUpdate:b=>{this.mixTargetDelta(b),h.onUpdate&&h.onUpdate(b)},onStop:()=>{},onComplete:()=>{h.onComplete&&h.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const h=this.getStack();h&&h.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(XFe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const h=this.getLead();let{targetWithTransforms:b,target:v,layout:y,latestValues:A}=h;if(!(!b||!v||!y)){if(this!==h&&this.layout&&y&&oNe(this.options.animationType,this.layout.layoutBox,y.layoutBox)){v=this.target||Y0();const k=b3(this.layout.layoutBox.x);v.x.min=h.target.x.min,v.x.max=v.x.min+k;const C=b3(this.layout.layoutBox.y);v.y.min=h.target.y.min,v.y.max=v.y.min+C}m3(b,v),uM(b,A),NO(this.projectionDeltaWithTransform,this.layoutCorrected,b,A)}}registerSharedNode(h,b){this.sharedNodes.has(h)||this.sharedNodes.set(h,new tXt),this.sharedNodes.get(h).add(b);const y=b.options.initialPromotionConfig;b.promote({transition:y?y.transition:void 0,preserveFollowOpacity:y&&y.shouldPreserveFollowOpacity?y.shouldPreserveFollowOpacity(b):void 0})}isLead(){const h=this.getStack();return h?h.lead===this:!0}getLead(){var h;const{layoutId:b}=this.options;return b?((h=this.getStack())===null||h===void 0?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:b}=this.options;return b?(h=this.getStack())===null||h===void 0?void 0:h.prevLead:void 0}getStack(){const{layoutId:h}=this.options;if(h)return this.root.sharedNodes.get(h)}promote({needsReset:h,transition:b,preserveFollowOpacity:v}={}){const y=this.getStack();y&&y.promote(this,v),h&&(this.projectionDelta=void 0,this.needsReset=!0),b&&this.setOptions({transition:b})}relegate(){const h=this.getStack();return h?h.relegate(this):!1}resetSkewAndRotation(){const{visualElement:h}=this.options;if(!h)return;let b=!1;const{latestValues:v}=h;if((v.z||v.rotate||v.rotateX||v.rotateY||v.rotateZ||v.skewX||v.skewY)&&(b=!0),!b)return;const y={};v.z&&m0e("z",h,y,this.animationValues);for(let A=0;A<p0e.length;A++)m0e(`rotate${p0e[A]}`,h,y,this.animationValues),m0e(`skew${p0e[A]}`,h,y,this.animationValues);h.render();for(const A in y)h.setStaticValue(A,y[A]),this.animationValues&&(this.animationValues[A]=y[A]);h.scheduleRender()}getProjectionStyles(h){var b,v;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rXt;const y={visibility:""},A=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,y.opacity="",y.pointerEvents=h0e(h==null?void 0:h.pointerEvents)||"",y.transform=A?A(this.latestValues,""):"none",y;const k=this.getLead();if(!this.projectionDelta||!this.layout||!k.target){const L={};return this.options.layoutId&&(L.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,L.pointerEvents=h0e(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Uk(this.latestValues)&&(L.transform=A?A({},""):"none",this.hasProjected=!1),L}const C=k.animationValues||k.latestValues;this.applyTransformsToTarget(),y.transform=nXt(this.projectionDeltaWithTransform,this.treeScale,C),A&&(y.transform=A(C,y.transform));const{x:T,y:B}=this.projectionDelta;y.transformOrigin=`${T.origin*100}% ${B.origin*100}% 0`,k.animationValues?y.opacity=k===this?(v=(b=C.opacity)!==null&&b!==void 0?b:this.latestValues.opacity)!==null&&v!==void 0?v:1:this.preserveOpacity?this.latestValues.opacity:C.opacityExit:y.opacity=k===this?C.opacity!==void 0?C.opacity:"":C.opacityExit!==void 0?C.opacityExit:0;for(const L in EO){if(C[L]===void 0)continue;const{correct:I,applyTo:O,isCSSVariable:F}=EO[L],z=y.transform==="none"?C[L]:I(C[L],k);if(O){const j=O.length;for(let G=0;G<j;G++)y[O[G]]=z}else F?this.options.visualElement.renderState.vars[L]=z:y[L]=z}return this.options.layoutId&&(y.pointerEvents=k===this?h0e(h==null?void 0:h.pointerEvents)||"":"none"),y}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(h=>{var b;return(b=h.currentAnimation)===null||b===void 0?void 0:b.stop()}),this.root.nodes.forEach(eNe),this.root.sharedNodes.clear()}}}function aXt(n){n.updateLayout()}function sXt(n){var r;const a=((r=n.resumeFrom)===null||r===void 0?void 0:r.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&a&&n.hasListeners("didUpdate")){const{layoutBox:o,measuredBox:u}=n.layout,{animationType:d}=n.options,h=a.source!==n.layout.source;d==="size"?KFe(k=>{const C=h?a.measuredBox[k]:a.layoutBox[k],T=b3(C);C.min=o[k].min,C.max=C.min+T}):oNe(d,a.layoutBox,o)&&KFe(k=>{const C=h?a.measuredBox[k]:a.layoutBox[k],T=b3(o[k]);C.max=C.min+T,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[k].max=n.relativeTarget[k].min+T)});const b=hM();NO(b,o,a.layoutBox);const v=hM();h?NO(v,n.applyTransform(u,!0),a.measuredBox):NO(v,o,a.layoutBox);const y=!GFe(b);let A=!1;if(!n.resumeFrom){const k=n.getClosestProjectingParent();if(k&&!k.resumeFrom){const{snapshot:C,layout:T}=k;if(C&&T){const B=Y0();PO(B,a.layoutBox,C.layoutBox);const L=Y0();PO(L,o,T.layoutBox),$Fe(B,L)||(A=!0),k.options.layoutRoot&&(n.relativeTarget=L,n.relativeTargetOrigin=B,n.relativeParent=k)}}}n.notifyListeners("didUpdate",{layout:o,snapshot:a,delta:v,layoutDelta:b,hasLayoutChanged:y,hasRelativeLayoutChanged:A})}else if(n.isLead()){const{onExitComplete:o}=n.options;o&&o()}n.options.transition=void 0}function oXt(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function cXt(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function lXt(n){n.clearSnapshot()}function eNe(n){n.clearMeasurements()}function uXt(n){n.isLayoutDirty=!1}function hXt(n){const{visualElement:r}=n.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),n.resetTransform()}function tNe(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function fXt(n){n.resolveTargetDelta()}function dXt(n){n.calcProjection()}function gXt(n){n.resetSkewAndRotation()}function pXt(n){n.removeLeadSnapshot()}function nNe(n,r,a){n.translate=_h(r.translate,0,a),n.scale=_h(r.scale,1,a),n.origin=r.origin,n.originPoint=r.originPoint}function rNe(n,r,a,o){n.min=_h(r.min,a.min,o),n.max=_h(r.max,a.max,o)}function mXt(n,r,a,o){rNe(n.x,r.x,a.x,o),rNe(n.y,r.y,a.y,o)}function bXt(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const vXt={duration:.45,ease:[.4,0,.1,1]},iNe=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),aNe=iNe("applewebkit/")&&!iNe("chrome/")?Math.round:Mg;function sNe(n){n.min=aNe(n.min),n.max=aNe(n.max)}function wXt(n){sNe(n.x),sNe(n.y)}function oNe(n,r,a){return n==="position"||n==="preserve-aspect"&&!WKt(YFe(r),YFe(a),.2)}function yXt(n){var r;return n!==n.root&&((r=n.scroll)===null||r===void 0?void 0:r.wasRoot)}function AXt(n,r,a,o={passive:!0}){return n.addEventListener(r,a,o),()=>n.removeEventListener(r,a)}const xXt=ZFe({attachResizeListener:(n,r)=>AXt(n,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),b0e={current:void 0},kXt=ZFe({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!b0e.current){const n=new xXt({});n.mount(window),n.setOptions({layoutScroll:!0}),b0e.current=n}return b0e.current},resetTransform:(n,r)=>{n.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"});function cNe(n){if(n)return n.options.allowProjection!==!1?n.projection:cNe(n.parent)}function zO(n){return typeof n=="object"&&n!==null&&"nodeType"in n}const v0e=new WeakMap,[EXt,Ufr]=VQ("AnimatePresenceContext");class CXt extends C5{constructor(r){super(r),JRe(pOe)}initProjection(){const r=this.state.options;this.state.visualElement.projection=new kXt(this.state.visualElement.latestValues,r["data-framer-portal-id"]?void 0:cNe(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const r=this.state.options;this.state.visualElement.projection.setOptions({layout:r.layout,layoutId:r.layoutId,alwaysMeasureLayout:!!r.drag||r.dragConstraints&&zO(r.dragConstraints),visualElement:this.state.visualElement,animationType:typeof r.layout=="string"?r.layout:"both",layoutRoot:r.layoutRoot,layoutScroll:r.layoutScroll,crossfade:r.crossfade,onExitComplete:()=>{var a;if(!((a=this.state.visualElement.projection)!=null&&a.isPresent)){const o=v0e.get(this.state.element);this.state.isSafeToRemove=!0,o&&o({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var r;(r=this.state.visualElement.projection)==null||r.mount(this.state.element)}}class TXt extends C5{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.state.element.matches(":focus-visible")}catch{r=!0}r&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=DO(YQ(this.state.element,"focus",()=>this.onFocus()),YQ(this.state.element,"blur",()=>this.onBlur()))}}const SXt={y:!1};function BXt(){return SXt.y}function w0e(n,r,a){var o;if(n instanceof EventTarget)return[n];if(typeof n=="string"){let u=document;const d=(o=a==null?void 0:a[n])!==null&&o!==void 0?o:u.querySelectorAll(n);return d?Array.from(d):[]}return Array.from(n)}function lNe(n,r){const a=w0e(n),o=new AbortController,u={passive:!0,...r,signal:o.signal};return[a,u,()=>o.abort()]}function uNe(n){return!(n.pointerType==="touch"||BXt())}function MXt(n,r,a={}){const[o,u,d]=lNe(n,a),h=b=>{if(!uNe(b))return;const{target:v}=b,y=r(v,b);if(typeof y!="function"||!v)return;const A=k=>{uNe(k)&&(y(k),v.removeEventListener("pointerleave",A))};v.addEventListener("pointerleave",A,u)};return o.forEach(b=>{b.addEventListener("pointerenter",h,u)}),d}function hNe(n,r){const a=`${r}PointerCapture`;if(n.target instanceof Element&&a in n.target&&n.pointerId!==void 0)try{n.target[a](n.pointerId)}catch{}}const fNe=(n,r)=>r?n===r?!0:fNe(n,r.parentElement):!1,_Xt=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,LXt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function DXt(n){return LXt.has(n.tagName)||n.tabIndex!==-1}const jO=new WeakSet;function dNe(n){return r=>{r.key==="Enter"&&n(r)}}function y0e(n,r){n.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const IXt=(n,r)=>{const a=n.currentTarget;if(!a)return;const o=dNe(()=>{if(jO.has(a))return;y0e(a,"down");const u=dNe(()=>{y0e(a,"up")}),d=()=>y0e(a,"cancel");a.addEventListener("keyup",u,r),a.addEventListener("blur",d,r)});a.addEventListener("keydown",o,r),a.addEventListener("blur",()=>a.removeEventListener("keydown",o),r)};function gNe(n){return _Xt(n)&&!0}function RXt(n,r,a={}){const[o,u,d]=lNe(n,a),h=b=>{const v=b.currentTarget;if(!v||!gNe(b)||jO.has(v))return;jO.add(v),hNe(b,"set");const y=r(v,b),A=(T,B)=>{v.removeEventListener("pointerup",k),v.removeEventListener("pointercancel",C),hNe(T,"release"),!(!gNe(T)||!jO.has(v))&&(jO.delete(v),typeof y=="function"&&y(T,{success:B}))},k=T=>{(T.isTrusted?OXt(T,v instanceof Element?v.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?A(T,!1):A(T,!(v instanceof Element)||fNe(v,T.target))},C=T=>{A(T,!1)};v.addEventListener("pointerup",k,u),v.addEventListener("pointercancel",C,u),v.addEventListener("lostpointercapture",C,u)};return o.forEach(b=>{b=a.useGlobalTarget?window:b;let v=!1;b instanceof HTMLElement&&(v=!0,!DXt(b)&&b.getAttribute("tabindex")===null&&(b.tabIndex=0)),b.addEventListener("pointerdown",h,u),v&&b.addEventListener("focus",y=>IXt(y,u),u)}),d}function OXt(n,r){return n.clientX<r.left||n.clientX>r.right||n.clientY<r.top||n.clientY>r.bottom}function pNe(n){return{point:{x:n.pageX,y:n.pageY}}}function mNe(n,r,a){const o=n.options;o.whilePress&&n.setActive("whilePress",a==="Start");const u=`onPress${a==="End"?"":a}`,d=o[u];d&&Dl.postRender(()=>d(r,pNe(r)))}class FXt extends C5{isActive(){return!!this.state.options.press}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=RXt(r,(a,o)=>(mNe(this.state,o,"Start"),(u,{success:d})=>mNe(this.state,u,d?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function bNe(n,r,a){const o=n.options;o.whileHover&&n.setActive("whileHover",a==="Start");const u=`onHover${a}`,d=o[u];d&&Dl.postRender(()=>d(r,pNe(r)))}class NXt extends C5{isActive(){return!!this.state.getOptions().whileHover}constructor(r){super(r)}mount(){const r=this.state.element;r&&(this.unmount=MXt(r,(a,o)=>(bNe(this.state,o,"Start"),u=>{bNe(this.state,u,"End")})))}}const PXt={some:0,all:1};function zXt(n,r,{root:a,margin:o,amount:u="some"}={}){const d=w0e(n),h=new WeakMap,b=y=>{y.forEach(A=>{const k=h.get(A.target);if(A.isIntersecting!==!!k)if(A.isIntersecting){const C=r(A.target,A);typeof C=="function"?h.set(A.target,C):v.unobserve(A.target)}else typeof k=="function"&&(k(A),h.delete(A.target))})},v=new IntersectionObserver(b,{root:a,rootMargin:o,threshold:typeof u=="number"?u:PXt[u]});return d.forEach(y=>v.observe(y)),()=>v.disconnect()}function vNe(n,r,a){const o=n.options;o.whileInView&&n.setActive("whileInView",a==="Enter");const u=`onViewport${a}`,d=o[u];d&&Dl.postRender(()=>d(r))}class jXt extends C5{isActive(){return!!this.state.getOptions().whileInView}constructor(r){super(r)}startObserver(){const r=this.state.element;if(!r)return;this.unmount();const{once:a,...o}=this.state.getOptions().inViewOptions||{};this.unmount=zXt(r,(u,d)=>{if(vNe(this.state,d,"Enter"),!a)return h=>{vNe(this.state,d,"Leave")}},o)}mount(){this.startObserver()}update(){const{props:r,prevProps:a}=this.state.visualElement;["amount","margin","root"].some(HXt(r,a))&&this.startObserver()}}function HXt({inViewOptions:n={}},{inViewOptions:r={}}={}){return a=>n[a]!==r[a]}function wNe(n){let r=null;return()=>{const a=()=>{r=null};return r===null?(r=n,a):!1}}const yNe=wNe("dragHorizontal"),ANe=wNe("dragVertical");function VXt(n){let r=!1;if(n==="y")r=ANe();else if(n==="x")r=yNe();else{const a=yNe(),o=ANe();a&&o?r=()=>{a(),o()}:(a&&a(),o&&o())}return r}function A0e(n){return n.max-n.min}function UXt(n,r,a){return a>r?r:a<n?n:a}function s$(n,r,a){return n+(r-n)*a}function xNe(n,r,a){const o=r-n;return o===0?1:(a-n)/o}function GXt(n,{min:r,max:a},o){return r!==void 0&&n<r?n=o?s$(r,n,o.min):Math.max(n,r):a!==void 0&&n>a&&(n=o?s$(a,n,o.max):Math.min(n,a)),n}const x0e=.35;function qXt(n,{top:r,left:a,bottom:o,right:u}){return{x:kNe(n.x,a,u),y:kNe(n.y,r,o)}}function kNe(n,r,a){return{min:r!==void 0?n.min+r:void 0,max:a!==void 0?n.max+a-(n.max-n.min):void 0}}function QXt(n=x0e){return n===!1?n=0:n===!0&&(n=x0e),{x:ENe(n,"left","right"),y:ENe(n,"top","bottom")}}function ENe(n,r,a){return{min:CNe(n,r),max:CNe(n,a)}}function CNe(n,r){return typeof n=="number"?n:n[r]||0}function $Xt(n,r){const a={};return r.min!==void 0&&(a.min=r.min-n.min),r.max!==void 0&&(a.max=r.max-n.min),a}function YXt(n,r){return{x:TNe(n.x,r.x),y:TNe(n.y,r.y)}}function TNe(n,r){let a=r.min-n.min,o=r.max-n.max;return r.max-r.min<n.max-n.min&&([a,o]=[o,a]),{min:a,max:o}}function WXt(n,r){let a=.5;const o=A0e(n),u=A0e(r);return u>o?a=xNe(r.min,r.max-o,n.min):o>u&&(a=xNe(n.min,n.max-u,r.min)),UXt(0,1,a)}const SNe=()=>({min:0,max:0});function KXt(){return{x:SNe(),y:SNe()}}function S5(n){return[n("x"),n("y")]}function XXt(n){return{test:r=>typeof r=="string"&&r.endsWith(n)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${n}`}}const JXt=XXt("%");function ZXt(n){return!!(GQ(n)&&n.add)}function BNe(n,r){const a=n.getValue("willChange");if(ZXt(a))return a.add(r)}function MNe({top:n,left:r,right:a,bottom:o}){return{x:{min:r,max:a},y:{min:n,max:o}}}function eJt(n,r){if(!r)return n;const a=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function tJt({x:n,y:r}){return{top:r.min,right:n.max,bottom:r.max,left:n.min}}function _Ne(n,r){n.min=n.min+r,n.max=n.max+r}function nJt(n,r){return MNe(eJt(n.getBoundingClientRect(),r))}function rJt(n,r,a){const o=nJt(n,a),{scroll:u}=r;return u&&(_Ne(o.x,u.offset.x),_Ne(o.y,u.offset.y)),o}function LNe(n){return!v0e.has(n.current)}const iJt=new WeakMap;class aJt{constructor(r){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=KXt(),this.visualElement=r}start(r,{snapToCursor:a=!1}={}){if(!LNe(this.visualElement))return;const o=y=>{const{dragSnapToOrigin:A}=this.getProps();A?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Nue(y,"page").point)},u=(y,A)=>{const{drag:k,dragPropagation:C,onDragStart:T}=this.getProps();if(k&&!C&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=VXt(k),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),S5(L=>{let I=this.getAxisMotionValue(L).get()||0;if(JXt.test(I)){const{projection:O}=this.visualElement;if(O&&O.layout){const F=O.layout.layoutBox[L];F&&(I=A0e(F)*(parseFloat(I)/100))}}this.originPoint[L]=I}),T&&Dl.postRender(()=>T(y,A)),BNe(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},d=(y,A)=>{const{dragPropagation:k,dragDirectionLock:C,onDirectionLock:T,onDrag:B}=this.getProps();if(!k&&!this.openGlobalLock)return;const{offset:L}=A;if(C&&this.currentDirection===null){this.currentDirection=sJt(L),this.currentDirection!==null&&T&&T(this.currentDirection);return}this.updateAxis("x",A.point,L),this.updateAxis("y",A.point,L),this.visualElement.render(),B&&B(y,A)},h=(y,A)=>this.stop(y,A),b=()=>S5(y=>{var A;return this.getAnimationState(y)==="paused"&&((A=this.getAxisMotionValue(y).animation)==null?void 0:A.play())}),{dragSnapToOrigin:v}=this.getProps();this.panSession=new vOe(r,{onSessionStart:o,onStart:u,onMove:d,onSessionEnd:h,resumeAnimation:b},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,contextWindow:AOe(this.visualElement)})}stop(r,a){const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Dl.postRender(()=>d(r,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:a}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(r,a,o){const{drag:u}=this.getProps();if(!o||!o$(r,u,this.currentDirection))return;const d=this.getAxisMotionValue(r);let h=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(h=GXt(h,this.constraints[r],this.elastic[r])),d.set(h)}resolveConstraints(){var r;const{dragConstraints:a,dragElastic:o}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,d=this.constraints;a&&zO(a)?this.constraints||(this.constraints=this.resolveRefConstraints()):a&&u?this.constraints=qXt(u.layoutBox,a):this.constraints=!1,this.elastic=QXt(o),d!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&S5(h=>{this.constraints!==!1&&this.getAxisMotionValue(h)&&(this.constraints[h]=$Xt(u.layoutBox[h],this.constraints[h]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:a}=this.getProps();if(!r||!zO(r))return!1;const o=r,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const d=rJt(o,u.root,this.visualElement.getTransformPagePoint());let h=YXt(u.layout.layoutBox,d);if(a){const b=a(tJt(h));this.hasMutatedConstraints=!!b,b&&(h=MNe(b))}return h}startAnimation(r){const{drag:a,dragMomentum:o,dragElastic:u,dragTransition:d,dragSnapToOrigin:h,onDragTransitionEnd:b}=this.getProps(),v=this.constraints||{},y=S5(A=>{if(!o$(A,a,this.currentDirection))return;let k=v&&v[A]||{};h&&(k={min:0,max:0});const C=u?200:1e6,T=u?40:1e7,B={type:"inertia",velocity:o?r[A]:0,bounceStiffness:C,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...d,...k};return this.startAxisValueAnimation(A,B)});return Promise.all(y).then(b)}startAxisValueAnimation(r,a){const o=this.getAxisMotionValue(r);return BNe(this.visualElement,r),o.start(l0e(r,o,0,a,this.visualElement,!1))}stopAnimation(){LNe(this.visualElement)&&S5(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){S5(r=>{var a;return(a=this.getAxisMotionValue(r).animation)==null?void 0:a.pause()})}getAnimationState(r){var a;return(a=this.getAxisMotionValue(r).animation)==null?void 0:a.state}getAxisMotionValue(r){const a=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[a]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){S5(a=>{const{drag:o}=this.getProps();if(!o$(a,o,this.currentDirection))return;const{projection:u}=this.visualElement,d=this.getAxisMotionValue(a);if(u&&u.layout){const{min:h,max:b}=u.layout.layoutBox[a];d.set(r[a]-s$(h,b,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:a}=this.getProps(),{projection:o}=this.visualElement;if(!zO(a)||!o||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};S5(h=>{const b=this.getAxisMotionValue(h);if(b&&this.constraints!==!1){const v=b.get();u[h]=WXt({min:v,max:v},this.constraints[h])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),S5(h=>{if(!o$(h,r,null))return;const b=this.getAxisMotionValue(h),{min:v,max:y}=this.constraints[h];b.set(s$(v,y,u[h]))})}addListeners(){if(!this.visualElement.current)return;iJt.set(this.visualElement,this);const r=this.visualElement.current,a=LO(r,"pointerdown",v=>{const{drag:y,dragListener:A=!0}=this.getProps();y&&A&&this.start(v)}),o=()=>{const{dragConstraints:v}=this.getProps();zO(v)&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,d=u.addEventListener("measure",o);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Dl.read(o);const h=YQ(window,"resize",()=>this.scalePositionWithinConstraints()),b=u.addEventListener("didUpdate",({delta:v,hasLayoutChanged:y})=>{this.isDragging&&y&&(S5(A=>{const k=this.getAxisMotionValue(A);k&&(this.originPoint[A]+=v[A].translate,k.set(k.get()+v[A].translate))}),this.visualElement.render())});return()=>{h(),a(),d(),b&&b()}}getProps(){const r=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:o=!1,dragPropagation:u=!1,dragConstraints:d=!1,dragElastic:h=x0e,dragMomentum:b=!0}=r;return{...r,drag:a,dragDirectionLock:o,dragPropagation:u,dragConstraints:d,dragElastic:h,dragMomentum:b}}}function o$(n,r,a){return(r===!0||r===n)&&(a===null||a===n)}function sJt(n,r=10){let a=null;return Math.abs(n.y)>r?a="y":Math.abs(n.x)>r&&(a="x"),a}class oJt extends C5{constructor(r){super(r),this.removeGroupControls=Mg,this.removeListeners=Mg,this.controls=new aJt(r.visualElement)}mount(){const{dragControls:r}=this.state.options;r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Mg}unmount(){this.removeGroupControls(),this.removeListeners()}}class cJt{constructor(r){this.features=[],this.features=[new NXt(r),new FXt(r),new jXt(r),new $Yt(r),new cWt(r),new CXt(r),new mWt(r),new oJt(r),new TXt(r),new bWt(r)]}mount(){this.features.forEach(r=>r.mount())}beforeMount(){this.features.forEach(r=>{var a;return(a=r.beforeMount)==null?void 0:a.call(r)})}unmount(){this.features.forEach(r=>r.unmount())}update(){this.features.forEach(r=>{var a;return(a=r.update)==null?void 0:a.call(r)})}beforeUpdate(){this.features.forEach(r=>r.beforeUpdate())}beforeUnmount(){this.features.forEach(r=>r.beforeUnmount())}}function lJt({top:n,left:r,right:a,bottom:o}){return{x:{min:r,max:a},y:{min:n,max:o}}}function uJt(n,r){if(!r)return n;const a=r({x:n.left,y:n.top}),o=r({x:n.right,y:n.bottom});return{top:a.y,left:a.x,bottom:o.y,right:o.x}}function hJt(n,r){return lJt(uJt(n.getBoundingClientRect(),r))}const DNe={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},k0e={};for(const n in DNe)k0e[n]={isEnabled:r=>DNe[n].some(a=>!!r[a])};const fJt=typeof window<"u",E0e={current:null},INe={current:!1};function dJt(){if(INe.current=!0,!!fJt)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),r=()=>E0e.current=n.matches;n.addListener(r),r()}else E0e.current=!1}const gJt=[...XOe,yd,qA],pJt=n=>gJt.find(KOe(n));function mJt(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function bJt(n){return typeof n=="string"||Array.isArray(n)}const vJt=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function RNe(n){return mJt(n.animate)||vJt.some(r=>bJt(n[r]))}function wJt(n){return!!(RNe(n)||n.variants)}function yJt(n,r,a){for(const o in r){const u=r[o],d=a[o];if(Ad(u))n.addValue(o,u);else if(Ad(d))n.addValue(o,IO(u,{owner:n}));else if(d!==u)if(n.hasValue(o)){const h=n.getValue(o);h.liveStyle===!0?h.jump(u):h.hasAnimated||h.set(u)}else{const h=n.getStaticValue(o);n.addValue(o,IO(h!==void 0?h:u,{owner:n}))}}for(const o in a)r[o]===void 0&&n.removeValue(o);return r}function ONe(n){const r=[{},{}];return n==null||n.values.forEach((a,o)=>{r[0][o]=a.get(),r[1][o]=a.getVelocity()}),r}function FNe(n,r,a,o){if(typeof r=="function"){const[u,d]=ONe(o);r=r(a!==void 0?a:n.custom,u,d)}if(typeof r=="string"&&(r=n.variants&&n.variants[r]),typeof r=="function"){const[u,d]=ONe(o);r=r(a!==void 0?a:n.custom,u,d)}return r}const NNe=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class PNe{scrapeMotionValuesFromProps(r,a,o){return{}}constructor({parent:r,props:a,presenceContext:o,reducedMotionConfig:u,blockInitialAnimation:d,visualState:h},b={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zue,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=T5.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Dl.render(this.render,!1,!0))};const{latestValues:v,renderState:y,onUpdate:A}=h;this.onUpdate=A,this.latestValues=v,this.baseTarget={...v},this.initialValues=a.initial?{...v}:{},this.renderState=y,this.parent=r,this.props=a,this.presenceContext=o,this.depth=r?r.depth+1:0,this.reducedMotionConfig=u,this.options=b,this.blockInitialAnimation=!!d,this.isControllingVariants=RNe(a),this.isVariantNode=wJt(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(r&&r.current);const{willChange:k,...C}=this.scrapeMotionValuesFromProps(a,{},this);for(const T in C){const B=C[T];v[T]!==void 0&&Ad(B)&&B.set(v[T],!1)}}mount(r){this.current=r,jk.set(r,this),this.projection&&!this.projection.instance&&this.projection.mount(r),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,o)=>this.bindToMotionValue(o,a)),INe.current||dJt(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:E0e.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),e8(this.notifyUpdate),e8(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const a=this.features[r];a&&(a.unmount(),a.isMounted=!1)}this.current=null}bindToMotionValue(r,a){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=cM.has(r);o&&this.onBindTransform&&this.onBindTransform();const u=a.on("change",b=>{this.latestValues[r]=b,this.props.onUpdate&&Dl.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0)}),d=a.on("renderRequest",this.scheduleRender);let h;window.MotionCheckAppearSync&&(h=window.MotionCheckAppearSync(this,r,a)),this.valueSubscriptions.set(r,()=>{u(),d(),h&&h(),a.owner&&a.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in k0e){const a=k0e[r];if(!a)continue;const{isEnabled:o,Feature:u}=a;if(!this.features[r]&&u&&o(this.props)&&(this.features[r]=new u(this)),this.features[r]){const d=this.features[r];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Y0()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,a){this.latestValues[r]=a}update(r,a){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let o=0;o<NNe.length;o++){const u=NNe[o];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const d="on"+u,h=r[d];h&&(this.propEventSubscriptions[u]=this.on(u,h))}this.prevMotionValues=yJt(this,this.scrapeMotionValuesFromProps(r,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(r){return this.props.variants?this.props.variants[r]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(r){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(r),()=>a.variantChildren.delete(r)}addValue(r,a){const o=this.values.get(r);a!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,a),this.values.set(r,a),this.latestValues[r]=a.get())}removeValue(r){this.values.delete(r);const a=this.valueSubscriptions.get(r);a&&(a(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,a){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&a!==void 0&&(o=IO(a===null?void 0:a,{owner:this}),this.addValue(r,o)),o}readValue(r,a){var o;let u=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:(o=this.getBaseTargetFromProps(this.props,r))!==null&&o!==void 0?o:this.readValueFromInstance(this.current,r,this.options);return u!=null&&(typeof u=="string"&&(YOe(u)||zOe(u))?u=parseFloat(u):!pJt(u)&&qA.test(a)&&(u=VOe(r,a)),this.setBaseTarget(r,Ad(u)?u.get():u)),Ad(u)?u.get():u}setBaseTarget(r,a){this.baseTarget[r]=a}getBaseTarget(r){var a;const{initial:o}=this.props;let u;if(typeof o=="string"||typeof o=="object"){const h=FNe(this.props,o,(a=this.presenceContext)===null||a===void 0?void 0:a.custom);h&&(u=h[r])}if(o&&u!==void 0)return u;const d=this.getBaseTargetFromProps(this.props,r);return d!==void 0&&!Ad(d)?d:this.initialValues[r]!==void 0&&u===void 0?void 0:this.baseTarget[r]}on(r,a){return this.events[r]||(this.events[r]=new Vue),this.events[r].add(a)}notify(r,...a){this.events[r]&&this.events[r].notify(...a)}}class zNe extends PNe{constructor(){super(...arguments),this.KeyframeResolver=ZOe}sortInstanceNodePosition(r,a){return r.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(r,a){return r.style?r.style[a]:void 0}removeValueFromRenderState(r,{vars:a,style:o}){delete a[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;Ad(r)&&(this.childSubscription=r.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}const jNe=(n,r)=>r&&typeof n=="number"?r.transform(n):n,AJt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xJt=oM.length;function kJt(n,r,a){let o="",u=!0;for(let d=0;d<xJt;d++){const h=oM[d],b=n[h];if(b===void 0)continue;let v=!0;if(typeof b=="number"?v=b===(h.startsWith("scale")?1:0):v=parseFloat(b)===0,!v||a){const y=jNe(b,Wue[h]);if(!v){u=!1;const A=AJt[h]||h;o+=`${A}(${y}) `}a&&(r[h]=y)}}return o=o.trim(),a?o=a(r,u?"":o):u&&(o="none"),o}function HNe(n,r,a){const{style:o,vars:u,transformOrigin:d}=n;let h=!1,b=!1;for(const v in r){const y=r[v];if(cM.has(v)){h=!0;continue}else if(Mue(v)){u[v]=y;continue}else{const A=jNe(y,Wue[v]);v.startsWith("origin")?(b=!0,d[v]=A):o[v]=A}}if(r.transform||(h||a?o.transform=kJt(r,n.transform,a):o.transform&&(o.transform="none")),b){const{originX:v="50%",originY:y="50%",originZ:A=0}=d;o.transformOrigin=`${v} ${y} ${A}`}}function VNe(n,{style:r,vars:a},o,u){Object.assign(n.style,r,u&&u.getProjectionStyles(o));for(const d in a)n.style.setProperty(d,a[d])}function EJt(n,{layout:r,layoutId:a}){return cM.has(n)||n.startsWith("origin")||(r||a!==void 0)&&(!!EO[n]||n==="opacity")}function UNe(n,r,a){var o;const{style:u}=n,d={};for(const h in u)(Ad(u[h])||r.style&&Ad(r.style[h])||EJt(h,n)||((o=a==null?void 0:a.getValue(h))===null||o===void 0?void 0:o.liveStyle)!==void 0)&&(d[h]=u[h]);return d}function CJt(n){return window.getComputedStyle(n)}class GNe extends zNe{constructor(){super(...arguments),this.type="html",this.renderInstance=VNe}readValueFromInstance(r,a){if(cM.has(a)){const o=Kue(a);return o&&o.default||0}else{const o=CJt(r),u=(Mue(a)?o.getPropertyValue(a):o[a])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(r,{transformPagePoint:a}){return hJt(r,a)}build(r,a,o){HNe(r,a,o.transformTemplate)}scrapeMotionValuesFromProps(r,a,o){return UNe(r,a,o)}}const TJt={offset:"stroke-dashoffset",array:"stroke-dasharray"},SJt={offset:"strokeDashoffset",array:"strokeDasharray"};function BJt(n,r,a=1,o=0,u=!0){n.pathLength=1;const d=u?TJt:SJt;n[d.offset]=Ja.transform(-o);const h=Ja.transform(r),b=Ja.transform(a);n[d.array]=`${h} ${b}`}function qNe(n,r,a){return typeof n=="string"?n:Ja.transform(r+a*n)}function MJt(n,r,a){const o=qNe(r,n.x,n.width),u=qNe(a,n.y,n.height);return`${o} ${u}`}function _Jt(n,{attrX:r,attrY:a,attrScale:o,originX:u,originY:d,pathLength:h,pathSpacing:b=1,pathOffset:v=0,...y},A,k){if(HNe(n,y,k),A){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:C,style:T,dimensions:B}=n;C.transform&&(B&&(T.transform=C.transform),delete C.transform),B&&(u!==void 0||d!==void 0||T.transform)&&(T.transformOrigin=MJt(B,u!==void 0?u:.5,d!==void 0?d:.5)),r!==void 0&&(C.x=r),a!==void 0&&(C.y=a),o!==void 0&&(C.scale=o),h!==void 0&&BJt(C,h,b,v,!1)}const QNe=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),LJt=n=>typeof n=="string"&&n.toLowerCase()==="svg";function DJt(n,r){try{r.dimensions=typeof n.getBBox=="function"?n.getBBox():n.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}function IJt(n,r,a,o){VNe(n,r,void 0,o);for(const u in r.attrs)n.setAttribute(QNe.has(u)?u:u0e(u),r.attrs[u])}function RJt(n,r,a){const o=UNe(n,r,a);for(const u in n)if(Ad(n[u])||Ad(r[u])){const d=oM.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;o[d]=n[u]}return o}class $Ne extends zNe{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Y0,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&DJt(this.current,this.renderState)}}getBaseTargetFromProps(r,a){return r[a]}readValueFromInstance(r,a){if(cM.has(a)){const o=Kue(a);return o&&o.default||0}return a=QNe.has(a)?a:u0e(a),r.getAttribute(a)}scrapeMotionValuesFromProps(r,a,o){return RJt(r,a,o)}onBindTransform(){this.current&&!this.renderState.dimensions&&Dl.postRender(this.updateDimensions)}build(r,a,o){_Jt(r,a,this.isSVGTag,o.transformTemplate)}renderInstance(r,a,o,u){IJt(r,a,o,u)}mount(r){this.isSVGTag=LJt(r.tagName),super.mount(r)}}function OJt(n,r){return SYt(n)?new $Ne(r):new GNe(r)}function YNe(n,r,a){return new CustomEvent(n,{detail:{target:r,isExit:a}})}function FJt(n,r=100,a){const o=a({...n,keyframes:[0,r]}),u=Math.min(e0e(o),e$);return{type:"keyframes",ease:d=>o.next(u*d).value/r,duration:r8(u)}}const NJt=(n,r,a)=>{const o=r-n;return((a-n)%o+o)%o+n};function WNe(n,r){return uFe(n)?n[NJt(0,n.length,r)]:n}function C0e(n){return typeof n=="object"&&!Array.isArray(n)}function KNe(n,r,a,o){return typeof n=="string"&&C0e(r)?w0e(n,a,o):n instanceof NodeList?Array.from(n):Array.isArray(n)?n:[n]}function PJt(n,r,a){return n*(r+1)}function XNe(n,r,a,o){var u;return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,n+parseFloat(r)):r==="<"?a:(u=o.get(r))!==null&&u!==void 0?u:n}function zJt(n,r,a){for(let o=0;o<n.length;o++){const u=n[o];u.at>r&&u.at<a&&(KQ(n,u),o--)}}function jJt(n,r,a,o,u,d){zJt(n,u,d);for(let h=0;h<r.length;h++)n.push({value:r[h],at:_h(u,d,o[h]),easing:WNe(a,h)})}function HJt(n,r){for(let a=0;a<n.length;a++)n[a]=n[a]/(r+1)}function VJt(n,r){return n.at===r.at?n.value===null?1:r.value===null?-1:0:n.at-r.at}const UJt="easeInOut";function GJt(n,{defaultTransition:r={},...a}={},o,u){const d=r.duration||.3,h=new Map,b=new Map,v={},y=new Map;let A=0,k=0,C=0;for(let T=0;T<n.length;T++){const B=n[T];if(typeof B=="string"){y.set(B,k);continue}else if(!Array.isArray(B)){y.set(B.name,XNe(k,B.at,A,y));continue}let[L,I,O={}]=B;O.at!==void 0&&(k=XNe(k,O.at,A,y));let F=0;const z=(j,G,U,q=0,Q=0)=>{const H=qJt(j),{delay:Y=0,times:P=dFe(H),type:X="keyframes",repeat:N,repeatType:ie,repeatDelay:le=0,...fe}=G;let{ease:ce=r.ease||"easeOut",duration:ue}=G;const he=typeof Y=="function"?Y(q,Q):Y,re=H.length,be=XQ(X)?X:u==null?void 0:u[X];if(re<=2&&be){let _e=100;if(re===2&&YJt(H)){const ot=H[1]-H[0];_e=Math.abs(ot)}const Le={...fe};ue!==void 0&&(Le.duration=n8(ue));const Ve=FJt(Le,_e,be);ce=Ve.ease,ue=Ve.duration}ue??(ue=d);const De=k+he;P.length===1&&P[0]===0&&(P[1]=1);const ge=P.length-H.length;if(ge>0&&fFe(P,ge),H.length===1&&H.unshift(null),N){ue=PJt(ue,N);const _e=[...H],Le=[...P];ce=Array.isArray(ce)?[...ce]:[ce];const Ve=[...ce];for(let ot=0;ot<N;ot++){H.push(..._e);for(let Se=0;Se<_e.length;Se++)P.push(Le[Se]+(ot+1)),ce.push(Se===0?"linear":WNe(Ve,Se-1))}HJt(P,N)}const Ze=De+ue;jJt(U,H,ce,P,De,Ze),F=Math.max(he+ue,F),C=Math.max(Ze,C)};if(Ad(L)){const j=JNe(L,b);z(I,O,ZNe("default",j))}else{const j=KNe(L,I,o,v),G=j.length;for(let U=0;U<G;U++){I=I,O=O;const q=j[U],Q=JNe(q,b);for(const H in I)z(I[H],QJt(O,H),ZNe(H,Q),U,G)}}A=k,k+=F}return b.forEach((T,B)=>{for(const L in T){const I=T[L];I.sort(VJt);const O=[],F=[],z=[];for(let G=0;G<I.length;G++){const{at:U,value:q,easing:Q}=I[G];O.push(q),F.push(RO(0,C,U)),z.push(Q||"easeOut")}F[0]!==0&&(F.unshift(0),O.unshift(O[0]),z.unshift(UJt)),F[F.length-1]!==1&&(F.push(1),O.push(null)),h.has(B)||h.set(B,{keyframes:{},transition:{}});const j=h.get(B);j.keyframes[L]=O,j.transition[L]={...r,duration:C,ease:z,times:F,...a}}}),h}function JNe(n,r){return!r.has(n)&&r.set(n,{}),r.get(n)}function ZNe(n,r){return r[n]||(r[n]=[]),r[n]}function qJt(n){return Array.isArray(n)?n:[n]}function QJt(n,r){return n&&n[r]?{...n,...n[r]}:{...n}}const $Jt=n=>typeof n=="number",YJt=n=>n.every($Jt);function WJt(n,r,a){const o=n.getProps();return FNe(o,r,o.custom,n)}function KJt(n,r,a){n.hasValue(r)?n.getValue(r).set(a):n.addValue(r,IO(a))}function XJt(n,r){const a=WJt(n,r);let{transitionEnd:o={},transition:u={},...d}=a||{};d={...d,...o};for(const h in d){const b=zKt(d[h]);KJt(n,h,b)}}function JJt(n){return!!(Ad(n)&&n.add)}function ZJt(n,r){const a=n.getValue("willChange");if(JJt(a))return a.add(r)}function eZt({protectedKeys:n,needsAnimating:r},a){const o=n.hasOwnProperty(a)&&r[a]!==!0;return r[a]=!1,o}function tZt(n,r,{delay:a=0,transitionOverride:o,type:u}={}){var d;let{transition:h=n.getDefaultTransition(),transitionEnd:b,...v}=r;o&&(h=o);const y=[],A=u&&n.animationState&&n.animationState.getState()[u];for(const k in v){const C=n.getValue(k,(d=n.latestValues[k])!==null&&d!==void 0?d:null),T=v[k];if(T===void 0||A&&eZt(A,k))continue;const B={delay:a,...jue(h||{},k)};let L=!1;if(window.MotionHandoffAnimation){const O=bFe(n);if(O){const F=window.MotionHandoffAnimation(O,k,Dl);F!==null&&(B.startTime=F,L=!0)}}ZJt(n,k),C.start(l0e(k,C,T,n.shouldReduceMotion&&jOe.has(k)?{type:!1}:B,n,L));const I=C.animation;I&&y.push(I)}return b&&Promise.all(y).then(()=>{Dl.update(()=>{b&&XJt(n,b)})}),y}function nZt(n,r){return n in r}class rZt extends PNe{constructor(){super(...arguments),this.type="object"}readValueFromInstance(r,a){if(nZt(a,r)){const o=r[a];if(typeof o=="string"||typeof o=="number")return o}}getBaseTargetFromProps(){}removeValueFromRenderState(r,a){delete a.output[r]}measureInstanceViewportBox(){return Y0()}build(r,a){Object.assign(r.output,a)}renderInstance(r,{output:a}){Object.assign(r,a)}sortInstanceNodePosition(){return 0}}function iZt(n){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},a=vFe(n)?new $Ne(r):new GNe(r);a.mount(n),jk.set(n,a)}function aZt(n){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},a=new rZt(r);a.mount(n),jk.set(n,a)}function sZt(n,r){return Ad(n)||typeof n=="number"||typeof n=="string"&&!C0e(r)}function ePe(n,r,a,o){const u=[];if(sZt(n,r))u.push(mFe(n,C0e(r)&&r.default||r,a&&(a.default||a)));else{const d=KNe(n,r,o),h=d.length;for(let b=0;b<h;b++){const v=d[b],y=v instanceof Element?iZt:aZt;jk.has(v)||y(v);const A=jk.get(v),k={...a};"delay"in k&&typeof k.delay=="function"&&(k.delay=k.delay(b,h)),u.push(...tZt(A,{...r,transition:k},{}))}}return u}function oZt(n,r,a){const o=[];return GJt(n,r,a,{spring:o0e}).forEach(({keyframes:d,transition:h},b)=>{o.push(...ePe(b,d,h))}),o}function cZt(n){return Array.isArray(n)&&n.some(Array.isArray)}function lZt(n){function r(a,o,u){let d=[];return cZt(a)?d=oZt(a,o,n):d=ePe(a,o,u,n),new TOe(d)}return r}const uZt=lZt(),hZt=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];function fZt({controlActiveState:n=void 0,controlDelay:r=0,directAnimate:a,directTransition:o,isFallback:u=!1,isExit:d=!1}={}){const h=this.target;this.target={...this.baseTarget};let b={};const v={...this.options.transition};a?b=dZt.call(this,a,o,b):b=gZt.call(this,n,v);const y=pZt.call(this,h,b,r),{getChildAnimations:A,childAnimations:k}=mZt.call(this,v,this.activeStates,u);return bZt.call(this,{factories:y,getChildAnimations:A,childAnimations:k,transition:v,controlActiveState:n,isExit:d})}function dZt(n,r){const a=CO(n,this.options.variants,this.options.custom);if(!a)return{};const o={...this.options.transition,...r||a.transition},u={};return Object.entries(a).forEach(([d,h])=>{d!=="transition"&&(this.target[d]=h,u[d]=ZRe(o,d))}),u}function gZt(n,r){n&&(this.activeStates={...this.activeStates,...n});const a={};let o={},u={};return hZt.forEach(d=>{if(!this.activeStates[d]||kOe(this.options[d]))return;const h=this.options[d];let b=MYt(h)?CO(h,this.options.variants,this.options.custom):void 0;if(this.visualElement.isVariantNode){const v=CO(this.context[d],this.options.variants,this.options.custom);b=v?Object.assign(v||{},b):u}b&&(d!=="initial"&&(o=b.transition||this.options.transition),u=Object.assign(u,b))}),Object.assign(r,o),Object.entries(u).forEach(([d,h])=>{d!=="transition"&&(this.target[d]=h,a[d]=ZRe(r,d))}),a}function pZt(n,r,a){const o=[];return Object.keys(this.target).forEach(u=>{var d;if(!AYt(n[u],this.target[u]))return;(d=this.baseTarget)[u]??(d[u]=zYt.get(this.element,u));const h=this.target[u]==="none"?PYt[u]:this.target[u],b=r[u];o.push(()=>uZt(this.element,{[u]:h},{...b,delay:((b==null?void 0:b.delay)||0)+a}))}),o}function mZt(n,r,a){var o;if(!((o=this.visualElement.variantChildren)!=null&&o.size)||!r)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:u=0,staggerDirection:d=1,delayChildren:h=0}=n||{},b=(this.visualElement.variantChildren.size-1)*u,v=d===1?(A=0)=>A*u:(A=0)=>b-A*u,y=Array.from(this.visualElement.variantChildren).map((A,k)=>{const C=h+v(k);return A.state.animateUpdates({controlActiveState:r,controlDelay:a?0:C})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(y.map(A=>A==null?void 0:A())),childAnimations:y}}function bZt({factories:n,getChildAnimations:r,childAnimations:a,transition:o,controlActiveState:u,isExit:d=!1}){const h=()=>Promise.all(n.map(k=>k()).filter(Boolean)),b={...this.target},v=this.element,y=k=>{v.dispatchEvent(YNe("motionstart",b)),k.then(()=>{v.dispatchEvent(YNe("motioncomplete",b,d))}).catch(Mg)},A=()=>{const k=o!=null&&o.when?(o.when==="beforeChildren"?h():r()).then(()=>o.when==="beforeChildren"?r():h()):Promise.all([h(),r()]);return y(k),k};return u?A:A()}function vZt(n){return typeof n=="string"||n===!1||Array.isArray(n)}const tPe=new WeakMap;let wZt=0;const T0e=new Set;class yZt{constructor(r,a){var o;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=fZt,this.id=`motion-state-${wZt++}`,this.options=r,this.parent=a,(o=a==null?void 0:a.children)==null||o.add(this),this.depth=(a==null?void 0:a.depth)+1||0;const u=this.context.initial===!1?["initial","animate"]:["initial"];this.initTarget(u),this.visualElement=OJt(this.options.as,{presenceContext:null,parent:a==null?void 0:a.visualElement,props:{...this.options,whileHover:this.options.whileHover,whileTap:this.options.whilePress,whileInView:this.options.whileInView},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.baseTarget}},reducedMotionConfig:r.motionConfig.reduceMotion}),this.featureManager=new cJt(this)}get context(){if(!this._context){const r={get:(a,o)=>{var u;return vZt(this.options[o])?this.options[o]:(u=this.parent)==null?void 0:u.context[o]}};this._context=new Proxy({},r)}return this._context}initTarget(r){this.baseTarget=r.reduce((a,o)=>({...a,...CO(this.options[o]||this.context[o],this.options.variants)}),{}),this.target={}}updateOptions(){this.visualElement.update({...this.options,whileHover:this.options.hover,whileTap:this.options.press,whileInView:this.options.inView,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!v0e.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(r,a,o=!1){this.element=r,this.options=a,tPe.set(r,this),jk.get(r)||(this.visualElement.mount(r),jk.set(r,this.visualElement)),this.visualElement.state=this,this.updateOptions(),this.featureManager.mount(),!o&&this.options.animate&&this.startAnimation(),this.options.layoutId&&(T0e.add(this.options.layoutId),Dl.render(()=>{T0e.clear()}))}clearAnimation(){var r;this.currentProcess&&e8(this.currentProcess),this.currentProcess=null,(r=this.visualElement.variantChildren)==null||r.forEach(a=>{a.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=Dl.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(r=!1){const a=this.options.layoutId&&!T0e.has(this.options.layoutId);(()=>{r&&Array.from(this.children).reverse().forEach(this.unmountChild);const u=()=>{var d,h,b;(h=(d=this.parent)==null?void 0:d.children)==null||h.delete(this),tPe.delete(this.element),this.featureManager.unmount(),(b=this.visualElement)==null||b.unmount()};a?Promise.resolve().then(u):u()})()}unmountChild(r){r.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(r){const a=BYt(this.options,r);this.options=r,this.updateOptions(),this.featureManager.update(),a&&this.startAnimation()}setActive(r,a,o=!0){var u;!this.element||this.activeStates[r]===a||(this.activeStates[r]=a,(u=this.visualElement.variantChildren)==null||u.forEach(d=>{d.state.setActive(r,a,!1)}),o&&this.animateUpdates({isFallback:!a&&r!=="exit"&&this.visualElement.isControllingVariants,isExit:this.activeStates.exit}))}isMounted(){return!!this.element}getOptions(){return this.options}willUpdate(r){var a;(this.options.layout||this.options.layoutId)&&((a=this.visualElement.projection)==null||a.willUpdate())}}function c$(n){return(n==null?void 0:n.nodeType)===3||(n==null?void 0:n.nodeType)===8?c$(n.nextSibling):n}function AZt(n){var r;const a=((r=c$(n.$el))==null?void 0:r.style.display)==="none";return n.$.vnode.transition&&a}const xZt={reduceMotion:"never",transition:void 0,nonce:void 0},[kZt,qfr]=VQ("MotionConfig");function EZt(){return kZt(J.computed(()=>xZt))}const S0e=J.defineComponent({name:"Motion",inheritAttrs:!1,__name:"Motion",props:J.mergeDefaults({as:{},asChild:{type:Boolean},hover:{},press:{},inView:{},focus:{},whileDrag:{},whileHover:{},whilePress:{},whileInView:{},whileFocus:{},custom:{},initial:{type:[String,Array,Object,Boolean]},animate:{},exit:{},variants:{},style:{},transformTemplate:{type:Function},transition:{},layoutGroup:{},motionConfig:{},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String]},layoutId:{},layoutScroll:{type:Boolean},layoutRoot:{type:Boolean},"data-framer-portal-id":{},crossfade:{type:Boolean},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object]},dragMomentum:{type:Boolean},dragTransition:{},dragListener:{type:Boolean},dragControls:{},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},{as:"div",asChild:!1,initial:void 0,animate:void 0,hover:void 0,inView:void 0,layout:!1,layoutId:void 0,layoutScroll:!1,layoutRoot:!1,dragListener:!0,dragElastic:.5,dragMomentum:!0,whileDrag:void 0,crossfade:!0,whileHover:({hover:n})=>n,whilePress:({press:n})=>n,whileInView:({inView:n})=>n,whileFocus:({focus:n})=>n}),setup(n){const r=n,a=EXt({}),o=vYt(null),u=J.useAttrs(),d=yYt({}),h=EZt();function b(){return d.id&&r.layoutId?`${d.id}-${r.layoutId}`:r.layoutId||void 0}function v(){return{...u,...r,layoutId:b(),transition:r.transition??h.value.transition,layoutGroup:d,motionConfig:h.value,inViewOptions:r.inViewOptions??h.value.inViewOptions,initial:a.initial===!1?a.initial:r.initial===!0?void 0:r.initial}}const y=new yZt(v(),o);wYt(y);const A=J.getCurrentInstance().proxy;J.onBeforeMount(()=>{y.beforeMount()}),J.onMounted(()=>{y.mount(c$(A.$el),v(),AZt(A))}),J.onBeforeUnmount(()=>y.beforeUnmount()),J.onUnmounted(()=>{const B=c$(A.$el);B!=null&&B.isConnected||y.unmount()}),J.onBeforeUpdate(()=>{y.beforeUpdate()}),J.onUpdated(()=>{y.update(v())});function k(){const B=y.visualElement.type==="svg",L={...u};Object.keys(u).forEach(O=>{GQ(u[O])&&(L[O]=u[O].get())});let I={...r.style,...B?{}:y.visualElement.latestValues};if(B){const{attributes:O,style:F}=HYt(y.isMounted()?y.target:y.baseTarget);Object.assign(L,O),Object.assign(I,F)}return r.drag&&r.dragListener!==!1&&Object.assign(I,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:r.drag===!0?"none":`pan-${r.drag==="x"?"y":"x"}`}),I=jYt({...I,...r.style}),L.style=I,L}const C=J.ref();function T(B){var L,I;r.asChild&&((L=C.value)==null||L.$forceUpdate()),(I=u.onMotioncomplete)==null||I.call(u,B)}return(B,L)=>{var I;return J.openBlock(),J.createBlock(J.unref(UYt),{ref_key:"PrimitiveRef",ref:C,"get-props":k,as:B.as,"as-child":B.asChild,"data-motion-group":((I=J.unref(d).key)==null?void 0:I.value)||void 0,onMotioncomplete:T},{default:J.withCtx(()=>[J.renderSlot(B.$slots,"default")]),_:3},8,["as","as-child","data-motion-group"])}}}),nPe=new Map,B0e=new Proxy(S0e,{get(n,r){if(typeof r=="symbol")return n[r];let a=nPe.get(r);return r==="create"?o=>J.defineComponent({inheritAttrs:!1,name:`motion.${o.$name}`,setup(u,{attrs:d,slots:h}){return()=>J.h(S0e,{...d,as:o,asChild:!1},h)}}):(a||(a=J.defineComponent({inheritAttrs:!1,name:`motion.${r}`,setup(o,{attrs:u,slots:d}){return()=>J.h(S0e,{...u,as:r,asChild:!1},d)}}),nPe.set(r,a)),a)}});function rPe(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Function]"}function fM(n,r,a,o=1){const[u,d]=typeof o=="number"?[o,o]:o,h=Math.round(r/u/n[0])*n[0],b=Math.round(a/d/n[1])*n[1];return[h,b]}function M0e(n,r,a){return n-r-a}function _0e(n,r,a){return n-r-a}function v3(n,r,a){return r!==null&&n<r?r:a!==null&&a<n?a:n}function iPe(n,r,a){let o=n;const u=["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].find(d=>rPe(o[d]));if(!rPe(o[u]))return!1;do{if(o[u](r))return!0;if(o===a)return!1;o=o.parentNode}while(o);return!1}function CZt(n){const r=window.getComputedStyle(n);return[parseFloat(r.getPropertyValue("width"),10),parseFloat(r.getPropertyValue("height"),10)]}function Gk(n,r,a){n&&(n.attachEvent?n.attachEvent("on"+r,a):n.addEventListener?n.addEventListener(r,a,!0):n["on"+r]=a)}function i8(n,r,a){n&&(n.detachEvent?n.detachEvent("on"+r,a):n.removeEventListener?n.removeEventListener(r,a,!0):n["on"+r]=null)}const TZt=(n,r)=>{const a=n.__vccOpts||n;for(const[o,u]of r)a[o]=u;return a},l$={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},SZt={userSelect:"none",MozUserSelect:"none",WebkitUserSelect:"none",MsUserSelect:"none"},BZt={userSelect:"auto",MozUserSelect:"auto",WebkitUserSelect:"auto",MsUserSelect:"auto"};let a8=l$.mouse;const MZt={replace:!0,name:"vue-draggable-resizable",props:{className:{type:String,default:"vdr"},classNameDraggable:{type:String,default:"draggable"},classNameResizable:{type:String,default:"resizable"},classNameDragging:{type:String,default:"dragging"},classNameResizing:{type:String,default:"resizing"},classNameActive:{type:String,default:"active"},classNameHandle:{type:String,default:"handle"},disableUserSelect:{type:Boolean,default:!0},enableNativeDrag:{type:Boolean,default:!1},preventDeactivation:{type:Boolean,default:!1},active:{type:Boolean,default:!1},draggable:{type:Boolean,default:!0},resizable:{type:Boolean,default:!0},lockAspectRatio:{type:Boolean,default:!1},w:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},h:{type:[Number,String],default:200,validator:n=>typeof n=="number"?n>0:n==="auto"},minWidth:{type:Number,default:0,validator:n=>n>=0},minHeight:{type:Number,default:0,validator:n=>n>=0},maxWidth:{type:Number,default:null,validator:n=>n>=0},maxHeight:{type:Number,default:null,validator:n=>n>=0},x:{type:Number,default:0},y:{type:Number,default:0},z:{type:[String,Number],default:"auto",validator:n=>typeof n=="string"?n==="auto":n>=0},handles:{type:Array,default:()=>["tl","tm","tr","mr","br","bm","bl","ml"],validator:n=>{const r=new Set(["tl","tm","tr","mr","br","bm","bl","ml"]);return new Set(n.filter(a=>r.has(a))).size===n.length}},dragHandle:{type:String,default:null},dragCancel:{type:String,default:null},axis:{type:String,default:"both",validator:n=>["x","y","both"].includes(n)},grid:{type:Array,default:()=>[1,1]},parent:{type:Boolean,default:!1},scale:{type:[Number,Array],default:1,validator:n=>typeof n=="number"?n>0:n.length===2&&n[0]>0&&n[1]>0},onDragStart:{type:Function,default:()=>!0},onDrag:{type:Function,default:()=>!0},onResizeStart:{type:Function,default:()=>!0},onResize:{type:Function,default:()=>!0}},data:function(){return{left:this.x,top:this.y,right:null,bottom:null,width:null,height:null,widthTouched:!1,heightTouched:!1,aspectFactor:null,parentWidth:null,parentHeight:null,handle:null,enabled:this.active,resizing:!1,dragging:!1,dragEnable:!1,resizeEnable:!1,zIndex:this.z}},created:function(){this.maxWidth&&this.minWidth>this.maxWidth&&console.warn("[Vdr warn]: Invalid prop: minWidth cannot be greater than maxWidth"),this.maxHeight&&this.minHeight>this.maxHeight&&console.warn("[Vdr warn]: Invalid prop: minHeight cannot be greater than maxHeight"),this.resetBoundsAndMouseState()},mounted:function(){this.enableNativeDrag||(this.$el.ondragstart=()=>!1);const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r;const[a,o]=CZt(this.$el);this.aspectFactor=(this.w!=="auto"?this.w:a)/(this.h!=="auto"?this.h:o),this.width=this.w!=="auto"?this.w:a,this.height=this.h!=="auto"?this.h:o,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top,this.active&&this.$emit("activated"),Gk(document.documentElement,"mousedown",this.deselect),Gk(document.documentElement,"touchend touchcancel",this.deselect),Gk(window,"resize",this.checkParentSize)},beforeUnmount:function(){i8(document.documentElement,"mousedown",this.deselect),i8(document.documentElement,"touchstart",this.handleUp),i8(document.documentElement,"mousemove",this.move),i8(document.documentElement,"touchmove",this.move),i8(document.documentElement,"mouseup",this.handleUp),i8(document.documentElement,"touchend touchcancel",this.deselect),i8(window,"resize",this.checkParentSize)},methods:{resetBoundsAndMouseState(){this.mouseClickPosition={mouseX:0,mouseY:0,x:0,y:0,w:0,h:0},this.bounds={minLeft:null,maxLeft:null,minRight:null,maxRight:null,minTop:null,maxTop:null,minBottom:null,maxBottom:null}},checkParentSize(){if(this.parent){const[n,r]=this.getParentSize();this.parentWidth=n,this.parentHeight=r,this.right=this.parentWidth-this.width-this.left,this.bottom=this.parentHeight-this.height-this.top}},getParentSize(){if(this.parent){const n=window.getComputedStyle(this.$el.parentNode,null);return[parseInt(n.getPropertyValue("width"),10),parseInt(n.getPropertyValue("height"),10)]}return[null,null]},elementTouchDown(n){a8=l$.touch,this.elementDown(n)},elementMouseDown(n){a8=l$.mouse,this.elementDown(n)},elementDown(n){if(n instanceof MouseEvent&&n.button!==0)return;const r=n.target||n.srcElement;if(this.$el.contains(r)){if(this.onDragStart(n)===!1)return;if(this.dragHandle&&!iPe(r,this.dragHandle,this.$el)||this.dragCancel&&iPe(r,this.dragCancel,this.$el)){this.dragging=!1;return}this.enabled||(this.enabled=!0,this.$emit("activated"),this.$emit("update:active",!0)),this.draggable&&(this.dragEnable=!0),this.mouseClickPosition.mouseX=n.touches?n.touches[0].pageX:n.pageX,this.mouseClickPosition.mouseY=n.touches?n.touches[0].pageY:n.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.parent&&(this.bounds=this.calcDragLimits()),Gk(document.documentElement,a8.move,this.move),Gk(document.documentElement,a8.stop,this.handleUp)}},calcDragLimits(){return{minLeft:this.left%this.grid[0],maxLeft:Math.floor((this.parentWidth-this.width-this.left)/this.grid[0])*this.grid[0]+this.left,minRight:this.right%this.grid[0],maxRight:Math.floor((this.parentWidth-this.width-this.right)/this.grid[0])*this.grid[0]+this.right,minTop:this.top%this.grid[1],maxTop:Math.floor((this.parentHeight-this.height-this.top)/this.grid[1])*this.grid[1]+this.top,minBottom:this.bottom%this.grid[1],maxBottom:Math.floor((this.parentHeight-this.height-this.bottom)/this.grid[1])*this.grid[1]+this.bottom}},deselect(n){const r=n.target||n.srcElement,a=new RegExp(this.className+"-([trmbl]{2})","");!this.$el.contains(r)&&!a.test(r.className)&&(this.enabled&&!this.preventDeactivation&&(this.enabled=!1,this.$emit("deactivated"),this.$emit("update:active",!1)),i8(document.documentElement,a8.move,this.handleResize)),this.resetBoundsAndMouseState()},handleTouchDown(n,r){a8=l$.touch,this.handleDown(n,r)},handleDown(n,r){r instanceof MouseEvent&&r.which!==1||this.onResizeStart(n,r)!==!1&&(r.stopPropagation&&r.stopPropagation(),this.lockAspectRatio&&!n.includes("m")?this.handle="m"+n.substring(1):this.handle=n,this.resizeEnable=!0,this.mouseClickPosition.mouseX=r.touches?r.touches[0].pageX:r.pageX,this.mouseClickPosition.mouseY=r.touches?r.touches[0].pageY:r.pageY,this.mouseClickPosition.left=this.left,this.mouseClickPosition.right=this.right,this.mouseClickPosition.top=this.top,this.mouseClickPosition.bottom=this.bottom,this.bounds=this.calcResizeLimits(),Gk(document.documentElement,a8.move,this.handleResize),Gk(document.documentElement,a8.stop,this.handleUp))},calcResizeLimits(){let n=this.minW,r=this.minH,a=this.maxW,o=this.maxH;const u=this.aspectFactor,[d,h]=this.grid,b=this.width,v=this.height,y=this.left,A=this.top,k=this.right,C=this.bottom;this.lockAspectRatio&&(n/r>u?r=n/u:n=u*r,a&&o?(a=Math.min(a,u*o),o=Math.min(o,a/u)):a?o=a/u:o&&(a=u*o)),a=a-a%d,o=o-o%h;const T={minLeft:null,maxLeft:null,minTop:null,maxTop:null,minRight:null,maxRight:null,minBottom:null,maxBottom:null};return this.parent?(T.minLeft=y%d,T.maxLeft=y+Math.floor((b-n)/d)*d,T.minTop=A%h,T.maxTop=A+Math.floor((v-r)/h)*h,T.minRight=k%d,T.maxRight=k+Math.floor((b-n)/d)*d,T.minBottom=C%h,T.maxBottom=C+Math.floor((v-r)/h)*h,a&&(T.minLeft=Math.max(T.minLeft,this.parentWidth-k-a),T.minRight=Math.max(T.minRight,this.parentWidth-y-a)),o&&(T.minTop=Math.max(T.minTop,this.parentHeight-C-o),T.minBottom=Math.max(T.minBottom,this.parentHeight-A-o)),this.lockAspectRatio&&(T.minLeft=Math.max(T.minLeft,y-A*u),T.minTop=Math.max(T.minTop,A-y/u),T.minRight=Math.max(T.minRight,k-C*u),T.minBottom=Math.max(T.minBottom,C-k/u))):(T.minLeft=null,T.maxLeft=y+Math.floor((b-n)/d)*d,T.minTop=null,T.maxTop=A+Math.floor((v-r)/h)*h,T.minRight=null,T.maxRight=k+Math.floor((b-n)/d)*d,T.minBottom=null,T.maxBottom=C+Math.floor((v-r)/h)*h,a&&(T.minLeft=-(k+a),T.minRight=-(y+a)),o&&(T.minTop=-(C+o),T.minBottom=-(A+o)),this.lockAspectRatio&&a&&o&&(T.minLeft=Math.min(T.minLeft,-(k+a)),T.minTop=Math.min(T.minTop,-(o+C)),T.minRight=Math.min(T.minRight,-y-a),T.minBottom=Math.min(T.minBottom,-A-o))),T},move(n){this.resizing?this.handleResize(n):this.dragEnable&&this.handleDrag(n)},handleDrag(n){const r=this.axis,a=this.grid,o=this.bounds,u=this.mouseClickPosition,d=r&&r!=="y"?u.mouseX-(n.touches?n.touches[0].pageX:n.pageX):0,h=r&&r!=="x"?u.mouseY-(n.touches?n.touches[0].pageY:n.pageY):0,[b,v]=fM(a,d,h,this.scale),y=v3(u.left-b,o.minLeft,o.maxLeft),A=v3(u.top-v,o.minTop,o.maxTop);if(this.onDrag(y,A)===!1)return;const k=v3(u.right+b,o.minRight,o.maxRight),C=v3(u.bottom+v,o.minBottom,o.maxBottom);this.left=y,this.top=A,this.right=k,this.bottom=C,this.$emit("dragging",this.left,this.top),this.dragging=!0},moveHorizontally(n){const[r,a]=fM(this.grid,n,this.top,1),o=v3(r,this.bounds.minLeft,this.bounds.maxLeft);this.left=o,this.right=this.parentWidth-this.width-o},moveVertically(n){const[r,a]=fM(this.grid,this.left,n,1),o=v3(a,this.bounds.minTop,this.bounds.maxTop);this.top=o,this.bottom=this.parentHeight-this.height-o},handleResize(n){let r=this.left,a=this.top,o=this.right,u=this.bottom;const d=this.mouseClickPosition,h=this.aspectFactor,b=d.mouseX-(n.touches?n.touches[0].pageX:n.pageX),v=d.mouseY-(n.touches?n.touches[0].pageY:n.pageY);!this.widthTouched&&b&&(this.widthTouched=!0),!this.heightTouched&&v&&(this.heightTouched=!0);const[y,A]=fM(this.grid,b,v,this.scale);this.handle.includes("b")?(u=v3(d.bottom+A,this.bounds.minBottom,this.bounds.maxBottom),this.lockAspectRatio&&this.resizingOnY&&(o=this.right-(this.bottom-u)*h)):this.handle.includes("t")&&(a=v3(d.top-A,this.bounds.minTop,this.bounds.maxTop),this.lockAspectRatio&&this.resizingOnY&&(r=this.left-(this.top-a)*h)),this.handle.includes("r")?(o=v3(d.right+y,this.bounds.minRight,this.bounds.maxRight),this.lockAspectRatio&&this.resizingOnX&&(u=this.bottom-(this.right-o)/h)):this.handle.includes("l")&&(r=v3(d.left-y,this.bounds.minLeft,this.bounds.maxLeft),this.lockAspectRatio&&this.resizingOnX&&(a=this.top-(this.left-r)/h));const k=M0e(this.parentWidth,r,o),C=_0e(this.parentHeight,a,u);this.onResize(this.handle,r,a,k,C)!==!1&&(this.left=r,this.top=a,this.right=o,this.bottom=u,this.width=k,this.height=C,this.$emit("resizing",this.left,this.top,this.width,this.height),this.resizing=!0)},changeWidth(n){const[r,a]=fM(this.grid,n,0,1),o=v3(this.parentWidth-r-this.left,this.bounds.minRight,this.bounds.maxRight);let u=this.bottom;this.lockAspectRatio&&(u=this.bottom-(this.right-o)/this.aspectFactor);const d=M0e(this.parentWidth,this.left,o),h=_0e(this.parentHeight,this.top,u);this.right=o,this.bottom=u,this.width=d,this.height=h},changeHeight(n){const[r,a]=fM(this.grid,0,n,1),o=v3(this.parentHeight-a-this.top,this.bounds.minBottom,this.bounds.maxBottom);let u=this.right;this.lockAspectRatio&&(u=this.right-(this.bottom-o)*this.aspectFactor);const d=M0e(this.parentWidth,this.left,u),h=_0e(this.parentHeight,this.top,o);this.right=u,this.bottom=o,this.width=d,this.height=h},handleUp(n){this.handle=null,this.resetBoundsAndMouseState(),this.dragEnable=!1,this.resizeEnable=!1,this.resizing&&(this.resizing=!1,this.$emit("resizeStop",this.left,this.top,this.width,this.height)),this.dragging&&(this.dragging=!1,this.$emit("dragStop",this.left,this.top)),i8(document.documentElement,a8.move,this.handleResize)}},computed:{style(){return{transform:`translate(${this.left}px, ${this.top}px)`,width:this.computedWidth,height:this.computedHeight,zIndex:this.zIndex,...this.dragging&&this.disableUserSelect?SZt:BZt}},actualHandles(){return this.resizable?this.handles:[]},computedWidth(){return this.w==="auto"&&!this.widthTouched?"auto":this.width+"px"},computedHeight(){return this.h==="auto"&&!this.heightTouched?"auto":this.height+"px"},minW(){return this.minWidth},minH(){return this.minHeight},maxW(){return this.maxWidth},maxH(){return this.maxHeight},resizingOnX(){return!!this.handle&&(this.handle.includes("l")||this.handle.includes("r"))},resizingOnY(){return!!this.handle&&(this.handle.includes("t")||this.handle.includes("b"))},isCornerHandle(){return!!this.handle&&["tl","tr","br","bl"].includes(this.handle)}},watch:{active(n){this.enabled=n,n?this.$emit("activated"):this.$emit("deactivated")},z(n){(n>=0||n==="auto")&&(this.zIndex=n)},x(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveHorizontally(n))},y(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcDragLimits()),this.moveVertically(n))},lockAspectRatio(n){n?this.aspectFactor=this.width/this.height:this.aspectFactor=void 0},w(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeWidth(n))},h(n){this.resizing||this.dragging||(this.parent&&(this.bounds=this.calcResizeLimits()),this.changeHeight(n))}}},_Zt=["onMousedown","onTouchstart"];function LZt(n,r,a,o,u,d){return J.openBlock(),J.createElementBlock("div",{style:J.normalizeStyle(d.style),class:J.normalizeClass([{[a.classNameActive]:n.enabled,[a.classNameDragging]:n.dragging,[a.classNameResizing]:n.resizing,[a.classNameDraggable]:a.draggable,[a.classNameResizable]:a.resizable},a.className]),onMousedown:r[0]||(r[0]=(...h)=>d.elementMouseDown&&d.elementMouseDown(...h)),onTouchstart:r[1]||(r[1]=(...h)=>d.elementTouchDown&&d.elementTouchDown(...h))},[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(d.actualHandles,h=>(J.openBlock(),J.createElementBlock("div",{key:h,class:J.normalizeClass([a.classNameHandle,a.classNameHandle+"-"+h]),style:J.normalizeStyle({display:n.enabled?"block":"none"}),onMousedown:J.withModifiers(b=>d.handleDown(h,b),["stop","prevent"]),onTouchstart:J.withModifiers(b=>d.handleTouchDown(h,b),["stop","prevent"])},[J.renderSlot(n.$slots,h)],46,_Zt))),128)),J.renderSlot(n.$slots,"default")],38)}const L0e=TZt(MZt,[["render",LZt]]);function D0e(n){D0e.installed||(D0e.installed=!0,n.component("VueDraggableResizable",L0e))}const DZt={install:D0e};let u$=null;typeof window<"u"?u$=window.Vue:typeof global<"u"&&(u$=global.Vue),u$&&u$.use(DZt);const I0e="data:image/png;base64,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";var _g="top",w3="bottom",y3="right",Lg="left",R0e="auto",HO=[_g,w3,y3,Lg],dM="start",VO="end",IZt="clippingParents",aPe="viewport",UO="popper",RZt="reference",sPe=HO.reduce(function(n,r){return n.concat([r+"-"+dM,r+"-"+VO])},[]),oPe=[].concat(HO,[R0e]).reduce(function(n,r){return n.concat([r,r+"-"+dM,r+"-"+VO])},[]),OZt="beforeRead",FZt="read",NZt="afterRead",PZt="beforeMain",zZt="main",jZt="afterMain",HZt="beforeWrite",VZt="write",UZt="afterWrite",GZt=[OZt,FZt,NZt,PZt,zZt,jZt,HZt,VZt,UZt];function B5(n){return n?(n.nodeName||"").toLowerCase():null}function Yp(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var r=n.ownerDocument;return r&&r.defaultView||window}return n}function qk(n){var r=Yp(n).Element;return n instanceof r||n instanceof Element}function A3(n){var r=Yp(n).HTMLElement;return n instanceof r||n instanceof HTMLElement}function O0e(n){if(typeof ShadowRoot>"u")return!1;var r=Yp(n).ShadowRoot;return n instanceof r||n instanceof ShadowRoot}function qZt(n){var r=n.state;Object.keys(r.elements).forEach(function(a){var o=r.styles[a]||{},u=r.attributes[a]||{},d=r.elements[a];!A3(d)||!B5(d)||(Object.assign(d.style,o),Object.keys(u).forEach(function(h){var b=u[h];b===!1?d.removeAttribute(h):d.setAttribute(h,b===!0?"":b)}))})}function QZt(n){var r=n.state,a={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,a.popper),r.styles=a,r.elements.arrow&&Object.assign(r.elements.arrow.style,a.arrow),function(){Object.keys(r.elements).forEach(function(o){var u=r.elements[o],d=r.attributes[o]||{},h=Object.keys(r.styles.hasOwnProperty(o)?r.styles[o]:a[o]),b=h.reduce(function(v,y){return v[y]="",v},{});!A3(u)||!B5(u)||(Object.assign(u.style,b),Object.keys(d).forEach(function(v){u.removeAttribute(v)}))})}}const cPe={name:"applyStyles",enabled:!0,phase:"write",fn:qZt,effect:QZt,requires:["computeStyles"]};function M5(n){return n.split("-")[0]}var Qk=Math.max,h$=Math.min,gM=Math.round;function F0e(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function lPe(){return!/^((?!chrome|android).)*safari/i.test(F0e())}function pM(n,r,a){r===void 0&&(r=!1),a===void 0&&(a=!1);var o=n.getBoundingClientRect(),u=1,d=1;r&&A3(n)&&(u=n.offsetWidth>0&&gM(o.width)/n.offsetWidth||1,d=n.offsetHeight>0&&gM(o.height)/n.offsetHeight||1);var h=qk(n)?Yp(n):window,b=h.visualViewport,v=!lPe()&&a,y=(o.left+(v&&b?b.offsetLeft:0))/u,A=(o.top+(v&&b?b.offsetTop:0))/d,k=o.width/u,C=o.height/d;return{width:k,height:C,top:A,right:y+k,bottom:A+C,left:y,x:y,y:A}}function N0e(n){var r=pM(n),a=n.offsetWidth,o=n.offsetHeight;return Math.abs(r.width-a)<=1&&(a=r.width),Math.abs(r.height-o)<=1&&(o=r.height),{x:n.offsetLeft,y:n.offsetTop,width:a,height:o}}function uPe(n,r){var a=r.getRootNode&&r.getRootNode();if(n.contains(r))return!0;if(a&&O0e(a)){var o=r;do{if(o&&n.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function s8(n){return Yp(n).getComputedStyle(n)}function $Zt(n){return["table","td","th"].indexOf(B5(n))>=0}function QA(n){return((qk(n)?n.ownerDocument:n.document)||window.document).documentElement}function f$(n){return B5(n)==="html"?n:n.assignedSlot||n.parentNode||(O0e(n)?n.host:null)||QA(n)}function hPe(n){return!A3(n)||s8(n).position==="fixed"?null:n.offsetParent}function YZt(n){var r=/firefox/i.test(F0e()),a=/Trident/i.test(F0e());if(a&&A3(n)){var o=s8(n);if(o.position==="fixed")return null}var u=f$(n);for(O0e(u)&&(u=u.host);A3(u)&&["html","body"].indexOf(B5(u))<0;){var d=s8(u);if(d.transform!=="none"||d.perspective!=="none"||d.contain==="paint"||["transform","perspective"].indexOf(d.willChange)!==-1||r&&d.willChange==="filter"||r&&d.filter&&d.filter!=="none")return u;u=u.parentNode}return null}function GO(n){for(var r=Yp(n),a=hPe(n);a&&$Zt(a)&&s8(a).position==="static";)a=hPe(a);return a&&(B5(a)==="html"||B5(a)==="body"&&s8(a).position==="static")?r:a||YZt(n)||r}function P0e(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function qO(n,r,a){return Qk(n,h$(r,a))}function WZt(n,r,a){var o=qO(n,r,a);return o>a?a:o}function fPe(){return{top:0,right:0,bottom:0,left:0}}function dPe(n){return Object.assign({},fPe(),n)}function gPe(n,r){return r.reduce(function(a,o){return a[o]=n,a},{})}var KZt=function(r,a){return r=typeof r=="function"?r(Object.assign({},a.rects,{placement:a.placement})):r,dPe(typeof r!="number"?r:gPe(r,HO))};function XZt(n){var r,a=n.state,o=n.name,u=n.options,d=a.elements.arrow,h=a.modifiersData.popperOffsets,b=M5(a.placement),v=P0e(b),y=[Lg,y3].indexOf(b)>=0,A=y?"height":"width";if(!(!d||!h)){var k=KZt(u.padding,a),C=N0e(d),T=v==="y"?_g:Lg,B=v==="y"?w3:y3,L=a.rects.reference[A]+a.rects.reference[v]-h[v]-a.rects.popper[A],I=h[v]-a.rects.reference[v],O=GO(d),F=O?v==="y"?O.clientHeight||0:O.clientWidth||0:0,z=L/2-I/2,j=k[T],G=F-C[A]-k[B],U=F/2-C[A]/2+z,q=qO(j,U,G),Q=v;a.modifiersData[o]=(r={},r[Q]=q,r.centerOffset=q-U,r)}}function JZt(n){var r=n.state,a=n.options,o=a.element,u=o===void 0?"[data-popper-arrow]":o;u!=null&&(typeof u=="string"&&(u=r.elements.popper.querySelector(u),!u)||uPe(r.elements.popper,u)&&(r.elements.arrow=u))}const ZZt={name:"arrow",enabled:!0,phase:"main",fn:XZt,effect:JZt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mM(n){return n.split("-")[1]}var een={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ten(n,r){var a=n.x,o=n.y,u=r.devicePixelRatio||1;return{x:gM(a*u)/u||0,y:gM(o*u)/u||0}}function pPe(n){var r,a=n.popper,o=n.popperRect,u=n.placement,d=n.variation,h=n.offsets,b=n.position,v=n.gpuAcceleration,y=n.adaptive,A=n.roundOffsets,k=n.isFixed,C=h.x,T=C===void 0?0:C,B=h.y,L=B===void 0?0:B,I=typeof A=="function"?A({x:T,y:L}):{x:T,y:L};T=I.x,L=I.y;var O=h.hasOwnProperty("x"),F=h.hasOwnProperty("y"),z=Lg,j=_g,G=window;if(y){var U=GO(a),q="clientHeight",Q="clientWidth";if(U===Yp(a)&&(U=QA(a),s8(U).position!=="static"&&b==="absolute"&&(q="scrollHeight",Q="scrollWidth")),U=U,u===_g||(u===Lg||u===y3)&&d===VO){j=w3;var H=k&&U===G&&G.visualViewport?G.visualViewport.height:U[q];L-=H-o.height,L*=v?1:-1}if(u===Lg||(u===_g||u===w3)&&d===VO){z=y3;var Y=k&&U===G&&G.visualViewport?G.visualViewport.width:U[Q];T-=Y-o.width,T*=v?1:-1}}var P=Object.assign({position:b},y&&een),X=A===!0?ten({x:T,y:L},Yp(a)):{x:T,y:L};if(T=X.x,L=X.y,v){var N;return Object.assign({},P,(N={},N[j]=F?"0":"",N[z]=O?"0":"",N.transform=(G.devicePixelRatio||1)<=1?"translate("+T+"px, "+L+"px)":"translate3d("+T+"px, "+L+"px, 0)",N))}return Object.assign({},P,(r={},r[j]=F?L+"px":"",r[z]=O?T+"px":"",r.transform="",r))}function nen(n){var r=n.state,a=n.options,o=a.gpuAcceleration,u=o===void 0?!0:o,d=a.adaptive,h=d===void 0?!0:d,b=a.roundOffsets,v=b===void 0?!0:b,y={placement:M5(r.placement),variation:mM(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:u,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,pPe(Object.assign({},y,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:h,roundOffsets:v})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,pPe(Object.assign({},y,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:v})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const ren={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nen,data:{}};var d$={passive:!0};function ien(n){var r=n.state,a=n.instance,o=n.options,u=o.scroll,d=u===void 0?!0:u,h=o.resize,b=h===void 0?!0:h,v=Yp(r.elements.popper),y=[].concat(r.scrollParents.reference,r.scrollParents.popper);return d&&y.forEach(function(A){A.addEventListener("scroll",a.update,d$)}),b&&v.addEventListener("resize",a.update,d$),function(){d&&y.forEach(function(A){A.removeEventListener("scroll",a.update,d$)}),b&&v.removeEventListener("resize",a.update,d$)}}const aen={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ien,data:{}};var sen={left:"right",right:"left",bottom:"top",top:"bottom"};function g$(n){return n.replace(/left|right|bottom|top/g,function(r){return sen[r]})}var oen={start:"end",end:"start"};function mPe(n){return n.replace(/start|end/g,function(r){return oen[r]})}function z0e(n){var r=Yp(n),a=r.pageXOffset,o=r.pageYOffset;return{scrollLeft:a,scrollTop:o}}function j0e(n){return pM(QA(n)).left+z0e(n).scrollLeft}function cen(n,r){var a=Yp(n),o=QA(n),u=a.visualViewport,d=o.clientWidth,h=o.clientHeight,b=0,v=0;if(u){d=u.width,h=u.height;var y=lPe();(y||!y&&r==="fixed")&&(b=u.offsetLeft,v=u.offsetTop)}return{width:d,height:h,x:b+j0e(n),y:v}}function len(n){var r,a=QA(n),o=z0e(n),u=(r=n.ownerDocument)==null?void 0:r.body,d=Qk(a.scrollWidth,a.clientWidth,u?u.scrollWidth:0,u?u.clientWidth:0),h=Qk(a.scrollHeight,a.clientHeight,u?u.scrollHeight:0,u?u.clientHeight:0),b=-o.scrollLeft+j0e(n),v=-o.scrollTop;return s8(u||a).direction==="rtl"&&(b+=Qk(a.clientWidth,u?u.clientWidth:0)-d),{width:d,height:h,x:b,y:v}}function H0e(n){var r=s8(n),a=r.overflow,o=r.overflowX,u=r.overflowY;return/auto|scroll|overlay|hidden/.test(a+u+o)}function bPe(n){return["html","body","#document"].indexOf(B5(n))>=0?n.ownerDocument.body:A3(n)&&H0e(n)?n:bPe(f$(n))}function QO(n,r){var a;r===void 0&&(r=[]);var o=bPe(n),u=o===((a=n.ownerDocument)==null?void 0:a.body),d=Yp(o),h=u?[d].concat(d.visualViewport||[],H0e(o)?o:[]):o,b=r.concat(h);return u?b:b.concat(QO(f$(h)))}function V0e(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function uen(n,r){var a=pM(n,!1,r==="fixed");return a.top=a.top+n.clientTop,a.left=a.left+n.clientLeft,a.bottom=a.top+n.clientHeight,a.right=a.left+n.clientWidth,a.width=n.clientWidth,a.height=n.clientHeight,a.x=a.left,a.y=a.top,a}function vPe(n,r,a){return r===aPe?V0e(cen(n,a)):qk(r)?uen(r,a):V0e(len(QA(n)))}function hen(n){var r=QO(f$(n)),a=["absolute","fixed"].indexOf(s8(n).position)>=0,o=a&&A3(n)?GO(n):n;return qk(o)?r.filter(function(u){return qk(u)&&uPe(u,o)&&B5(u)!=="body"}):[]}function fen(n,r,a,o){var u=r==="clippingParents"?hen(n):[].concat(r),d=[].concat(u,[a]),h=d[0],b=d.reduce(function(v,y){var A=vPe(n,y,o);return v.top=Qk(A.top,v.top),v.right=h$(A.right,v.right),v.bottom=h$(A.bottom,v.bottom),v.left=Qk(A.left,v.left),v},vPe(n,h,o));return b.width=b.right-b.left,b.height=b.bottom-b.top,b.x=b.left,b.y=b.top,b}function wPe(n){var r=n.reference,a=n.element,o=n.placement,u=o?M5(o):null,d=o?mM(o):null,h=r.x+r.width/2-a.width/2,b=r.y+r.height/2-a.height/2,v;switch(u){case _g:v={x:h,y:r.y-a.height};break;case w3:v={x:h,y:r.y+r.height};break;case y3:v={x:r.x+r.width,y:b};break;case Lg:v={x:r.x-a.width,y:b};break;default:v={x:r.x,y:r.y}}var y=u?P0e(u):null;if(y!=null){var A=y==="y"?"height":"width";switch(d){case dM:v[y]=v[y]-(r[A]/2-a[A]/2);break;case VO:v[y]=v[y]+(r[A]/2-a[A]/2);break}}return v}function $O(n,r){r===void 0&&(r={});var a=r,o=a.placement,u=o===void 0?n.placement:o,d=a.strategy,h=d===void 0?n.strategy:d,b=a.boundary,v=b===void 0?IZt:b,y=a.rootBoundary,A=y===void 0?aPe:y,k=a.elementContext,C=k===void 0?UO:k,T=a.altBoundary,B=T===void 0?!1:T,L=a.padding,I=L===void 0?0:L,O=dPe(typeof I!="number"?I:gPe(I,HO)),F=C===UO?RZt:UO,z=n.rects.popper,j=n.elements[B?F:C],G=fen(qk(j)?j:j.contextElement||QA(n.elements.popper),v,A,h),U=pM(n.elements.reference),q=wPe({reference:U,element:z,placement:u}),Q=V0e(Object.assign({},z,q)),H=C===UO?Q:U,Y={top:G.top-H.top+O.top,bottom:H.bottom-G.bottom+O.bottom,left:G.left-H.left+O.left,right:H.right-G.right+O.right},P=n.modifiersData.offset;if(C===UO&&P){var X=P[u];Object.keys(Y).forEach(function(N){var ie=[y3,w3].indexOf(N)>=0?1:-1,le=[_g,w3].indexOf(N)>=0?"y":"x";Y[N]+=X[le]*ie})}return Y}function den(n,r){r===void 0&&(r={});var a=r,o=a.placement,u=a.boundary,d=a.rootBoundary,h=a.padding,b=a.flipVariations,v=a.allowedAutoPlacements,y=v===void 0?oPe:v,A=mM(o),k=A?b?sPe:sPe.filter(function(B){return mM(B)===A}):HO,C=k.filter(function(B){return y.indexOf(B)>=0});C.length===0&&(C=k);var T=C.reduce(function(B,L){return B[L]=$O(n,{placement:L,boundary:u,rootBoundary:d,padding:h})[M5(L)],B},{});return Object.keys(T).sort(function(B,L){return T[B]-T[L]})}function gen(n){if(M5(n)===R0e)return[];var r=g$(n);return[mPe(n),r,mPe(r)]}function pen(n){var r=n.state,a=n.options,o=n.name;if(!r.modifiersData[o]._skip){for(var u=a.mainAxis,d=u===void 0?!0:u,h=a.altAxis,b=h===void 0?!0:h,v=a.fallbackPlacements,y=a.padding,A=a.boundary,k=a.rootBoundary,C=a.altBoundary,T=a.flipVariations,B=T===void 0?!0:T,L=a.allowedAutoPlacements,I=r.options.placement,O=M5(I),F=O===I,z=v||(F||!B?[g$(I)]:gen(I)),j=[I].concat(z).reduce(function(Ze,_e){return Ze.concat(M5(_e)===R0e?den(r,{placement:_e,boundary:A,rootBoundary:k,padding:y,flipVariations:B,allowedAutoPlacements:L}):_e)},[]),G=r.rects.reference,U=r.rects.popper,q=new Map,Q=!0,H=j[0],Y=0;Y<j.length;Y++){var P=j[Y],X=M5(P),N=mM(P)===dM,ie=[_g,w3].indexOf(X)>=0,le=ie?"width":"height",fe=$O(r,{placement:P,boundary:A,rootBoundary:k,altBoundary:C,padding:y}),ce=ie?N?y3:Lg:N?w3:_g;G[le]>U[le]&&(ce=g$(ce));var ue=g$(ce),he=[];if(d&&he.push(fe[X]<=0),b&&he.push(fe[ce]<=0,fe[ue]<=0),he.every(function(Ze){return Ze})){H=P,Q=!1;break}q.set(P,he)}if(Q)for(var re=B?3:1,be=function(_e){var Le=j.find(function(Ve){var ot=q.get(Ve);if(ot)return ot.slice(0,_e).every(function(Se){return Se})});if(Le)return H=Le,"break"},De=re;De>0;De--){var ge=be(De);if(ge==="break")break}r.placement!==H&&(r.modifiersData[o]._skip=!0,r.placement=H,r.reset=!0)}}const men={name:"flip",enabled:!0,phase:"main",fn:pen,requiresIfExists:["offset"],data:{_skip:!1}};function yPe(n,r,a){return a===void 0&&(a={x:0,y:0}),{top:n.top-r.height-a.y,right:n.right-r.width+a.x,bottom:n.bottom-r.height+a.y,left:n.left-r.width-a.x}}function APe(n){return[_g,y3,w3,Lg].some(function(r){return n[r]>=0})}function ben(n){var r=n.state,a=n.name,o=r.rects.reference,u=r.rects.popper,d=r.modifiersData.preventOverflow,h=$O(r,{elementContext:"reference"}),b=$O(r,{altBoundary:!0}),v=yPe(h,o),y=yPe(b,u,d),A=APe(v),k=APe(y);r.modifiersData[a]={referenceClippingOffsets:v,popperEscapeOffsets:y,isReferenceHidden:A,hasPopperEscaped:k},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":A,"data-popper-escaped":k})}const ven={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ben};function wen(n,r,a){var o=M5(n),u=[Lg,_g].indexOf(o)>=0?-1:1,d=typeof a=="function"?a(Object.assign({},r,{placement:n})):a,h=d[0],b=d[1];return h=h||0,b=(b||0)*u,[Lg,y3].indexOf(o)>=0?{x:b,y:h}:{x:h,y:b}}function yen(n){var r=n.state,a=n.options,o=n.name,u=a.offset,d=u===void 0?[0,0]:u,h=oPe.reduce(function(A,k){return A[k]=wen(k,r.rects,d),A},{}),b=h[r.placement],v=b.x,y=b.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=v,r.modifiersData.popperOffsets.y+=y),r.modifiersData[o]=h}const Aen={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:yen};function xen(n){var r=n.state,a=n.name;r.modifiersData[a]=wPe({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const ken={name:"popperOffsets",enabled:!0,phase:"read",fn:xen,data:{}};function Een(n){return n==="x"?"y":"x"}function Cen(n){var r=n.state,a=n.options,o=n.name,u=a.mainAxis,d=u===void 0?!0:u,h=a.altAxis,b=h===void 0?!1:h,v=a.boundary,y=a.rootBoundary,A=a.altBoundary,k=a.padding,C=a.tether,T=C===void 0?!0:C,B=a.tetherOffset,L=B===void 0?0:B,I=$O(r,{boundary:v,rootBoundary:y,padding:k,altBoundary:A}),O=M5(r.placement),F=mM(r.placement),z=!F,j=P0e(O),G=Een(j),U=r.modifiersData.popperOffsets,q=r.rects.reference,Q=r.rects.popper,H=typeof L=="function"?L(Object.assign({},r.rects,{placement:r.placement})):L,Y=typeof H=="number"?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),P=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,X={x:0,y:0};if(U){if(d){var N,ie=j==="y"?_g:Lg,le=j==="y"?w3:y3,fe=j==="y"?"height":"width",ce=U[j],ue=ce+I[ie],he=ce-I[le],re=T?-Q[fe]/2:0,be=F===dM?q[fe]:Q[fe],De=F===dM?-Q[fe]:-q[fe],ge=r.elements.arrow,Ze=T&&ge?N0e(ge):{width:0,height:0},_e=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:fPe(),Le=_e[ie],Ve=_e[le],ot=qO(0,q[fe],Ze[fe]),Se=z?q[fe]/2-re-ot-Le-Y.mainAxis:be-ot-Le-Y.mainAxis,Be=z?-q[fe]/2+re+ot+Ve+Y.mainAxis:De+ot+Ve+Y.mainAxis,we=r.elements.arrow&&GO(r.elements.arrow),ke=we?j==="y"?we.clientTop||0:we.clientLeft||0:0,Te=(N=P==null?void 0:P[j])!=null?N:0,vt=ce+Se-Te-ke,Pe=ce+Be-Te,Dn=qO(T?h$(ue,vt):ue,ce,T?Qk(he,Pe):he);U[j]=Dn,X[j]=Dn-ce}if(b){var st,wn=j==="x"?_g:Lg,fn=j==="x"?w3:y3,Wn=U[G],ft=G==="y"?"height":"width",on=Wn+I[wn],Bt=Wn-I[fn],ut=[_g,Lg].indexOf(O)!==-1,dt=(st=P==null?void 0:P[G])!=null?st:0,jt=ut?on:Wn-q[ft]-Q[ft]-dt+Y.altAxis,et=ut?Wn+q[ft]+Q[ft]-dt-Y.altAxis:Bt,je=T&&ut?WZt(jt,Wn,et):qO(T?jt:on,Wn,T?et:Bt);U[G]=je,X[G]=je-Wn}r.modifiersData[o]=X}}const Ten={name:"preventOverflow",enabled:!0,phase:"main",fn:Cen,requiresIfExists:["offset"]};function Sen(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function Ben(n){return n===Yp(n)||!A3(n)?z0e(n):Sen(n)}function Men(n){var r=n.getBoundingClientRect(),a=gM(r.width)/n.offsetWidth||1,o=gM(r.height)/n.offsetHeight||1;return a!==1||o!==1}function _en(n,r,a){a===void 0&&(a=!1);var o=A3(r),u=A3(r)&&Men(r),d=QA(r),h=pM(n,u,a),b={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(o||!o&&!a)&&((B5(r)!=="body"||H0e(d))&&(b=Ben(r)),A3(r)?(v=pM(r,!0),v.x+=r.clientLeft,v.y+=r.clientTop):d&&(v.x=j0e(d))),{x:h.left+b.scrollLeft-v.x,y:h.top+b.scrollTop-v.y,width:h.width,height:h.height}}function Len(n){var r=new Map,a=new Set,o=[];n.forEach(function(d){r.set(d.name,d)});function u(d){a.add(d.name);var h=[].concat(d.requires||[],d.requiresIfExists||[]);h.forEach(function(b){if(!a.has(b)){var v=r.get(b);v&&u(v)}}),o.push(d)}return n.forEach(function(d){a.has(d.name)||u(d)}),o}function Den(n){var r=Len(n);return GZt.reduce(function(a,o){return a.concat(r.filter(function(u){return u.phase===o}))},[])}function Ien(n){var r;return function(){return r||(r=new Promise(function(a){Promise.resolve().then(function(){r=void 0,a(n())})})),r}}function Ren(n){var r=n.reduce(function(a,o){var u=a[o.name];return a[o.name]=u?Object.assign({},u,o,{options:Object.assign({},u.options,o.options),data:Object.assign({},u.data,o.data)}):o,a},{});return Object.keys(r).map(function(a){return r[a]})}var xPe={placement:"bottom",modifiers:[],strategy:"absolute"};function kPe(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return!r.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function Oen(n){n===void 0&&(n={});var r=n,a=r.defaultModifiers,o=a===void 0?[]:a,u=r.defaultOptions,d=u===void 0?xPe:u;return function(b,v,y){y===void 0&&(y=d);var A={placement:"bottom",orderedModifiers:[],options:Object.assign({},xPe,d),modifiersData:{},elements:{reference:b,popper:v},attributes:{},styles:{}},k=[],C=!1,T={state:A,setOptions:function(O){var F=typeof O=="function"?O(A.options):O;L(),A.options=Object.assign({},d,A.options,F),A.scrollParents={reference:qk(b)?QO(b):b.contextElement?QO(b.contextElement):[],popper:QO(v)};var z=Den(Ren([].concat(o,A.options.modifiers)));return A.orderedModifiers=z.filter(function(j){return j.enabled}),B(),T.update()},forceUpdate:function(){if(!C){var O=A.elements,F=O.reference,z=O.popper;if(kPe(F,z)){A.rects={reference:_en(F,GO(z),A.options.strategy==="fixed"),popper:N0e(z)},A.reset=!1,A.placement=A.options.placement,A.orderedModifiers.forEach(function(Y){return A.modifiersData[Y.name]=Object.assign({},Y.data)});for(var j=0;j<A.orderedModifiers.length;j++){if(A.reset===!0){A.reset=!1,j=-1;continue}var G=A.orderedModifiers[j],U=G.fn,q=G.options,Q=q===void 0?{}:q,H=G.name;typeof U=="function"&&(A=U({state:A,options:Q,name:H,instance:T})||A)}}}},update:Ien(function(){return new Promise(function(I){T.forceUpdate(),I(A)})}),destroy:function(){L(),C=!0}};if(!kPe(b,v))return T;T.setOptions(y).then(function(I){!C&&y.onFirstUpdate&&y.onFirstUpdate(I)});function B(){A.orderedModifiers.forEach(function(I){var O=I.name,F=I.options,z=F===void 0?{}:F,j=I.effect;if(typeof j=="function"){var G=j({state:A,name:O,instance:T,options:z}),U=function(){};k.push(G||U)}})}function L(){k.forEach(function(I){return I()}),k=[]}return T}}var Fen=[aen,ken,ren,cPe,Aen,men,Ten,ZZt,ven],Nen=Oen({defaultModifiers:Fen}),Pen="tippy-box",EPe="tippy-content",zen="tippy-backdrop",CPe="tippy-arrow",TPe="tippy-svg-arrow",$k={passive:!0,capture:!0},SPe=function(){return document.body};function U0e(n,r,a){if(Array.isArray(n)){var o=n[r];return o??(Array.isArray(a)?a[r]:a)}return n}function G0e(n,r){var a={}.toString.call(n);return a.indexOf("[object")===0&&a.indexOf(r+"]")>-1}function BPe(n,r){return typeof n=="function"?n.apply(void 0,r):n}function MPe(n,r){if(r===0)return n;var a;return function(o){clearTimeout(a),a=setTimeout(function(){n(o)},r)}}function jen(n){return n.split(/\s+/).filter(Boolean)}function bM(n){return[].concat(n)}function _Pe(n,r){n.indexOf(r)===-1&&n.push(r)}function Hen(n){return n.filter(function(r,a){return n.indexOf(r)===a})}function Ven(n){return n.split("-")[0]}function p$(n){return[].slice.call(n)}function LPe(n){return Object.keys(n).reduce(function(r,a){return n[a]!==void 0&&(r[a]=n[a]),r},{})}function YO(){return document.createElement("div")}function m$(n){return["Element","Fragment"].some(function(r){return G0e(n,r)})}function Uen(n){return G0e(n,"NodeList")}function Gen(n){return G0e(n,"MouseEvent")}function qen(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function Qen(n){return m$(n)?[n]:Uen(n)?p$(n):Array.isArray(n)?n:p$(document.querySelectorAll(n))}function q0e(n,r){n.forEach(function(a){a&&(a.style.transitionDuration=r+"ms")})}function DPe(n,r){n.forEach(function(a){a&&a.setAttribute("data-state",r)})}function $en(n){var r,a=bM(n),o=a[0];return o!=null&&(r=o.ownerDocument)!=null&&r.body?o.ownerDocument:document}function Yen(n,r){var a=r.clientX,o=r.clientY;return n.every(function(u){var d=u.popperRect,h=u.popperState,b=u.props,v=b.interactiveBorder,y=Ven(h.placement),A=h.modifiersData.offset;if(!A)return!0;var k=y==="bottom"?A.top.y:0,C=y==="top"?A.bottom.y:0,T=y==="right"?A.left.x:0,B=y==="left"?A.right.x:0,L=d.top-o+k>v,I=o-d.bottom-C>v,O=d.left-a+T>v,F=a-d.right-B>v;return L||I||O||F})}function Q0e(n,r,a){var o=r+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(u){n[o](u,a)})}function IPe(n,r){for(var a=r;a;){var o;if(n.contains(a))return!0;a=a.getRootNode==null||(o=a.getRootNode())==null?void 0:o.host}return!1}var _5={isTouch:!1},RPe=0;function Wen(){_5.isTouch||(_5.isTouch=!0,window.performance&&document.addEventListener("mousemove",OPe))}function OPe(){var n=performance.now();n-RPe<20&&(_5.isTouch=!1,document.removeEventListener("mousemove",OPe)),RPe=n}function Ken(){var n=document.activeElement;if(qen(n)){var r=n._tippy;n.blur&&!r.state.isVisible&&n.blur()}}function Xen(){document.addEventListener("touchstart",Wen,$k),window.addEventListener("blur",Ken)}var Jen=typeof window<"u"&&typeof document<"u",Zen=Jen?!!window.msCrypto:!1,etn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ttn={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},kb=Object.assign({appendTo:SPe,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},etn,ttn),ntn=Object.keys(kb),rtn=function(r){var a=Object.keys(r);a.forEach(function(o){kb[o]=r[o]})};function FPe(n){var r=n.plugins||[],a=r.reduce(function(o,u){var d=u.name,h=u.defaultValue;if(d){var b;o[d]=n[d]!==void 0?n[d]:(b=kb[d])!=null?b:h}return o},{});return Object.assign({},n,a)}function itn(n,r){var a=r?Object.keys(FPe(Object.assign({},kb,{plugins:r}))):ntn,o=a.reduce(function(u,d){var h=(n.getAttribute("data-tippy-"+d)||"").trim();if(!h)return u;if(d==="content")u[d]=h;else try{u[d]=JSON.parse(h)}catch{u[d]=h}return u},{});return o}function NPe(n,r){var a=Object.assign({},r,{content:BPe(r.content,[n])},r.ignoreAttributes?{}:itn(n,r.plugins));return a.aria=Object.assign({},kb.aria,a.aria),a.aria={expanded:a.aria.expanded==="auto"?r.interactive:a.aria.expanded,content:a.aria.content==="auto"?r.interactive?null:"describedby":a.aria.content},a}var atn=function(){return"innerHTML"};function $0e(n,r){n[atn()]=r}function PPe(n){var r=YO();return n===!0?r.className=CPe:(r.className=TPe,m$(n)?r.appendChild(n):$0e(r,n)),r}function zPe(n,r){m$(r.content)?($0e(n,""),n.appendChild(r.content)):typeof r.content!="function"&&(r.allowHTML?$0e(n,r.content):n.textContent=r.content)}function Y0e(n){var r=n.firstElementChild,a=p$(r.children);return{box:r,content:a.find(function(o){return o.classList.contains(EPe)}),arrow:a.find(function(o){return o.classList.contains(CPe)||o.classList.contains(TPe)}),backdrop:a.find(function(o){return o.classList.contains(zen)})}}function jPe(n){var r=YO(),a=YO();a.className=Pen,a.setAttribute("data-state","hidden"),a.setAttribute("tabindex","-1");var o=YO();o.className=EPe,o.setAttribute("data-state","hidden"),zPe(o,n.props),r.appendChild(a),a.appendChild(o),u(n.props,n.props);function u(d,h){var b=Y0e(r),v=b.box,y=b.content,A=b.arrow;h.theme?v.setAttribute("data-theme",h.theme):v.removeAttribute("data-theme"),typeof h.animation=="string"?v.setAttribute("data-animation",h.animation):v.removeAttribute("data-animation"),h.inertia?v.setAttribute("data-inertia",""):v.removeAttribute("data-inertia"),v.style.maxWidth=typeof h.maxWidth=="number"?h.maxWidth+"px":h.maxWidth,h.role?v.setAttribute("role",h.role):v.removeAttribute("role"),(d.content!==h.content||d.allowHTML!==h.allowHTML)&&zPe(y,n.props),h.arrow?A?d.arrow!==h.arrow&&(v.removeChild(A),v.appendChild(PPe(h.arrow))):v.appendChild(PPe(h.arrow)):A&&v.removeChild(A)}return{popper:r,onUpdate:u}}jPe.$$tippy=!0;var stn=1,b$=[],W0e=[];function otn(n,r){var a=NPe(n,Object.assign({},kb,FPe(LPe(r)))),o,u,d,h=!1,b=!1,v=!1,y=!1,A,k,C,T=[],B=MPe(vt,a.interactiveDebounce),L,I=stn++,O=null,F=Hen(a.plugins),z={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},j={id:I,reference:n,popper:YO(),popperInstance:O,props:a,state:z,plugins:F,clearDelayTimeouts:jt,setProps:et,setContent:je,show:wt,hide:ht,hideWithInteractivity:mt,enable:ut,disable:dt,unmount:sn,destroy:Ne};if(!a.render)return j;var G=a.render(j),U=G.popper,q=G.onUpdate;U.setAttribute("data-tippy-root",""),U.id="tippy-"+j.id,j.popper=U,n._tippy=j,U._tippy=j;var Q=F.map(function(We){return We.fn(j)}),H=n.hasAttribute("aria-expanded");return we(),re(),ce(),ue("onCreate",[j]),a.showOnCreate&&on(),U.addEventListener("mouseenter",function(){j.props.interactive&&j.state.isVisible&&j.clearDelayTimeouts()}),U.addEventListener("mouseleave",function(){j.props.interactive&&j.props.trigger.indexOf("mouseenter")>=0&&ie().addEventListener("mousemove",B)}),j;function Y(){var We=j.props.touch;return Array.isArray(We)?We:[We,0]}function P(){return Y()[0]==="hold"}function X(){var We;return!!((We=j.props.render)!=null&&We.$$tippy)}function N(){return L||n}function ie(){var We=N().parentNode;return We?$en(We):document}function le(){return Y0e(U)}function fe(We){return j.state.isMounted&&!j.state.isVisible||_5.isTouch||A&&A.type==="focus"?0:U0e(j.props.delay,We?0:1,kb.delay)}function ce(We){We===void 0&&(We=!1),U.style.pointerEvents=j.props.interactive&&!We?"":"none",U.style.zIndex=""+j.props.zIndex}function ue(We,yt,Ut){if(Ut===void 0&&(Ut=!0),Q.forEach(function(Hn){Hn[We]&&Hn[We].apply(Hn,yt)}),Ut){var qt;(qt=j.props)[We].apply(qt,yt)}}function he(){var We=j.props.aria;if(We.content){var yt="aria-"+We.content,Ut=U.id,qt=bM(j.props.triggerTarget||n);qt.forEach(function(Hn){var dn=Hn.getAttribute(yt);if(j.state.isVisible)Hn.setAttribute(yt,dn?dn+" "+Ut:Ut);else{var Hr=dn&&dn.replace(Ut,"").trim();Hr?Hn.setAttribute(yt,Hr):Hn.removeAttribute(yt)}})}}function re(){if(!(H||!j.props.aria.expanded)){var We=bM(j.props.triggerTarget||n);We.forEach(function(yt){j.props.interactive?yt.setAttribute("aria-expanded",j.state.isVisible&&yt===N()?"true":"false"):yt.removeAttribute("aria-expanded")})}}function be(){ie().removeEventListener("mousemove",B),b$=b$.filter(function(We){return We!==B})}function De(We){if(!(_5.isTouch&&(v||We.type==="mousedown"))){var yt=We.composedPath&&We.composedPath()[0]||We.target;if(!(j.props.interactive&&IPe(U,yt))){if(bM(j.props.triggerTarget||n).some(function(Ut){return IPe(Ut,yt)})){if(_5.isTouch||j.state.isVisible&&j.props.trigger.indexOf("click")>=0)return}else ue("onClickOutside",[j,We]);j.props.hideOnClick===!0&&(j.clearDelayTimeouts(),j.hide(),b=!0,setTimeout(function(){b=!1}),j.state.isMounted||Le())}}}function ge(){v=!0}function Ze(){v=!1}function _e(){var We=ie();We.addEventListener("mousedown",De,!0),We.addEventListener("touchend",De,$k),We.addEventListener("touchstart",Ze,$k),We.addEventListener("touchmove",ge,$k)}function Le(){var We=ie();We.removeEventListener("mousedown",De,!0),We.removeEventListener("touchend",De,$k),We.removeEventListener("touchstart",Ze,$k),We.removeEventListener("touchmove",ge,$k)}function Ve(We,yt){Se(We,function(){!j.state.isVisible&&U.parentNode&&U.parentNode.contains(U)&&yt()})}function ot(We,yt){Se(We,yt)}function Se(We,yt){var Ut=le().box;function qt(Hn){Hn.target===Ut&&(Q0e(Ut,"remove",qt),yt())}if(We===0)return yt();Q0e(Ut,"remove",k),Q0e(Ut,"add",qt),k=qt}function Be(We,yt,Ut){Ut===void 0&&(Ut=!1);var qt=bM(j.props.triggerTarget||n);qt.forEach(function(Hn){Hn.addEventListener(We,yt,Ut),T.push({node:Hn,eventType:We,handler:yt,options:Ut})})}function we(){P()&&(Be("touchstart",Te,{passive:!0}),Be("touchend",Pe,{passive:!0})),jen(j.props.trigger).forEach(function(We){if(We!=="manual")switch(Be(We,Te),We){case"mouseenter":Be("mouseleave",Pe);break;case"focus":Be(Zen?"focusout":"blur",Dn);break;case"focusin":Be("focusout",Dn);break}})}function ke(){T.forEach(function(We){var yt=We.node,Ut=We.eventType,qt=We.handler,Hn=We.options;yt.removeEventListener(Ut,qt,Hn)}),T=[]}function Te(We){var yt,Ut=!1;if(!(!j.state.isEnabled||st(We)||b)){var qt=((yt=A)==null?void 0:yt.type)==="focus";A=We,L=We.currentTarget,re(),!j.state.isVisible&&Gen(We)&&b$.forEach(function(Hn){return Hn(We)}),We.type==="click"&&(j.props.trigger.indexOf("mouseenter")<0||h)&&j.props.hideOnClick!==!1&&j.state.isVisible?Ut=!0:on(We),We.type==="click"&&(h=!Ut),Ut&&!qt&&Bt(We)}}function vt(We){var yt=We.target,Ut=N().contains(yt)||U.contains(yt);if(!(We.type==="mousemove"&&Ut)){var qt=ft().concat(U).map(function(Hn){var dn,Hr=Hn._tippy,ei=(dn=Hr.popperInstance)==null?void 0:dn.state;return ei?{popperRect:Hn.getBoundingClientRect(),popperState:ei,props:a}:null}).filter(Boolean);Yen(qt,We)&&(be(),Bt(We))}}function Pe(We){var yt=st(We)||j.props.trigger.indexOf("click")>=0&&h;if(!yt){if(j.props.interactive){j.hideWithInteractivity(We);return}Bt(We)}}function Dn(We){j.props.trigger.indexOf("focusin")<0&&We.target!==N()||j.props.interactive&&We.relatedTarget&&U.contains(We.relatedTarget)||Bt(We)}function st(We){return _5.isTouch?P()!==We.type.indexOf("touch")>=0:!1}function wn(){fn();var We=j.props,yt=We.popperOptions,Ut=We.placement,qt=We.offset,Hn=We.getReferenceClientRect,dn=We.moveTransition,Hr=X()?Y0e(U).arrow:null,ei=Hn?{getBoundingClientRect:Hn,contextElement:Hn.contextElement||N()}:n,Wr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Vn){var si=Vn.state;if(X()){var Vr=le(),Yi=Vr.box;["placement","reference-hidden","escaped"].forEach(function(Vi){Vi==="placement"?Yi.setAttribute("data-placement",si.placement):si.attributes.popper["data-popper-"+Vi]?Yi.setAttribute("data-"+Vi,""):Yi.removeAttribute("data-"+Vi)}),si.attributes.popper={}}}},ci=[{name:"offset",options:{offset:qt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!dn}},Wr];X()&&Hr&&ci.push({name:"arrow",options:{element:Hr,padding:3}}),ci.push.apply(ci,(yt==null?void 0:yt.modifiers)||[]),j.popperInstance=Nen(ei,U,Object.assign({},yt,{placement:Ut,onFirstUpdate:C,modifiers:ci}))}function fn(){j.popperInstance&&(j.popperInstance.destroy(),j.popperInstance=null)}function Wn(){var We=j.props.appendTo,yt,Ut=N();j.props.interactive&&We===SPe||We==="parent"?yt=Ut.parentNode:yt=BPe(We,[Ut]),yt.contains(U)||yt.appendChild(U),j.state.isMounted=!0,wn()}function ft(){return p$(U.querySelectorAll("[data-tippy-root]"))}function on(We){j.clearDelayTimeouts(),We&&ue("onTrigger",[j,We]),_e();var yt=fe(!0),Ut=Y(),qt=Ut[0],Hn=Ut[1];_5.isTouch&&qt==="hold"&&Hn&&(yt=Hn),yt?o=setTimeout(function(){j.show()},yt):j.show()}function Bt(We){if(j.clearDelayTimeouts(),ue("onUntrigger",[j,We]),!j.state.isVisible){Le();return}if(!(j.props.trigger.indexOf("mouseenter")>=0&&j.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(We.type)>=0&&h)){var yt=fe(!1);yt?u=setTimeout(function(){j.state.isVisible&&j.hide()},yt):d=requestAnimationFrame(function(){j.hide()})}}function ut(){j.state.isEnabled=!0}function dt(){j.hide(),j.state.isEnabled=!1}function jt(){clearTimeout(o),clearTimeout(u),cancelAnimationFrame(d)}function et(We){if(!j.state.isDestroyed){ue("onBeforeUpdate",[j,We]),ke();var yt=j.props,Ut=NPe(n,Object.assign({},yt,LPe(We),{ignoreAttributes:!0}));j.props=Ut,we(),yt.interactiveDebounce!==Ut.interactiveDebounce&&(be(),B=MPe(vt,Ut.interactiveDebounce)),yt.triggerTarget&&!Ut.triggerTarget?bM(yt.triggerTarget).forEach(function(qt){qt.removeAttribute("aria-expanded")}):Ut.triggerTarget&&n.removeAttribute("aria-expanded"),re(),ce(),q&&q(yt,Ut),j.popperInstance&&(wn(),ft().forEach(function(qt){requestAnimationFrame(qt._tippy.popperInstance.forceUpdate)})),ue("onAfterUpdate",[j,We])}}function je(We){j.setProps({content:We})}function wt(){var We=j.state.isVisible,yt=j.state.isDestroyed,Ut=!j.state.isEnabled,qt=_5.isTouch&&!j.props.touch,Hn=U0e(j.props.duration,0,kb.duration);if(!(We||yt||Ut||qt)&&!N().hasAttribute("disabled")&&(ue("onShow",[j],!1),j.props.onShow(j)!==!1)){if(j.state.isVisible=!0,X()&&(U.style.visibility="visible"),ce(),_e(),j.state.isMounted||(U.style.transition="none"),X()){var dn=le(),Hr=dn.box,ei=dn.content;q0e([Hr,ei],0)}C=function(){var ci;if(!(!j.state.isVisible||y)){if(y=!0,U.offsetHeight,U.style.transition=j.props.moveTransition,X()&&j.props.animation){var vi=le(),Vn=vi.box,si=vi.content;q0e([Vn,si],Hn),DPe([Vn,si],"visible")}he(),re(),_Pe(W0e,j),(ci=j.popperInstance)==null||ci.forceUpdate(),ue("onMount",[j]),j.props.animation&&X()&&ot(Hn,function(){j.state.isShown=!0,ue("onShown",[j])})}},Wn()}}function ht(){var We=!j.state.isVisible,yt=j.state.isDestroyed,Ut=!j.state.isEnabled,qt=U0e(j.props.duration,1,kb.duration);if(!(We||yt||Ut)&&(ue("onHide",[j],!1),j.props.onHide(j)!==!1)){if(j.state.isVisible=!1,j.state.isShown=!1,y=!1,h=!1,X()&&(U.style.visibility="hidden"),be(),Le(),ce(!0),X()){var Hn=le(),dn=Hn.box,Hr=Hn.content;j.props.animation&&(q0e([dn,Hr],qt),DPe([dn,Hr],"hidden"))}he(),re(),j.props.animation?X()&&Ve(qt,j.unmount):j.unmount()}}function mt(We){ie().addEventListener("mousemove",B),_Pe(b$,B),B(We)}function sn(){j.state.isVisible&&j.hide(),j.state.isMounted&&(fn(),ft().forEach(function(We){We._tippy.unmount()}),U.parentNode&&U.parentNode.removeChild(U),W0e=W0e.filter(function(We){return We!==j}),j.state.isMounted=!1,ue("onHidden",[j]))}function Ne(){j.state.isDestroyed||(j.clearDelayTimeouts(),j.unmount(),ke(),delete n._tippy,j.state.isDestroyed=!0,ue("onDestroy",[j]))}}function Yk(n,r){r===void 0&&(r={});var a=kb.plugins.concat(r.plugins||[]);Xen();var o=Object.assign({},r,{plugins:a}),u=Qen(n),d=u.reduce(function(h,b){var v=b&&otn(b,o);return v&&h.push(v),h},[]);return m$(n)?d[0]:d}Yk.defaultProps=kb,Yk.setDefaultProps=rtn,Yk.currentInput=_5,Object.assign({},cPe,{effect:function(r){var a=r.state,o={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(a.elements.popper.style,o.popper),a.styles=o,a.elements.arrow&&Object.assign(a.elements.arrow.style,o.arrow)}}),Yk.setDefaultProps({render:jPe});function ctn(n){const{triggerRef:r,panelComponent:a,panelProps:o={},tippyOptions:u={}}=n,d=J.ref(null);let h=null;const b=()=>{h||(h=document.createElement("div"));const L=J.h(a,{...o,onClose:k});return J.render(L,h),h},v=L=>{var z;const I=L.target,O=r.value;if(O&&O.contains(I))return;const F=document.querySelector('.tippy-box[data-theme~="history-panel"]');F&&F.contains(I)||(z=d.value)!=null&&z.state.isVisible&&d.value.hide()},y=()=>{if(!r.value||d.value)return;const L={placement:"bottom-end",offset:[0,8],appendTo:document.querySelector(".ai-blueking-container-wrapper")||document.body};d.value=Yk(r.value,{content:b(),interactive:!0,trigger:"manual",theme:"light history-panel",arrow:!1,hideOnClick:!1,animation:"scale",duration:200,delay:[0,0],...L,...u,onShow:()=>{d.value&&h&&d.value.setContent(b()),setTimeout(()=>{document.addEventListener("click",v,!1)},0)},onHidden:()=>{document.removeEventListener("click",v,!1)}})},A=()=>{var L;d.value||y(),(L=d.value)==null||L.show()},k=()=>{var L;(L=d.value)==null||L.hide()},C=()=>{var L;d.value||y(),(L=d.value)!=null&&L.state.isVisible?k():A()},T=L=>{L.stopPropagation(),C()},B=()=>{d.value&&(d.value.destroy(),d.value=null),h&&(J.render(null,h),h=null),document.removeEventListener("click",v,!1)};return J.onBeforeUnmount(()=>{B()}),{show:A,hide:k,toggle:C,handleTriggerClick:T,destroy:B,isVisible:()=>{var L;return((L=d.value)==null?void 0:L.state.isVisible)??!1}}}const v$=[Zr.HiddenAi,Zr.HiddenUser,Zr.HiddenGuide,Zr.HiddenRole],ltn=n=>{const r=document.cookie.match(new RegExp(`(^| )${n}=([^;]*)(;|$)`));return r?r[2]:""},HPe=n=>n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),utn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{const r=Math.random()*16|0;return(n=="x"?r:r&3|8).toString(16)}),htn=n=>{if(!n)return n;try{if(n.startsWith("http://")||n.startsWith("https://")){const a=window.location.protocol,o=new URL(n);return a==="https:"&&o.protocol==="http:"?(o.protocol="https:",o.toString()):n}if(n.startsWith("//"))return`${window.location.protocol}${n}`;if(n.startsWith("/"))return`${window.location.protocol}//${window.location.host}${n}`;const r=`${window.location.protocol}//${window.location.host}${window.location.pathname}`;return new URL(n,r).toString()}catch(r){return console.warn("URL normalization failed:",r),n}},ftn=ltn("blueking_language")||"zh-cn",dtn={小鲸:"BK GPT",向下收缩:"shrink down",向上扩展:"expand upward",清空聊天记录:"Empty chat records",关闭:"close","内容正在执行中,请执行完成后再发送":"The content is being executed, please send it after the execution is completed.",发送:"Send","您可以键入 “/” 查看更多Prompt":'You can type "/" to see more Prompts',请输入:"Please input",返回最新:"Latest",终止生成:"Stop",向上滚动加载更多记录:"Scroll up to load more records",日:" sunday",一:" monday",二:" tuesday",三:" wednesday",四:" thursday",五:" friday",六:" saturday",昨天:"yesterday",本周:"this week",上周:"last week",复制成功:"Copy success",您选择的文本内容:"The text content you selected",问小鲸:"Ask BK GPT",想对选中的文本做什么:"What do you want to do with the selected text?",translateShortcut:`You are a highly skilled AI trained in language translation. I would like you to translate the text delimited by triple quotes (Translation of Chinese into English and other languages into Chinese), ensuring that the translation is colloquial and authentic.
187
187
  Only give me the output and nothing else. Do not wrap responses in quotes
188
188
  '''
189
189
  {{ SELECTED_TEXT }}
@@ -288,7 +288,7 @@ ${n.themeCSS}`),n.fontFamily!==void 0&&(o+=`
288
288
  * Wait for document loaded before starting the execution
289
289
  */window.addEventListener("load",_Ue,!1)}const Ydn=function(n){Jp.parseError=n},zY=[];let R1e=!1;const LUe=async()=>{if(!R1e){for(R1e=!0;zY.length>0;){const n=zY.shift();if(n)try{await n()}catch(r){ze.error("Error executing queue",r)}}R1e=!1}},Wdn=async(n,r)=>new Promise((a,o)=>{const u=()=>new Promise((d,h)=>{wE.parse(n,r).then(b=>{d(b),a(b)},b=>{var v;ze.error("Error parsing",b),(v=Jp.parseError)==null||v.call(Jp,b),h(b),o(b)})});zY.push(u),LUe().catch(o)}),DUe=(n,r,a)=>new Promise((o,u)=>{const d=()=>new Promise((h,b)=>{wE.render(n,r,a).then(v=>{h(v),o(v)},v=>{var y;ze.error("Error parsing",v),(y=Jp.parseError)==null||y.call(Jp,v),b(v),u(v)})});zY.push(d),LUe().catch(u)}),Jp={startOnLoad:!0,mermaidAPI:wE,parse:Wdn,render:DUe,init:Qdn,run:BUe,registerExternalDiagrams:$dn,initialize:MUe,parseError:void 0,contentLoaded:_Ue,setParseErrorHandler:Ydn,detectType:BY};function Kdn(){const n=()=>{Jp.initialize({startOnLoad:!1,securityLevel:"loose",theme:"default",fontFamily:"Arial, sans-serif",fontSize:14})},r=async u=>{var h,b;const d=u.querySelectorAll(".mermaid-placeholder");for(const v of d)try{const y=v.getAttribute("data-mermaid-id"),A=v.getAttribute("data-mermaid-content");if(!y||!A)continue;const k=decodeURIComponent(A),{svg:C}=await Jp.render(y,k),T=document.getElementById(`d${y}`);T&&T.remove();const B=document.createElement("div"),L=c8.sanitize(C,{ADD_TAGS:["foreignObject"],USE_PROFILES:{svg:!0,svgFilters:!0}});B.className="mermaid-diagram",B.innerHTML=L,(h=v.parentNode)==null||h.replaceChild(B,v)}catch(y){console.error("Mermaid rendering error:",y);const A=v.getAttribute("data-mermaid-id");if(A){const T=document.getElementById(`d${A}`);T&&T.remove()}const k=document.createElement("div");k.className="alert alert-danger mermaid-error";const C=y instanceof Error?y.message:String(y);k.textContent=`Mermaid diagram error: ${C}`,(b=v.parentNode)==null||b.replaceChild(k,v)}};return{initMermaid:n,renderMermaidDiagrams:r,processMermaidDiagrams:async(u,d)=>{await J.nextTick(),await r(u),await J.nextTick(),d&&d()},cleanupMermaidElements:()=>{document.querySelectorAll('[id^="dmermaid-"]').forEach(d=>d.remove())}}}const IUe=n=>{const r=n.renderer.rules.link_open||function(a,o,u,d,h){return h.renderToken(a,o,u)};n.renderer.rules.link_open=function(a,o,u,d,h){return a[o].attrSet("target","_blank"),r(a,o,u,d,h)}};function RUe(n,r={}){Jp.initialize({startOnLoad:!1,securityLevel:"loose",theme:"default",...r});function a(d){return d.split(/\s+/g)[0]}const o=n.renderer.rules.fence;function u(d,h,b,v,y){const A=d[h],k=A.info.trim(),C=k?a(k):"";return["mermaid","{mermaid}"].indexOf(C)===-1?o!==void 0?o(d,h,b,v,y):"":`<div class="mermaid-placeholder" data-mermaid-id="${`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`}" data-mermaid-content="${encodeURIComponent(A.content)}">Loading diagram...</div>`}n.renderer.rules.fence=u}const Xdn={class:"delete-confirm-wrapper"},Jdn={class:"delete-confirm-title"},Zdn={class:"delete-confirm-content"},e2n={class:"delete-confirm-footer"},t2n=a1(J.defineComponent({__name:"delete-confirm",props:{onConfirm:{type:Function},onCancel:{type:Function},title:{},content:{}},setup(n){const r=n,a=r.title||"确认删除该提问?",o=r.content||"删除操作无法撤回,请谨慎操作!",u=()=>{r.onCancel()},d=()=>{r.onConfirm()};return(h,b)=>(J.openBlock(),J.createElementBlock("div",Xdn,[J.createElementVNode("div",Jdn,J.toDisplayString(J.unref(a)),1),J.createElementVNode("div",Zdn,J.toDisplayString(J.unref(o)),1),J.createElementVNode("div",e2n,[J.createVNode(J.unref(qu.Button),{style:{width:"64px","min-width":"64px"},size:"small",theme:"danger",onClick:d},{default:J.withCtx(()=>[J.createTextVNode(J.toDisplayString(J.unref(ms)("删除")),1)]),_:1}),J.createVNode(J.unref(qu.Button),{style:{width:"64px","min-width":"64px"},size:"small",theme:"default",onClick:u},{default:J.withCtx(()=>[J.createTextVNode(J.toDisplayString(J.unref(ms)("取消")),1)]),_:1})])]))}}),[["__scopeId","data-v-c7564ad8"]]),yE=new Map;function n2n(n,r){const a=typeof n=="string"?document.querySelector(n):n;if(!a){console.error("Target element not found");return}if(yE.has(a)){const v=yE.get(a);return v==null||v.show(),v}const o={onConfirm:()=>{r.onConfirm(),h==null||h.hide(),yE.delete(a)},onCancel:()=>{h==null||h.hide(),yE.delete(a)},title:r.title,content:r.content},u=document.createElement("div"),d=J.h(t2n,o);J.render(d,u);const h=Yk(a,{content:u,interactive:!0,trigger:"manual",theme:"white",placement:r.placement||"top",arrow:!0,appendTo:r.appendTo||document.body,hideOnClick:!0,animation:"scale",duration:200,delay:[0,0],onHidden:()=>{setTimeout(()=>{yE.delete(a),J.render(null,u)},200)}});yE.set(a,h);const b=()=>{h.hide()};return o.onConfirm=()=>{r.onConfirm(),b()},o.onCancel=()=>{b()},h.show(),h}function r2n(){yE.forEach(n=>{n.hide()})}const i2n={class:"bk-text-editor"},a2n=["placeholder"],s2n={class:"editor-footer"},o2n={class:"button-group"},c2n=J.defineComponent({__name:"text-editor",props:{modelValue:{default:""},placeholder:{default:ms("请输入内容")},autoFocus:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["submit","update:modelValue","cancel","stop"],setup(n,{expose:r,emit:a}){const o=n,u=a,d=J.ref(null),h=J.ref(o.modelValue),{handleCompositionStart:b,handleCompositionEnd:v,handleEnter:y,handleSend:A}=qPe({isLoading:J.computed(()=>o.loading),getInputValue:()=>h.value,clearInput:()=>{h.value=""},onSend:L=>u("submit",L),onStop:()=>u("stop")});J.watch(()=>o.modelValue,L=>{h.value=L}),J.watch(()=>h.value,L=>{u("update:modelValue",L)});const k=()=>{u("update:modelValue",h.value)},C=L=>{if(L.ctrlKey||L.metaKey){L.preventDefault(),T();return}y(L)},T=()=>{A()},B=()=>{h.value="",u("cancel")};return J.onMounted(()=>{var L;o.autoFocus&&((L=d.value)==null||L.focus())}),r({focus:()=>{var L;(L=d.value)==null||L.focus()},clear:()=>{h.value=""}}),(L,I)=>(J.openBlock(),J.createElementBlock("div",i2n,[J.withDirectives(J.createElementVNode("textarea",{ref_key:"textareaRef",ref:d,"onUpdate:modelValue":I[0]||(I[0]=O=>h.value=O),class:"editor-textarea",placeholder:L.placeholder,onCompositionend:I[1]||(I[1]=(...O)=>J.unref(v)&&J.unref(v)(...O)),onCompositionstart:I[2]||(I[2]=(...O)=>J.unref(b)&&J.unref(b)(...O)),onInput:k,onKeydown:J.withKeys(C,["enter"])},null,40,a2n),[[J.vModelText,h.value]]),J.createElementVNode("div",s2n,[J.createElementVNode("div",o2n,[J.createVNode(J.unref(qu.Button),{style:{width:"52px","min-width":"52px"},class:"cancel-btn",size:"small",theme:"default",onClick:B},{default:J.withCtx(()=>[J.createTextVNode(J.toDisplayString(J.unref(ms)("取消")),1)]),_:1}),J.createVNode(J.unref(qu.Button),{style:{width:"52px","min-width":"52px"},class:"submit-btn",disabled:!h.value.trim(),size:"small",theme:"primary",onClick:T},{default:J.withCtx(()=>[J.createTextVNode(J.toDisplayString(J.unref(ms)("发送")),1)]),_:1},8,["disabled"])])])]))}}),l2n=a1(c2n,[["__scopeId","data-v-b4d807d6"]]),u2n={key:0,class:"ai-cite-container"},h2n={key:1,class:"message-content user"},f2n={key:0,class:"time-message user"},d2n=["innerHTML"],g2n={key:2,class:"message-content ai"},p2n={key:0,class:"time-message ai"},m2n={key:2,width:"14",height:"14",class:"loading-message","aria-hidden":"true"},b2n={key:3,class:"message-wrap"},v2n=["innerHTML"],w2n={key:3,class:"message-tool"},y2n=J.defineComponent({__name:"render-message",props:{message:{},userPhoto:{default:Pnn},showTime:{type:Boolean,default:!1},index:{}},emits:["regenerate","resend","delete"],setup(n,{emit:r}){const a=r,o=n,u=J.ref(!1),d=J.ref(null),h=Y=>typeof Y=="object"&&Y!==null&&"type"in Y&&Y.type==="structured",{enablePopup:b}=K0e(),{setCiteText:v}=KO(b),{createTooltipsForSelector:y,destroyAll:A}=vM({placement:"top",arrow:!0,appendTo:"parent",delay:[0,0]}),{initMermaid:k,processMermaidDiagrams:C,cleanupMermaidElements:T}=Kdn(),B=new aRe({html:!0,highlight:(Y,P)=>{if(P&&OQ.getLanguage(P))try{return OQ.highlight(Y,{language:P}).value}catch{}return""}}).use(kue).use(IUe).use(RUe),L=J.computed(()=>{var P;const Y={[Of.Fail]:"bkai-icon bkai-warning-circle-fill",[Of.Loading]:"",[Of.Success]:""};return(P=o.message)!=null&&P.status?Y[o.message.status]:""}),I=J.computed(()=>{if(!o.message.content)return"";const Y=B.render(o.message.content),P=c8.sanitize(Y,{USE_PROFILES:{html:!0,svg:!0},ADD_TAGS:["svg","g","path"],ADD_ATTR:["target","xmlns","width","height","viewBox","fill","stroke-linecap","stroke-linejoin","stroke-width"],FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]});return J.nextTick(()=>{d.value&&C(d.value,()=>{var N;const X=new CustomEvent("mermaid-rendered",{bubbles:!0});(N=d.value)==null||N.dispatchEvent(X)})}),P.replace(/\s*<\/p>\s*$/,"</p>")}),O=J.computed(()=>{if(!o.message.time)return"";const Y=Y1(o.message.time);return Y1().isSame(Y,"year")?Y.format("MM-DD HH:mm:ss"):Y.format("YYYY-MM-DD HH:mm:ss")}),F=Y=>{u.value=!1,a("resend",o.index,{message:Y})},z=Y=>Y.content?typeof Y.content=="string"?Y.content:JSON.stringify(Y.content,null,2):Y.data&&Y.data.length>0?`${Y.title}
290
290
  ${Y.data.map(P=>`${P.key}: ${P.value}`).join(`
291
- `)}`:JSON.stringify(Y,null,2),j=()=>{var P,X,N;const Y=(N=(X=(P=o.message)==null?void 0:P.property)==null?void 0:X.extra)==null?void 0:N.cite;return Y&&h(Y)?z(Y):o.message.content},G=async()=>{try{await navigator.clipboard.writeText(j()),qu.Message({theme:"success",message:ms("复制成功")})}catch(Y){console.error("复制失败:",Y),qu.Message({theme:"error",message:ms("复制失败")})}},U=()=>{v(j())},q=()=>{a("regenerate",o.index)},Q=Y=>{const P=Y.currentTarget;n2n(P,{onConfirm:()=>{a("delete",o.index)},onCancel:()=>{},placement:"top",appendTo:d.value})},H=()=>{A(),y(".message-tool .bkai-fuzhi",ms("复制")),y(".message-tool .bkai-zhongxinshengcheng",ms("重新生成")),y(".message-tool .bkai-yinyong",ms("引用")),y(".message-tool .bkai-bianji",ms("编辑")),y(".message-tool .bkai-shanchu",ms("删除"))};return J.onMounted(()=>{k(),setTimeout(H,0)}),J.watch(()=>o.message,()=>{setTimeout(H,0)},{deep:!0}),J.watch(u,Y=>{Y||setTimeout(H,0)}),J.onBeforeUnmount(()=>{r2n(),T()}),(Y,P)=>{var X,N,ie,le,fe,ce,ue,he,re;return J.unref(v$).includes(Y.message.role)?J.createCommentVNode("v-if",!0):(J.openBlock(),J.createElementBlock("li",{key:0,ref_key:"messageMainRef",ref:d,class:J.normalizeClass([Y.message.role,"message-main"])},[(ie=(N=(X=Y.message)==null?void 0:X.property)==null?void 0:N.extra)!=null&&ie.cite?(J.openBlock(),J.createElementBlock("div",u2n,[h(Y.message.property.extra.cite)?J.createCommentVNode("v-if",!0):(J.openBlock(),J.createBlock(GPe,{key:0,text:Y.message.property.extra.cite},null,8,["text"]))])):J.createCommentVNode("v-if",!0),J.createElementVNode("div",{class:J.normalizeClass(`message-content-container ${Y.message.role}`)},[h((ce=(fe=(le=Y.message)==null?void 0:le.property)==null?void 0:fe.extra)==null?void 0:ce.cite)?(J.openBlock(),J.createBlock(Gnn,{key:0,"cite-data":(re=(he=(ue=Y.message)==null?void 0:ue.property)==null?void 0:he.extra)==null?void 0:re.cite},null,8,["cite-data"])):[J.unref(Zr).User,J.unref(Zr).Role].includes(Y.message.role)?(J.openBlock(),J.createElementBlock(J.Fragment,{key:1},[u.value?(J.openBlock(),J.createBlock(l2n,{key:0,"auto-focus":!0,"model-value":Y.message.content,onCancel:P[0]||(P[0]=be=>u.value=!1),onSubmit:F},null,8,["model-value"])):(J.openBlock(),J.createElementBlock("p",h2n,[O.value&&o.showTime?(J.openBlock(),J.createElementBlock("span",f2n,J.toDisplayString(O.value),1)):J.createCommentVNode("v-if",!0),J.createElementVNode("span",{class:"markdown-content",innerHTML:I.value},null,8,d2n)]))],64)):(J.openBlock(),J.createElementBlock("p",g2n,[O.value&&o.showTime?(J.openBlock(),J.createElementBlock("span",p2n,J.toDisplayString(O.value),1)):J.createCommentVNode("v-if",!0),L.value?(J.openBlock(),J.createElementBlock("i",{key:1,class:J.normalizeClass(L.value)},null,2)):J.createCommentVNode("v-if",!0),Y.message.status===J.unref(Of).Loading?(J.openBlock(),J.createElementBlock("svg",m2n,P[2]||(P[2]=[J.createElementVNode("use",{"xlink:href":"#bkai-quanquan"},null,-1)]))):J.createCommentVNode("v-if",!0),Y.message.status===J.unref(Of).Fail?(J.openBlock(),J.createElementBlock("span",b2n,J.toDisplayString(Y.message.content),1)):(J.openBlock(),J.createElementBlock("span",{key:4,class:J.normalizeClass({"markdown-content":!0,loading:Y.message.status===J.unref(Of).Loading}),innerHTML:I.value},null,10,v2n))])),!u.value&&Y.message.status!==J.unref(Of).Loading?(J.openBlock(),J.createElementBlock("div",w2n,[J.createElementVNode("i",{class:"bkai-icon bkai-fuzhi",onClick:G}),J.createElementVNode("i",{class:"bkai-icon bkai-yinyong",onClick:U}),Y.message.role===J.unref(Zr).Ai?(J.openBlock(),J.createElementBlock("i",{key:0,class:"bkai-icon bkai-zhongxinshengcheng",onClick:q})):J.createCommentVNode("v-if",!0),Y.message.role===J.unref(Zr).User?(J.openBlock(),J.createElementBlock("i",{key:1,class:"bkai-icon bkai-bianji",onClick:P[1]||(P[1]=be=>u.value=!0)})):J.createCommentVNode("v-if",!0),J.createElementVNode("i",{class:"bkai-icon bkai-shanchu",onClick:Q})])):J.createCommentVNode("v-if",!0)],2)],2))}}}),A2n=a1(J.defineComponent({__name:"message-list",props:{sessionContents:{},hasSessionContents:{type:Boolean},contentMarginBottom:{}},emits:["delete","regenerate","resend"],setup(n,{expose:r,emit:a}){J.useCssVars(I=>({"0734f233":o.contentMarginBottom+"px"}));const o=n,u=a,d=J.ref(null);let h=0;const b=J.ref(!1),v=()=>{if(!d.value)return;b.value=!0;const{scrollTop:I,scrollHeight:O,clientHeight:F}=d.value;I+F>=O-50&&I>h&&(b.value=!1),h=I},y=()=>{d.value&&d.value.scrollTo({top:d.value.scrollHeight,behavior:"smooth"})},A=()=>{setTimeout(()=>{b.value||y()},100)},k=I=>{u("delete",I)},C=I=>{u("regenerate",I)},T=(I,O)=>{u("resend",I,O)};return r({messageWrapper:d,scrollToBottom:y,scrollToBottomIfNeeded:()=>{b.value||y()},userScrolling:b,resetUserScrolling:()=>{b.value=!1}}),J.onMounted(()=>{d.value&&(d.value.addEventListener("scroll",v),d.value.addEventListener("mermaid-rendered",A))}),J.onBeforeUnmount(()=>{d.value&&(d.value.removeEventListener("scroll",v),d.value.removeEventListener("mermaid-rendered",A))}),(I,O)=>(J.openBlock(),J.createElementBlock("div",{ref_key:"messageWrapper",ref:d,style:J.normalizeStyle({opacity:I.hasSessionContents?1:0}),class:"message-wrapper"},[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(I.sessionContents,(F,z)=>(J.openBlock(),J.createElementBlock("div",{key:F.id,class:"message-line-wrapper"},[J.createVNode(y2n,{index:z,message:F,onDelete:k,onRegenerate:C,onResend:T},null,8,["index","message"])]))),128))],4))}}),[["__scopeId","data-v-f4c2e5a8"]]),x2n={class:"popup-content"},k2n=["src"],E2n={class:"shortcut-buttons"},C2n=["onClick"],T2n={class:"btn-text ai-blueking-tag-text"},S2n=["onClick"],B2n=a1(J.defineComponent({__name:"render-popup",props:{shortcuts:{default:()=>[]},conversationSettings:{},shortcutLimit:{default:3},shortcutFilter:{}},emits:["click","shortcut-click"],setup(n,{emit:r}){const a=n,{enablePopup:o}=K0e(),{isIconVisible:u,iconPosition:d,popupRef:h,clearSelection:b,selectedText:v}=KO(o),y=J.computed(()=>{var q;const U=a.shortcuts.length>0?a.shortcuts:((q=a.conversationSettings)==null?void 0:q.commands)||[];return typeof a.shortcutFilter=="function"?U.filter(Q=>{var H;return!!((H=a.shortcutFilter)!=null&&H.call(a,J.toRaw(Q),v.value))}):U}),A=J.computed(()=>y.value.slice(0,a.shortcutLimit)),k=J.computed(()=>y.value.slice(a.shortcutLimit)),C=J.ref(!1);let T=null,B=null;const L=r,I=()=>{L("click"),u.value=!1},O=()=>{B&&(clearTimeout(B),B=null),C.value=!0},F=()=>{B&&(window.clearTimeout(B),B=null),B=window.setTimeout(()=>{T||(C.value=!1)},100)},z=()=>{T&&(clearTimeout(T),T=null)},j=()=>{T&&(window.clearTimeout(T),T=null),T=window.setTimeout(()=>{C.value=!1},100)},G=U=>{try{L("shortcut-click",{shortcut:U,source:"popup"}),b(),u.value=!1}catch(q){console.error("处理快捷按钮点击事件时出错:",q)}};return(U,q)=>J.unref(u)?(J.openBlock(),J.createElementBlock("div",{key:0,ref_key:"popupRef",ref:h,style:J.normalizeStyle(J.unref(d)),class:"ai-blueking-render-popup",onMousedown:q[0]||(q[0]=J.withModifiers(()=>{},["prevent"]))},[J.createElementVNode("div",x2n,[J.createCommentVNode(" AI图标按钮 "),J.createElementVNode("div",{class:"popup-bkai-btn",onClick:I},[J.createElementVNode("img",{class:"avatar",src:J.unref(I0e),alt:"AI"},null,8,k2n),J.createElementVNode("span",null,J.toDisplayString(J.unref(ms)("问问小鲸")),1)]),J.createCommentVNode(" 快捷按钮组 "),J.createElementVNode("div",E2n,[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(A.value,(Q,H)=>(J.openBlock(),J.createElementBlock("div",{key:H,class:"shortcut-btn",onClick:Y=>G(Q)},[Q.icon?(J.openBlock(),J.createElementBlock("i",{key:0,class:J.normalizeClass(Q.icon)},null,2)):J.createCommentVNode("v-if",!0),J.createElementVNode("span",T2n,J.toDisplayString(Q.name),1)],8,C2n))),128)),J.createCommentVNode(" 更多按钮 "),k.value.length>0?(J.openBlock(),J.createElementBlock("div",{key:0,class:"shortcut-btn more-btn",onMouseenter:O,onMouseleave:F},[q[1]||(q[1]=J.createElementVNode("span",{class:"btn-text"},"更多",-1)),q[2]||(q[2]=J.createElementVNode("i",{class:"bkai-icon bkai-angle-down"},null,-1)),J.createCommentVNode(" 更多菜单 "),C.value?(J.openBlock(),J.createElementBlock("div",{key:0,class:"more-menu",onMouseenter:z,onMouseleave:j},[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(k.value,(Q,H)=>(J.openBlock(),J.createElementBlock("div",{key:H,class:"more-menu-item",onClick:Y=>G(Q)},[Q.icon?(J.openBlock(),J.createElementBlock("i",{key:0,class:J.normalizeClass(Q.icon)},null,2)):J.createCommentVNode("v-if",!0),J.createElementVNode("span",null,J.toDisplayString(Q.name),1)],8,S2n))),128))],32)):J.createCommentVNode("v-if",!0)],32)):J.createCommentVNode("v-if",!0)])])],36)):J.createCommentVNode("v-if",!0)}}),[["__scopeId","data-v-da87f3ae"]]);function M2n(n){const{greetingMaxHeight:r}=n,a=J.ref(0),o=J.ref();return{greetingTextHeight:a,greetingSectionRef:o,updateGreetingTextHeight:()=>{J.nextTick(()=>{o.value&&(a.value=o.value.getGreetingHeight())})},getInputContainerStyle:h=>{if(!h){const v=a.value,y=Math.min(v-22,r-22);return{top:`${188+Math.max(0,y)}px`}}return{}}}}function _2n(){const n=new aRe({html:!0,breaks:!0,highlight:(o,u)=>{if(u&&OQ.getLanguage(u))try{return OQ.highlight(o,{language:u}).value}catch{}return""}}).use(kue).use(IUe).use(RUe),r=o=>{if(!o)return"";try{const u=n.render(o);return c8.sanitize(u,{USE_PROFILES:{html:!0},FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]}).replace(/\s*<\/p>\s*$/,"</p>")}catch(u){return console.warn("Markdown rendering failed:",u),o.replace(/</g,"&lt;").replace(/>/g,"&gt;")}};return{renderMarkdown:r,createMarkdownRenderer:o=>J.computed(()=>r(o.value))}}function L2n(){const n=J.ref();return{messageListRef:n,scrollMainToBottom:()=>{var u;(u=n.value)==null||u.scrollToBottom()},scrollToBottomIfNeeded:()=>{var u;(u=n.value)==null||u.scrollToBottomIfNeeded()},resetUserScrolling:()=>{var u;(u=n.value)==null||u.resetUserScrolling()}}}function D2n(n={}){const r=n.initWidth||400,a=n.minWidth||400,o=n.minHeight||400,u=n.maxWidthPercent||40,d=n.miniHeight||800,h=n.miniPadding!==void 0?n.miniPadding:0,b=J.ref(n.defaultLeft!==void 0?n.defaultLeft:window.innerWidth-r),v=J.ref(n.defaultTop!==void 0?n.defaultTop:0),y=J.ref(n.defaultHeight!==void 0?n.defaultHeight:window.innerHeight-(n.defaultTop!==void 0?n.defaultTop:0)),A=J.ref(r),k=J.ref(v.value),C=J.ref(b.value),T=J.ref(A.value),B=J.ref(y.value),L=J.ref(Math.max(window.innerWidth*(u/100),T.value)),I=J.ref(!1),O=J.ref(0),F=(U,q)=>{C.value=U,k.value=q,O.value=U-(window.innerWidth-T.value)},z=(U,q,Q,H)=>{C.value=U,k.value=q,T.value=Math.min(Q,L.value),B.value=H},j=()=>{L.value=Math.max(window.innerWidth*(u/100),T.value),J.nextTick(()=>{if(I.value)C.value=window.innerWidth-T.value-h,k.value=window.innerHeight-d-h;else{const U=window.innerWidth-T.value-O.value;C.value=Math.max(0,U),setTimeout(()=>{B.value=window.innerHeight-k.value},0)}T.value>L.value&&(T.value=L.value)})},G=()=>{I.value?(k.value=v.value,J.nextTick(()=>{B.value=y.value,C.value=b.value,T.value=A.value})):(k.value=window.innerHeight-d-h,C.value=b.value-h,T.value=r,B.value=d),I.value=!I.value};return J.onMounted(()=>{window.addEventListener("resize",j)}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",j)}),{minWidth:a,minHeight:o,maxWidth:L,top:k,left:C,width:T,height:B,isCompressionHeight:I,handleDragging:F,handleResizing:z,toggleCompression:G}}function I2n(n){const{selectedText:r,isShow:a,handleShow:o}=n,u=J.ref();return{currentShortcut:u,handleShortcutClick:b=>{var L,I;const{shortcut:v,source:y="main"}=b,A=v;let k;try{k=JSON.parse(JSON.stringify(A))}catch(O){console.warn("Failed to deep clone shortcut, using shallow copy instead:",O),k={...A,components:A.components?[...A.components]:A.components}}!a.value&&o();const C=(L=k.components)==null?void 0:L.find(O=>O.fillBack);if(C){let O=r.value;if(C.fillRegx)try{const F=new RegExp(C.fillRegx),z=r.value.match(F);z&&z.length>0?O=z[0]:O=""}catch(F){console.error("快捷方式组件中的正则表达式无效:",C.fillRegx,F)}C.selectedText=O}const T=((I=k.components)==null?void 0:I.every(O=>O.required?O.default!==void 0&&O.default!==null&&O.default!=="":!0))||!k.components||k.components.length===0;["popup","ai-selected"].includes(y)&&T&&(k.autoSubmit=!0),u.value=k},handleCancelShortcut:()=>{u.value=void 0}}}function R2n(n,r=!1){const u=window.innerHeight-48-40,d=window.innerWidth-48-16,h=J.ref(d),b=J.ref(u),v=J.ref(0),y=J.ref(r),A=J.ref(!1),k=J.ref(!1);let C=0;const T=q=>{q?h.value=window.innerWidth-12:h.value=d},B=(q,Q)=>{b.value=Q,v.value=Q-u},L=()=>{J.nextTick(()=>{b.value=window.innerHeight-48-40+v.value,y.value?h.value=window.innerWidth-12:h.value=window.innerWidth-48-16})},I=()=>{if(k.value){k.value=!1;return}n("click")},O=()=>{y.value=!y.value,n("minimize",y.value),y.value?h.value=window.innerWidth-12:h.value=window.innerWidth-60},F=(q,Q)=>{h.value=q,b.value=Q},z=()=>{A.value=!0},j=()=>{A.value=!1},G=()=>{C=Date.now(),k.value=!1},U=()=>{Date.now()-C>200&&(k.value=!0)};return J.onMounted(()=>{window.addEventListener("resize",L),L()}),J.onUnmounted(()=>{window.removeEventListener("resize",L)}),{nimbusWidth:48,nimbusHeight:48,nimbusLeft:h,nimbusTop:b,isMinimize:y,isHovering:A,isDragging:k,handleNimbusDragging:B,handleNimbusMinimize:T,handleClick:I,handleMinimize:O,handleDragging:F,handleMouseEnter:z,handleMouseLeave:j,handleMouseDown:G,handleMouseUp:U}}const O2n={class:"nimbus-bkai-wrapper"},F2n=["width","height","src"],N2n=a1(J.defineComponent({name:"NimbusButton",__name:"nimbus",props:{isPanelShow:{type:Boolean},isMinimize:{type:Boolean},size:{default:"normal"}},emits:["click","minimize","update:isMinimize"],setup(n,{emit:r}){J.useCssVars(q=>({"5eb53786":`${d.value.container}px`,"41a7fdd0":`${d.value.wrapper}px`,"2a593c76":`${d.value.mini.right}px`,bb6a6a86:`${d.value.mini.size}px`,"72d2d3ac":`${d.value.mini.fontSize}px`}));const a=n,o=r,u={small:{container:40,wrapper:32,img:24,mini:{size:14,fontSize:10,right:-4}},normal:{container:48,wrapper:40,img:32,mini:{size:16,fontSize:12,right:-6}},large:{container:56,wrapper:48,img:40,mini:{size:18,fontSize:14,right:-6}}},d=J.computed(()=>u[a.size]),h=J.ref(null),b=J.ref(null),{nimbusLeft:v,nimbusTop:y,isMinimize:A,handleClick:k,handleMinimize:C,handleDragging:T,handleMouseEnter:B,handleMouseLeave:L,handleMouseDown:I,handleMouseUp:O}=R2n(o,a.isMinimize);J.watch(A,q=>{o("update:isMinimize",q)});const F=J.computed(()=>A.value?ms("恢复默认大小"):ms("最小化,将缩成锚点")),{createTooltip:z,destroyAll:j}=vM({theme:"ai-blueking",delay:[0,0]}),G=()=>{J.nextTick(()=>{U()})},U=()=>{j(),h.value&&!A.value&&z(h.value,"Cmd + I",{placement:"left"}),b.value&&z(b.value,F.value,{placement:"top"})};return J.watch(()=>A.value,()=>{J.nextTick(()=>{U()})}),J.onMounted(()=>{J.nextTick(()=>{U()}),window.addEventListener("resize",G)}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",G)}),(q,Q)=>(J.openBlock(),J.createBlock(J.unref(L0e),{active:!q.isPanelShow,axis:"y",draggable:!0,h:d.value.container,parent:!0,"prevent-deactivation":!0,resizable:!1,w:d.value.container,x:J.unref(v),y:J.unref(y),onDragging:J.unref(T)},{default:J.withCtx(()=>[J.createElementVNode("div",{ref_key:"nimbusContainerRef",ref:h,class:J.normalizeClass(["nimbus-container",{"is-minimize":J.unref(A)}]),onClick:Q[1]||(Q[1]=(...H)=>J.unref(k)&&J.unref(k)(...H)),onMousedown:Q[2]||(Q[2]=(...H)=>J.unref(I)&&J.unref(I)(...H)),onMouseenter:Q[3]||(Q[3]=(...H)=>J.unref(B)&&J.unref(B)(...H)),onMouseleave:Q[4]||(Q[4]=(...H)=>J.unref(L)&&J.unref(L)(...H)),onMouseup:Q[5]||(Q[5]=(...H)=>J.unref(O)&&J.unref(O)(...H))},[J.createElementVNode("div",O2n,[J.createElementVNode("img",{width:d.value.img,height:d.value.img,src:J.unref(I0e),alt:"nimbus"},null,8,F2n)]),J.createElementVNode("i",{ref_key:"minimizeButtonRef",ref:b,class:J.normalizeClass(["nimbus-mini bkai-icon",J.unref(A)?"bkai-yinyong":"bkai-minus-line"]),onClick:Q[0]||(Q[0]=J.withModifiers((...H)=>J.unref(C)&&J.unref(C)(...H),["stop"]))},null,2)],34)]),_:1},8,["active","h","w","x","y","onDragging"]))}}),[["__scopeId","data-v-9f57bde8"]]),P2n={class:"content-wrapper"},z2n={class:"chat-input-wrapper"},j2n={key:0,class:"bottom-tools-bar"},H2n=J.defineComponent({__name:"ai-blueking-new",props:{extCls:{default:""},title:{default:""},helloText:{default:ms("你好,我是小鲸")},enablePopup:{type:Boolean,default:!0},shortcuts:{default:()=>[]},shortcutLimit:{default:3},shortcutFilter:{type:Function,default:void 0},url:{default:""},prompts:{default:()=>[]},hideNimbus:{type:Boolean,default:!1},requestOptions:{default:()=>({})},defaultMinimize:{type:Boolean,default:!1},teleportTo:{default:"body"},draggable:{type:Boolean,default:!0},defaultWidth:{default:void 0},defaultHeight:{default:void 0},defaultTop:{default:void 0},defaultLeft:{default:void 0},hideHeader:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1},nimbusSize:{default:"normal"},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},placeholder:{default:ms(`输入 "/" 唤出 Prompt
291
+ `)}`:JSON.stringify(Y,null,2),j=()=>{var P,X,N;const Y=(N=(X=(P=o.message)==null?void 0:P.property)==null?void 0:X.extra)==null?void 0:N.cite;return Y&&h(Y)?z(Y):o.message.content},G=async()=>{try{await navigator.clipboard.writeText(j()),qu.Message({theme:"success",message:ms("复制成功")})}catch(Y){console.error("复制失败:",Y),qu.Message({theme:"error",message:ms("复制失败")})}},U=()=>{v(j())},q=()=>{a("regenerate",o.index)},Q=Y=>{const P=Y.currentTarget;n2n(P,{onConfirm:()=>{a("delete",o.index)},onCancel:()=>{},placement:"top",appendTo:d.value})},H=()=>{A(),y(".message-tool .bkai-fuzhi",ms("复制")),y(".message-tool .bkai-zhongxinshengcheng",ms("重新生成")),y(".message-tool .bkai-yinyong",ms("引用")),y(".message-tool .bkai-bianji",ms("编辑")),y(".message-tool .bkai-shanchu",ms("删除"))};return J.onMounted(()=>{k(),setTimeout(H,0)}),J.watch(()=>o.message,()=>{setTimeout(H,0)},{deep:!0}),J.watch(u,Y=>{Y||setTimeout(H,0)}),J.onBeforeUnmount(()=>{r2n(),T()}),(Y,P)=>{var X,N,ie,le,fe,ce,ue,he,re;return J.unref(v$).includes(Y.message.role)?J.createCommentVNode("v-if",!0):(J.openBlock(),J.createElementBlock("li",{key:0,ref_key:"messageMainRef",ref:d,class:J.normalizeClass([Y.message.role,"message-main"])},[(ie=(N=(X=Y.message)==null?void 0:X.property)==null?void 0:N.extra)!=null&&ie.cite?(J.openBlock(),J.createElementBlock("div",u2n,[h(Y.message.property.extra.cite)?J.createCommentVNode("v-if",!0):(J.openBlock(),J.createBlock(GPe,{key:0,text:Y.message.property.extra.cite},null,8,["text"]))])):J.createCommentVNode("v-if",!0),J.createElementVNode("div",{class:J.normalizeClass(`message-content-container ${Y.message.role}`)},[h((ce=(fe=(le=Y.message)==null?void 0:le.property)==null?void 0:fe.extra)==null?void 0:ce.cite)?(J.openBlock(),J.createBlock(Gnn,{key:0,"cite-data":(re=(he=(ue=Y.message)==null?void 0:ue.property)==null?void 0:he.extra)==null?void 0:re.cite},null,8,["cite-data"])):[J.unref(Zr).User,J.unref(Zr).Role].includes(Y.message.role)?(J.openBlock(),J.createElementBlock(J.Fragment,{key:1},[u.value?(J.openBlock(),J.createBlock(l2n,{key:0,"auto-focus":!0,"model-value":Y.message.content,onCancel:P[0]||(P[0]=be=>u.value=!1),onSubmit:F},null,8,["model-value"])):(J.openBlock(),J.createElementBlock("p",h2n,[O.value&&o.showTime?(J.openBlock(),J.createElementBlock("span",f2n,J.toDisplayString(O.value),1)):J.createCommentVNode("v-if",!0),J.createElementVNode("span",{class:"markdown-content",innerHTML:I.value},null,8,d2n)]))],64)):(J.openBlock(),J.createElementBlock("p",g2n,[O.value&&o.showTime?(J.openBlock(),J.createElementBlock("span",p2n,J.toDisplayString(O.value),1)):J.createCommentVNode("v-if",!0),L.value?(J.openBlock(),J.createElementBlock("i",{key:1,class:J.normalizeClass(L.value)},null,2)):J.createCommentVNode("v-if",!0),Y.message.status===J.unref(Of).Loading?(J.openBlock(),J.createElementBlock("svg",m2n,P[2]||(P[2]=[J.createElementVNode("use",{"xlink:href":"#bkai-quanquan"},null,-1)]))):J.createCommentVNode("v-if",!0),Y.message.status===J.unref(Of).Fail?(J.openBlock(),J.createElementBlock("span",b2n,J.toDisplayString(Y.message.content),1)):(J.openBlock(),J.createElementBlock("span",{key:4,class:J.normalizeClass({"markdown-content":!0,loading:Y.message.status===J.unref(Of).Loading}),innerHTML:I.value},null,10,v2n))])),!u.value&&Y.message.status!==J.unref(Of).Loading?(J.openBlock(),J.createElementBlock("div",w2n,[J.createElementVNode("i",{class:"bkai-icon bkai-fuzhi",onClick:G}),J.createElementVNode("i",{class:"bkai-icon bkai-yinyong",onClick:U}),Y.message.role===J.unref(Zr).Ai?(J.openBlock(),J.createElementBlock("i",{key:0,class:"bkai-icon bkai-zhongxinshengcheng",onClick:q})):J.createCommentVNode("v-if",!0),Y.message.role===J.unref(Zr).User?(J.openBlock(),J.createElementBlock("i",{key:1,class:"bkai-icon bkai-bianji",onClick:P[1]||(P[1]=be=>u.value=!0)})):J.createCommentVNode("v-if",!0),J.createElementVNode("i",{class:"bkai-icon bkai-shanchu",onClick:Q})])):J.createCommentVNode("v-if",!0)],2)],2))}}}),A2n=a1(J.defineComponent({__name:"message-list",props:{sessionContents:{},hasSessionContents:{type:Boolean},contentMarginBottom:{}},emits:["delete","regenerate","resend"],setup(n,{expose:r,emit:a}){J.useCssVars(I=>({"0734f233":o.contentMarginBottom+"px"}));const o=n,u=a,d=J.ref(null);let h=0;const b=J.ref(!1),v=()=>{if(!d.value)return;b.value=!0;const{scrollTop:I,scrollHeight:O,clientHeight:F}=d.value;I+F>=O-50&&I>h&&(b.value=!1),h=I},y=()=>{d.value&&d.value.scrollTo({top:d.value.scrollHeight,behavior:"smooth"})},A=()=>{setTimeout(()=>{b.value||y()},100)},k=I=>{u("delete",I)},C=I=>{u("regenerate",I)},T=(I,O)=>{u("resend",I,O)};return r({messageWrapper:d,scrollToBottom:y,scrollToBottomIfNeeded:()=>{b.value||y()},userScrolling:b,resetUserScrolling:()=>{b.value=!1}}),J.onMounted(()=>{d.value&&(d.value.addEventListener("scroll",v),d.value.addEventListener("mermaid-rendered",A))}),J.onBeforeUnmount(()=>{d.value&&(d.value.removeEventListener("scroll",v),d.value.removeEventListener("mermaid-rendered",A))}),(I,O)=>(J.openBlock(),J.createElementBlock("div",{ref_key:"messageWrapper",ref:d,style:J.normalizeStyle({opacity:I.hasSessionContents?1:0}),class:"message-wrapper"},[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(I.sessionContents,(F,z)=>(J.openBlock(),J.createElementBlock("div",{key:F.id,class:"message-line-wrapper"},[J.createVNode(y2n,{index:z,message:F,onDelete:k,onRegenerate:C,onResend:T},null,8,["index","message"])]))),128))],4))}}),[["__scopeId","data-v-f4c2e5a8"]]),x2n={class:"popup-content"},k2n=["src"],E2n={class:"shortcut-buttons"},C2n=["onClick"],T2n={class:"btn-text ai-blueking-tag-text"},S2n=["onClick"],B2n=a1(J.defineComponent({__name:"render-popup",props:{shortcuts:{default:()=>[]},conversationSettings:{},shortcutLimit:{default:3},shortcutFilter:{}},emits:["click","shortcut-click"],setup(n,{emit:r}){const a=n,{enablePopup:o}=K0e(),{isIconVisible:u,iconPosition:d,popupRef:h,clearSelection:b,selectedText:v}=KO(o),y=J.computed(()=>{var q;const U=a.shortcuts.length>0?a.shortcuts:((q=a.conversationSettings)==null?void 0:q.commands)||[];return typeof a.shortcutFilter=="function"?U.filter(Q=>{var H;return!!((H=a.shortcutFilter)!=null&&H.call(a,J.toRaw(Q),v.value))}):U}),A=J.computed(()=>y.value.slice(0,a.shortcutLimit)),k=J.computed(()=>y.value.slice(a.shortcutLimit)),C=J.ref(!1);let T=null,B=null;const L=r,I=()=>{L("click"),u.value=!1},O=()=>{B&&(clearTimeout(B),B=null),C.value=!0},F=()=>{B&&(window.clearTimeout(B),B=null),B=window.setTimeout(()=>{T||(C.value=!1)},100)},z=()=>{T&&(clearTimeout(T),T=null)},j=()=>{T&&(window.clearTimeout(T),T=null),T=window.setTimeout(()=>{C.value=!1},100)},G=U=>{try{L("shortcut-click",{shortcut:U,source:"popup"}),b(),u.value=!1}catch(q){console.error("处理快捷按钮点击事件时出错:",q)}};return(U,q)=>J.unref(u)?(J.openBlock(),J.createElementBlock("div",{key:0,ref_key:"popupRef",ref:h,style:J.normalizeStyle(J.unref(d)),class:"ai-blueking-render-popup",onMousedown:q[0]||(q[0]=J.withModifiers(()=>{},["prevent"]))},[J.createElementVNode("div",x2n,[J.createCommentVNode(" AI图标按钮 "),J.createElementVNode("div",{class:"popup-bkai-btn",onClick:I},[J.createElementVNode("img",{class:"avatar",src:J.unref(I0e),alt:"AI"},null,8,k2n),J.createElementVNode("span",null,J.toDisplayString(J.unref(ms)("问问小鲸")),1)]),J.createCommentVNode(" 快捷按钮组 "),J.createElementVNode("div",E2n,[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(A.value,(Q,H)=>(J.openBlock(),J.createElementBlock("div",{key:H,class:"shortcut-btn",onClick:Y=>G(Q)},[Q.icon?(J.openBlock(),J.createElementBlock("i",{key:0,class:J.normalizeClass(Q.icon)},null,2)):J.createCommentVNode("v-if",!0),J.createElementVNode("span",T2n,J.toDisplayString(Q.name),1)],8,C2n))),128)),J.createCommentVNode(" 更多按钮 "),k.value.length>0?(J.openBlock(),J.createElementBlock("div",{key:0,class:"shortcut-btn more-btn",onMouseenter:O,onMouseleave:F},[q[1]||(q[1]=J.createElementVNode("span",{class:"btn-text"},"更多",-1)),q[2]||(q[2]=J.createElementVNode("i",{class:"bkai-icon bkai-angle-down"},null,-1)),J.createCommentVNode(" 更多菜单 "),C.value?(J.openBlock(),J.createElementBlock("div",{key:0,class:"more-menu",onMouseenter:z,onMouseleave:j},[(J.openBlock(!0),J.createElementBlock(J.Fragment,null,J.renderList(k.value,(Q,H)=>(J.openBlock(),J.createElementBlock("div",{key:H,class:"more-menu-item",onClick:Y=>G(Q)},[Q.icon?(J.openBlock(),J.createElementBlock("i",{key:0,class:J.normalizeClass(Q.icon)},null,2)):J.createCommentVNode("v-if",!0),J.createElementVNode("span",null,J.toDisplayString(Q.name),1)],8,S2n))),128))],32)):J.createCommentVNode("v-if",!0)],32)):J.createCommentVNode("v-if",!0)])])],36)):J.createCommentVNode("v-if",!0)}}),[["__scopeId","data-v-da87f3ae"]]);function M2n(n){const{greetingMaxHeight:r}=n,a=J.ref(0),o=J.ref();return{greetingTextHeight:a,greetingSectionRef:o,updateGreetingTextHeight:()=>{J.nextTick(()=>{o.value&&(a.value=o.value.getGreetingHeight())})},getInputContainerStyle:h=>{if(!h){const v=a.value,y=Math.min(v-22,r-22);return{top:`${188+Math.max(0,y)}px`}}return{}}}}function _2n(){const n=new aRe({html:!0,breaks:!0,highlight:(o,u)=>{if(u&&OQ.getLanguage(u))try{return OQ.highlight(o,{language:u}).value}catch{}return""}}).use(kue).use(IUe).use(RUe),r=o=>{if(!o)return"";try{const u=n.render(o);return c8.sanitize(u,{USE_PROFILES:{html:!0},FORBID_TAGS:["script","iframe","object","embed","form","input"],FORBID_ATTR:["onerror","onload","onclick","onmouseover"]}).replace(/\s*<\/p>\s*$/,"</p>")}catch(u){return console.warn("Markdown rendering failed:",u),o.replace(/</g,"&lt;").replace(/>/g,"&gt;")}};return{renderMarkdown:r,createMarkdownRenderer:o=>J.computed(()=>r(o.value))}}function L2n(){const n=J.ref();return{messageListRef:n,scrollMainToBottom:()=>{var u;(u=n.value)==null||u.scrollToBottom()},scrollToBottomIfNeeded:()=>{var u;(u=n.value)==null||u.scrollToBottomIfNeeded()},resetUserScrolling:()=>{var u;(u=n.value)==null||u.resetUserScrolling()}}}function D2n(n={}){const r=n.initWidth||400,a=n.minWidth||400,o=n.minHeight||400,u=n.maxWidthPercent||40,d=n.miniHeight||800,h=n.miniPadding!==void 0?n.miniPadding:0,b=J.ref(n.defaultLeft!==void 0?n.defaultLeft:window.innerWidth-r),v=J.ref(n.defaultTop!==void 0?n.defaultTop:0),y=J.ref(n.defaultHeight!==void 0?n.defaultHeight:window.innerHeight-(n.defaultTop!==void 0?n.defaultTop:0)),A=J.ref(r),k=J.ref(v.value),C=J.ref(b.value),T=J.ref(A.value),B=J.ref(y.value),L=J.ref(Math.max(window.innerWidth*(u/100),T.value)),I=J.ref(!1),O=J.ref(0),F=(U,q)=>{C.value=U,k.value=q,O.value=U-(window.innerWidth-T.value)},z=(U,q,Q,H)=>{C.value=U,k.value=q,T.value=Math.min(Q,L.value),B.value=H},j=()=>{L.value=Math.max(window.innerWidth*(u/100),T.value),J.nextTick(()=>{if(I.value)C.value=window.innerWidth-T.value-h,k.value=window.innerHeight-d-h;else{const U=window.innerWidth-T.value-O.value;C.value=Math.max(0,U),setTimeout(()=>{B.value=window.innerHeight-k.value},0)}T.value>L.value&&(T.value=L.value)})},G=()=>{I.value?(k.value=v.value,J.nextTick(()=>{B.value=y.value,C.value=b.value,T.value=A.value})):(k.value=window.innerHeight-d-h,C.value=b.value-h,T.value=r,B.value=d),I.value=!I.value};return J.onMounted(()=>{window.addEventListener("resize",j)}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",j)}),{minWidth:a,minHeight:o,maxWidth:L,top:k,left:C,width:T,height:B,isCompressionHeight:I,handleDragging:F,handleResizing:z,toggleCompression:G}}function I2n(n){const{selectedText:r,isShow:a,handleShow:o}=n,u=J.ref();return{currentShortcut:u,handleShortcutClick:b=>{var L,I;const{shortcut:v,source:y="main"}=b,A=v;let k;try{k=JSON.parse(JSON.stringify(A))}catch(O){console.warn("Failed to deep clone shortcut, using shallow copy instead:",O),k={...A,components:A.components?[...A.components]:A.components}}!a.value&&o();const C=(L=k.components)==null?void 0:L.find(O=>O.fillBack);if(C){let O=r.value;if(C.fillRegx)try{const F=new RegExp(C.fillRegx),z=r.value.match(F);z&&z.length>0?O=z[0]:O=""}catch(F){console.error("快捷方式组件中的正则表达式无效:",C.fillRegx,F)}C.selectedText=O}const T=((I=k.components)==null?void 0:I.every(O=>O.required?O.default!==void 0&&O.default!==null&&O.default!==""||O.selectedText:!0))||!k.components||k.components.length===0;["popup","ai-selected"].includes(y)&&T&&(k.autoSubmit=!0),u.value=k},handleCancelShortcut:()=>{u.value=void 0}}}function R2n(n,r=!1){const u=window.innerHeight-48-40,d=window.innerWidth-48-16,h=J.ref(d),b=J.ref(u),v=J.ref(0),y=J.ref(r),A=J.ref(!1),k=J.ref(!1);let C=0;const T=q=>{q?h.value=window.innerWidth-12:h.value=d},B=(q,Q)=>{b.value=Q,v.value=Q-u},L=()=>{J.nextTick(()=>{b.value=window.innerHeight-48-40+v.value,y.value?h.value=window.innerWidth-12:h.value=window.innerWidth-48-16})},I=()=>{if(k.value){k.value=!1;return}n("click")},O=()=>{y.value=!y.value,n("minimize",y.value),y.value?h.value=window.innerWidth-12:h.value=window.innerWidth-60},F=(q,Q)=>{h.value=q,b.value=Q},z=()=>{A.value=!0},j=()=>{A.value=!1},G=()=>{C=Date.now(),k.value=!1},U=()=>{Date.now()-C>200&&(k.value=!0)};return J.onMounted(()=>{window.addEventListener("resize",L),L()}),J.onUnmounted(()=>{window.removeEventListener("resize",L)}),{nimbusWidth:48,nimbusHeight:48,nimbusLeft:h,nimbusTop:b,isMinimize:y,isHovering:A,isDragging:k,handleNimbusDragging:B,handleNimbusMinimize:T,handleClick:I,handleMinimize:O,handleDragging:F,handleMouseEnter:z,handleMouseLeave:j,handleMouseDown:G,handleMouseUp:U}}const O2n={class:"nimbus-bkai-wrapper"},F2n=["width","height","src"],N2n=a1(J.defineComponent({name:"NimbusButton",__name:"nimbus",props:{isPanelShow:{type:Boolean},isMinimize:{type:Boolean},size:{default:"normal"}},emits:["click","minimize","update:isMinimize"],setup(n,{emit:r}){J.useCssVars(q=>({"5eb53786":`${d.value.container}px`,"41a7fdd0":`${d.value.wrapper}px`,"2a593c76":`${d.value.mini.right}px`,bb6a6a86:`${d.value.mini.size}px`,"72d2d3ac":`${d.value.mini.fontSize}px`}));const a=n,o=r,u={small:{container:40,wrapper:32,img:24,mini:{size:14,fontSize:10,right:-4}},normal:{container:48,wrapper:40,img:32,mini:{size:16,fontSize:12,right:-6}},large:{container:56,wrapper:48,img:40,mini:{size:18,fontSize:14,right:-6}}},d=J.computed(()=>u[a.size]),h=J.ref(null),b=J.ref(null),{nimbusLeft:v,nimbusTop:y,isMinimize:A,handleClick:k,handleMinimize:C,handleDragging:T,handleMouseEnter:B,handleMouseLeave:L,handleMouseDown:I,handleMouseUp:O}=R2n(o,a.isMinimize);J.watch(A,q=>{o("update:isMinimize",q)});const F=J.computed(()=>A.value?ms("恢复默认大小"):ms("最小化,将缩成锚点")),{createTooltip:z,destroyAll:j}=vM({theme:"ai-blueking",delay:[0,0]}),G=()=>{J.nextTick(()=>{U()})},U=()=>{j(),h.value&&!A.value&&z(h.value,"Cmd + I",{placement:"left"}),b.value&&z(b.value,F.value,{placement:"top"})};return J.watch(()=>A.value,()=>{J.nextTick(()=>{U()})}),J.onMounted(()=>{J.nextTick(()=>{U()}),window.addEventListener("resize",G)}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",G)}),(q,Q)=>(J.openBlock(),J.createBlock(J.unref(L0e),{active:!q.isPanelShow,axis:"y",draggable:!0,h:d.value.container,parent:!0,"prevent-deactivation":!0,resizable:!1,w:d.value.container,x:J.unref(v),y:J.unref(y),onDragging:J.unref(T)},{default:J.withCtx(()=>[J.createElementVNode("div",{ref_key:"nimbusContainerRef",ref:h,class:J.normalizeClass(["nimbus-container",{"is-minimize":J.unref(A)}]),onClick:Q[1]||(Q[1]=(...H)=>J.unref(k)&&J.unref(k)(...H)),onMousedown:Q[2]||(Q[2]=(...H)=>J.unref(I)&&J.unref(I)(...H)),onMouseenter:Q[3]||(Q[3]=(...H)=>J.unref(B)&&J.unref(B)(...H)),onMouseleave:Q[4]||(Q[4]=(...H)=>J.unref(L)&&J.unref(L)(...H)),onMouseup:Q[5]||(Q[5]=(...H)=>J.unref(O)&&J.unref(O)(...H))},[J.createElementVNode("div",O2n,[J.createElementVNode("img",{width:d.value.img,height:d.value.img,src:J.unref(I0e),alt:"nimbus"},null,8,F2n)]),J.createElementVNode("i",{ref_key:"minimizeButtonRef",ref:b,class:J.normalizeClass(["nimbus-mini bkai-icon",J.unref(A)?"bkai-yinyong":"bkai-minus-line"]),onClick:Q[0]||(Q[0]=J.withModifiers((...H)=>J.unref(C)&&J.unref(C)(...H),["stop"]))},null,2)],34)]),_:1},8,["active","h","w","x","y","onDragging"]))}}),[["__scopeId","data-v-9f57bde8"]]),P2n={class:"content-wrapper"},z2n={class:"chat-input-wrapper"},j2n={key:0,class:"bottom-tools-bar"},H2n=J.defineComponent({__name:"ai-blueking-new",props:{extCls:{default:""},title:{default:""},helloText:{default:ms("你好,我是小鲸")},enablePopup:{type:Boolean,default:!0},shortcuts:{default:()=>[]},shortcutLimit:{default:3},shortcutFilter:{type:Function,default:void 0},url:{default:""},prompts:{default:()=>[]},hideNimbus:{type:Boolean,default:!1},requestOptions:{default:()=>({})},defaultMinimize:{type:Boolean,default:!1},teleportTo:{default:"body"},draggable:{type:Boolean,default:!0},defaultWidth:{default:void 0},defaultHeight:{default:void 0},defaultTop:{default:void 0},defaultLeft:{default:void 0},hideHeader:{type:Boolean,default:!1},disabledInput:{type:Boolean,default:!1},nimbusSize:{default:"normal"},showHistoryIcon:{type:Boolean,default:!0},showNewChatIcon:{type:Boolean,default:!0},placeholder:{default:ms(`输入 "/" 唤出 Prompt
292
292
  通过 Shift + Enter 进行换行输入`)},miniPadding:{default:0},initialSessionCode:{default:""},autoSwitchToInitialSession:{type:Boolean,default:!1}},emits:["shortcut-click","close","show","stop","receive-start","receive-text","receive-end","send-message","session-initialized"],setup(n,{expose:r,emit:a}){const o=n,u=a;J.provide(QPe,o.enablePopup);const d=J.ref(),h=J.ref(),b=J.ref(),v=J.ref(!1),y=J.ref(o.defaultMinimize),A=J.ref(""),k=J.ref(!1),C=J.ref(!1);let T=null;const B=J.ref(""),L=J.ref([]),I=J.ref(window.innerHeight),O=J.ref(68),F=mtn(),{renderMarkdown:z}=_2n(),{selectedText:j,citeText:G,setCiteText:U}=KO(o.enablePopup),{messageListRef:q,scrollMainToBottom:Q,scrollToBottomIfNeeded:H,resetUserScrolling:Y}=L2n(),{currentShortcut:P,handleShortcutClick:X,handleCancelShortcut:N}=I2n({selectedText:j,isShow:v,handleShow:()=>{Vn()}});gYt(),M$t();const{minWidth:ie,minHeight:le,maxWidth:fe,top:ce,left:ue,width:he,height:re,isCompressionHeight:be,handleDragging:De,handleResizing:ge,toggleCompression:Ze}=D2n({maxWidthPercent:80,initWidth:o.defaultWidth,defaultHeight:o.defaultHeight,defaultTop:o.defaultTop,defaultLeft:o.defaultLeft,miniPadding:o.miniPadding}),_e=J.computed(()=>I.value-367),{greetingSectionRef:Le,updateGreetingTextHeight:Ve,getInputContainerStyle:ot}=M2n({greetingMaxHeight:_e.value}),Se=J.computed(()=>ot(yt.value)),Be=J.computed(()=>{const ui=j.value?100:70;return O.value+40+ui}),we=J.computed(()=>htn(o.url)),{currentSession:ke,sessionContents:Te,isLoadingSessionContents:vt,plusSessionContent:Pe,plusSessionApi:Dn,chat:st,stopChat:wn,setCurrentSession:fn,setCurrentSessionChain:Wn,currentSessionLoading:ft,reGenerateChat:on,reSendChat:Bt,deleteChat:ut,updateRequestOptions:dt,getAgentInfoApi:jt,getSessionsApi:et,getSessionContentsApi:je,modifySessionApi:wt,deleteSessionApi:ht,renameSessionApi:mt,setSessionContents:sn,handleCompleteRole:Ne}=dYt({handleStart:()=>{H(),u("receive-start")},handleText:()=>{H(),u("receive-text")},handleEnd:()=>{H(),u("receive-end")},requestOptions:{url:we.value,...o.requestOptions},otherOptions:{hideReferenceDocIcon:!0}});F.registerSdkMethods({setCurrentSession:fn,setCurrentSessionChain:Wn,setSessionContents:sn,modifySessionApi:wt,deleteSessionApi:ht,renameSessionApi:mt,getSessionContentsApi:je,getSessionsApi:et,getAgentInfoApi:jt,plusSessionApi:Dn,handleCompleteRole:Ne});const We=J.computed(()=>[...o.prompts,...L.value]),yt=J.computed(()=>Te.value.filter(ti=>!v$.includes(ti.role)).length>0),Ut=J.computed(()=>{var ti,ui;return((ui=(ti=F.agentInfo.value)==null?void 0:ti.conversationSettings)==null?void 0:ui.enableChatSession)??!0}),qt=J.computed(()=>B.value||ms("输入你的问题,助你高效的完成工作")),Hn=async()=>{if(T){await T;return}C.value&&!T||(T=(async()=>{try{const{conversationSettings:ti}=await F.initSession();B.value=(ti==null?void 0:ti.openingRemark)||"",L.value=(ti==null?void 0:ti.predefinedQuestions)||[],C.value=!0,u("session-initialized",{openingRemark:B.value,predefinedQuestions:L.value})}finally{T=null,Ve()}})(),await T)};J.watch(()=>we.value,(ti,ui)=>{ti!==ui&&ti&&(dt({url:ti,...o.requestOptions}),C.value=!1,T=null,Hn())}),J.watch(()=>o.requestOptions,ti=>{dt({url:we.value,...ti})},{deep:!0}),J.watch(Te,()=>{J.nextTick(H)},{deep:!0}),J.watch(()=>v.value,ti=>{ti&&J.nextTick(()=>{var ui;(ui=h.value)==null||ui.focus()})});const dn=async ti=>{if(!ti)return;C.value||await Hn();const ui=F.sessionList.value.find(Us=>Us.sessionCode===ti);return ui?(await F.switchSessionWithContents(ui),!0):!1},Hr=()=>{I.value=window.innerHeight};J.onMounted(async()=>{window.addEventListener("resize",Hr),we.value&&!o.defaultMinimize&&(await Hn(),o.initialSessionCode&&o.autoSwitchToInitialSession&&await dn(o.initialSessionCode)),kue.useCopyCode()}),J.onBeforeUnmount(()=>{window.removeEventListener("resize",Hr)});const ei=ti=>{u("shortcut-click",{shortcut:ti.shortcut,source:ti.source}),X(ti)},Wr=ti=>{const ui={...ti.shortcut,_source:ti.source};u("shortcut-click",{shortcut:ui,source:ti.source}),X({shortcut:ui,source:ti.source})},ci=ti=>{O.value=ti},vi=()=>{v.value=!1,u("close")},Vn=async ti=>{v.value=!0,u("show"),C.value||await Hn(),ti&&await dn(ti),Ve()},si=()=>{Vn()},Vr=()=>{Q()},Yi=async ti=>{var Uo,Zl,al,Go,bo,ec,Ai;if(!ti.trim())return;!C.value&&we.value&&await Hn(),Y();const ui=HPe(ti);await Pe((Uo=ke.value)==null?void 0:Uo.sessionCode,{role:Zr.User,content:ui,sessionCode:(Zl=ke.value)==null?void 0:Zl.sessionCode,property:{extra:{cite:G.value,...typeof((al=o.requestOptions)==null?void 0:al.context)=="function"?(Go=o.requestOptions)==null?void 0:Go.context():(bo=o.requestOptions)==null?void 0:bo.context}}});const Us=Te.value.filter(Ht=>!v$.includes(Ht.role)),Io=Us.length===1&&Us[0].role===Zr.User;if(st({sessionCode:(ec=ke.value)==null?void 0:ec.sessionCode,...o.requestOptions}),Io&&((Ai=ke.value)!=null&&Ai.sessionCode))try{const Ht=await mt(ke.value.sessionCode);Ht!=null&&Ht.sessionName&&await F.getSessionList()}catch(Ht){console.error("自动命名会话失败:",Ht)}u("send-message",ui),A.value="",U("")},Vi=ti=>{const ui=Te.value[ti];ui&&on(ui.sessionCode,ui,ti)},$i=(ti,{message:ui})=>{const Us=Te.value[ti];Us&&(Us.content=HPe(ui),Bt(Us.sessionCode,Us,ti))},ki=()=>{var ti;(ti=ke==null?void 0:ke.value)!=null&&ti.sessionCode&&(wn(ke.value.sessionCode),u("stop"))},Ti=async ti=>{var Zl,al,Go,bo;const{shortcut:ui,formData:Us,citeFormData:Io}=ti;N(),!v.value&&Vn(),ft.value&&ki(),!C.value&&we.value&&await Hn();const Uo=Io||Us;await Pe((Zl=ke.value)==null?void 0:Zl.sessionCode,{role:Zr.User,content:ui.name,sessionCode:(al=ke.value)==null?void 0:al.sessionCode,property:{extra:{cite:{type:"structured",title:ui.name,data:Uo.map(ec=>({key:ec.__label,value:ec.__value}))},command:ui.id,context:[...Us,...Array.isArray((Go=o.requestOptions)==null?void 0:Go.context)?o.requestOptions.context:[]]}}}),st({sessionCode:(bo=ke.value)==null?void 0:bo.sessionCode,...o.requestOptions}),u("send-message",ui.name)},za=ti=>{var ui;ut(ti,(ui=ke.value)==null?void 0:ui.sessionCode)},Ba=async()=>{var ti;wn((ti=ke.value)==null?void 0:ti.sessionCode),A.value="",U(""),sn([])};return r({sessionContents:Te,handleShow:Vn,handleClose:vi,handleStop:ki,handleSendMessage:Yi,handleShortcutClick:X,handleDelete:za,handleRegenerate:Vi,handleResend:$i,updateRequestOptions:dt,currentSessionLoading:ft,isLoadingSessionContents:vt,updateGreetingTextHeight:Ve,setCurrentSession:fn,focusInput:()=>{var ti;(ti=h.value)==null||ti.focus()},addNewSession:ti=>F.addNewSession(ti),updateSessionName:async(ti,ui)=>F.updateSession(ti,{sessionName:ui}),switchToSession:dn,getSessionList:F.getSessionList,sessionList:F.sessionList,enableChatSession:Ut}),(ti,ui)=>{var Us;return J.openBlock(),J.createBlock(J.Teleport,{to:ti.teleportTo},[J.createElementVNode("div",{class:J.normalizeClass(["ai-blueking-wrapper",o.extCls??""])},[v.value?(J.openBlock(),J.createBlock(J.unref(L0e),{key:0,ref_key:"resizeWrapper",ref:d,active:v.value,draggable:o.draggable,h:J.unref(re),"max-width":J.unref(fe),"min-height":J.unref(le),"min-width":J.unref(ie),parent:!0,"prevent-deactivation":!0,resizable:!0,w:J.unref(he),x:J.unref(ue),y:J.unref(ce),"class-name":"ai-blueking-container-wrapper","drag-handle":".drag-handle",onDragging:J.unref(De),onResizing:J.unref(ge)},{default:J.withCtx(()=>[J.createElementVNode("div",{ref_key:"rootNode",ref:b,class:"ai-blueking-container"},[J.createVNode(mnn,{show:J.unref(vt)},null,8,["show"]),J.createCommentVNode(" 顶部栏 "),o.hideHeader?J.createCommentVNode("v-if",!0):(J.openBlock(),J.createBlock(Otn,{key:0,title:o.title,"is-compression-height":J.unref(be),draggable:o.draggable,"show-history-icon":o.showHistoryIcon,"show-new-chat-icon":o.showNewChatIcon,"enable-chat-session":Ut.value,onClose:vi,onToggleCompression:J.unref(Ze),onNewChat:Ba},null,8,["title","is-compression-height","draggable","show-history-icon","show-new-chat-icon","enable-chat-session","onToggleCompression"])),J.createElementVNode("div",P2n,[J.createCommentVNode(" 主要内容区域 "),J.createElementVNode("div",{class:J.normalizeClass(`main-content ${yt.value?"chat-layout":"greeting-layout"}`)},[J.createVNode(gnn,{ref_key:"greetingSectionRef",ref:Le,title:o.helloText,"greeting-text":qt.value,"has-session-contents":yt.value,"render-markdown":J.unref(z),"greeting-max-height":_e.value},null,8,["title","greeting-text","has-session-contents","render-markdown","greeting-max-height"]),J.createVNode(A2n,{ref_key:"messageListRef",ref:q,"session-contents":J.unref(Te),"has-session-contents":yt.value,"content-margin-bottom":Be.value,onDelete:za,onRegenerate:Vi,onResend:$i},null,8,["session-contents","has-session-contents","content-margin-bottom"]),J.createVNode(J.unref(B0e).div,{transition:{duration:.5,ease:[.33,1,.68,1],type:"tween",layoutId:"chat-input"},class:J.normalizeClass(`chat-input-container ${yt.value?"bottom":"centered"}`),style:J.normalizeStyle(yt.value?void 0:Se.value),layout:""},{default:J.withCtx(()=>{var Io;return[J.createElementVNode("div",z2n,[J.unref(ft)||k.value?(J.openBlock(),J.createElementBlock("div",j2n,[J.unref(ft)?(J.openBlock(),J.createBlock(UPe,{key:0,color:"#EA3636",icon:"bkaitingzhishengcheng",text:J.unref(ms)("停止生成"),onClick:ki},null,8,["text"])):J.createCommentVNode("v-if",!0),k.value?(J.openBlock(),J.createBlock(UPe,{key:1,color:"#979BA5",icon:"bkaijiantou",text:J.unref(ms)("返回底部"),onClick:Vr},null,8,["text"])):J.createCommentVNode("v-if",!0)])):J.createCommentVNode("v-if",!0),J.unref(P)?(J.openBlock(),J.createBlock(unn,{key:J.unref(P).id,shortcut:J.unref(P),"root-node":b.value,onCancel:J.unref(N),onSubmit:Ti},null,8,["shortcut","root-node","onCancel"])):(J.openBlock(),J.createBlock(inn,{key:2,class:J.normalizeClass(yt.value?"chat-layout":"greeting-layout"),modelValue:A.value,"onUpdate:modelValue":ui[0]||(ui[0]=Uo=>A.value=Uo),loading:J.unref(ft)||!1,prompts:We.value,shortcuts:o.shortcuts,"shortcut-filter":o.shortcutFilter,"conversation-settings":(Io=J.unref(F).agentInfo.value)==null?void 0:Io.conversationSettings,disabled:o.disabledInput,onHeightChange:ci,onSend:Yi,onShortcutClick:Wr,onStop:ki},null,8,["class","modelValue","loading","prompts","shortcuts","shortcut-filter","conversation-settings","disabled"]))])]}),_:1},8,["class","style"])],2)])],512)]),_:1},8,["active","draggable","h","max-width","min-height","min-width","w","x","y","onDragging","onResizing"])):J.createCommentVNode("v-if",!0),o.hideNimbus?J.createCommentVNode("v-if",!0):(J.openBlock(),J.createBlock(N2n,{key:1,"is-panel-show":v.value,"onUpdate:isPanelShow":ui[1]||(ui[1]=Io=>v.value=Io),"is-minimize":y.value,"onUpdate:isMinimize":ui[2]||(ui[2]=Io=>y.value=Io),"default-minimize":ti.defaultMinimize,size:o.nimbusSize,onClick:si},null,8,["is-panel-show","is-minimize","default-minimize","size"])),J.createVNode(B2n,{shortcuts:o.shortcuts,"conversation-settings":(Us=J.unref(F).agentInfo.value)==null?void 0:Us.conversationSettings,"shortcut-limit":o.shortcutLimit,"shortcut-filter":o.shortcutFilter,onClick:ui[3]||(ui[3]=Io=>v.value=!0),onShortcutClick:ei},null,8,["shortcuts","conversation-settings","shortcut-limit","shortcut-filter"])],2)],8,["to"])}}}),V2n=a1(H2n,[["__scopeId","data-v-ea251cd6"]]);(function(){var n='<svg xmlns="http://www.w3.org/2000/svg" data-name="bkai" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="bkai-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="bkai-angle-down" viewBox="0 0 32 32"><path fill="#63656E" d="M9 14l1.5-1.5L16 18l5.5-5.5L23 14l-7 7z"/></symbol><symbol id="bkai-close-circle-shape" viewBox="0 0 64 64"><path fill="#737987" d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm11.3 36.5l-2.8 2.8-8.5-8.5-8.5 8.5-2.8-2.8 8.5-8.5-8.5-8.5 2.8-2.8 8.5 8.5 8.5-8.5 2.8 2.8-8.5 8.5 8.5 8.5z"/></symbol><symbol id="bkai-close-line-2" viewBox="0 0 64 64"><path d="M52 16.2L47.8 12 32 27.8 16.2 12 12 16.2 27.8 32 12 47.8l4.2 4.2L32 36.2 47.8 52l4.2-4.2L36.2 32z"/></symbol><symbol id="bkai-minus-line" viewBox="0 0 1024 1024"><path d="M128 448h768v128H128V448z" class="st0"/></symbol><symbol id="bkai-visible1" viewBox="0 0 1024 1024"><path d="M512 384a128 128 0 10128 128 128 128 0 00-128-128zm0 192a64 64 0 1164-64 64 64 0 01-64 64z"/><path d="M512 240C264.64 240 64 512 64 512s200.64 272 448 272 448-272 448-272-200.64-272-448-272zm0 480c-160 0-304-139.04-364.96-208C208 442.88 352 304 512 304s304 139.04 364.96 208C816 581.12 672 720 512 720z"/></symbol><symbol id="bkai-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="bkai-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="bkai-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="bkai-shipin-2" viewBox="0 0 1024 1024"><path fill="#FF9C01" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM433.067 486.16v161.072c0 44.295 29.53 60.402 67.113 36.242l107.381-71.14c36.242-26.846 36.242-67.114 0-91.275L500.18 449.92c-36.241-24.16-67.113-8.053-67.113 36.241zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-tupian-2" viewBox="0 0 1024 1024"><path fill="#699DF4" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm-18.4 512l-112 144-80-96-112 144h448l-144-192zM480 448c-35.346 0-64 28.654-64 64 0 35.346 28.654 64 64 64 35.346 0 64-28.654 64-64 0-35.346-28.654-64-64-64zm122-310.2V326h188.2L602 137.8z"/></symbol><symbol id="bkai-wenben-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="bkai-yasuobao-2" viewBox="0 0 1024 1024"><path fill="#63656E" fill-rule="evenodd" d="M623.999 64c26.5 0 63.499 15.5 82 34l156 156c18.5 18.5 34.001 55.5 34.001 82v576.001c0 26.5-21.5 47.999-48.002 47.999H176c-26.5 0-48-21.5-48-47.999V112c0-26.5 21.5-48 48-48h447.999zM296 456h-64v222h128V518h-64v-62zm16 110v64h-32v-64h32zm48-174h-64v64h64v-64zm-64-64h-64v64h64v-64zm64-64h-64v64h64v-64zm280-132v188h188c-3-8.5-7.501-17-11.001-20.5L660.499 143c-3.5-3.5-12-8-20.499-11zm-344 68h-64v64h64v-64zm64-64h-64v64h64v-64z"/></symbol><symbol id="bkai-yinle-2" viewBox="0 0 1024 1024"><path fill="#F8B4B4" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zm-6.312 385.187l-133.876 40.95c-16.187 4.637-29.4 21.525-29.4 37.712v141.225s-9.712-6.562-31.324-3.5c-31.763 4.55-57.488 28.875-57.488 54.425 0 25.55 25.725 41.213 57.488 36.663 31.762-4.463 55.037-28.088 55.037-53.638V582.449c0-11.375 13.65-16.187 13.65-16.187l118.387-37.1s13.126-4.375 13.126 7.7v96.862s-12.076-6.912-33.688-4.287c-31.762 3.85-57.488 27.65-57.488 53.2 0 25.55 25.726 41.737 57.488 37.887 31.762-3.85 57.488-27.65 57.488-53.2V470.187c0-16.275-13.126-25.638-29.4-21zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-doc-3" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="bkai-excel-2" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="bkai-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="bkai-pdf-2" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="bkai-ppt-2" viewBox="0 0 1024 1024"><path fill="#FF5656" fill-rule="evenodd" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM540.487 323.829H199.154v341.333h85.333V579.83h256v-256zm-85.333 85.333v85.333H284.487v-85.333h170.667z"/></symbol><symbol id="bkai-sousuo" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M478.72 128c193.6 0 350.72 157.12 350.72 350.72 0 82.88-28.8 159.04-76.8 218.88l131.84 131.84c15.36 15.36 15.36 40 0 55.04s-40 15.36-55.04 0L697.6 752.64c-60.16 48-136 76.8-218.88 76.8-193.6 0-350.72-157.12-350.72-350.72S285.12 128 478.72 128zm0 78.4c-150.4 0-272.32 121.92-272.32 272.32s121.92 272.32 272.32 272.32c58.56 0 114.24-18.56 160.32-52.16l9.6-7.36 23.68-19.2 19.2-23.68c35.84-44.8 56.64-99.52 59.2-157.44l.32-12.48c0-150.4-121.92-272.32-272.32-272.32z" clip-rule="evenodd"/></symbol><symbol id="bkai-chouti" viewBox="0 0 1024 1024"><path d="M864 160c35.346 0 64 28.654 64 64v576c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V224c0-35.346 28.654-64 64-64zm-320 64H160v576h384V224zm320 0H608v576h256V224zm-64 224v64H672v-64h128zm0-128v64H672v-64h128z"/></symbol><symbol id="bkai-liaotianchuang" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M832 160c35.346 0 64 28.654 64 64v569.6c0 38.88-28.654 70.4-64 70.4H192c-35.346 0-64-31.52-64-70.4V224c0-35.346 28.654-64 64-64h640zm0 192H192v448h640V352zM704 224c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32zm-96 0c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32zm192 0c-17.673 0-32 14.327-32 32 0 17.673 14.327 32 32 32 17.673 0 32-14.327 32-32 0-17.673-14.327-32-32-32z"/></symbol><symbol id="bkai-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="bkai-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="bkai-published-zhongzhi" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 96c229.75 0 416 186.25 416 416S741.75 928 512 928 96 741.75 96 512 282.25 96 512 96zm0 64c-194.404 0-352 157.596-352 352s157.596 352 352 352 352-157.596 352-352-157.596-352-352-352zm16 208c70.692 0 128 57.308 128 128v32c0 70.692-57.308 128-128 128h-32c-70.692 0-128-57.308-128-128v-32c0-70.692 57.308-128 128-128h32z"/></symbol><symbol id="bkai-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M873.6 99.2L118.4 476.8c-28.8 16-28.8 44.8-6.4 60.8l182.4 112c16 6.4 28.8 6.4 44.8-6.4L736 288 390.4 672c-6.4 6.4-6.4 16-6.4 22.4v166.4c0 16 6.4 28.8 22.4 38.4s28.8 0 38.4-6.4l89.6-89.6 182.4 121.6c28.8 16 54.4 6.4 60.8-22.4L928 147.2c6.4-38.4-19.2-60.8-54.4-48z" clip-rule="evenodd"/></symbol><symbol id="bkai-diancai" viewBox="0 0 1024 1024"><path d="M192 575.003V128h-64v447.003h64zM448 896c44.402-6.635 76.402-17.301 96-32 42.667-32 64-74.667 64-128v-96h235.517a64 64 0 0017.328-2.39c34.026-9.57 53.851-44.912 44.282-78.938l-108-384C789.364 147.07 764.19 128 735.517 128H288v448l160 320zm35.008-73.024L352 560.96V192h383.517l108 384H544v160c0 33.189-11.849 56.887-38.4 76.8-4.222 3.167-11.054 6.421-20.402 9.518l-2.19.658z"/></symbol><symbol id="bkai-diancaishixin" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 575.003V128h-64v447.003h64zM448 896c44.402-6.635 76.402-17.301 96-32 42.667-32 64-74.667 64-128v-96h235.517a64 64 0 0017.328-2.39c34.026-9.57 53.851-44.912 44.282-78.938l-108-384C789.364 147.07 764.19 128 735.517 128H288v448l160 320z"/></symbol><symbol id="bkai-dianzan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 448.997V896h-64V448.997h64zM448 128c44.402 6.635 76.402 17.301 96 32 42.667 32 64 74.667 64 128v96h235.517a64 64 0 0117.328 2.39c34.026 9.57 53.851 44.912 44.282 78.938l-108 384C789.364 876.93 764.19 896 735.517 896H288V448l160-320zm35.008 73.024L352 463.04V832h383.517l108-384H544V288c0-33.189-11.849-56.887-38.4-76.8-4.222-3.167-11.054-6.421-20.402-9.518l-2.19-.658z"/></symbol><symbol id="bkai-dianzanshixin" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 448.997V896h-64V448.997h64zm96-.997v448h471.758c14.337 0 26.924-9.535 30.805-23.336l126-448c4.785-17.013-5.128-34.684-22.14-39.469a32 32 0 00-8.665-1.195H608v-96c0-53.333-21.333-96-64-128-19.598-14.699-51.598-25.365-96-32L288 448z"/></symbol><symbol id="bkai-dingyue" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M821.428 128C862.625 128 896 162.015 896 204.003v661.17C896 882.182 882.963 896 866.276 896c-7.693 0-14.609-2.936-19.83-7.715l-.508-.257-300.374-157.852h-.521l-301.416 157.32-3.082 1.13c-5.16 4.294-11.74 6.843-18.82 6.843-16.688 0-29.725-13.82-29.725-30.295V204.003C192 162.015 225.375 128 266.572 128h554.856zm0 60.59H266.572c-8.344 0-15.123 6.909-15.123 15.413l-.025 610.781 269.11-140.414c1.042-.532 1.564-1.063 2.607-1.063 13.558-6.91 30.767-6.91 44.847.531l2.086 1.063 266.47 139.755.007-610.653c0-8.504-6.78-15.413-15.123-15.413zm-95.431 294.975c16.166 0 29.724 13.82 29.724 30.295l-.009 30.268 29.734.027c16.687 0 29.724 13.819 29.724 30.295s-13.037 30.295-29.724 30.295l-29.734-.009.01 30.835c0 16.476-13.559 30.295-29.725 30.295-16.687 0-29.724-13.819-29.724-30.295l-.017-30.835-30.23.009c-16.687 0-29.724-13.819-29.724-30.295s13.559-30.295 29.725-30.295l30.229-.027.017-30.268c0-17.007 13.558-30.295 29.724-30.295zM663.419 231.11c16.688 0 29.725 13.818 29.725 30.294 0 17.008-13.037 30.295-29.725 30.295H424.581c-16.688 0-29.725-13.818-29.725-30.295 0-17.007 13.559-30.294 29.725-30.294h238.838z"/></symbol><symbol id="bkai-fujian" viewBox="0 0 1024 1024"><path d="M470.82 362.7L278.013 549.08c-66.508 64.292-66.483 168.527.058 232.85 66.434 64.22 174.442 64.281 240.881.058l241.055-233.02c13.307-12.862 34.88-12.862 48.188 0 13.307 12.864 13.307 33.719 0 46.581L567.138 828.57c-93.066 89.961-244.221 89.874-337.255-.058-93.15-90.044-93.186-235.988-.06-326.01l337.433-326.182.031-.03c66.643-64.347 174.084-64.453 240.847.088 66.649 64.425 66.805 168.328.02 232.886l-192.85 186.42-144.341 139.53c-40.033 38.697-104.634 38.872-144.705.136-40.08-38.744-40.235-100.85.141-139.88L663.43 269.674c13.306-12.862 34.88-12.862 48.188 0 13.306 12.864 13.306 33.72 0 46.581L374.587 642.051c-13.711 13.253-13.66 33.65-.142 46.717 13.398 12.951 34.85 12.893 48.33-.136l144.34-139.53 192.85-186.42c40.14-38.8 40.048-100.994-.02-139.724-19.121-18.61-45.133-29.078-72.268-29.082-27.134-.003-53.15 10.458-72.275 29.064L470.82 362.7z"/></symbol><symbol id="bkai-lashen" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M511.491 192l128.431 159.872h-256L511.492 192zM768 128v64H256v-64h512zM256 832h512v64H256zm224-480h64v320h95.922l-128.43 159.872L383.921 672H480V352z"/></symbol><symbol id="bkai-yasuo" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M511.491 544l128.431 159.872L544 703.84V928h-64V703.84l-96.078.032L511.492 544zM832 480v64H192v-64h640zM544 96v223.968l95.922.032-128.43 159.872L383.921 320l96.078-.032V96h64z"/></symbol><symbol id="bkai-yinyong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M642.272 192v64H416c-106.039 0-192 85.961-192 192s85.961 192 192 192h355.712L640 509.52 686 464l210 208-210 208-46-45.52L771.712 704H416c-138.717 0-251.665-110.33-255.878-248.026L160 448c0-141.385 114.615-256 256-256h226.272z"/></symbol><symbol id="bkai-drill-down" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M932.061 599.866l-144.135-89.362-34.411 55.443L889.21 649.44 564.58 850.993a97.006 97.006 0 01-102.582 0l-324.63-201.554 131.8-82.84-34.411-55.443-142.837 88.71C74.534 610.259 63.915 629.114 64 649.439c-.054 20.49 10.527 39.525 27.92 50.225l335.018 206.773a158.447 158.447 0 00170.105 0l335.018-205.468c17.393-10.7 27.974-29.736 27.918-50.226.555-20.787-10.125-40.25-27.918-50.877zM784.68 383.309l-38.955-52.182-201.27 150.676V80h-64.926v401.803l-201.27-150.676-38.956 52.182L511.99 587.472 784.68 383.31z"/></symbol><symbol id="bkai-liaotianliebiao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M160 192h704c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32zm0 288h352c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32zm0 288h576c17.673 0 32 14.327 32 32 0 17.673-14.327 32-32 32H160c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32z"/></symbol><symbol id="bkai-xinzengliaotian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960c-58.835 0-115.02-11.341-166.49-31.957L96 928l-.005-249.414C75.355 627.09 64 570.87 64 512 64 264.576 264.576 64 512 64zm0 64c-212.077 0-384 171.923-384 384 0 49.608 9.378 97.809 27.401 142.775l4.594 11.462L159.968 864l185.553.043 12.335.002 11.45 4.587C414.25 886.633 462.423 896 512 896c212.077 0 384-171.923 384-384S724.077 128 512 128zm0 160c17.673 0 32 14.327 32 32v160h160c17.673 0 32 14.327 32 32 0 16.41-12.353 29.936-28.268 31.785L704 544H544v160c0 16.41-12.353 29.936-28.268 31.785L512 736c-17.673 0-32-14.327-32-32V544H320c-17.673 0-32-14.327-32-32 0-17.673 14.327-32 32-32h160V320c0-17.673 14.327-32 32-32z"/></symbol><symbol id="bkai-quxiaozhiding" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M534.3 612.212c29.73 3.15 53.172 13.558 70.325 31.226 27.875 25.374 41.813 63.374 41.813 114 0 49.624-13.938 87.624-41.813 114-20.875 21.5-51.063 32.25-90.563 32.25s-69.687-10.75-90.562-32.25c-26.58-25.037-40.543-60.55-41.892-106.536l73.262-73.341c-10.663 16.383-15.995 38.341-15.995 65.877 0 31.124 6.813 55.124 20.437 72 13.626 16.874 31.876 25.312 54.75 25.312 22.876 0 41.063-8.438 54.563-25.312 13.375-16.876 20.063-40.876 20.063-72 0-31-6.72-54.97-20.157-71.907-13.437-16.937-31.593-25.406-54.469-25.406-14.43 0-27.021 3.358-37.77 10.074l58.008-57.987zm277.888 7.413c27.75 0 49.874 7.125 66.374 21.375 16.5 14.25 24.75 36.312 24.75 66.188 0 32.624-8.25 55.687-24.75 69.187s-40.062 20.25-70.687 20.25h-58.687V896h-57.376V619.625h120.376zM275.37 871.104l.004 24.896h-24.9l24.896-24.896zm549.53-685.26l45.255 45.254-656.195 656.196-45.255-45.255 656.196-656.195zM803 667.625h-53.812V749H803c13.625 0 24.25-3.312 31.875-9.938 7.5-6.624 11.25-17.124 11.25-31.5 0-14.374-3.781-24.624-11.344-30.75-7.562-6.124-18.156-9.187-31.781-9.187zm-457.132-48.009l-48.928 48.928-21.565.018-.004 21.55-58.143 58.144.022-79.694h-83.062v-48.937l211.68-.009zM496 96l181.388 192.096L581.484 384H576l-.02 5.504L421.484 544H416V384H224L496 96z"/></symbol><symbol id="bkai-zhiding" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M496 96l272 288H576v160H416V384H224L496 96zM358.062 619.625v48.937h-82.687V896H217.25V668.562h-83.062v-48.937h223.874zm156 284.063c-39.5 0-69.687-10.75-90.562-32.25-28-26.376-42-64.376-42-114 0-50.626 14-88.626 42-114 20.875-21.5 51.062-32.25 90.562-32.25s69.688 10.75 90.563 32.25c27.875 25.374 41.813 63.374 41.813 114 0 49.624-13.938 87.624-41.813 114-20.875 21.5-51.063 32.25-90.563 32.25zm54.563-74.25c13.375-16.876 20.063-40.876 20.063-72 0-31-6.72-54.97-20.157-71.907-13.437-16.937-31.593-25.406-54.469-25.406-22.874 0-41.124 8.437-54.75 25.313-13.624 16.874-20.437 40.874-20.437 72 0 31.124 6.813 55.124 20.437 72 13.626 16.874 31.876 25.312 54.75 25.312 22.876 0 41.063-8.438 54.563-25.312zm239.25-32.813h-58.687V896h-57.376V619.625h120.376c27.75 0 49.874 7.125 66.374 21.375 16.5 14.25 24.75 36.312 24.75 66.188 0 32.624-8.25 55.687-24.75 69.187s-40.062 20.25-70.687 20.25zm27-57.563c7.5-6.624 11.25-17.124 11.25-31.5 0-14.374-3.781-24.624-11.344-30.75-7.562-6.124-18.156-9.187-31.781-9.187h-53.812V749H803c13.625 0 24.25-3.312 31.875-9.938z"/></symbol><symbol id="bkai-piliangbianji" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M573.538 160v57.6H219.077v588.8h585.846V491.2H864v344c0 15.898-13.233 28.8-29.538 28.8H189.538C173.233 864 160 851.098 160 835.2V188.8c0-15.898 13.233-28.8 29.538-28.8h384zm281.653 0L896 203.948 520.81 608 480 564.052 855.19 160z"/></symbol><symbol id="bkai-shanchu" viewBox="0 0 1024 1024"><path d="M659.2 246.4v-60.8c0-32-25.6-57.6-57.6-57.6h-176c-32 0-57.6 25.6-57.6 57.6v57.6H128v57.6h102.4V832c0 32 25.6 57.6 57.6 57.6h441.6c32 0 57.6-25.6 57.6-57.6V304H896v-57.6H659.2zm-236.8-44.8c0-9.6 6.4-16 16-16h147.2c9.6 0 16 6.4 16 16v44.8h-176v-44.8zm310.4 620.8c0 9.6-6.4 16-16 16H304c-9.6 0-16-6.4-16-16V304h441.6v518.4z"/><path d="M576 384h64v320h-64V384zM384 384h64v320h-64V384z"/></symbol><symbol id="bkai-yuan-jiahao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm31.984 224.016H480v192.016H288v63.984h192v192h63.984v-192H736v-63.984H543.984V288.016z"/></symbol><symbol id="bkai-yuan-jianhao" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm224 416.016H288V544h448v-63.984z"/></symbol><symbol id="bkai-zhushou" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M872.2 454.62C868.485 256.243 714.704 96 525.868 96h-27.734C309.297 96 155.516 256.243 151.8 454.592 118.63 473.812 96 509.282 96 550.3v55.466c0 61.18 49.754 110.934 110.933 110.934 61.18 0 110.934-49.754 110.934-110.934V550.3c-.088-60.802-49.08-110.215-109.88-110.823 10.844-160.714 136.67-288.01 290.146-288.01h27.734c153.504 0 279.302 127.296 290.146 288.01-60.8.608-109.792 50.02-109.88 110.823v55.466c0 50.087 33.558 92.02 79.207 105.748a292.503 292.503 0 01-166.345 107.882c-9.389-28.157-35.714-47.17-65.395-47.23-38.292 0-69.333 31.042-69.333 69.334 0 38.291 31.041 69.333 69.333 69.333a69.056 69.056 0 0058.822-33.03c101.164-17.698 189.385-79.083 241.142-167.787C896.772 694.874 928 654.106 928 605.766V550.3c0-41.018-22.63-76.489-55.8-95.68zM262.4 550.3v55.466c0 30.59-24.877 55.467-55.467 55.467s-55.466-24.877-55.466-55.467V550.3c0-30.59 24.876-55.467 55.466-55.467S262.4 519.71 262.4 550.3zm610.133 55.466c0 29.73-23.573 53.886-52.97 55.217l-2.164-1.026c-.194.444-.499.805-.693 1.22-30.47-.197-55.076-24.94-55.106-55.41V550.3c0-30.59 24.877-55.467 55.467-55.467s55.466 24.877 55.466 55.467v55.466z"/></symbol><symbol id="bkai-bianji" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M609.6 201.562L712 303.968 304 710.39H203.2V609.584l406.4-408.022zM683.672 128l101.821 101.83-45.255 45.257-101.822-101.83L683.672 128zM128 799.995h768V896H128v-96.005z"/></symbol><symbol id="bkai-shezhi-3" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.141 64c33.285 0 66.664 3.844 73.857 5 14.812 2.5 26.62 13.9 29.623 28.6l12.71 63.4c2.302 11.6 10.208 21.5 21.217 26.1 27.32 11.5 52.84 26.3 76.058 44 9.608 7.2 22.118 9.2 33.426 5.4l61.048-20.6c14.31-4.8 30.123-.2 39.63 11.4 11.51 14.1 22.217 28.9 32.025 44.4l18.614 32.1c8.507 16.3 16.113 33.2 22.618 50.7 5.204 14 1.1 29.7-10.108 39.6L874.021 437c-9.007 7.9-13.41 19.7-12.009 31.6 1.601 14 2.502 28.3 2.502 42.8 0 14.8-.9 29.4-2.702 43.7-1.401 11.9 3.002 23.8 12.01 31.7l48.537 42.7c11.309 9.9 15.312 25.7 10.008 39.8-17.514 46.6-42.633 89.5-73.758 127.2-9.507 11.6-25.22 16-39.43 11.2L757.83 787c-11.308-3.8-23.818-1.7-33.426 5.5-22.817 17.2-47.837 31.8-74.557 43.1-11.109 4.7-19.115 14.5-21.417 26.2l-12.71 63.5c-3.002 14.7-14.711 26.1-29.523 28.6-24.118 4-48.837 6.1-74.057 6.1-24.82 0-49.238-2-72.956-5.9-14.812-2.5-26.621-13.9-29.523-28.6l-12.71-63.3c-2.302-11.6-10.208-21.5-21.217-26.1a355.85 355.85 0 01-75.558-43.5c-9.607-7.2-22.117-9.2-33.426-5.4L205.303 808c-14.21 4.8-29.923.3-39.43-11.2-4.932-5.952-25.037-29.06-41.159-56.796-11.28-19.409-22.147-42.81-32.598-70.204-5.304-14.1-1.301-29.9 10.008-39.8l48.537-42.6c9.007-7.9 13.51-19.7 12.01-31.5-1.902-14.5-2.803-29.4-2.803-44.5 0-14.7.901-29.2 2.702-43.5 1.502-11.9-3.002-23.8-12.009-31.7l-48.638-42.7c-11.308-9.9-15.311-25.7-10.007-39.8 4.503-12 9.507-23.7 14.911-35.1.4-.9.9-1.7 1.401-2.6l32.025-55.4c.5-.9 1-1.8 1.601-2.6 7.406-10.6 15.112-20.9 23.318-30.9 9.508-11.6 25.32-16.1 39.531-11.3l61.147 20.7c11.41 3.8 23.919 1.8 33.526-5.5 23.519-17.8 49.138-32.7 76.66-44.2a35.8 35.8 0 0021.316-26.1l12.61-63.2c2.902-14.8 14.711-26.2 29.623-28.6 6.77-1.094 39.618-4.9 72.556-4.9zm28.022 64h-56.544l-2.802.2c-7.106.6-12.91 5.8-14.311 12.7l-10.308 51.6-5.304 26.7c-1.101 5.4-5.004 9.9-10.208 11.8l-25.72 9.2c-32.525 11.6-62.449 28.9-88.97 51.3l-20.815 17.6c-4.203 3.6-10.008 4.7-15.312 2.9l-25.82-8.7-50.039-16.9c-6.705-2.3-14.11.1-18.114 5.9-.1.1-.2.3-.3.4l-.7 1.2-30.324 52.5-.6 1.2-1.008 2.804c-1.462 5.706.364 11.853 4.91 15.796l39.831 35 20.416 17.9c4.103 3.7 6.105 9.2 5.104 14.7l-4.704 26.7c-3.002 16.7-4.503 33.9-4.503 51 0 17.4 1.501 34.8 4.604 51.7l4.803 26.8c1.001 5.4-.9 11-5.104 14.7l-20.516 18-39.53 34.8c-5.304 4.7-6.805 12.3-3.803 18.7l2.802 5.7c.2.3.3.6.5.9l23.519 40.7.6.9c1.501 2.4 3.203 4.8 4.804 7.1 4.003 5.7 11.309 8.1 18.014 5.9l50.539-17 25.62-8.7c5.204-1.8 11.108-.7 15.312 2.9l20.816 17.4c26.22 22.1 55.943 39.2 88.068 50.7l25.62 9.2c5.204 1.9 9.107 6.3 10.208 11.8l5.304 26.7 10.308 51.6c1.3 7 7.205 12.1 14.31 12.7 10.509.9 21.017 1.3 31.525 1.3 10.909 0 21.817-.5 32.626-1.4 7.005-.6 12.81-5.8 14.21-12.7l10.409-52 5.304-26.6c1.1-5.4 4.903-9.9 10.108-11.8l25.52-9.3c31.924-11.6 61.347-28.6 87.467-50.6l20.816-17.5c4.203-3.6 10.008-4.7 15.312-2.9l25.72 8.7 50.239 17c6.705 2.3 14.11-.1 18.114-5.9 6.105-8.7 11.809-17.6 17.113-26.8 5.504-9.5 10.608-19.1 15.212-28.9 3.002-6.4 1.401-14-3.903-18.7l-39.831-34.9-20.416-17.9c-4.103-3.7-6.105-9.2-5.104-14.7l4.704-26.7c3.002-16.7 4.503-33.8 4.503-51 0-16.9-1.5-33.8-4.403-50.3l-4.704-26.6c-.9-5.5 1.001-11 5.204-14.7l20.316-17.8 39.83-34.8c5.305-4.7 6.906-12.2 3.904-18.6-2.102-4.6-4.303-9.2-6.705-13.7l-17.214-29.8c-2.602-4.1-5.304-8.2-8.106-12.2-4.003-5.8-11.409-8.3-18.114-6l-50.039 16.9-25.82 8.7c-5.204 1.8-11.108.7-15.311-2.9L698.485 292c-26.32-22.3-55.943-39.5-88.268-51.2l-25.52-9.3c-5.204-1.9-9.007-6.4-10.108-11.8l-5.304-26.7-10.408-51.9c-1.4-6.9-7.205-12.1-14.21-12.7-1.502-.2-3.003-.3-4.504-.4zM512.24 351.5c88.469 0 160.124 71.6 160.124 160s-71.655 160-160.124 160c-88.468 0-160.124-71.6-160.124-160s71.656-160 160.124-160zm0 64c-52.94 0-96.074 43.1-96.074 96s43.133 96 96.074 96c52.941 0 96.075-43.1 96.075-96s-43.134-96-96.075-96z"/></symbol><symbol id="bkai-history" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M551.32 96C776.665 96 960 282.618 960 512S776.666 928 551.32 928v-66.56c189.284 0 343.291-156.749 343.291-349.44S740.604 162.56 551.319 162.56c-183.76 0-333.843 147.863-342.458 332.8h117.39L179.124 668.283 32 495.36h111.047C151.678 273.665 331.449 96 551.319 96zm28.445 192v192H800v64H512V288h67.765z"/></symbol><symbol id="bkai-fuzhi" viewBox="0 0 1024 1024"><path d="M672 704v128c0 35.346-28.654 64-64 64H192c-35.346 0-64-28.654-64-64V384c0-35.346 28.654-64 64-64h160V216.889C352 168.242 389.727 128 437.333 128h373.334C858.273 128 896 168.242 896 216.889V615.11C896 663.758 858.273 704 810.667 704H672zm-64-320H192v448h416V384zm64 256h138.667C821.97 640 832 629.302 832 615.111V216.89C832 202.698 821.97 192 810.667 192H437.333C426.03 192 416 202.698 416 216.889V320h192c35.346 0 64 28.654 64 64v256z"/></symbol><symbol id="bkai-zhongxinshengcheng" viewBox="0 0 1024 1024"><path d="M844.077 379.897c16.38 41.657 25.316 87.777 25.316 132.41 0 197.87-160.827 357.06-357.393 357.06-84.88 0-166.783-29.755-230.816-84.802h71.478v-59.51H184.39v166.628h59.566v-60.997c175.718 147.287 439.295 124.97 586.719-50.584 101.261-120.508 125.087-285.648 64.033-429.96l-50.63 29.755zM179.923 644.717c-16.38-41.658-25.316-87.778-25.316-132.41 0-197.871 160.827-357.061 357.393-357.061 84.88 0 166.783 29.755 230.816 84.802h-71.478v59.51H839.61V132.93h-59.566v60.998C604.326 45.152 340.75 68.956 193.325 244.51 92.064 365.02 68.238 530.16 129.292 674.471l50.63-29.754z"/></symbol><symbol id="bkai-fenxiang" viewBox="0 0 1024 1024"><path d="M954.297 473.916L566.932 132.133c-10.735-9.437-27.186-1.672-27.186 12.783v200.458c0 8.96-6.884 16.486-15.635 16.844C299.86 370.461 111.31 537.112 71.64 765.644l-7.35 42.41c-2.918 16.485 16.917 26.76 28.235 14.574l28.936-31.3c104.659-113.37 250.037-177.043 401.834-176.446 9.1 0 16.568 7.526 16.568 16.844v196.158c0 14.455 16.568 22.22 27.185 12.783L954.414 499.48c7.467-6.81 7.467-18.875-.117-25.565zm-796.9 204.998c65.339-153.987 214.218-257.68 384.332-257.68h39.67c9.101 0 16.452-7.527 16.452-16.845V237.977L879.624 486.7 597.851 734.823v-162.23c0-9.319-7.35-16.845-16.452-16.845h-36.053c-140.361-5.734-277.106 38.467-387.949 123.166z"/></symbol><symbol id="bkai-jiahao" viewBox="0 0 1024 1024"><path d="M843.353 366.385C907.69 366.385 960 418.735 960 483.03v362.68c0 64.296-52.32 116.646-116.647 116.646H480.704c-64.336 0-116.646-52.35-116.646-116.647V483.031c0-64.296 52.31-116.646 116.646-116.646h362.65zm0 67.255H480.704c-27.223 0-49.39 22.138-49.39 49.391v362.68c0 27.253 22.167 49.39 49.39 49.39h362.65c27.223 0 49.39-22.137 49.39-49.39V483.03c0-27.253-22.167-49.39-49.39-49.39zM246.72 781.484c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623h-43.443c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h43.443zm420.255-72.512c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h126.437zM739.897 64c64.928 0 117.76 52.801 117.76 117.76v75.993c0 18.586-15.036 33.622-33.623 33.622-18.587 0-33.623-15.036-33.623-33.622V181.76c0-27.845-22.659-50.504-50.504-50.504H181.76c-27.845 0-50.504 22.659-50.504 50.504v387.375c0 27.845 22.659 50.504 50.504 50.504h64.959c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.633-33.623 33.633H181.76c-64.928 0-117.76-52.802-117.76-117.76V181.76C64 116.801 116.842 64 181.76 64h558.137zm53.473 488.594c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623H793.37z"/></symbol><symbol id="bkai-jieshi" viewBox="0 0 1024 1024"><path d="M843.353 366.385C907.69 366.385 960 418.735 960 483.03v362.68c0 64.296-52.32 116.646-116.647 116.646H480.704c-64.336 0-116.646-52.35-116.646-116.647V483.031c0-64.296 52.31-116.646 116.646-116.646h362.65zm0 67.255H480.704c-27.223 0-49.39 22.138-49.39 49.391v362.68c0 27.253 22.167 49.39 49.39 49.39h362.65c27.223 0 49.39-22.137 49.39-49.39V483.03c0-27.253-22.167-49.39-49.39-49.39zM246.72 781.484c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623h-43.443c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h43.443zm420.255-72.512c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623h126.437zM739.897 64c64.928 0 117.76 52.801 117.76 117.76v75.993c0 18.586-15.036 33.622-33.623 33.622-18.587 0-33.623-15.036-33.623-33.622V181.76c0-27.845-22.659-50.504-50.504-50.504H181.76c-27.845 0-50.504 22.659-50.504 50.504v387.375c0 27.845 22.659 50.504 50.504 50.504h64.959c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.633-33.623 33.633H181.76c-64.928 0-117.76-52.802-117.76-117.76V181.76C64 116.801 116.842 64 181.76 64h558.137zm53.473 488.594c18.587 0 33.623 15.036 33.623 33.623 0 18.587-15.036 33.623-33.623 33.623H540.537c-18.587 0-33.623-15.036-33.623-33.623 0-18.587 15.036-33.623 33.623-33.623H793.37z"/></symbol><symbol id="bkai-fanyi" viewBox="0 0 1024 1024"><path d="M377.6 851.2h-96c-44.8-6.4-83.2-44.8-83.2-89.6v-44.8c0-25.6-19.2-44.8-44.8-44.8-25.6 0-44.8 19.2-44.8 44.8v44.8c0 96 76.8 179.2 179.2 179.2h89.6c25.6 0 44.8-19.2 44.8-44.8 0-25.6-25.6-44.8-44.8-44.8zM640 230.4h89.6c25.6 0 44.8 6.4 64 25.6 19.2 19.2 25.6 38.4 25.6 64v44.8c0 25.6 19.2 44.8 44.8 44.8 25.6 0 44.8-19.2 44.8-44.8V320c0-96-76.8-179.2-179.2-179.2H640c-25.6 0-44.8 19.2-44.8 44.8 0 25.6 19.2 44.8 44.8 44.8zM960 908.8L780.8 467.2c-6.4-6.4-12.8-12.8-19.2-12.8H704c-6.4 0-19.2 6.4-19.2 12.8L505.6 908.8V928c0 6.4 12.8 12.8 19.2 12.8h44.8c6.4 0 19.2-6.4 19.2-12.8l44.8-121.6h179.2L857.6 928c6.4 6.4 12.8 12.8 19.2 12.8h44.8c6.4 0 12.8-6.4 19.2-12.8 19.2-6.4 19.2-12.8 19.2-19.2zm-288-192L729.6 576l57.6 140.8H672zM505.6 473.6V204.8c0-12.8-12.8-19.2-19.2-19.2H332.8v-64c0-6.4 0-12.8-6.4-12.8S313.6 96 307.2 96h-44.8c-6.4 0-12.8 0-12.8 6.4s-6.4 12.8-6.4 12.8v64h-160c-6.4 0-12.8 0-12.8 6.4-6.4 12.8-6.4 12.8-6.4 19.2v268.8c0 6.4 0 12.8 6.4 12.8 6.4 6.4 12.8 6.4 12.8 6.4h153.6v108.8c0 12.8 12.8 19.2 19.2 19.2h44.8c12.8 0 19.2-12.8 19.2-19.2V492.8h153.6c25.6 0 32-6.4 32-19.2zm-262.4-64h-89.6V275.2h89.6v134.4zm179.2 0h-89.6V275.2h89.6v134.4z"/></symbol><symbol id="bkai-morenchicun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M896 128v64H511.52l128.402 159.872h-256L511.456 192H128v-64h768zM128 832h768v64H128zm383.491-.128L383.922 672h256l-128.43 159.872zm320.367-320.367l-159.872-127.57v256l159.872-128.43zm-639.872 0l159.872-127.57v256l-159.872-128.43z"/></symbol><symbol id="bkai-kuangxuan" viewBox="0 0 1024 1024"><path d="M252.066 832l.03 64h128l-.03-64h-128zM128 798.016V832c0 33.923 26.393 61.681 59.764 63.862l4.173-63.864.063-33.965-64-.017zm244.353-444.408l90.51 362.039 120.129-120.174 251.66 251.635 43.199-43.197-251.663-251.634 108.204-108.16-362.039-90.509zM128 606.016v128l64 .017v-128l-64-.017zm0-192v128l64 .017v-128l-64-.017zm704-184.115v128l64-.013v-128l-64 .013zm-704-7.885v128l64 .017v-128l-64-.017zM192 128c-23.688 0-44.37 12.87-55.437 31.998l55.398 32.048L256 192v-64h-64zm320 0v64h128v-64H512zm-192 0v64h128v-64H320zm384 0v64h128l58.677-25.595C880.802 143.799 858.246 128 832 128H704z"/></symbol><symbol id="bkai-jiantou" viewBox="0 0 1024 1097.143"><path fill-rule="evenodd" d="M832 612.37l-91.636-89.143-183.235 178.36-.038-594.36H434.909l.072 594.36-183.345-178.36L160 612.37l336 326.857L832 612.37z"/></symbol><symbol id="bkai-tingzhishengcheng" viewBox="0 0 1024 1097.143"><path fill-rule="evenodd" d="M512 75.264c247.424 0 448 200.576 448 448s-200.576 448-448 448-448-200.576-448-448 200.576-448 448-448zm0 64c-212.077 0-384 171.923-384 384s171.923 384 384 384 384-171.923 384-384-171.923-384-384-384zm0 132c139.162 0 252 112.838 252 252s-112.838 252-252 252-252-112.838-252-252 112.838-252 252-252zm76.368 150.177l-76.375 76.374-76.368-76.367-25.448 25.448 76.367 76.368-76.367 76.368 25.467 25.467 76.368-76.368 76.356 76.356 25.448-25.448-76.355-76.356 76.374-76.375-25.467-25.467z"/></symbol><symbol id="bkai-xiaojingyudian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M621.204 0c547.128 0 526.9 748.792 0 682.56C343.257 647.624 136.189 761.437 0 1024 49.384 341.333 256.452 0 621.204 0z"/></symbol></svg>';document.body?document.body.insertAdjacentHTML("afterbegin",n):document.addEventListener("DOMContentLoaded",function(){document.body.insertAdjacentHTML("afterbegin",n)})})(),qu.provideGlobalConfig({prefix:"bk"});class Zp{constructor(r,a,o){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=r,this.start=a,this.end=o}static range(r,a){return a?!r||!r.loc||!a.loc||r.loc.lexer!==a.loc.lexer?null:new Zp(r.loc.lexer,r.loc.start,a.loc.end):r&&r.loc}}class _3{constructor(r,a){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=r,this.loc=a}range(r,a){return new _3(a,Zp.range(this,r))}}class Rr{constructor(r,a){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var o="KaTeX parse error: "+r,u,d,h=a&&a.loc;if(h&&h.start<=h.end){var b=h.lexer.input;u=h.start,d=h.end,u===b.length?o+=" at end of input: ":o+=" at position "+(u+1)+": ";var v=b.slice(u,d).replace(/[^]/g,"$&̲"),y;u>15?y="…"+b.slice(u-15,u):y=b.slice(0,u);var A;d+15<b.length?A=b.slice(d,d+15)+"…":A=b.slice(d),o+=y+v+A}var k=new Error(o);return k.name="ParseError",k.__proto__=Rr.prototype,k.position=u,u!=null&&d!=null&&(k.length=d-u),k.rawMessage=r,k}}Rr.prototype.__proto__=Error.prototype;var U2n=function(r,a){return r.indexOf(a)!==-1},G2n=function(r,a){return r===void 0?a:r},q2n=/([A-Z])/g,Q2n=function(r){return r.replace(q2n,"-$1").toLowerCase()},$2n={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},Y2n=/[&><"']/g;function W2n(n){return String(n).replace(Y2n,r=>$2n[r])}var OUe=function n(r){return r.type==="ordgroup"||r.type==="color"?r.body.length===1?n(r.body[0]):r:r.type==="font"?n(r.body):r},K2n=function(r){var a=OUe(r);return a.type==="mathord"||a.type==="textord"||a.type==="atom"},X2n=function(r){if(!r)throw new Error("Expected non-null, but got "+String(r));return r},J2n=function(r){var a=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(r);return a?a[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(a[1])?null:a[1].toLowerCase():"_relative"},Ra={contains:U2n,deflt:G2n,escape:W2n,hyphenate:Q2n,getBaseElem:OUe,isCharacterBox:K2n,protocolFromUrl:J2n},UF={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:n=>"#"+n},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(n,r)=>(r.push(n),r)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:n=>Math.max(0,n),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:n=>Math.max(0,n),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:n=>Math.max(0,n),cli:"-e, --max-expand <n>",cliProcessor:n=>n==="Infinity"?1/0:parseInt(n)},globalGroup:{type:"boolean",cli:!1}};function Z2n(n){if(n.default)return n.default;var r=n.type,a=Array.isArray(r)?r[0]:r;if(typeof a!="string")return a.enum[0];switch(a){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class O1e{constructor(r){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,r=r||{};for(var a in UF)if(UF.hasOwnProperty(a)){var o=UF[a];this[a]=r[a]!==void 0?o.processor?o.processor(r[a]):r[a]:Z2n(o)}}reportNonstrict(r,a,o){var u=this.strict;if(typeof u=="function"&&(u=u(r,a,o)),!(!u||u==="ignore")){if(u===!0||u==="error")throw new Rr("LaTeX-incompatible input and strict mode is set to 'error': "+(a+" ["+r+"]"),o);u==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+a+" ["+r+"]"))}}useStrictBehavior(r,a,o){var u=this.strict;if(typeof u=="function")try{u=u(r,a,o)}catch{u="error"}return!u||u==="ignore"?!1:u===!0||u==="error"?!0:u==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(a+" ["+r+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+u+"': "+a+" ["+r+"]")),!1)}isTrusted(r){if(r.url&&!r.protocol){var a=Ra.protocolFromUrl(r.url);if(a==null)return!1;r.protocol=a}var o=typeof this.trust=="function"?this.trust(r):this.trust;return!!o}}class n7{constructor(r,a,o){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=r,this.size=a,this.cramped=o}sup(){return j5[egn[this.id]]}sub(){return j5[tgn[this.id]]}fracNum(){return j5[ngn[this.id]]}fracDen(){return j5[rgn[this.id]]}cramp(){return j5[ign[this.id]]}text(){return j5[agn[this.id]]}isTight(){return this.size>=2}}var F1e=0,jY=1,JM=2,k8=3,GF=4,L3=5,ZM=6,T2=7,j5=[new n7(F1e,0,!1),new n7(jY,0,!0),new n7(JM,1,!1),new n7(k8,1,!0),new n7(GF,2,!1),new n7(L3,2,!0),new n7(ZM,3,!1),new n7(T2,3,!0)],egn=[GF,L3,GF,L3,ZM,T2,ZM,T2],tgn=[L3,L3,L3,L3,T2,T2,T2,T2],ngn=[JM,k8,GF,L3,ZM,T2,ZM,T2],rgn=[k8,k8,L3,L3,T2,T2,T2,T2],ign=[jY,jY,k8,k8,L3,L3,T2,T2],agn=[F1e,jY,JM,k8,JM,k8,JM,k8],Va={DISPLAY:j5[F1e],TEXT:j5[JM],SCRIPT:j5[GF],SCRIPTSCRIPT:j5[ZM]},N1e=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function sgn(n){for(var r=0;r<N1e.length;r++)for(var a=N1e[r],o=0;o<a.blocks.length;o++){var u=a.blocks[o];if(n>=u[0]&&n<=u[1])return a.name}return null}var HY=[];N1e.forEach(n=>n.blocks.forEach(r=>HY.push(...r)));function FUe(n){for(var r=0;r<HY.length;r+=2)if(n>=HY[r]&&n<=HY[r+1])return!0;return!1}var e_=80,ogn=function(r,a){return"M95,"+(622+r+a)+`
293
293
  c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
294
294
  c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54