@oliasoft-open-source/react-ui-library 4.7.6 → 4.7.7

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 (138) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{index-CbZ_B_tn.js → index-DCeIsyRy.js} +1 -0
  3. package/dist/global.css +576 -576
  4. package/dist/index.html +1 -1
  5. package/dist/index.js +1259 -1165
  6. package/dist/index.js.map +1 -1
  7. package/dist/storybook/assets/Color-KGDBMAHA-B09ajdpG.js +1 -0
  8. package/dist/storybook/assets/DocsRenderer-PKQXORMH-B1FePHEE.js +1 -0
  9. package/dist/storybook/assets/{accordion-6ouB0WTt.js → accordion-BiuI_LCA.js} +1 -1
  10. package/dist/storybook/assets/{accordion.stories-YuQaNHcr.js → accordion.stories-wRr6K6oi.js} +2 -2
  11. package/dist/storybook/assets/{actions-CZK3mphC.js → actions-CHgr8eL8.js} +1 -1
  12. package/dist/storybook/assets/{actions.stories-FOK1cLb3.js → actions.stories-CCDxFKFk.js} +1 -1
  13. package/dist/storybook/assets/{afe.stories-CT81gs6M.js → afe.stories-80-X2oCf.js} +2 -2
  14. package/dist/storybook/assets/{badge.stories-D30jHm96.js → badge.stories-D5DA-vxC.js} +1 -1
  15. package/dist/storybook/assets/{blowout.stories-CJrNKpKP.js → blowout.stories-ES-Fuaqn.js} +1 -1
  16. package/dist/storybook/assets/{button-C1sV-0mR.js → button-VxhoNhrV.js} +1 -1
  17. package/dist/storybook/assets/{button-group-Ai4DXqNr.js → button-group-CwJdFo2z.js} +1 -1
  18. package/dist/storybook/assets/{button-group.stories-incmyYJ-.js → button-group.stories-DU5k5qCY.js} +1 -1
  19. package/dist/storybook/assets/{button.stories-Bcy7mnLs.js → button.stories-DVtec2Eo.js} +2 -2
  20. package/dist/storybook/assets/{buttons-and-links-CtOaPZlv.js → buttons-and-links-DrDYbdOk.js} +2 -2
  21. package/dist/storybook/assets/{card.stories-Bn6LpucB.js → card.stories-CsTB0DuM.js} +1 -1
  22. package/dist/storybook/assets/{casing-loads.stories-DQy8gjj6.js → casing-loads.stories-BXcv0FiI.js} +2 -2
  23. package/dist/storybook/assets/{cell.stories-ChfAWqCt.js → cell.stories-MhANINNu.js} +2 -2
  24. package/dist/storybook/assets/{check-box-CaSrhzev.js → check-box-BtCGePRy.js} +1 -1
  25. package/dist/storybook/assets/{check-box.stories-BAH78tMZ.js → check-box.stories-C_7Z7Ss6.js} +1 -1
  26. package/dist/storybook/assets/{chunk-HLWAVYOI-CkQdzq8g.js → chunk-HLWAVYOI-3IbBqp3W.js} +1 -1
  27. package/dist/storybook/assets/color-DqVXeBjc.js +25 -0
  28. package/dist/storybook/assets/{column.stories-JMvj3_fr.js → column.stories-BxfR9Tla.js} +1 -1
  29. package/dist/storybook/assets/{dialog-vClt2ahZ.js → dialog-Di8hNunM.js} +1 -1
  30. package/dist/storybook/assets/{drawer-DSS8yvvp.js → drawer-BhuWxI7V.js} +1 -1
  31. package/dist/storybook/assets/drawer.stories-B-PsNJJ6.js +113 -0
  32. package/dist/storybook/assets/{empty.stories-G8jeIfLL.js → empty.stories-BVYXwvpa.js} +1 -1
  33. package/dist/storybook/assets/{field-C5_fLDpy.js → field-HrLaMLbx.js} +1 -1
  34. package/dist/storybook/assets/{field.stories-D5Mej0Bt.js → field.stories-B9p9nBgY.js} +1 -1
  35. package/dist/storybook/assets/{file-button.stories-DePr8MKB.js → file-button.stories-FOaiNPt-.js} +1 -1
  36. package/dist/storybook/assets/{file-input-BZecnRBy.js → file-input-BpMtsZ2S.js} +1 -1
  37. package/dist/storybook/assets/{file-input.stories-Br89AkVv.js → file-input.stories-Jrdw5k-s.js} +1 -1
  38. package/dist/storybook/assets/{flex.stories-sSdg0ChR.js → flex.stories-BEXf0VqI.js} +1 -1
  39. package/dist/storybook/assets/footer.stories-CGHFDUfT.js +3 -0
  40. package/dist/storybook/assets/form.stories-C1Qx3M_1.js +49 -0
  41. package/dist/storybook/assets/formation.stories-BEowxQZ-.js +74 -0
  42. package/dist/storybook/assets/{heading-NkLgQYoP.js → heading-CRNoBc7q.js} +1 -1
  43. package/dist/storybook/assets/{heading.stories-nI_cFnAN.js → heading.stories-DahFxeiX.js} +1 -1
  44. package/dist/storybook/assets/{help-icon-41R-Z9N1.js → help-icon-Buhx5nl6.js} +1 -1
  45. package/dist/storybook/assets/{help-icon.stories-DBYh0YX7.js → help-icon.stories-DbmZ1fgP.js} +1 -1
  46. package/dist/storybook/assets/icon-BSFY3vDO.js +8 -0
  47. package/dist/storybook/assets/{icon.stories-B-tKaIKA.js → icon.stories-C1hZXIMX.js} +1 -1
  48. package/dist/storybook/assets/iframe-0oHxQxyh.js +2 -0
  49. package/dist/storybook/assets/{index-Be0hXiyp.js → index-DMAnyMX5.js} +1 -1
  50. package/dist/storybook/assets/{index-Cf2IDQZ4.js → index-Dx_aqqZM.js} +8 -8
  51. package/dist/storybook/assets/index-iPmJVpyV.js +1 -0
  52. package/dist/storybook/assets/{index.es-D2piFfFj.js → index.es-DazXb-ul.js} +4 -4
  53. package/dist/storybook/assets/inheritsLoose-DP0QEDDI.js +1 -0
  54. package/dist/storybook/assets/{input-group.stories-BmeUtBOK.js → input-group.stories-44quIZTV.js} +2 -2
  55. package/dist/storybook/assets/{input-validation-U3o9_8IY.js → input-validation-CregAhZZ.js} +2 -2
  56. package/dist/storybook/assets/{inputs-gP7hGRtM.js → inputs-DZn0C_9Y.js} +2 -2
  57. package/dist/storybook/assets/{label-hiSz3I8H.js → label-CqmyC9he.js} +1 -1
  58. package/dist/storybook/assets/{label.stories-Cyv5jBAO.js → label.stories-C0AO5F1a.js} +1 -1
  59. package/dist/storybook/assets/layout-forms-zjNDNCOQ.js +16 -0
  60. package/dist/storybook/assets/{layout-general-Bw291PmI.js → layout-general-_85zGG_p.js} +2 -2
  61. package/dist/storybook/assets/{list-DYNKqvUR.js → list-yVTOdmpX.js} +1 -1
  62. package/dist/storybook/assets/{list.stories-BX67BegD.js → list.stories-ChqQXY5M.js} +2 -2
  63. package/dist/storybook/assets/{list.stories-data-D_ZfzaxE.js → list.stories-data-Iq66w9oH.js} +1 -1
  64. package/dist/storybook/assets/{loader.stories-DjrwwZ15.js → loader.stories-DM7ZJBgz.js} +1 -1
  65. package/dist/storybook/assets/{menu.stories-QTzp0Z7C.js → menu.stories-mt3LwVCk.js} +2 -2
  66. package/dist/storybook/assets/{message-B7G1ESkC.js → message-BYzRg8Ae.js} +1 -1
  67. package/dist/storybook/assets/{message.stories-Czui5Ym7.js → message.stories-K3bQ-5bJ.js} +1 -1
  68. package/dist/storybook/assets/{meta-content-BE7pulye.js → meta-content-cbHGvPJ7.js} +1 -1
  69. package/dist/storybook/assets/{modal.stories-DAxDpo0A.js → modal.stories-Cct1SMOP.js} +2 -2
  70. package/dist/storybook/assets/number-input.stories-C2QTTzzN.js +110 -0
  71. package/dist/storybook/assets/{option-dropdown.stories-ByLG631x.js → option-dropdown.stories-CoLsSS95.js} +1 -1
  72. package/dist/storybook/assets/{padding-and-spacing-DLeCWmND.js → padding-and-spacing-CPgb4ZMT.js} +2 -2
  73. package/dist/storybook/assets/{page.stories-br9ia4zp.js → page.stories-Cse3cMsO.js} +1 -1
  74. package/dist/storybook/assets/{pagination-BtguPxeR.js → pagination-iSMIbR33.js} +1 -1
  75. package/dist/storybook/assets/{pagination.stories-CgG4wp8P.js → pagination.stories-BUPaZD5R.js} +2 -2
  76. package/dist/storybook/assets/{pop-confirm.stories-CZpYmUBz.js → pop-confirm.stories-Dhid1FK8.js} +1 -1
  77. package/dist/storybook/assets/{popover-DgUpTRMk.js → popover-CzZdWNnB.js} +1 -1
  78. package/dist/storybook/assets/popover.stories-Duemqiqp.js +10 -0
  79. package/dist/storybook/assets/{preview-Dml2wSQG.js → preview-Bay6IiqP.js} +2 -2
  80. package/dist/storybook/assets/preview-DrVrew0c.js +2 -0
  81. package/dist/storybook/assets/projects.stories-DU-QlBa6.js +47 -0
  82. package/dist/storybook/assets/{radio-button-C_cV5TWA.js → radio-button-YBwYcMaM.js} +1 -1
  83. package/dist/storybook/assets/{radio-button.stories-BNE-U9db.js → radio-button.stories-CGJnfCk-.js} +1 -1
  84. package/dist/storybook/assets/react-router-dom-Ck2Y_Fzc.js +8 -0
  85. package/dist/storybook/assets/{reservoirs.stories-ux3hZbkX.js → reservoirs.stories-aSZ9r1Pu.js} +2 -2
  86. package/dist/storybook/assets/{rich-text-input.stories-savcIJ5B.js → rich-text-input.stories-CsFyrKRA.js} +3 -3
  87. package/dist/storybook/assets/{row.stories-CG6Eipay.js → row.stories-DL2h5FzP.js} +2 -2
  88. package/dist/storybook/assets/{select-Z-GCZ-pY.js → select-C8iu4-uz.js} +2 -2
  89. package/dist/storybook/assets/{select.stories-CX_B6BvR.js → select.stories-BZFdXGPs.js} +2 -2
  90. package/dist/storybook/assets/{side-bar-ChOjPNLR.js → side-bar-CKbHPgIV.js} +1 -1
  91. package/dist/storybook/assets/{side-bar.stories-BupidZk5.js → side-bar.stories-MUj_dj1F.js} +1 -1
  92. package/dist/storybook/assets/{site.stories-C1GnbK5P.js → site.stories-Ci4g5W2A.js} +2 -2
  93. package/dist/storybook/assets/{slider-gZmYlxxz.js → slider-DAramr8j.js} +4 -4
  94. package/dist/storybook/assets/{slider.stories-CY4GxD4Y.js → slider.stories-Cd0rLfHP.js} +2 -2
  95. package/dist/storybook/assets/{smart-upload-modal.stories-BrsVuS4a.js → smart-upload-modal.stories-BmrhOtOG.js} +1 -1
  96. package/dist/storybook/assets/{spacer.stories-D7Q45uBk.js → spacer.stories-CHEZdgDM.js} +1 -1
  97. package/dist/storybook/assets/{table-CaaSoHex.js → table-BNMxYhsu.js} +1 -1
  98. package/dist/storybook/assets/{table.stories-BiBivAvh.js → table.stories-YV04PKkU.js} +2 -2
  99. package/dist/storybook/assets/{table.stories-data-DwfKQW7P.js → table.stories-data-CR9VpXHs.js} +1 -1
  100. package/dist/storybook/assets/text-link.stories-BQAkVO-W.js +14 -0
  101. package/dist/storybook/assets/{title.stories-CfdJbgvT.js → title.stories-CuiMnOil.js} +2 -2
  102. package/dist/storybook/assets/{toaster-DJeREs3e.js → toaster-BNO0suPv.js} +1 -1
  103. package/dist/storybook/assets/{toaster.stories-QjvljKdT.js → toaster.stories-zcWIPp_X.js} +1 -1
  104. package/dist/storybook/assets/{toggle-Bo-JPbUP.js → toggle-CBpNgTrm.js} +1 -1
  105. package/dist/storybook/assets/{toggle.stories-BYrikgrA.js → toggle.stories-mjk0JIle.js} +1 -1
  106. package/dist/storybook/assets/{tooltip.test-case.stories-C74mKGrI.js → tooltip.test-case.stories-i9YQqba1.js} +1 -1
  107. package/dist/storybook/assets/{top-bar-DG4ok0uF.js → top-bar-C_tn2Pc5.js} +1 -1
  108. package/dist/storybook/assets/top-bar.stories-B2a-RgK-.js +21 -0
  109. package/dist/storybook/assets/{top-bar.testcase.stories-DzsYUZIx.js → top-bar.testcase.stories-DoPEAMYc.js} +1 -1
  110. package/dist/storybook/assets/{tree.stories-RtuZpYXn.js → tree.stories-6UHASEZu.js} +1 -1
  111. package/dist/storybook/assets/unit-input.stories-B3VwXCO8.js +295 -0
  112. package/dist/storybook/assets/unit-table.stories-DQrTQd6a.js +152 -0
  113. package/dist/storybook/iframe.html +1 -1
  114. package/dist/storybook/index.json +1 -1
  115. package/dist/storybook/project.json +1 -1
  116. package/package.json +1 -1
  117. package/dist/storybook/assets/Color-KGDBMAHA-C0EpwEFf.js +0 -1
  118. package/dist/storybook/assets/DocsRenderer-PKQXORMH-CWe5JIRI.js +0 -1
  119. package/dist/storybook/assets/color-eaylxLAo.js +0 -25
  120. package/dist/storybook/assets/drawer.stories-D6FBs1_r.js +0 -113
  121. package/dist/storybook/assets/extends-CF3RwP-h.js +0 -1
  122. package/dist/storybook/assets/footer.stories-BM5UBN62.js +0 -3
  123. package/dist/storybook/assets/form.stories-CYcggA-f.js +0 -49
  124. package/dist/storybook/assets/formation.stories-NDB_Sbor.js +0 -74
  125. package/dist/storybook/assets/icon-BP4BO6-k.js +0 -8
  126. package/dist/storybook/assets/iframe-WLuE3PcW.js +0 -2
  127. package/dist/storybook/assets/index-CXmS_Aty.js +0 -1
  128. package/dist/storybook/assets/inheritsLoose-DR8r8Ogv.js +0 -1
  129. package/dist/storybook/assets/layout-forms-r2wYyx-8.js +0 -16
  130. package/dist/storybook/assets/number-input.stories-CFTNLnHw.js +0 -105
  131. package/dist/storybook/assets/popover.stories-CtaFGXR_.js +0 -10
  132. package/dist/storybook/assets/preview-BjyexbB3.js +0 -2
  133. package/dist/storybook/assets/projects.stories-BSAMs8RG.js +0 -47
  134. package/dist/storybook/assets/react-router-dom-CMITYWBH.js +0 -8
  135. package/dist/storybook/assets/text-link.stories-BsuVBOWo.js +0 -14
  136. package/dist/storybook/assets/top-bar.stories-BI4a_ekv.js +0 -21
  137. package/dist/storybook/assets/unit-input.stories-BSWm9641.js +0 -290
  138. package/dist/storybook/assets/unit-table.stories-CgF-UOP3.js +0 -150
@@ -1,4 +1,4 @@
1
- import{j as _}from"./jsx-runtime-eps93zm2.js";import{r as m,R as V,g as Fu}from"./index-DhsZuJvc.js";import{_ as w,a as k,b as wa,c as ee,d as le,I as ju,T as Bu,e as ku}from"./icon-BP4BO6-k.js";import{e as Hu}from"./index-DRSy5Ssd.js";import{c as si}from"./index-Bk2sglWO.js";import{C as zu,I as Vr}from"./common-types-Sih75Sav.js";import{l as ie,M as Uu,L as qu}from"./meta-content-BE7pulye.js";import{A as Wu}from"./actions-CZK3mphC.js";import{B as Ea}from"./button-C1sV-0mR.js";import{c as $u}from"./redux-tRgGMjwY.js";import{T as Gu}from"./text-B3-TSWok.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DR8r8Ogv.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./heading-NkLgQYoP.js";import"./help-icon-41R-Z9N1.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./badge-CLQ59MDF.js";import"./lodash-BHd_uQHh.js";import"./types-BmbYqTX_.js";import"./types-UmZ4Y_CR.js";import"./spinner-AWUe4xwQ.js";import"./objectSpread2-DW4nTBoq.js";const Ca=m.createContext({dragDropManager:void 0});function M(e,t,...r){if(Yu()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function Yu(){return typeof process<"u"&&!0}function Xu(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Ku(e,t){return e.filter(r=>r!==t)}function Oa(e){return typeof e=="object"}function Zu(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function Ju(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Mn="dnd-core/INIT_COORDS",br="dnd-core/BEGIN_DRAG",An="dnd-core/PUBLISH_DRAG_SOURCE",Tr="dnd-core/HOVER",Sr="dnd-core/DROP",Dr="dnd-core/END_DRAG";function ui(e,t){return{type:Mn,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Qu={type:Mn,payload:{clientOffset:null,sourceClientOffset:null}};function el(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(ui(o)),tl(r,s,u);const l=il(r,s);if(l==null){e.dispatch(Qu);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");rl(a),c=a(l)}e.dispatch(ui(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;nl(h),u.pinSource(l);const f=u.getSourceType(l);return{type:br,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function tl(e,t,r){M(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){M(r.getSource(n),"Expected sourceIds to be registered.")})}function rl(e){M(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function nl(e){M(Oa(e),"Item must be an object.")}function il(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ol(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){ol(e,i,r[i])})}return e}function sl(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();ul(n),dl(n).forEach((a,s)=>{const u=ll(a,s,i,n),l={type:Sr,payload:{dropResult:al({},r,u)}};e.dispatch(l)})}}function ul(e){M(e.isDragging(),"Cannot call drop while not dragging."),M(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function ll(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return cl(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function cl(e){M(typeof e>"u"||Oa(e),"Drop result must either be an object or undefined.")}function dl(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function fl(e){return function(){const r=e.getMonitor(),n=e.getRegistry();hl(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Dr}}}function hl(e){M(e.isDragging(),"Cannot call endDrag while not dragging.")}function nn(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function pl(e){return function(r,{clientOffset:n}={}){vl(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return ml(i,a,s),gl(i,o,a),yl(i,o,a),{type:Tr,payload:{targetIds:i,clientOffset:n||null}}}}function vl(e){M(Array.isArray(e),"Expected targetIds to be an array.")}function gl(e,t,r){M(t.isDragging(),"Cannot call hover while not dragging."),M(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];M(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);M(o,"Expected targetIds to be registered.")}}function ml(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);nn(o,r)||e.splice(n,1)}}function yl(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function bl(e){return function(){if(e.getMonitor().isDragging())return{type:An}}}function Tl(e){return{beginDrag:el(e),publishDragSource:bl(e),hover:pl(e),drop:sl(e),endDrag:fl(e)}}class Sl{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=Tl(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function Dl(e,t){return{x:e.x+t.x,y:e.y+t.y}}function xa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:xa(Dl(t,n),r)}function El(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:xa(t,r)}const gt=[],Ln=[];gt.__IS_NONE__=!0;Ln.__IS_ALL__=!0;function Cl(e,t){return e===gt?!1:e===Ln||typeof t>"u"?!0:Ju(t,e).length>0}class Ol{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;M(typeof t=="function","listener must be a function."),M(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!Cl(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){M(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return M(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(M(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return nn(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(M(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!nn(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return wl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return El(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const li=typeof global<"u"?global:self,Ia=li.MutationObserver||li.WebKitMutationObserver;function Pa(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function xl(e){let t=1;const r=new Ia(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Il=typeof Ia=="function"?xl:Pa;class Pl{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Il(this.flush),this.requestErrorThrow=Pa(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Rl{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Ml{create(t){const r=this.freeTasks,n=r.length?r.pop():new Rl(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Ra=new Pl,Al=new Ml(Ra.registerPendingError);function Ll(e){Ra.enqueueTask(Al.create(e))}const Nn="dnd-core/ADD_SOURCE",Vn="dnd-core/ADD_TARGET",_n="dnd-core/REMOVE_SOURCE",wr="dnd-core/REMOVE_TARGET";function Nl(e){return{type:Nn,payload:{sourceId:e}}}function Vl(e){return{type:Vn,payload:{targetId:e}}}function _l(e){return{type:_n,payload:{sourceId:e}}}function Fl(e){return{type:wr,payload:{targetId:e}}}function jl(e){M(typeof e.canDrag=="function","Expected canDrag to be a function."),M(typeof e.beginDrag=="function","Expected beginDrag to be a function."),M(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Bl(e){M(typeof e.canDrop=="function","Expected canDrop to be a function."),M(typeof e.hover=="function","Expected hover to be a function."),M(typeof e.drop=="function","Expected beginDrag to be a function.")}function on(e,t){if(t&&Array.isArray(e)){e.forEach(r=>on(r,!1));return}M(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var J;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(J||(J={}));let kl=0;function Hl(){return kl++}function zl(e){const t=Hl().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ci(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function di(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class Ul{addSource(t,r){on(t),jl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Nl(n)),n}addTarget(t,r){on(t,!0),Bl(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Vl(n)),n}containsHandler(t){return di(this.dragSources,t)||di(this.dropTargets,t)}getSource(t,r=!1){return M(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return M(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return ci(t)===J.SOURCE}isTargetId(t){return ci(t)===J.TARGET}removeSource(t){M(this.getSource(t),"Expected an existing source."),this.store.dispatch(_l(t)),Ll(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){M(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Fl(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);M(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){M(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=zl(t);return this.types.set(i,r),t===J.SOURCE?this.dragSources.set(i,n):t===J.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const ql=(e,t)=>e===t;function Wl(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function $l(e,t,r=ql){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Gl(e=gt,t){switch(t.type){case Tr:break;case Nn:case Vn:case wr:case _n:return gt;case br:case An:case Dr:case Sr:default:return Ln}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=Zu(r,n);if(!(i.length>0||!$l(r,n)))return gt;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function Yl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Yl(e,i,r[i])})}return e}const fi={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Kl(e=fi,t){const{payload:r}=t;switch(t.type){case Mn:case br:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Tr:return Wl(e.clientOffset,r.clientOffset)?e:Xl({},e,{clientOffset:r.clientOffset});case Dr:case Sr:return fi;default:return e}}function Zl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Zl(e,i,r[i])})}return e}const Jl={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ql(e=Jl,t){const{payload:r}=t;switch(t.type){case br:return Be({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case An:return Be({},e,{isSourcePublic:!0});case Tr:return Be({},e,{targetIds:r.targetIds});case wr:return e.targetIds.indexOf(r.targetId)===-1?e:Be({},e,{targetIds:Ku(e.targetIds,r.targetId)});case Sr:return Be({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Dr:return Be({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ec(e=0,t){switch(t.type){case Nn:case Vn:return e+1;case _n:case wr:return e-1;default:return e}}function tc(e=0){return e+1}function rc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){rc(e,i,r[i])})}return e}function ic(e={},t){return{dirtyHandlerIds:Gl(e.dirtyHandlerIds,{type:t.type,payload:nc({},t.payload,{prevTargetIds:Xu(e,"dragOperation.targetIds",[])})}),dragOffset:Kl(e.dragOffset,t),refCount:ec(e.refCount,t),dragOperation:Ql(e.dragOperation,t),stateId:tc(e.stateId)}}function oc(e,t=void 0,r={},n=!1){const i=ac(n),o=new Ol(i,new Ul(i)),a=new Sl(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function ac(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return $u(ic,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function sc(e,t){if(e==null)return{};var r=uc(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uc(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let hi=0;const nr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var lc=m.memo(function(t){var{children:r}=t,n=sc(t,["children"]);const[i,o]=cc(n);return m.useEffect(()=>{if(o){const a=Ma();return++hi,()=>{--hi===0&&(a[nr]=null)}}},[]),_.jsx(Ca.Provider,{value:i,children:r})});function cc(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=dc(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function dc(e,t=Ma(),r,n){const i=t;return i[nr]||(i[nr]={dragDropManager:oc(e,t,r,n)}),i[nr]}function Ma(){return typeof global<"u"?global:window}const Ve=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Aa(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);Hu(n,a)||(i(a),r&&r())},[n,e,r]);return Ve(o),[n,o]}function fc(e,t,r){const[n,i]=Aa(e,t,r);return Ve(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function La(e,t,r){return fc(t,e||(()=>({})),()=>r.reconnect())}function Na(e,t){const r=[];return typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function hc(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function pc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let _r=!1,Fr=!1;class vc{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){M(!_r,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return _r=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{_r=!1}}isDragging(){if(!this.sourceId)return!1;M(!Fr,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Fr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Fr=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let jr=!1;class gc{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;M(!jr,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return jr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{jr=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function mc(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function yc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function an(e,t,r,n){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<o.length;u++){const l=o[u];if(!s(l))return!1;const c=e[l],d=t[l];if(i=void 0,i===!1||i===void 0&&c!==d)return!1}return!0}function sn(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bc(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function Tc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return bc(n),Sc(n,r?o=>e(o,r):e)}}function Va(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=Tc(n);t[r]=()=>i}}),t}function pi(e,t){typeof e=="function"?e(t):e.current=t}function Sc(e,t){const r=e.ref;return M(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?m.cloneElement(e,{ref:n=>{pi(r,n),pi(t,n)}}):m.cloneElement(e,{ref:t})}class Dc{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!an(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!an(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Va({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,sn(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,sn(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wc{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!an(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Va({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,sn(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function me(){const{dragDropManager:e}=m.useContext(Ca);return M(e!=null,"Expected drag drop context"),e}function Ec(e,t){const r=me(),n=m.useMemo(()=>new Dc(r.getBackend()),[r]);return Ve(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Ve(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function Cc(){const e=me();return m.useMemo(()=>new vc(e),[e])}class Oc{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function xc(e,t,r){const n=m.useMemo(()=>new Oc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function Ic(e){return m.useMemo(()=>{const t=e.type;return M(t!=null,"spec.type must be defined"),t},[e])}function Pc(e,t,r){const n=me(),i=xc(e,t,r),o=Ic(e);Ve(function(){if(o!=null){const[s,u]=yc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function Rc(e,t){const r=Na(e);M(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=Cc(),i=Ec(r.options,r.previewOptions);return Pc(r,n,i),[La(r.collect,n,i),hc(i),pc(i)]}function Mc(e){const r=me().getMonitor(),[n,i]=Aa(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function Ac(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Lc(e){const t=me(),r=m.useMemo(()=>new wc(t.getBackend()),[t]);return Ve(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Nc(){const e=me();return m.useMemo(()=>new gc(e),[e])}function Vc(e){const{accept:t}=e;return m.useMemo(()=>(M(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class _c{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function Fc(e,t){const r=m.useMemo(()=>new _c(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function jc(e,t,r){const n=me(),i=Fc(e,t),o=Vc(e);Ve(function(){const[s,u]=mc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function _a(e,t){const r=Na(e),n=Nc(),i=Lc(r.options);return jc(r,n,i),[La(r.collect,n,i),Ac(i)]}function Fa(e){let t=null;return()=>(t==null&&(t=e()),t)}function Bc(e,t){return e.filter(r=>r!==t)}function kc(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class Hc{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=kc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=Bc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class zc{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const ja="__NATIVE_FILE__",Ba="__NATIVE_URL__",ka="__NATIVE_TEXT__",Ha="__NATIVE_HTML__",vi=Object.freeze(Object.defineProperty({__proto__:null,FILE:ja,HTML:Ha,TEXT:ka,URL:Ba},Symbol.toStringTag,{value:"Module"}));function Br(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const un={[ja]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Ha]:{exposeProperties:{html:(e,t)=>Br(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ba]:{exposeProperties:{urls:(e,t)=>Br(e,t,"").split(`
1
+ import{j as _}from"./jsx-runtime-eps93zm2.js";import{r as m,R as V,g as Fu}from"./index-DhsZuJvc.js";import{_ as w,a as k,b as wa,c as ee,d as le,I as ju,T as Bu,e as ku}from"./icon-BSFY3vDO.js";import{e as Hu}from"./index-DRSy5Ssd.js";import{c as si}from"./index-Bk2sglWO.js";import{C as zu,I as Vr}from"./common-types-Sih75Sav.js";import{l as ie,M as Uu,L as qu}from"./meta-content-cbHGvPJ7.js";import{A as Wu}from"./actions-CHgr8eL8.js";import{B as Ea}from"./button-VxhoNhrV.js";import{c as $u}from"./redux-tRgGMjwY.js";import{T as Gu}from"./text-B3-TSWok.js";import"./objectWithoutPropertiesLoose-CAYKN5F1.js";import"./inheritsLoose-DP0QEDDI.js";import"./index-CEuq6vkz.js";import"./disabled-context-rmpd7YJS.js";import"./heading-CRNoBc7q.js";import"./help-icon-Buhx5nl6.js";import"./tooltip-1V7clEnw.js";import"./index-CUZDtIZe.js";import"./badge-CLQ59MDF.js";import"./lodash-BHd_uQHh.js";import"./types-BmbYqTX_.js";import"./types-UmZ4Y_CR.js";import"./spinner-AWUe4xwQ.js";import"./objectSpread2-DW4nTBoq.js";const Ca=m.createContext({dragDropManager:void 0});function M(e,t,...r){if(Yu()&&t===void 0)throw new Error("invariant requires an error message argument");if(!e){let n;if(t===void 0)n=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{let i=0;n=new Error(t.replace(/%s/g,function(){return r[i++]})),n.name="Invariant Violation"}throw n.framesToPop=1,n}}function Yu(){return typeof process<"u"&&!0}function Xu(e,t,r){return t.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,e)}function Ku(e,t){return e.filter(r=>r!==t)}function Oa(e){return typeof e=="object"}function Zu(e,t){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};e.forEach(n),t.forEach(n);const i=[];return r.forEach((o,a)=>{o===1&&i.push(a)}),i}function Ju(e,t){return e.filter(r=>t.indexOf(r)>-1)}const Mn="dnd-core/INIT_COORDS",br="dnd-core/BEGIN_DRAG",An="dnd-core/PUBLISH_DRAG_SOURCE",Tr="dnd-core/HOVER",Sr="dnd-core/DROP",Dr="dnd-core/END_DRAG";function ui(e,t){return{type:Mn,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}const Qu={type:Mn,payload:{clientOffset:null,sourceClientOffset:null}};function el(e){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:a}=n,s=e.getMonitor(),u=e.getRegistry();e.dispatch(ui(o)),tl(r,s,u);const l=il(r,s);if(l==null){e.dispatch(Qu);return}let c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");rl(a),c=a(l)}e.dispatch(ui(o,c));const h=u.getSource(l).beginDrag(s,l);if(h==null)return;nl(h),u.pinSource(l);const f=u.getSourceType(l);return{type:br,payload:{itemType:f,item:h,sourceId:l,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}}function tl(e,t,r){M(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){M(r.getSource(n),"Expected sourceIds to be registered.")})}function rl(e){M(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function nl(e){M(Oa(e),"Item must be an object.")}function il(e,t){let r=null;for(let n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ol(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){ol(e,i,r[i])})}return e}function sl(e){return function(r={}){const n=e.getMonitor(),i=e.getRegistry();ul(n),dl(n).forEach((a,s)=>{const u=ll(a,s,i,n),l={type:Sr,payload:{dropResult:al({},r,u)}};e.dispatch(l)})}}function ul(e){M(e.isDragging(),"Cannot call drop while not dragging."),M(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function ll(e,t,r,n){const i=r.getTarget(e);let o=i?i.drop(n,e):void 0;return cl(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function cl(e){M(typeof e>"u"||Oa(e),"Drop result must either be an object or undefined.")}function dl(e){const t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function fl(e){return function(){const r=e.getMonitor(),n=e.getRegistry();hl(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:Dr}}}function hl(e){M(e.isDragging(),"Cannot call endDrag while not dragging.")}function nn(e,t){return t===null?e===null:Array.isArray(e)?e.some(r=>r===t):e===t}function pl(e){return function(r,{clientOffset:n}={}){vl(r);const i=r.slice(0),o=e.getMonitor(),a=e.getRegistry(),s=o.getItemType();return ml(i,a,s),gl(i,o,a),yl(i,o,a),{type:Tr,payload:{targetIds:i,clientOffset:n||null}}}}function vl(e){M(Array.isArray(e),"Expected targetIds to be an array.")}function gl(e,t,r){M(t.isDragging(),"Cannot call hover while not dragging."),M(!t.didDrop(),"Cannot call hover after drop.");for(let n=0;n<e.length;n++){const i=e[n];M(e.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);M(o,"Expected targetIds to be registered.")}}function ml(e,t,r){for(let n=e.length-1;n>=0;n--){const i=e[n],o=t.getTargetType(i);nn(o,r)||e.splice(n,1)}}function yl(e,t,r){e.forEach(function(n){r.getTarget(n).hover(t,n)})}function bl(e){return function(){if(e.getMonitor().isDragging())return{type:An}}}function Tl(e){return{beginDrag:el(e),publishDragSource:bl(e),hover:pl(e),drop:sl(e),endDrag:fl(e)}}class Sl{receiveBackend(t){this.backend=t}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const t=this,{dispatch:r}=this.store;function n(o){return(...a)=>{const s=o.apply(t,a);typeof s<"u"&&r(s)}}const i=Tl(this);return Object.keys(i).reduce((o,a)=>{const s=i[a];return o[a]=n(s),o},{})}dispatch(t){this.store.dispatch(t)}constructor(t,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=t,this.monitor=r,t.subscribe(this.handleRefCountChange)}}function Dl(e,t){return{x:e.x+t.x,y:e.y+t.y}}function xa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function wl(e){const{clientOffset:t,initialClientOffset:r,initialSourceClientOffset:n}=e;return!t||!r||!n?null:xa(Dl(t,n),r)}function El(e){const{clientOffset:t,initialClientOffset:r}=e;return!t||!r?null:xa(t,r)}const gt=[],Ln=[];gt.__IS_NONE__=!0;Ln.__IS_ALL__=!0;function Cl(e,t){return e===gt?!1:e===Ln||typeof t>"u"?!0:Ju(t,e).length>0}class Ol{subscribeToStateChange(t,r={}){const{handlerIds:n}=r;M(typeof t=="function","listener must be a function."),M(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const a=this.store.getState(),s=a.stateId;try{s===i||s===i+1&&!Cl(a.dirtyHandlerIds,n)||t()}finally{i=s}};return this.store.subscribe(o)}subscribeToOffsetChange(t){M(typeof t=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,t())};return this.store.subscribe(n)}canDragSource(t){if(!t)return!1;const r=this.registry.getSource(t);return M(r,`Expected to find a valid source. sourceId=${t}`),this.isDragging()?!1:r.canDrag(this,t)}canDropOnTarget(t){if(!t)return!1;const r=this.registry.getTarget(t);if(M(r,`Expected to find a valid target. targetId=${t}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(t),i=this.getItemType();return nn(n,i)&&r.canDrop(this,t)}isDragging(){return!!this.getItemType()}isDraggingSource(t){if(!t)return!1;const r=this.registry.getSource(t,!0);if(M(r,`Expected to find a valid source. sourceId=${t}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(t),i=this.getItemType();return n!==i?!1:r.isDragging(this,t)}isOverTarget(t,r={shallow:!1}){if(!t)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(t),o=this.getItemType();if(o&&!nn(i,o))return!1;const a=this.getTargetIds();if(!a.length)return!1;const s=a.indexOf(t);return n?s===a.length-1:s>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return wl(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return El(this.store.getState().dragOffset)}constructor(t,r){this.store=t,this.registry=r}}const li=typeof global<"u"?global:self,Ia=li.MutationObserver||li.WebKitMutationObserver;function Pa(e){return function(){const r=setTimeout(i,0),n=setInterval(i,50);function i(){clearTimeout(r),clearInterval(n),e()}}}function xl(e){let t=1;const r=new Ia(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Il=typeof Ia=="function"?xl:Pa;class Pl{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,i=t.length-this.index;n<i;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Il(this.flush),this.requestErrorThrow=Pa(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Rl{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Ml{create(t){const r=this.freeTasks,n=r.length?r.pop():new Rl(this.onError,i=>r[r.length]=i);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Ra=new Pl,Al=new Ml(Ra.registerPendingError);function Ll(e){Ra.enqueueTask(Al.create(e))}const Nn="dnd-core/ADD_SOURCE",Vn="dnd-core/ADD_TARGET",_n="dnd-core/REMOVE_SOURCE",wr="dnd-core/REMOVE_TARGET";function Nl(e){return{type:Nn,payload:{sourceId:e}}}function Vl(e){return{type:Vn,payload:{targetId:e}}}function _l(e){return{type:_n,payload:{sourceId:e}}}function Fl(e){return{type:wr,payload:{targetId:e}}}function jl(e){M(typeof e.canDrag=="function","Expected canDrag to be a function."),M(typeof e.beginDrag=="function","Expected beginDrag to be a function."),M(typeof e.endDrag=="function","Expected endDrag to be a function.")}function Bl(e){M(typeof e.canDrop=="function","Expected canDrop to be a function."),M(typeof e.hover=="function","Expected hover to be a function."),M(typeof e.drop=="function","Expected beginDrag to be a function.")}function on(e,t){if(t&&Array.isArray(e)){e.forEach(r=>on(r,!1));return}M(typeof e=="string"||typeof e=="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var J;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(J||(J={}));let kl=0;function Hl(){return kl++}function zl(e){const t=Hl().toString();switch(e){case J.SOURCE:return`S${t}`;case J.TARGET:return`T${t}`;default:throw new Error(`Unknown Handler Role: ${e}`)}}function ci(e){switch(e[0]){case"S":return J.SOURCE;case"T":return J.TARGET;default:throw new Error(`Cannot parse handler ID: ${e}`)}}function di(e,t){const r=e.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===t)return!0;n=!!i}while(!n);return!1}class Ul{addSource(t,r){on(t),jl(r);const n=this.addHandler(J.SOURCE,t,r);return this.store.dispatch(Nl(n)),n}addTarget(t,r){on(t,!0),Bl(r);const n=this.addHandler(J.TARGET,t,r);return this.store.dispatch(Vl(n)),n}containsHandler(t){return di(this.dragSources,t)||di(this.dropTargets,t)}getSource(t,r=!1){return M(this.isSourceId(t),"Expected a valid source ID."),r&&t===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(t)}getTarget(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.dropTargets.get(t)}getSourceType(t){return M(this.isSourceId(t),"Expected a valid source ID."),this.types.get(t)}getTargetType(t){return M(this.isTargetId(t),"Expected a valid target ID."),this.types.get(t)}isSourceId(t){return ci(t)===J.SOURCE}isTargetId(t){return ci(t)===J.TARGET}removeSource(t){M(this.getSource(t),"Expected an existing source."),this.store.dispatch(_l(t)),Ll(()=>{this.dragSources.delete(t),this.types.delete(t)})}removeTarget(t){M(this.getTarget(t),"Expected an existing target."),this.store.dispatch(Fl(t)),this.dropTargets.delete(t),this.types.delete(t)}pinSource(t){const r=this.getSource(t);M(r,"Expected an existing source."),this.pinnedSourceId=t,this.pinnedSource=r}unpinSource(){M(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(t,r,n){const i=zl(t);return this.types.set(i,r),t===J.SOURCE?this.dragSources.set(i,n):t===J.TARGET&&this.dropTargets.set(i,n),i}constructor(t){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}}const ql=(e,t)=>e===t;function Wl(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function $l(e,t,r=ql){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Gl(e=gt,t){switch(t.type){case Tr:break;case Nn:case Vn:case wr:case _n:return gt;case br:case An:case Dr:case Sr:default:return Ln}const{targetIds:r=[],prevTargetIds:n=[]}=t.payload,i=Zu(r,n);if(!(i.length>0||!$l(r,n)))return gt;const a=n[n.length-1],s=r[r.length-1];return a!==s&&(a&&i.push(a),s&&i.push(s)),i}function Yl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Yl(e,i,r[i])})}return e}const fi={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Kl(e=fi,t){const{payload:r}=t;switch(t.type){case Mn:case br:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Tr:return Wl(e.clientOffset,r.clientOffset)?e:Xl({},e,{clientOffset:r.clientOffset});case Dr:case Sr:return fi;default:return e}}function Zl(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Zl(e,i,r[i])})}return e}const Jl={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ql(e=Jl,t){const{payload:r}=t;switch(t.type){case br:return Be({},e,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case An:return Be({},e,{isSourcePublic:!0});case Tr:return Be({},e,{targetIds:r.targetIds});case wr:return e.targetIds.indexOf(r.targetId)===-1?e:Be({},e,{targetIds:Ku(e.targetIds,r.targetId)});case Sr:return Be({},e,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case Dr:return Be({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ec(e=0,t){switch(t.type){case Nn:case Vn:return e+1;case _n:case wr:return e-1;default:return e}}function tc(e=0){return e+1}function rc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){rc(e,i,r[i])})}return e}function ic(e={},t){return{dirtyHandlerIds:Gl(e.dirtyHandlerIds,{type:t.type,payload:nc({},t.payload,{prevTargetIds:Xu(e,"dragOperation.targetIds",[])})}),dragOffset:Kl(e.dragOffset,t),refCount:ec(e.refCount,t),dragOperation:Ql(e.dragOperation,t),stateId:tc(e.stateId)}}function oc(e,t=void 0,r={},n=!1){const i=ac(n),o=new Ol(i,new Ul(i)),a=new Sl(i,o),s=e(a,t,r);return a.receiveBackend(s),a}function ac(e){const t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return $u(ic,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}function sc(e,t){if(e==null)return{};var r=uc(e,t),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uc(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,o;for(o=0;o<n.length;o++)i=n[o],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}let hi=0;const nr=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");var lc=m.memo(function(t){var{children:r}=t,n=sc(t,["children"]);const[i,o]=cc(n);return m.useEffect(()=>{if(o){const a=Ma();return++hi,()=>{--hi===0&&(a[nr]=null)}}},[]),_.jsx(Ca.Provider,{value:i,children:r})});function cc(e){if("manager"in e)return[{dragDropManager:e.manager},!1];const t=dc(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}function dc(e,t=Ma(),r,n){const i=t;return i[nr]||(i[nr]={dragDropManager:oc(e,t,r,n)}),i[nr]}function Ma(){return typeof global<"u"?global:window}const Ve=typeof window<"u"?m.useLayoutEffect:m.useEffect;function Aa(e,t,r){const[n,i]=m.useState(()=>t(e)),o=m.useCallback(()=>{const a=t(e);Hu(n,a)||(i(a),r&&r())},[n,e,r]);return Ve(o),[n,o]}function fc(e,t,r){const[n,i]=Aa(e,t,r);return Ve(function(){const a=e.getHandlerId();if(a!=null)return e.subscribeToStateChange(i,{handlerIds:[a]})},[e,i]),n}function La(e,t,r){return fc(t,e||(()=>({})),()=>r.reconnect())}function Na(e,t){const r=[];return typeof e!="function"&&r.push(e),m.useMemo(()=>typeof e=="function"?e():e,r)}function hc(e){return m.useMemo(()=>e.hooks.dragSource(),[e])}function pc(e){return m.useMemo(()=>e.hooks.dragPreview(),[e])}let _r=!1,Fr=!1;class vc{receiveHandlerId(t){this.sourceId=t}getHandlerId(){return this.sourceId}canDrag(){M(!_r,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return _r=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{_r=!1}}isDragging(){if(!this.sourceId)return!1;M(!Fr,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return Fr=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{Fr=!1}}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}isDraggingSource(t){return this.internalMonitor.isDraggingSource(t)}isOverTarget(t,r){return this.internalMonitor.isOverTarget(t,r)}getTargetIds(){return this.internalMonitor.getTargetIds()}isSourcePublic(){return this.internalMonitor.isSourcePublic()}getSourceId(){return this.internalMonitor.getSourceId()}subscribeToOffsetChange(t){return this.internalMonitor.subscribeToOffsetChange(t)}canDragSource(t){return this.internalMonitor.canDragSource(t)}canDropOnTarget(t){return this.internalMonitor.canDropOnTarget(t)}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.sourceId=null,this.internalMonitor=t.getMonitor()}}let jr=!1;class gc{receiveHandlerId(t){this.targetId=t}getHandlerId(){return this.targetId}subscribeToStateChange(t,r){return this.internalMonitor.subscribeToStateChange(t,r)}canDrop(){if(!this.targetId)return!1;M(!jr,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return jr=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{jr=!1}}isOver(t){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,t):!1}getItemType(){return this.internalMonitor.getItemType()}getItem(){return this.internalMonitor.getItem()}getDropResult(){return this.internalMonitor.getDropResult()}didDrop(){return this.internalMonitor.didDrop()}getInitialClientOffset(){return this.internalMonitor.getInitialClientOffset()}getInitialSourceClientOffset(){return this.internalMonitor.getInitialSourceClientOffset()}getSourceClientOffset(){return this.internalMonitor.getSourceClientOffset()}getClientOffset(){return this.internalMonitor.getClientOffset()}getDifferenceFromInitialOffset(){return this.internalMonitor.getDifferenceFromInitialOffset()}constructor(t){this.targetId=null,this.internalMonitor=t.getMonitor()}}function mc(e,t,r){const n=r.getRegistry(),i=n.addTarget(e,t);return[i,()=>n.removeTarget(i)]}function yc(e,t,r){const n=r.getRegistry(),i=n.addSource(e,t);return[i,()=>n.removeSource(i)]}function an(e,t,r,n){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let u=0;u<o.length;u++){const l=o[u];if(!s(l))return!1;const c=e[l],d=t[l];if(i=void 0,i===!1||i===void 0&&c!==d)return!1}return!0}function sn(e){return e!==null&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bc(e){if(typeof e.type=="string")return;const t=e.type.displayName||e.type.name||"the component";throw new Error(`Only native element nodes can now be passed to React DnD connectors.You can either wrap ${t} into a <div>, or turn it into a drag source or a drop target itself.`)}function Tc(e){return(t=null,r=null)=>{if(!m.isValidElement(t)){const o=t;return e(o,r),o}const n=t;return bc(n),Sc(n,r?o=>e(o,r):e)}}function Va(e){const t={};return Object.keys(e).forEach(r=>{const n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{const i=Tc(n);t[r]=()=>i}}),t}function pi(e,t){typeof e=="function"?e(t):e.current=t}function Sc(e,t){const r=e.ref;return M(typeof r!="string","Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"),r?m.cloneElement(e,{ref:n=>{pi(r,n),pi(t,n)}}):m.cloneElement(e,{ref:t})}class Dc{receiveHandlerId(t){this.handlerId!==t&&(this.handlerId=t,this.reconnect())}get connectTarget(){return this.dragSource}get dragSourceOptions(){return this.dragSourceOptionsInternal}set dragSourceOptions(t){this.dragSourceOptionsInternal=t}get dragPreviewOptions(){return this.dragPreviewOptionsInternal}set dragPreviewOptions(t){this.dragPreviewOptionsInternal=t}reconnect(){const t=this.reconnectDragSource();this.reconnectDragPreview(t)}reconnectDragSource(){const t=this.dragSource,r=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return r&&this.disconnectDragSource(),this.handlerId?t?(r&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=t,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,t,this.dragSourceOptions)),r):(this.lastConnectedDragSource=t,r):r}reconnectDragPreview(t=!1){const r=this.dragPreview,n=t||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),!!this.handlerId){if(!r){this.lastConnectedDragPreview=r;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=r,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,r,this.dragPreviewOptions))}}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didConnectedDragSourceChange(){return this.lastConnectedDragSource!==this.dragSource}didConnectedDragPreviewChange(){return this.lastConnectedDragPreview!==this.dragPreview}didDragSourceOptionsChange(){return!an(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}didDragPreviewOptionsChange(){return!an(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}disconnectDragSource(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}disconnectDragPreview(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}get dragSource(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}get dragPreview(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}clearDragSource(){this.dragSourceNode=null,this.dragSourceRef=null}clearDragPreview(){this.dragPreviewNode=null,this.dragPreviewRef=null}constructor(t){this.hooks=Va({dragSource:(r,n)=>{this.clearDragSource(),this.dragSourceOptions=n||null,sn(r)?this.dragSourceRef=r:this.dragSourceNode=r,this.reconnectDragSource()},dragPreview:(r,n)=>{this.clearDragPreview(),this.dragPreviewOptions=n||null,sn(r)?this.dragPreviewRef=r:this.dragPreviewNode=r,this.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}}class wc{get connectTarget(){return this.dropTarget}reconnect(){const t=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();t&&this.disconnectDropTarget();const r=this.dropTarget;if(this.handlerId){if(!r){this.lastConnectedDropTarget=r;return}t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=r,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,r,this.dropTargetOptions))}}receiveHandlerId(t){t!==this.handlerId&&(this.handlerId=t,this.reconnect())}get dropTargetOptions(){return this.dropTargetOptionsInternal}set dropTargetOptions(t){this.dropTargetOptionsInternal=t}didHandlerIdChange(){return this.lastConnectedHandlerId!==this.handlerId}didDropTargetChange(){return this.lastConnectedDropTarget!==this.dropTarget}didOptionsChange(){return!an(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}disconnectDropTarget(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}get dropTarget(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}clearDropTarget(){this.dropTargetRef=null,this.dropTargetNode=null}constructor(t){this.hooks=Va({dropTarget:(r,n)=>{this.clearDropTarget(),this.dropTargetOptions=n,sn(r)?this.dropTargetRef=r:this.dropTargetNode=r,this.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}}function me(){const{dragDropManager:e}=m.useContext(Ca);return M(e!=null,"Expected drag drop context"),e}function Ec(e,t){const r=me(),n=m.useMemo(()=>new Dc(r.getBackend()),[r]);return Ve(()=>(n.dragSourceOptions=e||null,n.reconnect(),()=>n.disconnectDragSource()),[n,e]),Ve(()=>(n.dragPreviewOptions=t||null,n.reconnect(),()=>n.disconnectDragPreview()),[n,t]),n}function Cc(){const e=me();return m.useMemo(()=>new vc(e),[e])}class Oc{beginDrag(){const t=this.spec,r=this.monitor;let n=null;return typeof t.item=="object"?n=t.item:typeof t.item=="function"?n=t.item(r):n={},n??null}canDrag(){const t=this.spec,r=this.monitor;return typeof t.canDrag=="boolean"?t.canDrag:typeof t.canDrag=="function"?t.canDrag(r):!0}isDragging(t,r){const n=this.spec,i=this.monitor,{isDragging:o}=n;return o?o(i):r===t.getSourceId()}endDrag(){const t=this.spec,r=this.monitor,n=this.connector,{end:i}=t;i&&i(r.getItem(),r),n.reconnect()}constructor(t,r,n){this.spec=t,this.monitor=r,this.connector=n}}function xc(e,t,r){const n=m.useMemo(()=>new Oc(e,t,r),[t,r]);return m.useEffect(()=>{n.spec=e},[e]),n}function Ic(e){return m.useMemo(()=>{const t=e.type;return M(t!=null,"spec.type must be defined"),t},[e])}function Pc(e,t,r){const n=me(),i=xc(e,t,r),o=Ic(e);Ve(function(){if(o!=null){const[s,u]=yc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u}},[n,t,r,i,o])}function Rc(e,t){const r=Na(e);M(!r.begin,"useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");const n=Cc(),i=Ec(r.options,r.previewOptions);return Pc(r,n,i),[La(r.collect,n,i),hc(i),pc(i)]}function Mc(e){const r=me().getMonitor(),[n,i]=Aa(r,e);return m.useEffect(()=>r.subscribeToOffsetChange(i)),m.useEffect(()=>r.subscribeToStateChange(i)),n}function Ac(e){return m.useMemo(()=>e.hooks.dropTarget(),[e])}function Lc(e){const t=me(),r=m.useMemo(()=>new wc(t.getBackend()),[t]);return Ve(()=>(r.dropTargetOptions=e||null,r.reconnect(),()=>r.disconnectDropTarget()),[e]),r}function Nc(){const e=me();return m.useMemo(()=>new gc(e),[e])}function Vc(e){const{accept:t}=e;return m.useMemo(()=>(M(e.accept!=null,"accept must be defined"),Array.isArray(t)?t:[t]),[t])}class _c{canDrop(){const t=this.spec,r=this.monitor;return t.canDrop?t.canDrop(r.getItem(),r):!0}hover(){const t=this.spec,r=this.monitor;t.hover&&t.hover(r.getItem(),r)}drop(){const t=this.spec,r=this.monitor;if(t.drop)return t.drop(r.getItem(),r)}constructor(t,r){this.spec=t,this.monitor=r}}function Fc(e,t){const r=m.useMemo(()=>new _c(e,t),[t]);return m.useEffect(()=>{r.spec=e},[e]),r}function jc(e,t,r){const n=me(),i=Fc(e,t),o=Vc(e);Ve(function(){const[s,u]=mc(o,i,n);return t.receiveHandlerId(s),r.receiveHandlerId(s),u},[n,t,i,r,o.map(a=>a.toString()).join("|")])}function _a(e,t){const r=Na(e),n=Nc(),i=Lc(r.options);return jc(r,n,i),[La(r.collect,n,i),Ac(i)]}function Fa(e){let t=null;return()=>(t==null&&(t=e()),t)}function Bc(e,t){return e.filter(r=>r!==t)}function kc(e,t){const r=new Set,n=o=>r.add(o);e.forEach(n),t.forEach(n);const i=[];return r.forEach(o=>i.push(o)),i}class Hc{enter(t){const r=this.entered.length,n=i=>this.isNodeInDocument(i)&&(!i.contains||i.contains(t));return this.entered=kc(this.entered.filter(n),[t]),r===0&&this.entered.length>0}leave(t){const r=this.entered.length;return this.entered=Bc(this.entered.filter(this.isNodeInDocument),t),r>0&&this.entered.length===0}reset(){this.entered=[]}constructor(t){this.entered=[],this.isNodeInDocument=t}}class zc{initializeExposedProperties(){Object.keys(this.config.exposeProperties).forEach(t=>{Object.defineProperty(this.item,t,{configurable:!0,enumerable:!0,get(){return console.warn(`Browser doesn't allow reading "${t}" until the drop event.`),null}})})}loadDataTransfer(t){if(t){const r={};Object.keys(this.config.exposeProperties).forEach(n=>{const i=this.config.exposeProperties[n];i!=null&&(r[n]={value:i(t,this.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,r)}}canDrag(){return!0}beginDrag(){return this.item}isDragging(t,r){return r===t.getSourceId()}endDrag(){}constructor(t){this.config=t,this.item={},this.initializeExposedProperties()}}const ja="__NATIVE_FILE__",Ba="__NATIVE_URL__",ka="__NATIVE_TEXT__",Ha="__NATIVE_HTML__",vi=Object.freeze(Object.defineProperty({__proto__:null,FILE:ja,HTML:Ha,TEXT:ka,URL:Ba},Symbol.toStringTag,{value:"Module"}));function Br(e,t,r){const n=t.reduce((i,o)=>i||e.getData(o),"");return n??r}const un={[ja]:{exposeProperties:{files:e=>Array.prototype.slice.call(e.files),items:e=>e.items,dataTransfer:e=>e},matchesTypes:["Files"]},[Ha]:{exposeProperties:{html:(e,t)=>Br(e,t,""),dataTransfer:e=>e},matchesTypes:["Html","text/html"]},[Ba]:{exposeProperties:{urls:(e,t)=>Br(e,t,"").split(`
2
2
  `),dataTransfer:e=>e},matchesTypes:["Url","text/uri-list"]},[ka]:{exposeProperties:{text:(e,t)=>Br(e,t,""),dataTransfer:e=>e},matchesTypes:["Text","text/plain"]}};function Uc(e,t){const r=un[e];if(!r)throw new Error(`native type ${e} has no configuration`);const n=new zc(r);return n.loadDataTransfer(t),n}function kr(e){if(!e)return null;const t=Array.prototype.slice.call(e.types||[]);return Object.keys(un).filter(r=>{const n=un[r];return n!=null&&n.matchesTypes?n.matchesTypes.some(i=>t.indexOf(i)>-1):!1})[0]||null}const qc=Fa(()=>/firefox/i.test(navigator.userAgent)),za=Fa(()=>!!window.safari);class gi{interpolate(t){const{xs:r,ys:n,c1s:i,c2s:o,c3s:a}=this;let s=r.length-1;if(t===r[s])return n[s];let u=0,l=a.length-1,c;for(;u<=l;){c=Math.floor(.5*(u+l));const f=r[c];if(f<t)u=c+1;else if(f>t)l=c-1;else return n[c]}s=Math.max(0,l);const d=t-r[s],h=d*d;return n[s]+i[s]*d+o[s]*h+a[s]*d*h}constructor(t,r){const{length:n}=t,i=[];for(let f=0;f<n;f++)i.push(f);i.sort((f,p)=>t[f]<t[p]?-1:1);const o=[],a=[];let s,u;for(let f=0;f<n-1;f++)s=t[f+1]-t[f],u=r[f+1]-r[f],o.push(s),a.push(u/s);const l=[a[0]];for(let f=0;f<o.length-1;f++){const p=a[f],v=a[f+1];if(p*v<=0)l.push(0);else{s=o[f];const g=o[f+1],y=s+g;l.push(3*y/((y+g)/p+(y+s)/v))}}l.push(a[a.length-1]);const c=[],d=[];let h;for(let f=0;f<l.length-1;f++){h=a[f];const p=l[f],v=1/o[f],g=p+l[f+1]-h-h;c.push((h-p-g)*v),d.push(g*v*v)}this.xs=t,this.ys=r,this.c1s=l,this.c2s=c,this.c3s=d}}const Wc=1;function Ua(e){const t=e.nodeType===Wc?e:e.parentElement;if(!t)return null;const{top:r,left:n}=t.getBoundingClientRect();return{x:n,y:r}}function Ht(e){return{x:e.clientX,y:e.clientY}}function $c(e){var t;return e.nodeName==="IMG"&&(qc()||!(!((t=document.documentElement)===null||t===void 0)&&t.contains(e)))}function Gc(e,t,r,n){let i=e?t.width:r,o=e?t.height:n;return za()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}function Yc(e,t,r,n,i){const o=$c(t),s=Ua(o?e:t),u={x:r.x-s.x,y:r.y-s.y},{offsetWidth:l,offsetHeight:c}=e,{anchorX:d,anchorY:h}=n,{dragPreviewWidth:f,dragPreviewHeight:p}=Gc(o,t,l,c),v=()=>{let E=new gi([0,.5,1],[u.y,u.y/c*p,u.y+p-c]).interpolate(h);return za()&&o&&(E+=(window.devicePixelRatio-1)*p),E},g=()=>new gi([0,.5,1],[u.x,u.x/l*f,u.x+f-l]).interpolate(d),{offsetX:y,offsetY:T}=i,S=y===0||y,b=T===0||T;return{x:S?y:g(),y:b?T:v()}}let Xc=class{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var t;return!((t=this.globalContext)===null||t===void 0)&&t.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var t;return((t=this.optionsArgs)===null||t===void 0?void 0:t.rootElement)||this.window}constructor(t,r){this.ownerDocument=null,this.globalContext=t,this.optionsArgs=r}};function Kc(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Kc(e,i,r[i])})}return e}class Zc{profile(){var t,r;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((t=this.dragStartSourceIds)===null||t===void 0?void 0:t.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((r=this.dragOverTargetIds)===null||r===void 0?void 0:r.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const t=this.rootElement;if(t!==void 0){if(t.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");t.__isReactDndBackendSetUp=!0,this.addEventListeners(t)}}teardown(){const t=this.rootElement;if(t!==void 0&&(t.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var r;(r=this.window)===null||r===void 0||r.cancelAnimationFrame(this.asyncEndDragFrameId)}}connectDragPreview(t,r,n){return this.sourcePreviewNodeOptions.set(t,n),this.sourcePreviewNodes.set(t,r),()=>{this.sourcePreviewNodes.delete(t),this.sourcePreviewNodeOptions.delete(t)}}connectDragSource(t,r,n){this.sourceNodes.set(t,r),this.sourceNodeOptions.set(t,n);const i=a=>this.handleDragStart(a,t),o=a=>this.handleSelectStart(a);return r.setAttribute("draggable","true"),r.addEventListener("dragstart",i),r.addEventListener("selectstart",o),()=>{this.sourceNodes.delete(t),this.sourceNodeOptions.delete(t),r.removeEventListener("dragstart",i),r.removeEventListener("selectstart",o),r.setAttribute("draggable","false")}}connectDropTarget(t,r){const n=a=>this.handleDragEnter(a,t),i=a=>this.handleDragOver(a,t),o=a=>this.handleDrop(a,t);return r.addEventListener("dragenter",n),r.addEventListener("dragover",i),r.addEventListener("drop",o),()=>{r.removeEventListener("dragenter",n),r.removeEventListener("dragover",i),r.removeEventListener("drop",o)}}addEventListeners(t){t.addEventListener&&(t.addEventListener("dragstart",this.handleTopDragStart),t.addEventListener("dragstart",this.handleTopDragStartCapture,!0),t.addEventListener("dragend",this.handleTopDragEndCapture,!0),t.addEventListener("dragenter",this.handleTopDragEnter),t.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.addEventListener("dragover",this.handleTopDragOver),t.addEventListener("dragover",this.handleTopDragOverCapture,!0),t.addEventListener("drop",this.handleTopDrop),t.addEventListener("drop",this.handleTopDropCapture,!0))}removeEventListeners(t){t.removeEventListener&&(t.removeEventListener("dragstart",this.handleTopDragStart),t.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),t.removeEventListener("dragend",this.handleTopDragEndCapture,!0),t.removeEventListener("dragenter",this.handleTopDragEnter),t.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),t.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),t.removeEventListener("dragover",this.handleTopDragOver),t.removeEventListener("dragover",this.handleTopDragOverCapture,!0),t.removeEventListener("drop",this.handleTopDrop),t.removeEventListener("drop",this.handleTopDropCapture,!0))}getCurrentSourceNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourceNodeOptions.get(t);return mi({dropEffect:this.altKeyPressed?"copy":"move"},r||{})}getCurrentDropEffect(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}getCurrentSourcePreviewNodeOptions(){const t=this.monitor.getSourceId(),r=this.sourcePreviewNodeOptions.get(t);return mi({anchorX:.5,anchorY:.5,captureDraggingState:!1},r||{})}isDraggingNativeItem(){const t=this.monitor.getItemType();return Object.keys(vi).some(r=>vi[r]===t)}beginDragNativeItem(t,r){this.clearCurrentDragSourceNode(),this.currentNativeSource=Uc(t,r),this.currentNativeHandle=this.registry.addSource(t,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}setCurrentDragSourceNode(t){this.clearCurrentDragSourceNode(),this.currentDragSourceNode=t;const r=1e3;this.mouseMoveTimeoutTimer=setTimeout(()=>{var n;return(n=this.rootElement)===null||n===void 0?void 0:n.addEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)},r)}clearCurrentDragSourceNode(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var t;(t=this.window)===null||t===void 0||t.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}handleDragStart(t,r){t.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(r))}handleDragEnter(t,r){this.dragEnterTargetIds.unshift(r)}handleDragOver(t,r){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(r)}handleDrop(t,r){this.dropTargetIds.unshift(r)}constructor(t,r,n){this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=i=>{const o=this.sourceNodes.get(i);return o&&Ua(o)||null},this.endDragNativeItem=()=>{this.isDraggingNativeItem()&&(this.actions.endDrag(),this.currentNativeHandle&&this.registry.removeSource(this.currentNativeHandle),this.currentNativeHandle=null,this.currentNativeSource=null)},this.isNodeInDocument=i=>!!(i&&this.document&&this.document.body&&this.document.body.contains(i)),this.endDragIfSourceWasRemovedFromDOM=()=>{const i=this.currentDragSourceNode;i==null||this.isNodeInDocument(i)||(this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover())},this.scheduleHover=i=>{this.hoverRafId===null&&typeof requestAnimationFrame<"u"&&(this.hoverRafId=requestAnimationFrame(()=>{this.monitor.isDragging()&&this.actions.hover(i||[],{clientOffset:this.lastClientOffset}),this.hoverRafId=null}))},this.cancelHover=()=>{this.hoverRafId!==null&&typeof cancelAnimationFrame<"u"&&(cancelAnimationFrame(this.hoverRafId),this.hoverRafId=null)},this.handleTopDragStartCapture=()=>{this.clearCurrentDragSourceNode(),this.dragStartSourceIds=[]},this.handleTopDragStart=i=>{if(i.defaultPrevented)return;const{dragStartSourceIds:o}=this;this.dragStartSourceIds=null;const a=Ht(i);this.monitor.isDragging()&&(this.actions.endDrag(),this.cancelHover()),this.actions.beginDrag(o||[],{publishSource:!1,getSourceClientOffset:this.getSourceClientOffset,clientOffset:a});const{dataTransfer:s}=i,u=kr(s);if(this.monitor.isDragging()){if(s&&typeof s.setDragImage=="function"){const c=this.monitor.getSourceId(),d=this.sourceNodes.get(c),h=this.sourcePreviewNodes.get(c)||d;if(h){const{anchorX:f,anchorY:p,offsetX:v,offsetY:g}=this.getCurrentSourcePreviewNodeOptions(),S=Yc(d,h,a,{anchorX:f,anchorY:p},{offsetX:v,offsetY:g});s.setDragImage(h,S.x,S.y)}}try{s==null||s.setData("application/json",{})}catch{}this.setCurrentDragSourceNode(i.target);const{captureDraggingState:l}=this.getCurrentSourcePreviewNodeOptions();l?this.actions.publishDragSource():setTimeout(()=>this.actions.publishDragSource(),0)}else if(u)this.beginDragNativeItem(u);else{if(s&&!s.types&&(i.target&&!i.target.hasAttribute||!i.target.hasAttribute("draggable")))return;i.preventDefault()}},this.handleTopDragEndCapture=()=>{this.clearCurrentDragSourceNode()&&this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleTopDragEnterCapture=i=>{if(this.dragEnterTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}if(!this.enterLeaveCounter.enter(i.target)||this.monitor.isDragging())return;const{dataTransfer:s}=i,u=kr(s);u&&this.beginDragNativeItem(u,s)},this.handleTopDragEnter=i=>{const{dragEnterTargetIds:o}=this;if(this.dragEnterTargetIds=[],!this.monitor.isDragging())return;this.altKeyPressed=i.altKey,o.length>0&&this.actions.hover(o,{clientOffset:Ht(i)}),o.some(s=>this.monitor.canDropOnTarget(s))&&(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect()))},this.handleTopDragOverCapture=i=>{if(this.dragOverTargetIds=[],this.isDraggingNativeItem()){var o;(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}},this.handleTopDragOver=i=>{const{dragOverTargetIds:o}=this;if(this.dragOverTargetIds=[],!this.monitor.isDragging()){i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none");return}this.altKeyPressed=i.altKey,this.lastClientOffset=Ht(i),this.scheduleHover(o),(o||[]).some(s=>this.monitor.canDropOnTarget(s))?(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect=this.getCurrentDropEffect())):this.isDraggingNativeItem()?i.preventDefault():(i.preventDefault(),i.dataTransfer&&(i.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=i=>{this.isDraggingNativeItem()&&i.preventDefault(),this.enterLeaveCounter.leave(i.target)&&(this.isDraggingNativeItem()&&setTimeout(()=>this.endDragNativeItem(),0),this.cancelHover())},this.handleTopDropCapture=i=>{if(this.dropTargetIds=[],this.isDraggingNativeItem()){var o;i.preventDefault(),(o=this.currentNativeSource)===null||o===void 0||o.loadDataTransfer(i.dataTransfer)}else kr(i.dataTransfer)&&i.preventDefault();this.enterLeaveCounter.reset()},this.handleTopDrop=i=>{const{dropTargetIds:o}=this;this.dropTargetIds=[],this.actions.hover(o,{clientOffset:Ht(i)}),this.actions.drop({dropEffect:this.getCurrentDropEffect()}),this.isDraggingNativeItem()?this.endDragNativeItem():this.monitor.isDragging()&&this.actions.endDrag(),this.cancelHover()},this.handleSelectStart=i=>{const o=i.target;typeof o.dragDrop=="function"&&(o.tagName==="INPUT"||o.tagName==="SELECT"||o.tagName==="TEXTAREA"||o.isContentEditable||(i.preventDefault(),o.dragDrop()))},this.options=new Xc(r,n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new Hc(this.isNodeInDocument)}}let zt;function Jc(){return zt||(zt=new Image,zt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),zt}const Qc=function(t,r,n){return new Zc(t,r,n)};var Le=[],ed=function(){return Le.some(function(e){return e.activeTargets.length>0})},td=function(){return Le.some(function(e){return e.skippedTargets.length>0})},yi="ResizeObserver loop completed with undelivered notifications.",rd=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yi}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yi),window.dispatchEvent(e)},Ot;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ot||(Ot={}));var Ne=function(e){return Object.freeze(e)},nd=function(){function e(t,r){this.inlineSize=t,this.blockSize=r,Ne(this)}return e}(),qa=function(){function e(t,r,n,i){return this.x=t,this.y=r,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Ne(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,i=t.top,o=t.right,a=t.bottom,s=t.left,u=t.width,l=t.height;return{x:r,y:n,top:i,right:o,bottom:a,left:s,width:u,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Fn=function(e){return e instanceof SVGElement&&"getBBox"in e},Wa=function(e){if(Fn(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var i=e,o=i.offsetWidth,a=i.offsetHeight;return!(o||a||e.getClientRects().length)},bi=function(e){var t;if(e instanceof Element)return!0;var r=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},id=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},mt=typeof window<"u"?window:{},Ut=new WeakMap,Ti=/auto|scroll/,od=/^tb|vertical/,ad=/msie|trident/i.test(mt.navigator&&mt.navigator.userAgent),ae=function(e){return parseFloat(e||"0")},$e=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new nd((r?t:e)||0,(r?e:t)||0)},Si=Ne({devicePixelContentBoxSize:$e(),borderBoxSize:$e(),contentBoxSize:$e(),contentRect:new qa(0,0,0,0)}),$a=function(e,t){if(t===void 0&&(t=!1),Ut.has(e)&&!t)return Ut.get(e);if(Wa(e))return Ut.set(e,Si),Si;var r=getComputedStyle(e),n=Fn(e)&&e.ownerSVGElement&&e.getBBox(),i=!ad&&r.boxSizing==="border-box",o=od.test(r.writingMode||""),a=!n&&Ti.test(r.overflowY||""),s=!n&&Ti.test(r.overflowX||""),u=n?0:ae(r.paddingTop),l=n?0:ae(r.paddingRight),c=n?0:ae(r.paddingBottom),d=n?0:ae(r.paddingLeft),h=n?0:ae(r.borderTopWidth),f=n?0:ae(r.borderRightWidth),p=n?0:ae(r.borderBottomWidth),v=n?0:ae(r.borderLeftWidth),g=d+l,y=u+c,T=v+f,S=h+p,b=s?e.offsetHeight-S-e.clientHeight:0,D=a?e.offsetWidth-T-e.clientWidth:0,E=i?g+T:0,C=i?y+S:0,x=n?n.width:ae(r.width)-E-D,I=n?n.height:ae(r.height)-C-b,L=x+g+D+T,j=I+y+b+S,H=Ne({devicePixelContentBoxSize:$e(Math.round(x*devicePixelRatio),Math.round(I*devicePixelRatio),o),borderBoxSize:$e(L,j,o),contentBoxSize:$e(x,I,o),contentRect:new qa(d,u,x,I)});return Ut.set(e,H),H},Ga=function(e,t,r){var n=$a(e,r),i=n.borderBoxSize,o=n.contentBoxSize,a=n.devicePixelContentBoxSize;switch(t){case Ot.DEVICE_PIXEL_CONTENT_BOX:return a;case Ot.BORDER_BOX:return i;default:return o}},sd=function(){function e(t){var r=$a(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=Ne([r.borderBoxSize]),this.contentBoxSize=Ne([r.contentBoxSize]),this.devicePixelContentBoxSize=Ne([r.devicePixelContentBoxSize])}return e}(),Ya=function(e){if(Wa(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},ud=function(){var e=1/0,t=[];Le.forEach(function(a){if(a.activeTargets.length!==0){var s=[];a.activeTargets.forEach(function(l){var c=new sd(l.target),d=Ya(l.target);s.push(c),l.lastReportedSize=Ga(l.target,l.observedBox),d<e&&(e=d)}),t.push(function(){a.callback.call(a.observer,s,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var i=n[r];i()}return e},Di=function(e){Le.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(i){i.isActive()&&(Ya(i.target)>e?r.activeTargets.push(i):r.skippedTargets.push(i))})})},ld=function(){var e=0;for(Di(e);ed();)e=ud(),Di(e);return td()&&rd(),e>0},Hr,Xa=[],cd=function(){return Xa.splice(0).forEach(function(e){return e()})},dd=function(e){if(!Hr){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return cd()}).observe(r,n),Hr=function(){r.textContent="".concat(t?t--:t++)}}Xa.push(e),Hr()},fd=function(e){dd(function(){requestAnimationFrame(e)})},ir=0,hd=function(){return!!ir},pd=250,vd={attributes:!0,characterData:!0,childList:!0,subtree:!0},wi=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ei=function(e){return e===void 0&&(e=0),Date.now()+e},zr=!1,gd=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=pd),!zr){zr=!0;var n=Ei(t);fd(function(){var i=!1;try{i=ld()}finally{if(zr=!1,t=n-Ei(),!hd())return;i?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,vd)};document.body?r():mt.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),wi.forEach(function(r){return mt.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),wi.forEach(function(r){return mt.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e}(),ln=new gd,Ci=function(e){!ir&&e>0&&ln.start(),ir+=e,!ir&&ln.stop()},md=function(e){return!Fn(e)&&!id(e)&&getComputedStyle(e).display==="inline"},yd=function(){function e(t,r){this.target=t,this.observedBox=r||Ot.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Ga(this.target,this.observedBox,!0);return md(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),bd=function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e}(),qt=new WeakMap,Oi=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},Wt=function(){function e(){}return e.connect=function(t,r){var n=new bd(t,r);qt.set(t,n)},e.observe=function(t,r,n){var i=qt.get(t),o=i.observationTargets.length===0;Oi(i.observationTargets,r)<0&&(o&&Le.push(i),i.observationTargets.push(new yd(r,n&&n.box)),Ci(1),ln.schedule())},e.unobserve=function(t,r){var n=qt.get(t),i=Oi(n.observationTargets,r),o=n.observationTargets.length===1;i>=0&&(o&&Le.splice(Le.indexOf(n),1),n.observationTargets.splice(i,1),Ci(-1))},e.disconnect=function(t){var r=this,n=qt.get(t);n.observationTargets.slice().forEach(function(i){return r.unobserve(t,i.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Td=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Wt.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bi(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Wt.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bi(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Wt.unobserve(this,t)},e.prototype.disconnect=function(){Wt.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Sd={},Dd="production",Ka=typeof process>"u"||Sd===void 0?Dd:"production",fe=function(e){return{isEnabled:function(t){return e.some(function(r){return!!t[r]})}}},xt={measureLayout:fe(["layout","layoutId","drag"]),animation:fe(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:fe(["exit"]),drag:fe(["drag","dragControls"]),focus:fe(["whileFocus"]),hover:fe(["whileHover","onHoverStart","onHoverEnd"]),tap:fe(["whileTap","onTap","onTapStart","onTapCancel"]),pan:fe(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:fe(["whileInView","onViewportEnter","onViewportLeave"])};function wd(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?xt.projectionNodeConstructor=e[t]:xt[t].Component=e[t])}var It=function(){},Za=m.createContext({strict:!1}),Ja=Object.keys(xt),Ed=Ja.length;function Cd(e,t,r){var n=[],i=m.useContext(Za);if(!t)return null;Ka!=="production"&&r&&i.strict;for(var o=0;o<Ed;o++){var a=Ja[o],s=xt[a],u=s.isEnabled,l=s.Component;u(e)&&l&&n.push(m.createElement(l,w({key:a},e,{visualElement:t})))}return n}var jn=m.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Er=m.createContext({});function Od(){return m.useContext(Er).visualElement}var Cr=m.createContext(null),Je=typeof document<"u",xi=Je?m.useLayoutEffect:m.useEffect,cn={current:null},Qa=!1;function xd(){if(Qa=!0,!!Je)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return cn.current=e.matches};e.addListener(t),t()}else cn.current=!1}function Id(){!Qa&&xd();var e=k(m.useState(cn.current),1),t=e[0];return t}function Pd(){var e=Id(),t=m.useContext(jn).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function Rd(e,t,r,n){var i=m.useContext(Za),o=Od(),a=m.useContext(Cr),s=Pd(),u=m.useRef(void 0);n||(n=i.renderer),!u.current&&n&&(u.current=n(e,{visualState:t,parent:o,props:r,presenceId:a==null?void 0:a.id,blockInitialAnimation:(a==null?void 0:a.initial)===!1,shouldReduceMotion:s}));var l=u.current;return xi(function(){l==null||l.syncRender()}),m.useEffect(function(){var c;(c=l==null?void 0:l.animationState)===null||c===void 0||c.animateChanges()}),xi(function(){return function(){return l==null?void 0:l.notifyUnmount()}},[]),l}function ze(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Md(e,t,r){return m.useCallback(function(n){var i;n&&((i=e.mount)===null||i===void 0||i.call(e,n)),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):ze(r)&&(r.current=n))},[t])}function es(e){return Array.isArray(e)}function oe(e){return typeof e=="string"||es(e)}function Ad(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.get()}),t}function Ld(e){var t={};return e.forEachValue(function(r,n){return t[n]=r.getVelocity()}),t}function ts(e,t,r,n,i){var o;return n===void 0&&(n={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(r??e.custom,n,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(r??e.custom,n,i)),t}function Or(e,t,r){var n=e.getProps();return ts(n,t,r??n.custom,Ad(e),Ld(e))}function xr(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||oe(e.initial)||oe(e.animate)||oe(e.whileHover)||oe(e.whileDrag)||oe(e.whileTap)||oe(e.whileFocus)||oe(e.exit)}function rs(e){return!!(xr(e)||e.variants)}function Nd(e,t){if(xr(e)){var r=e.initial,n=e.animate;return{initial:r===!1||oe(r)?r:void 0,animate:oe(n)?n:void 0}}return e.inherit!==!1?t:{}}function Vd(e){var t=Nd(e,m.useContext(Er)),r=t.initial,n=t.animate;return m.useMemo(function(){return{initial:r,animate:n}},[Ii(r),Ii(n)])}function Ii(e){return Array.isArray(e)?e.join(" "):e}function Ir(e){var t=m.useRef(null);return t.current===null&&(t.current=e()),t.current}var yt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},_d=1;function Fd(){return Ir(function(){if(yt.hasEverUpdated)return _d++})}var ns=m.createContext({}),is=m.createContext({});function jd(e,t,r,n){var i,o=t.layoutId,a=t.layout,s=t.drag,u=t.dragConstraints,l=t.layoutScroll,c=m.useContext(is);!n||!r||r!=null&&r.projection||(r.projection=new n(e,r.getLatestValues(),(i=r.parent)===null||i===void 0?void 0:i.projection),r.projection.setOptions({layoutId:o,layout:a,alwaysMeasureLayout:!!s||u&&ze(u),visualElement:r,scheduleRender:function(){return r.scheduleRender()},animationType:typeof a=="string"?a:"both",initialPromotionConfig:c,layoutScroll:l}))}var Bd=function(e){wa(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var r=this.props,n=r.visualElement,i=r.props;n&&n.setProps(i)},t.prototype.render=function(){return this.props.children},t}(V.Component);function kd(e){var t=e.preloadedFeatures,r=e.createVisualElement,n=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,a=e.Component;t&&wd(t);function s(u,l){var c=Hd(u);u=w(w({},u),{layoutId:c});var d=m.useContext(jn),h=null,f=Vd(u),p=d.isStatic?void 0:Fd(),v=o(u,d.isStatic);return!d.isStatic&&Je&&(f.visualElement=Rd(a,v,w(w({},d),u),r),jd(p,u,f.visualElement,n||xt.projectionNodeConstructor),h=Cd(u,f.visualElement,t)),m.createElement(Bd,{visualElement:f.visualElement,props:w(w({},d),u)},h,m.createElement(Er.Provider,{value:f},i(a,u,p,Md(v,f.visualElement,l),v,d.isStatic,f.visualElement)))}return m.forwardRef(s)}function Hd(e){var t,r=e.layoutId,n=(t=m.useContext(ns))===null||t===void 0?void 0:t.id;return n&&r!==void 0?n+"-"+r:r}function zd(e){function t(n,i){return i===void 0&&(i={}),kd(e(n,i))}if(typeof Proxy>"u")return t;var r=new Map;return new Proxy(t,{get:function(n,i){return r.has(i)||r.set(i,t(i)),r.get(i)}})}var Ud=["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"];function Bn(e){return typeof e!="string"||e.includes("-")?!1:!!(Ud.indexOf(e)>-1||/[A-Z]/.test(e))}var lr={};function qd(e){Object.assign(lr,e)}var dn=["","X","Y","Z"],Wd=["translate","scale","rotate","skew"],Pt=["transformPerspective","x","y","z"];Wd.forEach(function(e){return dn.forEach(function(t){return Pt.push(e+t)})});function $d(e,t){return Pt.indexOf(e)-Pt.indexOf(t)}var Gd=new Set(Pt);function Nt(e){return Gd.has(e)}var Yd=new Set(["originX","originY","originZ"]);function os(e){return Yd.has(e)}function as(e,t){var r=t.layout,n=t.layoutId;return Nt(e)||os(e)||(r||n!==void 0)&&(!!lr[e]||e==="opacity")}var he=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},Xd={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Kd(e,t,r,n){var i=e.transform,o=e.transformKeys,a=t.enableHardwareAcceleration,s=a===void 0?!0:a,u=t.allowTransformNone,l=u===void 0?!0:u,c="";o.sort($d);for(var d=!1,h=o.length,f=0;f<h;f++){var p=o[f];c+="".concat(Xd[p]||p,"(").concat(i[p],") "),p==="z"&&(d=!0)}return!d&&s?c+="translateZ(0)":c=c.trim(),n?c=n(i,r?"":c):l&&r&&(c="none"),c}function Zd(e){var t=e.originX,r=t===void 0?"50%":t,n=e.originY,i=n===void 0?"50%":n,o=e.originZ,a=o===void 0?0:o;return"".concat(r," ").concat(i," ").concat(a)}function ss(e){return e.startsWith("--")}var Jd=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const us=(e,t)=>r=>Math.max(Math.min(r,t),e),bt=e=>e%1?Number(e.toFixed(5)):e,Rt=/(-)?([\d]*\.?[\d])+/g,fn=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Qd=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Vt(e){return typeof e=="string"}const _e={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tt=Object.assign(Object.assign({},_e),{transform:us(0,1)}),$t=Object.assign(Object.assign({},_e),{default:1}),_t=e=>({test:t=>Vt(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Se=_t("deg"),ce=_t("%"),R=_t("px"),ef=_t("vh"),tf=_t("vw"),Pi=Object.assign(Object.assign({},ce),{parse:e=>ce.parse(e)/100,transform:e=>ce.transform(e*100)}),kn=(e,t)=>r=>!!(Vt(r)&&Qd.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),ls=(e,t,r)=>n=>{if(!Vt(n))return n;const[i,o,a,s]=n.match(Rt);return{[e]:parseFloat(i),[t]:parseFloat(o),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},Ae={test:kn("hsl","hue"),parse:ls("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+ce.transform(bt(t))+", "+ce.transform(bt(r))+", "+bt(Tt.transform(n))+")"},rf=us(0,255),Ur=Object.assign(Object.assign({},_e),{transform:e=>Math.round(rf(e))}),Ee={test:kn("rgb","red"),parse:ls("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Ur.transform(e)+", "+Ur.transform(t)+", "+Ur.transform(r)+", "+bt(Tt.transform(n))+")"};function nf(e){let t="",r="",n="",i="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),i=e.substr(4,1),t+=t,r+=r,n+=n,i+=i),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const hn={test:kn("#"),parse:nf,transform:Ee.transform},q={test:e=>Ee.test(e)||hn.test(e)||Ae.test(e),parse:e=>Ee.test(e)?Ee.parse(e):Ae.test(e)?Ae.parse(e):hn.parse(e),transform:e=>Vt(e)?e:e.hasOwnProperty("red")?Ee.transform(e):Ae.transform(e)},cs="${c}",ds="${n}";function of(e){var t,r,n,i;return isNaN(e)&&Vt(e)&&((r=(t=e.match(Rt))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((i=(n=e.match(fn))===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0}function fs(e){typeof e=="number"&&(e=`${e}`);const t=[];let r=0;const n=e.match(fn);n&&(r=n.length,e=e.replace(fn,cs),t.push(...n.map(q.parse)));const i=e.match(Rt);return i&&(e=e.replace(Rt,ds),t.push(...i.map(_e.parse))),{values:t,numColors:r,tokenised:e}}function hs(e){return fs(e).values}function ps(e){const{values:t,numColors:r,tokenised:n}=fs(e),i=t.length;return o=>{let a=n;for(let s=0;s<i;s++)a=a.replace(s<r?cs:ds,s<r?q.transform(o[s]):bt(o[s]));return a}}const af=e=>typeof e=="number"?0:e;function sf(e){const t=hs(e);return ps(e)(t.map(af))}const pe={test:of,parse:hs,createTransformer:ps,getAnimatableNone:sf},uf=new Set(["brightness","contrast","saturate","opacity"]);function lf(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[n]=r.match(Rt)||[];if(!n)return e;const i=r.replace(n,"");let o=uf.has(t)?1:0;return n!==r&&(o*=100),t+"("+o+i+")"}const cf=/([a-z-]*)\(.*?\)/g,pn=Object.assign(Object.assign({},pe),{getAnimatableNone:e=>{const t=e.match(cf);return t?t.map(lf).join(" "):e}});var Ri=w(w({},_e),{transform:Math.round}),vs={borderWidth:R,borderTopWidth:R,borderRightWidth:R,borderBottomWidth:R,borderLeftWidth:R,borderRadius:R,radius:R,borderTopLeftRadius:R,borderTopRightRadius:R,borderBottomRightRadius:R,borderBottomLeftRadius:R,width:R,maxWidth:R,height:R,maxHeight:R,size:R,top:R,right:R,bottom:R,left:R,padding:R,paddingTop:R,paddingRight:R,paddingBottom:R,paddingLeft:R,margin:R,marginTop:R,marginRight:R,marginBottom:R,marginLeft:R,rotate:Se,rotateX:Se,rotateY:Se,rotateZ:Se,scale:$t,scaleX:$t,scaleY:$t,scaleZ:$t,skew:Se,skewX:Se,skewY:Se,distance:R,translateX:R,translateY:R,translateZ:R,x:R,y:R,z:R,perspective:R,transformPerspective:R,opacity:Tt,originX:Pi,originY:Pi,originZ:R,zIndex:Ri,fillOpacity:Tt,strokeOpacity:Tt,numOctaves:Ri};function Hn(e,t,r,n){var i,o=e.style,a=e.vars,s=e.transform,u=e.transformKeys,l=e.transformOrigin;u.length=0;var c=!1,d=!1,h=!0;for(var f in t){var p=t[f];if(ss(f)){a[f]=p;continue}var v=vs[f],g=Jd(p,v);if(Nt(f)){if(c=!0,s[f]=g,u.push(f),!h)continue;p!==((i=v.default)!==null&&i!==void 0?i:0)&&(h=!1)}else os(f)?(l[f]=g,d=!0):o[f]=g}c?o.transform=Kd(e,r,h,n):n?o.transform=n({},""):!t.transform&&o.transform&&(o.transform="none"),d&&(o.transformOrigin=Zd(l))}var zn=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function gs(e,t,r){for(var n in t)!he(t[n])&&!as(n,r)&&(e[n]=t[n])}function df(e,t,r){var n=e.transformTemplate;return m.useMemo(function(){var i=zn();Hn(i,t,{enableHardwareAcceleration:!r},n);var o=i.vars,a=i.style;return w(w({},o),a)},[t])}function ff(e,t,r){var n=e.style||{},i={};return gs(i,n,e),Object.assign(i,df(e,t,r)),e.transformValues&&(i=e.transformValues(i)),i}function hf(e,t,r){var n={},i=ff(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),n.style=i,n}var pf=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function cr(e){return pf.has(e)}var ms=function(e){return!cr(e)};function vf(e){e&&(ms=function(t){return t.startsWith("on")?!cr(t):e(t)})}try{vf(require("@emotion/is-prop-valid").default)}catch{}function gf(e,t,r){var n={};for(var i in e)(ms(i)||r===!0&&cr(i)||!t&&!cr(i)||e.draggable&&i.startsWith("onDrag"))&&(n[i]=e[i]);return n}function Mi(e,t,r){return typeof e=="string"?e:R.transform(t+r*e)}function mf(e,t,r){var n=Mi(t,e.x,e.width),i=Mi(r,e.y,e.height);return"".concat(n," ").concat(i)}var yf={offset:"strokeDashoffset",array:"strokeDasharray"};function bf(e,t,r,n,i){r===void 0&&(r=1),n===void 0&&(n=0),e.pathLength=1;var o=yf;e[o.offset]=R.transform(-n);var a=R.transform(t),s=R.transform(r);e[o.array]="".concat(a," ").concat(s)}function Un(e,t,r,n){var i=t.attrX,o=t.attrY,a=t.originX,s=t.originY,u=t.pathLength,l=t.pathSpacing,c=l===void 0?1:l,d=t.pathOffset,h=d===void 0?0:d,f=ee(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Hn(e,f,r,n),e.attrs=e.style,e.style={};var p=e.attrs,v=e.style,g=e.dimensions;p.transform&&(g&&(v.transform=p.transform),delete p.transform),g&&(a!==void 0||s!==void 0||v.transform)&&(v.transformOrigin=mf(g,a!==void 0?a:.5,s!==void 0?s:.5)),i!==void 0&&(p.x=i),o!==void 0&&(p.y=o),u!==void 0&&bf(p,u,c,h)}var ys=function(){return w(w({},zn()),{attrs:{}})};function Tf(e,t){var r=m.useMemo(function(){var i=ys();return Un(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),w(w({},i.attrs),{style:w({},i.style)})},[t]);if(e.style){var n={};gs(n,e.style,e),r.style=w(w({},n),r.style)}return r}function Sf(e){e===void 0&&(e=!1);var t=function(r,n,i,o,a,s){var u=a.latestValues,l=Bn(r)?Tf:hf,c=l(n,u,s),d=gf(n,typeof r=="string",e),h=w(w(w({},d),c),{ref:o});return i&&(h["data-projection-id"]=i),m.createElement(r,h)};return t}var Df=/([a-z])([A-Z])/g,wf="$1-$2",bs=function(e){return e.replace(Df,wf).toLowerCase()};function Ts(e,t,r,n){var i=t.style,o=t.vars;Object.assign(e.style,i,n&&n.getProjectionStyles(r));for(var a in o)e.style.setProperty(a,o[a])}var Ss=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function Ds(e,t,r,n){Ts(e,t,void 0,n);for(var i in t.attrs)e.setAttribute(Ss.has(i)?i:bs(i),t.attrs[i])}function qn(e){var t=e.style,r={};for(var n in t)(he(t[n])||as(n,e))&&(r[n]=t[n]);return r}function ws(e){var t=qn(e);for(var r in e)if(he(e[r])){var n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}function Wn(e){return typeof e=="object"&&typeof e.start=="function"}var Mt=function(e){return Array.isArray(e)},Ef=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},Es=function(e){return Mt(e)?e[e.length-1]||0:e};function or(e){var t=he(e)?e.get():e;return Ef(t)?t.toValue():t}function Ai(e,t,r,n){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:Cf(t,r,n,i),renderState:o()};return a&&(s.mount=function(u){return a(t,u,s)}),s}var Cs=function(e){return function(t,r){var n=m.useContext(Er),i=m.useContext(Cr);return r?Ai(e,t,n,i):Ir(function(){return Ai(e,t,n,i)})}};function Cf(e,t,r,n){var i={},o=(r==null?void 0:r.initial)===!1,a=n(e);for(var s in a)i[s]=or(a[s]);var u=e.initial,l=e.animate,c=xr(e),d=rs(e);t&&d&&!c&&e.inherit!==!1&&(u??(u=t.initial),l??(l=t.animate));var h=o||u===!1,f=h?l:u;if(f&&typeof f!="boolean"&&!Wn(f)){var p=Array.isArray(f)?f:[f];p.forEach(function(v){var g=ts(e,v);if(g){var y=g.transitionEnd;g.transition;var T=ee(g,["transitionEnd","transition"]);for(var S in T){var b=T[S];if(Array.isArray(b)){var D=h?b.length-1:0;b=b[D]}b!==null&&(i[S]=b)}for(var S in y)i[S]=y[S]}})}return i}var Of={useVisualState:Cs({scrapeMotionValuesFromProps:ws,createRenderState:ys,onMount:function(e,t,r){var n=r.renderState,i=r.latestValues;try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}Un(n,i,{enableHardwareAcceleration:!1},e.transformTemplate),Ds(t,n)}})},xf={useVisualState:Cs({scrapeMotionValuesFromProps:qn,createRenderState:zn})};function If(e,t,r,n,i){var o=t.forwardMotionProps,a=o===void 0?!1:o,s=Bn(e)?Of:xf;return w(w({},s),{preloadedFeatures:r,useRender:Sf(a),createVisualElement:n,projectionNodeConstructor:i,Component:e})}var F;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(F||(F={}));function Pr(e,t,r,n){return n===void 0&&(n={passive:!0}),e.addEventListener(t,r,n),function(){return e.removeEventListener(t,r)}}function vn(e,t,r,n){m.useEffect(function(){var i=e.current;if(r&&i)return Pr(i,t,r,n)},[e,t,r,n])}function Pf(e){var t=e.whileFocus,r=e.visualElement,n=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(F.Focus,!0)},i=function(){var o;(o=r.animationState)===null||o===void 0||o.setActive(F.Focus,!1)};vn(r,"focus",t?n:void 0),vn(r,"blur",t?i:void 0)}function Os(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function xs(e){var t=!!e.touches;return t}function Rf(e){return function(t){var r=t instanceof MouseEvent,n=!r||r&&t.button===0;n&&e(t)}}var Mf={pageX:0,pageY:0};function Af(e,t){t===void 0&&(t="page");var r=e.touches[0]||e.changedTouches[0],n=r||Mf;return{x:n[t+"X"],y:n[t+"Y"]}}function Lf(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function $n(e,t){return t===void 0&&(t="page"),{point:xs(e)?Af(e,t):Lf(e,t)}}var Is=function(e,t){t===void 0&&(t=!1);var r=function(n){return e(n,$n(n))};return t?Rf(r):r},Nf=function(){return Je&&window.onpointerdown===null},Vf=function(){return Je&&window.ontouchstart===null},_f=function(){return Je&&window.onmousedown===null},Ff={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},jf={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ps(e){return Nf()?e:Vf()?jf[e]:_f()?Ff[e]:e}function Ge(e,t,r,n){return Pr(e,Ps(t),Is(r,t==="pointerdown"),n)}function dr(e,t,r,n){return vn(e,Ps(t),r&&Is(r,t==="pointerdown"),n)}function Rs(e){var t=null;return function(){var r=function(){t=null};return t===null?(t=e,r):!1}}var Li=Rs("dragHorizontal"),Ni=Rs("dragVertical");function Ms(e){var t=!1;if(e==="y")t=Ni();else if(e==="x")t=Li();else{var r=Li(),n=Ni();r&&n?t=function(){r(),n()}:(r&&r(),n&&n())}return t}function As(){var e=Ms(!0);return e?(e(),!1):!0}function Vi(e,t,r){return function(n,i){var o;!Os(n)||As()||((o=e.animationState)===null||o===void 0||o.setActive(F.Hover,t),r==null||r(n,i))}}function Bf(e){var t=e.onHoverStart,r=e.onHoverEnd,n=e.whileHover,i=e.visualElement;dr(i,"pointerenter",t||n?Vi(i,!0,t):void 0,{passive:!t}),dr(i,"pointerleave",r||n?Vi(i,!1,r):void 0,{passive:!r})}var Ls=function(e,t){return t?e===t?!0:Ls(e,t.parentElement):!1};function Ns(e){return m.useEffect(function(){return function(){return e()}},[])}const fr=(e,t,r)=>Math.min(Math.max(r,e),t),qr=.001,kf=.01,Hf=10,zf=.05,Uf=1;function qf({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let i,o,a=1-t;a=fr(zf,Uf,a),e=fr(kf,Hf,e/1e3),a<1?(i=l=>{const c=l*a,d=c*e,h=c-r,f=gn(l,a),p=Math.exp(-d);return qr-h/f*p},o=l=>{const d=l*a*e,h=d*r+r,f=Math.pow(a,2)*Math.pow(l,2)*e,p=Math.exp(-d),v=gn(Math.pow(l,2),a);return(-i(l)+qr>0?-1:1)*((h-f)*p)/v}):(i=l=>{const c=Math.exp(-l*e),d=(l-r)*e+1;return-qr+c*d},o=l=>{const c=Math.exp(-l*e),d=(r-l)*(e*e);return c*d});const s=5/e,u=$f(i,o,s);if(e=e*1e3,isNaN(u))return{stiffness:100,damping:10,duration:e};{const l=Math.pow(u,2)*n;return{stiffness:l,damping:a*2*Math.sqrt(n*l),duration:e}}}const Wf=12;function $f(e,t,r){let n=r;for(let i=1;i<Wf;i++)n=n-e(n)/t(n);return n}function gn(e,t){return e*Math.sqrt(1-t*t)}const Gf=["duration","bounce"],Yf=["stiffness","damping","mass"];function _i(e,t){return t.some(r=>e[r]!==void 0)}function Xf(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!_i(e,Yf)&&_i(e,Gf)){const r=qf(e);t=Object.assign(Object.assign(Object.assign({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Gn(e){var{from:t=0,to:r=1,restSpeed:n=2,restDelta:i}=e,o=ee(e,["from","to","restSpeed","restDelta"]);const a={done:!1,value:t};let{stiffness:s,damping:u,mass:l,velocity:c,duration:d,isResolvedFromDuration:h}=Xf(o),f=Fi,p=Fi;function v(){const g=c?-(c/1e3):0,y=r-t,T=u/(2*Math.sqrt(s*l)),S=Math.sqrt(s/l)/1e3;if(i===void 0&&(i=Math.min(Math.abs(r-t)/100,.4)),T<1){const b=gn(S,T);f=D=>{const E=Math.exp(-T*S*D);return r-E*((g+T*S*y)/b*Math.sin(b*D)+y*Math.cos(b*D))},p=D=>{const E=Math.exp(-T*S*D);return T*S*E*(Math.sin(b*D)*(g+T*S*y)/b+y*Math.cos(b*D))-E*(Math.cos(b*D)*(g+T*S*y)-b*y*Math.sin(b*D))}}else if(T===1)f=b=>r-Math.exp(-S*b)*(y+(g+S*y)*b);else{const b=S*Math.sqrt(T*T-1);f=D=>{const E=Math.exp(-T*S*D),C=Math.min(b*D,300);return r-E*((g+T*S*y)*Math.sinh(C)+b*y*Math.cosh(C))/b}}}return v(),{next:g=>{const y=f(g);if(h)a.done=g>=d;else{const T=p(g)*1e3,S=Math.abs(T)<=n,b=Math.abs(r-y)<=i;a.done=S&&b}return a.value=a.done?r:y,a},flipTarget:()=>{c=-c,[t,r]=[r,t],v()}}}Gn.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const Fi=e=>0,At=(e,t,r)=>{const n=t-e;return n===0?1:(r-e)/n},B=(e,t,r)=>-r*e+r*t+e;function Wr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ji({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let i=0,o=0,a=0;if(!t)i=o=a=r;else{const s=r<.5?r*(1+t):r+t-r*t,u=2*r-s;i=Wr(u,s,e+1/3),o=Wr(u,s,e),a=Wr(u,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:n}}const Kf=(e,t,r)=>{const n=e*e,i=t*t;return Math.sqrt(Math.max(0,r*(i-n)+n))},Zf=[hn,Ee,Ae],Bi=e=>Zf.find(t=>t.test(e)),Vs=(e,t)=>{let r=Bi(e),n=Bi(t),i=r.parse(e),o=n.parse(t);r===Ae&&(i=ji(i),r=Ee),n===Ae&&(o=ji(o),n=Ee);const a=Object.assign({},i);return s=>{for(const u in a)u!=="alpha"&&(a[u]=Kf(i[u],o[u],s));return a.alpha=B(i.alpha,o.alpha,s),r.transform(a)}},mn=e=>typeof e=="number",Jf=(e,t)=>r=>t(e(r)),Rr=(...e)=>e.reduce(Jf);function _s(e,t){return mn(e)?r=>B(e,t,r):q.test(e)?Vs(e,t):js(e,t)}const Fs=(e,t)=>{const r=[...e],n=r.length,i=e.map((o,a)=>_s(o,t[a]));return o=>{for(let a=0;a<n;a++)r[a]=i[a](o);return r}},Qf=(e,t)=>{const r=Object.assign(Object.assign({},e),t),n={};for(const i in r)e[i]!==void 0&&t[i]!==void 0&&(n[i]=_s(e[i],t[i]));return i=>{for(const o in n)r[o]=n[o](i);return r}};function ki(e){const t=pe.parse(e),r=t.length;let n=0,i=0,o=0;for(let a=0;a<r;a++)n||typeof t[a]=="number"?n++:t[a].hue!==void 0?o++:i++;return{parsed:t,numNumbers:n,numRGB:i,numHSL:o}}const js=(e,t)=>{const r=pe.createTransformer(t),n=ki(e),i=ki(t);return n.numHSL===i.numHSL&&n.numRGB===i.numRGB&&n.numNumbers>=i.numNumbers?Rr(Fs(n.parsed,i.parsed),r):a=>`${a>0?t:e}`},eh=(e,t)=>r=>B(e,t,r);function th(e){if(typeof e=="number")return eh;if(typeof e=="string")return q.test(e)?Vs:js;if(Array.isArray(e))return Fs;if(typeof e=="object")return Qf}function rh(e,t,r){const n=[],i=r||th(e[0]),o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const u=Array.isArray(t)?t[a]:t;s=Rr(u,s)}n.push(s)}return n}function nh([e,t],[r]){return n=>r(At(e,t,n))}function ih(e,t){const r=e.length,n=r-1;return i=>{let o=0,a=!1;if(i<=e[0]?a=!0:i>=e[n]&&(o=n-1,a=!0),!a){let u=1;for(;u<r&&!(e[u]>i||u===n);u++);o=u-1}const s=At(e[o],e[o+1],i);return t[o](s)}}function Bs(e,t,{clamp:r=!0,ease:n,mixer:i}={}){const o=e.length;It(o===t.length),It(!n||!Array.isArray(n)||n.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const a=rh(t,n,i),s=o===2?nh(e,a):ih(e,a);return r?u=>s(fr(e[0],e[o-1],u)):s}const Mr=e=>t=>1-e(1-t),Yn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oh=e=>t=>Math.pow(t,e),ks=e=>t=>t*t*((e+1)*t-e),ah=e=>{const t=ks(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},Hs=1.525,sh=4/11,uh=8/11,lh=9/10,Xn=e=>e,Kn=oh(2),ch=Mr(Kn),zs=Yn(Kn),Us=e=>1-Math.sin(Math.acos(e)),Zn=Mr(Us),dh=Yn(Zn),Jn=ks(Hs),fh=Mr(Jn),hh=Yn(Jn),ph=ah(Hs),vh=4356/361,gh=35442/1805,mh=16061/1805,hr=e=>{if(e===1||e===0)return e;const t=e*e;return e<sh?7.5625*t:e<uh?9.075*t-9.9*e+3.4:e<lh?vh*t-gh*e+mh:10.8*e*e-20.52*e+10.72},yh=Mr(hr),bh=e=>e<.5?.5*(1-hr(1-e*2)):.5*hr(e*2-1)+.5;function Th(e,t){return e.map(()=>t||zs).splice(0,e.length-1)}function Sh(e){const t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function Dh(e,t){return e.map(r=>r*t)}function ar({from:e=0,to:t=1,ease:r,offset:n,duration:i=300}){const o={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=Dh(n&&n.length===a.length?n:Sh(a),i);function u(){return Bs(s,a,{ease:Array.isArray(r)?r:Th(a,r)})}let l=u();return{next:c=>(o.value=l(c),o.done=c>=i,o),flipTarget:()=>{a.reverse(),l=u()}}}function wh({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:o}){const a={done:!1,value:t};let s=r*e;const u=t+s,l=o===void 0?u:o(u);return l!==u&&(s=l-t),{next:c=>{const d=-s*Math.exp(-c/n);return a.done=!(d>i||d<-i),a.value=a.done?l:l+d,a},flipTarget:()=>{}}}const Hi={keyframes:ar,spring:Gn,decay:wh};function Eh(e){if(Array.isArray(e.to))return ar;if(Hi[e.type])return Hi[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?ar:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Gn:ar}const qs=1/60*1e3,Ch=typeof performance<"u"?()=>performance.now():()=>Date.now(),Ws=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(Ch()),qs);function Oh(e){let t=[],r=[],n=0,i=!1,o=!1;const a=new WeakSet,s={schedule:(u,l=!1,c=!1)=>{const d=c&&i,h=d?t:r;return l&&a.add(u),h.indexOf(u)===-1&&(h.push(u),d&&i&&(n=t.length)),u},cancel:u=>{const l=r.indexOf(u);l!==-1&&r.splice(l,1),a.delete(u)},process:u=>{if(i){o=!0;return}if(i=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let l=0;l<n;l++){const c=t[l];c(u),a.has(c)&&(s.schedule(c),e())}i=!1,o&&(o=!1,s.process(u))}};return s}const xh=40;let yn=!0,Lt=!1,bn=!1;const Ye={delta:0,timestamp:0},Ft=["read","update","preRender","render","postRender"],Ar=Ft.reduce((e,t)=>(e[t]=Oh(()=>Lt=!0),e),{}),de=Ft.reduce((e,t)=>{const r=Ar[t];return e[t]=(n,i=!1,o=!1)=>(Lt||Ph(),r.schedule(n,i,o)),e},{}),Ke=Ft.reduce((e,t)=>(e[t]=Ar[t].cancel,e),{}),$r=Ft.reduce((e,t)=>(e[t]=()=>Ar[t].process(Ye),e),{}),Ih=e=>Ar[e].process(Ye),$s=e=>{Lt=!1,Ye.delta=yn?qs:Math.max(Math.min(e-Ye.timestamp,xh),1),Ye.timestamp=e,bn=!0,Ft.forEach(Ih),bn=!1,Lt&&(yn=!1,Ws($s))},Ph=()=>{Lt=!0,yn=!0,bn||Ws($s)},pr=()=>Ye;function Gs(e,t,r=0){return e-t-r}function Rh(e,t,r=0,n=!0){return n?Gs(t+-e,t,r):t-(e-t)+r}function Mh(e,t,r,n){return n?e>=t+r:e<=-r}const Ah=e=>{const t=({delta:r})=>e(r);return{start:()=>de.update(t,!0),stop:()=>Ke.update(t)}};function Ys(e){var t,r,{from:n,autoplay:i=!0,driver:o=Ah,elapsed:a=0,repeat:s=0,repeatType:u="loop",repeatDelay:l=0,onPlay:c,onStop:d,onComplete:h,onRepeat:f,onUpdate:p}=e,v=ee(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:g}=v,y,T=0,S=v.duration,b,D=!1,E=!0,C;const x=Eh(v);!((r=(t=x).needsInterpolation)===null||r===void 0)&&r.call(t,n,g)&&(C=Bs([0,100],[n,g],{clamp:!1}),n=0,g=100);const I=x(Object.assign(Object.assign({},v),{from:n,to:g}));function L(){T++,u==="reverse"?(E=T%2===0,a=Rh(a,S,l,E)):(a=Gs(a,S,l),u==="mirror"&&I.flipTarget()),D=!1,f&&f()}function j(){y.stop(),h&&h()}function H(Y){if(E||(Y=-Y),a+=Y,!D){const te=I.next(Math.max(0,a));b=te.value,C&&(b=C(b)),D=E?te.done:a<=0}p==null||p(b),D&&(T===0&&(S??(S=a)),T<s?Mh(a,S,l,E)&&L():j())}function G(){c==null||c(),y=o(H),y.start()}return i&&G(),{stop:()=>{d==null||d(),y.stop()}}}function Xs(e,t){return t?e*(1e3/t):0}function Lh({from:e=0,velocity:t=0,min:r,max:n,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:u=1,modifyTarget:l,driver:c,onUpdate:d,onComplete:h,onStop:f}){let p;function v(S){return r!==void 0&&S<r||n!==void 0&&S>n}function g(S){return r===void 0?n:n===void 0||Math.abs(r-S)<Math.abs(n-S)?r:n}function y(S){p==null||p.stop(),p=Ys(Object.assign(Object.assign({},S),{driver:c,onUpdate:b=>{var D;d==null||d(b),(D=S.onUpdate)===null||D===void 0||D.call(S,b)},onComplete:h,onStop:f}))}function T(S){y(Object.assign({type:"spring",stiffness:a,damping:s,restDelta:u},S))}if(v(e))T({from:e,velocity:t,to:g(e)});else{let S=i*t+e;typeof l<"u"&&(S=l(S));const b=g(S),D=b===r?-1:1;let E,C;const x=I=>{E=C,C=I,t=Xs(I-E,pr().delta),(D===1&&I>b||D===-1&&I<b)&&T({from:I,to:b,velocity:t})};y({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:u,modifyTarget:l,onUpdate:v(S)?x:void 0})}return{stop:()=>p==null?void 0:p.stop()}}const Tn=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),zi=e=>Tn(e)&&e.hasOwnProperty("z"),Gt=(e,t)=>Math.abs(e-t);function Ks(e,t){if(mn(e)&&mn(t))return Gt(e,t);if(Tn(e)&&Tn(t)){const r=Gt(e.x,t.x),n=Gt(e.y,t.y),i=zi(e)&&zi(t)?Gt(e.z,t.z):0;return Math.sqrt(Math.pow(r,2)+Math.pow(n,2)+Math.pow(i,2))}}const Zs=(e,t)=>1-3*t+3*e,Js=(e,t)=>3*t-6*e,Qs=e=>3*e,vr=(e,t,r)=>((Zs(t,r)*e+Js(t,r))*e+Qs(t))*e,eu=(e,t,r)=>3*Zs(t,r)*e*e+2*Js(t,r)*e+Qs(t),Nh=1e-7,Vh=10;function _h(e,t,r,n,i){let o,a,s=0;do a=t+(r-t)/2,o=vr(a,n,i)-e,o>0?r=a:t=a;while(Math.abs(o)>Nh&&++s<Vh);return a}const Fh=8,jh=.001;function Bh(e,t,r,n){for(let i=0;i<Fh;++i){const o=eu(t,r,n);if(o===0)return t;const a=vr(t,r,n)-e;t-=a/o}return t}const sr=11,Yt=1/(sr-1);function kh(e,t,r,n){if(e===t&&r===n)return Xn;const i=new Float32Array(sr);for(let a=0;a<sr;++a)i[a]=vr(a*Yt,e,r);function o(a){let s=0,u=1;const l=sr-1;for(;u!==l&&i[u]<=a;++u)s+=Yt;--u;const c=(a-i[u])/(i[u+1]-i[u]),d=s+c*Yt,h=eu(d,e,r);return h>=jh?Bh(a,d,e,r):h===0?d:_h(a,s,s+Yt,e,r)}return a=>a===0||a===1?a:vr(o(a),t,n)}function Hh(e){var t=e.onTap,r=e.onTapStart,n=e.onTapCancel,i=e.whileTap,o=e.visualElement,a=t||r||n||i,s=m.useRef(!1),u=m.useRef(null),l={passive:!(r||t||n||p)};function c(){var v;(v=u.current)===null||v===void 0||v.call(u),u.current=null}function d(){var v;return c(),s.current=!1,(v=o.animationState)===null||v===void 0||v.setActive(F.Tap,!1),!As()}function h(v,g){d()&&(Ls(o.getInstance(),v.target)?t==null||t(v,g):n==null||n(v,g))}function f(v,g){d()&&(n==null||n(v,g))}function p(v,g){var y;c(),!s.current&&(s.current=!0,u.current=Rr(Ge(window,"pointerup",h,l),Ge(window,"pointercancel",f,l)),(y=o.animationState)===null||y===void 0||y.setActive(F.Tap,!0),r==null||r(v,g))}dr(o,"pointerdown",a?p:void 0,l),Ns(c)}var Ui=new Set;function zh(e,t,r){Ui.has(t)||(console.warn(t),Ui.add(t))}var Sn=new WeakMap,Gr=new WeakMap,Uh=function(e){var t;(t=Sn.get(e.target))===null||t===void 0||t(e)},qh=function(e){e.forEach(Uh)};function Wh(e){var t=e.root,r=ee(e,["root"]),n=t||document;Gr.has(n)||Gr.set(n,{});var i=Gr.get(n),o=JSON.stringify(r);return i[o]||(i[o]=new IntersectionObserver(qh,w({root:t},r))),i[o]}function $h(e,t,r){var n=Wh(t);return Sn.set(e,r),n.observe(e),function(){Sn.delete(e),n.unobserve(e)}}function Gh(e){var t=e.visualElement,r=e.whileInView,n=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,a=o===void 0?{}:o,s=m.useRef({hasEnteredView:!1,isInView:!1}),u=!!(r||n||i);a.once&&s.current.hasEnteredView&&(u=!1);var l=typeof IntersectionObserver>"u"?Kh:Xh;l(u,s.current,t,a)}var Yh={some:0,all:1};function Xh(e,t,r,n){var i=n.root,o=n.margin,a=n.amount,s=a===void 0?"some":a,u=n.once;m.useEffect(function(){if(e){var l={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof s=="number"?s:Yh[s]},c=function(d){var h,f=d.isIntersecting;if(t.isInView!==f&&(t.isInView=f,!(u&&!f&&t.hasEnteredView))){f&&(t.hasEnteredView=!0),(h=r.animationState)===null||h===void 0||h.setActive(F.InView,f);var p=r.getProps(),v=f?p.onViewportEnter:p.onViewportLeave;v==null||v(d)}};return $h(r.getInstance(),l,c)}},[e,i,o,s])}function Kh(e,t,r,n){var i=n.fallback,o=i===void 0?!0:i;m.useEffect(function(){!e||!o||(Ka!=="production"&&zh(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var a;t.hasEnteredView=!0;var s=r.getProps().onViewportEnter;s==null||s(null),(a=r.animationState)===null||a===void 0||a.setActive(F.InView,!0)}))},[e])}var Ce=function(e){return function(t){return e(t),null}},Zh={inView:Ce(Gh),tap:Ce(Hh),focus:Ce(Pf),hover:Ce(Bf)},Jh=0,Qh=function(){return Jh++},ep=function(){return Ir(Qh)};function tu(){var e=m.useContext(Cr);if(e===null)return[!0,null];var t=e.isPresent,r=e.onExitComplete,n=e.register,i=ep();m.useEffect(function(){return n(i)},[]);var o=function(){return r==null?void 0:r(i)};return!t&&r?[!1,o]:[!0]}function ru(e,t){if(!Array.isArray(t))return!1;var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}var gr=function(e){return e*1e3},qi={linear:Xn,easeIn:Kn,easeInOut:zs,easeOut:ch,circIn:Us,circInOut:dh,circOut:Zn,backIn:Jn,backInOut:hh,backOut:fh,anticipate:ph,bounceIn:yh,bounceInOut:bh,bounceOut:hr},Wi=function(e){if(Array.isArray(e)){It(e.length===4);var t=k(e,4),r=t[0],n=t[1],i=t[2],o=t[3];return kh(r,n,i,o)}else if(typeof e=="string")return It(qi[e]!==void 0),qi[e];return e},tp=function(e){return Array.isArray(e)&&typeof e[0]!="number"},$i=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&pe.test(t)&&!t.startsWith("url("))},Pe=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},Xt=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},Yr=function(){return{type:"keyframes",ease:"linear",duration:.3}},rp=function(e){return{type:"keyframes",duration:.8,values:e}},Gi={x:Pe,y:Pe,z:Pe,rotate:Pe,rotateX:Pe,rotateY:Pe,rotateZ:Pe,scaleX:Xt,scaleY:Xt,scale:Xt,opacity:Yr,backgroundColor:Yr,color:Yr,default:Xt},np=function(e,t){var r;return Mt(t)?r=rp:r=Gi[e]||Gi.default,w({to:t},r(t))},ip=w(w({},vs),{color:q,backgroundColor:q,outlineColor:q,fill:q,stroke:q,borderColor:q,borderTopColor:q,borderRightColor:q,borderBottomColor:q,borderLeftColor:q,filter:pn,WebkitFilter:pn}),Qn=function(e){return ip[e]};function ei(e,t){var r,n=Qn(e);return n!==pn&&(n=pe),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}function op(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ee(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function ap(e){var t=e.ease,r=e.times,n=e.yoyo,i=e.flip,o=e.loop,a=ee(e,["ease","times","yoyo","flip","loop"]),s=w({},a);return r&&(s.offset=r),a.duration&&(s.duration=gr(a.duration)),a.repeatDelay&&(s.repeatDelay=gr(a.repeatDelay)),t&&(s.ease=tp(t)?t.map(Wi):Wi(t)),a.type==="tween"&&(s.type="keyframes"),(n||o||i)&&(n?s.repeatType="reverse":o?s.repeatType="loop":i&&(s.repeatType="mirror"),s.repeat=o||n||i||a.repeat),a.type!=="spring"&&(s.type="keyframes"),s}function sp(e,t){var r,n,i=ti(e,t)||{};return(n=(r=i.delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function up(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=le([],k(e.to),!1),e.to[0]=e.from),e}function lp(e,t,r){var n;return Array.isArray(t.to)&&((n=e.duration)!==null&&n!==void 0||(e.duration=.8)),up(t),op(e)||(e=w(w({},e),np(r,t.to))),w(w({},t),ap(e))}function cp(e,t,r,n,i){var o,a=ti(n,e),s=(o=a.from)!==null&&o!==void 0?o:t.get(),u=$i(e,r);s==="none"&&u&&typeof r=="string"?s=ei(e,r):Yi(s)&&typeof r=="string"?s=Xi(r):!Array.isArray(r)&&Yi(r)&&typeof s=="string"&&(r=Xi(s));var l=$i(e,s);function c(){var h={from:s,to:r,velocity:t.getVelocity(),onComplete:i,onUpdate:function(f){return t.set(f)}};return a.type==="inertia"||a.type==="decay"?Lh(w(w({},h),a)):Ys(w(w({},lp(a,h,e)),{onUpdate:function(f){var p;h.onUpdate(f),(p=a.onUpdate)===null||p===void 0||p.call(a,f)},onComplete:function(){var f;h.onComplete(),(f=a.onComplete)===null||f===void 0||f.call(a)}}))}function d(){var h,f,p=Es(r);return t.set(p),i(),(h=a==null?void 0:a.onUpdate)===null||h===void 0||h.call(a,p),(f=a==null?void 0:a.onComplete)===null||f===void 0||f.call(a),{stop:function(){}}}return!l||!u||a.type===!1?d:c}function Yi(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function Xi(e){return typeof e=="number"?0:ei("",e)}function ti(e,t){return e[t]||e.default||e}function ri(e,t,r,n){return n===void 0&&(n={}),t.start(function(i){var o,a,s=cp(e,t,r,n,i),u=sp(n,e),l=function(){return a=s()};return u?o=window.setTimeout(l,gr(u)):l(),function(){clearTimeout(o),a==null||a.stop()}})}var dp=function(e){return/^\-?\d*\.?\d+$/.test(e)},fp=function(e){return/^0[^.\s]+$/.test(e)};function ni(e,t){e.indexOf(t)===-1&&e.push(t)}function ii(e,t){var r=e.indexOf(t);r>-1&&e.splice(r,1)}var St=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var r=this;return ni(this.subscriptions,t),function(){return ii(r.subscriptions,t)}},e.prototype.notify=function(t,r,n){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,r,n);else for(var o=0;o<i;o++){var a=this.subscriptions[o];a&&a(t,r,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),hp=function(e){return!isNaN(parseFloat(e))},pp=function(){function e(t){var r=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new St,this.velocityUpdateSubscribers=new St,this.renderSubscribers=new St,this.canTrackVelocity=!1,this.updateAndNotify=function(n,i){i===void 0&&(i=!0),r.prev=r.current,r.current=n;var o=pr(),a=o.delta,s=o.timestamp;r.lastUpdated!==s&&(r.timeDelta=a,r.lastUpdated=s,de.postRender(r.scheduleVelocityCheck)),r.prev!==r.current&&r.updateSubscribers.notify(r.current),r.velocityUpdateSubscribers.getSize()&&r.velocityUpdateSubscribers.notify(r.getVelocity()),i&&r.renderSubscribers.notify(r.current)},this.scheduleVelocityCheck=function(){return de.postRender(r.velocityCheck)},this.velocityCheck=function(n){var i=n.timestamp;i!==r.lastUpdated&&(r.prev=r.current,r.velocityUpdateSubscribers.notify(r.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=hp(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,r){r===void 0&&(r=!0),!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?Xs(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var r=this;return this.stop(),new Promise(function(n){r.hasAnimated=!0,r.stopAnimation=t(n)}).then(function(){return r.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ze(e){return new pp(e)}var nu=function(e){return function(t){return t.test(e)}},vp={test:function(e){return e==="auto"},parse:function(e){return e}},iu=[_e,R,ce,Se,tf,ef,vp],rt=function(e){return iu.find(nu(e))},gp=le(le([],k(iu),!1),[q,pe],!1),mp=function(e){return gp.find(nu(e))};function yp(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Ze(r))}function bp(e,t){var r=Or(e,t),n=r?e.makeTargetAnimatable(r,!1):{},i=n.transitionEnd,o=i===void 0?{}:i;n.transition;var a=ee(n,["transitionEnd","transition"]);a=w(w({},a),o);for(var s in a){var u=Es(a[s]);yp(e,s,u)}}function Tp(e,t,r){var n,i,o,a,s=Object.keys(t).filter(function(f){return!e.hasValue(f)}),u=s.length;if(u)for(var l=0;l<u;l++){var c=s[l],d=t[c],h=null;Array.isArray(d)&&(h=d[0]),h===null&&(h=(i=(n=r[c])!==null&&n!==void 0?n:e.readValue(c))!==null&&i!==void 0?i:t[c]),h!=null&&(typeof h=="string"&&(dp(h)||fp(h))?h=parseFloat(h):!mp(h)&&pe.test(d)&&(h=ei(c,d)),e.addValue(c,Ze(h)),(o=(a=r)[c])!==null&&o!==void 0||(a[c]=h),e.setBaseTarget(c,h))}}function Sp(e,t){if(t){var r=t[e]||t.default||t;return r.from}}function Dp(e,t,r){var n,i,o={};for(var a in e)o[a]=(n=Sp(a,t))!==null&&n!==void 0?n:(i=r.getValue(a))===null||i===void 0?void 0:i.get();return o}function wp(e,t,r){r===void 0&&(r={}),e.notifyAnimationStart(t);var n;if(Array.isArray(t)){var i=t.map(function(a){return Dn(e,a,r)});n=Promise.all(i)}else if(typeof t=="string")n=Dn(e,t,r);else{var o=typeof t=="function"?Or(e,t,r.custom):t;n=ou(e,o,r)}return n.then(function(){return e.notifyAnimationComplete(t)})}function Dn(e,t,r){var n;r===void 0&&(r={});var i=Or(e,t,r.custom),o=(i||{}).transition,a=o===void 0?e.getDefaultTransition()||{}:o;r.transitionOverride&&(a=r.transitionOverride);var s=i?function(){return ou(e,i,r)}:function(){return Promise.resolve()},u=!((n=e.variantChildren)===null||n===void 0)&&n.size?function(f){f===void 0&&(f=0);var p=a.delayChildren,v=p===void 0?0:p,g=a.staggerChildren,y=a.staggerDirection;return Ep(e,t,v+f,g,y,r)}:function(){return Promise.resolve()},l=a.when;if(l){var c=k(l==="beforeChildren"?[s,u]:[u,s],2),d=c[0],h=c[1];return d().then(h)}else return Promise.all([s(),u(r.delay)])}function ou(e,t,r){var n,i=r===void 0?{}:r,o=i.delay,a=o===void 0?0:o,s=i.transitionOverride,u=i.type,l=e.makeTargetAnimatable(t),c=l.transition,d=c===void 0?e.getDefaultTransition():c,h=l.transitionEnd,f=ee(l,["transition","transitionEnd"]);s&&(d=s);var p=[],v=u&&((n=e.animationState)===null||n===void 0?void 0:n.getState()[u]);for(var g in f){var y=e.getValue(g),T=f[g];if(!(!y||T===void 0||v&&Op(v,g))){var S=w({delay:a},d);e.shouldReduceMotion&&Nt(g)&&(S=w(w({},S),{type:!1,delay:0}));var b=ri(g,y,T,S);p.push(b)}}return Promise.all(p).then(function(){h&&bp(e,h)})}function Ep(e,t,r,n,i,o){r===void 0&&(r=0),n===void 0&&(n=0),i===void 0&&(i=1);var a=[],s=(e.variantChildren.size-1)*n,u=i===1?function(l){return l===void 0&&(l=0),l*n}:function(l){return l===void 0&&(l=0),s-l*n};return Array.from(e.variantChildren).sort(Cp).forEach(function(l,c){a.push(Dn(l,t,w(w({},o),{delay:r+u(c)})).then(function(){return l.notifyAnimationComplete(t)}))}),Promise.all(a)}function Cp(e,t){return e.sortNodePosition(t)}function Op(e,t){var r=e.protectedKeys,n=e.needsAnimating,i=r.hasOwnProperty(t)&&n[t]!==!0;return n[t]=!1,i}var oi=[F.Animate,F.InView,F.Focus,F.Hover,F.Tap,F.Drag,F.Exit],xp=le([],k(oi),!1).reverse(),Ip=oi.length;function Pp(e){return function(t){return Promise.all(t.map(function(r){var n=r.animation,i=r.options;return wp(e,n,i)}))}}function Rp(e){var t=Pp(e),r=Ap(),n={},i=!0,o=function(c,d){var h=Or(e,d);if(h){h.transition;var f=h.transitionEnd,p=ee(h,["transition","transitionEnd"]);c=w(w(w({},c),p),f)}return c};function a(c){return n[c]!==void 0}function s(c){t=c(e)}function u(c,d){for(var h,f=e.getProps(),p=e.getVariantContext(!0)||{},v=[],g=new Set,y={},T=1/0,S=function(C){var x=xp[C],I=r[x],L=(h=f[x])!==null&&h!==void 0?h:p[x],j=oe(L),H=x===d?I.isActive:null;H===!1&&(T=C);var G=L===p[x]&&L!==f[x]&&j;if(G&&i&&e.manuallyAnimateOnMount&&(G=!1),I.protectedKeys=w({},y),!I.isActive&&H===null||!L&&!I.prevProp||Wn(L)||typeof L=="boolean")return"continue";var Y=Mp(I.prevProp,L),te=Y||x===d&&I.isActive&&!G&&j||C>T&&j,be=Array.isArray(L)?L:[L],X=be.reduce(o,{});H===!1&&(X={});var et=I.prevResolvedValues,Fe=et===void 0?{}:et,Bt=w(w({},Fe),X),je=function(P){te=!0,g.delete(P),I.needsAnimating[P]=!0};for(var $ in Bt){var N=X[$],O=Fe[$];y.hasOwnProperty($)||(N!==O?Mt(N)&&Mt(O)?!ru(N,O)||Y?je($):I.protectedKeys[$]=!0:N!==void 0?je($):g.add($):N!==void 0&&g.has($)?je($):I.protectedKeys[$]=!0)}I.prevProp=L,I.prevResolvedValues=X,I.isActive&&(y=w(w({},y),X)),i&&e.blockInitialAnimation&&(te=!1),te&&!G&&v.push.apply(v,le([],k(be.map(function(P){return{animation:P,options:w({type:x},c)}})),!1))},b=0;b<Ip;b++)S(b);if(n=w({},y),g.size){var D={};g.forEach(function(C){var x=e.getBaseTarget(C);x!==void 0&&(D[C]=x)}),v.push({animation:D})}var E=!!v.length;return i&&f.initial===!1&&!e.manuallyAnimateOnMount&&(E=!1),i=!1,E?t(v):Promise.resolve()}function l(c,d,h){var f;if(r[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(function(g){var y;return(y=g.animationState)===null||y===void 0?void 0:y.setActive(c,d)}),r[c].isActive=d;var p=u(h,c);for(var v in r)r[v].protectedKeys={};return p}return{isAnimated:a,animateChanges:u,setActive:l,setAnimateFunction:s,getState:function(){return r}}}function Mp(e,t){return typeof t=="string"?t!==e:es(t)?!ru(t,e):!1}function Re(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Ap(){var e;return e={},e[F.Animate]=Re(!0),e[F.InView]=Re(),e[F.Hover]=Re(),e[F.Tap]=Re(),e[F.Drag]=Re(),e[F.Focus]=Re(),e[F.Exit]=Re(),e}var Lp={animation:Ce(function(e){var t=e.visualElement,r=e.animate;t.animationState||(t.animationState=Rp(t)),Wn(r)&&m.useEffect(function(){return r.subscribe(t)},[r])}),exit:Ce(function(e){var t=e.custom,r=e.visualElement,n=k(tu(),2),i=n[0],o=n[1],a=m.useContext(Cr);m.useEffect(function(){var s,u;r.isPresent=i;var l=(s=r.animationState)===null||s===void 0?void 0:s.setActive(F.Exit,!i,{custom:(u=a==null?void 0:a.custom)!==null&&u!==void 0?u:t});!i&&(l==null||l.then(o))},[i])})},au=function(){function e(t,r,n){var i=this,o=n===void 0?{}:n,a=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var h=Kr(i.lastMoveEventInfo,i.history),f=i.startEvent!==null,p=Ks(h.offset,{x:0,y:0})>=3;if(!(!f&&!p)){var v=h.point,g=pr().timestamp;i.history.push(w(w({},v),{timestamp:g}));var y=i.handlers,T=y.onStart,S=y.onMove;f||(T&&T(i.lastMoveEvent,h),i.startEvent=i.lastMoveEvent),S&&S(i.lastMoveEvent,h)}}},this.handlePointerMove=function(h,f){if(i.lastMoveEvent=h,i.lastMoveEventInfo=Xr(f,i.transformPagePoint),Os(h)&&h.buttons===0){i.handlePointerUp(h,f);return}de.update(i.updatePoint,!0)},this.handlePointerUp=function(h,f){i.end();var p=i.handlers,v=p.onEnd,g=p.onSessionEnd,y=Kr(Xr(f,i.transformPagePoint),i.history);i.startEvent&&v&&v(h,y),g&&g(h,y)},!(xs(t)&&t.touches.length>1)){this.handlers=r,this.transformPagePoint=a;var s=$n(t),u=Xr(s,this.transformPagePoint),l=u.point,c=pr().timestamp;this.history=[w(w({},l),{timestamp:c})];var d=r.onSessionStart;d&&d(t,Kr(u,this.history)),this.removeListeners=Rr(Ge(window,"pointermove",this.handlePointerMove),Ge(window,"pointerup",this.handlePointerUp),Ge(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),Ke.update(this.updatePoint)},e}();function Xr(e,t){return t?{point:t(e.point)}:e}function Ki(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kr(e,t){var r=e.point;return{point:r,delta:Ki(r,su(t)),offset:Ki(r,Np(t)),velocity:Vp(t,.1)}}function Np(e){return e[0]}function su(e){return e[e.length-1]}function Vp(e,t){if(e.length<2)return{x:0,y:0};for(var r=e.length-1,n=null,i=su(e);r>=0&&(n=e[r],!(i.timestamp-n.timestamp>gr(t)));)r--;if(!n)return{x:0,y:0};var o=(i.timestamp-n.timestamp)/1e3;if(o===0)return{x:0,y:0};var a={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function ve(e){return e.max-e.min}function Zi(e,t,r){return t===void 0&&(t=0),r===void 0&&(r=.01),Ks(e,t)<r}function Ji(e,t,r,n){n===void 0&&(n=.5),e.origin=n,e.originPoint=B(t.min,t.max,e.origin),e.scale=ve(r)/ve(t),(Zi(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=B(r.min,r.max,e.origin)-e.originPoint,(Zi(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Dt(e,t,r,n){Ji(e.x,t.x,r.x,n==null?void 0:n.originX),Ji(e.y,t.y,r.y,n==null?void 0:n.originY)}function Qi(e,t,r){e.min=r.min+t.min,e.max=e.min+ve(t)}function _p(e,t,r){Qi(e.x,t.x,r.x),Qi(e.y,t.y,r.y)}function eo(e,t,r){e.min=t.min-r.min,e.max=e.min+ve(t)}function wt(e,t,r){eo(e.x,t.x,r.x),eo(e.y,t.y,r.y)}function Fp(e,t,r){var n=t.min,i=t.max;return n!==void 0&&e<n?e=r?B(n,e,r.min):Math.max(e,n):i!==void 0&&e>i&&(e=r?B(i,e,r.max):Math.min(e,i)),e}function to(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function jp(e,t){var r=t.top,n=t.left,i=t.bottom,o=t.right;return{x:to(e.x,n,o),y:to(e.y,r,i)}}function ro(e,t){var r,n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=k([i,n],2),n=r[0],i=r[1]),{min:n,max:i}}function Bp(e,t){return{x:ro(e.x,t.x),y:ro(e.y,t.y)}}function kp(e,t){var r=.5,n=ve(e),i=ve(t);return i>n?r=At(t.min,t.max-n,e.min):n>i&&(r=At(e.min,e.max-i,t.min)),fr(0,1,r)}function Hp(e,t){var r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var wn=.35;function zp(e){return e===void 0&&(e=wn),e===!1?e=0:e===!0&&(e=wn),{x:no(e,"left","right"),y:no(e,"top","bottom")}}function no(e,t,r){return{min:io(e,t),max:io(e,r)}}function io(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}var oo=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Et=function(){return{x:oo(),y:oo()}},ao=function(){return{min:0,max:0}},z=function(){return{x:ao(),y:ao()}};function ue(e){return[e("x"),e("y")]}function uu(e){var t=e.top,r=e.left,n=e.right,i=e.bottom;return{x:{min:r,max:n},y:{min:t,max:i}}}function Up(e){var t=e.x,r=e.y;return{top:r.min,right:t.max,bottom:r.max,left:t.min}}function qp(e,t){if(!t)return e;var r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Zr(e){return e===void 0||e===1}function lu(e){var t=e.scale,r=e.scaleX,n=e.scaleY;return!Zr(t)||!Zr(r)||!Zr(n)}function De(e){return lu(e)||so(e.x)||so(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function so(e){return e&&e!=="0%"}function mr(e,t,r){var n=e-r,i=t*n;return r+i}function uo(e,t,r,n,i){return i!==void 0&&(e=mr(e,i,n)),mr(e,r,n)+t}function En(e,t,r,n,i){t===void 0&&(t=0),r===void 0&&(r=1),e.min=uo(e.min,t,r,n,i),e.max=uo(e.max,t,r,n,i)}function cu(e,t){var r=t.x,n=t.y;En(e.x,r.translate,r.scale,r.originPoint),En(e.y,n.translate,n.scale,n.originPoint)}function Wp(e,t,r,n){var i,o;n===void 0&&(n=!1);var a=r.length;if(a){t.x=t.y=1;for(var s,u,l=0;l<a;l++)s=r[l],u=s.projectionDelta,((o=(i=s.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Ue(e,{x:-s.scroll.x,y:-s.scroll.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,cu(e,u)),n&&De(s.latestValues)&&Ue(e,s.latestValues))}}function we(e,t){e.min=e.min+t,e.max=e.max+t}function lo(e,t,r){var n=k(r,3),i=n[0],o=n[1],a=n[2],s=t[a]!==void 0?t[a]:.5,u=B(e.min,e.max,s);En(e,t[i],t[o],u,t.scale)}var $p=["x","scaleX","originX"],Gp=["y","scaleY","originY"];function Ue(e,t){lo(e.x,t,$p),lo(e.y,t,Gp)}function du(e,t){return uu(qp(e.getBoundingClientRect(),t))}function Yp(e,t,r){var n=du(e,r),i=t.scroll;return i&&(we(n.x,i.x),we(n.y,i.y)),n}var Xp=new WeakMap,Kp=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=z(),this.visualElement=t}return e.prototype.start=function(t,r){var n=this,i=r===void 0?{}:r,o=i.snapToCursor,a=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var s=function(d){n.stopAnimation(),a&&n.snapToCursor($n(d,"page").point)},u=function(d,h){var f,p=n.getProps(),v=p.drag,g=p.dragPropagation,y=p.onDragStart;v&&!g&&(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=Ms(v),!n.openGlobalLock)||(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),ue(function(T){var S,b,D=n.getAxisMotionValue(T).get()||0;if(ce.test(D)){var E=(b=(S=n.visualElement.projection)===null||S===void 0?void 0:S.layout)===null||b===void 0?void 0:b.actual[T];if(E){var C=ve(E);D=C*(parseFloat(D)/100)}}n.originPoint[T]=D}),y==null||y(d,h),(f=n.visualElement.animationState)===null||f===void 0||f.setActive(F.Drag,!0))},l=function(d,h){var f=n.getProps(),p=f.dragPropagation,v=f.dragDirectionLock,g=f.onDirectionLock,y=f.onDrag;if(!(!p&&!n.openGlobalLock)){var T=h.offset;if(v&&n.currentDirection===null){n.currentDirection=Zp(T),n.currentDirection!==null&&(g==null||g(n.currentDirection));return}n.updateAxis("x",h.point,T),n.updateAxis("y",h.point,T),n.visualElement.syncRender(),y==null||y(d,h)}},c=function(d,h){return n.stop(d,h)};this.panSession=new au(t,{onSessionStart:s,onStart:u,onMove:l,onSessionEnd:c},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,r){var n=this.isDragging;if(this.cancel(),!!n){var i=r.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,r)}},e.prototype.cancel=function(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var n=this.getProps().dragPropagation;!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(F.Drag,!1)},e.prototype.updateAxis=function(t,r,n){var i=this.getProps().drag;if(!(!n||!Kt(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=Fp(a,this.constraints[t],this.elastic[t])),o.set(a)}},e.prototype.resolveConstraints=function(){var t=this,r=this.getProps(),n=r.dragConstraints,i=r.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&ze(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=jp(o.actual,n):this.constraints=!1,this.elastic=zp(i),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ue(function(s){t.getAxisMotionValue(s)&&(t.constraints[s]=Hp(o.actual[s],t.constraints[s]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),r=t.dragConstraints,n=t.onMeasureDragConstraints;if(!r||!ze(r))return!1;var i=r.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=Yp(i,o.root,this.visualElement.getTransformPagePoint()),s=Bp(o.layout.actual,a);if(n){var u=n(Up(s));this.hasMutatedConstraints=!!u,u&&(s=uu(u))}return s},e.prototype.startAnimation=function(t){var r=this,n=this.getProps(),i=n.drag,o=n.dragMomentum,a=n.dragElastic,s=n.dragTransition,u=n.dragSnapToOrigin,l=n.onDragTransitionEnd,c=this.constraints||{},d=ue(function(h){var f;if(Kt(h,i,r.currentDirection)){var p=(f=c==null?void 0:c[h])!==null&&f!==void 0?f:{};u&&(p={min:0,max:0});var v=a?200:1e6,g=a?40:1e7,y=w(w({type:"inertia",velocity:o?t[h]:0,bounceStiffness:v,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10},s),p);return r.startAxisValueAnimation(h,y)}});return Promise.all(d).then(l)},e.prototype.startAxisValueAnimation=function(t,r){var n=this.getAxisMotionValue(t);return ri(t,n,0,r)},e.prototype.stopAnimation=function(){var t=this;ue(function(r){return t.getAxisMotionValue(r).stop()})},e.prototype.getAxisMotionValue=function(t){var r,n,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)},e.prototype.snapToCursor=function(t){var r=this;ue(function(n){var i=r.getProps().drag;if(Kt(n,i,r.currentDirection)){var o=r.visualElement.projection,a=r.getAxisMotionValue(n);if(o&&o.layout){var s=o.layout.actual[n],u=s.min,l=s.max;a.set(t[n]-B(u,l,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,r,n=this.getProps(),i=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(!(!ze(o)||!a||!this.constraints)){this.stopAnimation();var s={x:0,y:0};ue(function(l){var c=t.getAxisMotionValue(l);if(c){var d=c.get();s[l]=kp({min:d,max:d},t.constraints[l])}});var u=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=u?u({},""):"none",(r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout(),this.resolveConstraints(),ue(function(l){if(Kt(l,i,null)){var c=t.getAxisMotionValue(l),d=t.constraints[l],h=d.min,f=d.max;c.set(B(h,f,s[l]))}})}},e.prototype.addListeners=function(){var t=this,r;Xp.set(this.visualElement,this);var n=this.visualElement.getInstance(),i=Ge(n,"pointerdown",function(l){var c=t.getProps(),d=c.drag,h=c.dragListener,f=h===void 0?!0:h;d&&f&&t.start(l)}),o=function(){var l=t.getProps().dragConstraints;ze(l)&&(t.constraints=t.resolveRefConstraints())},a=this.visualElement.projection,s=a.addEventListener("measure",o);a&&!a.layout&&((r=a.root)===null||r===void 0||r.updateScroll(),a.updateLayout()),o();var u=Pr(window,"resize",function(){return t.scalePositionWithinConstraints()});return a.addEventListener("didUpdate",function(l){var c=l.delta,d=l.hasLayoutChanged;t.isDragging&&d&&(ue(function(h){var f=t.getAxisMotionValue(h);f&&(t.originPoint[h]+=c[h].translate,f.set(f.get()+c[h].translate))}),t.visualElement.syncRender())}),function(){u(),i(),s()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),r=t.drag,n=r===void 0?!1:r,i=t.dragDirectionLock,o=i===void 0?!1:i,a=t.dragPropagation,s=a===void 0?!1:a,u=t.dragConstraints,l=u===void 0?!1:u,c=t.dragElastic,d=c===void 0?wn:c,h=t.dragMomentum,f=h===void 0?!0:h;return w(w({},t),{drag:n,dragDirectionLock:o,dragPropagation:s,dragConstraints:l,dragElastic:d,dragMomentum:f})},e}();function Kt(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function Zp(e,t){t===void 0&&(t=10);var r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function Jp(e){var t=e.dragControls,r=e.visualElement,n=Ir(function(){return new Kp(r)});m.useEffect(function(){return t&&t.subscribe(n)},[n,t]),m.useEffect(function(){return n.addListeners()},[n])}function Qp(e){var t=e.onPan,r=e.onPanStart,n=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,a=t||r||n||i,s=m.useRef(null),u=m.useContext(jn).transformPagePoint,l={onSessionStart:i,onStart:r,onMove:t,onEnd:function(d,h){s.current=null,n&&n(d,h)}};m.useEffect(function(){s.current!==null&&s.current.updateHandlers(l)});function c(d){s.current=new au(d,l,{transformPagePoint:u})}dr(o,"pointerdown",a&&c),Ns(function(){return s.current&&s.current.end()})}var ev={pan:Ce(Qp),drag:Ce(Jp)},Zt=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function tv(){var e=Zt.map(function(){return new St}),t={},r={clearAllListeners:function(){return e.forEach(function(n){return n.clear()})},updatePropListeners:function(n){Zt.forEach(function(i){var o,a="on"+i,s=n[a];(o=t[i])===null||o===void 0||o.call(t),s&&(t[i]=r[a](s))})}};return e.forEach(function(n,i){r["on"+Zt[i]]=function(o){return n.add(o)},r["notify"+Zt[i]]=function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return n.notify.apply(n,le([],k(o),!1))}}),r}function rv(e,t,r){var n;for(var i in t){var o=t[i],a=r[i];if(he(o))e.addValue(i,o);else if(he(a))e.addValue(i,Ze(o));else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else e.addValue(i,Ze((n=e.getStaticValue(i))!==null&&n!==void 0?n:o))}for(var i in r)t[i]===void 0&&e.removeValue(i);return t}var fu=function(e){var t=e.treeType,r=t===void 0?"":t,n=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,a=e.measureViewportBox,s=e.render,u=e.readValueFromInstance,l=e.removeValueFromRenderState,c=e.sortNodePosition,d=e.scrapeMotionValuesFromProps;return function(h,f){var p=h.parent,v=h.props,g=h.presenceId,y=h.blockInitialAnimation,T=h.visualState,S=h.shouldReduceMotion;f===void 0&&(f={});var b=!1,D=T.latestValues,E=T.renderState,C,x=tv(),I=new Map,L=new Map,j={},H=w({},D),G;function Y(){!C||!b||(te(),s(C,E,v.style,N.projection))}function te(){n(N,E,D,f,v)}function be(){x.notifyUpdate(D)}function X(O,P){var U=P.onChange(function(kt){D[O]=kt,v.onUpdate&&de.update(be,!1,!0)}),tt=P.onRenderRequest(N.scheduleRender);L.set(O,function(){U(),tt()})}var et=d(v);for(var Fe in et){var Bt=et[Fe];D[Fe]!==void 0&&he(Bt)&&Bt.set(D[Fe],!1)}var je=xr(v),$=rs(v),N=w(w({treeType:r,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:g,shouldReduceMotion:S,variantChildren:$?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(p!=null&&p.isMounted()),blockInitialAnimation:y,isMounted:function(){return!!C},mount:function(O){b=!0,C=N.current=O,N.projection&&N.projection.mount(O),$&&p&&!je&&(G=p==null?void 0:p.addVariantChild(N)),I.forEach(function(P,U){return X(U,P)}),p==null||p.children.add(N),N.setProps(v)},unmount:function(){var O;(O=N.projection)===null||O===void 0||O.unmount(),Ke.update(be),Ke.render(Y),L.forEach(function(P){return P()}),G==null||G(),p==null||p.children.delete(N),x.clearAllListeners(),C=void 0,b=!1},addVariantChild:function(O){var P,U=N.getClosestVariantNode();if(U)return(P=U.variantChildren)===null||P===void 0||P.add(O),function(){return U.variantChildren.delete(O)}},sortNodePosition:function(O){return!c||r!==O.treeType?0:c(N.getInstance(),O.getInstance())},getClosestVariantNode:function(){return $?N:p==null?void 0:p.getClosestVariantNode()},getLayoutId:function(){return v.layoutId},getInstance:function(){return C},getStaticValue:function(O){return D[O]},setStaticValue:function(O,P){return D[O]=P},getLatestValues:function(){return D},setVisibility:function(O){N.isVisible!==O&&(N.isVisible=O,N.scheduleRender())},makeTargetAnimatable:function(O,P){return P===void 0&&(P=!0),o(N,O,v,P)},measureViewportBox:function(){return a(C,v)},addValue:function(O,P){N.hasValue(O)&&N.removeValue(O),I.set(O,P),D[O]=P.get(),X(O,P)},removeValue:function(O){var P;I.delete(O),(P=L.get(O))===null||P===void 0||P(),L.delete(O),delete D[O],l(O,E)},hasValue:function(O){return I.has(O)},getValue:function(O,P){var U=I.get(O);return U===void 0&&P!==void 0&&(U=Ze(P),N.addValue(O,U)),U},forEachValue:function(O){return I.forEach(O)},readValue:function(O){var P;return(P=D[O])!==null&&P!==void 0?P:u(C,O,f)},setBaseTarget:function(O,P){H[O]=P},getBaseTarget:function(O){if(i){var P=i(v,O);if(P!==void 0&&!he(P))return P}return H[O]}},x),{build:function(){return te(),E},scheduleRender:function(){de.render(Y,!1,!0)},syncRender:Y,setProps:function(O){(O.transformTemplate||v.transformTemplate)&&N.scheduleRender(),v=O,x.updatePropListeners(O),j=rv(N,d(v),j)},getProps:function(){return v},getVariant:function(O){var P;return(P=v.variants)===null||P===void 0?void 0:P[O]},getDefaultTransition:function(){return v.transition},getTransformPagePoint:function(){return v.transformPagePoint},getVariantContext:function(O){if(O===void 0&&(O=!1),O)return p==null?void 0:p.getVariantContext();if(!je){var P=(p==null?void 0:p.getVariantContext())||{};return v.initial!==void 0&&(P.initial=v.initial),P}for(var U={},tt=0;tt<nv;tt++){var kt=hu[tt],Nr=v[kt];(oe(Nr)||Nr===!1)&&(U[kt]=Nr)}return U}});return N}},hu=le(["initial"],k(oi),!1),nv=hu.length;function Cn(e){return typeof e=="string"&&e.startsWith("var(--")}var pu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function iv(e){var t=pu.exec(e);if(!t)return[,];var r=k(t,3),n=r[1],i=r[2];return[n,i]}function On(e,t,r){var n=k(iv(e),2),i=n[0],o=n[1];if(i){var a=window.getComputedStyle(t).getPropertyValue(i);return a?a.trim():Cn(o)?On(o,t):o}}function ov(e,t,r){var n,i=ee(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:r};r&&(r=w({},r)),e.forEachValue(function(l){var c=l.get();if(Cn(c)){var d=On(c,o);d&&l.set(d)}});for(var a in i){var s=i[a];if(Cn(s)){var u=On(s,o);u&&(i[a]=u,r&&((n=r[a])!==null&&n!==void 0||(r[a]=s)))}}return{target:i,transitionEnd:r}}var av=new Set(["width","height","top","left","right","bottom","x","y"]),vu=function(e){return av.has(e)},sv=function(e){return Object.keys(e).some(vu)},gu=function(e,t){e.set(t,!1),e.set(t)},co=function(e){return e===_e||e===R},fo;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(fo||(fo={}));var ho=function(e,t){return parseFloat(e.split(", ")[t])},po=function(e,t){return function(r,n){var i=n.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return ho(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?ho(a[1],e):0}},uv=new Set(["x","y","z"]),lv=Pt.filter(function(e){return!uv.has(e)});function cv(e){var t=[];return lv.forEach(function(r){var n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var vo={width:function(e,t){var r=e.x,n=t.paddingLeft,i=n===void 0?"0":n,o=t.paddingRight,a=o===void 0?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var r=e.y,n=t.paddingTop,i=n===void 0?"0":n,o=t.paddingBottom,a=o===void 0?"0":o;return r.max-r.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var r=t.top;return parseFloat(r)},left:function(e,t){var r=t.left;return parseFloat(r)},bottom:function(e,t){var r=e.y,n=t.top;return parseFloat(n)+(r.max-r.min)},right:function(e,t){var r=e.x,n=t.left;return parseFloat(n)+(r.max-r.min)},x:po(4,13),y:po(5,14)},dv=function(e,t,r){var n=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),a=o.display,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(function(l){s[l]=vo[l](n,o)}),t.syncRender();var u=t.measureViewportBox();return r.forEach(function(l){var c=t.getValue(l);gu(c,s[l]),e[l]=vo[l](u,o)}),e},fv=function(e,t,r,n){r===void 0&&(r={}),n===void 0&&(n={}),t=w({},t),n=w({},n);var i=Object.keys(t).filter(vu),o=[],a=!1,s=[];if(i.forEach(function(c){var d=e.getValue(c);if(e.hasValue(c)){var h=r[c],f=rt(h),p=t[c],v;if(Mt(p)){var g=p.length,y=p[0]===null?1:0;h=p[y],f=rt(h);for(var T=y;T<g;T++)v?It(rt(p[T])===v):v=rt(p[T])}else v=rt(p);if(f!==v)if(co(f)&&co(v)){var S=d.get();typeof S=="string"&&d.set(parseFloat(S)),typeof p=="string"?t[c]=parseFloat(p):Array.isArray(p)&&v===R&&(t[c]=p.map(parseFloat))}else f!=null&&f.transform&&(v!=null&&v.transform)&&(h===0||p===0)?h===0?d.set(v.transform(h)):t[c]=f.transform(p):(a||(o=cv(e),a=!0),s.push(c),n[c]=n[c]!==void 0?n[c]:t[c],gu(d,p))}}),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,l=dv(t,e,s);return o.length&&o.forEach(function(c){var d=k(c,2),h=d[0],f=d[1];e.getValue(h).set(f)}),e.syncRender(),u!==null&&window.scrollTo({top:u}),{target:l,transitionEnd:n}}else return{target:t,transitionEnd:n}};function hv(e,t,r,n){return sv(t)?fv(e,t,r,n):{target:t,transitionEnd:n}}var pv=function(e,t,r,n){var i=ov(e,t,n);return t=i.target,n=i.transitionEnd,hv(e,t,r,n)};function vv(e){return window.getComputedStyle(e)}var mu={treeType:"dom",readValueFromInstance:function(e,t){if(Nt(t)){var r=Qn(t);return r&&r.default||0}else{var n=vv(e);return(ss(t)?n.getPropertyValue(t):n[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var r;return(r=e.style)===null||r===void 0?void 0:r[t]},measureViewportBox:function(e,t){var r=t.transformPagePoint;return du(e,r)},resetTransform:function(e,t,r){var n=r.transformTemplate;t.style.transform=n?n({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var r=t.vars,n=t.style;delete r[e],delete n[e]},makeTargetAnimatable:function(e,t,r,n){var i=r.transformValues;n===void 0&&(n=!0);var o=t.transition,a=t.transitionEnd,s=ee(t,["transition","transitionEnd"]),u=Dp(s,o||{},e);if(i&&(a&&(a=i(a)),s&&(s=i(s)),u&&(u=i(u))),n){Tp(e,s,u);var l=pv(e,s,u,a);a=l.transitionEnd,s=l.target}return w({transition:o,transitionEnd:a},s)},scrapeMotionValuesFromProps:qn,build:function(e,t,r,n,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Hn(t,r,n,i.transformTemplate)},render:Ts},gv=fu(mu),mv=fu(w(w({},mu),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var r;return Nt(t)?((r=Qn(t))===null||r===void 0?void 0:r.default)||0:(t=Ss.has(t)?t:bs(t),e.getAttribute(t))},scrapeMotionValuesFromProps:ws,build:function(e,t,r,n,i){Un(t,r,n,i.transformTemplate)},render:Ds})),yv=function(e,t){return Bn(e)?mv(t,{enableHardwareAcceleration:!1}):gv(t,{enableHardwareAcceleration:!0})};function go(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var nt={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(R.test(e))e=parseFloat(e);else return e;var r=go(e,t.target.x),n=go(e,t.target.y);return"".concat(r,"% ").concat(n,"%")}},mo="_$css",bv={correct:function(e,t){var r=t.treeScale,n=t.projectionDelta,i=e,o=e.includes("var("),a=[];o&&(e=e.replace(pu,function(v){return a.push(v),mo}));var s=pe.parse(e);if(s.length>5)return i;var u=pe.createTransformer(e),l=typeof s[0]!="number"?1:0,c=n.x.scale*r.x,d=n.y.scale*r.y;s[0+l]/=c,s[1+l]/=d;var h=B(c,d,.5);typeof s[2+l]=="number"&&(s[2+l]/=h),typeof s[3+l]=="number"&&(s[3+l]/=h);var f=u(s);if(o){var p=0;f=f.replace(mo,function(){var v=a[p];return p++,v})}return f}},Tv=function(e){wa(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var r=this,n=this.props,i=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,s=n.layoutId,u=i.projection;qd(Dv),u&&(o!=null&&o.group&&o.group.add(u),a!=null&&a.register&&s&&a.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",function(){r.safeToRemove()}),u.setOptions(w(w({},u.options),{onExitComplete:function(){return r.safeToRemove()}}))),yt.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(r){var n=this,i=this.props,o=i.layoutDependency,a=i.visualElement,s=i.drag,u=i.isPresent,l=a.projection;return l&&(l.isPresent=u,s||r.layoutDependency!==o||o===void 0?l.willUpdate():this.safeToRemove(),r.isPresent!==u&&(u?l.promote():l.relegate()||de.postRender(function(){var c;!((c=l.getStack())===null||c===void 0)&&c.members.length||n.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var r=this.props.visualElement.projection;r&&(r.root.didUpdate(),!r.currentAnimation&&r.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var r=this.props,n=r.visualElement,i=r.layoutGroup,o=r.switchLayoutGroup,a=n.projection;a&&(a.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(a),o!=null&&o.deregister&&o.deregister(a))},t.prototype.safeToRemove=function(){var r=this.props.safeToRemove;r==null||r()},t.prototype.render=function(){return null},t}(V.Component);function Sv(e){var t=k(tu(),2),r=t[0],n=t[1],i=m.useContext(ns);return V.createElement(Tv,w({},e,{layoutGroup:i,switchLayoutGroup:m.useContext(is),isPresent:r,safeToRemove:n}))}var Dv={borderRadius:w(w({},nt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:nt,borderTopRightRadius:nt,borderBottomLeftRadius:nt,borderBottomRightRadius:nt,boxShadow:bv},wv={measureLayout:Sv};function Ev(e,t,r){r===void 0&&(r={});var n=he(e)?e:Ze(e);return ri("",n,t,r),{stop:function(){return n.stop()},isAnimating:function(){return n.isAnimating()}}}var yu=["TopLeft","TopRight","BottomLeft","BottomRight"],Cv=yu.length,yo=function(e){return typeof e=="string"?parseFloat(e):e},bo=function(e){return typeof e=="number"||R.test(e)};function Ov(e,t,r,n,i,o){var a,s,u,l;i?(e.opacity=B(0,(a=r.opacity)!==null&&a!==void 0?a:1,xv(n)),e.opacityExit=B((s=t.opacity)!==null&&s!==void 0?s:1,0,Iv(n))):o&&(e.opacity=B((u=t.opacity)!==null&&u!==void 0?u:1,(l=r.opacity)!==null&&l!==void 0?l:1,n));for(var c=0;c<Cv;c++){var d="border".concat(yu[c],"Radius"),h=To(t,d),f=To(r,d);if(!(h===void 0&&f===void 0)){h||(h=0),f||(f=0);var p=h===0||f===0||bo(h)===bo(f);p?(e[d]=Math.max(B(yo(h),yo(f),n),0),(ce.test(f)||ce.test(h))&&(e[d]+="%")):e[d]=f}}(t.rotate||r.rotate)&&(e.rotate=B(t.rotate||0,r.rotate||0,n))}function To(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}var xv=bu(0,.5,Zn),Iv=bu(.5,.95,Xn);function bu(e,t,r){return function(n){return n<e?0:n>t?1:r(At(e,t,n))}}function So(e,t){e.min=t.min,e.max=t.max}function re(e,t){So(e.x,t.x),So(e.y,t.y)}function Do(e,t,r,n,i){return e-=t,e=mr(e,1/r,n),i!==void 0&&(e=mr(e,1/i,n)),e}function Pv(e,t,r,n,i,o,a){if(t===void 0&&(t=0),r===void 0&&(r=1),n===void 0&&(n=.5),o===void 0&&(o=e),a===void 0&&(a=e),ce.test(t)){t=parseFloat(t);var s=B(a.min,a.max,t/100);t=s-a.min}if(typeof t=="number"){var u=B(o.min,o.max,n);e===o&&(u-=t),e.min=Do(e.min,t,r,u,i),e.max=Do(e.max,t,r,u,i)}}function wo(e,t,r,n,i){var o=k(r,3),a=o[0],s=o[1],u=o[2];Pv(e,t[a],t[s],t[u],t.scale,n,i)}var Rv=["x","scaleX","originX"],Mv=["y","scaleY","originY"];function Eo(e,t,r,n){wo(e.x,t,Rv,r==null?void 0:r.x,n==null?void 0:n.x),wo(e.y,t,Mv,r==null?void 0:r.y,n==null?void 0:n.y)}function Co(e){return e.translate===0&&e.scale===1}function Tu(e){return Co(e.x)&&Co(e.y)}function Su(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var Av=function(){function e(){this.members=[]}return e.prototype.add=function(t){ni(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(ii(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var r=this.members[this.members.length-1];r&&this.promote(r)}},e.prototype.relegate=function(t){var r=this.members.findIndex(function(a){return t===a});if(r===0)return!1;for(var n,i=r;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1},e.prototype.promote=function(t,r){var n,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var r,n,i,o,a;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(a=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||a===void 0||a.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),Lv="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function Oo(e,t,r){var n=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(n,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),r){var a=r.rotate,s=r.rotateX,u=r.rotateY;a&&(o+="rotate(".concat(a,"deg) ")),s&&(o+="rotateX(".concat(s,"deg) ")),u&&(o+="rotateY(".concat(u,"deg) "))}var l=e.x.scale*t.x,c=e.y.scale*t.y;return o+="scale(".concat(l,", ").concat(c,")"),o===Lv?"none":o}var Nv=function(e,t){return e.depth-t.depth},Vv=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){ni(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){ii(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(Nv),this.isDirty=!1,this.children.forEach(t)},e}(),xo=1e3;function Du(e){var t=e.attachResizeListener,r=e.defaultParent,n=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function a(s,u,l){var c=this;u===void 0&&(u={}),l===void 0&&(l=r==null?void 0:r()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){c.isUpdating&&(c.isUpdating=!1,c.clearAllSnapshots())},this.updateProjection=function(){c.nodes.forEach(Hv),c.nodes.forEach(zv)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=s,this.latestValues=u,this.root=l?l.root||l:this,this.path=l?le(le([],k(l.path),!1),[l],!1):[],this.parent=l,this.depth=l?l.depth+1:0,s&&this.root.registerPotentialNode(s,this);for(var d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vv)}return a.prototype.addEventListener=function(s,u){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new St),this.eventHandlers.get(s).add(u)},a.prototype.notifyListeners=function(s){for(var u=[],l=1;l<arguments.length;l++)u[l-1]=arguments[l];var c=this.eventHandlers.get(s);c==null||c.notify.apply(c,le([],k(u),!1))},a.prototype.hasListeners=function(s){return this.eventHandlers.has(s)},a.prototype.registerPotentialNode=function(s,u){this.potentialNodes.set(s,u)},a.prototype.mount=function(s,u){var l=this,c;if(u===void 0&&(u=!1),!this.instance){this.isSVG=s instanceof SVGElement&&s.tagName!=="svg",this.instance=s;var d=this.options,h=d.layoutId,f=d.layout,p=d.visualElement;if(p&&!p.getInstance()&&p.mount(s),this.root.nodes.add(this),(c=this.parent)===null||c===void 0||c.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),u&&(f||h)&&(this.isLayoutDirty=!0),t){var v,g=function(){return l.root.updateBlockedByResize=!1};t(s,function(){l.root.updateBlockedByResize=!0,clearTimeout(v),v=window.setTimeout(g,250),yt.hasAnimatedSinceResize&&(yt.hasAnimatedSinceResize=!1,l.nodes.forEach(kv))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&p&&(h||f)&&this.addEventListener("didUpdate",function(y){var T,S,b,D,E,C=y.delta,x=y.hasLayoutChanged,I=y.hasRelativeTargetChanged,L=y.layout;if(l.isTreeAnimationBlocked()){l.target=void 0,l.relativeTarget=void 0;return}var j=(S=(T=l.options.transition)!==null&&T!==void 0?T:p.getDefaultTransition())!==null&&S!==void 0?S:Gv,H=p.getProps(),G=H.onLayoutAnimationStart,Y=H.onLayoutAnimationComplete,te=!l.targetLayout||!Su(l.targetLayout,L)||I,be=!x&&I;if(!((b=l.resumeFrom)===null||b===void 0)&&b.instance||be||x&&(te||!l.currentAnimation)){l.resumeFrom&&(l.resumingFrom=l.resumeFrom,l.resumingFrom.resumingFrom=void 0),l.setAnimationOrigin(C,be);var X=w(w({},ti(j,"layout")),{onPlay:G,onComplete:Y});p.shouldReduceMotion&&(X.delay=0,X.type=!1),l.startAnimation(X)}else!x&&l.animationProgress===0&&l.finishAnimation(),l.isLead()&&((E=(D=l.options).onExitComplete)===null||E===void 0||E.call(D));l.targetLayout=L})}},a.prototype.unmount=function(){var s,u;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(s=this.getStack())===null||s===void 0||s.remove(this),(u=this.parent)===null||u===void 0||u.children.delete(this),this.instance=void 0,Ke.preRender(this.updateProjection)},a.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},a.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},a.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},a.prototype.isTreeAnimationBlocked=function(){var s;return this.isAnimationBlocked||((s=this.parent)===null||s===void 0?void 0:s.isTreeAnimationBlocked())||!1},a.prototype.startUpdate=function(){var s;this.isUpdateBlocked()||(this.isUpdating=!0,(s=this.nodes)===null||s===void 0||s.forEach(Uv))},a.prototype.willUpdate=function(s){var u,l,c;if(s===void 0&&(s=!0),this.root.isUpdateBlocked()){(l=(u=this.options).onExitComplete)===null||l===void 0||l.call(u);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var d=0;d<this.path.length;d++){var h=this.path[d];h.shouldResetTransform=!0,h.updateScroll()}var f=this.options,p=f.layoutId,v=f.layout;if(!(p===void 0&&!v)){var g=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;this.prevTransformTemplateValue=g==null?void 0:g(this.latestValues,""),this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}}},a.prototype.didUpdate=function(){var s=this.isUpdateBlocked();if(s){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Io);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(Yv),this.potentialNodes.clear()),this.nodes.forEach(Bv),this.nodes.forEach(_v),this.nodes.forEach(Fv),this.clearAllSnapshots(),$r.update(),$r.preRender(),$r.render())},a.prototype.clearAllSnapshots=function(){this.nodes.forEach(jv),this.sharedNodes.forEach(qv)},a.prototype.scheduleUpdateProjection=function(){de.preRender(this.updateProjection,!1,!0)},a.prototype.scheduleCheckAfterUnmount=function(){var s=this;de.postRender(function(){s.isLayoutDirty?s.root.didUpdate():s.root.checkUpdateFailed()})},a.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var s=this.measure(),u=this.removeTransform(this.removeElementScroll(s));Ao(u),this.snapshot={measured:s,layout:u,latestValues:{}}}},a.prototype.updateLayout=function(){var s;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var u=0;u<this.path.length;u++){var l=this.path[u];l.updateScroll()}var c=this.measure();Ao(c);var d=this.layout;this.layout={measured:c,actual:this.removeElementScroll(c)},this.layoutCorrected=z(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(s=this.options.visualElement)===null||s===void 0||s.notifyLayoutMeasure(this.layout.actual,d==null?void 0:d.actual)}},a.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=n(this.instance))},a.prototype.resetTransform=function(){var s;if(o){var u=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Tu(this.projectionDelta),c=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate,d=c==null?void 0:c(this.latestValues,""),h=d!==this.prevTransformTemplateValue;u&&(l||De(this.latestValues)||h)&&(o(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}},a.prototype.measure=function(){var s=this.options.visualElement;if(!s)return z();var u=s.measureViewportBox(),l=this.root.scroll;return l&&(we(u.x,l.x),we(u.y,l.y)),u},a.prototype.removeElementScroll=function(s){var u=z();re(u,s);for(var l=0;l<this.path.length;l++){var c=this.path[l],d=c.scroll,h=c.options,f=c.isScrollRoot;if(c!==this.root&&d&&h.layoutScroll){if(f){re(u,s);var p=this.root.scroll;p&&(we(u.x,-p.x),we(u.y,-p.y))}we(u.x,d.x),we(u.y,d.y)}}return u},a.prototype.applyTransform=function(s,u){u===void 0&&(u=!1);var l=z();re(l,s);for(var c=0;c<this.path.length;c++){var d=this.path[c];!u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Ue(l,{x:-d.scroll.x,y:-d.scroll.y}),De(d.latestValues)&&Ue(l,d.latestValues)}return De(this.latestValues)&&Ue(l,this.latestValues),l},a.prototype.removeTransform=function(s){var u,l=z();re(l,s);for(var c=0;c<this.path.length;c++){var d=this.path[c];if(d.instance&&De(d.latestValues)){lu(d.latestValues)&&d.updateSnapshot();var h=z(),f=d.measure();re(h,f),Eo(l,d.latestValues,(u=d.snapshot)===null||u===void 0?void 0:u.layout,h)}}return De(this.latestValues)&&Eo(l,this.latestValues),l},a.prototype.setTargetDelta=function(s){this.targetDelta=s,this.root.scheduleUpdateProjection()},a.prototype.setOptions=function(s){var u;this.options=w(w(w({},this.options),s),{crossfade:(u=s.crossfade)!==null&&u!==void 0?u:!0})},a.prototype.clearMeasurements=function(){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},a.prototype.resolveTargetDelta=function(){var s,u=this.options,l=u.layout,c=u.layoutId;!this.layout||!(l||c)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=z(),this.relativeTargetOrigin=z(),wt(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),re(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=z(),this.targetWithTransforms=z()),this.relativeTarget&&this.relativeTargetOrigin&&(!((s=this.relativeParent)===null||s===void 0)&&s.target)?_p(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):re(this.target,this.layout.actual),cu(this.target,this.targetDelta)):re(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=z(),this.relativeTargetOrigin=z(),wt(this.relativeTargetOrigin,this.target,this.relativeParent.target),re(this.relativeTarget,this.relativeTargetOrigin)))))},a.prototype.getClosestProjectingParent=function(){if(!(!this.parent||De(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},a.prototype.calcProjection=function(){var s,u=this.options,l=u.layout,c=u.layoutId;if(this.isTreeAnimating=!!(!((s=this.parent)===null||s===void 0)&&s.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(l||c))){var d=this.getLead();re(this.layoutCorrected,this.layout.actual),Wp(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==d);var h=d.target;if(h){this.projectionDelta||(this.projectionDelta=Et(),this.projectionDeltaWithTransform=Et());var f=this.treeScale.x,p=this.treeScale.y,v=this.projectionTransform;Dt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),this.projectionTransform=Oo(this.projectionDelta,this.treeScale),(this.projectionTransform!==v||this.treeScale.x!==f||this.treeScale.y!==p)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}}},a.prototype.hide=function(){this.isVisible=!1},a.prototype.show=function(){this.isVisible=!0},a.prototype.scheduleRender=function(s){var u,l,c;s===void 0&&(s=!0),(l=(u=this.options).scheduleRender)===null||l===void 0||l.call(u),s&&((c=this.getStack())===null||c===void 0||c.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},a.prototype.setAnimationOrigin=function(s,u){var l=this,c;u===void 0&&(u=!1);var d=this.snapshot,h=(d==null?void 0:d.latestValues)||{},f=w({},this.latestValues),p=Et();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!u;var v=z(),g=d==null?void 0:d.isShared,y=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,T=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some($v));this.animationProgress=0,this.mixTargetDelta=function(S){var b,D=S/1e3;Po(p.x,s.x,D),Po(p.y,s.y,D),l.setTargetDelta(p),l.relativeTarget&&l.relativeTargetOrigin&&l.layout&&(!((b=l.relativeParent)===null||b===void 0)&&b.layout)&&(wt(v,l.layout.actual,l.relativeParent.layout.actual),Wv(l.relativeTarget,l.relativeTargetOrigin,v,D)),g&&(l.animationValues=f,Ov(f,h,l.latestValues,D,T,y)),l.root.scheduleUpdateProjection(),l.scheduleRender(),l.animationProgress=D},this.mixTargetDelta(0)},a.prototype.startAnimation=function(s){var u=this,l,c;this.notifyListeners("animationStart"),(l=this.currentAnimation)===null||l===void 0||l.stop(),this.resumingFrom&&((c=this.resumingFrom.currentAnimation)===null||c===void 0||c.stop()),this.pendingAnimation&&(Ke.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=de.update(function(){yt.hasAnimatedSinceResize=!0,u.currentAnimation=Ev(0,xo,w(w({},s),{onUpdate:function(d){var h;u.mixTargetDelta(d),(h=s.onUpdate)===null||h===void 0||h.call(s,d)},onComplete:function(){var d;(d=s.onComplete)===null||d===void 0||d.call(s),u.completeAnimation()}})),u.resumingFrom&&(u.resumingFrom.currentAnimation=u.currentAnimation),u.pendingAnimation=void 0})},a.prototype.completeAnimation=function(){var s;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(s=this.getStack())===null||s===void 0||s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},a.prototype.finishAnimation=function(){var s;this.currentAnimation&&((s=this.mixTargetDelta)===null||s===void 0||s.call(this,xo),this.currentAnimation.stop()),this.completeAnimation()},a.prototype.applyTransformsToTarget=function(){var s=this.getLead(),u=s.targetWithTransforms,l=s.target,c=s.layout,d=s.latestValues;!u||!l||!c||(re(u,l),Ue(u,d),Dt(this.projectionDeltaWithTransform,this.layoutCorrected,u,d))},a.prototype.registerSharedNode=function(s,u){var l,c,d;this.sharedNodes.has(s)||this.sharedNodes.set(s,new Av);var h=this.sharedNodes.get(s);h.add(u),u.promote({transition:(l=u.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(d=(c=u.options.initialPromotionConfig)===null||c===void 0?void 0:c.shouldPreserveFollowOpacity)===null||d===void 0?void 0:d.call(c,u)})},a.prototype.isLead=function(){var s=this.getStack();return s?s.lead===this:!0},a.prototype.getLead=function(){var s,u=this.options.layoutId;return u?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this},a.prototype.getPrevLead=function(){var s,u=this.options.layoutId;return u?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0},a.prototype.getStack=function(){var s=this.options.layoutId;if(s)return this.root.sharedNodes.get(s)},a.prototype.promote=function(s){var u=s===void 0?{}:s,l=u.needsReset,c=u.transition,d=u.preserveFollowOpacity,h=this.getStack();h&&h.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})},a.prototype.relegate=function(){var s=this.getStack();return s?s.relegate(this):!1},a.prototype.resetRotation=function(){var s=this.options.visualElement;if(s){for(var u=!1,l={},c=0;c<dn.length;c++){var d=dn[c],h="rotate"+d;s.getStaticValue(h)&&(u=!0,l[h]=s.getStaticValue(h),s.setStaticValue(h,0))}if(u){s==null||s.syncRender();for(var h in l)s.setStaticValue(h,l[h]);s.scheduleRender()}}},a.prototype.getProjectionStyles=function(s){var u,l,c,d,h,f;s===void 0&&(s={});var p={};if(!this.instance||this.isSVG)return p;if(this.isVisible)p.visibility="";else return{visibility:"hidden"};var v=(u=this.options.visualElement)===null||u===void 0?void 0:u.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,p.opacity="",p.pointerEvents=or(s.pointerEvents)||"",p.transform=v?v(this.latestValues,""):"none",p;var g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){var y={};return this.options.layoutId&&(y.opacity=(l=this.latestValues.opacity)!==null&&l!==void 0?l:1,y.pointerEvents=or(s.pointerEvents)||""),this.hasProjected&&!De(this.latestValues)&&(y.transform=v?v({},""):"none",this.hasProjected=!1),y}var T=g.animationValues||g.latestValues;this.applyTransformsToTarget(),p.transform=Oo(this.projectionDeltaWithTransform,this.treeScale,T),v&&(p.transform=v(T,p.transform));var S=this.projectionDelta,b=S.x,D=S.y;p.transformOrigin="".concat(b.origin*100,"% ").concat(D.origin*100,"% 0"),g.animationValues?p.opacity=g===this?(d=(c=T.opacity)!==null&&c!==void 0?c:this.latestValues.opacity)!==null&&d!==void 0?d:1:this.preserveOpacity?this.latestValues.opacity:T.opacityExit:p.opacity=g===this?(h=T.opacity)!==null&&h!==void 0?h:"":(f=T.opacityExit)!==null&&f!==void 0?f:0;for(var E in lr)if(T[E]!==void 0){var C=lr[E],x=C.correct,I=C.applyTo,L=x(T[E],g);if(I)for(var j=I.length,H=0;H<j;H++)p[I[H]]=L;else p[E]=L}return this.options.layoutId&&(p.pointerEvents=g===this?or(s.pointerEvents)||"":"none"),p},a.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},a.prototype.resetTree=function(){this.root.nodes.forEach(function(s){var u;return(u=s.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(Io),this.root.sharedNodes.clear()},a}()}function _v(e){e.updateLayout()}function Fv(e){var t,r,n,i,o=(r=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&r!==void 0?r:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var a=e.layout,s=a.actual,u=a.measured;e.options.animationType==="size"?ue(function(T){var S=o.isShared?o.measured[T]:o.layout[T],b=ve(S);S.min=s[T].min,S.max=S.min+b}):e.options.animationType==="position"&&ue(function(T){var S=o.isShared?o.measured[T]:o.layout[T],b=ve(s[T]);S.max=S.min+b});var l=Et();Dt(l,s,o.layout);var c=Et();o.isShared?Dt(c,e.applyTransform(u,!0),o.measured):Dt(c,s,o.layout);var d=!Tu(l),h=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var f=e.relativeParent,p=f.snapshot,v=f.layout;if(p&&v){var g=z();wt(g,o.layout,p.layout);var y=z();wt(y,s,v.actual),Su(g,y)||(h=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:o,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeTargetChanged:h})}else e.isLead()&&((i=(n=e.options).onExitComplete)===null||i===void 0||i.call(n));e.options.transition=void 0}function jv(e){e.clearSnapshot()}function Io(e){e.clearMeasurements()}function Bv(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function kv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function Hv(e){e.resolveTargetDelta()}function zv(e){e.calcProjection()}function Uv(e){e.resetRotation()}function qv(e){e.removeLeadSnapshot()}function Po(e,t,r){e.translate=B(t.translate,0,r),e.scale=B(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Ro(e,t,r,n){e.min=B(t.min,r.min,n),e.max=B(t.max,r.max,n)}function Wv(e,t,r,n){Ro(e.x,t.x,r.x,n),Ro(e.y,t.y,r.y,n)}function $v(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Gv={duration:.45,ease:[.4,0,.1,1]};function Yv(e,t){for(var r=e.root,n=e.path.length-1;n>=0;n--)if(e.path[n].instance){r=e.path[n];break}var i=r&&r!==e.root?r.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function Mo(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function Ao(e){Mo(e.x),Mo(e.y)}var Xv=Du({attachResizeListener:function(e,t){return Pr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Jr={current:void 0},Kv=Du({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Jr.current){var e=new Xv(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Jr.current=e}return Jr.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),Zv=w(w(w(w({},Lp),Zh),ev),wv),Jv=zd(function(e,t){return If(e,t,Zv,yv,Kv)});function xn(e,t,r){var n,i,o,a,s;t==null&&(t=100);function u(){var c=Date.now()-a;c<t&&c>=0?n=setTimeout(u,t-c):(n=null,r||(s=e.apply(o,i),o=i=null))}var l=function(){o=this,i=arguments,a=Date.now();var c=r&&!n;return n||(n=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return l.clear=function(){n&&(clearTimeout(n),n=null)},l.flush=function(){n&&(s=e.apply(o,i),o=i=null,clearTimeout(n),n=null)},l}xn.debounce=xn;var Qv=xn;const Lo=Fu(Qv);function eg(e){let{debounce:t,scroll:r,polyfill:n,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=n||(typeof window>"u"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,s]=m.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=m.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),l=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,d=m.useRef(!1);m.useEffect(()=>(d.current=!0,()=>void(d.current=!1)));const[h,f,p]=m.useMemo(()=>{const T=()=>{if(!u.current.element)return;const{left:S,top:b,width:D,height:E,bottom:C,right:x,x:I,y:L}=u.current.element.getBoundingClientRect(),j={left:S,top:b,width:D,height:E,bottom:C,right:x,x:I,y:L};u.current.element instanceof HTMLElement&&i&&(j.height=u.current.element.offsetHeight,j.width=u.current.element.offsetWidth),Object.freeze(j),d.current&&!ig(u.current.lastBounds,j)&&s(u.current.lastBounds=j)};return[T,c?Lo(T,c):T,l?Lo(T,l):T]},[s,i,l,c]);function v(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(T=>T.removeEventListener("scroll",p,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){u.current.element&&(u.current.resizeObserver=new o(p),u.current.resizeObserver.observe(u.current.element),r&&u.current.scrollContainers&&u.current.scrollContainers.forEach(T=>T.addEventListener("scroll",p,{capture:!0,passive:!0})))}const y=T=>{!T||T===u.current.element||(v(),u.current.element=T,u.current.scrollContainers=wu(T),g())};return rg(p,!!r),tg(f),m.useEffect(()=>{v(),g()},[r,p,f]),m.useEffect(()=>v,[]),[y,a,h]}function tg(e){m.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function rg(e,t){m.useEffect(()=>{if(t){const r=e;return window.addEventListener("scroll",r,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",r,!0)}},[e,t])}function wu(e){const t=[];if(!e||e===document.body)return t;const{overflow:r,overflowX:n,overflowY:i}=window.getComputedStyle(e);return[r,n,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...wu(e.parentElement)]}const ng=["x","y","top","bottom","left","right","width","height"],ig=(e,t)=>ng.every(r=>e[r]===t[r]);function Qr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function og(e,t,r){ag(e,t),t.set(e,r)}function ag(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Jt(e,t){var r=Eu(e,t,"get");return sg(e,r)}function sg(e,t){return t.get?t.get.call(e):t.value}function ug(e,t,r){var n=Eu(e,t,"set");return lg(e,n,r),r}function Eu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function lg(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}var ke=new WeakMap;class cg{constructor(){og(this,ke,{writable:!0,value:void 0}),Qr(this,"register",t=>{Jt(this,ke).push(t)}),Qr(this,"unregister",t=>{let r;for(;(r=Jt(this,ke).indexOf(t))!==-1;)Jt(this,ke).splice(r,1)}),Qr(this,"backendChanged",t=>{for(const r of Jt(this,ke))r.backendChanged(t)}),ug(this,ke,[])}}function ne(e,t,r){dg(e,t),t.set(e,r)}function dg(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function se(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){var r=Cu(e,t,"get");return fg(e,r)}function fg(e,t){return t.get?t.get.call(e):t.value}function He(e,t,r){var n=Cu(e,t,"set");return hg(e,n,r),r}function Cu(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function hg(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}var K=new WeakMap,Qt=new WeakMap,Z=new WeakMap,Te=new WeakMap,Me=new WeakMap,No=new WeakMap,Vo=new WeakMap,_o=new WeakMap,en=new WeakMap,tn=new WeakMap,er=new WeakMap;class Xe{constructor(t,r,n){if(ne(this,K,{writable:!0,value:void 0}),ne(this,Qt,{writable:!0,value:void 0}),ne(this,Z,{writable:!0,value:void 0}),ne(this,Te,{writable:!0,value:void 0}),ne(this,Me,{writable:!0,value:void 0}),ne(this,No,{writable:!0,value:(i,o,a)=>{var s,u;if(!a.backend)throw new Error("You must specify a 'backend' property in your Backend entry: ".concat(JSON.stringify(a)));const l=a.backend(i,o,a.options);let c=a.id;const d=!a.id&&l&&l.constructor;if(d&&(c=l.constructor.name),c)d&&console.warn(`Deprecation notice: You are using a pipeline which doesn't include backends' 'id'.
3
3
  This might be unsupported in the future, please specify 'id' explicitely for every backend.`);else throw new Error("You must specify an 'id' property in your Backend entry: ".concat(JSON.stringify(a),`
4
4
  see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-5xx`));if(A(this,Z)[c])throw new Error(`You must specify a unique 'id' property in your Backend entry: