dgz-ui 1.4.12 → 1.4.13

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 (159) hide show
  1. package/dist/accordion/index.cjs.js +1 -1
  2. package/dist/accordion/index.es.js +1 -1
  3. package/dist/alert/index.cjs.js +1 -1
  4. package/dist/alert/index.es.js +1 -1
  5. package/dist/alert-dialog/index.cjs.js +1 -1
  6. package/dist/alert-dialog/index.es.js +1 -1
  7. package/dist/avatar/index.cjs.js +1 -1
  8. package/dist/avatar/index.es.js +1 -1
  9. package/dist/badge/index.cjs.js +1 -1
  10. package/dist/badge/index.es.js +1 -1
  11. package/dist/breadcrumb/index.cjs.js +1 -1
  12. package/dist/breadcrumb/index.es.js +1 -1
  13. package/dist/button/index.cjs.js +1 -1
  14. package/dist/button/index.es.js +2 -2
  15. package/dist/calendar/index.cjs.js +1 -1
  16. package/dist/calendar/index.es.js +1 -1
  17. package/dist/card/index.cjs.js +1 -1
  18. package/dist/card/index.es.js +1 -1
  19. package/dist/carousel/index.cjs.js +1 -1
  20. package/dist/carousel/index.es.js +2 -2
  21. package/dist/chunks/{alert-D7LmNw1T.es.js → alert-B9rImkiX.es.js} +3 -3
  22. package/dist/chunks/{alert-D7LmNw1T.es.js.map → alert-B9rImkiX.es.js.map} +1 -1
  23. package/dist/chunks/{alert-CQSIGY8u.cjs.js → alert-BNcf_eJn.cjs.js} +2 -2
  24. package/dist/chunks/{alert-CQSIGY8u.cjs.js.map → alert-BNcf_eJn.cjs.js.map} +1 -1
  25. package/dist/chunks/{alert-dialog-BrsfAyUm.cjs.js → alert-dialog-BfBtlIHj.cjs.js} +2 -2
  26. package/dist/chunks/{alert-dialog-BrsfAyUm.cjs.js.map → alert-dialog-BfBtlIHj.cjs.js.map} +1 -1
  27. package/dist/chunks/{alert-dialog-DbC22-z2.es.js → alert-dialog-BrCPhmhd.es.js} +3 -3
  28. package/dist/chunks/{alert-dialog-DbC22-z2.es.js.map → alert-dialog-BrCPhmhd.es.js.map} +1 -1
  29. package/dist/chunks/{avatar-DpvcnhV-.cjs.js → avatar-CQMWDnOM.cjs.js} +2 -2
  30. package/dist/chunks/{avatar-DpvcnhV-.cjs.js.map → avatar-CQMWDnOM.cjs.js.map} +1 -1
  31. package/dist/chunks/{avatar-MPlL_Ty_.es.js → avatar-zl4cf4c2.es.js} +3 -3
  32. package/dist/chunks/{avatar-MPlL_Ty_.es.js.map → avatar-zl4cf4c2.es.js.map} +1 -1
  33. package/dist/chunks/{badge-hJsnkvT2.cjs.js → badge-1ocx6hox.cjs.js} +2 -2
  34. package/dist/chunks/{badge-hJsnkvT2.cjs.js.map → badge-1ocx6hox.cjs.js.map} +1 -1
  35. package/dist/chunks/{badge-aHtYwGC6.es.js → badge-CPzxgRrM.es.js} +3 -3
  36. package/dist/chunks/{badge-aHtYwGC6.es.js.map → badge-CPzxgRrM.es.js.map} +1 -1
  37. package/dist/chunks/{breadcrumb-DWV0rL7P.es.js → breadcrumb-BrMrkZfa.es.js} +2 -2
  38. package/dist/chunks/{breadcrumb-DWV0rL7P.es.js.map → breadcrumb-BrMrkZfa.es.js.map} +1 -1
  39. package/dist/chunks/{breadcrumb-BeExVsql.cjs.js → breadcrumb-iPT-f06l.cjs.js} +2 -2
  40. package/dist/chunks/{breadcrumb-BeExVsql.cjs.js.map → breadcrumb-iPT-f06l.cjs.js.map} +1 -1
  41. package/dist/chunks/{button-BXJ2cCVi.cjs.js → button-CpKtD3qG.cjs.js} +2 -2
  42. package/dist/chunks/{button-BXJ2cCVi.cjs.js.map → button-CpKtD3qG.cjs.js.map} +1 -1
  43. package/dist/chunks/{button-C7Gcg6zZ.es.js → button-DTRIYqDb.es.js} +3 -3
  44. package/dist/chunks/{button-C7Gcg6zZ.es.js.map → button-DTRIYqDb.es.js.map} +1 -1
  45. package/dist/chunks/{button-group-CRBe0_eB.es.js → button-group-B4h4-5eB.es.js} +4 -4
  46. package/dist/chunks/{button-group-CRBe0_eB.es.js.map → button-group-B4h4-5eB.es.js.map} +1 -1
  47. package/dist/chunks/{button-group-BpjA8AOm.cjs.js → button-group-CaFYso6b.cjs.js} +2 -2
  48. package/dist/chunks/{button-group-BpjA8AOm.cjs.js.map → button-group-CaFYso6b.cjs.js.map} +1 -1
  49. package/dist/chunks/{card-ClxRfnoC.cjs.js → card-B1sx5mON.cjs.js} +2 -2
  50. package/dist/chunks/{card-ClxRfnoC.cjs.js.map → card-B1sx5mON.cjs.js.map} +1 -1
  51. package/dist/chunks/{card-DI87w6OJ.es.js → card-BJ0eqFqO.es.js} +2 -2
  52. package/dist/chunks/{card-DI87w6OJ.es.js.map → card-BJ0eqFqO.es.js.map} +1 -1
  53. package/dist/chunks/{dialog-ztKmNTXl.cjs.js → dialog-BWF5BkHj.cjs.js} +2 -2
  54. package/dist/chunks/{dialog-ztKmNTXl.cjs.js.map → dialog-BWF5BkHj.cjs.js.map} +1 -1
  55. package/dist/chunks/{dialog-C5H9YueP.es.js → dialog-D9BMBoAJ.es.js} +2 -2
  56. package/dist/chunks/{dialog-C5H9YueP.es.js.map → dialog-D9BMBoAJ.es.js.map} +1 -1
  57. package/dist/chunks/{dropdown-menu-CHTYlgbi.es.js → dropdown-menu-BUaCITEG.es.js} +2 -2
  58. package/dist/chunks/{dropdown-menu-CHTYlgbi.es.js.map → dropdown-menu-BUaCITEG.es.js.map} +1 -1
  59. package/dist/chunks/{dropdown-menu-Dm0HBDm-.cjs.js → dropdown-menu-D52NH0Di.cjs.js} +2 -2
  60. package/dist/chunks/{dropdown-menu-Dm0HBDm-.cjs.js.map → dropdown-menu-D52NH0Di.cjs.js.map} +1 -1
  61. package/dist/chunks/{index-DcN2zBOn.es.js → index-xA4mlFw5.es.js} +2 -2
  62. package/dist/chunks/{index-DcN2zBOn.es.js.map → index-xA4mlFw5.es.js.map} +1 -1
  63. package/dist/chunks/{index-BP8Me5c9.cjs.js → index-x_Mxo00P.cjs.js} +2 -2
  64. package/dist/chunks/{index-BP8Me5c9.cjs.js.map → index-x_Mxo00P.cjs.js.map} +1 -1
  65. package/dist/chunks/{pagination-Cwng-7FS.es.js → pagination-DFYeehFF.es.js} +3 -3
  66. package/dist/chunks/{pagination-Cwng-7FS.es.js.map → pagination-DFYeehFF.es.js.map} +1 -1
  67. package/dist/chunks/{pagination-CTmvz3Yq.cjs.js → pagination-LHTb7tXo.cjs.js} +2 -2
  68. package/dist/chunks/{pagination-CTmvz3Yq.cjs.js.map → pagination-LHTb7tXo.cjs.js.map} +1 -1
  69. package/dist/chunks/{popover-Cqh2olw7.cjs.js → popover-Bh6emR_J.cjs.js} +2 -2
  70. package/dist/chunks/{popover-Cqh2olw7.cjs.js.map → popover-Bh6emR_J.cjs.js.map} +1 -1
  71. package/dist/chunks/{popover-B52SY7sk.es.js → popover-BredK0sg.es.js} +2 -2
  72. package/dist/chunks/{popover-B52SY7sk.es.js.map → popover-BredK0sg.es.js.map} +1 -1
  73. package/dist/chunks/{react-select-C21jRzGG.es.js → react-select-BDoLUa8t.es.js} +2 -2
  74. package/dist/chunks/{react-select-C21jRzGG.es.js.map → react-select-BDoLUa8t.es.js.map} +1 -1
  75. package/dist/chunks/{react-select-1n8mmj6n.cjs.js → react-select-DvBVNVXL.cjs.js} +2 -2
  76. package/dist/chunks/{react-select-1n8mmj6n.cjs.js.map → react-select-DvBVNVXL.cjs.js.map} +1 -1
  77. package/dist/chunks/{scroll-area-CpVgh3EC.es.js → scroll-area-CwWjTiks.es.js} +2 -2
  78. package/dist/chunks/{scroll-area-CpVgh3EC.es.js.map → scroll-area-CwWjTiks.es.js.map} +1 -1
  79. package/dist/chunks/{scroll-area-DfdUITCu.cjs.js → scroll-area-Nj6J9MqV.cjs.js} +2 -2
  80. package/dist/chunks/{scroll-area-DfdUITCu.cjs.js.map → scroll-area-Nj6J9MqV.cjs.js.map} +1 -1
  81. package/dist/chunks/{separator-BGecc9_9.cjs.js → separator-CGvV-BlI.cjs.js} +2 -2
  82. package/dist/chunks/{separator-BGecc9_9.cjs.js.map → separator-CGvV-BlI.cjs.js.map} +1 -1
  83. package/dist/chunks/{separator-57fHPAAv.es.js → separator-CgP4OHOF.es.js} +2 -2
  84. package/dist/chunks/{separator-57fHPAAv.es.js.map → separator-CgP4OHOF.es.js.map} +1 -1
  85. package/dist/chunks/{sheet-Cd8pVcuR.cjs.js → sheet-BL1AP0aU.cjs.js} +2 -2
  86. package/dist/chunks/{sheet-Cd8pVcuR.cjs.js.map → sheet-BL1AP0aU.cjs.js.map} +1 -1
  87. package/dist/chunks/{sheet-BnHJdRsn.es.js → sheet-CKsRhiVy.es.js} +2 -2
  88. package/dist/chunks/{sheet-BnHJdRsn.es.js.map → sheet-CKsRhiVy.es.js.map} +1 -1
  89. package/dist/chunks/{skeleton-9sn_asi7.cjs.js → skeleton-C7pnV7bc.cjs.js} +2 -2
  90. package/dist/chunks/{skeleton-9sn_asi7.cjs.js.map → skeleton-C7pnV7bc.cjs.js.map} +1 -1
  91. package/dist/chunks/{skeleton-iS5JnNYj.es.js → skeleton-DKbF2Fso.es.js} +2 -2
  92. package/dist/chunks/{skeleton-iS5JnNYj.es.js.map → skeleton-DKbF2Fso.es.js.map} +1 -1
  93. package/dist/chunks/{table-BEkdKcLT.es.js → table-BTb0KUhR.es.js} +2 -2
  94. package/dist/chunks/{table-BEkdKcLT.es.js.map → table-BTb0KUhR.es.js.map} +1 -1
  95. package/dist/chunks/{table-BVd6_9C_.cjs.js → table-Dxainp0Z.cjs.js} +2 -2
  96. package/dist/chunks/{table-BVd6_9C_.cjs.js.map → table-Dxainp0Z.cjs.js.map} +1 -1
  97. package/dist/chunks/{tabs-D2mtxMzj.es.js → tabs-BnamvF0S.es.js} +4 -4
  98. package/dist/chunks/{tabs-D2mtxMzj.es.js.map → tabs-BnamvF0S.es.js.map} +1 -1
  99. package/dist/chunks/{tabs-mihPEAju.cjs.js → tabs-CDt2LiNL.cjs.js} +2 -2
  100. package/dist/chunks/{tabs-mihPEAju.cjs.js.map → tabs-CDt2LiNL.cjs.js.map} +1 -1
  101. package/dist/chunks/{textarea-0VSN2V4u.es.js → textarea-BnUWlaPx.es.js} +5827 -5786
  102. package/dist/chunks/textarea-BnUWlaPx.es.js.map +1 -0
  103. package/dist/chunks/textarea-EPWY09og.cjs.js +173 -0
  104. package/dist/chunks/textarea-EPWY09og.cjs.js.map +1 -0
  105. package/dist/chunks/{timepicker-Bez86y4j.es.js → timepicker-Ca0gLbqn.es.js} +5 -5
  106. package/dist/chunks/timepicker-Ca0gLbqn.es.js.map +1 -0
  107. package/dist/chunks/{timepicker-Ba7H_jbd.cjs.js → timepicker-CuuVE0le.cjs.js} +2 -2
  108. package/dist/chunks/timepicker-CuuVE0le.cjs.js.map +1 -0
  109. package/dist/chunks/{tooltip-DSraOWNq.cjs.js → tooltip-CsZB0nVr.cjs.js} +2 -2
  110. package/dist/chunks/{tooltip-DSraOWNq.cjs.js.map → tooltip-CsZB0nVr.cjs.js.map} +1 -1
  111. package/dist/chunks/{tooltip-DCNsfjjI.es.js → tooltip-Dtzkuphk.es.js} +2 -2
  112. package/dist/chunks/{tooltip-DCNsfjjI.es.js.map → tooltip-Dtzkuphk.es.js.map} +1 -1
  113. package/dist/chunks/utils-C4d7Ql9-.cjs.js +2 -0
  114. package/dist/chunks/utils-C4d7Ql9-.cjs.js.map +1 -0
  115. package/dist/chunks/{utils-D6dQK9i-.es.js → utils-CnvKSirc.es.js} +157 -157
  116. package/dist/chunks/utils-CnvKSirc.es.js.map +1 -0
  117. package/dist/dialog/index.cjs.js +1 -1
  118. package/dist/dialog/index.es.js +1 -1
  119. package/dist/dropdown/index.cjs.js +1 -1
  120. package/dist/dropdown/index.es.js +1 -1
  121. package/dist/form/index.cjs.js +1 -1
  122. package/dist/form/index.es.js +2 -2
  123. package/dist/index.cjs.js +1 -1
  124. package/dist/index.es.js +23 -23
  125. package/dist/pagination/index.cjs.js +1 -1
  126. package/dist/pagination/index.es.js +1 -1
  127. package/dist/popover/index.cjs.js +1 -1
  128. package/dist/popover/index.es.js +1 -1
  129. package/dist/progress/index.cjs.js +1 -1
  130. package/dist/progress/index.es.js +1 -1
  131. package/dist/scroll-area/index.cjs.js +1 -1
  132. package/dist/scroll-area/index.es.js +1 -1
  133. package/dist/separator/index.cjs.js +1 -1
  134. package/dist/separator/index.es.js +1 -1
  135. package/dist/sheet/index.cjs.js +1 -1
  136. package/dist/sheet/index.es.js +1 -1
  137. package/dist/skeleton/index.cjs.js +1 -1
  138. package/dist/skeleton/index.es.js +1 -1
  139. package/dist/styles.css +2 -2
  140. package/dist/tab/index.cjs.js +1 -1
  141. package/dist/tab/index.es.js +1 -1
  142. package/dist/table/index.cjs.js +1 -1
  143. package/dist/table/index.es.js +1 -1
  144. package/dist/tooltip/index.cjs.js +1 -1
  145. package/dist/tooltip/index.es.js +1 -1
  146. package/dist/types/App.d.ts.map +1 -1
  147. package/dist/types/ui/form/html-editor.d.ts +5 -3
  148. package/dist/types/ui/form/html-editor.d.ts.map +1 -1
  149. package/dist/utils/index.cjs.js +1 -1
  150. package/dist/utils/index.es.js +1 -1
  151. package/package.json +5 -2
  152. package/dist/chunks/textarea-0VSN2V4u.es.js.map +0 -1
  153. package/dist/chunks/textarea-DbxcvKTh.cjs.js +0 -186
  154. package/dist/chunks/textarea-DbxcvKTh.cjs.js.map +0 -1
  155. package/dist/chunks/timepicker-Ba7H_jbd.cjs.js.map +0 -1
  156. package/dist/chunks/timepicker-Bez86y4j.es.js.map +0 -1
  157. package/dist/chunks/utils-BWS4jvS6.cjs.js +0 -2
  158. package/dist/chunks/utils-BWS4jvS6.cjs.js.map +0 -1
  159. package/dist/chunks/utils-D6dQK9i-.es.js.map +0 -1
@@ -0,0 +1,173 @@
1
+ "use strict";var Nf=Object.defineProperty;var If=(r,e,t)=>e in r?Nf(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ee=(r,e,t)=>If(r,typeof e!="symbol"?e+"":e,t);const I=require("react/jsx-runtime"),Ke=require("react"),Oe=require("./index-jFOWwfD3.cjs.js"),le=require("./index-D9zW9Tk7.cjs.js"),er=require("./index-BruMW80s.cjs.js"),$t=require("./index-CGLGXpw0.cjs.js"),Xs=require("./index-is755vrc.cjs.js"),Ce=require("./utils-C4d7Ql9-.cjs.js"),Te=require("./index-DG15yxNP.cjs.js"),en=require("./react-select-DvBVNVXL.cjs.js"),ic=require("./index-CMEUY8i_.cjs.js"),Ma=require("react-hook-form"),Rf=require("react-dom"),Da=require("./index-x_Mxo00P.cjs.js"),ct=require("./_commonjsHelpers-DKOUU3wS.cjs.js"),ai=require("./index-DGEvZwN5.cjs.js"),oc=require("./index-DnRKXUWD.cjs.js"),ac=require("./circle-CKMW6wiB.cjs.js"),yl=require("./index-C8ni3LLa.cjs.js"),Of=require("./index-pF_O2Ico.cjs.js"),Lf=require("./index-CItoM52t.cjs.js"),Mf=require("./index-CN4RxFxN.cjs.js"),ir=require("./index-pQxT4IlV.cjs.js"),Df=require("./index-C28jaZCP.cjs.js"),lc=require("./chevron-down-T-PkxHnH.cjs.js"),Pf=require("./createLucideIcon-HtK0p34L.cjs.js"),Bf=require("./button-CpKtD3qG.cjs.js");function uc(r){if(r&&r.__esModule)return r;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const C=uc(Ke),cc=uc(Rf);/**
2
+ * @license lucide-react v0.563.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const qf=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ff=Pf.createLucideIcon("chevron-up",qf);function li(r){const e=C.useRef({value:r,previous:r});return C.useMemo(()=>(e.current.value!==r&&(e.current.previous=e.current.value,e.current.value=r),e.current.previous),[r])}var ui="Checkbox",[jf]=le.createContextScope(ui),[$f,Pa]=jf(ui);function Vf(r){const{__scopeCheckbox:e,checked:t,children:n,defaultChecked:s,disabled:i,form:o,name:a,onCheckedChange:l,required:c,value:h="on",internal_do_not_use_render:g}=r,[p,m]=er.useControllableState({prop:t,defaultProp:s??!1,onChange:l,caller:ui}),[v,d]=C.useState(null),[b,E]=C.useState(null),x=C.useRef(!1),S=v?!!o||!!v.closest("form"):!0,k={checked:p,disabled:i,setChecked:m,control:v,setControl:d,name:a,form:o,value:h,hasConsumerStoppedPropagationRef:x,required:c,defaultChecked:tr(s)?!1:s,isFormControl:S,bubbleInput:b,setBubbleInput:E};return I.jsx($f,{scope:e,...k,children:Uf(g)?g(k):n})}var hc="CheckboxTrigger",dc=C.forwardRef(({__scopeCheckbox:r,onKeyDown:e,onClick:t,...n},s)=>{const{control:i,value:o,disabled:a,checked:l,required:c,setControl:h,setChecked:g,hasConsumerStoppedPropagationRef:p,isFormControl:m,bubbleInput:v}=Pa(hc,r),d=Oe.useComposedRefs(s,h),b=C.useRef(l);return C.useEffect(()=>{const E=i==null?void 0:i.form;if(E){const x=()=>g(b.current);return E.addEventListener("reset",x),()=>E.removeEventListener("reset",x)}},[i,g]),I.jsx(le.Primitive.button,{type:"button",role:"checkbox","aria-checked":tr(l)?"mixed":l,"aria-required":c,"data-state":vc(l),"data-disabled":a?"":void 0,disabled:a,value:o,...n,ref:d,onKeyDown:le.composeEventHandlers(e,E=>{E.key==="Enter"&&E.preventDefault()}),onClick:le.composeEventHandlers(t,E=>{g(x=>tr(x)?!0:!x),v&&m&&(p.current=E.isPropagationStopped(),p.current||E.stopPropagation())})})});dc.displayName=hc;var Ba=C.forwardRef((r,e)=>{const{__scopeCheckbox:t,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:l,onCheckedChange:c,form:h,...g}=r;return I.jsx(Vf,{__scopeCheckbox:t,checked:s,defaultChecked:i,disabled:a,required:o,onCheckedChange:c,name:n,form:h,value:l,internal_do_not_use_render:({isFormControl:p})=>I.jsxs(I.Fragment,{children:[I.jsx(dc,{...g,ref:e,__scopeCheckbox:t}),p&&I.jsx(mc,{__scopeCheckbox:t})]})})});Ba.displayName=ui;var fc="CheckboxIndicator",pc=C.forwardRef((r,e)=>{const{__scopeCheckbox:t,forceMount:n,...s}=r,i=Pa(fc,t);return I.jsx(le.Presence,{present:n||tr(i.checked)||i.checked===!0,children:I.jsx(le.Primitive.span,{"data-state":vc(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...r.style}})})});pc.displayName=fc;var gc="CheckboxBubbleInput",mc=C.forwardRef(({__scopeCheckbox:r,...e},t)=>{const{control:n,hasConsumerStoppedPropagationRef:s,checked:i,defaultChecked:o,required:a,disabled:l,name:c,value:h,form:g,bubbleInput:p,setBubbleInput:m}=Pa(gc,r),v=Oe.useComposedRefs(t,m),d=li(i),b=$t.useSize(n);C.useEffect(()=>{const x=p;if(!x)return;const S=window.HTMLInputElement.prototype,_=Object.getOwnPropertyDescriptor(S,"checked").set,B=!s.current;if(d!==i&&_){const L=new Event("click",{bubbles:B});x.indeterminate=tr(i),_.call(x,tr(i)?!1:i),x.dispatchEvent(L)}},[p,d,i,s]);const E=C.useRef(tr(i)?!1:i);return I.jsx(le.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:o??E.current,required:a,disabled:l,name:c,value:h,form:g,...e,tabIndex:-1,ref:v,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});mc.displayName=gc;function Uf(r){return typeof r=="function"}function tr(r){return r==="indeterminate"}function vc(r){return tr(r)?"indeterminate":r?"checked":"unchecked"}const yc=C.forwardRef(({className:r,...e},t)=>I.jsx(Ba,{ref:t,className:Ce.cn("peer border-border-alpha-strong ring-offset-background size-4 shrink-0 cursor-pointer rounded-sm border disabled:cursor-not-allowed disabled:opacity-50","data-[state=checked]:text-primary data-[state=checked]:bg-item-primary",r),...e,children:I.jsx(pc,{className:Ce.cn("flex size-4 items-center justify-center text-current"),children:e.checked==="indeterminate"?I.jsx(Xs.RN,{className:"mr-0.5 mb-0.5 size-3.5 text-white"}):I.jsx(Xs.s7,{className:"mr-0.5 mb-0.5 size-3.5 text-white"})})}));yc.displayName=Ba.displayName;var Hf=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zf=en.memoize(function(r){return Hf.test(r)||r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)<91}),Se="-ms-",$n="-moz-",ye="-webkit-",bc="comm",ci="rule",qa="decl",Gf="@import",Kf="@namespace",Ec="@keyframes",Wf="@layer",wc=Math.abs,Fa=String.fromCharCode,Zo=Object.assign;function Yf(r,e){return Re(r,0)^45?(((e<<2^Re(r,0))<<2^Re(r,1))<<2^Re(r,2))<<2^Re(r,3):0}function xc(r){return r.trim()}function Mt(r,e){return(r=e.exec(r))?r[0]:r}function fe(r,e,t){return r.replace(e,t)}function js(r,e,t){return r.indexOf(e,t)}function Re(r,e){return r.charCodeAt(e)|0}function xr(r,e,t){return r.slice(e,t)}function at(r){return r.length}function _c(r){return r.length}function Dn(r,e){return e.push(r),r}function Zf(r,e){return r.map(e).join("")}function bl(r,e){return r.filter(function(t){return!Mt(t,e)})}var hi=1,sn=1,Sc=0,tt=0,Ne=0,pn="";function di(r,e,t,n,s,i,o,a){return{value:r,root:e,parent:t,type:n,props:s,children:i,line:hi,column:sn,length:o,return:"",siblings:a}}function Kt(r,e){return Zo(di("",null,null,"",null,null,0,r.siblings),r,{length:-r.length},e)}function Gr(r){for(;r.root;)r=Kt(r.root,{children:[r]});Dn(r,r.siblings)}function Xf(){return Ne}function Qf(){return Ne=tt>0?Re(pn,--tt):0,sn--,Ne===10&&(sn=1,hi--),Ne}function ht(){return Ne=tt<Sc?Re(pn,tt++):0,sn++,Ne===10&&(sn=1,hi++),Ne}function Xt(){return Re(pn,tt)}function $s(){return tt}function fi(r,e){return xr(pn,r,e)}function Kn(r){switch(r){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jf(r){return hi=sn=1,Sc=at(pn=r),tt=0,[]}function ep(r){return pn="",r}function xo(r){return xc(fi(tt-1,Xo(r===91?r+2:r===40?r+1:r)))}function tp(r){for(;(Ne=Xt())&&Ne<33;)ht();return Kn(r)>2||Kn(Ne)>3?"":" "}function rp(r,e){for(;--e&&ht()&&!(Ne<48||Ne>102||Ne>57&&Ne<65||Ne>70&&Ne<97););return fi(r,$s()+(e<6&&Xt()==32&&ht()==32))}function Xo(r){for(;ht();)switch(Ne){case r:return tt;case 34:case 39:r!==34&&r!==39&&Xo(Ne);break;case 40:r===41&&Xo(r);break;case 92:ht();break}return tt}function np(r,e){for(;ht()&&r+Ne!==57;)if(r+Ne===84&&Xt()===47)break;return"/*"+fi(e,tt-1)+"*"+Fa(r===47?r:ht())}function sp(r){for(;!Kn(Xt());)ht();return fi(r,tt)}function ip(r){return ep(Vs("",null,null,null,[""],r=Jf(r),0,[0],r))}function Vs(r,e,t,n,s,i,o,a,l){for(var c=0,h=0,g=o,p=0,m=0,v=0,d=1,b=1,E=1,x=0,S="",k=s,_=i,B=n,L=S;b;)switch(v=x,x=ht()){case 40:if(v!=108&&Re(L,g-1)==58){js(L+=fe(xo(x),"&","&\f"),"&\f",wc(c?a[c-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:L+=xo(x);break;case 9:case 10:case 13:case 32:L+=tp(v);break;case 92:L+=rp($s()-1,7);continue;case 47:switch(Xt()){case 42:case 47:Dn(op(np(ht(),$s()),e,t,l),l),(Kn(v||1)==5||Kn(Xt()||1)==5)&&at(L)&&xr(L,-1,void 0)!==" "&&(L+=" ");break;default:L+="/"}break;case 123*d:a[c++]=at(L)*E;case 125*d:case 59:case 0:switch(x){case 0:case 125:b=0;case 59+h:E==-1&&(L=fe(L,/\f/g,"")),m>0&&(at(L)-g||d===0&&v===47)&&Dn(m>32?wl(L+";",n,t,g-1,l):wl(fe(L," ","")+";",n,t,g-2,l),l);break;case 59:L+=";";default:if(Dn(B=El(L,e,t,c,h,s,a,S,k=[],_=[],g,i),i),x===123)if(h===0)Vs(L,e,B,B,k,i,g,a,_);else{switch(p){case 99:if(Re(L,3)===110)break;case 108:if(Re(L,2)===97)break;default:h=0;case 100:case 109:case 115:}h?Vs(r,B,B,n&&Dn(El(r,B,B,0,0,s,a,S,s,k=[],g,_),_),s,_,g,a,n?k:_):Vs(L,B,B,B,[""],_,0,a,_)}}c=h=m=0,d=E=1,S=L="",g=o;break;case 58:g=1+at(L),m=v;default:if(d<1){if(x==123)--d;else if(x==125&&d++==0&&Qf()==125)continue}switch(L+=Fa(x),x*d){case 38:E=h>0?1:(L+="\f",-1);break;case 44:a[c++]=(at(L)-1)*E,E=1;break;case 64:Xt()===45&&(L+=xo(ht())),p=Xt(),h=g=at(S=L+=sp($s())),x++;break;case 45:v===45&&at(L)==2&&(d=0)}}return i}function El(r,e,t,n,s,i,o,a,l,c,h,g){for(var p=s-1,m=s===0?i:[""],v=_c(m),d=0,b=0,E=0;d<n;++d)for(var x=0,S=xr(r,p+1,p=wc(b=o[d])),k=r;x<v;++x)(k=xc(b>0?m[x]+" "+S:fe(S,/&\f/g,m[x])))&&(l[E++]=k);return di(r,e,t,s===0?ci:a,l,c,h,g)}function op(r,e,t,n){return di(r,e,t,bc,Fa(Xf()),xr(r,2,-2),0,n)}function wl(r,e,t,n,s){return di(r,e,t,qa,xr(r,0,n),xr(r,n+1,-1),n,s)}function Ac(r,e,t){switch(Yf(r,e)){case 5103:return ye+"print-"+r+r;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return ye+r+r;case 4855:return ye+r.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+r;case 4789:return $n+r+r;case 5349:case 4246:case 4810:case 6968:case 2756:return ye+r+$n+r+Se+r+r;case 5936:switch(Re(r,e+11)){case 114:return ye+r+Se+fe(r,/[svh]\w+-[tblr]{2}/,"tb")+r;case 108:return ye+r+Se+fe(r,/[svh]\w+-[tblr]{2}/,"tb-rl")+r;case 45:return ye+r+Se+fe(r,/[svh]\w+-[tblr]{2}/,"lr")+r}case 6828:case 4268:case 2903:return ye+r+Se+r+r;case 6165:return ye+r+Se+"flex-"+r+r;case 5187:return ye+r+fe(r,/(\w+).+(:[^]+)/,ye+"box-$1$2"+Se+"flex-$1$2")+r;case 5443:return ye+r+Se+"flex-item-"+fe(r,/flex-|-self/g,"")+(Mt(r,/flex-|baseline/)?"":Se+"grid-row-"+fe(r,/flex-|-self/g,""))+r;case 4675:return ye+r+Se+"flex-line-pack"+fe(r,/align-content|flex-|-self/g,"")+r;case 5548:return ye+r+Se+fe(r,"shrink","negative")+r;case 5292:return ye+r+Se+fe(r,"basis","preferred-size")+r;case 6060:return ye+"box-"+fe(r,"-grow","")+ye+r+Se+fe(r,"grow","positive")+r;case 4554:return ye+fe(r,/([^-])(transform)/g,"$1"+ye+"$2")+r;case 6187:return fe(fe(fe(r,/(zoom-|grab)/,ye+"$1"),/(image-set)/,ye+"$1"),r,"")+r;case 5495:case 3959:return fe(r,/(image-set\([^]*)/,ye+"$1$`$1");case 4968:return fe(fe(r,/(.+:)(flex-)?(.*)/,ye+"box-pack:$3"+Se+"flex-pack:$3"),/space-between/,"justify")+ye+r+r;case 4200:if(!Mt(r,/flex-|baseline/))return Se+"grid-column-align"+xr(r,e)+r;break;case 2592:case 3360:return Se+fe(r,"template-","")+r;case 4384:case 3616:return t&&t.some(function(n,s){return e=s,Mt(n.props,/grid-\w+-end/)})?~js(r+(t=t[e].value),"span",0)?r:Se+fe(r,"-start","")+r+Se+"grid-row-span:"+(~js(t,"span",0)?Mt(t,/\d+/):+Mt(t,/\d+/)-+Mt(r,/\d+/))+";":Se+fe(r,"-start","")+r;case 4896:case 4128:return t&&t.some(function(n){return Mt(n.props,/grid-\w+-start/)})?r:Se+fe(fe(r,"-end","-span"),"span ","")+r;case 4095:case 3583:case 4068:case 2532:return fe(r,/(.+)-inline(.+)/,ye+"$1$2")+r;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(at(r)-1-e>6)switch(Re(r,e+1)){case 109:if(Re(r,e+4)!==45)break;case 102:return fe(r,/(.+:)(.+)-([^]+)/,"$1"+ye+"$2-$3$1"+$n+(Re(r,e+3)==108?"$3":"$2-$3"))+r;case 115:return~js(r,"stretch",0)?Ac(fe(r,"stretch","fill-available"),e,t)+r:r}break;case 5152:case 5920:return fe(r,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,s,i,o,a,l,c){return Se+s+":"+i+c+(o?Se+s+"-span:"+(a?l:+l-+i)+c:"")+r});case 4949:if(Re(r,e+6)===121)return fe(r,":",":"+ye)+r;break;case 6444:switch(Re(r,Re(r,14)===45?18:11)){case 120:return fe(r,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ye+(Re(r,14)===45?"inline-":"")+"box$3$1"+ye+"$2$3$1"+Se+"$2box$3")+r;case 100:return fe(r,":",":"+Se)+r}break;case 5719:case 2647:case 2135:case 3927:case 2391:return fe(r,"scroll-","scroll-snap-")+r}return r}function Qs(r,e){for(var t="",n=0;n<r.length;n++)t+=e(r[n],n,r,e)||"";return t}function ap(r,e,t,n){switch(r.type){case Wf:if(r.children.length)break;case Gf:case Kf:case qa:return r.return=r.return||r.value;case bc:return"";case Ec:return r.return=r.value+"{"+Qs(r.children,n)+"}";case ci:if(!at(r.value=r.props.join(",")))return""}return at(t=Qs(r.children,n))?r.return=r.value+"{"+t+"}":""}function lp(r){var e=_c(r);return function(t,n,s,i){for(var o="",a=0;a<e;a++)o+=r[a](t,n,s,i)||"";return o}}function up(r){return function(e){e.root||(e=e.return)&&r(e)}}function cp(r,e,t,n){if(r.length>-1&&!r.return)switch(r.type){case qa:r.return=Ac(r.value,r.length,t);return;case Ec:return Qs([Kt(r,{value:fe(r.value,"@","@"+ye)})],n);case ci:if(r.length)return Zf(t=r.props,function(s){switch(Mt(s,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Gr(Kt(r,{props:[fe(s,/:(read-\w+)/,":"+$n+"$1")]})),Gr(Kt(r,{props:[s]})),Zo(r,{props:bl(t,n)});break;case"::placeholder":Gr(Kt(r,{props:[fe(s,/:(plac\w+)/,":"+ye+"input-$1")]})),Gr(Kt(r,{props:[fe(s,/:(plac\w+)/,":"+$n+"$1")]})),Gr(Kt(r,{props:[fe(s,/:(plac\w+)/,Se+"input-$1")]})),Gr(Kt(r,{props:[s]})),Zo(r,{props:bl(t,n)});break}return""})}}var _r=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Cc="active",Tc="data-styled-version",pi="6.3.9",ja=`/*!sc*/
7
+ `,Vn=typeof window<"u"&&typeof document<"u",rr=C.default.createContext===void 0,hp=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),xl=/invalid hook call/i,Cs=new Set,dp=function(r,e){if(process.env.NODE_ENV!=="production"){if(rr)return;var t=e?' with the id of "'.concat(e,'"'):"",n="The component ".concat(r).concat(t,` has been created dynamically.
8
+ `)+`You may see this warning because you've called styled inside another component.
9
+ To resolve this only create new StyledComponents outside of any render method and function component.
10
+ See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
11
+ `,s=console.error;try{var i=!0;console.error=function(o){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];xl.test(o)?(i=!1,Cs.delete(n)):s.apply(void 0,Te.__spreadArray([o],a,!1))},typeof C.default.useState=="function"&&C.default.useState(null),i&&!Cs.has(n)&&(console.warn(n),Cs.add(n))}catch(o){xl.test(o.message)&&Cs.delete(n)}finally{console.error=s}}},$a=Object.freeze([]),on=Object.freeze({});function fp(r,e,t){return t===void 0&&(t=on),r.theme!==t.theme&&r.theme||e||t.theme}var Qo=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]),pp=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,gp=/(^-|-$)/g;function _l(r){return r.replace(pp,"-").replace(gp,"")}var mp=/(a)(d)/gi,Sl=function(r){return String.fromCharCode(r+(r>25?39:97))};function Jo(r){var e,t="";for(e=Math.abs(r);e>52;e=e/52|0)t=Sl(e%52)+t;return(Sl(e%52)+t).replace(mp,"$1-$2")}var _o,Yt=function(r,e){for(var t=e.length;t;)r=33*r^e.charCodeAt(--t);return r},kc=function(r){return Yt(5381,r)};function vp(r){return Jo(kc(r)>>>0)}function Nc(r){return process.env.NODE_ENV!=="production"&&typeof r=="string"&&r||r.displayName||r.name||"Component"}function So(r){return typeof r=="string"&&(process.env.NODE_ENV==="production"||r.charAt(0)===r.charAt(0).toLowerCase())}var Ic=typeof Symbol=="function"&&Symbol.for,Rc=Ic?Symbol.for("react.memo"):60115,yp=Ic?Symbol.for("react.forward_ref"):60112,bp={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ep={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Oc={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},wp=((_o={})[yp]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},_o[Rc]=Oc,_o);function Al(r){return("type"in(e=r)&&e.type.$$typeof)===Rc?Oc:"$$typeof"in r?wp[r.$$typeof]:bp;var e}var xp=Object.defineProperty,_p=Object.getOwnPropertyNames,Cl=Object.getOwnPropertySymbols,Sp=Object.getOwnPropertyDescriptor,Ap=Object.getPrototypeOf,Tl=Object.prototype;function Lc(r,e,t){if(typeof e!="string"){if(Tl){var n=Ap(e);n&&n!==Tl&&Lc(r,n,t)}var s=_p(e);Cl&&(s=s.concat(Cl(e)));for(var i=Al(r),o=Al(e),a=0;a<s.length;++a){var l=s[a];if(!(l in Ep||t&&t[l]||o&&l in o||i&&l in i)){var c=Sp(e,l);try{xp(r,l,c)}catch{}}}}return r}function an(r){return typeof r=="function"}function Va(r){return typeof r=="object"&&"styledComponentId"in r}function br(r,e){return r&&e?"".concat(r," ").concat(e):r||e||""}function kl(r,e){return r.join("")}function ln(r){return r!==null&&typeof r=="object"&&r.constructor.name===Object.name&&!("props"in r&&r.$$typeof)}function ea(r,e,t){if(t===void 0&&(t=!1),!t&&!ln(r)&&!Array.isArray(r))return e;if(Array.isArray(e))for(var n=0;n<e.length;n++)r[n]=ea(r[n],e[n]);else if(ln(e))for(var n in e)r[n]=ea(r[n],e[n]);return r}function Ua(r,e){Object.defineProperty(r,"toString",{value:e})}var Cp=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
12
+
13
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
14
+
15
+ - Are you trying to reuse it across renders?
16
+ - Are you accidentally calling collectStyles twice?
17
+
18
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
19
+
20
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
21
+
22
+ - Does this error occur on the client and is your target falsy?
23
+ - Does this error occur on the server and is the sheet falsy?
24
+
25
+ `,5:`The clone method cannot be used on the client!
26
+
27
+ - Are you running in a client-like environment on the server?
28
+ - Are you trying to run SSR on the client?
29
+
30
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
31
+
32
+ - Are you using a custom target that isn't mounted?
33
+ - Does your document not have a valid head element?
34
+ - Have you accidentally removed a style tag manually?
35
+
36
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
37
+
38
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
39
+
40
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
41
+
42
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
43
+
44
+ `,14:`ThemeProvider: "theme" prop is required.
45
+
46
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
47
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
48
+ as for instance in your render method then you may be running into this limitation.
49
+
50
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
51
+ Has styled-components' style tag been unmounted or altered by another script?
52
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Tp(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=r[0],n=[],s=1,i=r.length;s<i;s+=1)n.push(r[s]);return n.forEach(function(o){t=t.replace(/%[a-z]/,o)}),t}function gn(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(r," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(Tp.apply(void 0,Te.__spreadArray([Cp[r]],e,!1)).trim())}var kp=(function(){function r(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}return r.prototype.indexOfGroup=function(e){if(e===this._cGroup)return this._cIndex;var t=this._cIndex;if(e>this._cGroup)for(var n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t},r.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,s=n.length,i=s;e>=i;)if((i<<=1)<0)throw gn(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=s;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),l=0,c=(o=0,t.length);o<c;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++,l++);l>0&&this._cGroup>e&&(this._cIndex+=l)},r.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),s=n+t;this.groupSizes[e]=0;for(var i=n;i<s;i++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}},r.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var n=this.groupSizes[e],s=this.indexOfGroup(e),i=s+n,o=s;o<i;o++)t+=this.tag.getRule(o)+ja;return t},r})(),Np=1<<30,Us=new Map,Js=new Map,Hs=1,Pn=function(r){if(Us.has(r))return Us.get(r);for(;Js.has(Hs);)Hs++;var e=Hs++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>Np))throw gn(16,"".concat(e));return Us.set(r,e),Js.set(e,r),e},Ip=function(r,e){Hs=e+1,Us.set(r,e),Js.set(e,r)},Rp="style[".concat(_r,"][").concat(Tc,'="').concat(pi,'"]'),Op=new RegExp("^".concat(_r,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Nl=function(r){return typeof ShadowRoot<"u"&&r instanceof ShadowRoot||"host"in r&&r.nodeType===11},ta=function(r){if(!r)return document;if(Nl(r))return r;if("getRootNode"in r){var e=r.getRootNode();if(Nl(e))return e}return document},Lp=function(r,e,t){for(var n,s=t.split(","),i=0,o=s.length;i<o;i++)(n=s[i])&&r.registerName(e,n)},Mp=function(r,e){for(var t,n=((t=e.textContent)!==null&&t!==void 0?t:"").split(ja),s=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var l=a.match(Op);if(l){var c=0|parseInt(l[1],10),h=l[2];c!==0&&(Ip(h,c),Lp(r,h,l[3]),r.getTag().insertRules(c,s)),s.length=0}else s.push(a)}}},Ao=function(r){for(var e=ta(r.options.target).querySelectorAll(Rp),t=0,n=e.length;t<n;t++){var s=e[t];s&&s.getAttribute(_r)!==Cc&&(Mp(r,s),s.parentNode&&s.parentNode.removeChild(s))}};function Dp(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Mc=function(r){var e=document.head,t=r||e,n=document.createElement("style"),s=(function(a){var l=Array.from(a.querySelectorAll("style[".concat(_r,"]")));return l[l.length-1]})(t),i=s!==void 0?s.nextSibling:null;n.setAttribute(_r,Cc),n.setAttribute(Tc,pi);var o=Dp();return o&&n.setAttribute("nonce",o),t.insertBefore(n,i),n},Pp=(function(){function r(e){this.element=Mc(e),this.element.appendChild(document.createTextNode("")),this.sheet=(function(t){var n;if(t.sheet)return t.sheet;for(var s=(n=t.getRootNode().styleSheets)!==null&&n!==void 0?n:document.styleSheets,i=0,o=s.length;i<o;i++){var a=s[i];if(a.ownerNode===t)return a}throw gn(17)})(this.element),this.length=0}return r.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},r.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},r.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},r})(),Bp=(function(){function r(e){this.element=Mc(e),this.nodes=this.element.childNodes,this.length=0}return r.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},r.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},r.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},r})(),qp=(function(){function r(e){this.rules=[],this.length=0}return r.prototype.insertRule=function(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)},r.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},r.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},r})(),Il=Vn,Fp={isServer:!Vn,useCSSOMInjection:!hp},Dc=(function(){function r(e,t,n){e===void 0&&(e=on),t===void 0&&(t={});var s=this;this.options=Te.__assign(Te.__assign({},Fp),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&Vn&&Il&&(Il=!1,Ao(this)),Ua(this,function(){return(function(i){for(var o=i.getTag(),a=o.length,l="",c=function(g){var p=(function(E){return Js.get(E)})(g);if(p===void 0)return"continue";var m=i.names.get(p);if(m===void 0||!m.size)return"continue";var v=o.getGroup(g);if(v.length===0)return"continue";var d=_r+".g"+g+'[id="'+p+'"]',b="";m.forEach(function(E){E.length>0&&(b+=E+",")}),l+=v+d+'{content:"'+b+'"}'+ja},h=0;h<a;h++)c(h);return l})(s)})}return r.registerId=function(e){return Pn(e)},r.prototype.rehydrate=function(){!this.server&&Vn&&Ao(this)},r.prototype.reconstructWithOptions=function(e,t){t===void 0&&(t=!0);var n=new r(Te.__assign(Te.__assign({},this.options),e),this.gs,t&&this.names||void 0);return!this.server&&Vn&&e.target!==this.options.target&&ta(this.options.target)!==ta(e.target)&&Ao(n),n},r.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},r.prototype.getTag=function(){return this.tag||(this.tag=(e=(function(t){var n=t.useCSSOMInjection,s=t.target;return t.isServer?new qp(s):n?new Pp(s):new Bp(s)})(this.options),new kp(e)));var e},r.prototype.hasNameForId=function(e,t){var n,s;return(s=(n=this.names.get(e))===null||n===void 0?void 0:n.has(t))!==null&&s!==void 0&&s},r.prototype.registerName=function(e,t){Pn(e);var n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))},r.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(Pn(e),n)},r.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},r.prototype.clearRules=function(e){this.getTag().clearGroup(Pn(e)),this.clearNames(e)},r.prototype.clearTag=function(){this.tag=void 0},r})(),jp=/&/g,Dt=47,yr=42;function Rl(r){if(r.indexOf("}")===-1)return!1;for(var e=r.length,t=0,n=0,s=!1,i=0;i<e;i++){var o=r.charCodeAt(i);if(n!==0||s||o!==Dt||r.charCodeAt(i+1)!==yr)if(s)o===yr&&r.charCodeAt(i+1)===Dt&&(s=!1,i++);else if(o!==34&&o!==39||i!==0&&r.charCodeAt(i-1)===92){if(n===0){if(o===123)t++;else if(o===125&&--t<0)return!0}}else n===0?n=o:n===o&&(n=0);else s=!0,i++}return t!==0||n!==0}function Pc(r,e){return r.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(n){return"".concat(e," ").concat(n)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=Pc(t.children,e)),t})}function $p(r){var e,t,n,s=on,i=s.options,o=i===void 0?on:i,a=s.plugins,l=a===void 0?$a:a,c=function(v,d,b){return b.startsWith(t)&&b.endsWith(t)&&b.replaceAll(t,"").length>0?".".concat(e):v},h=l.slice();h.push(function(v){v.type===ci&&v.value.includes("&")&&(n||(n=new RegExp("\\".concat(t,"\\b"),"g")),v.props[0]=v.props[0].replace(jp,t).replace(n,c))}),o.prefix&&h.push(cp),h.push(ap);var g=[],p=lp(h.concat(up(function(v){return g.push(v)}))),m=function(v,d,b,E){d===void 0&&(d=""),b===void 0&&(b=""),E===void 0&&(E="&"),e=E,t=d,n=void 0;var x=(function(k){if(!Rl(k))return k;for(var _=k.length,B="",L=0,K=0,ae=0,de=!1,y=0;y<_;y++){var M=k.charCodeAt(y);if(ae!==0||de||M!==Dt||k.charCodeAt(y+1)!==yr)if(de)M===yr&&k.charCodeAt(y+1)===Dt&&(de=!1,y++);else if(M!==34&&M!==39||y!==0&&k.charCodeAt(y-1)===92){if(ae===0)if(M===123)K++;else if(M===125){if(--K<0){for(var A=y+1;A<_;){var V=k.charCodeAt(A);if(V===59||V===10)break;A++}A<_&&k.charCodeAt(A)===59&&A++,K=0,y=A-1,L=A;continue}K===0&&(B+=k.substring(L,y+1),L=y+1)}else M===59&&K===0&&(B+=k.substring(L,y+1),L=y+1)}else ae===0?ae=M:ae===M&&(ae=0);else de=!0,y++}if(L<_){var j=k.substring(L);Rl(j)||(B+=j)}return B})((function(k){if(k.indexOf("//")===-1)return k;for(var _=k.length,B=[],L=0,K=0,ae=0,de=0;K<_;){var y=k.charCodeAt(K);if(y!==34&&y!==39||K!==0&&k.charCodeAt(K-1)===92)if(ae===0)if(y===Dt&&K+1<_&&k.charCodeAt(K+1)===yr){for(K+=2;K+1<_&&(k.charCodeAt(K)!==yr||k.charCodeAt(K+1)!==Dt);)K++;K+=2}else if(y===40&&K>=3&&(32|k.charCodeAt(K-1))==108&&(32|k.charCodeAt(K-2))==114&&(32|k.charCodeAt(K-3))==117)de=1,K++;else if(de>0)y===41?de--:y===40&&de++,K++;else if(y===yr&&K+1<_&&k.charCodeAt(K+1)===Dt)K>L&&B.push(k.substring(L,K)),L=K+=2;else if(y===Dt&&K+1<_&&k.charCodeAt(K+1)===Dt){for(K>L&&B.push(k.substring(L,K));K<_&&k.charCodeAt(K)!==10;)K++;L=K}else K++;else K++;else ae===0?ae=y:ae===y&&(ae=0),K++}return L===0?k:(L<_&&B.push(k.substring(L)),B.join(""))})(v)),S=ip(b||d?"".concat(b," ").concat(d," { ").concat(x," }"):x);return o.namespace&&(S=Pc(S,o.namespace)),g=[],Qs(S,p),g};return m.hash=l.length?l.reduce(function(v,d){return d.name||gn(15),Yt(v,d.name)},5381).toString():"",m}var Vp=new Dc,ra=$p(),na={shouldForwardProp:void 0,styleSheet:Vp,stylis:ra},Bc=rr?{Provider:function(r){return r.children},Consumer:function(r){return(0,r.children)(na)}}:C.default.createContext(na);Bc.Consumer;rr||C.default.createContext(void 0);function Ol(){return rr?na:C.default.useContext(Bc)}var Ll=(function(){function r(e,t){var n=this;this.inject=function(s,i){i===void 0&&(i=ra);var o=n.name+i.hash;s.hasNameForId(n.id,o)||s.insertRules(n.id,o,i(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ua(this,function(){throw gn(12,String(n.name))})}return r.prototype.getName=function(e){return e===void 0&&(e=ra),this.name+e.hash},r})();function Up(r,e){return e==null||typeof e=="boolean"||e===""?"":typeof e!="number"||e===0||r in en.unitlessKeys||r.startsWith("--")?String(e).trim():"".concat(e,"px")}var Hp=function(r){return r>="A"&&r<="Z"};function Ml(r){for(var e="",t=0;t<r.length;t++){var n=r[t];if(t===1&&n==="-"&&r[0]==="-")return r;Hp(n)?e+="-"+n.toLowerCase():e+=n}return e.startsWith("ms-")?"-"+e:e}var qc=function(r){return r==null||r===!1||r===""},Fc=function(r){var e=[];for(var t in r){var n=r[t];r.hasOwnProperty(t)&&!qc(n)&&(Array.isArray(n)&&n.isCss||an(n)?e.push("".concat(Ml(t),":"),n,";"):ln(n)?e.push.apply(e,Te.__spreadArray(Te.__spreadArray(["".concat(t," {")],Fc(n),!1),["}"],!1)):e.push("".concat(Ml(t),": ").concat(Up(t,n),";")))}return e};function wr(r,e,t,n,s){if(s===void 0&&(s=[]),typeof r=="string")return r&&s.push(r),s;if(qc(r))return s;if(Va(r))return s.push(".".concat(r.styledComponentId)),s;if(an(r)){if(!an(o=r)||o.prototype&&o.prototype.isReactComponent||!e)return s.push(r),s;var i=r(e);return process.env.NODE_ENV==="production"||typeof i!="object"||Array.isArray(i)||i instanceof Ll||ln(i)||i===null||console.error("".concat(Nc(r)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),wr(i,e,t,n,s)}var o;if(r instanceof Ll)return t?(r.inject(t,n),s.push(r.getName(n))):s.push(r),s;if(ln(r)){for(var a=Fc(r),l=0;l<a.length;l++)s.push(a[l]);return s}if(!Array.isArray(r))return s.push(r.toString()),s;for(l=0;l<r.length;l++)wr(r[l],e,t,n,s);return s}function zp(r){for(var e=0;e<r.length;e+=1){var t=r[e];if(an(t)&&!Va(t))return!1}return!0}var Gp=kc(pi),Kp=(function(){function r(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(n===void 0||n.isStatic)&&zp(e),this.componentId=t,this.baseHash=Yt(Gp,t),this.baseStyle=n,Dc.registerId(t)}return r.prototype.generateAndInjectStyles=function(e,t,n){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))s=br(s,this.staticRulesId);else{var i=kl(wr(this.rules,e,t,n)),o=Jo(Yt(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}s=br(s,o),this.staticRulesId=o}else{for(var l=Yt(this.baseHash,n.hash),c="",h=0;h<this.rules.length;h++){var g=this.rules[h];if(typeof g=="string")c+=g,process.env.NODE_ENV!=="production"&&(l=Yt(l,g));else if(g){var p=kl(wr(g,e,t,n));l=Yt(Yt(l,String(h)),p),c+=p}}if(c){var m=Jo(l>>>0);if(!t.hasNameForId(this.componentId,m)){var v=n(c,".".concat(m),void 0,this.componentId);t.insertRules(this.componentId,m,v)}s=br(s,m)}}return{className:s,css:typeof window>"u"?t.getTag().getGroup(Pn(this.componentId)):""}},r})(),jc=rr?{Provider:function(r){return r.children},Consumer:function(r){return(0,r.children)(void 0)}}:C.default.createContext(void 0);jc.Consumer;var Co={},Dl=new Set;function Wp(r,e,t){var n=Va(r),s=r,i=!So(r),o=e.attrs,a=o===void 0?$a:o,l=e.componentId,c=l===void 0?(function(k,_){var B=typeof k!="string"?"sc":_l(k);Co[B]=(Co[B]||0)+1;var L="".concat(B,"-").concat(vp(pi+B+Co[B]));return _?"".concat(_,"-").concat(L):L})(e.displayName,e.parentComponentId):l,h=e.displayName,g=h===void 0?(function(k){return So(k)?"styled.".concat(k):"Styled(".concat(Nc(k),")")})(r):h,p=e.displayName&&e.componentId?"".concat(_l(e.displayName),"-").concat(e.componentId):e.componentId||c,m=n&&s.attrs?s.attrs.concat(a).filter(Boolean):a,v=e.shouldForwardProp;if(n&&s.shouldForwardProp){var d=s.shouldForwardProp;if(e.shouldForwardProp){var b=e.shouldForwardProp;v=function(k,_){return d(k,_)&&b(k,_)}}else v=d}var E=new Kp(t,p,n?s.componentStyle:void 0);function x(k,_){return(function(B,L,K){var ae=B.attrs,de=B.componentStyle,y=B.defaultProps,M=B.foldedComponentIds,A=B.styledComponentId,V=B.target,j=rr?void 0:C.default.useContext(jc),R=Ol(),q=B.shouldForwardProp||R.shouldForwardProp;process.env.NODE_ENV!=="production"&&C.default.useDebugValue&&C.default.useDebugValue(A);var Y=fp(L,j,y)||(rr?void 0:on),Z=(function($,X,G){for(var Q,N=Te.__assign(Te.__assign({},X),{className:void 0,theme:G}),ue=0;ue<$.length;ue+=1){var ge=an(Q=$[ue])?Q(N):Q;for(var be in ge)be==="className"?N.className=br(N.className,ge[be]):be==="style"?N.style=Te.__assign(Te.__assign({},N.style),ge[be]):N[be]=ge[be]}return"className"in X&&typeof X.className=="string"&&(N.className=br(N.className,X.className)),N})(ae,L,Y),T=Z.as||V,D={};for(var U in Z)Z[U]===void 0||U[0]==="$"||U==="as"||U==="theme"&&Z.theme===Y||(U==="forwardedAs"?D.as=Z.forwardedAs:q&&!q(U,T)||(D[U]=Z[U],q||process.env.NODE_ENV!=="development"||zf(U)||Dl.has(U)||!Qo.has(T)||(Dl.add(U),console.warn('styled-components: it looks like an unknown prop "'.concat(U,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var W=(function($,X){var G=Ol(),Q=$.generateAndInjectStyles(X,G.styleSheet,G.stylis);return process.env.NODE_ENV!=="production"&&C.default.useDebugValue&&C.default.useDebugValue(Q.className),Q})(de,Z),z=W.className,H=W.css;process.env.NODE_ENV!=="production"&&B.warnTooManyClasses&&B.warnTooManyClasses(z);var J=br(M,A);z&&(J+=" "+z),Z.className&&(J+=" "+Z.className),D[So(T)&&!Qo.has(T)?"class":"className"]=J,K&&(D.ref=K);var F=Ke.createElement(T,D);return rr&&H?C.default.createElement(C.default.Fragment,null,C.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(A,"-").concat(z),children:H}),F):F})(S,k,_)}x.displayName=g;var S=C.default.forwardRef(x);return S.attrs=m,S.componentStyle=E,S.displayName=g,S.shouldForwardProp=v,S.foldedComponentIds=n?br(s.foldedComponentIds,s.styledComponentId):"",S.styledComponentId=p,S.target=n?s.target:r,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=n?(function(_){for(var B=[],L=1;L<arguments.length;L++)B[L-1]=arguments[L];for(var K=0,ae=B;K<ae.length;K++)ea(_,ae[K],!0);return _})({},s.defaultProps,k):k}}),process.env.NODE_ENV!=="production"&&(dp(g,p),S.warnTooManyClasses=(function(k,_){var B={},L=!1;return function(K){if(!L&&(B[K]=!0,Object.keys(B).length>=200)){var ae=_?' with the id of "'.concat(_,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(k).concat(ae,`.
53
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
54
+ Example:
55
+ const Component = styled.div.attrs(props => ({
56
+ style: {
57
+ background: props.background,
58
+ },
59
+ }))\`width: 100%;\`
60
+
61
+ <Component />`),L=!0,B={}}}})(g,p)),Ua(S,function(){return".".concat(S.styledComponentId)}),i&&Lc(S,r,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function Pl(r,e){for(var t=[r[0]],n=0,s=e.length;n<s;n+=1)t.push(e[n],r[n+1]);return t}var Bl=function(r){return Object.assign(r,{isCss:!0})};function Yp(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(an(r)||ln(r))return Bl(wr(Pl($a,Te.__spreadArray([r],e,!0))));var n=r;return e.length===0&&n.length===1&&typeof n[0]=="string"?wr(n):Bl(wr(Pl(n,e)))}function sa(r,e,t){if(t===void 0&&(t=on),!e)throw gn(1,e);var n=function(s){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];return r(e,t,Yp.apply(void 0,Te.__spreadArray([s],i,!1)))};return n.attrs=function(s){return sa(r,e,Te.__assign(Te.__assign({},t),{attrs:Array.prototype.concat(t.attrs,s).filter(Boolean)}))},n.withConfig=function(s){return sa(r,e,Te.__assign(Te.__assign({},t),s))},n}var $c=function(r){return sa(Wp,r)},Vc=$c;Qo.forEach(function(r){Vc[r]=$c(r)});process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
62
+ Perhaps you're looking to import 'styled-components/native'?
63
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var Ts="__sc-".concat(_r,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[Ts]||(window[Ts]=0),window[Ts]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
64
+
65
+ See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`),window[Ts]+=1);const Zp=Vc.div`
66
+ .filepond {
67
+ &--drop-label {
68
+ label {
69
+ color: ${({$invalid:r})=>r?"var(--color-item-primary-destructive)":"inherit"} !important;
70
+ }
71
+ }
72
+
73
+ &--root {
74
+ margin-bottom: 0.5rem;
75
+ border-radius: 0.75rem;
76
+ }
77
+
78
+ &--panel {
79
+ border-radius: 0.8rem;
80
+ overflow: hidden;
81
+
82
+ &-root {
83
+ background-color: transparent;
84
+ }
85
+ }
86
+
87
+ &--drip {
88
+ border: 1px solid
89
+ ${({$invalid:r})=>r?"var(--color-item-primary-destructive)":"var(--color-border-alpha-strong)"};
90
+ background-color: transparent;
91
+ opacity: 1;
92
+ outline-offset: 2px;
93
+ border-radius: 0.75rem;
94
+ }
95
+ }
96
+
97
+ &:focus-within {
98
+ .filepond {
99
+ &--drip {
100
+ outline: 2px solid
101
+ ${({$invalid:r})=>r?"var(--color-item-primary-destructive)":"var(--color-item-primary-primary)"};
102
+ }
103
+ }
104
+ }
105
+ `;function Uc({variant:r="default",...e}){return I.jsx(Zp,{$invalid:r==="failure",...e})}Uc.displayName="FilepondContainer";var Xp=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Qp=Xp.reduce((r,e)=>{const t=ic.createSlot(`Primitive.${e}`),n=C.forwardRef((s,i)=>{const{asChild:o,...a}=s,l=o?t:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),I.jsx(l,{...a,ref:i})});return n.displayName=`Primitive.${e}`,{...r,[e]:n}},{}),Jp="Label",Hc=C.forwardRef((r,e)=>I.jsx(Qp.label,{...r,ref:e,onMouseDown:t=>{var s;t.target.closest("button, input, select, textarea")||((s=r.onMouseDown)==null||s.call(r,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Hc.displayName=Jp;var zc=Hc;const eg=Da.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ha=C.forwardRef(({className:r,...e},t)=>I.jsx(zc,{ref:t,className:Ce.cn(eg(),r),...e}));Ha.displayName=zc.displayName;const tg=Ma.FormProvider,Gc=C.createContext({}),rg=({...r})=>I.jsx(Gc.Provider,{value:{name:r.name},children:I.jsx(Ma.Controller,{...r})}),rs=()=>{const r=C.useContext(Gc),e=C.useContext(Kc),{getFieldState:t,formState:n}=Ma.useFormContext(),s=t(r.name,n);if(!r)throw new Error("useFormField should be used within <FormField>");const{id:i}=e;return{id:i,name:r.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...s}},Kc=C.createContext({}),Wc=C.forwardRef(({className:r,...e},t)=>{const n=C.useId();return I.jsx(Kc.Provider,{value:{id:n},children:I.jsx("div",{ref:t,className:Ce.cn("relative space-y-3",r),...e})})});Wc.displayName="FormItem";const Yc=C.forwardRef(({className:r,...e},t)=>{const{error:n,formItemId:s}=rs();return I.jsx(Ha,{ref:t,className:Ce.cn("!text-body-xs-medium",r,n&&"text-destructive"),htmlFor:s,...e})});Yc.displayName="FormLabel";const Zc=C.forwardRef(({...r},e)=>{const{error:t,formItemId:n,formDescriptionId:s,formMessageId:i}=rs();return I.jsx(ic.Slot,{ref:e,id:n,"aria-describedby":t?`${s} ${i}`:`${s}`,"aria-invalid":!!t,...r})});Zc.displayName="FormControl";const Xc=C.forwardRef(({className:r,...e},t)=>{const{formDescriptionId:n}=rs();return I.jsx("p",{ref:t,id:n,className:Ce.cn("text-muted-foreground text-sm",r),...e})});Xc.displayName="FormDescription";const Qc=C.forwardRef(({className:r,children:e,...t},n)=>{const{error:s,formMessageId:i}=rs(),o=s?String(s==null?void 0:s.message):e;return o?I.jsx("p",{ref:n,id:i,className:Ce.cn("!text-body-xs-medium text-destructive",r),...t,children:o}):null});Qc.displayName="FormMessage";var Jc=typeof global=="object"&&global&&global.Object===Object&&global,ng=typeof self=="object"&&self&&self.Object===Object&&self,Tt=Jc||ng||Function("return this")(),or=Tt.Symbol,eh=Object.prototype,sg=eh.hasOwnProperty,ig=eh.toString,Ln=or?or.toStringTag:void 0;function og(r){var e=sg.call(r,Ln),t=r[Ln];try{r[Ln]=void 0;var n=!0}catch{}var s=ig.call(r);return n&&(e?r[Ln]=t:delete r[Ln]),s}var ag=Object.prototype,lg=ag.toString;function ug(r){return lg.call(r)}var cg="[object Null]",hg="[object Undefined]",ql=or?or.toStringTag:void 0;function mn(r){return r==null?r===void 0?hg:cg:ql&&ql in Object(r)?og(r):ug(r)}function Bt(r){return r!=null&&typeof r=="object"}var Sr=Array.isArray;function ar(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function th(r){return r}var dg="[object AsyncFunction]",fg="[object Function]",pg="[object GeneratorFunction]",gg="[object Proxy]";function za(r){if(!ar(r))return!1;var e=mn(r);return e==fg||e==pg||e==dg||e==gg}var To=Tt["__core-js_shared__"],Fl=(function(){var r=/[^.]+$/.exec(To&&To.keys&&To.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function mg(r){return!!Fl&&Fl in r}var vg=Function.prototype,yg=vg.toString;function Nr(r){if(r!=null){try{return yg.call(r)}catch{}try{return r+""}catch{}}return""}var bg=/[\\^$.*+?()[\]{}|]/g,Eg=/^\[object .+?Constructor\]$/,wg=Function.prototype,xg=Object.prototype,_g=wg.toString,Sg=xg.hasOwnProperty,Ag=RegExp("^"+_g.call(Sg).replace(bg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Cg(r){if(!ar(r)||mg(r))return!1;var e=za(r)?Ag:Eg;return e.test(Nr(r))}function Tg(r,e){return r==null?void 0:r[e]}function Ir(r,e){var t=Tg(r,e);return Cg(t)?t:void 0}var ia=Ir(Tt,"WeakMap"),jl=Object.create,kg=(function(){function r(){}return function(e){if(!ar(e))return{};if(jl)return jl(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}})();function Ng(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function Ig(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var Rg=800,Og=16,Lg=Date.now;function Mg(r){var e=0,t=0;return function(){var n=Lg(),s=Og-(n-t);if(t=n,s>0){if(++e>=Rg)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function Dg(r){return function(){return r}}var ei=(function(){try{var r=Ir(Object,"defineProperty");return r({},"",{}),r}catch{}})(),Pg=ei?function(r,e){return ei(r,"toString",{configurable:!0,enumerable:!1,value:Dg(e),writable:!0})}:th,Bg=Mg(Pg);function qg(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var Fg=9007199254740991,jg=/^(?:0|[1-9]\d*)$/;function rh(r,e){var t=typeof r;return e=e??Fg,!!e&&(t=="number"||t!="symbol"&&jg.test(r))&&r>-1&&r%1==0&&r<e}function Ga(r,e,t){e=="__proto__"&&ei?ei(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function ns(r,e){return r===e||r!==r&&e!==e}var $g=Object.prototype,Vg=$g.hasOwnProperty;function nh(r,e,t){var n=r[e];(!(Vg.call(r,e)&&ns(n,t))||t===void 0&&!(e in r))&&Ga(r,e,t)}function Ug(r,e,t,n){var s=!t;t||(t={});for(var i=-1,o=e.length;++i<o;){var a=e[i],l=void 0;l===void 0&&(l=r[a]),s?Ga(t,a,l):nh(t,a,l)}return t}var $l=Math.max;function Hg(r,e,t){return e=$l(e===void 0?r.length-1:e,0),function(){for(var n=arguments,s=-1,i=$l(n.length-e,0),o=Array(i);++s<i;)o[s]=n[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=n[s];return a[e]=t(o),Ng(r,this,a)}}function zg(r,e){return Bg(Hg(r,e,th),r+"")}var Gg=9007199254740991;function sh(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Gg}function gi(r){return r!=null&&sh(r.length)&&!za(r)}function Kg(r,e,t){if(!ar(t))return!1;var n=typeof e;return(n=="number"?gi(t)&&rh(e,t.length):n=="string"&&e in t)?ns(t[e],r):!1}function Wg(r){return zg(function(e,t){var n=-1,s=t.length,i=s>1?t[s-1]:void 0,o=s>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(s--,i):void 0,o&&Kg(t[0],t[1],o)&&(i=s<3?void 0:i,s=1),e=Object(e);++n<s;){var a=t[n];a&&r(e,a,n,i)}return e})}var Yg=Object.prototype;function Ka(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Yg;return r===t}function Zg(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var Xg="[object Arguments]";function Vl(r){return Bt(r)&&mn(r)==Xg}var ih=Object.prototype,Qg=ih.hasOwnProperty,Jg=ih.propertyIsEnumerable,oa=Vl((function(){return arguments})())?Vl:function(r){return Bt(r)&&Qg.call(r,"callee")&&!Jg.call(r,"callee")};function em(){return!1}var oh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ul=oh&&typeof module=="object"&&module&&!module.nodeType&&module,tm=Ul&&Ul.exports===oh,Hl=tm?Tt.Buffer:void 0,rm=Hl?Hl.isBuffer:void 0,Wn=rm||em,nm="[object Arguments]",sm="[object Array]",im="[object Boolean]",om="[object Date]",am="[object Error]",lm="[object Function]",um="[object Map]",cm="[object Number]",hm="[object Object]",dm="[object RegExp]",fm="[object Set]",pm="[object String]",gm="[object WeakMap]",mm="[object ArrayBuffer]",vm="[object DataView]",ym="[object Float32Array]",bm="[object Float64Array]",Em="[object Int8Array]",wm="[object Int16Array]",xm="[object Int32Array]",_m="[object Uint8Array]",Sm="[object Uint8ClampedArray]",Am="[object Uint16Array]",Cm="[object Uint32Array]",Ae={};Ae[ym]=Ae[bm]=Ae[Em]=Ae[wm]=Ae[xm]=Ae[_m]=Ae[Sm]=Ae[Am]=Ae[Cm]=!0;Ae[nm]=Ae[sm]=Ae[mm]=Ae[im]=Ae[vm]=Ae[om]=Ae[am]=Ae[lm]=Ae[um]=Ae[cm]=Ae[hm]=Ae[dm]=Ae[fm]=Ae[pm]=Ae[gm]=!1;function Tm(r){return Bt(r)&&sh(r.length)&&!!Ae[mn(r)]}function Wa(r){return function(e){return r(e)}}var ah=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Un=ah&&typeof module=="object"&&module&&!module.nodeType&&module,km=Un&&Un.exports===ah,ko=km&&Jc.process,un=(function(){try{var r=Un&&Un.require&&Un.require("util").types;return r||ko&&ko.binding&&ko.binding("util")}catch{}})(),zl=un&&un.isTypedArray,Ya=zl?Wa(zl):Tm,Nm=Object.prototype,Im=Nm.hasOwnProperty;function lh(r,e){var t=Sr(r),n=!t&&oa(r),s=!t&&!n&&Wn(r),i=!t&&!n&&!s&&Ya(r),o=t||n||s||i,a=o?Zg(r.length,String):[],l=a.length;for(var c in r)(e||Im.call(r,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||rh(c,l)))&&a.push(c);return a}function uh(r,e){return function(t){return r(e(t))}}var Rm=uh(Object.keys,Object),Om=Object.prototype,Lm=Om.hasOwnProperty;function Mm(r){if(!Ka(r))return Rm(r);var e=[];for(var t in Object(r))Lm.call(r,t)&&t!="constructor"&&e.push(t);return e}function Dm(r){return gi(r)?lh(r):Mm(r)}function Pm(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var Bm=Object.prototype,qm=Bm.hasOwnProperty;function Fm(r){if(!ar(r))return Pm(r);var e=Ka(r),t=[];for(var n in r)n=="constructor"&&(e||!qm.call(r,n))||t.push(n);return t}function ch(r){return gi(r)?lh(r,!0):Fm(r)}var Yn=Ir(Object,"create");function jm(){this.__data__=Yn?Yn(null):{},this.size=0}function $m(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var Vm="__lodash_hash_undefined__",Um=Object.prototype,Hm=Um.hasOwnProperty;function zm(r){var e=this.__data__;if(Yn){var t=e[r];return t===Vm?void 0:t}return Hm.call(e,r)?e[r]:void 0}var Gm=Object.prototype,Km=Gm.hasOwnProperty;function Wm(r){var e=this.__data__;return Yn?e[r]!==void 0:Km.call(e,r)}var Ym="__lodash_hash_undefined__";function Zm(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Yn&&e===void 0?Ym:e,this}function Ar(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Ar.prototype.clear=jm;Ar.prototype.delete=$m;Ar.prototype.get=zm;Ar.prototype.has=Wm;Ar.prototype.set=Zm;function Xm(){this.__data__=[],this.size=0}function mi(r,e){for(var t=r.length;t--;)if(ns(r[t][0],e))return t;return-1}var Qm=Array.prototype,Jm=Qm.splice;function e0(r){var e=this.__data__,t=mi(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():Jm.call(e,t,1),--this.size,!0}function t0(r){var e=this.__data__,t=mi(e,r);return t<0?void 0:e[t][1]}function r0(r){return mi(this.__data__,r)>-1}function n0(r,e){var t=this.__data__,n=mi(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}function Vt(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Vt.prototype.clear=Xm;Vt.prototype.delete=e0;Vt.prototype.get=t0;Vt.prototype.has=r0;Vt.prototype.set=n0;var Zn=Ir(Tt,"Map");function s0(){this.size=0,this.__data__={hash:new Ar,map:new(Zn||Vt),string:new Ar}}function i0(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function vi(r,e){var t=r.__data__;return i0(e)?t[typeof e=="string"?"string":"hash"]:t.map}function o0(r){var e=vi(this,r).delete(r);return this.size-=e?1:0,e}function a0(r){return vi(this,r).get(r)}function l0(r){return vi(this,r).has(r)}function u0(r,e){var t=vi(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}function Rr(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}Rr.prototype.clear=s0;Rr.prototype.delete=o0;Rr.prototype.get=a0;Rr.prototype.has=l0;Rr.prototype.set=u0;function c0(r,e){for(var t=-1,n=e.length,s=r.length;++t<n;)r[s+t]=e[t];return r}var hh=uh(Object.getPrototypeOf,Object),h0="[object Object]",d0=Function.prototype,f0=Object.prototype,dh=d0.toString,p0=f0.hasOwnProperty,g0=dh.call(Object);function m0(r){if(!Bt(r)||mn(r)!=h0)return!1;var e=hh(r);if(e===null)return!0;var t=p0.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&dh.call(t)==g0}function v0(){this.__data__=new Vt,this.size=0}function y0(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function b0(r){return this.__data__.get(r)}function E0(r){return this.__data__.has(r)}var w0=200;function x0(r,e){var t=this.__data__;if(t instanceof Vt){var n=t.__data__;if(!Zn||n.length<w0-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new Rr(n)}return t.set(r,e),this.size=t.size,this}function _t(r){var e=this.__data__=new Vt(r);this.size=e.size}_t.prototype.clear=v0;_t.prototype.delete=y0;_t.prototype.get=b0;_t.prototype.has=E0;_t.prototype.set=x0;var fh=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gl=fh&&typeof module=="object"&&module&&!module.nodeType&&module,_0=Gl&&Gl.exports===fh,Kl=_0?Tt.Buffer:void 0,Wl=Kl?Kl.allocUnsafe:void 0;function ph(r,e){if(e)return r.slice();var t=r.length,n=Wl?Wl(t):new r.constructor(t);return r.copy(n),n}function S0(r,e){for(var t=-1,n=r==null?0:r.length,s=0,i=[];++t<n;){var o=r[t];e(o,t,r)&&(i[s++]=o)}return i}function A0(){return[]}var C0=Object.prototype,T0=C0.propertyIsEnumerable,Yl=Object.getOwnPropertySymbols,k0=Yl?function(r){return r==null?[]:(r=Object(r),S0(Yl(r),function(e){return T0.call(r,e)}))}:A0;function N0(r,e,t){var n=e(r);return Sr(r)?n:c0(n,t(r))}function aa(r){return N0(r,Dm,k0)}var la=Ir(Tt,"DataView"),ua=Ir(Tt,"Promise"),ca=Ir(Tt,"Set"),Zl="[object Map]",I0="[object Object]",Xl="[object Promise]",Ql="[object Set]",Jl="[object WeakMap]",eu="[object DataView]",R0=Nr(la),O0=Nr(Zn),L0=Nr(ua),M0=Nr(ca),D0=Nr(ia),lt=mn;(la&&lt(new la(new ArrayBuffer(1)))!=eu||Zn&&lt(new Zn)!=Zl||ua&&lt(ua.resolve())!=Xl||ca&&lt(new ca)!=Ql||ia&&lt(new ia)!=Jl)&&(lt=function(r){var e=mn(r),t=e==I0?r.constructor:void 0,n=t?Nr(t):"";if(n)switch(n){case R0:return eu;case O0:return Zl;case L0:return Xl;case M0:return Ql;case D0:return Jl}return e});var P0=Object.prototype,B0=P0.hasOwnProperty;function q0(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&B0.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var ti=Tt.Uint8Array;function Za(r){var e=new r.constructor(r.byteLength);return new ti(e).set(new ti(r)),e}function F0(r,e){var t=Za(r.buffer);return new r.constructor(t,r.byteOffset,r.byteLength)}var j0=/\w*$/;function $0(r){var e=new r.constructor(r.source,j0.exec(r));return e.lastIndex=r.lastIndex,e}var tu=or?or.prototype:void 0,ru=tu?tu.valueOf:void 0;function V0(r){return ru?Object(ru.call(r)):{}}function gh(r,e){var t=e?Za(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var U0="[object Boolean]",H0="[object Date]",z0="[object Map]",G0="[object Number]",K0="[object RegExp]",W0="[object Set]",Y0="[object String]",Z0="[object Symbol]",X0="[object ArrayBuffer]",Q0="[object DataView]",J0="[object Float32Array]",e1="[object Float64Array]",t1="[object Int8Array]",r1="[object Int16Array]",n1="[object Int32Array]",s1="[object Uint8Array]",i1="[object Uint8ClampedArray]",o1="[object Uint16Array]",a1="[object Uint32Array]";function l1(r,e,t){var n=r.constructor;switch(e){case X0:return Za(r);case U0:case H0:return new n(+r);case Q0:return F0(r);case J0:case e1:case t1:case r1:case n1:case s1:case i1:case o1:case a1:return gh(r,t);case z0:return new n;case G0:case Y0:return new n(r);case K0:return $0(r);case W0:return new n;case Z0:return V0(r)}}function mh(r){return typeof r.constructor=="function"&&!Ka(r)?kg(hh(r)):{}}var u1="[object Map]";function c1(r){return Bt(r)&&lt(r)==u1}var nu=un&&un.isMap,h1=nu?Wa(nu):c1,d1="[object Set]";function f1(r){return Bt(r)&&lt(r)==d1}var su=un&&un.isSet,p1=su?Wa(su):f1,g1=1,vh="[object Arguments]",m1="[object Array]",v1="[object Boolean]",y1="[object Date]",b1="[object Error]",yh="[object Function]",E1="[object GeneratorFunction]",w1="[object Map]",x1="[object Number]",bh="[object Object]",_1="[object RegExp]",S1="[object Set]",A1="[object String]",C1="[object Symbol]",T1="[object WeakMap]",k1="[object ArrayBuffer]",N1="[object DataView]",I1="[object Float32Array]",R1="[object Float64Array]",O1="[object Int8Array]",L1="[object Int16Array]",M1="[object Int32Array]",D1="[object Uint8Array]",P1="[object Uint8ClampedArray]",B1="[object Uint16Array]",q1="[object Uint32Array]",_e={};_e[vh]=_e[m1]=_e[k1]=_e[N1]=_e[v1]=_e[y1]=_e[I1]=_e[R1]=_e[O1]=_e[L1]=_e[M1]=_e[w1]=_e[x1]=_e[bh]=_e[_1]=_e[S1]=_e[A1]=_e[C1]=_e[D1]=_e[P1]=_e[B1]=_e[q1]=!0;_e[b1]=_e[yh]=_e[T1]=!1;function zs(r,e,t,n,s,i){var o,a=e&g1;if(o!==void 0)return o;if(!ar(r))return r;var l=Sr(r);if(l)o=q0(r);else{var c=lt(r),h=c==yh||c==E1;if(Wn(r))return ph(r,a);if(c==bh||c==vh||h&&!s)o=h?{}:mh(r);else{if(!_e[c])return s?r:{};o=l1(r,c,a)}}i||(i=new _t);var g=i.get(r);if(g)return g;i.set(r,o),p1(r)?r.forEach(function(v){o.add(zs(v,e,t,v,r,i))}):h1(r)&&r.forEach(function(v,d){o.set(d,zs(v,e,t,d,r,i))});var p=aa,m=l?void 0:p(r);return qg(m||r,function(v,d){m&&(d=v,v=r[d]),nh(o,d,zs(v,e,t,d,r,i))}),o}var F1=1,j1=4;function tn(r){return zs(r,F1|j1)}var $1="__lodash_hash_undefined__";function V1(r){return this.__data__.set(r,$1),this}function U1(r){return this.__data__.has(r)}function ri(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Rr;++e<t;)this.add(r[e])}ri.prototype.add=ri.prototype.push=V1;ri.prototype.has=U1;function H1(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}function z1(r,e){return r.has(e)}var G1=1,K1=2;function Eh(r,e,t,n,s,i){var o=t&G1,a=r.length,l=e.length;if(a!=l&&!(o&&l>a))return!1;var c=i.get(r),h=i.get(e);if(c&&h)return c==e&&h==r;var g=-1,p=!0,m=t&K1?new ri:void 0;for(i.set(r,e),i.set(e,r);++g<a;){var v=r[g],d=e[g];if(n)var b=o?n(d,v,g,e,r,i):n(v,d,g,r,e,i);if(b!==void 0){if(b)continue;p=!1;break}if(m){if(!H1(e,function(E,x){if(!z1(m,x)&&(v===E||s(v,E,t,n,i)))return m.push(x)})){p=!1;break}}else if(!(v===d||s(v,d,t,n,i))){p=!1;break}}return i.delete(r),i.delete(e),p}function W1(r){var e=-1,t=Array(r.size);return r.forEach(function(n,s){t[++e]=[s,n]}),t}function Y1(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var Z1=1,X1=2,Q1="[object Boolean]",J1="[object Date]",ev="[object Error]",tv="[object Map]",rv="[object Number]",nv="[object RegExp]",sv="[object Set]",iv="[object String]",ov="[object Symbol]",av="[object ArrayBuffer]",lv="[object DataView]",iu=or?or.prototype:void 0,No=iu?iu.valueOf:void 0;function uv(r,e,t,n,s,i,o){switch(t){case lv:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case av:return!(r.byteLength!=e.byteLength||!i(new ti(r),new ti(e)));case Q1:case J1:case rv:return ns(+r,+e);case ev:return r.name==e.name&&r.message==e.message;case nv:case iv:return r==e+"";case tv:var a=W1;case sv:var l=n&Z1;if(a||(a=Y1),r.size!=e.size&&!l)return!1;var c=o.get(r);if(c)return c==e;n|=X1,o.set(r,e);var h=Eh(a(r),a(e),n,s,i,o);return o.delete(r),h;case ov:if(No)return No.call(r)==No.call(e)}return!1}var cv=1,hv=Object.prototype,dv=hv.hasOwnProperty;function fv(r,e,t,n,s,i){var o=t&cv,a=aa(r),l=a.length,c=aa(e),h=c.length;if(l!=h&&!o)return!1;for(var g=l;g--;){var p=a[g];if(!(o?p in e:dv.call(e,p)))return!1}var m=i.get(r),v=i.get(e);if(m&&v)return m==e&&v==r;var d=!0;i.set(r,e),i.set(e,r);for(var b=o;++g<l;){p=a[g];var E=r[p],x=e[p];if(n)var S=o?n(x,E,p,e,r,i):n(E,x,p,r,e,i);if(!(S===void 0?E===x||s(E,x,t,n,i):S)){d=!1;break}b||(b=p=="constructor")}if(d&&!b){var k=r.constructor,_=e.constructor;k!=_&&"constructor"in r&&"constructor"in e&&!(typeof k=="function"&&k instanceof k&&typeof _=="function"&&_ instanceof _)&&(d=!1)}return i.delete(r),i.delete(e),d}var pv=1,ou="[object Arguments]",au="[object Array]",ks="[object Object]",gv=Object.prototype,lu=gv.hasOwnProperty;function mv(r,e,t,n,s,i){var o=Sr(r),a=Sr(e),l=o?au:lt(r),c=a?au:lt(e);l=l==ou?ks:l,c=c==ou?ks:c;var h=l==ks,g=c==ks,p=l==c;if(p&&Wn(r)){if(!Wn(e))return!1;o=!0,h=!1}if(p&&!h)return i||(i=new _t),o||Ya(r)?Eh(r,e,t,n,s,i):uv(r,e,l,t,n,s,i);if(!(t&pv)){var m=h&&lu.call(r,"__wrapped__"),v=g&&lu.call(e,"__wrapped__");if(m||v){var d=m?r.value():r,b=v?e.value():e;return i||(i=new _t),s(d,b,t,n,i)}}return p?(i||(i=new _t),fv(r,e,t,n,s,i)):!1}function wh(r,e,t,n,s){return r===e?!0:r==null||e==null||!Bt(r)&&!Bt(e)?r!==r&&e!==e:mv(r,e,t,n,wh,s)}function vv(r){return function(e,t,n){for(var s=-1,i=Object(e),o=n(e),a=o.length;a--;){var l=o[++s];if(t(i[l],l,i)===!1)break}return e}}var yv=vv();function ha(r,e,t){(t!==void 0&&!ns(r[e],t)||t===void 0&&!(e in r))&&Ga(r,e,t)}function bv(r){return Bt(r)&&gi(r)}function da(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function Ev(r){return Ug(r,ch(r))}function wv(r,e,t,n,s,i,o){var a=da(r,t),l=da(e,t),c=o.get(l);if(c){ha(r,t,c);return}var h=i?i(a,l,t+"",r,e,o):void 0,g=h===void 0;if(g){var p=Sr(l),m=!p&&Wn(l),v=!p&&!m&&Ya(l);h=l,p||m||v?Sr(a)?h=a:bv(a)?h=Ig(a):m?(g=!1,h=ph(l,!0)):v?(g=!1,h=gh(l,!0)):h=[]:m0(l)||oa(l)?(h=a,oa(a)?h=Ev(a):(!ar(a)||za(a))&&(h=mh(l))):g=!1}g&&(o.set(l,h),s(h,l,n,i,o),o.delete(l)),ha(r,t,h)}function xh(r,e,t,n,s){r!==e&&yv(e,function(i,o){if(s||(s=new _t),ar(i))wv(r,e,o,t,xh,n,s);else{var a=n?n(da(r,o),i,o+"",r,e,s):void 0;a===void 0&&(a=i),ha(r,o,a)}},ch)}function Zt(r,e){return wh(r,e)}var nr=Wg(function(r,e,t){xh(r,e,t)}),ne=(r=>(r[r.TYPE=3]="TYPE",r[r.LEVEL=12]="LEVEL",r[r.ATTRIBUTE=13]="ATTRIBUTE",r[r.BLOT=14]="BLOT",r[r.INLINE=7]="INLINE",r[r.BLOCK=11]="BLOCK",r[r.BLOCK_BLOT=10]="BLOCK_BLOT",r[r.INLINE_BLOT=6]="INLINE_BLOT",r[r.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",r[r.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",r[r.ANY=15]="ANY",r))(ne||{});class At{constructor(e,t,n={}){this.attrName=e,this.keyName=t;const s=ne.TYPE&ne.ATTRIBUTE;this.scope=n.scope!=null?n.scope&ne.LEVEL|s:ne.ATTRIBUTE,n.whitelist!=null&&(this.whitelist=n.whitelist)}static keys(e){return Array.from(e.attributes).map(t=>t.name)}add(e,t){return this.canAdd(e,t)?(e.setAttribute(this.keyName,t),!0):!1}canAdd(e,t){return this.whitelist==null?!0:typeof t=="string"?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1}remove(e){e.removeAttribute(this.keyName)}value(e){const t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""}}class rn extends Error{constructor(e){e="[Parchment] "+e,super(e),this.message=e,this.name=this.constructor.name}}const _h=class fa{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(e,t=!1){if(e==null)return null;if(this.blots.has(e))return this.blots.get(e)||null;if(t){let n=null;try{n=e.parentNode}catch{return null}return this.find(n,t)}return null}create(e,t,n){const s=this.query(t);if(s==null)throw new rn(`Unable to create ${t} blot`);const i=s,o=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(n),a=new i(e,o,n);return fa.blots.set(a.domNode,a),a}find(e,t=!1){return fa.find(e,t)}query(e,t=ne.ANY){let n;return typeof e=="string"?n=this.types[e]||this.attributes[e]:e instanceof Text||e.nodeType===Node.TEXT_NODE?n=this.types.text:typeof e=="number"?e&ne.LEVEL&ne.BLOCK?n=this.types.block:e&ne.LEVEL&ne.INLINE&&(n=this.types.inline):e instanceof Element&&((e.getAttribute("class")||"").split(/\s+/).some(s=>(n=this.classes[s],!!n)),n=n||this.tags[e.tagName]),n==null?null:"scope"in n&&t&ne.LEVEL&n.scope&&t&ne.TYPE&n.scope?n:null}register(...e){return e.map(t=>{const n="blotName"in t,s="attrName"in t;if(!n&&!s)throw new rn("Invalid definition");if(n&&t.blotName==="abstract")throw new rn("Cannot register abstract class");const i=n?t.blotName:s?t.attrName:void 0;return this.types[i]=t,s?typeof t.keyName=="string"&&(this.attributes[t.keyName]=t):n&&(t.className&&(this.classes[t.className]=t),t.tagName&&(Array.isArray(t.tagName)?t.tagName=t.tagName.map(o=>o.toUpperCase()):t.tagName=t.tagName.toUpperCase(),(Array.isArray(t.tagName)?t.tagName:[t.tagName]).forEach(o=>{(this.tags[o]==null||t.className==null)&&(this.tags[o]=t)}))),t})}};_h.blots=new WeakMap;let cn=_h;function uu(r,e){return(r.getAttribute("class")||"").split(/\s+/).filter(t=>t.indexOf(`${e}-`)===0)}class xv extends At{static keys(e){return(e.getAttribute("class")||"").split(/\s+/).map(t=>t.split("-").slice(0,-1).join("-"))}add(e,t){return this.canAdd(e,t)?(this.remove(e),e.classList.add(`${this.keyName}-${t}`),!0):!1}remove(e){uu(e,this.keyName).forEach(t=>{e.classList.remove(t)}),e.classList.length===0&&e.removeAttribute("class")}value(e){const t=(uu(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""}}const pt=xv;function Io(r){const e=r.split("-"),t=e.slice(1).map(n=>n[0].toUpperCase()+n.slice(1)).join("");return e[0]+t}class _v extends At{static keys(e){return(e.getAttribute("style")||"").split(";").map(t=>t.split(":")[0].trim())}add(e,t){return this.canAdd(e,t)?(e.style[Io(this.keyName)]=t,!0):!1}remove(e){e.style[Io(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")}value(e){const t=e.style[Io(this.keyName)];return this.canAdd(e,t)?t:""}}const lr=_v;class Sv{constructor(e){this.attributes={},this.domNode=e,this.build()}attribute(e,t){t?e.add(this.domNode,t)&&(e.value(this.domNode)!=null?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])}build(){this.attributes={};const e=cn.find(this.domNode);if(e==null)return;const t=At.keys(this.domNode),n=pt.keys(this.domNode),s=lr.keys(this.domNode);t.concat(n).concat(s).forEach(i=>{const o=e.scroll.query(i,ne.ATTRIBUTE);o instanceof At&&(this.attributes[o.attrName]=o)})}copy(e){Object.keys(this.attributes).forEach(t=>{const n=this.attributes[t].value(this.domNode);e.format(t,n)})}move(e){this.copy(e),Object.keys(this.attributes).forEach(t=>{this.attributes[t].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((e,t)=>(e[t]=this.attributes[t].value(this.domNode),e),{})}}const yi=Sv,Sh=class{constructor(e,t){this.scroll=e,this.domNode=t,cn.blots.set(t,this),this.prev=null,this.next=null}static create(e){if(this.tagName==null)throw new rn("Blot definition missing tagName");let t,n;return Array.isArray(this.tagName)?(typeof e=="string"?(n=e.toUpperCase(),parseInt(n,10).toString()===n&&(n=parseInt(n,10))):typeof e=="number"&&(n=e),typeof n=="number"?t=document.createElement(this.tagName[n-1]):n&&this.tagName.indexOf(n)>-1?t=document.createElement(n):t=document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t}get statics(){return this.constructor}attach(){}clone(){const e=this.domNode.cloneNode(!1);return this.scroll.create(e)}detach(){this.parent!=null&&this.parent.removeChild(this),cn.blots.delete(this.domNode)}deleteAt(e,t){this.isolate(e,t).remove()}formatAt(e,t,n,s){const i=this.isolate(e,t);if(this.scroll.query(n,ne.BLOT)!=null&&s)i.wrap(n,s);else if(this.scroll.query(n,ne.ATTRIBUTE)!=null){const o=this.scroll.create(this.statics.scope);i.wrap(o),o.format(n,s)}}insertAt(e,t,n){const s=n==null?this.scroll.create("text",t):this.scroll.create(t,n),i=this.split(e);this.parent.insertBefore(s,i||void 0)}isolate(e,t){const n=this.split(e);if(n==null)throw new Error("Attempt to isolate at end");return n.split(t),n}length(){return 1}offset(e=this.parent){return this.parent==null||this===e?0:this.parent.children.offset(this)+this.parent.offset(e)}optimize(e){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return this.parent!=null&&(this.parent.insertBefore(n,this.next||void 0),this.remove()),n}split(e,t){return e===0?this:this.next}update(e,t){}wrap(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;if(this.parent!=null&&this.parent.insertBefore(n,this.next||void 0),typeof n.appendChild!="function")throw new rn(`Cannot wrap ${e}`);return n.appendChild(this),n}};Sh.blotName="abstract";let Ah=Sh;const Ch=class extends Ah{static value(e){return!0}index(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1}position(e,t){let n=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Ch.scope=ne.INLINE_BLOT;let Av=Ch;const Fe=Av;class Cv{constructor(){this.head=null,this.tail=null,this.length=0}append(...e){if(this.insertBefore(e[0],null),e.length>1){const t=e.slice(1);this.append(...t)}}at(e){const t=this.iterator();let n=t();for(;n&&e>0;)e-=1,n=t();return n}contains(e){const t=this.iterator();let n=t();for(;n;){if(n===e)return!0;n=t()}return!1}indexOf(e){const t=this.iterator();let n=t(),s=0;for(;n;){if(n===e)return s;s+=1,n=t()}return-1}insertBefore(e,t){e!=null&&(this.remove(e),e.next=t,t!=null?(e.prev=t.prev,t.prev!=null&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):this.tail!=null?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)}offset(e){let t=0,n=this.head;for(;n!=null;){if(n===e)return t;t+=n.length(),n=n.next}return-1}remove(e){this.contains(e)&&(e.prev!=null&&(e.prev.next=e.next),e.next!=null&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)}iterator(e=this.head){return()=>{const t=e;return e!=null&&(e=e.next),t}}find(e,t=!1){const n=this.iterator();let s=n();for(;s;){const i=s.length();if(e<i||t&&e===i&&(s.next==null||s.next.length()!==0))return[s,e];e-=i,s=n()}return[null,0]}forEach(e){const t=this.iterator();let n=t();for(;n;)e(n),n=t()}forEachAt(e,t,n){if(t<=0)return;const[s,i]=this.find(e);let o=e-i;const a=this.iterator(s);let l=a();for(;l&&o<e+t;){const c=l.length();e>o?n(l,e-o,Math.min(t,o+c-e)):n(l,0,Math.min(c,e+t-o)),o+=c,l=a()}}map(e){return this.reduce((t,n)=>(t.push(e(n)),t),[])}reduce(e,t){const n=this.iterator();let s=n();for(;s;)t=e(t,s),s=n();return t}}function cu(r,e){const t=e.find(r);if(t)return t;try{return e.create(r)}catch{const n=e.create(ne.INLINE);return Array.from(r.childNodes).forEach(s=>{n.domNode.appendChild(s)}),r.parentNode&&r.parentNode.replaceChild(n.domNode,r),n.attach(),n}}const Th=class Wt extends Ah{constructor(e,t){super(e,t),this.uiNode=null,this.build()}appendChild(e){this.insertBefore(e)}attach(){super.attach(),this.children.forEach(e=>{e.attach()})}attachUI(e){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=e,Wt.uiClass&&this.uiNode.classList.add(Wt.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new Cv,Array.from(this.domNode.childNodes).filter(e=>e!==this.uiNode).reverse().forEach(e=>{try{const t=cu(e,this.scroll);this.insertBefore(t,this.children.head||void 0)}catch(t){if(t instanceof rn)return;throw t}})}deleteAt(e,t){if(e===0&&t===this.length())return this.remove();this.children.forEachAt(e,t,(n,s,i)=>{n.deleteAt(s,i)})}descendant(e,t=0){const[n,s]=this.children.find(t);return e.blotName==null&&e(n)||e.blotName!=null&&n instanceof e?[n,s]:n instanceof Wt?n.descendant(e,s):[null,-1]}descendants(e,t=0,n=Number.MAX_VALUE){let s=[],i=n;return this.children.forEachAt(t,n,(o,a,l)=>{(e.blotName==null&&e(o)||e.blotName!=null&&o instanceof e)&&s.push(o),o instanceof Wt&&(s=s.concat(o.descendants(e,a,i))),i-=l}),s}detach(){this.children.forEach(e=>{e.detach()}),super.detach()}enforceAllowedChildren(){let e=!1;this.children.forEach(t=>{e||this.statics.allowedChildren.some(n=>t instanceof n)||(t.statics.scope===ne.BLOCK_BLOT?(t.next!=null&&this.splitAfter(t),t.prev!=null&&this.splitAfter(t.prev),t.parent.unwrap(),e=!0):t instanceof Wt?t.unwrap():t.remove())})}formatAt(e,t,n,s){this.children.forEachAt(e,t,(i,o,a)=>{i.formatAt(o,a,n,s)})}insertAt(e,t,n){const[s,i]=this.children.find(e);if(s)s.insertAt(i,t,n);else{const o=n==null?this.scroll.create("text",t):this.scroll.create(t,n);this.appendChild(o)}}insertBefore(e,t){e.parent!=null&&e.parent.children.remove(e);let n=null;this.children.insertBefore(e,t||null),e.parent=this,t!=null&&(n=t.domNode),(this.domNode.parentNode!==e.domNode||this.domNode.nextSibling!==n)&&this.domNode.insertBefore(e.domNode,n),e.attach()}length(){return this.children.reduce((e,t)=>e+t.length(),0)}moveChildren(e,t){this.children.forEach(n=>{e.insertBefore(n,t)})}optimize(e){if(super.optimize(e),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const t=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(t)}else this.remove()}path(e,t=!1){const[n,s]=this.children.find(e,t),i=[[this,e]];return n instanceof Wt?i.concat(n.path(s,t)):(n!=null&&i.push([n,s]),i)}removeChild(e){this.children.remove(e)}replaceWith(e,t){const n=typeof e=="string"?this.scroll.create(e,t):e;return n instanceof Wt&&this.moveChildren(n),super.replaceWith(n)}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.clone();return this.parent&&this.parent.insertBefore(n,this.next||void 0),this.children.forEachAt(e,this.length(),(s,i,o)=>{const a=s.split(i,t);a!=null&&n.appendChild(a)}),n}splitAfter(e){const t=this.clone();for(;e.next!=null;)t.appendChild(e.next);return this.parent&&this.parent.insertBefore(t,this.next||void 0),t}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(e,t){const n=[],s=[];e.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(n.push(...i.addedNodes),s.push(...i.removedNodes))}),s.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const o=this.scroll.find(i);o!=null&&(o.domNode.parentNode==null||o.domNode.parentNode===this.domNode)&&o.detach()}),n.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,o)=>i===o?0:i.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let o=null;i.nextSibling!=null&&(o=this.scroll.find(i.nextSibling));const a=cu(i,this.scroll);(a.next!==o||a.next==null)&&(a.parent!=null&&a.parent.removeChild(this),this.insertBefore(a,o||void 0))}),this.enforceAllowedChildren()}};Th.uiClass="";let Tv=Th;const dt=Tv;function kv(r,e){if(Object.keys(r).length!==Object.keys(e).length)return!1;for(const t in r)if(r[t]!==e[t])return!1;return!0}const Wr=class Yr extends dt{static create(e){return super.create(e)}static formats(e,t){const n=t.query(Yr.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new yi(this.domNode)}format(e,t){if(e===this.statics.blotName&&!t)this.children.forEach(n=>{n instanceof Yr||(n=n.wrap(Yr.blotName,!0)),this.attributes.copy(n)}),this.unwrap();else{const n=this.scroll.query(e,ne.INLINE);if(n==null)return;n instanceof At?this.attributes.attribute(n,t):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t)}}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,s){this.formats()[n]!=null||this.scroll.query(n,ne.ATTRIBUTE)?this.isolate(e,t).format(n,s):super.formatAt(e,t,n,s)}optimize(e){super.optimize(e);const t=this.formats();if(Object.keys(t).length===0)return this.unwrap();const n=this.next;n instanceof Yr&&n.prev===this&&kv(t,n.formats())&&(n.moveChildren(this),n.remove())}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}wrap(e,t){const n=super.wrap(e,t);return n instanceof Yr&&this.attributes.move(n),n}};Wr.allowedChildren=[Wr,Fe],Wr.blotName="inline",Wr.scope=ne.INLINE_BLOT,Wr.tagName="SPAN";let Nv=Wr;const Xa=Nv,Zr=class pa extends dt{static create(e){return super.create(e)}static formats(e,t){const n=t.query(pa.blotName);if(!(n!=null&&e.tagName===n.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return e.tagName.toLowerCase()}}constructor(e,t){super(e,t),this.attributes=new yi(this.domNode)}format(e,t){const n=this.scroll.query(e,ne.BLOCK);n!=null&&(n instanceof At?this.attributes.attribute(n,t):e===this.statics.blotName&&!t?this.replaceWith(pa.blotName):t&&(e!==this.statics.blotName||this.formats()[e]!==t)&&this.replaceWith(e,t))}formats(){const e=this.attributes.values(),t=this.statics.formats(this.domNode,this.scroll);return t!=null&&(e[this.statics.blotName]=t),e}formatAt(e,t,n,s){this.scroll.query(n,ne.BLOCK)!=null?this.format(n,s):super.formatAt(e,t,n,s)}insertAt(e,t,n){if(n==null||this.scroll.query(t,ne.INLINE)!=null)super.insertAt(e,t,n);else{const s=this.split(e);if(s!=null){const i=this.scroll.create(t,n);s.parent.insertBefore(i,s)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(e,t){const n=super.replaceWith(e,t);return this.attributes.copy(n),n}update(e,t){super.update(e,t),e.some(n=>n.target===this.domNode&&n.type==="attributes")&&this.attributes.build()}};Zr.blotName="block",Zr.scope=ne.BLOCK_BLOT,Zr.tagName="P",Zr.allowedChildren=[Xa,Zr,Fe];let Iv=Zr;const Xn=Iv,ga=class extends dt{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(e,t){super.deleteAt(e,t),this.enforceAllowedChildren()}formatAt(e,t,n,s){super.formatAt(e,t,n,s),this.enforceAllowedChildren()}insertAt(e,t,n){super.insertAt(e,t,n),this.enforceAllowedChildren()}optimize(e){super.optimize(e),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};ga.blotName="container",ga.scope=ne.BLOCK_BLOT;let Rv=ga;const bi=Rv;class Ov extends Fe{static formats(e,t){}format(e,t){super.formatAt(0,this.length(),e,t)}formatAt(e,t,n,s){e===0&&t===this.length()?this.format(n,s):super.formatAt(e,t,n,s)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const We=Ov,Lv={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},Mv=100,Xr=class extends dt{constructor(e,t){super(null,t),this.registry=e,this.scroll=this,this.build(),this.observer=new MutationObserver(n=>{this.update(n)}),this.observer.observe(this.domNode,Lv),this.attach()}create(e,t){return this.registry.create(this,e,t)}find(e,t=!1){const n=this.registry.find(e,t);return n?n.scroll===this?n:t?this.find(n.scroll.domNode.parentNode,!0):null:null}query(e,t=ne.ANY){return this.registry.query(e,t)}register(...e){return this.registry.register(...e)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(e,t){this.update(),e===0&&t===this.length()?this.children.forEach(n=>{n.remove()}):super.deleteAt(e,t)}formatAt(e,t,n,s){this.update(),super.formatAt(e,t,n,s)}insertAt(e,t,n){this.update(),super.insertAt(e,t,n)}optimize(e=[],t={}){super.optimize(t);const n=t.mutationsMap||new WeakMap;let s=Array.from(this.observer.takeRecords());for(;s.length>0;)e.push(s.pop());const i=(l,c=!0)=>{l==null||l===this||l.domNode.parentNode!=null&&(n.has(l.domNode)||n.set(l.domNode,[]),c&&i(l.parent))},o=l=>{n.has(l.domNode)&&(l instanceof dt&&l.children.forEach(o),n.delete(l.domNode),l.optimize(t))};let a=e;for(let l=0;a.length>0;l+=1){if(l>=Mv)throw new Error("[Parchment] Maximum optimize iterations reached");for(a.forEach(c=>{const h=this.find(c.target,!0);h!=null&&(h.domNode===c.target&&(c.type==="childList"?(i(this.find(c.previousSibling,!1)),Array.from(c.addedNodes).forEach(g=>{const p=this.find(g,!1);i(p,!1),p instanceof dt&&p.children.forEach(m=>{i(m,!1)})})):c.type==="attributes"&&i(h.prev)),i(h))}),this.children.forEach(o),a=Array.from(this.observer.takeRecords()),s=a.slice();s.length>0;)e.push(s.pop())}}update(e,t={}){e=e||this.observer.takeRecords();const n=new WeakMap;e.map(s=>{const i=this.find(s.target,!0);return i==null?null:n.has(i.domNode)?(n.get(i.domNode).push(s),null):(n.set(i.domNode,[s]),i)}).forEach(s=>{s!=null&&s!==this&&n.has(s.domNode)&&s.update(n.get(s.domNode)||[],t)}),t.mutationsMap=n,n.has(this.domNode)&&super.update(n.get(this.domNode),t),this.optimize(e,t)}};Xr.blotName="scroll",Xr.defaultChild=Xn,Xr.allowedChildren=[Xn,bi],Xr.scope=ne.BLOCK_BLOT,Xr.tagName="DIV";let Dv=Xr;const Qa=Dv,ma=class kh extends Fe{static create(e){return document.createTextNode(e)}static value(e){return e.data}constructor(e,t){super(e,t),this.text=this.statics.value(this.domNode)}deleteAt(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)}index(e,t){return this.domNode===e?t:-1}insertAt(e,t,n){n==null?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):super.insertAt(e,t,n)}length(){return this.text.length}optimize(e){super.optimize(e),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof kh&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(e,t=!1){return[this.domNode,e]}split(e,t=!1){if(!t){if(e===0)return this;if(e===this.length())return this.next}const n=this.scroll.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next||void 0),this.text=this.statics.value(this.domNode),n}update(e,t){e.some(n=>n.type==="characterData"&&n.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};ma.blotName="text",ma.scope=ne.INLINE_BLOT;let Pv=ma;const ni=Pv,Bv=Object.freeze(Object.defineProperty({__proto__:null,Attributor:At,AttributorStore:yi,BlockBlot:Xn,ClassAttributor:pt,ContainerBlot:bi,EmbedBlot:We,InlineBlot:Xa,LeafBlot:Fe,ParentBlot:dt,Registry:cn,Scope:ne,ScrollBlot:Qa,StyleAttributor:lr,TextBlot:ni},Symbol.toStringTag,{value:"Module"}));var Ns={exports:{}},Ro,hu;function qv(){if(hu)return Ro;hu=1;var r=-1,e=1,t=0;function n(y,M,A,V,j){if(y===M)return y?[[t,y]]:[];if(A!=null){var R=ae(y,M,A);if(R)return R}var q=a(y,M),Y=y.substring(0,q);y=y.substring(q),M=M.substring(q),q=c(y,M);var Z=y.substring(y.length-q);y=y.substring(0,y.length-q),M=M.substring(0,M.length-q);var T=s(y,M);return Y&&T.unshift([t,Y]),Z&&T.push([t,Z]),x(T,j),V&&g(T),T}function s(y,M){var A;if(!y)return[[e,M]];if(!M)return[[r,y]];var V=y.length>M.length?y:M,j=y.length>M.length?M:y,R=V.indexOf(j);if(R!==-1)return A=[[e,V.substring(0,R)],[t,j],[e,V.substring(R+j.length)]],y.length>M.length&&(A[0][0]=A[2][0]=r),A;if(j.length===1)return[[r,y],[e,M]];var q=h(y,M);if(q){var Y=q[0],Z=q[1],T=q[2],D=q[3],U=q[4],W=n(Y,T),z=n(Z,D);return W.concat([[t,U]],z)}return i(y,M)}function i(y,M){for(var A=y.length,V=M.length,j=Math.ceil((A+V)/2),R=j,q=2*j,Y=new Array(q),Z=new Array(q),T=0;T<q;T++)Y[T]=-1,Z[T]=-1;Y[R+1]=0,Z[R+1]=0;for(var D=A-V,U=D%2!==0,W=0,z=0,H=0,J=0,F=0;F<j;F++){for(var $=-F+W;$<=F-z;$+=2){var X=R+$,G;$===-F||$!==F&&Y[X-1]<Y[X+1]?G=Y[X+1]:G=Y[X-1]+1;for(var Q=G-$;G<A&&Q<V&&y.charAt(G)===M.charAt(Q);)G++,Q++;if(Y[X]=G,G>A)z+=2;else if(Q>V)W+=2;else if(U){var N=R+D-$;if(N>=0&&N<q&&Z[N]!==-1){var ue=A-Z[N];if(G>=ue)return o(y,M,G,Q)}}}for(var ge=-F+H;ge<=F-J;ge+=2){var N=R+ge,ue;ge===-F||ge!==F&&Z[N-1]<Z[N+1]?ue=Z[N+1]:ue=Z[N-1]+1;for(var be=ue-ge;ue<A&&be<V&&y.charAt(A-ue-1)===M.charAt(V-be-1);)ue++,be++;if(Z[N]=ue,ue>A)J+=2;else if(be>V)H+=2;else if(!U){var X=R+D-ge;if(X>=0&&X<q&&Y[X]!==-1){var G=Y[X],Q=R+G-X;if(ue=A-ue,G>=ue)return o(y,M,G,Q)}}}}return[[r,y],[e,M]]}function o(y,M,A,V){var j=y.substring(0,A),R=M.substring(0,V),q=y.substring(A),Y=M.substring(V),Z=n(j,R),T=n(q,Y);return Z.concat(T)}function a(y,M){if(!y||!M||y.charAt(0)!==M.charAt(0))return 0;for(var A=0,V=Math.min(y.length,M.length),j=V,R=0;A<j;)y.substring(R,j)==M.substring(R,j)?(A=j,R=A):V=j,j=Math.floor((V-A)/2+A);return S(y.charCodeAt(j-1))&&j--,j}function l(y,M){var A=y.length,V=M.length;if(A==0||V==0)return 0;A>V?y=y.substring(A-V):A<V&&(M=M.substring(0,A));var j=Math.min(A,V);if(y==M)return j;for(var R=0,q=1;;){var Y=y.substring(j-q),Z=M.indexOf(Y);if(Z==-1)return R;q+=Z,(Z==0||y.substring(j-q)==M.substring(0,q))&&(R=q,q++)}}function c(y,M){if(!y||!M||y.slice(-1)!==M.slice(-1))return 0;for(var A=0,V=Math.min(y.length,M.length),j=V,R=0;A<j;)y.substring(y.length-j,y.length-R)==M.substring(M.length-j,M.length-R)?(A=j,R=A):V=j,j=Math.floor((V-A)/2+A);return k(y.charCodeAt(y.length-j))&&j--,j}function h(y,M){var A=y.length>M.length?y:M,V=y.length>M.length?M:y;if(A.length<4||V.length*2<A.length)return null;function j(z,H,J){for(var F=z.substring(J,J+Math.floor(z.length/4)),$=-1,X="",G,Q,N,ue;($=H.indexOf(F,$+1))!==-1;){var ge=a(z.substring(J),H.substring($)),be=c(z.substring(0,J),H.substring(0,$));X.length<be+ge&&(X=H.substring($-be,$)+H.substring($,$+ge),G=z.substring(0,J-be),Q=z.substring(J+ge),N=H.substring(0,$-be),ue=H.substring($+ge))}return X.length*2>=z.length?[G,Q,N,ue,X]:null}var R=j(A,V,Math.ceil(A.length/4)),q=j(A,V,Math.ceil(A.length/2)),Y;if(!R&&!q)return null;q?R?Y=R[4].length>q[4].length?R:q:Y=q:Y=R;var Z,T,D,U;y.length>M.length?(Z=Y[0],T=Y[1],D=Y[2],U=Y[3]):(D=Y[0],U=Y[1],Z=Y[2],T=Y[3]);var W=Y[4];return[Z,T,D,U,W]}function g(y){for(var M=!1,A=[],V=0,j=null,R=0,q=0,Y=0,Z=0,T=0;R<y.length;)y[R][0]==t?(A[V++]=R,q=Z,Y=T,Z=0,T=0,j=y[R][1]):(y[R][0]==e?Z+=y[R][1].length:T+=y[R][1].length,j&&j.length<=Math.max(q,Y)&&j.length<=Math.max(Z,T)&&(y.splice(A[V-1],0,[r,j]),y[A[V-1]+1][0]=e,V--,V--,R=V>0?A[V-1]:-1,q=0,Y=0,Z=0,T=0,j=null,M=!0)),R++;for(M&&x(y),E(y),R=1;R<y.length;){if(y[R-1][0]==r&&y[R][0]==e){var D=y[R-1][1],U=y[R][1],W=l(D,U),z=l(U,D);W>=z?(W>=D.length/2||W>=U.length/2)&&(y.splice(R,0,[t,U.substring(0,W)]),y[R-1][1]=D.substring(0,D.length-W),y[R+1][1]=U.substring(W),R++):(z>=D.length/2||z>=U.length/2)&&(y.splice(R,0,[t,D.substring(0,z)]),y[R-1][0]=e,y[R-1][1]=U.substring(0,U.length-z),y[R+1][0]=r,y[R+1][1]=D.substring(z),R++),R++}R++}}var p=/[^a-zA-Z0-9]/,m=/\s/,v=/[\r\n]/,d=/\n\r?\n$/,b=/^\r?\n\r?\n/;function E(y){function M(z,H){if(!z||!H)return 6;var J=z.charAt(z.length-1),F=H.charAt(0),$=J.match(p),X=F.match(p),G=$&&J.match(m),Q=X&&F.match(m),N=G&&J.match(v),ue=Q&&F.match(v),ge=N&&z.match(d),be=ue&&H.match(b);return ge||be?5:N||ue?4:$&&!G&&Q?3:G||Q?2:$||X?1:0}for(var A=1;A<y.length-1;){if(y[A-1][0]==t&&y[A+1][0]==t){var V=y[A-1][1],j=y[A][1],R=y[A+1][1],q=c(V,j);if(q){var Y=j.substring(j.length-q);V=V.substring(0,V.length-q),j=Y+j.substring(0,j.length-q),R=Y+R}for(var Z=V,T=j,D=R,U=M(V,j)+M(j,R);j.charAt(0)===R.charAt(0);){V+=j.charAt(0),j=j.substring(1)+R.charAt(0),R=R.substring(1);var W=M(V,j)+M(j,R);W>=U&&(U=W,Z=V,T=j,D=R)}y[A-1][1]!=Z&&(Z?y[A-1][1]=Z:(y.splice(A-1,1),A--),y[A][1]=T,D?y[A+1][1]=D:(y.splice(A+1,1),A--))}A++}}function x(y,M){y.push([t,""]);for(var A=0,V=0,j=0,R="",q="",Y;A<y.length;){if(A<y.length-1&&!y[A][1]){y.splice(A,1);continue}switch(y[A][0]){case e:j++,q+=y[A][1],A++;break;case r:V++,R+=y[A][1],A++;break;case t:var Z=A-j-V-1;if(M){if(Z>=0&&B(y[Z][1])){var T=y[Z][1].slice(-1);if(y[Z][1]=y[Z][1].slice(0,-1),R=T+R,q=T+q,!y[Z][1]){y.splice(Z,1),A--;var D=Z-1;y[D]&&y[D][0]===e&&(j++,q=y[D][1]+q,D--),y[D]&&y[D][0]===r&&(V++,R=y[D][1]+R,D--),Z=D}}if(_(y[A][1])){var T=y[A][1].charAt(0);y[A][1]=y[A][1].slice(1),R+=T,q+=T}}if(A<y.length-1&&!y[A][1]){y.splice(A,1);break}if(R.length>0||q.length>0){R.length>0&&q.length>0&&(Y=a(q,R),Y!==0&&(Z>=0?y[Z][1]+=q.substring(0,Y):(y.splice(0,0,[t,q.substring(0,Y)]),A++),q=q.substring(Y),R=R.substring(Y)),Y=c(q,R),Y!==0&&(y[A][1]=q.substring(q.length-Y)+y[A][1],q=q.substring(0,q.length-Y),R=R.substring(0,R.length-Y)));var U=j+V;R.length===0&&q.length===0?(y.splice(A-U,U),A=A-U):R.length===0?(y.splice(A-U,U,[e,q]),A=A-U+1):q.length===0?(y.splice(A-U,U,[r,R]),A=A-U+1):(y.splice(A-U,U,[r,R],[e,q]),A=A-U+2)}A!==0&&y[A-1][0]===t?(y[A-1][1]+=y[A][1],y.splice(A,1)):A++,j=0,V=0,R="",q="";break}}y[y.length-1][1]===""&&y.pop();var W=!1;for(A=1;A<y.length-1;)y[A-1][0]===t&&y[A+1][0]===t&&(y[A][1].substring(y[A][1].length-y[A-1][1].length)===y[A-1][1]?(y[A][1]=y[A-1][1]+y[A][1].substring(0,y[A][1].length-y[A-1][1].length),y[A+1][1]=y[A-1][1]+y[A+1][1],y.splice(A-1,1),W=!0):y[A][1].substring(0,y[A+1][1].length)==y[A+1][1]&&(y[A-1][1]+=y[A+1][1],y[A][1]=y[A][1].substring(y[A+1][1].length)+y[A+1][1],y.splice(A+1,1),W=!0)),A++;W&&x(y,M)}function S(y){return y>=55296&&y<=56319}function k(y){return y>=56320&&y<=57343}function _(y){return k(y.charCodeAt(0))}function B(y){return S(y.charCodeAt(y.length-1))}function L(y){for(var M=[],A=0;A<y.length;A++)y[A][1].length>0&&M.push(y[A]);return M}function K(y,M,A,V){return B(y)||_(V)?null:L([[t,y],[r,M],[e,A],[t,V]])}function ae(y,M,A){var V=typeof A=="number"?{index:A,length:0}:A.oldRange,j=typeof A=="number"?null:A.newRange,R=y.length,q=M.length;if(V.length===0&&(j===null||j.length===0)){var Y=V.index,Z=y.slice(0,Y),T=y.slice(Y),D=j?j.index:null;e:{var U=Y+q-R;if(D!==null&&D!==U||U<0||U>q)break e;var W=M.slice(0,U),z=M.slice(U);if(z!==T)break e;var H=Math.min(Y,U),J=Z.slice(0,H),F=W.slice(0,H);if(J!==F)break e;var $=Z.slice(H),X=W.slice(H);return K(J,$,X,T)}e:{if(D!==null&&D!==Y)break e;var G=Y,W=M.slice(0,G),z=M.slice(G);if(W!==Z)break e;var Q=Math.min(R-G,q-G),N=T.slice(T.length-Q),ue=z.slice(z.length-Q);if(N!==ue)break e;var $=T.slice(0,T.length-Q),X=z.slice(0,z.length-Q);return K(Z,$,X,N)}}if(V.length>0&&j&&j.length===0)e:{var J=y.slice(0,V.index),N=y.slice(V.index+V.length),H=J.length,Q=N.length;if(q<H+Q)break e;var F=M.slice(0,H),ue=M.slice(q-Q);if(J!==F||N!==ue)break e;var $=y.slice(H,R-Q),X=M.slice(H,q-Q);return K(J,$,X,N)}return null}function de(y,M,A,V){return n(y,M,A,V,!0)}return de.INSERT=e,de.DELETE=r,de.EQUAL=t,Ro=de,Ro}var Bn={exports:{}};Bn.exports;var du;function Nh(){return du||(du=1,(function(r,e){var t=200,n="__lodash_hash_undefined__",s=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",l="[object Date]",c="[object Error]",h="[object Function]",g="[object GeneratorFunction]",p="[object Map]",m="[object Number]",v="[object Object]",d="[object Promise]",b="[object RegExp]",E="[object Set]",x="[object String]",S="[object Symbol]",k="[object WeakMap]",_="[object ArrayBuffer]",B="[object DataView]",L="[object Float32Array]",K="[object Float64Array]",ae="[object Int8Array]",de="[object Int16Array]",y="[object Int32Array]",M="[object Uint8Array]",A="[object Uint8ClampedArray]",V="[object Uint16Array]",j="[object Uint32Array]",R=/[\\^$.*+?()[\]{}|]/g,q=/\w*$/,Y=/^\[object .+?Constructor\]$/,Z=/^(?:0|[1-9]\d*)$/,T={};T[i]=T[o]=T[_]=T[B]=T[a]=T[l]=T[L]=T[K]=T[ae]=T[de]=T[y]=T[p]=T[m]=T[v]=T[b]=T[E]=T[x]=T[S]=T[M]=T[A]=T[V]=T[j]=!0,T[c]=T[h]=T[k]=!1;var D=typeof ct.commonjsGlobal=="object"&&ct.commonjsGlobal&&ct.commonjsGlobal.Object===Object&&ct.commonjsGlobal,U=typeof self=="object"&&self&&self.Object===Object&&self,W=D||U||Function("return this")(),z=e&&!e.nodeType&&e,H=z&&!0&&r&&!r.nodeType&&r,J=H&&H.exports===z;function F(u,f){return u.set(f[0],f[1]),u}function $(u,f){return u.add(f),u}function X(u,f){for(var w=-1,O=u?u.length:0;++w<O&&f(u[w],w,u)!==!1;);return u}function G(u,f){for(var w=-1,O=f.length,he=u.length;++w<O;)u[he+w]=f[w];return u}function Q(u,f,w,O){for(var he=-1,ie=u?u.length:0;++he<ie;)w=f(w,u[he],he,u);return w}function N(u,f){for(var w=-1,O=Array(u);++w<u;)O[w]=f(w);return O}function ue(u,f){return u==null?void 0:u[f]}function ge(u){var f=!1;if(u!=null&&typeof u.toString!="function")try{f=!!(u+"")}catch{}return f}function be(u){var f=-1,w=Array(u.size);return u.forEach(function(O,he){w[++f]=[he,O]}),w}function kt(u,f){return function(w){return u(f(w))}}function Ht(u){var f=-1,w=Array(u.size);return u.forEach(function(O){w[++f]=O}),w}var Mi=Array.prototype,Di=Function.prototype,Dr=Object.prototype,yn=W["__core-js_shared__"],ls=(function(){var u=/[^.]+$/.exec(yn&&yn.keys&&yn.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),us=Di.toString,vt=Dr.hasOwnProperty,Pr=Dr.toString,Pi=RegExp("^"+us.call(vt).replace(R,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=J?W.Buffer:void 0,Br=W.Symbol,bn=W.Uint8Array,Ye=kt(Object.getPrototypeOf,Object),cs=Object.create,hs=Dr.propertyIsEnumerable,Bi=Mi.splice,En=Object.getOwnPropertySymbols,qr=hr?hr.isBuffer:void 0,ds=kt(Object.keys,Object),Fr=nt(W,"DataView"),dr=nt(W,"Map"),rt=nt(W,"Promise"),jr=nt(W,"Set"),wn=nt(W,"WeakMap"),fr=nt(Object,"create"),xn=Ue(Fr),pr=Ue(dr),_n=Ue(rt),Sn=Ue(jr),An=Ue(wn),zt=Br?Br.prototype:void 0,fs=zt?zt.valueOf:void 0;function Nt(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function qi(){this.__data__=fr?fr(null):{}}function Fi(u){return this.has(u)&&delete this.__data__[u]}function ji(u){var f=this.__data__;if(fr){var w=f[u];return w===n?void 0:w}return vt.call(f,u)?f[u]:void 0}function ps(u){var f=this.__data__;return fr?f[u]!==void 0:vt.call(f,u)}function Cn(u,f){var w=this.__data__;return w[u]=fr&&f===void 0?n:f,this}Nt.prototype.clear=qi,Nt.prototype.delete=Fi,Nt.prototype.get=ji,Nt.prototype.has=ps,Nt.prototype.set=Cn;function Le(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function $i(){this.__data__=[]}function Vi(u){var f=this.__data__,w=Vr(f,u);if(w<0)return!1;var O=f.length-1;return w==O?f.pop():Bi.call(f,w,1),!0}function Ui(u){var f=this.__data__,w=Vr(f,u);return w<0?void 0:f[w][1]}function Hi(u){return Vr(this.__data__,u)>-1}function zi(u,f){var w=this.__data__,O=Vr(w,u);return O<0?w.push([u,f]):w[O][1]=f,this}Le.prototype.clear=$i,Le.prototype.delete=Vi,Le.prototype.get=Ui,Le.prototype.has=Hi,Le.prototype.set=zi;function Pe(u){var f=-1,w=u?u.length:0;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Gi(){this.__data__={hash:new Nt,map:new(dr||Le),string:new Nt}}function Ki(u){return mr(this,u).delete(u)}function Wi(u){return mr(this,u).get(u)}function Yi(u){return mr(this,u).has(u)}function Zi(u,f){return mr(this,u).set(u,f),this}Pe.prototype.clear=Gi,Pe.prototype.delete=Ki,Pe.prototype.get=Wi,Pe.prototype.has=Yi,Pe.prototype.set=Zi;function He(u){this.__data__=new Le(u)}function Xi(){this.__data__=new Le}function Qi(u){return this.__data__.delete(u)}function Ji(u){return this.__data__.get(u)}function eo(u){return this.__data__.has(u)}function to(u,f){var w=this.__data__;if(w instanceof Le){var O=w.__data__;if(!dr||O.length<t-1)return O.push([u,f]),this;w=this.__data__=new Pe(O)}return w.set(u,f),this}He.prototype.clear=Xi,He.prototype.delete=Qi,He.prototype.get=Ji,He.prototype.has=eo,He.prototype.set=to;function $r(u,f){var w=In(u)||Hr(u)?N(u.length,String):[],O=w.length,he=!!O;for(var ie in u)vt.call(u,ie)&&!(he&&(ie=="length"||mo(ie,O)))&&w.push(ie);return w}function gs(u,f,w){var O=u[f];(!(vt.call(u,f)&&Es(O,w))||w===void 0&&!(f in u))&&(u[f]=w)}function Vr(u,f){for(var w=u.length;w--;)if(Es(u[w][0],f))return w;return-1}function yt(u,f){return u&&Nn(f,On(f),u)}function Tn(u,f,w,O,he,ie,ve){var me;if(O&&(me=ie?O(u,he,ie,ve):O(u)),me!==void 0)return me;if(!Et(u))return u;var ke=In(u);if(ke){if(me=po(u),!f)return co(u,me)}else{var Ee=Rt(u),Be=Ee==h||Ee==g;if(ws(u))return Ur(u,f);if(Ee==v||Ee==i||Be&&!ie){if(ge(u))return ie?u:{};if(me=bt(Be?{}:u),!f)return ho(u,yt(me,u))}else{if(!T[Ee])return ie?u:{};me=go(u,Ee,Tn,f)}}ve||(ve=new He);var ze=ve.get(u);if(ze)return ze;if(ve.set(u,me),!ke)var Ie=w?fo(u):On(u);return X(Ie||u,function(qe,Me){Ie&&(Me=qe,qe=u[Me]),gs(me,Me,Tn(qe,f,w,O,Me,u,ve))}),me}function ro(u){return Et(u)?cs(u):{}}function no(u,f,w){var O=f(u);return In(u)?O:G(O,w(u))}function so(u){return Pr.call(u)}function io(u){if(!Et(u)||yo(u))return!1;var f=Rn(u)||ge(u)?Pi:Y;return f.test(Ue(u))}function oo(u){if(!ys(u))return ds(u);var f=[];for(var w in Object(u))vt.call(u,w)&&w!="constructor"&&f.push(w);return f}function Ur(u,f){if(f)return u.slice();var w=new u.constructor(u.length);return u.copy(w),w}function kn(u){var f=new u.constructor(u.byteLength);return new bn(f).set(new bn(u)),f}function gr(u,f){var w=f?kn(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.byteLength)}function ms(u,f,w){var O=f?w(be(u),!0):be(u);return Q(O,F,new u.constructor)}function vs(u){var f=new u.constructor(u.source,q.exec(u));return f.lastIndex=u.lastIndex,f}function ao(u,f,w){var O=f?w(Ht(u),!0):Ht(u);return Q(O,$,new u.constructor)}function lo(u){return fs?Object(fs.call(u)):{}}function uo(u,f){var w=f?kn(u.buffer):u.buffer;return new u.constructor(w,u.byteOffset,u.length)}function co(u,f){var w=-1,O=u.length;for(f||(f=Array(O));++w<O;)f[w]=u[w];return f}function Nn(u,f,w,O){w||(w={});for(var he=-1,ie=f.length;++he<ie;){var ve=f[he],me=void 0;gs(w,ve,me===void 0?u[ve]:me)}return w}function ho(u,f){return Nn(u,It(u),f)}function fo(u){return no(u,On,It)}function mr(u,f){var w=u.__data__;return vo(f)?w[typeof f=="string"?"string":"hash"]:w.map}function nt(u,f){var w=ue(u,f);return io(w)?w:void 0}var It=En?kt(En,Object):Eo,Rt=so;(Fr&&Rt(new Fr(new ArrayBuffer(1)))!=B||dr&&Rt(new dr)!=p||rt&&Rt(rt.resolve())!=d||jr&&Rt(new jr)!=E||wn&&Rt(new wn)!=k)&&(Rt=function(u){var f=Pr.call(u),w=f==v?u.constructor:void 0,O=w?Ue(w):void 0;if(O)switch(O){case xn:return B;case pr:return p;case _n:return d;case Sn:return E;case An:return k}return f});function po(u){var f=u.length,w=u.constructor(f);return f&&typeof u[0]=="string"&&vt.call(u,"index")&&(w.index=u.index,w.input=u.input),w}function bt(u){return typeof u.constructor=="function"&&!ys(u)?ro(Ye(u)):{}}function go(u,f,w,O){var he=u.constructor;switch(f){case _:return kn(u);case a:case l:return new he(+u);case B:return gr(u,O);case L:case K:case ae:case de:case y:case M:case A:case V:case j:return uo(u,O);case p:return ms(u,O,w);case m:case x:return new he(u);case b:return vs(u);case E:return ao(u,O,w);case S:return lo(u)}}function mo(u,f){return f=f??s,!!f&&(typeof u=="number"||Z.test(u))&&u>-1&&u%1==0&&u<f}function vo(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function yo(u){return!!ls&&ls in u}function ys(u){var f=u&&u.constructor,w=typeof f=="function"&&f.prototype||Dr;return u===w}function Ue(u){if(u!=null){try{return us.call(u)}catch{}try{return u+""}catch{}}return""}function bs(u){return Tn(u,!0,!0)}function Es(u,f){return u===f||u!==u&&f!==f}function Hr(u){return bo(u)&&vt.call(u,"callee")&&(!hs.call(u,"callee")||Pr.call(u)==i)}var In=Array.isArray;function zr(u){return u!=null&&xs(u.length)&&!Rn(u)}function bo(u){return _s(u)&&zr(u)}var ws=qr||wo;function Rn(u){var f=Et(u)?Pr.call(u):"";return f==h||f==g}function xs(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=s}function Et(u){var f=typeof u;return!!u&&(f=="object"||f=="function")}function _s(u){return!!u&&typeof u=="object"}function On(u){return zr(u)?$r(u):oo(u)}function Eo(){return[]}function wo(){return!1}r.exports=bs})(Bn,Bn.exports)),Bn.exports}var qn={exports:{}};qn.exports;var fu;function Ih(){return fu||(fu=1,(function(r,e){var t=200,n="__lodash_hash_undefined__",s=1,i=2,o=9007199254740991,a="[object Arguments]",l="[object Array]",c="[object AsyncFunction]",h="[object Boolean]",g="[object Date]",p="[object Error]",m="[object Function]",v="[object GeneratorFunction]",d="[object Map]",b="[object Number]",E="[object Null]",x="[object Object]",S="[object Promise]",k="[object Proxy]",_="[object RegExp]",B="[object Set]",L="[object String]",K="[object Symbol]",ae="[object Undefined]",de="[object WeakMap]",y="[object ArrayBuffer]",M="[object DataView]",A="[object Float32Array]",V="[object Float64Array]",j="[object Int8Array]",R="[object Int16Array]",q="[object Int32Array]",Y="[object Uint8Array]",Z="[object Uint8ClampedArray]",T="[object Uint16Array]",D="[object Uint32Array]",U=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,z=/^(?:0|[1-9]\d*)$/,H={};H[A]=H[V]=H[j]=H[R]=H[q]=H[Y]=H[Z]=H[T]=H[D]=!0,H[a]=H[l]=H[y]=H[h]=H[M]=H[g]=H[p]=H[m]=H[d]=H[b]=H[x]=H[_]=H[B]=H[L]=H[de]=!1;var J=typeof ct.commonjsGlobal=="object"&&ct.commonjsGlobal&&ct.commonjsGlobal.Object===Object&&ct.commonjsGlobal,F=typeof self=="object"&&self&&self.Object===Object&&self,$=J||F||Function("return this")(),X=e&&!e.nodeType&&e,G=X&&!0&&r&&!r.nodeType&&r,Q=G&&G.exports===X,N=Q&&J.process,ue=(function(){try{return N&&N.binding&&N.binding("util")}catch{}})(),ge=ue&&ue.isTypedArray;function be(u,f){for(var w=-1,O=u==null?0:u.length,he=0,ie=[];++w<O;){var ve=u[w];f(ve,w,u)&&(ie[he++]=ve)}return ie}function kt(u,f){for(var w=-1,O=f.length,he=u.length;++w<O;)u[he+w]=f[w];return u}function Ht(u,f){for(var w=-1,O=u==null?0:u.length;++w<O;)if(f(u[w],w,u))return!0;return!1}function Mi(u,f){for(var w=-1,O=Array(u);++w<u;)O[w]=f(w);return O}function Di(u){return function(f){return u(f)}}function Dr(u,f){return u.has(f)}function yn(u,f){return u==null?void 0:u[f]}function ls(u){var f=-1,w=Array(u.size);return u.forEach(function(O,he){w[++f]=[he,O]}),w}function us(u,f){return function(w){return u(f(w))}}function vt(u){var f=-1,w=Array(u.size);return u.forEach(function(O){w[++f]=O}),w}var Pr=Array.prototype,Pi=Function.prototype,hr=Object.prototype,Br=$["__core-js_shared__"],bn=Pi.toString,Ye=hr.hasOwnProperty,cs=(function(){var u=/[^.]+$/.exec(Br&&Br.keys&&Br.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""})(),hs=hr.toString,Bi=RegExp("^"+bn.call(Ye).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),En=Q?$.Buffer:void 0,qr=$.Symbol,ds=$.Uint8Array,Fr=hr.propertyIsEnumerable,dr=Pr.splice,rt=qr?qr.toStringTag:void 0,jr=Object.getOwnPropertySymbols,wn=En?En.isBuffer:void 0,fr=us(Object.keys,Object),xn=It($,"DataView"),pr=It($,"Map"),_n=It($,"Promise"),Sn=It($,"Set"),An=It($,"WeakMap"),zt=It(Object,"create"),fs=Ue(xn),Nt=Ue(pr),qi=Ue(_n),Fi=Ue(Sn),ji=Ue(An),ps=qr?qr.prototype:void 0,Cn=ps?ps.valueOf:void 0;function Le(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function $i(){this.__data__=zt?zt(null):{},this.size=0}function Vi(u){var f=this.has(u)&&delete this.__data__[u];return this.size-=f?1:0,f}function Ui(u){var f=this.__data__;if(zt){var w=f[u];return w===n?void 0:w}return Ye.call(f,u)?f[u]:void 0}function Hi(u){var f=this.__data__;return zt?f[u]!==void 0:Ye.call(f,u)}function zi(u,f){var w=this.__data__;return this.size+=this.has(u)?0:1,w[u]=zt&&f===void 0?n:f,this}Le.prototype.clear=$i,Le.prototype.delete=Vi,Le.prototype.get=Ui,Le.prototype.has=Hi,Le.prototype.set=zi;function Pe(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Gi(){this.__data__=[],this.size=0}function Ki(u){var f=this.__data__,w=Ur(f,u);if(w<0)return!1;var O=f.length-1;return w==O?f.pop():dr.call(f,w,1),--this.size,!0}function Wi(u){var f=this.__data__,w=Ur(f,u);return w<0?void 0:f[w][1]}function Yi(u){return Ur(this.__data__,u)>-1}function Zi(u,f){var w=this.__data__,O=Ur(w,u);return O<0?(++this.size,w.push([u,f])):w[O][1]=f,this}Pe.prototype.clear=Gi,Pe.prototype.delete=Ki,Pe.prototype.get=Wi,Pe.prototype.has=Yi,Pe.prototype.set=Zi;function He(u){var f=-1,w=u==null?0:u.length;for(this.clear();++f<w;){var O=u[f];this.set(O[0],O[1])}}function Xi(){this.size=0,this.__data__={hash:new Le,map:new(pr||Pe),string:new Le}}function Qi(u){var f=nt(this,u).delete(u);return this.size-=f?1:0,f}function Ji(u){return nt(this,u).get(u)}function eo(u){return nt(this,u).has(u)}function to(u,f){var w=nt(this,u),O=w.size;return w.set(u,f),this.size+=w.size==O?0:1,this}He.prototype.clear=Xi,He.prototype.delete=Qi,He.prototype.get=Ji,He.prototype.has=eo,He.prototype.set=to;function $r(u){var f=-1,w=u==null?0:u.length;for(this.__data__=new He;++f<w;)this.add(u[f])}function gs(u){return this.__data__.set(u,n),this}function Vr(u){return this.__data__.has(u)}$r.prototype.add=$r.prototype.push=gs,$r.prototype.has=Vr;function yt(u){var f=this.__data__=new Pe(u);this.size=f.size}function Tn(){this.__data__=new Pe,this.size=0}function ro(u){var f=this.__data__,w=f.delete(u);return this.size=f.size,w}function no(u){return this.__data__.get(u)}function so(u){return this.__data__.has(u)}function io(u,f){var w=this.__data__;if(w instanceof Pe){var O=w.__data__;if(!pr||O.length<t-1)return O.push([u,f]),this.size=++w.size,this;w=this.__data__=new He(O)}return w.set(u,f),this.size=w.size,this}yt.prototype.clear=Tn,yt.prototype.delete=ro,yt.prototype.get=no,yt.prototype.has=so,yt.prototype.set=io;function oo(u,f){var w=Hr(u),O=!w&&Es(u),he=!w&&!O&&zr(u),ie=!w&&!O&&!he&&_s(u),ve=w||O||he||ie,me=ve?Mi(u.length,String):[],ke=me.length;for(var Ee in u)Ye.call(u,Ee)&&!(ve&&(Ee=="length"||he&&(Ee=="offset"||Ee=="parent")||ie&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||go(Ee,ke)))&&me.push(Ee);return me}function Ur(u,f){for(var w=u.length;w--;)if(bs(u[w][0],f))return w;return-1}function kn(u,f,w){var O=f(u);return Hr(u)?O:kt(O,w(u))}function gr(u){return u==null?u===void 0?ae:E:rt&&rt in Object(u)?Rt(u):ys(u)}function ms(u){return Et(u)&&gr(u)==a}function vs(u,f,w,O,he){return u===f?!0:u==null||f==null||!Et(u)&&!Et(f)?u!==u&&f!==f:ao(u,f,w,O,vs,he)}function ao(u,f,w,O,he,ie){var ve=Hr(u),me=Hr(f),ke=ve?l:bt(u),Ee=me?l:bt(f);ke=ke==a?x:ke,Ee=Ee==a?x:Ee;var Be=ke==x,ze=Ee==x,Ie=ke==Ee;if(Ie&&zr(u)){if(!zr(f))return!1;ve=!0,Be=!1}if(Ie&&!Be)return ie||(ie=new yt),ve||_s(u)?Nn(u,f,w,O,he,ie):ho(u,f,ke,w,O,he,ie);if(!(w&s)){var qe=Be&&Ye.call(u,"__wrapped__"),Me=ze&&Ye.call(f,"__wrapped__");if(qe||Me){var Gt=qe?u.value():u,Ot=Me?f.value():f;return ie||(ie=new yt),he(Gt,Ot,w,O,ie)}}return Ie?(ie||(ie=new yt),fo(u,f,w,O,he,ie)):!1}function lo(u){if(!xs(u)||vo(u))return!1;var f=ws(u)?Bi:W;return f.test(Ue(u))}function uo(u){return Et(u)&&Rn(u.length)&&!!H[gr(u)]}function co(u){if(!yo(u))return fr(u);var f=[];for(var w in Object(u))Ye.call(u,w)&&w!="constructor"&&f.push(w);return f}function Nn(u,f,w,O,he,ie){var ve=w&s,me=u.length,ke=f.length;if(me!=ke&&!(ve&&ke>me))return!1;var Ee=ie.get(u);if(Ee&&ie.get(f))return Ee==f;var Be=-1,ze=!0,Ie=w&i?new $r:void 0;for(ie.set(u,f),ie.set(f,u);++Be<me;){var qe=u[Be],Me=f[Be];if(O)var Gt=ve?O(Me,qe,Be,f,u,ie):O(qe,Me,Be,u,f,ie);if(Gt!==void 0){if(Gt)continue;ze=!1;break}if(Ie){if(!Ht(f,function(Ot,vr){if(!Dr(Ie,vr)&&(qe===Ot||he(qe,Ot,w,O,ie)))return Ie.push(vr)})){ze=!1;break}}else if(!(qe===Me||he(qe,Me,w,O,ie))){ze=!1;break}}return ie.delete(u),ie.delete(f),ze}function ho(u,f,w,O,he,ie,ve){switch(w){case M:if(u.byteLength!=f.byteLength||u.byteOffset!=f.byteOffset)return!1;u=u.buffer,f=f.buffer;case y:return!(u.byteLength!=f.byteLength||!ie(new ds(u),new ds(f)));case h:case g:case b:return bs(+u,+f);case p:return u.name==f.name&&u.message==f.message;case _:case L:return u==f+"";case d:var me=ls;case B:var ke=O&s;if(me||(me=vt),u.size!=f.size&&!ke)return!1;var Ee=ve.get(u);if(Ee)return Ee==f;O|=i,ve.set(u,f);var Be=Nn(me(u),me(f),O,he,ie,ve);return ve.delete(u),Be;case K:if(Cn)return Cn.call(u)==Cn.call(f)}return!1}function fo(u,f,w,O,he,ie){var ve=w&s,me=mr(u),ke=me.length,Ee=mr(f),Be=Ee.length;if(ke!=Be&&!ve)return!1;for(var ze=ke;ze--;){var Ie=me[ze];if(!(ve?Ie in f:Ye.call(f,Ie)))return!1}var qe=ie.get(u);if(qe&&ie.get(f))return qe==f;var Me=!0;ie.set(u,f),ie.set(f,u);for(var Gt=ve;++ze<ke;){Ie=me[ze];var Ot=u[Ie],vr=f[Ie];if(O)var vl=ve?O(vr,Ot,Ie,f,u,ie):O(Ot,vr,Ie,u,f,ie);if(!(vl===void 0?Ot===vr||he(Ot,vr,w,O,ie):vl)){Me=!1;break}Gt||(Gt=Ie=="constructor")}if(Me&&!Gt){var Ss=u.constructor,As=f.constructor;Ss!=As&&"constructor"in u&&"constructor"in f&&!(typeof Ss=="function"&&Ss instanceof Ss&&typeof As=="function"&&As instanceof As)&&(Me=!1)}return ie.delete(u),ie.delete(f),Me}function mr(u){return kn(u,On,po)}function nt(u,f){var w=u.__data__;return mo(f)?w[typeof f=="string"?"string":"hash"]:w.map}function It(u,f){var w=yn(u,f);return lo(w)?w:void 0}function Rt(u){var f=Ye.call(u,rt),w=u[rt];try{u[rt]=void 0;var O=!0}catch{}var he=hs.call(u);return O&&(f?u[rt]=w:delete u[rt]),he}var po=jr?function(u){return u==null?[]:(u=Object(u),be(jr(u),function(f){return Fr.call(u,f)}))}:Eo,bt=gr;(xn&&bt(new xn(new ArrayBuffer(1)))!=M||pr&&bt(new pr)!=d||_n&&bt(_n.resolve())!=S||Sn&&bt(new Sn)!=B||An&&bt(new An)!=de)&&(bt=function(u){var f=gr(u),w=f==x?u.constructor:void 0,O=w?Ue(w):"";if(O)switch(O){case fs:return M;case Nt:return d;case qi:return S;case Fi:return B;case ji:return de}return f});function go(u,f){return f=f??o,!!f&&(typeof u=="number"||z.test(u))&&u>-1&&u%1==0&&u<f}function mo(u){var f=typeof u;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?u!=="__proto__":u===null}function vo(u){return!!cs&&cs in u}function yo(u){var f=u&&u.constructor,w=typeof f=="function"&&f.prototype||hr;return u===w}function ys(u){return hs.call(u)}function Ue(u){if(u!=null){try{return bn.call(u)}catch{}try{return u+""}catch{}}return""}function bs(u,f){return u===f||u!==u&&f!==f}var Es=ms((function(){return arguments})())?ms:function(u){return Et(u)&&Ye.call(u,"callee")&&!Fr.call(u,"callee")},Hr=Array.isArray;function In(u){return u!=null&&Rn(u.length)&&!ws(u)}var zr=wn||wo;function bo(u,f){return vs(u,f)}function ws(u){if(!xs(u))return!1;var f=gr(u);return f==m||f==v||f==c||f==k}function Rn(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=o}function xs(u){var f=typeof u;return u!=null&&(f=="object"||f=="function")}function Et(u){return u!=null&&typeof u=="object"}var _s=ge?Di(ge):uo;function On(u){return In(u)?oo(u):co(u)}function Eo(){return[]}function wo(){return!1}r.exports=bo})(qn,qn.exports)),qn.exports}var Is={},pu;function Fv(){if(pu)return Is;pu=1,Object.defineProperty(Is,"__esModule",{value:!0});const r=Nh(),e=Ih();var t;return(function(n){function s(l={},c={},h=!1){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});let g=r(c);h||(g=Object.keys(g).reduce((p,m)=>(g[m]!=null&&(p[m]=g[m]),p),{}));for(const p in l)l[p]!==void 0&&c[p]===void 0&&(g[p]=l[p]);return Object.keys(g).length>0?g:void 0}n.compose=s;function i(l={},c={}){typeof l!="object"&&(l={}),typeof c!="object"&&(c={});const h=Object.keys(l).concat(Object.keys(c)).reduce((g,p)=>(e(l[p],c[p])||(g[p]=c[p]===void 0?null:c[p]),g),{});return Object.keys(h).length>0?h:void 0}n.diff=i;function o(l={},c={}){l=l||{};const h=Object.keys(c).reduce((g,p)=>(c[p]!==l[p]&&l[p]!==void 0&&(g[p]=c[p]),g),{});return Object.keys(l).reduce((g,p)=>(l[p]!==c[p]&&c[p]===void 0&&(g[p]=null),g),h)}n.invert=o;function a(l,c,h=!1){if(typeof l!="object")return c;if(typeof c!="object")return;if(!h)return c;const g=Object.keys(c).reduce((p,m)=>(l[m]===void 0&&(p[m]=c[m]),p),{});return Object.keys(g).length>0?g:void 0}n.transform=a})(t||(t={})),Is.default=t,Is}var Rs={},gu;function Rh(){if(gu)return Rs;gu=1,Object.defineProperty(Rs,"__esModule",{value:!0});var r;return(function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t})(r||(r={})),Rs.default=r,Rs}var Os={},mu;function jv(){if(mu)return Os;mu=1,Object.defineProperty(Os,"__esModule",{value:!0});const r=Rh();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const s=this.ops[this.index];if(s){const i=this.offset,o=r.default.length(s);if(n>=o-i?(n=o-i,this.index+=1,this.offset=0):this.offset+=n,typeof s.delete=="number")return{delete:n};{const a={};return s.attributes&&(a.attributes=s.attributes),typeof s.retain=="number"?a.retain=n:typeof s.retain=="object"&&s.retain!==null?a.retain=s.retain:typeof s.insert=="string"?a.insert=s.insert.substr(i,n):a.insert=s.insert,a}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,s=this.index,i=this.next(),o=this.ops.slice(this.index);return this.offset=n,this.index=s,[i].concat(o)}}else return[]}}return Os.default=e,Os}var vu;function $v(){return vu||(vu=1,(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=qv(),n=Nh(),s=Ih(),i=Fv();e.AttributeMap=i.default;const o=Rh();e.Op=o.default;const a=jv();e.OpIterator=a.default;const l="\0",c=(g,p)=>{if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);const m=Object.keys(g)[0];if(!m||m!==Object.keys(p)[0])throw new Error(`embed types not matched: ${m} != ${Object.keys(p)[0]}`);return[m,g[m],p[m]]};class h{constructor(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]}static registerEmbed(p,m){this.handlers[p]=m}static unregisterEmbed(p){delete this.handlers[p]}static getHandler(p){const m=this.handlers[p];if(!m)throw new Error(`no handlers for embed type "${p}"`);return m}insert(p,m){const v={};return typeof p=="string"&&p.length===0?this:(v.insert=p,m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(v.attributes=m),this.push(v))}delete(p){return p<=0?this:this.push({delete:p})}retain(p,m){if(typeof p=="number"&&p<=0)return this;const v={retain:p};return m!=null&&typeof m=="object"&&Object.keys(m).length>0&&(v.attributes=m),this.push(v)}push(p){let m=this.ops.length,v=this.ops[m-1];if(p=n(p),typeof v=="object"){if(typeof p.delete=="number"&&typeof v.delete=="number")return this.ops[m-1]={delete:v.delete+p.delete},this;if(typeof v.delete=="number"&&p.insert!=null&&(m-=1,v=this.ops[m-1],typeof v!="object"))return this.ops.unshift(p),this;if(s(p.attributes,v.attributes)){if(typeof p.insert=="string"&&typeof v.insert=="string")return this.ops[m-1]={insert:v.insert+p.insert},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof v.retain=="number")return this.ops[m-1]={retain:v.retain+p.retain},typeof p.attributes=="object"&&(this.ops[m-1].attributes=p.attributes),this}}return m===this.ops.length?this.ops.push(p):this.ops.splice(m,0,p),this}chop(){const p=this.ops[this.ops.length-1];return p&&typeof p.retain=="number"&&!p.attributes&&this.ops.pop(),this}filter(p){return this.ops.filter(p)}forEach(p){this.ops.forEach(p)}map(p){return this.ops.map(p)}partition(p){const m=[],v=[];return this.forEach(d=>{(p(d)?m:v).push(d)}),[m,v]}reduce(p,m){return this.ops.reduce(p,m)}changeLength(){return this.reduce((p,m)=>m.insert?p+o.default.length(m):m.delete?p-m.delete:p,0)}length(){return this.reduce((p,m)=>p+o.default.length(m),0)}slice(p=0,m=1/0){const v=[],d=new a.default(this.ops);let b=0;for(;b<m&&d.hasNext();){let E;b<p?E=d.next(p-b):(E=d.next(m-b),v.push(E)),b+=o.default.length(E)}return new h(v)}compose(p){const m=new a.default(this.ops),v=new a.default(p.ops),d=[],b=v.peek();if(b!=null&&typeof b.retain=="number"&&b.attributes==null){let x=b.retain;for(;m.peekType()==="insert"&&m.peekLength()<=x;)x-=m.peekLength(),d.push(m.next());b.retain-x>0&&v.next(b.retain-x)}const E=new h(d);for(;m.hasNext()||v.hasNext();)if(v.peekType()==="insert")E.push(v.next());else if(m.peekType()==="delete")E.push(m.next());else{const x=Math.min(m.peekLength(),v.peekLength()),S=m.next(x),k=v.next(x);if(k.retain){const _={};if(typeof S.retain=="number")_.retain=typeof k.retain=="number"?x:k.retain;else if(typeof k.retain=="number")S.retain==null?_.insert=S.insert:_.retain=S.retain;else{const L=S.retain==null?"insert":"retain",[K,ae,de]=c(S[L],k.retain),y=h.getHandler(K);_[L]={[K]:y.compose(ae,de,L==="retain")}}const B=i.default.compose(S.attributes,k.attributes,typeof S.retain=="number");if(B&&(_.attributes=B),E.push(_),!v.hasNext()&&s(E.ops[E.ops.length-1],_)){const L=new h(m.rest());return E.concat(L).chop()}}else typeof k.delete=="number"&&(typeof S.retain=="number"||typeof S.retain=="object"&&S.retain!==null)&&E.push(k)}return E.chop()}concat(p){const m=new h(this.ops.slice());return p.ops.length>0&&(m.push(p.ops[0]),m.ops=m.ops.concat(p.ops.slice(1))),m}diff(p,m){if(this.ops===p.ops)return new h;const v=[this,p].map(S=>S.map(k=>{if(k.insert!=null)return typeof k.insert=="string"?k.insert:l;const _=S===p?"on":"with";throw new Error("diff() called "+_+" non-document")}).join("")),d=new h,b=t(v[0],v[1],m,!0),E=new a.default(this.ops),x=new a.default(p.ops);return b.forEach(S=>{let k=S[1].length;for(;k>0;){let _=0;switch(S[0]){case t.INSERT:_=Math.min(x.peekLength(),k),d.push(x.next(_));break;case t.DELETE:_=Math.min(k,E.peekLength()),E.next(_),d.delete(_);break;case t.EQUAL:_=Math.min(E.peekLength(),x.peekLength(),k);const B=E.next(_),L=x.next(_);s(B.insert,L.insert)?d.retain(_,i.default.diff(B.attributes,L.attributes)):d.push(L).delete(_);break}k-=_}}),d.chop()}eachLine(p,m=`
106
+ `){const v=new a.default(this.ops);let d=new h,b=0;for(;v.hasNext();){if(v.peekType()!=="insert")return;const E=v.peek(),x=o.default.length(E)-v.peekLength(),S=typeof E.insert=="string"?E.insert.indexOf(m,x)-x:-1;if(S<0)d.push(v.next());else if(S>0)d.push(v.next(S));else{if(p(d,v.next(1).attributes||{},b)===!1)return;b+=1,d=new h}}d.length()>0&&p(d,{},b)}invert(p){const m=new h;return this.reduce((v,d)=>{if(d.insert)m.delete(o.default.length(d));else{if(typeof d.retain=="number"&&d.attributes==null)return m.retain(d.retain),v+d.retain;if(d.delete||typeof d.retain=="number"){const b=d.delete||d.retain;return p.slice(v,v+b).forEach(x=>{d.delete?m.push(x):d.retain&&d.attributes&&m.retain(o.default.length(x),i.default.invert(d.attributes,x.attributes))}),v+b}else if(typeof d.retain=="object"&&d.retain!==null){const b=p.slice(v,v+1),E=new a.default(b.ops).next(),[x,S,k]=c(d.retain,E.insert),_=h.getHandler(x);return m.retain({[x]:_.invert(S,k)},i.default.invert(d.attributes,E.attributes)),v+1}}return v},0),m.chop()}transform(p,m=!1){if(m=!!m,typeof p=="number")return this.transformPosition(p,m);const v=p,d=new a.default(this.ops),b=new a.default(v.ops),E=new h;for(;d.hasNext()||b.hasNext();)if(d.peekType()==="insert"&&(m||b.peekType()!=="insert"))E.retain(o.default.length(d.next()));else if(b.peekType()==="insert")E.push(b.next());else{const x=Math.min(d.peekLength(),b.peekLength()),S=d.next(x),k=b.next(x);if(S.delete)continue;if(k.delete)E.push(k);else{const _=S.retain,B=k.retain;let L=typeof B=="object"&&B!==null?B:x;if(typeof _=="object"&&_!==null&&typeof B=="object"&&B!==null){const K=Object.keys(_)[0];if(K===Object.keys(B)[0]){const ae=h.getHandler(K);ae&&(L={[K]:ae.transform(_[K],B[K],m)})}}E.retain(L,i.default.transform(S.attributes,k.attributes,m))}}return E.chop()}transformPosition(p,m=!1){m=!!m;const v=new a.default(this.ops);let d=0;for(;v.hasNext()&&d<=p;){const b=v.peekLength(),E=v.peekType();if(v.next(),E==="delete"){p-=Math.min(b,p-d);continue}else E==="insert"&&(d<p||!m)&&(p+=b);d+=b}return p}}h.Op=o.default,h.OpIterator=a.default,h.AttributeMap=i.default,h.handlers={},e.default=h,r.exports=h,r.exports.default=h})(Ns,Ns.exports)),Ns.exports}var et=$v();const re=ct.getDefaultExportFromCjs(et);class gt extends We{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}gt.blotName="break";gt.tagName="BR";let ft=class extends ni{};function Ei(r){return r.replace(/[&<>"']/g,e=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[e])}const wt=class wt extends Xa{static compare(e,t){const n=wt.order.indexOf(e),s=wt.order.indexOf(t);return n>=0||s>=0?n-s:e===t?0:e<t?-1:1}formatAt(e,t,n,s){if(wt.compare(this.statics.blotName,n)<0&&this.scroll.query(n,ne.BLOT)){const i=this.isolate(e,t);s&&i.wrap(n,s)}else super.formatAt(e,t,n,s)}optimize(e){if(super.optimize(e),this.parent instanceof wt&&wt.compare(this.statics.blotName,this.parent.statics.blotName)>0){const t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}};ee(wt,"allowedChildren",[wt,gt,We,ft]),ee(wt,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let Ct=wt;const yu=1;class De extends Xn{constructor(){super(...arguments);ee(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=Oh(this)),this.cache.delta}deleteAt(t,n){super.deleteAt(t,n),this.cache={}}formatAt(t,n,s,i){n<=0||(this.scroll.query(s,ne.BLOCK)?t+n===this.length()&&this.format(s,i):super.formatAt(t,Math.min(n,this.length()-t-1),s,i),this.cache={})}insertAt(t,n,s){if(s!=null){super.insertAt(t,n,s),this.cache={};return}if(n.length===0)return;const i=n.split(`
107
+ `),o=i.shift();o.length>0&&(t<this.length()-1||this.children.tail==null?super.insertAt(Math.min(t,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});let a=this;i.reduce((l,c)=>(a=a.split(l,!0),a.insertAt(0,c),c.length),t+o.length)}insertBefore(t,n){const{head:s}=this.children;super.insertBefore(t,n),s instanceof gt&&s.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+yu),this.cache.length}moveChildren(t,n){super.moveChildren(t,n),this.cache={}}optimize(t){super.optimize(t),this.cache={}}path(t){return super.path(t,!0)}removeChild(t){super.removeChild(t),this.cache={}}split(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(n&&(t===0||t>=this.length()-yu)){const i=this.clone();return t===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const s=super.split(t,n);return this.cache={},s}}De.blotName="block";De.tagName="P";De.defaultChild=gt;De.allowedChildren=[gt,Ct,We,ft];class Je extends We{attach(){super.attach(),this.attributes=new yi(this.domNode)}delta(){return new re().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(e,t){const n=this.scroll.query(e,ne.BLOCK_ATTRIBUTE);n!=null&&this.attributes.attribute(n,t)}formatAt(e,t,n,s){this.format(n,s)}insertAt(e,t,n){if(n!=null){super.insertAt(e,t,n);return}const s=t.split(`
108
+ `),i=s.pop(),o=s.map(l=>{const c=this.scroll.create(De.blotName);return c.insertAt(0,l),c}),a=this.split(e);o.forEach(l=>{this.parent.insertBefore(l,a)}),i&&this.parent.insertBefore(this.scroll.create("text",i),a)}}Je.scope=ne.BLOCK_BLOT;function Oh(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r.descendants(Fe).reduce((t,n)=>n.length()===0?t:t.insert(n.value(),Xe(n,{},e)),new re).insert(`
109
+ `,Xe(r))}function Xe(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return r==null||("formats"in r&&typeof r.formats=="function"&&(e={...e,...r.formats()},t&&delete e["code-token"]),r.parent==null||r.parent.statics.blotName==="scroll"||r.parent.statics.scope!==r.statics.scope)?e:Xe(r.parent,e,t)}const Ze=class Ze extends We{static value(){}constructor(e,t,n){super(e,t),this.selection=n,this.textNode=document.createTextNode(Ze.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(e,t){if(this.savedLength!==0){super.format(e,t);return}let n=this,s=0;for(;n!=null&&n.statics.scope!==ne.BLOCK_BLOT;)s+=n.offset(n.parent),n=n.parent;n!=null&&(this.savedLength=Ze.CONTENTS.length,n.optimize(),n.formatAt(s,Ze.CONTENTS.length,e,t),this.savedLength=0)}index(e,t){return e===this.textNode?0:super.index(e,t)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const e=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const t=this.prev instanceof ft?this.prev:null,n=t?t.length():0,s=this.next instanceof ft?this.next:null,i=s?s.text:"",{textNode:o}=this,a=o.data.split(Ze.CONTENTS).join("");o.data=Ze.CONTENTS;let l;if(t)l=t,(a||s)&&(t.insertAt(t.length(),a+i),s&&s.remove());else if(s)l=s,s.insertAt(0,a);else{const c=document.createTextNode(a);l=this.scroll.create(c),this.parent.insertBefore(l,this)}if(this.remove(),e){const c=(p,m)=>t&&p===t.domNode?m:p===o?n+m-1:s&&p===s.domNode?n+a.length+m:null,h=c(e.start.node,e.start.offset),g=c(e.end.node,e.end.offset);if(h!==null&&g!==null)return{startNode:l.domNode,startOffset:h,endNode:l.domNode,endOffset:g}}return null}update(e,t){if(e.some(n=>n.type==="characterData"&&n.target===this.textNode)){const n=this.restore();n&&(t.range=n)}}optimize(e){super.optimize(e);let{parent:t}=this;for(;t;){if(t.domNode.tagName==="A"){this.savedLength=Ze.CONTENTS.length,t.isolate(this.offset(t),this.length()).unwrap(),this.savedLength=0;break}t=t.parent}}value(){return""}};ee(Ze,"blotName","cursor"),ee(Ze,"className","ql-cursor"),ee(Ze,"tagName","span"),ee(Ze,"CONTENTS","\uFEFF");let hn=Ze;var Oo={exports:{}},bu;function Vv(){return bu||(bu=1,(function(r){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function s(l,c,h){this.fn=l,this.context=c,this.once=h||!1}function i(l,c,h,g,p){if(typeof h!="function")throw new TypeError("The listener must be a function");var m=new s(h,g||l,p),v=t?t+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],m]:l._events[v].push(m):(l._events[v]=m,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function a(){this._events=new n,this._eventsCount=0}a.prototype.eventNames=function(){var c=[],h,g;if(this._eventsCount===0)return c;for(g in h=this._events)e.call(h,g)&&c.push(t?g.slice(1):g);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(h)):c},a.prototype.listeners=function(c){var h=t?t+c:c,g=this._events[h];if(!g)return[];if(g.fn)return[g.fn];for(var p=0,m=g.length,v=new Array(m);p<m;p++)v[p]=g[p].fn;return v},a.prototype.listenerCount=function(c){var h=t?t+c:c,g=this._events[h];return g?g.fn?1:g.length:0},a.prototype.emit=function(c,h,g,p,m,v){var d=t?t+c:c;if(!this._events[d])return!1;var b=this._events[d],E=arguments.length,x,S;if(b.fn){switch(b.once&&this.removeListener(c,b.fn,void 0,!0),E){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,h),!0;case 3:return b.fn.call(b.context,h,g),!0;case 4:return b.fn.call(b.context,h,g,p),!0;case 5:return b.fn.call(b.context,h,g,p,m),!0;case 6:return b.fn.call(b.context,h,g,p,m,v),!0}for(S=1,x=new Array(E-1);S<E;S++)x[S-1]=arguments[S];b.fn.apply(b.context,x)}else{var k=b.length,_;for(S=0;S<k;S++)switch(b[S].once&&this.removeListener(c,b[S].fn,void 0,!0),E){case 1:b[S].fn.call(b[S].context);break;case 2:b[S].fn.call(b[S].context,h);break;case 3:b[S].fn.call(b[S].context,h,g);break;case 4:b[S].fn.call(b[S].context,h,g,p);break;default:if(!x)for(_=1,x=new Array(E-1);_<E;_++)x[_-1]=arguments[_];b[S].fn.apply(b[S].context,x)}}return!0},a.prototype.on=function(c,h,g){return i(this,c,h,g,!1)},a.prototype.once=function(c,h,g){return i(this,c,h,g,!0)},a.prototype.removeListener=function(c,h,g,p){var m=t?t+c:c;if(!this._events[m])return this;if(!h)return o(this,m),this;var v=this._events[m];if(v.fn)v.fn===h&&(!p||v.once)&&(!g||v.context===g)&&o(this,m);else{for(var d=0,b=[],E=v.length;d<E;d++)(v[d].fn!==h||p&&!v[d].once||g&&v[d].context!==g)&&b.push(v[d]);b.length?this._events[m]=b.length===1?b[0]:b:o(this,m)}return this},a.prototype.removeAllListeners=function(c){var h;return c?(h=t?t+c:c,this._events[h]&&o(this,h)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,r.exports=a})(Oo)),Oo.exports}var Uv=Vv();const Hv=ct.getDefaultExportFromCjs(Uv),va=new WeakMap,ya=["error","warn","log","info"];let ba="warn";function Lh(r){if(ba&&ya.indexOf(r)<=ya.indexOf(ba)){for(var e=arguments.length,t=new Array(e>1?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];console[r](...t)}}function Ut(r){return ya.reduce((e,t)=>(e[t]=Lh.bind(console,t,r),e),{})}Ut.level=r=>{ba=r};Lh.level=Ut.level;const Lo=Ut("quill:events"),zv=["selectionchange","mousedown","mouseup","click"];zv.forEach(r=>{document.addEventListener(r,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Array.from(document.querySelectorAll(".ql-container")).forEach(s=>{const i=va.get(s);i&&i.emitter&&i.emitter.handleDOM(...t)})})});class te extends Hv{constructor(){super(),this.domListeners={},this.on("error",Lo.error)}emit(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lo.log.call(Lo,...t),super.emit(...t)}handleDOM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];(this.domListeners[e.type]||[]).forEach(i=>{let{node:o,handler:a}=i;(e.target===o||o.contains(e.target))&&a(e,...n)})}listenDOM(e,t,n){this.domListeners[e]||(this.domListeners[e]=[]),this.domListeners[e].push({node:t,handler:n})}}ee(te,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),ee(te,"sources",{API:"api",SILENT:"silent",USER:"user"});const Mo=Ut("quill:selection");class Cr{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=e,this.length=t}}class Gv{constructor(e,t){this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Cr(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,te.sources.USER),1)}),this.emitter.on(te.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const n=this.getNativeRange();n!=null&&n.start.node!==this.cursor.textNode&&this.emitter.once(te.events.SCROLL_UPDATE,(s,i)=>{try{this.root.contains(n.start.node)&&this.root.contains(n.end.node)&&this.setNativeRange(n.start.node,n.start.offset,n.end.node,n.end.offset);const o=i.some(a=>a.type==="characterData"||a.type==="childList"||a.type==="attributes"&&a.target===this.root);this.update(o?te.sources.SILENT:s)}catch{}})}),this.emitter.on(te.events.SCROLL_OPTIMIZE,(n,s)=>{if(s.range){const{startNode:i,startOffset:o,endNode:a,endOffset:l}=s.range;this.setNativeRange(i,o,a,l),this.update(te.sources.SILENT)}}),this.update(te.sources.SILENT)}handleComposition(){this.emitter.on(te.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(te.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const e=this.cursor.restore();if(!e)return;setTimeout(()=>{this.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(te.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(e,t){this.scroll.update();const n=this.getNativeRange();if(!(n==null||!n.native.collapsed||this.scroll.query(e,ne.BLOCK))){if(n.start.node!==this.cursor.textNode){const s=this.scroll.find(n.start.node,!1);if(s==null)return;if(s instanceof Fe){const i=s.split(n.start.offset);s.parent.insertBefore(this.cursor,i)}else s.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;let s,[i,o]=this.scroll.leaf(e);if(i==null)return null;if(t>0&&o===i.length()){const[h]=this.scroll.leaf(e+1);if(h){const[g]=this.scroll.line(e),[p]=this.scroll.line(e+1);g===p&&(i=h,o=0)}}[s,o]=i.position(o,!0);const a=document.createRange();if(t>0)return a.setStart(s,o),[i,o]=this.scroll.leaf(e+t),i==null?null:([s,o]=i.position(o,!0),a.setEnd(s,o),a.getBoundingClientRect());let l="left",c;if(s instanceof Text){if(!s.data.length)return null;o<s.data.length?(a.setStart(s,o),a.setEnd(s,o+1)):(a.setStart(s,o-1),a.setEnd(s,o),l="right"),c=a.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;c=i.domNode.getBoundingClientRect(),o>0&&(l="right")}return{bottom:c.top+c.height,height:c.height,left:c[l],right:c[l],top:c.top,width:0}}getNativeRange(){const e=document.getSelection();if(e==null||e.rangeCount<=0)return null;const t=e.getRangeAt(0);if(t==null)return null;const n=this.normalizeNative(t);return Mo.info("getNativeRange",n),n}getRange(){const e=this.scroll.domNode;if("isConnected"in e&&!e.isConnected)return[null,null];const t=this.getNativeRange();return t==null?[null,null]:[this.normalizedToRange(t),t]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&Do(this.root,document.activeElement)}normalizedToRange(e){const t=[[e.start.node,e.start.offset]];e.native.collapsed||t.push([e.end.node,e.end.offset]);const n=t.map(o=>{const[a,l]=o,c=this.scroll.find(a,!0),h=c.offset(this.scroll);return l===0?h:c instanceof Fe?h+c.index(a,l):h+c.length()}),s=Math.min(Math.max(...n),this.scroll.length()-1),i=Math.min(s,...n);return new Cr(i,s-i)}normalizeNative(e){if(!Do(this.root,e.startContainer)||!e.collapsed&&!Do(this.root,e.endContainer))return null;const t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach(n=>{let{node:s,offset:i}=n;for(;!(s instanceof Text)&&s.childNodes.length>0;)if(s.childNodes.length>i)s=s.childNodes[i],i=0;else if(s.childNodes.length===i)s=s.lastChild,s instanceof Text?i=s.data.length:s.childNodes.length>0?i=s.childNodes.length:i=s.childNodes.length+1;else break;n.node=s,n.offset=i}),t}rangeToNative(e){const t=this.scroll.length(),n=(s,i)=>{s=Math.min(t-1,s);const[o,a]=this.scroll.leaf(s);return o?o.position(a,i):[null,-1]};return[...n(e.index,!1),...n(e.index+e.length,!0)]}setNativeRange(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Mo.info("setNativeRange",e,t,n,s),e!=null&&(this.root.parentNode==null||e.parentNode==null||n.parentNode==null))return;const o=document.getSelection();if(o!=null)if(e!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:a}=this.getNativeRange()||{};if(a==null||i||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||s!==a.endOffset){e instanceof Element&&e.tagName==="BR"&&(t=Array.from(e.parentNode.childNodes).indexOf(e),e=e.parentNode),n instanceof Element&&n.tagName==="BR"&&(s=Array.from(n.parentNode.childNodes).indexOf(n),n=n.parentNode);const l=document.createRange();l.setStart(e,t),l.setEnd(n,s),o.removeAllRanges(),o.addRange(l)}}else o.removeAllRanges(),this.root.blur()}setRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:te.sources.API;if(typeof t=="string"&&(n=t,t=!1),Mo.info("setRange",e),e!=null){const s=this.rangeToNative(e);this.setNativeRange(...s,t)}else this.setNativeRange(null);this.update(n)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te.sources.USER;const t=this.lastRange,[n,s]=this.getRange();if(this.lastRange=n,this.lastNative=s,this.lastRange!=null&&(this.savedRange=this.lastRange),!Zt(t,this.lastRange)){if(!this.composing&&s!=null&&s.native.collapsed&&s.start.node!==this.cursor.textNode){const o=this.cursor.restore();o&&this.setNativeRange(o.startNode,o.startOffset,o.endNode,o.endOffset)}const i=[te.events.SELECTION_CHANGE,tn(this.lastRange),tn(t),e];this.emitter.emit(te.events.EDITOR_CHANGE,...i),e!==te.sources.SILENT&&this.emitter.emit(...i)}}}function Do(r,e){try{e.parentNode}catch{return!1}return r.contains(e)}const Kv=/^[ -~]*$/;class Wv{constructor(e){this.scroll=e,this.delta=this.getDelta()}applyDelta(e){this.scroll.update();let t=this.scroll.length();this.scroll.batchStart();const n=Eu(e),s=new re;return Zv(n.ops.slice()).reduce((o,a)=>{const l=et.Op.length(a);let c=a.attributes||{},h=!1,g=!1;if(a.insert!=null){if(s.retain(l),typeof a.insert=="string"){const v=a.insert;g=!v.endsWith(`
110
+ `)&&(t<=o||!!this.scroll.descendant(Je,o)[0]),this.scroll.insertAt(o,v);const[d,b]=this.scroll.line(o);let E=nr({},Xe(d));if(d instanceof De){const[x]=d.descendant(Fe,b);x&&(E=nr(E,Xe(x)))}c=et.AttributeMap.diff(E,c)||{}}else if(typeof a.insert=="object"){const v=Object.keys(a.insert)[0];if(v==null)return o;const d=this.scroll.query(v,ne.INLINE)!=null;if(d)(t<=o||this.scroll.descendant(Je,o)[0])&&(g=!0);else if(o>0){const[b,E]=this.scroll.descendant(Fe,o-1);b instanceof ft?b.value()[E]!==`
111
+ `&&(h=!0):b instanceof We&&b.statics.scope===ne.INLINE_BLOT&&(h=!0)}if(this.scroll.insertAt(o,v,a.insert[v]),d){const[b]=this.scroll.descendant(Fe,o);if(b){const E=nr({},Xe(b));c=et.AttributeMap.diff(E,c)||{}}}}t+=l}else if(s.push(a),a.retain!==null&&typeof a.retain=="object"){const v=Object.keys(a.retain)[0];if(v==null)return o;this.scroll.updateEmbedAt(o,v,a.retain[v])}Object.keys(c).forEach(v=>{this.scroll.formatAt(o,l,v,c[v])});const p=h?1:0,m=g?1:0;return t+=p+m,s.retain(p),s.delete(m),o+l+p+m},0),s.reduce((o,a)=>typeof a.delete=="number"?(this.scroll.deleteAt(o,a.delete),o):o+et.Op.length(a),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(n)}deleteText(e,t){return this.scroll.deleteAt(e,t),this.update(new re().retain(e).delete(t))}formatLine(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(n).forEach(i=>{this.scroll.lines(e,Math.max(t,1)).forEach(o=>{o.format(i,n[i])})}),this.scroll.optimize();const s=new re().retain(e).retain(t,tn(n));return this.update(s)}formatText(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(n).forEach(i=>{this.scroll.formatAt(e,t,i,n[i])});const s=new re().retain(e).retain(t,tn(n));return this.update(s)}getContents(e,t){return this.delta.slice(e,e+t)}getDelta(){return this.scroll.lines().reduce((e,t)=>e.concat(t.delta()),new re)}getFormat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[],s=[];t===0?this.scroll.path(e).forEach(a=>{const[l]=a;l instanceof De?n.push(l):l instanceof Fe&&s.push(l)}):(n=this.scroll.lines(e,t),s=this.scroll.descendants(Fe,e,t));const[i,o]=[n,s].map(a=>{const l=a.shift();if(l==null)return{};let c=Xe(l);for(;Object.keys(c).length>0;){const h=a.shift();if(h==null)return c;c=Yv(Xe(h),c)}return c});return{...i,...o}}getHTML(e,t){const[n,s]=this.scroll.line(e);if(n){const i=n.length();return n.length()>=s+t&&!(s===0&&t===i)?Qn(n,s,t,!0):Qn(this.scroll,e,t,!0)}return""}getText(e,t){return this.getContents(e,t).filter(n=>typeof n.insert=="string").map(n=>n.insert).join("")}insertContents(e,t){const n=Eu(t),s=new re().retain(e).concat(n);return this.scroll.insertContents(e,n),this.update(s)}insertEmbed(e,t,n){return this.scroll.insertAt(e,t,n),this.update(new re().retain(e).insert({[t]:n}))}insertText(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return t=t.replace(/\r\n/g,`
112
+ `).replace(/\r/g,`
113
+ `),this.scroll.insertAt(e,t),Object.keys(n).forEach(s=>{this.scroll.formatAt(e,t.length,s,n[s])}),this.update(new re().retain(e).insert(t,tn(n)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const e=this.scroll.children.head;if((e==null?void 0:e.statics.blotName)!==De.blotName)return!1;const t=e;return t.children.length>1?!1:t.children.head instanceof gt}removeFormat(e,t){const n=this.getText(e,t),[s,i]=this.scroll.line(e+t);let o=0,a=new re;s!=null&&(o=s.length()-i,a=s.delta().slice(i,i+o-1).insert(`
114
+ `));const c=this.getContents(e,t+o).diff(new re().insert(n).concat(a)),h=new re().retain(e).concat(c);return this.applyDelta(h)}update(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const s=this.delta;if(t.length===1&&t[0].type==="characterData"&&t[0].target.data.match(Kv)&&this.scroll.find(t[0].target)){const i=this.scroll.find(t[0].target),o=Xe(i),a=i.offset(this.scroll),l=t[0].oldValue.replace(hn.CONTENTS,""),c=new re().insert(l),h=new re().insert(i.value()),g=n&&{oldRange:wu(n.oldRange,-a),newRange:wu(n.newRange,-a)};e=new re().retain(a).concat(c.diff(h,g)).reduce((m,v)=>v.insert?m.insert(v.insert,o):m.push(v),new re),this.delta=s.compose(e)}else this.delta=this.getDelta(),(!e||!Zt(s.compose(e),this.delta))&&(e=s.diff(this.delta,n));return e}}function Qr(r,e,t){if(r.length===0){const[m]=Po(t.pop());return e<=0?`</li></${m}>`:`</li></${m}>${Qr([],e-1,t)}`}const[{child:n,offset:s,length:i,indent:o,type:a},...l]=r,[c,h]=Po(a);if(o>e)return t.push(a),o===e+1?`<${c}><li${h}>${Qn(n,s,i)}${Qr(l,o,t)}`:`<${c}><li>${Qr(r,e+1,t)}`;const g=t[t.length-1];if(o===e&&a===g)return`</li><li${h}>${Qn(n,s,i)}${Qr(l,o,t)}`;const[p]=Po(t.pop());return`</li></${p}>${Qr(r,e-1,t)}`}function Qn(r,e,t){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in r&&typeof r.html=="function")return r.html(e,t);if(r instanceof ft)return Ei(r.value().slice(e,e+t));if(r instanceof dt){if(r.statics.blotName==="list-container"){const c=[];return r.children.forEachAt(e,t,(h,g,p)=>{const m="formats"in h&&typeof h.formats=="function"?h.formats():{};c.push({child:h,offset:g,length:p,indent:m.indent||0,type:m.list})}),Qr(c,-1,[])}const s=[];if(r.children.forEachAt(e,t,(c,h,g)=>{s.push(Qn(c,h,g))}),n||r.statics.blotName==="list")return s.join("");const{outerHTML:i,innerHTML:o}=r.domNode,[a,l]=i.split(`>${o}<`);return a==="<table"?`<table style="border: 1px solid #000;">${s.join("")}<${l}`:`${a}>${s.join("")}<${l}`}return r.domNode instanceof Element?r.domNode.outerHTML:""}function Yv(r,e){return Object.keys(e).reduce((t,n)=>{if(r[n]==null)return t;const s=e[n];return s===r[n]?t[n]=s:Array.isArray(s)?s.indexOf(r[n])<0?t[n]=s.concat([r[n]]):t[n]=s:t[n]=[s,r[n]],t},{})}function Po(r){const e=r==="ordered"?"ol":"ul";switch(r){case"checked":return[e,' data-list="checked"'];case"unchecked":return[e,' data-list="unchecked"'];default:return[e,""]}}function Eu(r){return r.reduce((e,t)=>{if(typeof t.insert=="string"){const n=t.insert.replace(/\r\n/g,`
115
+ `).replace(/\r/g,`
116
+ `);return e.insert(n,t.attributes)}return e.push(t)},new re)}function wu(r,e){let{index:t,length:n}=r;return new Cr(t+e,n)}function Zv(r){const e=[];return r.forEach(t=>{typeof t.insert=="string"?t.insert.split(`
117
+ `).forEach((s,i)=>{i&&e.push({insert:`
118
+ `,attributes:t.attributes}),s&&e.push({insert:s,attributes:t.attributes})}):e.push(t)}),e}class mt{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=e,this.options=t}}ee(mt,"DEFAULTS",{});const Ls="\uFEFF";class Ja extends We{constructor(e,t){super(e,t),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(n=>{this.contentNode.appendChild(n)}),this.leftGuard=document.createTextNode(Ls),this.rightGuard=document.createTextNode(Ls),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:super.index(e,t)}restore(e){let t=null,n;const s=e.data.split(Ls).join("");if(e===this.leftGuard)if(this.prev instanceof ft){const i=this.prev.length();this.prev.insertAt(i,s),t={startNode:this.prev.domNode,startOffset:i+s.length}}else n=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(n),this),t={startNode:n,startOffset:s.length};else e===this.rightGuard&&(this.next instanceof ft?(this.next.insertAt(0,s),t={startNode:this.next.domNode,startOffset:s.length}):(n=document.createTextNode(s),this.parent.insertBefore(this.scroll.create(n),this.next),t={startNode:n,startOffset:s.length}));return e.data=Ls,t}update(e,t){e.forEach(n=>{if(n.type==="characterData"&&(n.target===this.leftGuard||n.target===this.rightGuard)){const s=this.restore(n.target);s&&(t.range=s)}})}}class Xv{constructor(e,t){ee(this,"isComposing",!1);this.scroll=e,this.emitter=t,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",e=>{this.isComposing||this.handleCompositionStart(e)}),this.scroll.domNode.addEventListener("compositionend",e=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(e)})})}handleCompositionStart(e){const t=e.target instanceof Node?this.scroll.find(e.target,!0):null;t&&!(t instanceof Ja)&&(this.emitter.emit(te.events.COMPOSITION_BEFORE_START,e),this.scroll.batchStart(),this.emitter.emit(te.events.COMPOSITION_START,e),this.isComposing=!0)}handleCompositionEnd(e){this.emitter.emit(te.events.COMPOSITION_BEFORE_END,e),this.scroll.batchEnd(),this.emitter.emit(te.events.COMPOSITION_END,e),this.isComposing=!1}}const zn=class zn{constructor(e,t){ee(this,"modules",{});this.quill=e,this.options=t}init(){Object.keys(this.options.modules).forEach(e=>{this.modules[e]==null&&this.addModule(e)})}addModule(e){const t=this.quill.constructor.import(`modules/${e}`);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}};ee(zn,"DEFAULTS",{modules:{}}),ee(zn,"themes",{default:zn});let dn=zn;const Qv=r=>r.parentElement||r.getRootNode().host||null,Jv=r=>{const e=r.getBoundingClientRect(),t="offsetWidth"in r&&Math.abs(e.width)/r.offsetWidth||1,n="offsetHeight"in r&&Math.abs(e.height)/r.offsetHeight||1;return{top:e.top,right:e.left+r.clientWidth*t,bottom:e.top+r.clientHeight*n,left:e.left}},Ms=r=>{const e=parseInt(r,10);return Number.isNaN(e)?0:e},xu=(r,e,t,n,s,i)=>r<t&&e>n?0:r<t?-(t-r+s):e>n?e-r>n-t?r+s-t:e-n+i:0,ey=(r,e)=>{var i,o,a;const t=r.ownerDocument;let n=e,s=r;for(;s;){const l=s===t.body,c=l?{top:0,right:((i=window.visualViewport)==null?void 0:i.width)??t.documentElement.clientWidth,bottom:((o=window.visualViewport)==null?void 0:o.height)??t.documentElement.clientHeight,left:0}:Jv(s),h=getComputedStyle(s),g=xu(n.left,n.right,c.left,c.right,Ms(h.scrollPaddingLeft),Ms(h.scrollPaddingRight)),p=xu(n.top,n.bottom,c.top,c.bottom,Ms(h.scrollPaddingTop),Ms(h.scrollPaddingBottom));if(g||p)if(l)(a=t.defaultView)==null||a.scrollBy(g,p);else{const{scrollLeft:m,scrollTop:v}=s;p&&(s.scrollTop+=p),g&&(s.scrollLeft+=g);const d=s.scrollLeft-m,b=s.scrollTop-v;n={left:n.left-d,top:n.top-b,right:n.right-d,bottom:n.bottom-b}}s=l||h.position==="fixed"?null:Qv(s)}},ty=100,ry=["block","break","cursor","inline","scroll","text"],ny=(r,e,t)=>{const n=new cn;return ry.forEach(s=>{const i=e.query(s);i&&n.register(i)}),r.forEach(s=>{let i=e.query(s);i||t.error(`Cannot register "${s}" specified in "formats" config. Are you sure it was registered?`);let o=0;for(;i;)if(n.register(i),i="blotName"in i?i.requiredContainer??null:null,o+=1,o>ty){t.error(`Cycle detected in registering blot requiredContainer: "${s}"`);break}}),n},nn=Ut("quill"),Ds=new cn;dt.uiClass="ql-ui";const ot=class ot{static debug(e){e===!0&&(e="log"),Ut.level(e)}static find(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return va.get(e)||Ds.find(e,t)}static import(e){return this.imports[e]==null&&nn.error(`Cannot import ${e}. Are you sure it was registered?`),this.imports[e]}static register(){if(typeof(arguments.length<=0?void 0:arguments[0])!="string"){const e=arguments.length<=0?void 0:arguments[0],t=!!(!(arguments.length<=1)&&arguments[1]),n="attrName"in e?e.attrName:e.blotName;typeof n=="string"?this.register(`formats/${n}`,e,t):Object.keys(e).forEach(s=>{this.register(s,e[s],t)})}else{const e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=!!(!(arguments.length<=2)&&arguments[2]);this.imports[e]!=null&&!n&&nn.warn(`Overwriting ${e} with`,t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&t&&typeof t!="boolean"&&t.blotName!=="abstract"&&Ds.register(t),typeof t.register=="function"&&t.register(Ds)}}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=sy(e,t),this.container=this.options.container,this.container==null){nn.error("Invalid Quill container",e);return}this.options.debug&&ot.debug(this.options.debug);const n=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",va.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new te;const s=Qa.blotName,i=this.options.registry.query(s);if(!i||!("blotName"in i))throw new Error(`Cannot initialize Quill without "${s}" blot`);if(this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new Wv(this.scroll),this.selection=new Gv(this.scroll,this.emitter),this.composition=new Xv(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(te.events.EDITOR_CHANGE,o=>{o===te.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(te.events.SCROLL_UPDATE,(o,a)=>{const l=this.selection.lastRange,[c]=this.selection.getRange(),h=l&&c?{oldRange:l,newRange:c}:void 0;st.call(this,()=>this.editor.update(null,a,h),o)}),this.emitter.on(te.events.SCROLL_EMBED_UPDATE,(o,a)=>{const l=this.selection.lastRange,[c]=this.selection.getRange(),h=l&&c?{oldRange:l,newRange:c}:void 0;st.call(this,()=>{const g=new re().retain(o.offset(this)).retain({[o.statics.blotName]:a});return this.editor.update(g,[],h)},ot.sources.USER)}),n){const o=this.clipboard.convert({html:`${n}<p><br></p>`,text:`
119
+ `});this.setContents(o)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof e=="string"){const n=e;e=document.createElement("div"),e.classList.add(n)}return this.container.insertBefore(e,t),e}blur(){this.selection.setRange(null)}deleteText(e,t,n){return[e,t,,n]=Lt(e,t,n),st.call(this,()=>this.editor.deleteText(e,t),n,e,-1*t)}disable(){this.enable(!1)}editReadOnly(e){this.allowReadOnlyEdits=!0;const t=e();return this.allowReadOnlyEdits=!1,t}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}focus(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),e.preventScroll||this.scrollSelectionIntoView()}format(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:te.sources.API;return st.call(this,()=>{const s=this.getSelection(!0);let i=new re;if(s==null)return i;if(this.scroll.query(e,ne.BLOCK))i=this.editor.formatLine(s.index,s.length,{[e]:t});else{if(s.length===0)return this.selection.format(e,t),i;i=this.editor.formatText(s.index,s.length,{[e]:t})}return this.setSelection(s,te.sources.SILENT),i},n)}formatLine(e,t,n,s,i){let o;return[e,t,o,i]=Lt(e,t,n,s,i),st.call(this,()=>this.editor.formatLine(e,t,o),i,e,0)}formatText(e,t,n,s,i){let o;return[e,t,o,i]=Lt(e,t,n,s,i),st.call(this,()=>this.editor.formatText(e,t,o),i,e,0)}getBounds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=null;if(typeof e=="number"?n=this.selection.getBounds(e,t):n=this.selection.getBounds(e.index,e.length),!n)return null;const s=this.container.getBoundingClientRect();return{bottom:n.bottom-s.top,height:n.height,left:n.left-s.left,right:n.right-s.left,top:n.top-s.top,width:n.width}}getContents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-e;return[e,t]=Lt(e,t),this.editor.getContents(e,t)}getFormat(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof e=="number"?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}getIndex(e){return e.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(e){return this.scroll.leaf(e)}getLine(e){return this.scroll.line(e)}getLines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof e!="number"?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}getModule(e){return this.theme.modules[e]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=Lt(e,t),this.editor.getHTML(e,t)}getText(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return typeof e=="number"&&(t=t??this.getLength()-e),[e,t]=Lt(e,t),this.editor.getText(e,t)}hasFocus(){return this.selection.hasFocus()}insertEmbed(e,t,n){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ot.sources.API;return st.call(this,()=>this.editor.insertEmbed(e,t,n),s,e)}insertText(e,t,n,s,i){let o;return[e,,o,i]=Lt(e,0,n,s,i),st.call(this,()=>this.editor.insertText(e,t,o),i,e,t.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(e,t,n){return[e,t,,n]=Lt(e,t,n),st.call(this,()=>this.editor.removeFormat(e,t),n,e)}scrollRectIntoView(e){ey(this.root,e)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const e=this.selection.lastRange,t=e&&this.selection.getBounds(e.index,e.length);t&&this.scrollRectIntoView(t)}setContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.sources.API;return st.call(this,()=>{e=new re(e);const n=this.getLength(),s=this.editor.deleteText(0,n),i=this.editor.insertContents(0,e),o=this.editor.deleteText(this.getLength()-1,1);return s.compose(i).compose(o)},t)}setSelection(e,t,n){e==null?this.selection.setRange(null,t||ot.sources.API):([e,t,,n]=Lt(e,t,n),this.selection.setRange(new Cr(Math.max(0,e),t),n),n!==te.sources.SILENT&&this.scrollSelectionIntoView())}setText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.sources.API;const n=new re().insert(e);return this.setContents(n,t)}update(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:te.sources.USER;const t=this.scroll.update(e);return this.selection.update(e),t}updateContents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:te.sources.API;return st.call(this,()=>(e=new re(e),this.editor.applyDelta(e)),t,!0)}};ee(ot,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Ds,theme:"default"}),ee(ot,"events",te.events),ee(ot,"sources",te.sources),ee(ot,"version","2.0.2"),ee(ot,"imports",{delta:re,parchment:Bv,"core/module":mt,"core/theme":dn});let P=ot;function _u(r){return typeof r=="string"?document.querySelector(r):r}function Bo(r){return Object.entries(r??{}).reduce((e,t)=>{let[n,s]=t;return{...e,[n]:s===!0?{}:s}},{})}function Su(r){return Object.fromEntries(Object.entries(r).filter(e=>e[1]!==void 0))}function sy(r,e){const t=_u(r);if(!t)throw new Error("Invalid Quill container");const s=!e.theme||e.theme===P.DEFAULTS.theme?dn:P.import(`themes/${e.theme}`);if(!s)throw new Error(`Invalid theme ${e.theme}. Did you register it?`);const{modules:i,...o}=P.DEFAULTS,{modules:a,...l}=s.DEFAULTS;let c=Bo(e.modules);c!=null&&c.toolbar&&c.toolbar.constructor!==Object&&(c={...c,toolbar:{container:c.toolbar}});const h=nr({},Bo(i),Bo(a),c),g={...o,...Su(l),...Su(e)};let p=e.registry;return p?e.formats&&nn.warn('Ignoring "formats" option because "registry" is specified'):p=e.formats?ny(e.formats,g.registry,nn):g.registry,{...g,registry:p,container:t,theme:s,modules:Object.entries(h).reduce((m,v)=>{let[d,b]=v;if(!b)return m;const E=P.import(`modules/${d}`);return E==null?(nn.error(`Cannot load ${d} module. Are you sure you registered it?`),m):{...m,[d]:nr({},E.DEFAULTS||{},b)}},{}),bounds:_u(g.bounds)}}function st(r,e,t,n){if(!this.isEnabled()&&e===te.sources.USER&&!this.allowReadOnlyEdits)return new re;let s=t==null?null:this.getSelection();const i=this.editor.delta,o=r();if(s!=null&&(t===!0&&(t=s.index),n==null?s=Au(s,o,e):n!==0&&(s=Au(s,t,n,e)),this.setSelection(s,te.sources.SILENT)),o.length()>0){const a=[te.events.TEXT_CHANGE,o,i,e];this.emitter.emit(te.events.EDITOR_CHANGE,...a),e!==te.sources.SILENT&&this.emitter.emit(...a)}return o}function Lt(r,e,t,n,s){let i={};return typeof r.index=="number"&&typeof r.length=="number"?typeof e!="number"?(s=n,n=t,t=e,e=r.length,r=r.index):(e=r.length,r=r.index):typeof e!="number"&&(s=n,n=t,t=e,e=0),typeof t=="object"?(i=t,s=n):typeof t=="string"&&(n!=null?i[t]=n:s=t),s=s||te.sources.API,[r,e,i,s]}function Au(r,e,t,n){const s=typeof t=="number"?t:0;if(r==null)return null;let i,o;return e&&typeof e.transformPosition=="function"?[i,o]=[r.index,r.index+r.length].map(a=>e.transformPosition(a,n!==te.sources.USER)):[i,o]=[r.index,r.index+r.length].map(a=>a<e||a===e&&n===te.sources.USER?a:s>=0?a+s:Math.max(e,a+s)),new Cr(i,o-i)}class Or extends bi{}function Cu(r){return r instanceof De||r instanceof Je}function Tu(r){return typeof r.updateContent=="function"}class Jr extends Qa{constructor(e,t,n){let{emitter:s}=n;super(e,t),this.emitter=s,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",i=>this.handleDragStart(i))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const e=this.batch;this.batch=!1,this.update(e)}emitMount(e){this.emitter.emit(te.events.SCROLL_BLOT_MOUNT,e)}emitUnmount(e){this.emitter.emit(te.events.SCROLL_BLOT_UNMOUNT,e)}emitEmbedUpdate(e,t){this.emitter.emit(te.events.SCROLL_EMBED_UPDATE,e,t)}deleteAt(e,t){const[n,s]=this.line(e),[i]=this.line(e+t);if(super.deleteAt(e,t),i!=null&&n!==i&&s>0){if(n instanceof Je||i instanceof Je){this.optimize();return}const o=i.children.head instanceof gt?null:i.children.head;n.moveChildren(i,o),n.remove()}this.optimize()}enable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",e?"true":"false")}formatAt(e,t,n,s){super.formatAt(e,t,n,s),this.optimize()}insertAt(e,t,n){if(e>=this.length())if(n==null||this.scroll.query(t,ne.BLOCK)==null){const s=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(s),n==null&&t.endsWith(`
120
+ `)?s.insertAt(0,t.slice(0,-1),n):s.insertAt(0,t,n)}else{const s=this.scroll.create(t,n);this.appendChild(s)}else super.insertAt(e,t,n);this.optimize()}insertBefore(e,t){if(e.statics.scope===ne.INLINE_BLOT){const n=this.scroll.create(this.statics.defaultChild.blotName);n.appendChild(e),super.insertBefore(n,t)}else super.insertBefore(e,t)}insertContents(e,t){const n=this.deltaToRenderBlocks(t.concat(new re().insert(`
121
+ `))),s=n.pop();if(s==null)return;this.batchStart();const i=n.shift();if(i){const l=i.type==="block"&&(i.delta.length()===0||!this.descendant(Je,e)[0]&&e<this.length()),c=i.type==="block"?i.delta:new re().insert({[i.key]:i.value});qo(this,e,c);const h=i.type==="block"?1:0,g=e+c.length()+h;l&&this.insertAt(g-1,`
122
+ `);const p=Xe(this.line(e)[0]),m=et.AttributeMap.diff(p,i.attributes)||{};Object.keys(m).forEach(v=>{this.formatAt(g-1,1,v,m[v])}),e=g}let[o,a]=this.children.find(e);if(n.length&&(o&&(o=o.split(a),a=0),n.forEach(l=>{if(l.type==="block"){const c=this.createBlock(l.attributes,o||void 0);qo(c,0,l.delta)}else{const c=this.create(l.key,l.value);this.insertBefore(c,o||void 0),Object.keys(l.attributes).forEach(h=>{c.format(h,l.attributes[h])})}})),s.type==="block"&&s.delta.length()){const l=o?o.offset(o.scroll)+a:this.length();qo(this,l,s.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(e){const t=this.path(e).pop();if(!t)return[null,-1];const[n,s]=t;return n instanceof Fe?[n,s]:[null,-1]}line(e){return e===this.length()?this.line(e-1):this.descendant(Cu,e)}lines(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const n=(s,i,o)=>{let a=[],l=o;return s.children.forEachAt(i,o,(c,h,g)=>{Cu(c)?a.push(c):c instanceof bi&&(a=a.concat(n(c,h,l))),l-=g}),a};return n(this,e,t)}optimize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(e,t),e.length>0&&this.emitter.emit(te.events.SCROLL_OPTIMIZE,e,t))}path(e){return super.path(e).slice(1)}remove(){}update(e){if(this.batch){Array.isArray(e)&&(this.batch=this.batch.concat(e));return}let t=te.sources.USER;typeof e=="string"&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),e=e.filter(n=>{let{target:s}=n;const i=this.find(s,!0);return i&&!Tu(i)}),e.length>0&&this.emitter.emit(te.events.SCROLL_BEFORE_UPDATE,t,e),super.update(e.concat([])),e.length>0&&this.emitter.emit(te.events.SCROLL_UPDATE,t,e)}updateEmbedAt(e,t,n){const[s]=this.descendant(i=>i instanceof Je,e);s&&s.statics.blotName===t&&Tu(s)&&s.updateContent(n)}handleDragStart(e){e.preventDefault()}deltaToRenderBlocks(e){const t=[];let n=new re;return e.forEach(s=>{const i=s==null?void 0:s.insert;if(i)if(typeof i=="string"){const o=i.split(`
123
+ `);o.slice(0,-1).forEach(l=>{n.insert(l,s.attributes),t.push({type:"block",delta:n,attributes:s.attributes??{}}),n=new re});const a=o[o.length-1];a&&n.insert(a,s.attributes)}else{const o=Object.keys(i)[0];if(!o)return;this.query(o,ne.INLINE)?n.push(s):(n.length()&&t.push({type:"block",delta:n,attributes:{}}),n=new re,t.push({type:"blockEmbed",key:o,value:i[o],attributes:s.attributes??{}}))}}),n.length()&&t.push({type:"block",delta:n,attributes:{}}),t}createBlock(e,t){let n;const s={};Object.entries(e).forEach(a=>{let[l,c]=a;this.query(l,ne.BLOCK&ne.BLOT)!=null?n=l:s[l]=c});const i=this.create(n||this.statics.defaultChild.blotName,n?e[n]:void 0);this.insertBefore(i,t||void 0);const o=i.length();return Object.entries(s).forEach(a=>{let[l,c]=a;i.formatAt(0,o,l,c)}),i}}ee(Jr,"blotName","scroll"),ee(Jr,"className","ql-editor"),ee(Jr,"tagName","DIV"),ee(Jr,"defaultChild",De),ee(Jr,"allowedChildren",[De,Je,Or]);function qo(r,e,t){t.reduce((n,s)=>{const i=et.Op.length(s);let o=s.attributes||{};if(s.insert!=null){if(typeof s.insert=="string"){const a=s.insert;r.insertAt(n,a);const[l]=r.descendant(Fe,n),c=Xe(l);o=et.AttributeMap.diff(c,o)||{}}else if(typeof s.insert=="object"){const a=Object.keys(s.insert)[0];if(a==null)return n;if(r.insertAt(n,a,s.insert[a]),r.scroll.query(a,ne.INLINE)!=null){const[c]=r.descendant(Fe,n),h=Xe(c);o=et.AttributeMap.diff(h,o)||{}}}}return Object.keys(o).forEach(a=>{r.formatAt(n,i,a,o[a])}),n+i},e)}const el={scope:ne.BLOCK,whitelist:["right","center","justify"]},iy=new At("align","align",el),Mh=new pt("align","ql-align",el),Dh=new lr("align","text-align",el);class Ph extends lr{value(e){let t=super.value(e);return t.startsWith("rgb(")?(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${t.split(",").map(s=>`00${parseInt(s,10).toString(16)}`.slice(-2)).join("")}`):t}}const oy=new pt("color","ql-color",{scope:ne.INLINE}),tl=new Ph("color","color",{scope:ne.INLINE}),ay=new pt("background","ql-bg",{scope:ne.INLINE}),rl=new Ph("background","background-color",{scope:ne.INLINE});class Lr extends Or{static create(e){const t=super.create(e);return t.setAttribute("spellcheck","false"),t}code(e,t){return this.children.map(n=>n.length()<=1?"":n.domNode.innerText).join(`
124
+ `).slice(e,e+t)}html(e,t){return`<pre>
125
+ ${Ei(this.code(e,t))}
126
+ </pre>`}}class je extends De{static register(){P.register(Lr)}}ee(je,"TAB"," ");class nl extends Ct{}nl.blotName="code";nl.tagName="CODE";je.blotName="code-block";je.className="ql-code-block";je.tagName="DIV";Lr.blotName="code-block-container";Lr.className="ql-code-block-container";Lr.tagName="DIV";Lr.allowedChildren=[je];je.allowedChildren=[ft,gt,hn];je.requiredContainer=Lr;const sl={scope:ne.BLOCK,whitelist:["rtl"]},Bh=new At("direction","dir",sl),qh=new pt("direction","ql-direction",sl),Fh=new lr("direction","direction",sl),jh={scope:ne.INLINE,whitelist:["serif","monospace"]},$h=new pt("font","ql-font",jh);class ly extends lr{value(e){return super.value(e).replace(/["']/g,"")}}const Vh=new ly("font","font-family",jh),Uh=new pt("size","ql-size",{scope:ne.INLINE,whitelist:["small","large","huge"]}),Hh=new lr("size","font-size",{scope:ne.INLINE,whitelist:["10px","18px","32px"]}),uy=Ut("quill:keyboard"),cy=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class wi extends mt{static match(e,t){return["altKey","ctrlKey","metaKey","shiftKey"].some(n=>!!t[n]!==e[n]&&t[n]!==null)?!1:t.key===e.key||t.key===e.which}constructor(e,t){super(e,t),this.bindings={},Object.keys(this.options.bindings).forEach(n=>{this.options.bindings[n]&&this.addBinding(this.options.bindings[n])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=dy(e);if(s==null){uy.warn("Attempted to add invalid keyboard binding",s);return}typeof t=="function"&&(t={handler:t}),typeof n=="function"&&(n={handler:n}),(Array.isArray(s.key)?s.key:[s.key]).forEach(o=>{const a={...s,key:o,...t,...n};this.bindings[a.key]=this.bindings[a.key]||[],this.bindings[a.key].push(a)})}listen(){this.quill.root.addEventListener("keydown",e=>{if(e.defaultPrevented||e.isComposing||e.keyCode===229&&(e.key==="Enter"||e.key==="Backspace"))return;const s=(this.bindings[e.key]||[]).concat(this.bindings[e.which]||[]).filter(E=>wi.match(e,E));if(s.length===0)return;const i=P.find(e.target,!0);if(i&&i.scroll!==this.quill.scroll)return;const o=this.quill.getSelection();if(o==null||!this.quill.hasFocus())return;const[a,l]=this.quill.getLine(o.index),[c,h]=this.quill.getLeaf(o.index),[g,p]=o.length===0?[c,h]:this.quill.getLeaf(o.index+o.length),m=c instanceof ni?c.value().slice(0,h):"",v=g instanceof ni?g.value().slice(p):"",d={collapsed:o.length===0,empty:o.length===0&&a.length()<=1,format:this.quill.getFormat(o),line:a,offset:l,prefix:m,suffix:v,event:e};s.some(E=>{if(E.collapsed!=null&&E.collapsed!==d.collapsed||E.empty!=null&&E.empty!==d.empty||E.offset!=null&&E.offset!==d.offset)return!1;if(Array.isArray(E.format)){if(E.format.every(x=>d.format[x]==null))return!1}else if(typeof E.format=="object"&&!Object.keys(E.format).every(x=>E.format[x]===!0?d.format[x]!=null:E.format[x]===!1?d.format[x]==null:Zt(E.format[x],d.format[x])))return!1;return E.prefix!=null&&!E.prefix.test(d.prefix)||E.suffix!=null&&!E.suffix.test(d.suffix)?!1:E.handler.call(this,o,d,E)!==!0})&&e.preventDefault()})}handleBackspace(e,t){const n=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;if(e.index===0||this.quill.getLength()<=1)return;let s={};const[i]=this.quill.getLine(e.index);let o=new re().retain(e.index-n).delete(n);if(t.offset===0){const[a]=this.quill.getLine(e.index-1);if(a&&!(a.statics.blotName==="block"&&a.length()<=1)){const c=i.formats(),h=this.quill.getFormat(e.index-1,1);if(s=et.AttributeMap.diff(c,h)||{},Object.keys(s).length>0){const g=new re().retain(e.index+i.length()-2).retain(1,s);o=o.compose(g)}}}this.quill.updateContents(o,P.sources.USER),this.quill.focus()}handleDelete(e,t){const n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(e.index>=this.quill.getLength()-n)return;let s={};const[i]=this.quill.getLine(e.index);let o=new re().retain(e.index).delete(n);if(t.offset>=i.length()-1){const[a]=this.quill.getLine(e.index+1);if(a){const l=i.formats(),c=this.quill.getFormat(e.index,1);s=et.AttributeMap.diff(l,c)||{},Object.keys(s).length>0&&(o=o.retain(a.length()-1).retain(1,s))}}this.quill.updateContents(o,P.sources.USER),this.quill.focus()}handleDeleteRange(e){il({range:e,quill:this.quill}),this.quill.focus()}handleEnter(e,t){const n=Object.keys(t.format).reduce((i,o)=>(this.quill.scroll.query(o,ne.BLOCK)&&!Array.isArray(t.format[o])&&(i[o]=t.format[o]),i),{}),s=new re().retain(e.index).delete(e.length).insert(`
127
+ `,n);this.quill.updateContents(s,P.sources.USER),this.quill.setSelection(e.index+1,P.sources.SILENT),this.quill.focus()}}const hy={bindings:{bold:Fo("bold"),italic:Fo("italic"),underline:Fo("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","+1",P.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(r,e){return e.collapsed&&e.offset!==0?!0:(this.quill.format("indent","-1",P.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(r,e){e.format.indent!=null?this.quill.format("indent","-1",P.sources.USER):e.format.list!=null&&this.quill.format("list",!1,P.sources.USER)}},"indent code-block":ku(!0),"outdent code-block":ku(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(r){this.quill.deleteText(r.index-1,1,P.sources.USER)}},tab:{key:"Tab",handler(r,e){if(e.format.table)return!0;this.quill.history.cutoff();const t=new re().retain(r.index).delete(r.length).insert(" ");return this.quill.updateContents(t,P.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index+1,P.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,P.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(r,e){const t={list:!1};e.format.indent&&(t.indent=!1),this.quill.formatLine(r.index,r.length,t,P.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(r){const[e,t]=this.quill.getLine(r.index),n={...e.formats(),list:"checked"},s=new re().retain(r.index).insert(`
128
+ `,n).retain(e.length()-t-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,P.sources.USER),this.quill.setSelection(r.index+1,P.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(r,e){const[t,n]=this.quill.getLine(r.index),s=new re().retain(r.index).insert(`
129
+ `,e.format).retain(t.length()-n-1).retain(1,{header:null});this.quill.updateContents(s,P.sources.USER),this.quill.setSelection(r.index+1,P.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(r){const e=this.quill.getModule("table");if(e){const[t,n,s,i]=e.getTable(r),o=fy(t,n,s,i);if(o==null)return;let a=t.offset();if(o<0){const l=new re().retain(a).insert(`
130
+ `);this.quill.updateContents(l,P.sources.USER),this.quill.setSelection(r.index+1,r.length,P.sources.SILENT)}else if(o>0){a+=t.length();const l=new re().retain(a).insert(`
131
+ `);this.quill.updateContents(l,P.sources.USER),this.quill.setSelection(a,P.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(r,e){const{event:t,line:n}=e,s=n.offset(this.quill.scroll);t.shiftKey?this.quill.setSelection(s-1,P.sources.USER):this.quill.setSelection(s+n.length(),P.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(r,e){if(this.quill.scroll.query("list")==null)return!0;const{length:t}=e.prefix,[n,s]=this.quill.getLine(r.index);if(s>t)return!0;let i;switch(e.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(r.index," ",P.sources.USER),this.quill.history.cutoff();const o=new re().retain(r.index-s).delete(t+1).retain(n.length()-2-s).retain(1,{list:i});return this.quill.updateContents(o,P.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(r.index-t,P.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(r){const[e,t]=this.quill.getLine(r.index);let n=2,s=e;for(;s!=null&&s.length()<=1&&s.formats()["code-block"];)if(s=s.prev,n-=1,n<=0){const i=new re().retain(r.index+e.length()-t-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,P.sources.USER),this.quill.setSelection(r.index-1,P.sources.SILENT),!1}return!0}},"embed left":Ps("ArrowLeft",!1),"embed left shift":Ps("ArrowLeft",!0),"embed right":Ps("ArrowRight",!1),"embed right shift":Ps("ArrowRight",!0),"table down":Nu(!1),"table up":Nu(!0)}};wi.DEFAULTS=hy;function ku(r){return{key:"Tab",shiftKey:!r,format:{"code-block":!0},handler(e,t){let{event:n}=t;const s=this.quill.scroll.query("code-block"),{TAB:i}=s;if(e.length===0&&!n.shiftKey){this.quill.insertText(e.index,i,P.sources.USER),this.quill.setSelection(e.index+i.length,P.sources.SILENT);return}const o=e.length===0?this.quill.getLines(e.index,1):this.quill.getLines(e);let{index:a,length:l}=e;o.forEach((c,h)=>{r?(c.insertAt(0,i),h===0?a+=i.length:l+=i.length):c.domNode.textContent.startsWith(i)&&(c.deleteAt(0,i.length),h===0?a-=i.length:l-=i.length)}),this.quill.update(P.sources.USER),this.quill.setSelection(a,l,P.sources.SILENT)}}}function Ps(r,e){return{key:r,shiftKey:e,altKey:null,[r==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(n){let{index:s}=n;r==="ArrowRight"&&(s+=n.length+1);const[i]=this.quill.getLeaf(s);return i instanceof We?(r==="ArrowLeft"?e?this.quill.setSelection(n.index-1,n.length+1,P.sources.USER):this.quill.setSelection(n.index-1,P.sources.USER):e?this.quill.setSelection(n.index,n.length+1,P.sources.USER):this.quill.setSelection(n.index+n.length+1,P.sources.USER),!1):!0}}}function Fo(r){return{key:r[0],shortKey:!0,handler(e,t){this.quill.format(r,!t.format[r],P.sources.USER)}}}function Nu(r){return{key:r?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(e,t){const n=r?"prev":"next",s=t.line,i=s.parent[n];if(i!=null){if(i.statics.blotName==="table-row"){let o=i.children.head,a=s;for(;a.prev!=null;)a=a.prev,o=o.next;const l=o.offset(this.quill.scroll)+Math.min(t.offset,o.length()-1);this.quill.setSelection(l,0,P.sources.USER)}}else{const o=s.table()[n];o!=null&&(r?this.quill.setSelection(o.offset(this.quill.scroll)+o.length()-1,0,P.sources.USER):this.quill.setSelection(o.offset(this.quill.scroll),0,P.sources.USER))}return!1}}}function dy(r){if(typeof r=="string"||typeof r=="number")r={key:r};else if(typeof r=="object")r=tn(r);else return null;return r.shortKey&&(r[cy]=r.shortKey,delete r.shortKey),r}function il(r){let{quill:e,range:t}=r;const n=e.getLines(t);let s={};if(n.length>1){const i=n[0].formats(),o=n[n.length-1].formats();s=et.AttributeMap.diff(o,i)||{}}e.deleteText(t,P.sources.USER),Object.keys(s).length>0&&e.formatLine(t.index,1,s,P.sources.USER),e.setSelection(t.index,P.sources.SILENT)}function fy(r,e,t,n){return e.prev==null&&e.next==null?t.prev==null&&t.next==null?n===0?-1:1:t.prev==null?-1:1:e.prev==null?-1:e.next==null?1:null}const py=/font-weight:\s*normal/,gy=["P","OL","UL"],Iu=r=>r&&gy.includes(r.tagName),my=r=>{Array.from(r.querySelectorAll("br")).filter(e=>Iu(e.previousElementSibling)&&Iu(e.nextElementSibling)).forEach(e=>{var t;(t=e.parentNode)==null||t.removeChild(e)})},vy=r=>{Array.from(r.querySelectorAll('b[style*="font-weight"]')).filter(e=>{var t;return(t=e.getAttribute("style"))==null?void 0:t.match(py)}).forEach(e=>{var n;const t=r.createDocumentFragment();t.append(...e.childNodes),(n=e.parentNode)==null||n.replaceChild(t,e)})};function yy(r){r.querySelector('[id^="docs-internal-guid-"]')&&(vy(r),my(r))}const by=/\bmso-list:[^;]*ignore/i,Ey=/\bmso-list:[^;]*\bl(\d+)/i,wy=/\bmso-list:[^;]*\blevel(\d+)/i,xy=(r,e)=>{const t=r.getAttribute("style"),n=t==null?void 0:t.match(Ey);if(!n)return null;const s=Number(n[1]),i=t==null?void 0:t.match(wy),o=i?Number(i[1]):1,a=new RegExp(`@list l${s}:level${o}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),l=e.match(a),c=l&&l[1]==="bullet"?"bullet":"ordered";return{id:s,indent:o,type:c,element:r}},_y=r=>{var o,a;const e=Array.from(r.querySelectorAll("[style*=mso-list]")),t=[],n=[];e.forEach(l=>{(l.getAttribute("style")||"").match(by)?t.push(l):n.push(l)}),t.forEach(l=>{var c;return(c=l.parentNode)==null?void 0:c.removeChild(l)});const s=r.documentElement.innerHTML,i=n.map(l=>xy(l,s)).filter(l=>l);for(;i.length;){const l=[];let c=i.shift();for(;c;)l.push(c),c=i.length&&((o=i[0])==null?void 0:o.element)===c.element.nextElementSibling&&i[0].id===c.id?i.shift():null;const h=document.createElement("ul");l.forEach(m=>{const v=document.createElement("li");v.setAttribute("data-list",m.type),m.indent>1&&v.setAttribute("class",`ql-indent-${m.indent-1}`),v.innerHTML=m.element.innerHTML,h.appendChild(v)});const g=(a=l[0])==null?void 0:a.element,{parentNode:p}=g??{};g&&(p==null||p.replaceChild(h,g)),l.slice(1).forEach(m=>{let{element:v}=m;p==null||p.removeChild(v)})}};function Sy(r){r.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&_y(r)}const Ay=[Sy,yy],Cy=r=>{r.documentElement&&Ay.forEach(e=>{e(r)})},Ty=Ut("quill:clipboard"),ky=[[Node.TEXT_NODE,jy],[Node.TEXT_NODE,Ou],["br",Ly],[Node.ELEMENT_NODE,Ou],[Node.ELEMENT_NODE,Oy],[Node.ELEMENT_NODE,Ry],[Node.ELEMENT_NODE,qy],["li",Py],["ol, ul",By],["pre",My],["tr",Fy],["b",jo("bold")],["i",jo("italic")],["strike",jo("strike")],["style",Dy]],Ny=[iy,Bh].reduce((r,e)=>(r[e.keyName]=e,r),{}),Ru=[Dh,rl,tl,Fh,Vh,Hh].reduce((r,e)=>(r[e.keyName]=e,r),{});class zh extends mt{constructor(e,t){super(e,t),this.quill.root.addEventListener("copy",n=>this.onCaptureCopy(n,!1)),this.quill.root.addEventListener("cut",n=>this.onCaptureCopy(n,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],ky.concat(this.options.matchers??[]).forEach(n=>{let[s,i]=n;this.addMatcher(s,i)})}addMatcher(e,t){this.matchers.push([e,t])}convert(e){let{html:t,text:n}=e,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(s[je.blotName])return new re().insert(n||"",{[je.blotName]:s[je.blotName]});if(!t)return new re().insert(n||"",s);const i=this.convertHTML(t);return ss(i,`
132
+ `)&&(i.ops[i.ops.length-1].attributes==null||s.table)?i.compose(new re().retain(i.length()-1).delete(1)):i}normalizeHTML(e){Cy(e)}convertHTML(e){const t=new DOMParser().parseFromString(e,"text/html");this.normalizeHTML(t);const n=t.body,s=new WeakMap,[i,o]=this.prepareMatching(n,s);return ol(this.quill.scroll,n,i,o,s)}dangerouslyPasteHTML(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:P.sources.API;if(typeof e=="string"){const s=this.convert({html:e,text:""});this.quill.setContents(s,t),this.quill.setSelection(0,P.sources.SILENT)}else{const s=this.convert({html:t,text:""});this.quill.updateContents(new re().retain(e).concat(s),n),this.quill.setSelection(e+s.length(),P.sources.SILENT)}}onCaptureCopy(e){var o,a;let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.defaultPrevented)return;e.preventDefault();const[n]=this.quill.selection.getRange();if(n==null)return;const{html:s,text:i}=this.onCopy(n,t);(o=e.clipboardData)==null||o.setData("text/plain",i),(a=e.clipboardData)==null||a.setData("text/html",s),t&&il({range:n,quill:this.quill})}normalizeURIList(e){return e.split(/\r?\n/).filter(t=>t[0]!=="#").join(`
133
+ `)}onCapturePaste(e){var o,a,l,c,h;if(e.defaultPrevented||!this.quill.isEnabled())return;e.preventDefault();const t=this.quill.getSelection(!0);if(t==null)return;const n=(o=e.clipboardData)==null?void 0:o.getData("text/html");let s=(a=e.clipboardData)==null?void 0:a.getData("text/plain");if(!n&&!s){const g=(l=e.clipboardData)==null?void 0:l.getData("text/uri-list");g&&(s=this.normalizeURIList(g))}const i=Array.from(((c=e.clipboardData)==null?void 0:c.files)||[]);if(!n&&i.length>0){this.quill.uploader.upload(t,i);return}if(n&&i.length>0){const g=new DOMParser().parseFromString(n,"text/html");if(g.body.childElementCount===1&&((h=g.body.firstElementChild)==null?void 0:h.tagName)==="IMG"){this.quill.uploader.upload(t,i);return}}this.onPaste(t,{html:n,text:s})}onCopy(e){const t=this.quill.getText(e);return{html:this.quill.getSemanticHTML(e),text:t}}onPaste(e,t){let{text:n,html:s}=t;const i=this.quill.getFormat(e.index),o=this.convert({text:n,html:s},i);Ty.log("onPaste",o,{text:n,html:s});const a=new re().retain(e.index).delete(e.length).concat(o);this.quill.updateContents(a,P.sources.USER),this.quill.setSelection(a.length()-e.length,P.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(e,t){const n=[],s=[];return this.matchers.forEach(i=>{const[o,a]=i;switch(o){case Node.TEXT_NODE:s.push(a);break;case Node.ELEMENT_NODE:n.push(a);break;default:Array.from(e.querySelectorAll(o)).forEach(l=>{if(t.has(l)){const c=t.get(l);c==null||c.push(a)}else t.set(l,[a])});break}}),[n,s]}}ee(zh,"DEFAULTS",{matchers:[]});function Mr(r,e,t,n){return n.query(e)?r.reduce((s,i)=>{if(!i.insert)return s;if(i.attributes&&i.attributes[e])return s.push(i);const o=t?{[e]:t}:{};return s.insert(i.insert,{...o,...i.attributes})},new re):r}function ss(r,e){let t="";for(let n=r.ops.length-1;n>=0&&t.length<e.length;--n){const s=r.ops[n];if(typeof s.insert!="string")break;t=s.insert+t}return t.slice(-1*e.length)===e}function Qt(r,e){if(!(r instanceof Element))return!1;const t=e.query(r);return t&&t.prototype instanceof We?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(r.tagName.toLowerCase())}function Iy(r,e){return r.previousElementSibling&&r.nextElementSibling&&!Qt(r.previousElementSibling,e)&&!Qt(r.nextElementSibling,e)}const Bs=new WeakMap;function Gh(r){return r==null?!1:(Bs.has(r)||(r.tagName==="PRE"?Bs.set(r,!0):Bs.set(r,Gh(r.parentNode))),Bs.get(r))}function ol(r,e,t,n,s){return e.nodeType===e.TEXT_NODE?n.reduce((i,o)=>o(e,i,r),new re):e.nodeType===e.ELEMENT_NODE?Array.from(e.childNodes||[]).reduce((i,o)=>{let a=ol(r,o,t,n,s);return o.nodeType===e.ELEMENT_NODE&&(a=t.reduce((l,c)=>c(o,l,r),a),a=(s.get(o)||[]).reduce((l,c)=>c(o,l,r),a)),i.concat(a)},new re):new re}function jo(r){return(e,t,n)=>Mr(t,r,!0,n)}function Ry(r,e,t){const n=At.keys(r),s=pt.keys(r),i=lr.keys(r),o={};return n.concat(s).concat(i).forEach(a=>{let l=t.query(a,ne.ATTRIBUTE);l!=null&&(o[l.attrName]=l.value(r),o[l.attrName])||(l=Ny[a],l!=null&&(l.attrName===a||l.keyName===a)&&(o[l.attrName]=l.value(r)||void 0),l=Ru[a],l!=null&&(l.attrName===a||l.keyName===a)&&(l=Ru[a],o[l.attrName]=l.value(r)||void 0))}),Object.entries(o).reduce((a,l)=>{let[c,h]=l;return Mr(a,c,h,t)},e)}function Oy(r,e,t){const n=t.query(r);if(n==null)return e;if(n.prototype instanceof We){const s={},i=n.value(r);if(i!=null)return s[n.blotName]=i,new re().insert(s,n.formats(r,t))}else if(n.prototype instanceof Xn&&!ss(e,`
134
+ `)&&e.insert(`
135
+ `),"blotName"in n&&"formats"in n&&typeof n.formats=="function")return Mr(e,n.blotName,n.formats(r,t),t);return e}function Ly(r,e){return ss(e,`
136
+ `)||e.insert(`
137
+ `),e}function My(r,e,t){const n=t.query("code-block"),s=n&&"formats"in n&&typeof n.formats=="function"?n.formats(r,t):!0;return Mr(e,"code-block",s,t)}function Dy(){return new re}function Py(r,e,t){const n=t.query(r);if(n==null||n.blotName!=="list"||!ss(e,`
138
+ `))return e;let s=-1,i=r.parentNode;for(;i!=null;)["OL","UL"].includes(i.tagName)&&(s+=1),i=i.parentNode;return s<=0?e:e.reduce((o,a)=>a.insert?a.attributes&&typeof a.attributes.indent=="number"?o.push(a):o.insert(a.insert,{indent:s,...a.attributes||{}}):o,new re)}function By(r,e,t){const n=r;let s=n.tagName==="OL"?"ordered":"bullet";const i=n.getAttribute("data-checked");return i&&(s=i==="true"?"checked":"unchecked"),Mr(e,"list",s,t)}function Ou(r,e,t){if(!ss(e,`
139
+ `)){if(Qt(r,t)&&(r.childNodes.length>0||r instanceof HTMLParagraphElement))return e.insert(`
140
+ `);if(e.length()>0&&r.nextSibling){let n=r.nextSibling;for(;n!=null;){if(Qt(n,t))return e.insert(`
141
+ `);const s=t.query(n);if(s&&s.prototype instanceof Je)return e.insert(`
142
+ `);n=n.firstChild}}}return e}function qy(r,e,t){var i;const n={},s=r.style||{};return s.fontStyle==="italic"&&(n.italic=!0),s.textDecoration==="underline"&&(n.underline=!0),s.textDecoration==="line-through"&&(n.strike=!0),((i=s.fontWeight)!=null&&i.startsWith("bold")||parseInt(s.fontWeight,10)>=700)&&(n.bold=!0),e=Object.entries(n).reduce((o,a)=>{let[l,c]=a;return Mr(o,l,c,t)},e),parseFloat(s.textIndent||0)>0?new re().insert(" ").concat(e):e}function Fy(r,e,t){var s,i;const n=((s=r.parentElement)==null?void 0:s.tagName)==="TABLE"?r.parentElement:(i=r.parentElement)==null?void 0:i.parentElement;if(n!=null){const a=Array.from(n.querySelectorAll("tr")).indexOf(r)+1;return Mr(e,"table",a,t)}return e}function jy(r,e,t){var s;let n=r.data;if(((s=r.parentElement)==null?void 0:s.tagName)==="O:P")return e.insert(n.trim());if(!Gh(r)){if(n.trim().length===0&&n.includes(`
143
+ `)&&!Iy(r,t))return e;const i=(o,a)=>{const l=a.replace(/[^\u00a0]/g,"");return l.length<1&&o?" ":l};n=n.replace(/\r\n/g," ").replace(/\n/g," "),n=n.replace(/\s\s+/g,i.bind(i,!0)),(r.previousSibling==null&&r.parentElement!=null&&Qt(r.parentElement,t)||r.previousSibling instanceof Element&&Qt(r.previousSibling,t))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(r.nextSibling==null&&r.parentElement!=null&&Qt(r.parentElement,t)||r.nextSibling instanceof Element&&Qt(r.nextSibling,t))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return e.insert(n)}class Kh extends mt{constructor(t,n){super(t,n);ee(this,"lastRecorded",0);ee(this,"ignoreChange",!1);ee(this,"stack",{undo:[],redo:[]});ee(this,"currentRange",null);this.quill.on(P.events.EDITOR_CHANGE,(s,i,o,a)=>{s===P.events.SELECTION_CHANGE?i&&a!==P.sources.SILENT&&(this.currentRange=i):s===P.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||a===P.sources.USER?this.record(i,o):this.transform(i)),this.currentRange=Ea(this.currentRange,i))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",s=>{s.inputType==="historyUndo"?(this.undo(),s.preventDefault()):s.inputType==="historyRedo"&&(this.redo(),s.preventDefault())})}change(t,n){if(this.stack[t].length===0)return;const s=this.stack[t].pop();if(!s)return;const i=this.quill.getContents(),o=s.delta.invert(i);this.stack[n].push({delta:o,range:Ea(s.range,o)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(s.delta,P.sources.USER),this.ignoreChange=!1,this.restoreSelection(s)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(t,n){if(t.ops.length===0)return;this.stack.redo=[];let s=t.invert(n),i=this.currentRange;const o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){const a=this.stack.undo.pop();a&&(s=s.compose(a.delta),i=a.range)}else this.lastRecorded=o;s.length()!==0&&(this.stack.undo.push({delta:s,range:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(t){Lu(this.stack.undo,t),Lu(this.stack.redo,t)}undo(){this.change("undo","redo")}restoreSelection(t){if(t.range)this.quill.setSelection(t.range,P.sources.USER);else{const n=Vy(this.quill.scroll,t.delta);this.quill.setSelection(n,P.sources.USER)}}}ee(Kh,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function Lu(r,e){let t=e;for(let n=r.length-1;n>=0;n-=1){const s=r[n];r[n]={delta:t.transform(s.delta,!0),range:s.range&&Ea(s.range,t)},t=s.delta.transform(t),r[n].delta.length()===0&&r.splice(n,1)}}function $y(r,e){const t=e.ops[e.ops.length-1];return t==null?!1:t.insert!=null?typeof t.insert=="string"&&t.insert.endsWith(`
144
+ `):t.attributes!=null?Object.keys(t.attributes).some(n=>r.query(n,ne.BLOCK)!=null):!1}function Vy(r,e){const t=e.reduce((s,i)=>s+(i.delete||0),0);let n=e.length()-t;return $y(r,e)&&(n-=1),n}function Ea(r,e){if(!r)return r;const t=e.transformPosition(r.index),n=e.transformPosition(r.index+r.length);return{index:t,length:n-t}}class Wh extends mt{constructor(e,t){super(e,t),e.root.addEventListener("drop",n=>{var o;n.preventDefault();let s=null;if(document.caretRangeFromPoint)s=document.caretRangeFromPoint(n.clientX,n.clientY);else if(document.caretPositionFromPoint){const a=document.caretPositionFromPoint(n.clientX,n.clientY);s=document.createRange(),s.setStart(a.offsetNode,a.offset),s.setEnd(a.offsetNode,a.offset)}const i=s&&e.selection.normalizeNative(s);if(i){const a=e.selection.normalizedToRange(i);(o=n.dataTransfer)!=null&&o.files&&this.upload(a,n.dataTransfer.files)}})}upload(e,t){const n=[];Array.from(t).forEach(s=>{var i;s&&((i=this.options.mimetypes)!=null&&i.includes(s.type))&&n.push(s)}),n.length>0&&this.options.handler.call(this,e,n)}}Wh.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(r,e){if(!this.quill.scroll.query("image"))return;const t=e.map(n=>new Promise(s=>{const i=new FileReader;i.onload=()=>{s(i.result)},i.readAsDataURL(n)}));Promise.all(t).then(n=>{const s=n.reduce((i,o)=>i.insert({image:o}),new re().retain(r.index).delete(r.length));this.quill.updateContents(s,te.sources.USER),this.quill.setSelection(r.index+n.length,te.sources.SILENT)})}};const Uy=["insertText","insertReplacementText"];let Hy=class extends mt{constructor(e,t){super(e,t),e.root.addEventListener("beforeinput",n=>{this.handleBeforeInput(n)}),/Android/i.test(navigator.userAgent)||e.on(P.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(e){il({range:e,quill:this.quill})}replaceText(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(e.length===0)return!1;if(t){const n=this.quill.getFormat(e.index,1);this.deleteRange(e),this.quill.updateContents(new re().retain(e.index).insert(t,n),P.sources.USER)}else this.deleteRange(e);return this.quill.setSelection(e.index+t.length,0,P.sources.SILENT),!0}handleBeforeInput(e){if(this.quill.composition.isComposing||e.defaultPrevented||!Uy.includes(e.inputType))return;const t=e.getTargetRanges?e.getTargetRanges()[0]:null;if(!t||t.collapsed===!0)return;const n=zy(e);if(n==null)return;const s=this.quill.selection.normalizeNative(t),i=s?this.quill.selection.normalizedToRange(s):null;i&&this.replaceText(i,n)&&e.preventDefault()}handleCompositionStart(){const e=this.quill.getSelection();e&&this.replaceText(e)}};function zy(r){var e;return typeof r.data=="string"?r.data:(e=r.dataTransfer)!=null&&e.types.includes("text/plain")?r.dataTransfer.getData("text/plain"):null}const Gy=/Mac/i.test(navigator.platform),Ky=100,Wy=r=>!!(r.key==="ArrowLeft"||r.key==="ArrowRight"||r.key==="ArrowUp"||r.key==="ArrowDown"||r.key==="Home"||Gy&&r.key==="a"&&r.ctrlKey===!0);class Yy extends mt{constructor(t,n){super(t,n);ee(this,"isListening",!1);ee(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(t,n){let{line:s,event:i}=n;if(!(s instanceof dt)||!s.uiNode)return!0;const o=getComputedStyle(s.domNode).direction==="rtl";return o&&i.key!=="ArrowRight"||!o&&i.key!=="ArrowLeft"?!0:(this.quill.setSelection(t.index-1,t.length+(i.shiftKey?1:0),P.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",t=>{!t.defaultPrevented&&Wy(t)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+Ky,this.isListening)return;this.isListening=!0;const t=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",t,{once:!0})}handleSelectionChange(){const t=document.getSelection();if(!t)return;const n=t.getRangeAt(0);if(n.collapsed!==!0||n.startOffset!==0)return;const s=this.quill.scroll.find(n.startContainer);if(!(s instanceof dt)||!s.uiNode)return;const i=document.createRange();i.setStartAfter(s.uiNode),i.setEndAfter(s.uiNode),t.removeAllRanges(),t.addRange(i)}}P.register({"blots/block":De,"blots/block/embed":Je,"blots/break":gt,"blots/container":Or,"blots/cursor":hn,"blots/embed":Ja,"blots/inline":Ct,"blots/scroll":Jr,"blots/text":ft,"modules/clipboard":zh,"modules/history":Kh,"modules/keyboard":wi,"modules/uploader":Wh,"modules/input":Hy,"modules/uiNode":Yy});class Zy extends pt{add(e,t){let n=0;if(t==="+1"||t==="-1"){const s=this.value(e)||0;n=t==="+1"?s+1:s-1}else typeof t=="number"&&(n=t);return n===0?(this.remove(e),!0):super.add(e,n.toString())}canAdd(e,t){return super.canAdd(e,t)||super.canAdd(e,parseInt(t,10))}value(e){return parseInt(super.value(e),10)||void 0}}const Xy=new Zy("indent","ql-indent",{scope:ne.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class wa extends De{}ee(wa,"blotName","blockquote"),ee(wa,"tagName","blockquote");class xa extends De{static formats(e){return this.tagName.indexOf(e.tagName)+1}}ee(xa,"blotName","header"),ee(xa,"tagName",["H1","H2","H3","H4","H5","H6"]);class is extends Or{}is.blotName="list-container";is.tagName="OL";class os extends De{static create(e){const t=super.create();return t.setAttribute("data-list",e),t}static formats(e){return e.getAttribute("data-list")||void 0}static register(){P.register(is)}constructor(e,t){super(e,t);const n=t.ownerDocument.createElement("span"),s=i=>{if(!e.isEnabled())return;const o=this.statics.formats(t,e);o==="checked"?(this.format("list","unchecked"),i.preventDefault()):o==="unchecked"&&(this.format("list","checked"),i.preventDefault())};n.addEventListener("mousedown",s),n.addEventListener("touchstart",s),this.attachUI(n)}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-list",t):super.format(e,t)}}os.blotName="list";os.tagName="LI";is.allowedChildren=[os];os.requiredContainer=is;class Jn extends Ct{static create(){return super.create()}static formats(){return!0}optimize(e){super.optimize(e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}ee(Jn,"blotName","bold"),ee(Jn,"tagName",["STRONG","B"]);class _a extends Jn{}ee(_a,"blotName","italic"),ee(_a,"tagName",["EM","I"]);class Jt extends Ct{static create(e){const t=super.create(e);return t.setAttribute("href",this.sanitize(e)),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}static formats(e){return e.getAttribute("href")}static sanitize(e){return Yh(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}format(e,t){e!==this.statics.blotName||!t?super.format(e,t):this.domNode.setAttribute("href",this.constructor.sanitize(t))}}ee(Jt,"blotName","link"),ee(Jt,"tagName","A"),ee(Jt,"SANITIZED_URL","about:blank"),ee(Jt,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function Yh(r,e){const t=document.createElement("a");t.href=r;const n=t.href.slice(0,t.href.indexOf(":"));return e.indexOf(n)>-1}class Sa extends Ct{static create(e){return e==="super"?document.createElement("sup"):e==="sub"?document.createElement("sub"):super.create(e)}static formats(e){if(e.tagName==="SUB")return"sub";if(e.tagName==="SUP")return"super"}}ee(Sa,"blotName","script"),ee(Sa,"tagName",["SUB","SUP"]);class Aa extends Jn{}ee(Aa,"blotName","strike"),ee(Aa,"tagName",["S","STRIKE"]);class Ca extends Ct{}ee(Ca,"blotName","underline"),ee(Ca,"tagName","U");class Gs extends Ja{static create(e){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const t=super.create(e);return typeof e=="string"&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}static value(e){return e.getAttribute("data-value")}html(){const{formula:e}=this.value();return`<span>${e}</span>`}}ee(Gs,"blotName","formula"),ee(Gs,"className","ql-formula"),ee(Gs,"tagName","SPAN");const Mu=["alt","height","width"];class Ta extends We{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Mu.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static match(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}static sanitize(e){return Yh(e,["http","https","data"])?e:"//:0"}static value(e){return e.getAttribute("src")}format(e,t){Mu.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}}ee(Ta,"blotName","image"),ee(Ta,"tagName","IMG");const Du=["height","width"];class Ks extends Je{static create(e){const t=super.create(e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen","true"),t.setAttribute("src",this.sanitize(e)),t}static formats(e){return Du.reduce((t,n)=>(e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t),{})}static sanitize(e){return Jt.sanitize(e)}static value(e){return e.getAttribute("src")}format(e,t){Du.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):super.format(e,t)}html(){const{video:e}=this.value();return`<a href="${e}">${e}</a>`}}ee(Ks,"blotName","video"),ee(Ks,"className","ql-video"),ee(Ks,"tagName","IFRAME");const Fn=new pt("code-token","hljs",{scope:ne.INLINE});class qt extends Ct{static formats(e,t){for(;e!=null&&e!==t.domNode;){if(e.classList&&e.classList.contains(je.className))return super.formats(e,t);e=e.parentNode}}constructor(e,t,n){super(e,t,n),Fn.add(this.domNode,n)}format(e,t){e!==qt.blotName?super.format(e,t):t?Fn.add(this.domNode,t):(Fn.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Fn.value(this.domNode)||this.unwrap()}}qt.blotName="code-token";qt.className="ql-token";class Qe extends je{static create(e){const t=super.create(e);return typeof e=="string"&&t.setAttribute("data-language",e),t}static formats(e){return e.getAttribute("data-language")||"plain"}static register(){}format(e,t){e===this.statics.blotName&&t?this.domNode.setAttribute("data-language",t):super.format(e,t)}replaceWith(e,t){return this.formatAt(0,this.length(),qt.blotName,!1),super.replaceWith(e,t)}}class Hn extends Lr{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(e,t){e===Qe.blotName&&(this.forceNext=!0,this.children.forEach(n=>{n.format(e,t)}))}formatAt(e,t,n,s){n===Qe.blotName&&(this.forceNext=!0),super.formatAt(e,t,n,s)}highlight(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const s=`${Array.from(this.domNode.childNodes).filter(o=>o!==this.uiNode).map(o=>o.textContent).join(`
145
+ `)}
146
+ `,i=Qe.formats(this.children.head.domNode);if(t||this.forceNext||this.cachedText!==s){if(s.trim().length>0||this.cachedText==null){const o=this.children.reduce((l,c)=>l.concat(Oh(c,!1)),new re),a=e(s,i);o.diff(a).reduce((l,c)=>{let{retain:h,attributes:g}=c;return h?(g&&Object.keys(g).forEach(p=>{[Qe.blotName,qt.blotName].includes(p)&&this.formatAt(l,h,p,g[p])}),l+h):l},0)}this.cachedText=s,this.forceNext=!1}}html(e,t){const[n]=this.children.find(e);return`<pre data-language="${n?Qe.formats(n.domNode):"plain"}">
147
+ ${Ei(this.code(e,t))}
148
+ </pre>`}optimize(e){if(super.optimize(e),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const t=Qe.formats(this.children.head.domNode);t!==this.uiNode.value&&(this.uiNode.value=t)}}}Hn.allowedChildren=[Qe];Qe.requiredContainer=Hn;Qe.allowedChildren=[qt,hn,ft,gt];const Qy=(r,e,t)=>{if(typeof r.versionString=="string"){const n=r.versionString.split(".")[0];if(parseInt(n,10)>=11)return r.highlight(t,{language:e}).value}return r.highlight(e,t).value};class Zh extends mt{static register(){P.register(qt,!0),P.register(Qe,!0),P.register(Hn,!0)}constructor(e,t){if(super(e,t),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((n,s)=>{let{key:i}=s;return n[i]=!0,n},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(P.events.SCROLL_BLOT_MOUNT,e=>{if(!(e instanceof Hn))return;const t=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(n=>{let{key:s,label:i}=n;const o=t.ownerDocument.createElement("option");o.textContent=i,o.setAttribute("value",s),t.appendChild(o)}),t.addEventListener("change",()=>{e.format(Qe.blotName,t.value),this.quill.root.focus(),this.highlight(e,!0)}),e.uiNode==null&&(e.attachUI(t),e.children.head&&(t.value=Qe.formats(e.children.head.domNode)))})}initTimer(){let e=null;this.quill.on(P.events.SCROLL_OPTIMIZE,()=>{e&&clearTimeout(e),e=setTimeout(()=>{this.highlight(),e=null},this.options.interval)})}highlight(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(P.sources.USER);const n=this.quill.getSelection();(e==null?this.quill.scroll.descendants(Hn):[e]).forEach(i=>{i.highlight(this.highlightBlot,t)}),this.quill.update(P.sources.SILENT),n!=null&&this.quill.setSelection(n,P.sources.SILENT)}highlightBlot(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(t=this.languages[t]?t:"plain",t==="plain")return Ei(e).split(`
149
+ `).reduce((s,i,o)=>(o!==0&&s.insert(`
150
+ `,{[je.blotName]:t}),s.insert(i)),new re);const n=this.quill.root.ownerDocument.createElement("div");return n.classList.add(je.className),n.innerHTML=Qy(this.options.hljs,t,e),ol(this.quill.scroll,n,[(s,i)=>{const o=Fn.value(s);return o?i.compose(new re().retain(i.length(),{[qt.blotName]:o})):i}],[(s,i)=>s.data.split(`
151
+ `).reduce((o,a,l)=>(l!==0&&o.insert(`
152
+ `,{[je.blotName]:t}),o.insert(a)),i)],new WeakMap)}}Zh.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Gn=class Gn extends De{static create(e){const t=super.create();return e?t.setAttribute("data-row",e):t.setAttribute("data-row",al()),t}static formats(e){if(e.hasAttribute("data-row"))return e.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(e,t){e===Gn.blotName&&t?this.domNode.setAttribute("data-row",t):super.format(e,t)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};ee(Gn,"blotName","table"),ee(Gn,"tagName","TD");let ut=Gn;class Ft extends Or{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const e=this.children.head.formats(),t=this.children.tail.formats(),n=this.next.children.head.formats(),s=this.next.children.tail.formats();return e.table===t.table&&e.table===n.table&&e.table===s.table}return!1}optimize(e){super.optimize(e),this.children.forEach(t=>{if(t.next==null)return;const n=t.formats(),s=t.next.formats();if(n.table!==s.table){const i=this.splitAfter(t);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}ee(Ft,"blotName","table-row"),ee(Ft,"tagName","TR");class St extends Or{}ee(St,"blotName","table-body"),ee(St,"tagName","TBODY");class fn extends Or{balanceCells(){const e=this.descendants(Ft),t=e.reduce((n,s)=>Math.max(s.children.length,n),0);e.forEach(n=>{new Array(t-n.children.length).fill(0).forEach(()=>{let s;n.children.head!=null&&(s=ut.formats(n.children.head.domNode));const i=this.scroll.create(ut.blotName,s);n.appendChild(i),i.optimize()})})}cells(e){return this.rows().map(t=>t.children.at(e))}deleteColumn(e){const[t]=this.descendant(St);t==null||t.children.head==null||t.children.forEach(n=>{const s=n.children.at(e);s!=null&&s.remove()})}insertColumn(e){const[t]=this.descendant(St);t==null||t.children.head==null||t.children.forEach(n=>{const s=n.children.at(e),i=ut.formats(n.children.head.domNode),o=this.scroll.create(ut.blotName,i);n.insertBefore(o,s)})}insertRow(e){const[t]=this.descendant(St);if(t==null||t.children.head==null)return;const n=al(),s=this.scroll.create(Ft.blotName);t.children.head.children.forEach(()=>{const o=this.scroll.create(ut.blotName,n);s.appendChild(o)});const i=t.children.at(e);t.insertBefore(s,i)}rows(){const e=this.children.head;return e==null?[]:e.children.map(t=>t)}}ee(fn,"blotName","table-container"),ee(fn,"tagName","TABLE");fn.allowedChildren=[St];St.requiredContainer=fn;St.allowedChildren=[Ft];Ft.requiredContainer=St;Ft.allowedChildren=[ut];ut.requiredContainer=Ft;function al(){return`row-${Math.random().toString(36).slice(2,6)}`}class Jy extends mt{static register(){P.register(ut),P.register(Ft),P.register(St),P.register(fn)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(fn).forEach(e=>{e.balanceCells()})}deleteColumn(){const[e,,t]=this.getTable();t!=null&&(e.deleteColumn(t.cellOffset()),this.quill.update(P.sources.USER))}deleteRow(){const[,e]=this.getTable();e!=null&&(e.remove(),this.quill.update(P.sources.USER))}deleteTable(){const[e]=this.getTable();if(e==null)return;const t=e.offset();e.remove(),this.quill.update(P.sources.USER),this.quill.setSelection(t,P.sources.SILENT)}getTable(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(e==null)return[null,null,null,-1];const[t,n]=this.quill.getLine(e.index);if(t==null||t.statics.blotName!==ut.blotName)return[null,null,null,-1];const s=t.parent;return[s.parent.parent,s,t,n]}insertColumn(e){const t=this.quill.getSelection();if(!t)return;const[n,s,i]=this.getTable(t);if(i==null)return;const o=i.cellOffset();n.insertColumn(o+e),this.quill.update(P.sources.USER);let a=s.rowOffset();e===0&&(a+=1),this.quill.setSelection(t.index+a,t.length,P.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(e){const t=this.quill.getSelection();if(!t)return;const[n,s,i]=this.getTable(t);if(i==null)return;const o=s.rowOffset();n.insertRow(o+e),this.quill.update(P.sources.USER),e>0?this.quill.setSelection(t,P.sources.SILENT):this.quill.setSelection(t.index+s.children.length,t.length,P.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(e,t){const n=this.quill.getSelection();if(n==null)return;const s=new Array(e).fill(0).reduce(i=>{const o=new Array(t).fill(`
153
+ `).join("");return i.insert(o,{table:al()})},new re().retain(n.index));this.quill.updateContents(s,P.sources.USER),this.quill.setSelection(n.index,P.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(P.events.SCROLL_OPTIMIZE,e=>{e.some(t=>["TD","TR","TBODY","TABLE"].includes(t.target.tagName)?(this.quill.once(P.events.TEXT_CHANGE,(n,s,i)=>{i===P.sources.USER&&this.balanceTables()}),!0):!1)})}}const Pu=Ut("quill:toolbar");class ll extends mt{constructor(e,t){var n,s;if(super(e,t),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),eb(i,this.options.container),(s=(n=e.container)==null?void 0:n.parentNode)==null||s.insertBefore(i,e.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){Pu.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var a;const o=(a=this.options.handlers)==null?void 0:a[i];o&&this.addHandler(i,o)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(P.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(e,t){this.handlers[e]=t}attach(e){let t=Array.from(e.classList).find(s=>s.indexOf("ql-")===0);if(!t)return;if(t=t.slice(3),e.tagName==="BUTTON"&&e.setAttribute("type","button"),this.handlers[t]==null&&this.quill.scroll.query(t)==null){Pu.warn("ignoring attaching to nonexistent format",t,e);return}const n=e.tagName==="SELECT"?"change":"click";e.addEventListener(n,s=>{let i;if(e.tagName==="SELECT"){if(e.selectedIndex<0)return;const a=e.options[e.selectedIndex];a.hasAttribute("selected")?i=!1:i=a.value||!1}else e.classList.contains("ql-active")?i=!1:i=e.value||!e.hasAttribute("value"),s.preventDefault();this.quill.focus();const[o]=this.quill.selection.getRange();if(this.handlers[t]!=null)this.handlers[t].call(this,i);else if(this.quill.scroll.query(t).prototype instanceof We){if(i=prompt(`Enter ${t}`),!i)return;this.quill.updateContents(new re().retain(o.index).delete(o.length).insert({[t]:i}),P.sources.USER)}else this.quill.format(t,i,P.sources.USER);this.update(o)}),this.controls.push([t,e])}update(e){const t=e==null?{}:this.quill.getFormat(e);this.controls.forEach(n=>{const[s,i]=n;if(i.tagName==="SELECT"){let o=null;if(e==null)o=null;else if(t[s]==null)o=i.querySelector("option[selected]");else if(!Array.isArray(t[s])){let a=t[s];typeof a=="string"&&(a=a.replace(/"/g,'\\"')),o=i.querySelector(`option[value="${a}"]`)}o==null?(i.value="",i.selectedIndex=-1):o.selected=!0}else if(e==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const o=t[s],a=o===i.getAttribute("value")||o!=null&&o.toString()===i.getAttribute("value")||o==null&&!i.getAttribute("value");i.classList.toggle("ql-active",a),i.setAttribute("aria-pressed",a.toString())}else{const o=t[s]!=null;i.classList.toggle("ql-active",o),i.setAttribute("aria-pressed",o.toString())}})}}ll.DEFAULTS={};function Bu(r,e,t){const n=document.createElement("button");n.setAttribute("type","button"),n.classList.add(`ql-${e}`),n.setAttribute("aria-pressed","false"),t!=null?(n.value=t,n.setAttribute("aria-label",`${e}: ${t}`)):n.setAttribute("aria-label",e),r.appendChild(n)}function eb(r,e){Array.isArray(e[0])||(e=[e]),e.forEach(t=>{const n=document.createElement("span");n.classList.add("ql-formats"),t.forEach(s=>{if(typeof s=="string")Bu(n,s);else{const i=Object.keys(s)[0],o=s[i];Array.isArray(o)?tb(n,i,o):Bu(n,i,o)}}),r.appendChild(n)})}function tb(r,e,t){const n=document.createElement("select");n.classList.add(`ql-${e}`),t.forEach(s=>{const i=document.createElement("option");s!==!1?i.setAttribute("value",String(s)):i.setAttribute("selected","selected"),n.appendChild(i)}),r.appendChild(n)}ll.DEFAULTS={container:null,handlers:{clean(){const r=this.quill.getSelection();if(r!=null)if(r.length===0){const e=this.quill.getFormat();Object.keys(e).forEach(t=>{this.quill.scroll.query(t,ne.INLINE)!=null&&this.quill.format(t,!1,P.sources.USER)})}else this.quill.removeFormat(r.index,r.length,P.sources.USER)},direction(r){const{align:e}=this.quill.getFormat();r==="rtl"&&e==null?this.quill.format("align","right",P.sources.USER):!r&&e==="right"&&this.quill.format("align",!1,P.sources.USER),this.quill.format("direction",r,P.sources.USER)},indent(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e),n=parseInt(t.indent||0,10);if(r==="+1"||r==="-1"){let s=r==="+1"?1:-1;t.direction==="rtl"&&(s*=-1),this.quill.format("indent",n+s,P.sources.USER)}},link(r){r===!0&&(r=prompt("Enter link URL:")),this.quill.format("link",r,P.sources.USER)},list(r){const e=this.quill.getSelection(),t=this.quill.getFormat(e);r==="check"?t.list==="checked"||t.list==="unchecked"?this.quill.format("list",!1,P.sources.USER):this.quill.format("list","unchecked",P.sources.USER):this.quill.format("list",r,P.sources.USER)}}};const rb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',nb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',sb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',ib='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',ob='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',ab='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',lb='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',ub='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',qu='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',cb='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',hb='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',db='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',fb='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',pb='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',gb='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',mb='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.65186,12.30664a2.6742,2.6742,0,0,1-2.915,2.68457,3.96592,3.96592,0,0,1-2.25537-.6709.56007.56007,0,0,1-.13232-.83594L11.64648,13c.209-.34082.48389-.36328.82471-.1543a2.32654,2.32654,0,0,0,1.12256.33008c.71484,0,1.12207-.35156,1.12207-.78125,0-.61523-.61621-.86816-1.46338-.86816H13.2085a.65159.65159,0,0,1-.68213-.41895l-.05518-.10937a.67114.67114,0,0,1,.14307-.78125l.71533-.86914a8.55289,8.55289,0,0,1,.68213-.7373V8.58887a3.93913,3.93913,0,0,1-.748.05469H11.9873a.54085.54085,0,0,1-.605-.60547V7.59863a.54085.54085,0,0,1,.605-.60547h3.75146a.53773.53773,0,0,1,.60547.59375v.17676a1.03723,1.03723,0,0,1-.27539.748L14.74854,10.0293A2.31132,2.31132,0,0,1,16.65186,12.30664ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',vb='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm7.05371,7.96582v.38477c0,.39648-.165.60547-.46191.60547h-.47314v1.29785a.54085.54085,0,0,1-.605.60547h-.69336a.54085.54085,0,0,1-.605-.60547V12.95605H11.333a.5412.5412,0,0,1-.60547-.60547v-.15332a1.199,1.199,0,0,1,.22021-.748l2.56348-4.05957a.7819.7819,0,0,1,.72607-.39648h1.27637a.54085.54085,0,0,1,.605.60547v3.7627h.33008A.54055.54055,0,0,1,17.05371,11.96582ZM14.28125,8.7207h-.022a4.18969,4.18969,0,0,1-.38525.81348l-1.188,1.80469v.02246h1.5293V9.60059A7.04058,7.04058,0,0,1,14.28125,8.7207Z"/></svg>',yb='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.74023,12.18555a2.75131,2.75131,0,0,1-2.91553,2.80566,3.908,3.908,0,0,1-2.25537-.68164.54809.54809,0,0,1-.13184-.8252L11.73438,13c.209-.34082.48389-.36328.8252-.1543a2.23757,2.23757,0,0,0,1.1001.33008,1.01827,1.01827,0,0,0,1.1001-.96777c0-.61621-.53906-.97949-1.25439-.97949a2.15554,2.15554,0,0,0-.64893.09961,1.15209,1.15209,0,0,1-.814.01074l-.12109-.04395a.64116.64116,0,0,1-.45117-.71484l.231-3.00391a.56666.56666,0,0,1,.62744-.583H15.541a.54085.54085,0,0,1,.605.60547v.43945a.54085.54085,0,0,1-.605.60547H13.41748l-.04395.72559a1.29306,1.29306,0,0,1-.04395.30859h.022a2.39776,2.39776,0,0,1,.57227-.07715A2.53266,2.53266,0,0,1,16.74023,12.18555ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',bb='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M14.51758,9.64453a1.85627,1.85627,0,0,0-1.24316.38477H13.252a1.73532,1.73532,0,0,1,1.72754-1.4082,2.66491,2.66491,0,0,1,.5498.06641c.35254.05469.57227.01074.70508-.40723l.16406-.5166a.53393.53393,0,0,0-.373-.75977,4.83723,4.83723,0,0,0-1.17773-.14258c-2.43164,0-3.7627,2.17773-3.7627,4.43359,0,2.47559,1.60645,3.69629,3.19043,3.69629A2.70585,2.70585,0,0,0,16.96,12.19727,2.43861,2.43861,0,0,0,14.51758,9.64453Zm-.23047,3.58691c-.67187,0-1.22168-.81445-1.22168-1.45215,0-.47363.30762-.583.72559-.583.96875,0,1.27734.59375,1.27734,1.12207A.82182.82182,0,0,1,14.28711,13.23145ZM10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Z"/></svg>',Eb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',wb='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',xb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',_b='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',Sb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',Ab='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',Cb='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',Tb='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',kb='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',Nb='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',Ib='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',Rb='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',Ob='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',Lb='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',es={align:{"":rb,center:nb,right:sb,justify:ib},background:ob,blockquote:ab,bold:lb,clean:ub,code:qu,"code-block":qu,color:cb,direction:{"":hb,rtl:db},formula:fb,header:{1:pb,2:gb,3:mb,4:vb,5:yb,6:bb},italic:Eb,image:wb,indent:{"+1":xb,"-1":_b},link:Sb,list:{bullet:Ab,check:Cb,ordered:Tb},script:{sub:kb,super:Nb},strike:Ib,table:Rb,underline:Ob,video:Lb},Mb='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let Fu=0;function ju(r,e){r.setAttribute(e,`${r.getAttribute(e)!=="true"}`)}class xi{constructor(e){this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",t=>{switch(t.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),t.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),ju(this.label,"aria-expanded"),ju(this.options,"aria-hidden")}buildItem(e){const t=document.createElement("span");t.tabIndex="0",t.setAttribute("role","button"),t.classList.add("ql-picker-item");const n=e.getAttribute("value");return n&&t.setAttribute("data-value",n),e.textContent&&t.setAttribute("data-label",e.textContent),t.addEventListener("click",()=>{this.selectItem(t,!0)}),t.addEventListener("keydown",s=>{switch(s.key){case"Enter":this.selectItem(t,!0),s.preventDefault();break;case"Escape":this.escape(),s.preventDefault();break}}),t}buildLabel(){const e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=Mb,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}buildOptions(){const e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id=`ql-picker-options-${Fu}`,Fu+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,Array.from(this.select.options).forEach(t=>{const n=this.buildItem(t);e.appendChild(n),t.selected===!0&&this.selectItem(n)}),this.container.appendChild(e)}buildPicker(){Array.from(this.select.attributes).forEach(e=>{this.container.setAttribute(e.name,e.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=this.container.querySelector(".ql-selected");e!==n&&(n!=null&&n.classList.remove("ql-selected"),e!=null&&(e.classList.add("ql-selected"),this.select.selectedIndex=Array.from(e.parentNode.children).indexOf(e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let e;if(this.select.selectedIndex>-1){const n=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(n)}else this.selectItem(null);const t=e!=null&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",t)}}class Xh extends xi{constructor(e,t){super(e),this.label.innerHTML=t,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(n=>{n.classList.add("ql-primary")})}buildItem(e){const t=super.buildItem(e);return t.style.backgroundColor=e.getAttribute("value")||"",t}selectItem(e,t){super.selectItem(e,t);const n=this.label.querySelector(".ql-color-label"),s=e&&e.getAttribute("data-value")||"";n&&(n.tagName==="line"?n.style.stroke=s:n.style.fill=s)}}class Qh extends xi{constructor(e,t){super(e),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(n=>{n.innerHTML=t[n.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(e,t){super.selectItem(e,t);const n=e||this.defaultItem;if(n!=null){if(this.label.innerHTML===n.innerHTML)return;this.label.innerHTML=n.innerHTML}}}const Db=r=>{const{overflowY:e}=getComputedStyle(r,null);return e!=="visible"&&e!=="clip"};class Jh{constructor(e,t){this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,Db(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(e){const t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=`${t}px`,this.root.style.top=`${n}px`,this.root.classList.remove("ql-flip");const s=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let o=0;if(i.right>s.right&&(o=s.right-i.right,this.root.style.left=`${t+o}px`),i.left<s.left&&(o=s.left-i.left,this.root.style.left=`${t+o}px`),i.bottom>s.bottom){const a=i.bottom-i.top,l=e.bottom-e.top+a;this.root.style.top=`${n-l}px`,this.root.classList.add("ql-flip")}return o}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const Pb=[!1,"center","right","justify"],Bb=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],qb=[!1,"serif","monospace"],Fb=["1","2","3",!1],jb=["small",!1,"large","huge"];class as extends dn{constructor(e,t){super(e,t);const n=s=>{if(!document.body.contains(e.root)){document.body.removeEventListener("click",n);return}this.tooltip!=null&&!this.tooltip.root.contains(s.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(s.target)||i.close()})};e.emitter.listenDOM("click",document.body,n)}addModule(e){const t=super.addModule(e);return e==="toolbar"&&this.extendToolbar(t),t}buildButtons(e,t){Array.from(e).forEach(n=>{(n.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),t[i]!=null))if(i==="direction")n.innerHTML=t[i][""]+t[i].rtl;else if(typeof t[i]=="string")n.innerHTML=t[i];else{const o=n.value||"";o!=null&&t[i][o]&&(n.innerHTML=t[i][o])}})})}buildPickers(e,t){this.pickers=Array.from(e).map(s=>{if(s.classList.contains("ql-align")&&(s.querySelector("option")==null&&Mn(s,Pb),typeof t.align=="object"))return new Qh(s,t.align);if(s.classList.contains("ql-background")||s.classList.contains("ql-color")){const i=s.classList.contains("ql-background")?"background":"color";return s.querySelector("option")==null&&Mn(s,Bb,i==="background"?"#ffffff":"#000000"),new Xh(s,t[i])}return s.querySelector("option")==null&&(s.classList.contains("ql-font")?Mn(s,qb):s.classList.contains("ql-header")?Mn(s,Fb):s.classList.contains("ql-size")&&Mn(s,jb)),new xi(s)});const n=()=>{this.pickers.forEach(s=>{s.update()})};this.quill.on(te.events.EDITOR_CHANGE,n)}}as.DEFAULTS=nr({},dn.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let r=this.container.querySelector("input.ql-image[type=file]");r==null&&(r=document.createElement("input"),r.setAttribute("type","file"),r.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),r.classList.add("ql-image"),r.addEventListener("change",()=>{const e=this.quill.getSelection(!0);this.quill.uploader.upload(e,r.files),r.value=""}),this.container.appendChild(r)),r.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class ed extends Jh{constructor(e,t){super(e,t),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",e=>{e.key==="Enter"?(this.save(),e.preventDefault()):e.key==="Escape"&&(this.cancel(),e.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;t!=null?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const n=this.quill.getBounds(this.quill.selection.savedRange);n!=null&&this.position(n),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${e}`)||""),this.root.setAttribute("data-mode",e)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:e}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:t}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,te.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,te.sources.USER)),this.quill.root.scrollTop=t;break}case"video":e=$b(e);case"formula":{if(!e)break;const t=this.quill.getSelection(!0);if(t!=null){const n=t.index+t.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),e,te.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(n+1," ",te.sources.USER),this.quill.setSelection(n+2,te.sources.USER)}break}}this.textbox.value="",this.hide()}}function $b(r){let e=r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||r.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?`${e[1]||"https"}://www.youtube.com/embed/${e[2]}?showinfo=0`:(e=r.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${e[1]||"https"}://player.vimeo.com/video/${e[2]}/`:r}function Mn(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;e.forEach(n=>{const s=document.createElement("option");n===t?s.setAttribute("selected","selected"):s.setAttribute("value",String(n)),r.appendChild(s)})}const Vb=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class td extends ed{constructor(e,t){super(e,t),this.quill.on(te.events.EDITOR_CHANGE,(n,s,i,o)=>{if(n===te.events.SELECTION_CHANGE)if(s!=null&&s.length>0&&o===te.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const a=this.quill.getLines(s.index,s.length);if(a.length===1){const l=this.quill.getBounds(s);l!=null&&this.position(l)}else{const l=a[a.length-1],c=this.quill.getIndex(l),h=Math.min(l.length()-1,s.index+s.length-c),g=this.quill.getBounds(new Cr(c,h));g!=null&&this.position(g)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(te.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const e=this.quill.getSelection();if(e!=null){const t=this.quill.getBounds(e);t!=null&&this.position(t)}},1)})}cancel(){this.show()}position(e){const t=super.position(e),n=this.root.querySelector(".ql-tooltip-arrow");return n.style.marginLeft="",t!==0&&(n.style.marginLeft=`${-1*t-n.offsetWidth/2}px`),t}}ee(td,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class rd extends as{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=Vb),super(e,t),this.quill.container.classList.add("ql-bubble")}extendToolbar(e){this.tooltip=new td(this.quill,this.options.bounds),e.container!=null&&(this.tooltip.root.appendChild(e.container),this.buildButtons(e.container.querySelectorAll("button"),es),this.buildPickers(e.container.querySelectorAll("select"),es))}}rd.DEFAULTS=nr({},as.DEFAULTS,{modules:{toolbar:{handlers:{link(r){r?this.quill.theme.tooltip.edit():this.quill.format("link",!1,P.sources.USER)}}}}});const Ub=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class nd extends ed{constructor(){super(...arguments);ee(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",t=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),t.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",t=>{if(this.linkRange!=null){const n=this.linkRange;this.restoreFocus(),this.quill.formatText(n,"link",!1,te.sources.USER),delete this.linkRange}t.preventDefault(),this.hide()}),this.quill.on(te.events.SELECTION_CHANGE,(t,n,s)=>{if(t!=null){if(t.length===0&&s===te.sources.USER){const[i,o]=this.quill.scroll.descendant(Jt,t.index);if(i!=null){this.linkRange=new Cr(t.index-o,i.length());const a=Jt.formats(i.domNode);this.preview.textContent=a,this.preview.setAttribute("href",a),this.show();const l=this.quill.getBounds(this.linkRange);l!=null&&this.position(l);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}ee(nd,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class sd extends as{constructor(e,t){t.modules.toolbar!=null&&t.modules.toolbar.container==null&&(t.modules.toolbar.container=Ub),super(e,t),this.quill.container.classList.add("ql-snow")}extendToolbar(e){e.container!=null&&(e.container.classList.add("ql-snow"),this.buildButtons(e.container.querySelectorAll("button"),es),this.buildPickers(e.container.querySelectorAll("select"),es),this.tooltip=new nd(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(t,n)=>{e.handlers.link.call(e,!n.format.link)}))}}sd.DEFAULTS=nr({},as.DEFAULTS,{modules:{toolbar:{handlers:{link(r){if(r){const e=this.quill.getSelection();if(e==null||e.length===0)return;let t=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(t)&&t.indexOf("mailto:")!==0&&(t=`mailto:${t}`);const{tooltip:n}=this.quill.theme;n.edit("link",t)}else this.quill.format("link",!1,P.sources.USER)}}}}});P.register({"attributors/attribute/direction":Bh,"attributors/class/align":Mh,"attributors/class/background":ay,"attributors/class/color":oy,"attributors/class/direction":qh,"attributors/class/font":$h,"attributors/class/size":Uh,"attributors/style/align":Dh,"attributors/style/background":rl,"attributors/style/color":tl,"attributors/style/direction":Fh,"attributors/style/font":Vh,"attributors/style/size":Hh},!0);P.register({"formats/align":Mh,"formats/direction":qh,"formats/indent":Xy,"formats/background":rl,"formats/color":tl,"formats/font":$h,"formats/size":Uh,"formats/blockquote":wa,"formats/code-block":je,"formats/header":xa,"formats/list":os,"formats/bold":Jn,"formats/code":nl,"formats/italic":_a,"formats/link":Jt,"formats/script":Sa,"formats/strike":Aa,"formats/underline":Ca,"formats/formula":Gs,"formats/image":Ta,"formats/video":Ks,"modules/syntax":Zh,"modules/table":Jy,"modules/toolbar":ll,"themes/bubble":rd,"themes/snow":sd,"ui/icons":es,"ui/picker":xi,"ui/icon-picker":Qh,"ui/color-picker":Xh,"ui/tooltip":Jh},!0);var _i=class extends C.default.Component{constructor(r){super(r),this.editingAreaRef=Ke.createRef(),this.containerRef=Ke.createRef(),this.dirtyProps=["modules","formats","bounds","theme","children"],this.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp","useSemanticHTML"],this.state={generation:0},this.selection=null,this.onEditorChange=(t,n,s,i)=>{var o,a;t==="text-change"?(o=this.onEditorChangeText)==null||o.call(this,this.props.useSemanticHTML!==!1?this.editor.getSemanticHTML():this.editor.root.innerHTML,n,i,this.unprivilegedEditor):t==="selection-change"&&((a=this.onEditorChangeSelection)==null||a.call(this,n,i,this.unprivilegedEditor))};const e=this.isControlled()?r.value:r.defaultValue;this.value=e??""}validateProps(r){if(C.default.Children.count(r.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(C.default.Children.count(r.children)){const e=C.default.Children.only(r.children);if((e==null?void 0:e.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&r.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")}shouldComponentUpdate(r,e){if(this.validateProps(r),!this.editor||this.state.generation!==e.generation)return!0;if("value"in r){const t=this.getEditorContents(),n=r.value??"";this.isEqualValue(n,t)||this.setEditorContents(this.editor,n)}return r.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,r.readOnly),[...this.cleanProps,...this.dirtyProps].some(t=>!Zt(r[t],this.props[t]))}shouldComponentRegenerate(r){return this.dirtyProps.some(e=>!Zt(r[e],this.props[e]))}componentDidMount(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())}componentWillUnmount(){this.destroyEditor()}componentDidUpdate(r,e){if(this.editor&&this.shouldComponentRegenerate(r)){const t=this.editor.getContents(),n=this.editor.getSelection();this.regenerationSnapshot={delta:t,selection:n},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.editor&&r.placeholder!==this.props.placeholder&&(this.editor.root.dataset.placeholder=this.props.placeholder||""),this.state.generation!==e.generation){const{delta:t,selection:n}=this.regenerationSnapshot;delete this.regenerationSnapshot,this.instantiateEditor();const s=this.editor;s.setContents(t),$u(()=>this.setEditorSelection(s,n))}}instantiateEditor(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())}destroyEditor(){var t,n;if(!this.editor)return;this.unhookEditor(this.editor);const r=(t=this.props.modules)==null?void 0:t.toolbar;if(!(typeof r=="object"&&r&&"container"in r&&typeof r.container=="string"||typeof r=="string")){const s=(n=this.containerRef.current)==null?void 0:n.querySelector(".ql-toolbar");s&&s.remove()}delete this.editor}isControlled(){return"value"in this.props}getEditorConfig(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,tabIndex:this.props.tabIndex,theme:this.props.theme}}getEditor(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor}createEditor(r,e){const t=new P(r,e);return e.tabIndex!=null&&this.setEditorTabIndex(t,e.tabIndex),this.hookEditor(t),t}hookEditor(r){this.unprivilegedEditor=this.makeUnprivilegedEditor(r),r.on("editor-change",this.onEditorChange)}unhookEditor(r){r.off("editor-change",this.onEditorChange)}getEditorContents(){return this.value}getEditorSelection(){return this.selection}isDelta(r){return r&&r.ops}isEqualValue(r,e){return this.isDelta(r)&&this.isDelta(e)?Zt(r.ops,e.ops):Zt(r,e)}setEditorContents(r,e){this.value=e;const t=this.getEditorSelection();typeof e=="string"?r.setContents(r.clipboard.convert({html:e})):r.setContents(e),$u(()=>this.setEditorSelection(r,t))}setEditorSelection(r,e){if(this.selection=e,e){const t=r.getLength();e.index=Math.max(0,Math.min(e.index,t-1)),e.length=Math.max(0,Math.min(e.length,t-1-e.index)),r.setSelection(e)}}setEditorTabIndex(r,e){var t;(t=r==null?void 0:r.scroll)!=null&&t.domNode&&(r.scroll.domNode.tabIndex=e)}setEditorReadOnly(r,e){e?r.disable():r.enable()}makeUnprivilegedEditor(r){const e=r;return{getHTML:()=>e.root.innerHTML,getSemanticHTML:e.getSemanticHTML.bind(e),getLength:e.getLength.bind(e),getText:e.getText.bind(e),getContents:e.getContents.bind(e),getSelection:e.getSelection.bind(e),getBounds:e.getBounds.bind(e)}}getEditingArea(){const r=this.editingAreaRef.current;if(!r)throw new Error("Cannot find element for editing area");if(r.nodeType===3)throw new Error("Editing area cannot be a text node");return r}renderEditingArea(){const{children:r,preserveWhitespace:e}=this.props,{generation:t}=this.state;return C.default.Children.count(r)?C.default.cloneElement(C.default.Children.only(r),{key:t,ref:this.editingAreaRef}):e?I.jsx("pre",{ref:this.editingAreaRef},t):I.jsx("div",{ref:this.editingAreaRef},t)}render(){return I.jsx("div",{ref:this.containerRef,id:this.props.id,style:this.props.style,className:`quill ${this.props.className??""}`,onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp,children:this.renderEditingArea()},this.state.generation)}onEditorChangeText(r,e,t,n){var i,o;if(!this.editor)return;const s=this.isDelta(this.value)?n.getContents():this.props.useSemanticHTML!==!1?n.getSemanticHTML():n.getHTML();s!==this.getEditorContents()&&(this.lastDeltaChangeSet=e,this.value=s,(o=(i=this.props).onChange)==null||o.call(i,r,e,t,n))}onEditorChangeSelection(r,e,t){var o,a,l,c,h,g;if(!this.editor)return;const n=this.getEditorSelection(),s=!n&&r,i=n&&!r;Zt(r,n)||(this.selection=r,(a=(o=this.props).onChangeSelection)==null||a.call(o,r,e,t),s?(c=(l=this.props).onFocus)==null||c.call(l,r,e,t):i&&((g=(h=this.props).onBlur)==null||g.call(h,n,e,t)))}focus(){this.editor&&this.editor.focus()}blur(){this.editor&&(this.selection=null,this.editor.blur())}};_i.displayName="React Quill";_i.Quill=P;_i.defaultProps={theme:"snow",modules:{},readOnly:!1};function $u(r){Promise.resolve().then(r)}var Hb=_i;const zb=Da.cva(Ce.cn("quill-editor w-full rounded-lg bg-transparent transition-all","border border-border-alpha-strong [&_.ql-toolbar]:bg-muted/50 [&_.ql-editor.ql-blank::before]:text-body-sm-light","focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-bg focus-within:ring-offset-2 focus-within:ring-offset-background","disabled:cursor-not-allowed disabled:opacity-50"),{variants:{variant:{default:["focus-within:ring-ring focus-within:ring-item-primary","[&_.ql-editor.ql-blank::before]:text-secondary!"],failure:["border-destructive text-destructive","focus-within:ring-destructive","[&_.ql-editor.ql-blank::before]:text-destructive/60!"]}},defaultVariants:{variant:"default"}});function id({containerProps:r,className:e,variant:t,...n}){return I.jsx("div",{...r,className:Ce.cn(zb({variant:t}),"block p-0",e),children:I.jsx(Hb,{theme:"snow",...n})})}id.displayName="HtmlEditor";const Si=Da.cva(Ce.cn("h-10 w-full rounded-lg px-2.5 py-2 flex border border-border-alpha-strong","placeholder:text-secondary placeholder:text-body-sm-regular disabled:cursor-not-allowed disabled:opacity-50","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-bg focus-visible:ring-offset-2 focus-visible:ring-ring"),{variants:{variant:{default:"focus-visible:ring-item-primary",failure:"focus-visible:ring-item-destructive placeholder:!text-item-destructive border-item-destructive text-destructive!"}},defaultVariants:{variant:"default"}}),od=C.forwardRef(({className:r,type:e,variant:t,...n},s)=>{const[i,o]=Ke.useState(!1),[a,l]=Ke.useState(!1);return Ke.useEffect(()=>{o(e==="password")},[e]),I.jsxs("div",{className:"relative",children:[I.jsx("input",{type:a?"text":e,className:Ce.cn(Si({variant:t}),r,i&&"pr-10"),ref:s,...n}),i&&I.jsx(Bf.Button,{type:"button",size:"icon",variant:"tertiary",className:"absolute top-1 right-1 size-8 cursor-pointer rounded-md p-2 !ring-0 !ring-offset-0",onClick:()=>{l(!a)},children:a?I.jsx(Xs.Xt,{}):I.jsx(Xs.qt,{})})]})});od.displayName="Input";function sr(r){return typeof r=="string"||r instanceof String}function Vu(r){var e;return typeof r=="object"&&r!=null&&(r==null||(e=r.constructor)==null?void 0:e.name)==="Object"}function ad(r,e){return Array.isArray(e)?ad(r,(t,n)=>e.includes(n)):Object.entries(r).reduce((t,n)=>{let[s,i]=n;return e(i,s)&&(t[s]=i),t},{})}const oe={NONE:"NONE",LEFT:"LEFT",FORCE_LEFT:"FORCE_LEFT",RIGHT:"RIGHT",FORCE_RIGHT:"FORCE_RIGHT"};function Gb(r){switch(r){case oe.LEFT:return oe.FORCE_LEFT;case oe.RIGHT:return oe.FORCE_RIGHT;default:return r}}function $o(r){return r.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}function si(r,e){if(e===r)return!0;const t=Array.isArray(e),n=Array.isArray(r);let s;if(t&&n){if(e.length!=r.length)return!1;for(s=0;s<e.length;s++)if(!si(e[s],r[s]))return!1;return!0}if(t!=n)return!1;if(e&&r&&typeof e=="object"&&typeof r=="object"){const i=e instanceof Date,o=r instanceof Date;if(i&&o)return e.getTime()==r.getTime();if(i!=o)return!1;const a=e instanceof RegExp,l=r instanceof RegExp;if(a&&l)return e.toString()==r.toString();if(a!=l)return!1;const c=Object.keys(e);for(s=0;s<c.length;s++)if(!Object.prototype.hasOwnProperty.call(r,c[s]))return!1;for(s=0;s<c.length;s++)if(!si(r[c[s]],e[c[s]]))return!1;return!0}else if(e&&r&&typeof e=="function"&&typeof r=="function")return e.toString()===r.toString();return!1}class Kb{constructor(e){for(Object.assign(this,e);this.value.slice(0,this.startChangePos)!==this.oldValue.slice(0,this.startChangePos);)--this.oldSelection.start;if(this.insertedCount)for(;this.value.slice(this.cursorPos)!==this.oldValue.slice(this.oldSelection.end);)this.value.length-this.cursorPos<this.oldValue.length-this.oldSelection.end?++this.oldSelection.end:++this.cursorPos}get startChangePos(){return Math.min(this.cursorPos,this.oldSelection.start)}get insertedCount(){return this.cursorPos-this.startChangePos}get inserted(){return this.value.substr(this.startChangePos,this.insertedCount)}get removedCount(){return Math.max(this.oldSelection.end-this.startChangePos||this.oldValue.length-this.value.length,0)}get removed(){return this.oldValue.substr(this.startChangePos,this.removedCount)}get head(){return this.value.substring(0,this.startChangePos)}get tail(){return this.value.substring(this.startChangePos+this.insertedCount)}get removeDirection(){return!this.removedCount||this.insertedCount?oe.NONE:(this.oldSelection.end===this.cursorPos||this.oldSelection.start===this.cursorPos)&&this.oldSelection.end===this.oldSelection.start?oe.RIGHT:oe.LEFT}}function ce(r,e){return new ce.InputMask(r,e)}function ld(r){if(r==null)throw new Error("mask property should be defined");return r instanceof RegExp?ce.MaskedRegExp:sr(r)?ce.MaskedPattern:r===Date?ce.MaskedDate:r===Number?ce.MaskedNumber:Array.isArray(r)||r===Array?ce.MaskedDynamic:ce.Masked&&r.prototype instanceof ce.Masked?r:ce.Masked&&r instanceof ce.Masked?r.constructor:r instanceof Function?ce.MaskedFunction:(console.warn("Mask not found for mask",r),ce.Masked)}function ts(r){if(!r)throw new Error("Options in not defined");if(ce.Masked){if(r.prototype instanceof ce.Masked)return{mask:r};const{mask:e=void 0,...t}=r instanceof ce.Masked?{mask:r}:Vu(r)&&r.mask instanceof ce.Masked?r:{};if(e){const n=e.mask;return{...ad(e,(s,i)=>!i.startsWith("_")),mask:e.constructor,_mask:n,...t}}}return Vu(r)?{...r}:{mask:r}}function jt(r){if(ce.Masked&&r instanceof ce.Masked)return r;const e=ts(r),t=ld(e.mask);if(!t)throw new Error("Masked class is not found for provided mask "+e.mask+", appropriate module needs to be imported manually before creating mask.");return e.mask===t&&delete e.mask,e._mask&&(e.mask=e._mask,delete e._mask),new t(e)}ce.createMask=jt;class ul{get selectionStart(){let e;try{e=this._unsafeSelectionStart}catch{}return e??this.value.length}get selectionEnd(){let e;try{e=this._unsafeSelectionEnd}catch{}return e??this.value.length}select(e,t){if(!(e==null||t==null||e===this.selectionStart&&t===this.selectionEnd))try{this._unsafeSelect(e,t)}catch{}}get isActive(){return!1}}ce.MaskElement=ul;const Uu=90,Wb=89;class Ai extends ul{constructor(e){super(),this.input=e,this._onKeydown=this._onKeydown.bind(this),this._onInput=this._onInput.bind(this),this._onBeforeinput=this._onBeforeinput.bind(this),this._onCompositionEnd=this._onCompositionEnd.bind(this)}get rootElement(){var e,t,n;return(e=(t=(n=this.input).getRootNode)==null?void 0:t.call(n))!=null?e:document}get isActive(){return this.input===this.rootElement.activeElement}bindEvents(e){this.input.addEventListener("keydown",this._onKeydown),this.input.addEventListener("input",this._onInput),this.input.addEventListener("beforeinput",this._onBeforeinput),this.input.addEventListener("compositionend",this._onCompositionEnd),this.input.addEventListener("drop",e.drop),this.input.addEventListener("click",e.click),this.input.addEventListener("focus",e.focus),this.input.addEventListener("blur",e.commit),this._handlers=e}_onKeydown(e){if(this._handlers.redo&&(e.keyCode===Uu&&e.shiftKey&&(e.metaKey||e.ctrlKey)||e.keyCode===Wb&&e.ctrlKey))return e.preventDefault(),this._handlers.redo(e);if(this._handlers.undo&&e.keyCode===Uu&&(e.metaKey||e.ctrlKey))return e.preventDefault(),this._handlers.undo(e);e.isComposing||this._handlers.selectionChange(e)}_onBeforeinput(e){if(e.inputType==="historyUndo"&&this._handlers.undo)return e.preventDefault(),this._handlers.undo(e);if(e.inputType==="historyRedo"&&this._handlers.redo)return e.preventDefault(),this._handlers.redo(e)}_onCompositionEnd(e){this._handlers.input(e)}_onInput(e){e.isComposing||this._handlers.input(e)}unbindEvents(){this.input.removeEventListener("keydown",this._onKeydown),this.input.removeEventListener("input",this._onInput),this.input.removeEventListener("beforeinput",this._onBeforeinput),this.input.removeEventListener("compositionend",this._onCompositionEnd),this.input.removeEventListener("drop",this._handlers.drop),this.input.removeEventListener("click",this._handlers.click),this.input.removeEventListener("focus",this._handlers.focus),this.input.removeEventListener("blur",this._handlers.commit),this._handlers={}}}ce.HTMLMaskElement=Ai;class Yb extends Ai{constructor(e){super(e),this.input=e}get _unsafeSelectionStart(){return this.input.selectionStart!=null?this.input.selectionStart:this.value.length}get _unsafeSelectionEnd(){return this.input.selectionEnd}_unsafeSelect(e,t){this.input.setSelectionRange(e,t)}get value(){return this.input.value}set value(e){this.input.value=e}}ce.HTMLMaskElement=Ai;class ud extends Ai{get _unsafeSelectionStart(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,s=t&&t.focusOffset;return s==null||n==null||n<s?n:s}get _unsafeSelectionEnd(){const e=this.rootElement,t=e.getSelection&&e.getSelection(),n=t&&t.anchorOffset,s=t&&t.focusOffset;return s==null||n==null||n>s?n:s}_unsafeSelect(e,t){if(!this.rootElement.createRange)return;const n=this.rootElement.createRange();n.setStart(this.input.firstChild||this.input,e),n.setEnd(this.input.lastChild||this.input,t);const s=this.rootElement,i=s.getSelection&&s.getSelection();i&&(i.removeAllRanges(),i.addRange(n))}get value(){return this.input.textContent||""}set value(e){this.input.textContent=e}}ce.HTMLContenteditableMaskElement=ud;class Ci{constructor(){this.states=[],this.currentIndex=0}get currentState(){return this.states[this.currentIndex]}get isEmpty(){return this.states.length===0}push(e){this.currentIndex<this.states.length-1&&(this.states.length=this.currentIndex+1),this.states.push(e),this.states.length>Ci.MAX_LENGTH&&this.states.shift(),this.currentIndex=this.states.length-1}go(e){return this.currentIndex=Math.min(Math.max(this.currentIndex+e,0),this.states.length-1),this.currentState}undo(){return this.go(-1)}redo(){return this.go(1)}clear(){this.states.length=0,this.currentIndex=0}}Ci.MAX_LENGTH=100;class Zb{constructor(e,t){this.el=e instanceof ul?e:e.isContentEditable&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"?new ud(e):new Yb(e),this.masked=jt(t),this._listeners={},this._value="",this._unmaskedValue="",this._rawInputValue="",this.history=new Ci,this._saveSelection=this._saveSelection.bind(this),this._onInput=this._onInput.bind(this),this._onChange=this._onChange.bind(this),this._onDrop=this._onDrop.bind(this),this._onFocus=this._onFocus.bind(this),this._onClick=this._onClick.bind(this),this._onUndo=this._onUndo.bind(this),this._onRedo=this._onRedo.bind(this),this.alignCursor=this.alignCursor.bind(this),this.alignCursorFriendly=this.alignCursorFriendly.bind(this),this._bindEvents(),this.updateValue(),this._onChange()}maskEquals(e){var t;return e==null||((t=this.masked)==null?void 0:t.maskEquals(e))}get mask(){return this.masked.mask}set mask(e){if(this.maskEquals(e))return;if(!(e instanceof ce.Masked)&&this.masked.constructor===ld(e)){this.masked.updateOptions({mask:e});return}const t=e instanceof ce.Masked?e:jt({mask:e});t.unmaskedValue=this.masked.unmaskedValue,this.masked=t}get value(){return this._value}set value(e){this.value!==e&&(this.masked.value=e,this.updateControl("auto"))}get unmaskedValue(){return this._unmaskedValue}set unmaskedValue(e){this.unmaskedValue!==e&&(this.masked.unmaskedValue=e,this.updateControl("auto"))}get rawInputValue(){return this._rawInputValue}set rawInputValue(e){this.rawInputValue!==e&&(this.masked.rawInputValue=e,this.updateControl(),this.alignCursor())}get typedValue(){return this.masked.typedValue}set typedValue(e){this.masked.typedValueEquals(e)||(this.masked.typedValue=e,this.updateControl("auto"))}get displayValue(){return this.masked.displayValue}_bindEvents(){this.el.bindEvents({selectionChange:this._saveSelection,input:this._onInput,drop:this._onDrop,click:this._onClick,focus:this._onFocus,commit:this._onChange,undo:this._onUndo,redo:this._onRedo})}_unbindEvents(){this.el&&this.el.unbindEvents()}_fireEvent(e,t){const n=this._listeners[e];n&&n.forEach(s=>s(t))}get selectionStart(){return this._cursorChanging?this._changingCursorPos:this.el.selectionStart}get cursorPos(){return this._cursorChanging?this._changingCursorPos:this.el.selectionEnd}set cursorPos(e){!this.el||!this.el.isActive||(this.el.select(e,e),this._saveSelection())}_saveSelection(){this.displayValue!==this.el.value&&console.warn("Element value was changed outside of mask. Syncronize mask using `mask.updateValue()` to work properly."),this._selection={start:this.selectionStart,end:this.cursorPos}}updateValue(){this.masked.value=this.el.value,this._value=this.masked.value,this._unmaskedValue=this.masked.unmaskedValue,this._rawInputValue=this.masked.rawInputValue}updateControl(e){const t=this.masked.unmaskedValue,n=this.masked.value,s=this.masked.rawInputValue,i=this.displayValue,o=this.unmaskedValue!==t||this.value!==n||this._rawInputValue!==s;this._unmaskedValue=t,this._value=n,this._rawInputValue=s,this.el.value!==i&&(this.el.value=i),e==="auto"?this.alignCursor():e!=null&&(this.cursorPos=e),o&&this._fireChangeEvents(),!this._historyChanging&&(o||this.history.isEmpty)&&this.history.push({unmaskedValue:t,selection:{start:this.selectionStart,end:this.cursorPos}})}updateOptions(e){const{mask:t,...n}=e,s=!this.maskEquals(t),i=this.masked.optionsIsChanged(n);s&&(this.mask=t),i&&this.masked.updateOptions(n),(s||i)&&this.updateControl()}updateCursor(e){e!=null&&(this.cursorPos=e,this._delayUpdateCursor(e))}_delayUpdateCursor(e){this._abortUpdateCursor(),this._changingCursorPos=e,this._cursorChanging=setTimeout(()=>{this.el&&(this.cursorPos=this._changingCursorPos,this._abortUpdateCursor())},10)}_fireChangeEvents(){this._fireEvent("accept",this._inputEvent),this.masked.isComplete&&this._fireEvent("complete",this._inputEvent)}_abortUpdateCursor(){this._cursorChanging&&(clearTimeout(this._cursorChanging),delete this._cursorChanging)}alignCursor(){this.cursorPos=this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos,oe.LEFT))}alignCursorFriendly(){this.selectionStart===this.cursorPos&&this.alignCursor()}on(e,t){return this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push(t),this}off(e,t){if(!this._listeners[e])return this;if(!t)return delete this._listeners[e],this;const n=this._listeners[e].indexOf(t);return n>=0&&this._listeners[e].splice(n,1),this}_onInput(e){this._inputEvent=e,this._abortUpdateCursor();const t=new Kb({value:this.el.value,cursorPos:this.cursorPos,oldValue:this.displayValue,oldSelection:this._selection}),n=this.masked.rawInputValue,s=this.masked.splice(t.startChangePos,t.removed.length,t.inserted,t.removeDirection,{input:!0,raw:!0}).offset,i=n===this.masked.rawInputValue?t.removeDirection:oe.NONE;let o=this.masked.nearestInputPos(t.startChangePos+s,i);i!==oe.NONE&&(o=this.masked.nearestInputPos(o,oe.NONE)),this.updateControl(o),delete this._inputEvent}_onChange(){this.displayValue!==this.el.value&&this.updateValue(),this.masked.doCommit(),this.updateControl(),this._saveSelection()}_onDrop(e){e.preventDefault(),e.stopPropagation()}_onFocus(e){this.alignCursorFriendly()}_onClick(e){this.alignCursorFriendly()}_onUndo(){this._applyHistoryState(this.history.undo())}_onRedo(){this._applyHistoryState(this.history.redo())}_applyHistoryState(e){e&&(this._historyChanging=!0,this.unmaskedValue=e.unmaskedValue,this.el.select(e.selection.start,e.selection.end),this._saveSelection(),this._historyChanging=!1)}destroy(){this._unbindEvents(),this._listeners.length=0,delete this.el}}ce.InputMask=Zb;class pe{static normalize(e){return Array.isArray(e)?e:[e,new pe]}constructor(e){Object.assign(this,{inserted:"",rawInserted:"",tailShift:0,skip:!1},e)}aggregate(e){return this.inserted+=e.inserted,this.rawInserted+=e.rawInserted,this.tailShift+=e.tailShift,this.skip=this.skip||e.skip,this}get offset(){return this.tailShift+this.inserted.length}get consumed(){return!!this.rawInserted||this.skip}equals(e){return this.inserted===e.inserted&&this.tailShift===e.tailShift&&this.rawInserted===e.rawInserted&&this.skip===e.skip}}ce.ChangeDetails=pe;class xt{constructor(e,t,n){e===void 0&&(e=""),t===void 0&&(t=0),this.value=e,this.from=t,this.stop=n}toString(){return this.value}extend(e){this.value+=String(e)}appendTo(e){return e.append(this.toString(),{tail:!0}).aggregate(e._appendPlaceholder())}get state(){return{value:this.value,from:this.from,stop:this.stop}}set state(e){Object.assign(this,e)}unshift(e){if(!this.value.length||e!=null&&this.from>=e)return"";const t=this.value[0];return this.value=this.value.slice(1),t}shift(){if(!this.value.length)return"";const e=this.value[this.value.length-1];return this.value=this.value.slice(0,-1),e}}class $e{constructor(e){this._value="",this._update({...$e.DEFAULTS,...e}),this._initialized=!0}updateOptions(e){this.optionsIsChanged(e)&&this.withValueRefresh(this._update.bind(this,e))}_update(e){Object.assign(this,e)}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value}reset(){this._value=""}get value(){return this._value}set value(e){this.resolve(e,{input:!0})}resolve(e,t){t===void 0&&(t={input:!0}),this.reset(),this.append(e,t,""),this.doCommit()}get unmaskedValue(){return this.value}set unmaskedValue(e){this.resolve(e,{})}get typedValue(){return this.parse?this.parse(this.value,this):this.unmaskedValue}set typedValue(e){this.format?this.value=this.format(e,this):this.unmaskedValue=String(e)}get rawInputValue(){return this.extractInput(0,this.displayValue.length,{raw:!0})}set rawInputValue(e){this.resolve(e,{raw:!0})}get displayValue(){return this.value}get isComplete(){return!0}get isFilled(){return this.isComplete}nearestInputPos(e,t){return e}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),Math.min(this.displayValue.length,t-e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this.displayValue.slice(e,t)}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new xt(this.extractInput(e,t),e)}appendTail(e){return sr(e)&&(e=new xt(String(e))),e.appendTo(this)}_appendCharRaw(e,t){return e?(this._value+=e,new pe({inserted:e,rawInserted:e})):new pe}_appendChar(e,t,n){t===void 0&&(t={});const s=this.state;let i;if([e,i]=this.doPrepareChar(e,t),e&&(i=i.aggregate(this._appendCharRaw(e,t)),!i.rawInserted&&this.autofix==="pad")){const o=this.state;this.state=s;let a=this.pad(t);const l=this._appendCharRaw(e,t);a=a.aggregate(l),l.rawInserted||a.equals(i)?i=a:this.state=o}if(i.inserted){let o,a=this.doValidate(t)!==!1;if(a&&n!=null){const l=this.state;if(this.overwrite===!0){o=n.state;for(let h=0;h<i.rawInserted.length;++h)n.unshift(this.displayValue.length-i.tailShift)}let c=this.appendTail(n);if(a=c.rawInserted.length===n.toString().length,!(a&&c.inserted)&&this.overwrite==="shift"){this.state=l,o=n.state;for(let h=0;h<i.rawInserted.length;++h)n.shift();c=this.appendTail(n),a=c.rawInserted.length===n.toString().length}a&&c.inserted&&(this.state=l)}a||(i=new pe,this.state=s,n&&o&&(n.state=o))}return i}_appendPlaceholder(){return new pe}_appendEager(){return new pe}append(e,t,n){if(!sr(e))throw new Error("value should be string");const s=sr(n)?new xt(String(n)):n;t!=null&&t.tail&&(t._beforeTailState=this.state);let i;[e,i]=this.doPrepare(e,t);for(let o=0;o<e.length;++o){const a=this._appendChar(e[o],t,s);if(!a.rawInserted&&!this.doSkipInvalid(e[o],t,s))break;i.aggregate(a)}return(this.eager===!0||this.eager==="append")&&t!=null&&t.input&&e&&i.aggregate(this._appendEager()),s!=null&&(i.tailShift+=this.appendTail(s).tailShift),i}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),this._value=this.displayValue.slice(0,e)+this.displayValue.slice(t),new pe}withValueRefresh(e){if(this._refreshing||!this._initialized)return e();this._refreshing=!0;const t=this.rawInputValue,n=this.value,s=e();return this.rawInputValue=t,this.value&&this.value!==n&&n.indexOf(this.value)===0&&(this.append(n.slice(this.displayValue.length),{},""),this.doCommit()),delete this._refreshing,s}runIsolated(e){if(this._isolated||!this._initialized)return e(this);this._isolated=!0;const t=this.state,n=e(this);return this.state=t,delete this._isolated,n}doSkipInvalid(e,t,n){return!!this.skipInvalid}doPrepare(e,t){return t===void 0&&(t={}),pe.normalize(this.prepare?this.prepare(e,this,t):e)}doPrepareChar(e,t){return t===void 0&&(t={}),pe.normalize(this.prepareChar?this.prepareChar(e,this,t):e)}doValidate(e){return(!this.validate||this.validate(this.value,this,e))&&(!this.parent||this.parent.doValidate(e))}doCommit(){this.commit&&this.commit(this.value,this)}splice(e,t,n,s,i){n===void 0&&(n=""),s===void 0&&(s=oe.NONE),i===void 0&&(i={input:!0});const o=e+t,a=this.extractTail(o),l=this.eager===!0||this.eager==="remove";let c;l&&(s=Gb(s),c=this.extractInput(0,o,{raw:!0}));let h=e;const g=new pe;if(s!==oe.NONE&&(h=this.nearestInputPos(e,t>1&&e!==0&&!l?oe.NONE:s),g.tailShift=h-e),g.aggregate(this.remove(h)),l&&s!==oe.NONE&&c===this.rawInputValue)if(s===oe.FORCE_LEFT){let p;for(;c===this.rawInputValue&&(p=this.displayValue.length);)g.aggregate(new pe({tailShift:-1})).aggregate(this.remove(p-1))}else s===oe.FORCE_RIGHT&&a.unshift();return g.aggregate(this.append(n,i,a))}maskEquals(e){return this.mask===e}optionsIsChanged(e){return!si(this,e)}typedValueEquals(e){const t=this.typedValue;return e===t||$e.EMPTY_VALUES.includes(e)&&$e.EMPTY_VALUES.includes(t)||(this.format?this.format(e,this)===this.format(this.typedValue,this):!1)}pad(e){return new pe}}$e.DEFAULTS={skipInvalid:!0};$e.EMPTY_VALUES=[void 0,null,""];ce.Masked=$e;class Er{constructor(e,t){e===void 0&&(e=[]),t===void 0&&(t=0),this.chunks=e,this.from=t}toString(){return this.chunks.map(String).join("")}extend(e){if(!String(e))return;e=sr(e)?new xt(String(e)):e;const t=this.chunks[this.chunks.length-1],n=t&&(t.stop===e.stop||e.stop==null)&&e.from===t.from+t.toString().length;if(e instanceof xt)n?t.extend(e.toString()):this.chunks.push(e);else if(e instanceof Er){if(e.stop==null){let s;for(;e.chunks.length&&e.chunks[0].stop==null;)s=e.chunks.shift(),s.from+=e.from,this.extend(s)}e.toString()&&(e.stop=e.blockIndex,this.chunks.push(e))}}appendTo(e){if(!(e instanceof ce.MaskedPattern))return new xt(this.toString()).appendTo(e);const t=new pe;for(let n=0;n<this.chunks.length;++n){const s=this.chunks[n],i=e._mapPosToBlock(e.displayValue.length),o=s.stop;let a;if(o!=null&&(!i||i.index<=o)&&((s instanceof Er||e._stops.indexOf(o)>=0)&&t.aggregate(e._appendPlaceholder(o)),a=s instanceof Er&&e._blocks[o]),a){const l=a.appendTail(s);t.aggregate(l);const c=s.toString().slice(l.rawInserted.length);c&&t.aggregate(e.append(c,{tail:!0}))}else t.aggregate(e.append(s.toString(),{tail:!0}))}return t}get state(){return{chunks:this.chunks.map(e=>e.state),from:this.from,stop:this.stop,blockIndex:this.blockIndex}}set state(e){const{chunks:t,...n}=e;Object.assign(this,n),this.chunks=t.map(s=>{const i="chunks"in s?new Er:new xt;return i.state=s,i})}unshift(e){if(!this.chunks.length||e!=null&&this.from>=e)return"";const t=e!=null?e-this.from:e;let n=0;for(;n<this.chunks.length;){const s=this.chunks[n],i=s.unshift(t);if(s.toString()){if(!i)break;++n}else this.chunks.splice(n,1);if(i)return i}return""}shift(){if(!this.chunks.length)return"";let e=this.chunks.length-1;for(;0<=e;){const t=this.chunks[e],n=t.shift();if(t.toString()){if(!n)break;--e}else this.chunks.splice(e,1);if(n)return n}return""}}class Xb{constructor(e,t){this.masked=e,this._log=[];const{offset:n,index:s}=e._mapPosToBlock(t)||(t<0?{index:0,offset:0}:{index:this.masked._blocks.length,offset:0});this.offset=n,this.index=s,this.ok=!1}get block(){return this.masked._blocks[this.index]}get pos(){return this.masked._blockStartPos(this.index)+this.offset}get state(){return{index:this.index,offset:this.offset,ok:this.ok}}set state(e){Object.assign(this,e)}pushState(){this._log.push(this.state)}popState(){const e=this._log.pop();return e&&(this.state=e),e}bindBlock(){this.block||(this.index<0&&(this.index=0,this.offset=0),this.index>=this.masked._blocks.length&&(this.index=this.masked._blocks.length-1,this.offset=this.block.displayValue.length))}_pushLeft(e){for(this.pushState(),this.bindBlock();0<=this.index;--this.index,this.offset=((t=this.block)==null?void 0:t.displayValue.length)||0){var t;if(e())return this.ok=!0}return this.ok=!1}_pushRight(e){for(this.pushState(),this.bindBlock();this.index<this.masked._blocks.length;++this.index,this.offset=0)if(e())return this.ok=!0;return this.ok=!1}pushLeftBeforeFilled(){return this._pushLeft(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,oe.FORCE_LEFT),this.offset!==0))return!0})}pushLeftBeforeInput(){return this._pushLeft(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,oe.LEFT),!0})}pushLeftBeforeRequired(){return this._pushLeft(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,oe.LEFT),!0})}pushRightBeforeFilled(){return this._pushRight(()=>{if(!(this.block.isFixed||!this.block.value)&&(this.offset=this.block.nearestInputPos(this.offset,oe.FORCE_RIGHT),this.offset!==this.block.value.length))return!0})}pushRightBeforeInput(){return this._pushRight(()=>{if(!this.block.isFixed)return this.offset=this.block.nearestInputPos(this.offset,oe.NONE),!0})}pushRightBeforeRequired(){return this._pushRight(()=>{if(!(this.block.isFixed||this.block.isOptional&&!this.block.value))return this.offset=this.block.nearestInputPos(this.offset,oe.NONE),!0})}}class cd{constructor(e){Object.assign(this,e),this._value="",this.isFixed=!0}get value(){return this._value}get unmaskedValue(){return this.isUnmasking?this.value:""}get rawInputValue(){return this._isRawInput?this.value:""}get displayValue(){return this.value}reset(){this._isRawInput=!1,this._value=""}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._value=this._value.slice(0,e)+this._value.slice(t),this._value||(this._isRawInput=!1),new pe}nearestInputPos(e,t){t===void 0&&(t=oe.NONE);const n=0,s=this._value.length;switch(t){case oe.LEFT:case oe.FORCE_LEFT:return n;case oe.NONE:case oe.RIGHT:case oe.FORCE_RIGHT:default:return s}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),this._isRawInput?t-e:0}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this._value.length),n===void 0&&(n={}),n.raw&&this._isRawInput&&this._value.slice(e,t)||""}get isComplete(){return!0}get isFilled(){return!!this._value}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new pe;const n=this.eager===!0||this.eager==="append",i=this.char===e&&(this.isUnmasking||t.input||t.raw)&&(!t.raw||!n)&&!t.tail,o=new pe({inserted:this.char,rawInserted:i?this.char:""});return this._value=this.char,this._isRawInput=i&&(t.raw||t.input),o}_appendEager(){return this._appendChar(this.char,{tail:!0})}_appendPlaceholder(){const e=new pe;return this.isFilled||(this._value=e.inserted=this.char),e}extractTail(){return new xt("")}appendTail(e){return sr(e)&&(e=new xt(String(e))),e.appendTo(this)}append(e,t,n){const s=this._appendChar(e[0],t);return n!=null&&(s.tailShift+=this.appendTail(n).tailShift),s}doCommit(){}get state(){return{_value:this._value,_rawInputValue:this.rawInputValue}}set state(e){this._value=e._value,this._isRawInput=!!e._rawInputValue}pad(e){return this._appendPlaceholder()}}class ii{constructor(e){const{parent:t,isOptional:n,placeholderChar:s,displayChar:i,lazy:o,eager:a,...l}=e;this.masked=jt(l),Object.assign(this,{parent:t,isOptional:n,placeholderChar:s,displayChar:i,lazy:o,eager:a})}reset(){this.isFilled=!1,this.masked.reset()}remove(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),e===0&&t>=1?(this.isFilled=!1,this.masked.remove(e,t)):new pe}get value(){return this.masked.value||(this.isFilled&&!this.isOptional?this.placeholderChar:"")}get unmaskedValue(){return this.masked.unmaskedValue}get rawInputValue(){return this.masked.rawInputValue}get displayValue(){return this.masked.value&&this.displayChar||this.value}get isComplete(){return!!this.masked.value||this.isOptional}_appendChar(e,t){if(t===void 0&&(t={}),this.isFilled)return new pe;const n=this.masked.state;let s=this.masked._appendChar(e,this.currentMaskFlags(t));return s.inserted&&this.doValidate(t)===!1&&(s=new pe,this.masked.state=n),!s.inserted&&!this.isOptional&&!this.lazy&&!t.input&&(s.inserted=this.placeholderChar),s.skip=!s.inserted&&!this.isOptional,this.isFilled=!!s.inserted,s}append(e,t,n){return this.masked.append(e,this.currentMaskFlags(t),n)}_appendPlaceholder(){return this.isFilled||this.isOptional?new pe:(this.isFilled=!0,new pe({inserted:this.placeholderChar}))}_appendEager(){return new pe}extractTail(e,t){return this.masked.extractTail(e,t)}appendTail(e){return this.masked.appendTail(e)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.masked.extractInput(e,t,n)}nearestInputPos(e,t){t===void 0&&(t=oe.NONE);const n=0,s=this.value.length,i=Math.min(Math.max(e,n),s);switch(t){case oe.LEFT:case oe.FORCE_LEFT:return this.isComplete?i:n;case oe.RIGHT:case oe.FORCE_RIGHT:return this.isComplete?i:s;case oe.NONE:default:return i}}totalInputPositions(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.value.length),this.value.slice(e,t).length}doValidate(e){return this.masked.doValidate(this.currentMaskFlags(e))&&(!this.parent||this.parent.doValidate(this.currentMaskFlags(e)))}doCommit(){this.masked.doCommit()}get state(){return{_value:this.value,_rawInputValue:this.rawInputValue,masked:this.masked.state,isFilled:this.isFilled}}set state(e){this.masked.state=e.masked,this.isFilled=e.isFilled}currentMaskFlags(e){var t;return{...e,_beforeTailState:(e==null||(t=e._beforeTailState)==null?void 0:t.masked)||(e==null?void 0:e._beforeTailState)}}pad(e){return new pe}}ii.DEFAULT_DEFINITIONS={0:/\d/,a:/[\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,"*":/./};class Qb extends $e{updateOptions(e){super.updateOptions(e)}_update(e){const t=e.mask;t&&(e.validate=n=>n.search(t)>=0),super._update(e)}}ce.MaskedRegExp=Qb;class Ve extends $e{constructor(e){super({...Ve.DEFAULTS,...e,definitions:Object.assign({},ii.DEFAULT_DEFINITIONS,e==null?void 0:e.definitions)})}updateOptions(e){super.updateOptions(e)}_update(e){e.definitions=Object.assign({},this.definitions,e.definitions),super._update(e),this._rebuildMask()}_rebuildMask(){const e=this.definitions;this._blocks=[],this.exposeBlock=void 0,this._stops=[],this._maskedBlocks={};const t=this.mask;if(!t||!e)return;let n=!1,s=!1;for(let i=0;i<t.length;++i){if(this.blocks){const c=t.slice(i),h=Object.keys(this.blocks).filter(p=>c.indexOf(p)===0);h.sort((p,m)=>m.length-p.length);const g=h[0];if(g){const{expose:p,repeat:m,...v}=ts(this.blocks[g]),d={lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,overwrite:this.overwrite,autofix:this.autofix,...v,repeat:m,parent:this},b=m!=null?new ce.RepeatBlock(d):jt(d);b&&(this._blocks.push(b),p&&(this.exposeBlock=b),this._maskedBlocks[g]||(this._maskedBlocks[g]=[]),this._maskedBlocks[g].push(this._blocks.length-1)),i+=g.length-1;continue}}let o=t[i],a=o in e;if(o===Ve.STOP_CHAR){this._stops.push(this._blocks.length);continue}if(o==="{"||o==="}"){n=!n;continue}if(o==="["||o==="]"){s=!s;continue}if(o===Ve.ESCAPE_CHAR){if(++i,o=t[i],!o)break;a=!1}const l=a?new ii({isOptional:s,lazy:this.lazy,eager:this.eager,placeholderChar:this.placeholderChar,displayChar:this.displayChar,...ts(e[o]),parent:this}):new cd({char:o,eager:this.eager,isUnmasking:n});this._blocks.push(l)}}get state(){return{...super.state,_blocks:this._blocks.map(e=>e.state)}}set state(e){if(!e){this.reset();return}const{_blocks:t,...n}=e;this._blocks.forEach((s,i)=>s.state=t[i]),super.state=n}reset(){super.reset(),this._blocks.forEach(e=>e.reset())}get isComplete(){return this.exposeBlock?this.exposeBlock.isComplete:this._blocks.every(e=>e.isComplete)}get isFilled(){return this._blocks.every(e=>e.isFilled)}get isFixed(){return this._blocks.every(e=>e.isFixed)}get isOptional(){return this._blocks.every(e=>e.isOptional)}doCommit(){this._blocks.forEach(e=>e.doCommit()),super.doCommit()}get unmaskedValue(){return this.exposeBlock?this.exposeBlock.unmaskedValue:this._blocks.reduce((e,t)=>e+=t.unmaskedValue,"")}set unmaskedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.unmaskedValue=e,this.appendTail(t),this.doCommit()}else super.unmaskedValue=e}get value(){return this.exposeBlock?this.exposeBlock.value:this._blocks.reduce((e,t)=>e+=t.value,"")}set value(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.value=e,this.appendTail(t),this.doCommit()}else super.value=e}get typedValue(){return this.exposeBlock?this.exposeBlock.typedValue:super.typedValue}set typedValue(e){if(this.exposeBlock){const t=this.extractTail(this._blockStartPos(this._blocks.indexOf(this.exposeBlock))+this.exposeBlock.displayValue.length);this.exposeBlock.typedValue=e,this.appendTail(t),this.doCommit()}else super.typedValue=e}get displayValue(){return this._blocks.reduce((e,t)=>e+=t.displayValue,"")}appendTail(e){return super.appendTail(e).aggregate(this._appendPlaceholder())}_appendEager(){var e;const t=new pe;let n=(e=this._mapPosToBlock(this.displayValue.length))==null?void 0:e.index;if(n==null)return t;this._blocks[n].isFilled&&++n;for(let s=n;s<this._blocks.length;++s){const i=this._blocks[s]._appendEager();if(!i.inserted)break;t.aggregate(i)}return t}_appendCharRaw(e,t){t===void 0&&(t={});const n=this._mapPosToBlock(this.displayValue.length),s=new pe;if(!n)return s;for(let o=n.index,a;a=this._blocks[o];++o){var i;const l=a._appendChar(e,{...t,_beforeTailState:(i=t._beforeTailState)==null||(i=i._blocks)==null?void 0:i[o]});if(s.aggregate(l),l.consumed)break}return s}extractTail(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=new Er;return e===t||this._forEachBlocksInRange(e,t,(s,i,o,a)=>{const l=s.extractTail(o,a);l.stop=this._findStopBefore(i),l.from=this._blockStartPos(i),l instanceof Er&&(l.blockIndex=i),n.extend(l)}),n}extractInput(e,t,n){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),n===void 0&&(n={}),e===t)return"";let s="";return this._forEachBlocksInRange(e,t,(i,o,a,l)=>{s+=i.extractInput(a,l,n)}),s}_findStopBefore(e){let t;for(let n=0;n<this._stops.length;++n){const s=this._stops[n];if(s<=e)t=s;else break}return t}_appendPlaceholder(e){const t=new pe;if(this.lazy&&e==null)return t;const n=this._mapPosToBlock(this.displayValue.length);if(!n)return t;const s=n.index,i=e??this._blocks.length;return this._blocks.slice(s,i).forEach(o=>{if(!o.lazy||e!=null){var a;t.aggregate(o._appendPlaceholder((a=o._blocks)==null?void 0:a.length))}}),t}_mapPosToBlock(e){let t="";for(let n=0;n<this._blocks.length;++n){const s=this._blocks[n],i=t.length;if(t+=s.displayValue,e<=t.length)return{index:n,offset:e-i}}}_blockStartPos(e){return this._blocks.slice(0,e).reduce((t,n)=>t+=n.displayValue.length,0)}_forEachBlocksInRange(e,t,n){t===void 0&&(t=this.displayValue.length);const s=this._mapPosToBlock(e);if(s){const i=this._mapPosToBlock(t),o=i&&s.index===i.index,a=s.offset,l=i&&o?i.offset:this._blocks[s.index].displayValue.length;if(n(this._blocks[s.index],s.index,a,l),i&&!o){for(let c=s.index+1;c<i.index;++c)n(this._blocks[c],c,0,this._blocks[c].displayValue.length);n(this._blocks[i.index],i.index,0,i.offset)}}}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=super.remove(e,t);return this._forEachBlocksInRange(e,t,(s,i,o,a)=>{n.aggregate(s.remove(o,a))}),n}nearestInputPos(e,t){if(t===void 0&&(t=oe.NONE),!this._blocks.length)return 0;const n=new Xb(this,e);if(t===oe.NONE)return n.pushRightBeforeInput()||(n.popState(),n.pushLeftBeforeInput())?n.pos:this.displayValue.length;if(t===oe.LEFT||t===oe.FORCE_LEFT){if(t===oe.LEFT){if(n.pushRightBeforeFilled(),n.ok&&n.pos===e)return e;n.popState()}if(n.pushLeftBeforeInput(),n.pushLeftBeforeRequired(),n.pushLeftBeforeFilled(),t===oe.LEFT){if(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.ok&&n.pos<=e||(n.popState(),n.ok&&n.pos<=e))return n.pos;n.popState()}return n.ok?n.pos:t===oe.FORCE_LEFT?0:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:0)}return t===oe.RIGHT||t===oe.FORCE_RIGHT?(n.pushRightBeforeInput(),n.pushRightBeforeRequired(),n.pushRightBeforeFilled()?n.pos:t===oe.FORCE_RIGHT?this.displayValue.length:(n.popState(),n.ok||(n.popState(),n.ok)?n.pos:this.nearestInputPos(e,oe.LEFT))):e}totalInputPositions(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);let n=0;return this._forEachBlocksInRange(e,t,(s,i,o,a)=>{n+=s.totalInputPositions(o,a)}),n}maskedBlock(e){return this.maskedBlocks(e)[0]}maskedBlocks(e){const t=this._maskedBlocks[e];return t?t.map(n=>this._blocks[n]):[]}pad(e){const t=new pe;return this._forEachBlocksInRange(0,this.displayValue.length,n=>t.aggregate(n.pad(e))),t}}Ve.DEFAULTS={...$e.DEFAULTS,lazy:!0,placeholderChar:"_"};Ve.STOP_CHAR="`";Ve.ESCAPE_CHAR="\\";Ve.InputDefinition=ii;Ve.FixedDefinition=cd;ce.MaskedPattern=Ve;class Ws extends Ve{get _matchFrom(){return this.maxLength-String(this.from).length}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){const{to:t=this.to||0,from:n=this.from||0,maxLength:s=this.maxLength||0,autofix:i=this.autofix,...o}=e;this.to=t,this.from=n,this.maxLength=Math.max(String(t).length,s),this.autofix=i;const a=String(this.from).padStart(this.maxLength,"0"),l=String(this.to).padStart(this.maxLength,"0");let c=0;for(;c<l.length&&l[c]===a[c];)++c;o.mask=l.slice(0,c).replace(/0/g,"\\0")+"0".repeat(this.maxLength-c),super._update(o)}get isComplete(){return super.isComplete&&!!this.value}boundaries(e){let t="",n="";const[,s,i]=e.match(/^(\D*)(\d*)(\D*)/)||[];return i&&(t="0".repeat(s.length)+i,n="9".repeat(s.length)+i),t=t.padEnd(this.maxLength,"0"),n=n.padEnd(this.maxLength,"9"),[t,n]}doPrepareChar(e,t){t===void 0&&(t={});let n;return[e,n]=super.doPrepareChar(e.replace(/\D/g,""),t),e||(n.skip=!this.isComplete),[e,n]}_appendCharRaw(e,t){if(t===void 0&&(t={}),!this.autofix||this.value.length+1>this.maxLength)return super._appendCharRaw(e,t);const n=String(this.from).padStart(this.maxLength,"0"),s=String(this.to).padStart(this.maxLength,"0"),[i,o]=this.boundaries(this.value+e);return Number(o)<this.from?super._appendCharRaw(n[this.value.length],t):Number(i)>this.to?!t.tail&&this.autofix==="pad"&&this.value.length+1<this.maxLength?super._appendCharRaw(n[this.value.length],t).aggregate(this._appendCharRaw(e,t)):super._appendCharRaw(s[this.value.length],t):super._appendCharRaw(e,t)}doValidate(e){const t=this.value;if(t.search(/[^0]/)===-1&&t.length<=this._matchFrom)return!0;const[s,i]=this.boundaries(t);return this.from<=Number(i)&&Number(s)<=this.to&&super.doValidate(e)}pad(e){const t=new pe;if(this.value.length===this.maxLength)return t;const n=this.value,s=this.maxLength-this.value.length;if(s){this.reset();for(let i=0;i<s;++i)t.aggregate(super._appendCharRaw("0",e));n.split("").forEach(i=>this._appendCharRaw(i))}return t}}ce.MaskedRange=Ws;const Jb="d{.}`m{.}`Y";class Pt extends Ve{static extractPatternOptions(e){const{mask:t,pattern:n,...s}=e;return{...s,mask:sr(t)?t:n}}constructor(e){super(Pt.extractPatternOptions({...Pt.DEFAULTS,...e}))}updateOptions(e){super.updateOptions(e)}_update(e){const{mask:t,pattern:n,blocks:s,...i}={...Pt.DEFAULTS,...e},o=Object.assign({},Pt.GET_DEFAULT_BLOCKS());e.min&&(o.Y.from=e.min.getFullYear()),e.max&&(o.Y.to=e.max.getFullYear()),e.min&&e.max&&o.Y.from===o.Y.to&&(o.m.from=e.min.getMonth()+1,o.m.to=e.max.getMonth()+1,o.m.from===o.m.to&&(o.d.from=e.min.getDate(),o.d.to=e.max.getDate())),Object.assign(o,this.blocks,s),super._update({...i,mask:sr(t)?t:n,blocks:o})}doValidate(e){const t=this.date;return super.doValidate(e)&&(!this.isComplete||this.isDateExist(this.value)&&t!=null&&(this.min==null||this.min<=t)&&(this.max==null||t<=this.max))}isDateExist(e){return this.format(this.parse(e,this),this).indexOf(e)>=0}get date(){return this.typedValue}set date(e){this.typedValue=e}get typedValue(){return this.isComplete?super.typedValue:null}set typedValue(e){super.typedValue=e}maskEquals(e){return e===Date||super.maskEquals(e)}optionsIsChanged(e){return super.optionsIsChanged(Pt.extractPatternOptions(e))}}Pt.GET_DEFAULT_BLOCKS=()=>({d:{mask:Ws,from:1,to:31,maxLength:2},m:{mask:Ws,from:1,to:12,maxLength:2},Y:{mask:Ws,from:1900,to:9999}});Pt.DEFAULTS={...Ve.DEFAULTS,mask:Date,pattern:Jb,format:(r,e)=>{if(!r)return"";const t=String(r.getDate()).padStart(2,"0"),n=String(r.getMonth()+1).padStart(2,"0"),s=r.getFullYear();return[t,n,s].join(".")},parse:(r,e)=>{const[t,n,s]=r.split(".").map(Number);return new Date(s,n-1,t)}};ce.MaskedDate=Pt;class Ti extends $e{constructor(e){super({...Ti.DEFAULTS,...e}),this.currentMask=void 0}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),"mask"in e&&(this.exposeMask=void 0,this.compiledMasks=Array.isArray(e.mask)?e.mask.map(t=>{const{expose:n,...s}=ts(t),i=jt({overwrite:this._overwrite,eager:this._eager,skipInvalid:this._skipInvalid,...s});return n&&(this.exposeMask=i),i}):[])}_appendCharRaw(e,t){t===void 0&&(t={});const n=this._applyDispatch(e,t);return this.currentMask&&n.aggregate(this.currentMask._appendChar(e,this.currentMaskFlags(t))),n}_applyDispatch(e,t,n){e===void 0&&(e=""),t===void 0&&(t={}),n===void 0&&(n="");const s=t.tail&&t._beforeTailState!=null?t._beforeTailState._value:this.value,i=this.rawInputValue,o=t.tail&&t._beforeTailState!=null?t._beforeTailState._rawInputValue:i,a=i.slice(o.length),l=this.currentMask,c=new pe,h=l==null?void 0:l.state;return this.currentMask=this.doDispatch(e,{...t},n),this.currentMask&&(this.currentMask!==l?(this.currentMask.reset(),o&&(this.currentMask.append(o,{raw:!0}),c.tailShift=this.currentMask.value.length-s.length),a&&(c.tailShift+=this.currentMask.append(a,{raw:!0,tail:!0}).tailShift)):h&&(this.currentMask.state=h)),c}_appendPlaceholder(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendPlaceholder()),e}_appendEager(){const e=this._applyDispatch();return this.currentMask&&e.aggregate(this.currentMask._appendEager()),e}appendTail(e){const t=new pe;return e&&t.aggregate(this._applyDispatch("",{},e)),t.aggregate(this.currentMask?this.currentMask.appendTail(e):super.appendTail(e))}currentMaskFlags(e){var t,n;return{...e,_beforeTailState:((t=e._beforeTailState)==null?void 0:t.currentMaskRef)===this.currentMask&&((n=e._beforeTailState)==null?void 0:n.currentMask)||e._beforeTailState}}doDispatch(e,t,n){return t===void 0&&(t={}),n===void 0&&(n=""),this.dispatch(e,this,t,n)}doValidate(e){return super.doValidate(e)&&(!this.currentMask||this.currentMask.doValidate(this.currentMaskFlags(e)))}doPrepare(e,t){t===void 0&&(t={});let[n,s]=super.doPrepare(e,t);if(this.currentMask){let i;[n,i]=super.doPrepare(n,this.currentMaskFlags(t)),s=s.aggregate(i)}return[n,s]}doPrepareChar(e,t){t===void 0&&(t={});let[n,s]=super.doPrepareChar(e,t);if(this.currentMask){let i;[n,i]=super.doPrepareChar(n,this.currentMaskFlags(t)),s=s.aggregate(i)}return[n,s]}reset(){var e;(e=this.currentMask)==null||e.reset(),this.compiledMasks.forEach(t=>t.reset())}get value(){return this.exposeMask?this.exposeMask.value:this.currentMask?this.currentMask.value:""}set value(e){this.exposeMask?(this.exposeMask.value=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.value=e}get unmaskedValue(){return this.exposeMask?this.exposeMask.unmaskedValue:this.currentMask?this.currentMask.unmaskedValue:""}set unmaskedValue(e){this.exposeMask?(this.exposeMask.unmaskedValue=e,this.currentMask=this.exposeMask,this._applyDispatch()):super.unmaskedValue=e}get typedValue(){return this.exposeMask?this.exposeMask.typedValue:this.currentMask?this.currentMask.typedValue:""}set typedValue(e){if(this.exposeMask){this.exposeMask.typedValue=e,this.currentMask=this.exposeMask,this._applyDispatch();return}let t=String(e);this.currentMask&&(this.currentMask.typedValue=e,t=this.currentMask.unmaskedValue),this.unmaskedValue=t}get displayValue(){return this.currentMask?this.currentMask.displayValue:""}get isComplete(){var e;return!!((e=this.currentMask)!=null&&e.isComplete)}get isFilled(){var e;return!!((e=this.currentMask)!=null&&e.isFilled)}remove(e,t){const n=new pe;return this.currentMask&&n.aggregate(this.currentMask.remove(e,t)).aggregate(this._applyDispatch()),n}get state(){var e;return{...super.state,_rawInputValue:this.rawInputValue,compiledMasks:this.compiledMasks.map(t=>t.state),currentMaskRef:this.currentMask,currentMask:(e=this.currentMask)==null?void 0:e.state}}set state(e){const{compiledMasks:t,currentMaskRef:n,currentMask:s,...i}=e;t&&this.compiledMasks.forEach((o,a)=>o.state=t[a]),n!=null&&(this.currentMask=n,this.currentMask.state=s),super.state=i}extractInput(e,t,n){return this.currentMask?this.currentMask.extractInput(e,t,n):""}extractTail(e,t){return this.currentMask?this.currentMask.extractTail(e,t):super.extractTail(e,t)}doCommit(){this.currentMask&&this.currentMask.doCommit(),super.doCommit()}nearestInputPos(e,t){return this.currentMask?this.currentMask.nearestInputPos(e,t):super.nearestInputPos(e,t)}get overwrite(){return this.currentMask?this.currentMask.overwrite:this._overwrite}set overwrite(e){this._overwrite=e}get eager(){return this.currentMask?this.currentMask.eager:this._eager}set eager(e){this._eager=e}get skipInvalid(){return this.currentMask?this.currentMask.skipInvalid:this._skipInvalid}set skipInvalid(e){this._skipInvalid=e}get autofix(){return this.currentMask?this.currentMask.autofix:this._autofix}set autofix(e){this._autofix=e}maskEquals(e){return Array.isArray(e)?this.compiledMasks.every((t,n)=>{if(!e[n])return;const{mask:s,...i}=e[n];return si(t,i)&&t.maskEquals(s)}):super.maskEquals(e)}typedValueEquals(e){var t;return!!((t=this.currentMask)!=null&&t.typedValueEquals(e))}}Ti.DEFAULTS={...$e.DEFAULTS,dispatch:(r,e,t,n)=>{if(!e.compiledMasks.length)return;const s=e.rawInputValue,i=e.compiledMasks.map((o,a)=>{const l=e.currentMask===o,c=l?o.displayValue.length:o.nearestInputPos(o.displayValue.length,oe.FORCE_LEFT);return o.rawInputValue!==s?(o.reset(),o.append(s,{raw:!0})):l||o.remove(c),o.append(r,e.currentMaskFlags(t)),o.appendTail(n),{index:a,weight:o.rawInputValue.length,totalInputPositions:o.totalInputPositions(0,Math.max(c,o.nearestInputPos(o.displayValue.length,oe.FORCE_LEFT)))}});return i.sort((o,a)=>a.weight-o.weight||a.totalInputPositions-o.totalInputPositions),e.compiledMasks[i[0].index]}};ce.MaskedDynamic=Ti;class ki extends Ve{constructor(e){super({...ki.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){const{enum:t,...n}=e;if(t){const s=t.map(a=>a.length),i=Math.min(...s),o=Math.max(...s)-i;n.mask="*".repeat(i),o&&(n.mask+="["+"*".repeat(o)+"]"),this.enum=t}super._update(n)}_appendCharRaw(e,t){t===void 0&&(t={});const n=Math.min(this.nearestInputPos(0,oe.FORCE_RIGHT),this.value.length),s=this.enum.filter(i=>this.matchValue(i,this.unmaskedValue+e,n));if(s.length){s.length===1&&this._forEachBlocksInRange(0,this.value.length,(o,a)=>{const l=s[0][a];a>=this.value.length||l===o.value||(o.reset(),o._appendChar(l,t))});const i=super._appendCharRaw(s[0][this.value.length],t);return s.length===1&&s[0].slice(this.unmaskedValue.length).split("").forEach(o=>i.aggregate(super._appendCharRaw(o))),i}return new pe({skip:!this.isComplete})}extractTail(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),new xt("",e)}remove(e,t){if(e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),e===t)return new pe;const n=Math.min(super.nearestInputPos(0,oe.FORCE_RIGHT),this.value.length);let s;for(s=e;s>=0&&!(this.enum.filter(a=>this.matchValue(a,this.value.slice(n,s),n)).length>1);--s);const i=super.remove(s,t);return i.tailShift+=s-e,i}get isComplete(){return this.enum.indexOf(this.value)>=0}}ki.DEFAULTS={...Ve.DEFAULTS,matchValue:(r,e,t)=>r.indexOf(e,t)===t};ce.MaskedEnum=ki;class eE extends $e{updateOptions(e){super.updateOptions(e)}_update(e){super._update({...e,validate:e.mask})}}ce.MaskedFunction=eE;var hd;class Ge extends $e{constructor(e){super({...Ge.DEFAULTS,...e})}updateOptions(e){super.updateOptions(e)}_update(e){super._update(e),this._updateRegExps()}_updateRegExps(){const e="^"+(this.allowNegative?"[+|\\-]?":""),t="\\d*",n=(this.scale?"("+$o(this.radix)+"\\d{0,"+this.scale+"})?":"")+"$";this._numberRegExp=new RegExp(e+t+n),this._mapToRadixRegExp=new RegExp("["+this.mapToRadix.map($o).join("")+"]","g"),this._thousandsSeparatorRegExp=new RegExp($o(this.thousandsSeparator),"g")}_removeThousandsSeparators(e){return e.replace(this._thousandsSeparatorRegExp,"")}_insertThousandsSeparators(e){const t=e.split(this.radix);return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,this.thousandsSeparator),t.join(this.radix)}doPrepareChar(e,t){t===void 0&&(t={});const[n,s]=super.doPrepareChar(this._removeThousandsSeparators(this.scale&&this.mapToRadix.length&&(t.input&&t.raw||!t.input&&!t.raw)?e.replace(this._mapToRadixRegExp,this.radix):e),t);return e&&!n&&(s.skip=!0),n&&!this.allowPositive&&!this.value&&n!=="-"&&s.aggregate(this._appendChar("-")),[n,s]}_separatorsCount(e,t){t===void 0&&(t=!1);let n=0;for(let s=0;s<e;++s)this._value.indexOf(this.thousandsSeparator,s)===s&&(++n,t&&(e+=this.thousandsSeparator.length));return n}_separatorsCountFromSlice(e){return e===void 0&&(e=this._value),this._separatorsCount(this._removeThousandsSeparators(e).length,!0)}extractInput(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t),this._removeThousandsSeparators(super.extractInput(e,t,n))}_appendCharRaw(e,t){t===void 0&&(t={});const n=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,s=this._separatorsCountFromSlice(n);this._value=this._removeThousandsSeparators(this.value);const i=this._value;this._value+=e;const o=this.number;let a=!isNaN(o),l=!1;if(a){let p;this.min!=null&&this.min<0&&this.number<this.min&&(p=this.min),this.max!=null&&this.max>0&&this.number>this.max&&(p=this.max),p!=null&&(this.autofix?(this._value=this.format(p,this).replace(Ge.UNMASKED_RADIX,this.radix),l||(l=i===this._value&&!t.tail)):a=!1),a&&(a=!!this._value.match(this._numberRegExp))}let c;a?c=new pe({inserted:this._value.slice(i.length),rawInserted:l?"":e,skip:l}):(this._value=i,c=new pe),this._value=this._insertThousandsSeparators(this._value);const h=t.tail&&t._beforeTailState?t._beforeTailState._value:this._value,g=this._separatorsCountFromSlice(h);return c.tailShift+=(g-s)*this.thousandsSeparator.length,c}_findSeparatorAround(e){if(this.thousandsSeparator){const t=e-this.thousandsSeparator.length+1,n=this.value.indexOf(this.thousandsSeparator,t);if(n<=e)return n}return-1}_adjustRangeWithSeparators(e,t){const n=this._findSeparatorAround(e);n>=0&&(e=n);const s=this._findSeparatorAround(t);return s>=0&&(t=s+this.thousandsSeparator.length),[e,t]}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length),[e,t]=this._adjustRangeWithSeparators(e,t);const n=this.value.slice(0,e),s=this.value.slice(t),i=this._separatorsCount(n.length);this._value=this._insertThousandsSeparators(this._removeThousandsSeparators(n+s));const o=this._separatorsCountFromSlice(n);return new pe({tailShift:(o-i)*this.thousandsSeparator.length})}nearestInputPos(e,t){if(!this.thousandsSeparator)return e;switch(t){case oe.NONE:case oe.LEFT:case oe.FORCE_LEFT:{const n=this._findSeparatorAround(e-1);if(n>=0){const s=n+this.thousandsSeparator.length;if(e<s||this.value.length<=s||t===oe.FORCE_LEFT)return n}break}case oe.RIGHT:case oe.FORCE_RIGHT:{const n=this._findSeparatorAround(e);if(n>=0)return n+this.thousandsSeparator.length}}return e}doCommit(){if(this.value){const e=this.number;let t=e;this.min!=null&&(t=Math.max(t,this.min)),this.max!=null&&(t=Math.min(t,this.max)),t!==e&&(this.unmaskedValue=this.format(t,this));let n=this.value;this.normalizeZeros&&(n=this._normalizeZeros(n)),this.padFractionalZeros&&this.scale>0&&(n=this._padFractionalZeros(n)),this._value=n}super.doCommit()}_normalizeZeros(e){const t=this._removeThousandsSeparators(e).split(this.radix);return t[0]=t[0].replace(/^(\D*)(0*)(\d*)/,(n,s,i,o)=>s+o),e.length&&!/\d$/.test(t[0])&&(t[0]=t[0]+"0"),t.length>1&&(t[1]=t[1].replace(/0*$/,""),t[1].length||(t.length=1)),this._insertThousandsSeparators(t.join(this.radix))}_padFractionalZeros(e){if(!e)return e;const t=e.split(this.radix);return t.length<2&&t.push(""),t[1]=t[1].padEnd(this.scale,"0"),t.join(this.radix)}doSkipInvalid(e,t,n){t===void 0&&(t={});const s=this.scale===0&&e!==this.thousandsSeparator&&(e===this.radix||e===Ge.UNMASKED_RADIX||this.mapToRadix.includes(e));return super.doSkipInvalid(e,t,n)&&!s}get unmaskedValue(){return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix,Ge.UNMASKED_RADIX)}set unmaskedValue(e){super.unmaskedValue=e}get typedValue(){return this.parse(this.unmaskedValue,this)}set typedValue(e){this.rawInputValue=this.format(e,this).replace(Ge.UNMASKED_RADIX,this.radix)}get number(){return this.typedValue}set number(e){this.typedValue=e}get allowNegative(){return this.min!=null&&this.min<0||this.max!=null&&this.max<0}get allowPositive(){return this.min!=null&&this.min>0||this.max!=null&&this.max>0}typedValueEquals(e){return(super.typedValueEquals(e)||Ge.EMPTY_VALUES.includes(e)&&Ge.EMPTY_VALUES.includes(this.typedValue))&&!(e===0&&this.value==="")}}hd=Ge;Ge.UNMASKED_RADIX=".";Ge.EMPTY_VALUES=[...$e.EMPTY_VALUES,0];Ge.DEFAULTS={...$e.DEFAULTS,mask:Number,radix:",",thousandsSeparator:"",mapToRadix:[hd.UNMASKED_RADIX],min:Number.MIN_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,scale:2,normalizeZeros:!0,padFractionalZeros:!1,parse:Number,format:r=>r.toLocaleString("en-US",{useGrouping:!1,maximumFractionDigits:20})};ce.MaskedNumber=Ge;const ka={MASKED:"value",UNMASKED:"unmaskedValue",TYPED:"typedValue"};function dd(r,e,t){e===void 0&&(e=ka.MASKED),t===void 0&&(t=ka.MASKED);const n=jt(r);return s=>n.runIsolated(i=>(i[e]=s,i[t]))}function tE(r,e,t,n){return dd(e,t,n)(r)}ce.PIPE_TYPE=ka;ce.createPipe=dd;ce.pipe=tE;class rE extends Ve{get repeatFrom(){var e;return(e=Array.isArray(this.repeat)?this.repeat[0]:this.repeat===1/0?0:this.repeat)!=null?e:0}get repeatTo(){var e;return(e=Array.isArray(this.repeat)?this.repeat[1]:this.repeat)!=null?e:1/0}constructor(e){super(e)}updateOptions(e){super.updateOptions(e)}_update(e){var t,n,s;const{repeat:i,...o}=ts(e);this._blockOpts=Object.assign({},this._blockOpts,o);const a=jt(this._blockOpts);this.repeat=(t=(n=i??a.repeat)!=null?n:this.repeat)!=null?t:1/0,super._update({mask:"m".repeat(Math.max(this.repeatTo===1/0&&((s=this._blocks)==null?void 0:s.length)||0,this.repeatFrom)),blocks:{m:a},eager:a.eager,overwrite:a.overwrite,skipInvalid:a.skipInvalid,lazy:a.lazy,placeholderChar:a.placeholderChar,displayChar:a.displayChar})}_allocateBlock(e){if(e<this._blocks.length)return this._blocks[e];if(this.repeatTo===1/0||this._blocks.length<this.repeatTo)return this._blocks.push(jt(this._blockOpts)),this.mask+="m",this._blocks[this._blocks.length-1]}_appendCharRaw(e,t){t===void 0&&(t={});const n=new pe;for(let l=(s=(i=this._mapPosToBlock(this.displayValue.length))==null?void 0:i.index)!=null?s:Math.max(this._blocks.length-1,0),c,h;c=(o=this._blocks[l])!=null?o:h=!h&&this._allocateBlock(l);++l){var s,i,o,a;const g=c._appendChar(e,{...t,_beforeTailState:(a=t._beforeTailState)==null||(a=a._blocks)==null?void 0:a[l]});if(g.skip&&h){this._blocks.pop(),this.mask=this.mask.slice(1);break}if(n.aggregate(g),g.consumed)break}return n}_trimEmptyTail(e,t){var n,s;e===void 0&&(e=0);const i=Math.max(((n=this._mapPosToBlock(e))==null?void 0:n.index)||0,this.repeatFrom,0);let o;t!=null&&(o=(s=this._mapPosToBlock(t))==null?void 0:s.index),o==null&&(o=this._blocks.length-1);let a=0;for(let l=o;i<=l&&!this._blocks[l].unmaskedValue;--l,++a);a&&(this._blocks.splice(o-a+1,a),this.mask=this.mask.slice(a))}reset(){super.reset(),this._trimEmptyTail()}remove(e,t){e===void 0&&(e=0),t===void 0&&(t=this.displayValue.length);const n=super.remove(e,t);return this._trimEmptyTail(e,t),n}totalInputPositions(e,t){return e===void 0&&(e=0),t==null&&this.repeatTo===1/0?1/0:super.totalInputPositions(e,t)}get state(){return super.state}set state(e){this._blocks.length=e._blocks.length,this.mask=this.mask.slice(0,this._blocks.length),super.state=e}}ce.RepeatBlock=rE;try{globalThis.IMask=ce}catch{}var qs={exports:{}},Fs={exports:{}},we={};/** @license React v16.13.1
154
+ * react-is.production.min.js
155
+ *
156
+ * Copyright (c) Facebook, Inc. and its affiliates.
157
+ *
158
+ * This source code is licensed under the MIT license found in the
159
+ * LICENSE file in the root directory of this source tree.
160
+ */var Hu;function nE(){if(Hu)return we;Hu=1;var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,o=r?Symbol.for("react.provider"):60109,a=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,c=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,d=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,E=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var B=_.$$typeof;switch(B){case e:switch(_=_.type,_){case l:case c:case n:case i:case s:case g:return _;default:switch(_=_&&_.$$typeof,_){case a:case h:case v:case m:case o:return _;default:return B}}case t:return B}}}function k(_){return S(_)===c}return we.AsyncMode=l,we.ConcurrentMode=c,we.ContextConsumer=a,we.ContextProvider=o,we.Element=e,we.ForwardRef=h,we.Fragment=n,we.Lazy=v,we.Memo=m,we.Portal=t,we.Profiler=i,we.StrictMode=s,we.Suspense=g,we.isAsyncMode=function(_){return k(_)||S(_)===l},we.isConcurrentMode=k,we.isContextConsumer=function(_){return S(_)===a},we.isContextProvider=function(_){return S(_)===o},we.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===e},we.isForwardRef=function(_){return S(_)===h},we.isFragment=function(_){return S(_)===n},we.isLazy=function(_){return S(_)===v},we.isMemo=function(_){return S(_)===m},we.isPortal=function(_){return S(_)===t},we.isProfiler=function(_){return S(_)===i},we.isStrictMode=function(_){return S(_)===s},we.isSuspense=function(_){return S(_)===g},we.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===c||_===i||_===s||_===g||_===p||typeof _=="object"&&_!==null&&(_.$$typeof===v||_.$$typeof===m||_.$$typeof===o||_.$$typeof===a||_.$$typeof===h||_.$$typeof===b||_.$$typeof===E||_.$$typeof===x||_.$$typeof===d)},we.typeOf=S,we}var xe={};/** @license React v16.13.1
161
+ * react-is.development.js
162
+ *
163
+ * Copyright (c) Facebook, Inc. and its affiliates.
164
+ *
165
+ * This source code is licensed under the MIT license found in the
166
+ * LICENSE file in the root directory of this source tree.
167
+ */var zu;function sE(){return zu||(zu=1,process.env.NODE_ENV!=="production"&&(function(){var r=typeof Symbol=="function"&&Symbol.for,e=r?Symbol.for("react.element"):60103,t=r?Symbol.for("react.portal"):60106,n=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,i=r?Symbol.for("react.profiler"):60114,o=r?Symbol.for("react.provider"):60109,a=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,c=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,g=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,d=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,E=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function S(N){return typeof N=="string"||typeof N=="function"||N===n||N===c||N===i||N===s||N===g||N===p||typeof N=="object"&&N!==null&&(N.$$typeof===v||N.$$typeof===m||N.$$typeof===o||N.$$typeof===a||N.$$typeof===h||N.$$typeof===b||N.$$typeof===E||N.$$typeof===x||N.$$typeof===d)}function k(N){if(typeof N=="object"&&N!==null){var ue=N.$$typeof;switch(ue){case e:var ge=N.type;switch(ge){case l:case c:case n:case i:case s:case g:return ge;default:var be=ge&&ge.$$typeof;switch(be){case a:case h:case v:case m:case o:return be;default:return ue}}case t:return ue}}}var _=l,B=c,L=a,K=o,ae=e,de=h,y=n,M=v,A=m,V=t,j=i,R=s,q=g,Y=!1;function Z(N){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),T(N)||k(N)===l}function T(N){return k(N)===c}function D(N){return k(N)===a}function U(N){return k(N)===o}function W(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function z(N){return k(N)===h}function H(N){return k(N)===n}function J(N){return k(N)===v}function F(N){return k(N)===m}function $(N){return k(N)===t}function X(N){return k(N)===i}function G(N){return k(N)===s}function Q(N){return k(N)===g}xe.AsyncMode=_,xe.ConcurrentMode=B,xe.ContextConsumer=L,xe.ContextProvider=K,xe.Element=ae,xe.ForwardRef=de,xe.Fragment=y,xe.Lazy=M,xe.Memo=A,xe.Portal=V,xe.Profiler=j,xe.StrictMode=R,xe.Suspense=q,xe.isAsyncMode=Z,xe.isConcurrentMode=T,xe.isContextConsumer=D,xe.isContextProvider=U,xe.isElement=W,xe.isForwardRef=z,xe.isFragment=H,xe.isLazy=J,xe.isMemo=F,xe.isPortal=$,xe.isProfiler=X,xe.isStrictMode=G,xe.isSuspense=Q,xe.isValidElementType=S,xe.typeOf=k})()),xe}var Gu;function fd(){return Gu||(Gu=1,process.env.NODE_ENV==="production"?Fs.exports=nE():Fs.exports=sE()),Fs.exports}/*
168
+ object-assign
169
+ (c) Sindre Sorhus
170
+ @license MIT
171
+ */var Vo,Ku;function iE(){if(Ku)return Vo;Ku=1;var r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function s(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},a=0;a<10;a++)o["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(o).map(function(h){return o[h]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(h){c[h]=h}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Vo=s()?Object.assign:function(i,o){for(var a,l=n(i),c,h=1;h<arguments.length;h++){a=Object(arguments[h]);for(var g in a)e.call(a,g)&&(l[g]=a[g]);if(r){c=r(a);for(var p=0;p<c.length;p++)t.call(a,c[p])&&(l[c[p]]=a[c[p]])}}return l},Vo}var Uo,Wu;function cl(){if(Wu)return Uo;Wu=1;var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uo=r,Uo}var Ho,Yu;function pd(){return Yu||(Yu=1,Ho=Function.call.bind(Object.prototype.hasOwnProperty)),Ho}var zo,Zu;function oE(){if(Zu)return zo;Zu=1;var r=function(){};if(process.env.NODE_ENV!=="production"){var e=cl(),t={},n=pd();r=function(i){var o="Warning: "+i;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function s(i,o,a,l,c){if(process.env.NODE_ENV!=="production"){for(var h in i)if(n(i,h)){var g;try{if(typeof i[h]!="function"){var p=Error((l||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=i[h](o,h,l,a,null,e)}catch(v){g=v}if(g&&!(g instanceof Error)&&r((l||"React class")+": type specification of "+a+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in t)){t[g.message]=!0;var m=c?c():"";r("Failed "+a+" type: "+g.message+(m??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(t={})},zo=s,zo}var Go,Xu;function aE(){if(Xu)return Go;Xu=1;var r=fd(),e=iE(),t=cl(),n=pd(),s=oE(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Go=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function g(T){var D=T&&(c&&T[c]||T[h]);if(typeof D=="function")return D}var p="<<anonymous>>",m={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:x(),arrayOf:S,element:k(),elementType:_(),instanceOf:B,node:de(),objectOf:K,oneOf:L,oneOfType:ae,shape:M,exact:A};function v(T,D){return T===D?T!==0||1/T===1/D:T!==T&&D!==D}function d(T,D){this.message=T,this.data=D&&typeof D=="object"?D:{},this.stack=""}d.prototype=Error.prototype;function b(T){if(process.env.NODE_ENV!=="production")var D={},U=0;function W(H,J,F,$,X,G,Q){if($=$||p,G=G||F,Q!==t){if(l){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=$+":"+F;!D[ue]&&U<3&&(i("You are manually calling a React.PropTypes validation function for the `"+G+"` prop on `"+$+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[ue]=!0,U++)}}return J[F]==null?H?J[F]===null?new d("The "+X+" `"+G+"` is marked as required "+("in `"+$+"`, but its value is `null`.")):new d("The "+X+" `"+G+"` is marked as required in "+("`"+$+"`, but its value is `undefined`.")):null:T(J,F,$,X,G)}var z=W.bind(null,!1);return z.isRequired=W.bind(null,!0),z}function E(T){function D(U,W,z,H,J,F){var $=U[W],X=R($);if(X!==T){var G=q($);return new d("Invalid "+H+" `"+J+"` of type "+("`"+G+"` supplied to `"+z+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return b(D)}function x(){return b(o)}function S(T){function D(U,W,z,H,J){if(typeof T!="function")return new d("Property `"+J+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var F=U[W];if(!Array.isArray(F)){var $=R(F);return new d("Invalid "+H+" `"+J+"` of type "+("`"+$+"` supplied to `"+z+"`, expected an array."))}for(var X=0;X<F.length;X++){var G=T(F,X,z,H,J+"["+X+"]",t);if(G instanceof Error)return G}return null}return b(D)}function k(){function T(D,U,W,z,H){var J=D[U];if(!a(J)){var F=R(J);return new d("Invalid "+z+" `"+H+"` of type "+("`"+F+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return b(T)}function _(){function T(D,U,W,z,H){var J=D[U];if(!r.isValidElementType(J)){var F=R(J);return new d("Invalid "+z+" `"+H+"` of type "+("`"+F+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return b(T)}function B(T){function D(U,W,z,H,J){if(!(U[W]instanceof T)){var F=T.name||p,$=Z(U[W]);return new d("Invalid "+H+" `"+J+"` of type "+("`"+$+"` supplied to `"+z+"`, expected ")+("instance of `"+F+"`."))}return null}return b(D)}function L(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),o;function D(U,W,z,H,J){for(var F=U[W],$=0;$<T.length;$++)if(v(F,T[$]))return null;var X=JSON.stringify(T,function(Q,N){var ue=q(N);return ue==="symbol"?String(N):N});return new d("Invalid "+H+" `"+J+"` of value `"+String(F)+"` "+("supplied to `"+z+"`, expected one of "+X+"."))}return b(D)}function K(T){function D(U,W,z,H,J){if(typeof T!="function")return new d("Property `"+J+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var F=U[W],$=R(F);if($!=="object")return new d("Invalid "+H+" `"+J+"` of type "+("`"+$+"` supplied to `"+z+"`, expected an object."));for(var X in F)if(n(F,X)){var G=T(F,X,z,H,J+"."+X,t);if(G instanceof Error)return G}return null}return b(D)}function ae(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var D=0;D<T.length;D++){var U=T[D];if(typeof U!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(U)+" at index "+D+"."),o}function W(z,H,J,F,$){for(var X=[],G=0;G<T.length;G++){var Q=T[G],N=Q(z,H,J,F,$,t);if(N==null)return null;N.data&&n(N.data,"expectedType")&&X.push(N.data.expectedType)}var ue=X.length>0?", expected one of type ["+X.join(", ")+"]":"";return new d("Invalid "+F+" `"+$+"` supplied to "+("`"+J+"`"+ue+"."))}return b(W)}function de(){function T(D,U,W,z,H){return V(D[U])?null:new d("Invalid "+z+" `"+H+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return b(T)}function y(T,D,U,W,z){return new d((T||"React class")+": "+D+" type `"+U+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function M(T){function D(U,W,z,H,J){var F=U[W],$=R(F);if($!=="object")return new d("Invalid "+H+" `"+J+"` of type `"+$+"` "+("supplied to `"+z+"`, expected `object`."));for(var X in T){var G=T[X];if(typeof G!="function")return y(z,H,J,X,q(G));var Q=G(F,X,z,H,J+"."+X,t);if(Q)return Q}return null}return b(D)}function A(T){function D(U,W,z,H,J){var F=U[W],$=R(F);if($!=="object")return new d("Invalid "+H+" `"+J+"` of type `"+$+"` "+("supplied to `"+z+"`, expected `object`."));var X=e({},U[W],T);for(var G in X){var Q=T[G];if(n(T,G)&&typeof Q!="function")return y(z,H,J,G,q(Q));if(!Q)return new d("Invalid "+H+" `"+J+"` key `"+G+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(U[W],null," ")+`
172
+ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var N=Q(F,G,z,H,J+"."+G,t);if(N)return N}return null}return b(D)}function V(T){switch(typeof T){case"number":case"string":case"undefined":return!0;case"boolean":return!T;case"object":if(Array.isArray(T))return T.every(V);if(T===null||a(T))return!0;var D=g(T);if(D){var U=D.call(T),W;if(D!==T.entries){for(;!(W=U.next()).done;)if(!V(W.value))return!1}else for(;!(W=U.next()).done;){var z=W.value;if(z&&!V(z[1]))return!1}}else return!1;return!0;default:return!1}}function j(T,D){return T==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function R(T){var D=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":j(D,T)?"symbol":D}function q(T){if(typeof T>"u"||T===null)return""+T;var D=R(T);if(D==="object"){if(T instanceof Date)return"date";if(T instanceof RegExp)return"regexp"}return D}function Y(T){var D=q(T);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function Z(T){return!T.constructor||!T.constructor.name?p:T.constructor.name}return m.checkPropTypes=s,m.resetWarningCache=s.resetWarningCache,m.PropTypes=m,m},Go}var Ko,Qu;function lE(){if(Qu)return Ko;Qu=1;var r=cl();function e(){}function t(){}return t.resetWarningCache=e,Ko=function(){function n(o,a,l,c,h,g){if(g!==r){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}n.isRequired=n;function s(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:s,element:n,elementType:n,instanceOf:s,node:n,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},Ko}var Ju;function uE(){if(Ju)return qs.exports;if(Ju=1,process.env.NODE_ENV!=="production"){var r=fd(),e=!0;qs.exports=aE()(r.isElement,e)}else qs.exports=lE()();return qs.exports}var cE=uE();const se=ct.getDefaultExportFromCjs(cE),gd={mask:se.oneOfType([se.array,se.func,se.string,se.instanceOf(RegExp),se.oneOf([Date,Number,ce.Masked]),se.instanceOf(ce.Masked)]),value:se.any,unmask:se.oneOfType([se.bool,se.oneOf(["typed"])]),prepare:se.func,prepareChar:se.func,validate:se.func,commit:se.func,overwrite:se.oneOfType([se.bool,se.oneOf(["shift"])]),eager:se.oneOfType([se.bool,se.oneOf(["append","remove"])]),skipInvalid:se.bool,onAccept:se.func,onComplete:se.func,placeholderChar:se.string,displayChar:se.string,lazy:se.bool,definitions:se.object,blocks:se.object,enum:se.arrayOf(se.string),maxLength:se.number,from:se.number,to:se.number,pattern:se.string,format:se.func,parse:se.func,autofix:se.oneOfType([se.bool,se.oneOf(["pad"])]),radix:se.string,thousandsSeparator:se.string,mapToRadix:se.arrayOf(se.string),scale:se.number,normalizeZeros:se.bool,padFractionalZeros:se.bool,min:se.oneOfType([se.number,se.instanceOf(Date)]),max:se.oneOfType([se.number,se.instanceOf(Date)]),dispatch:se.func,inputRef:se.oneOfType([se.func,se.shape({current:se.object})])},md=Object.keys(gd).filter(r=>r!=="value"),hE=["value","unmask","onAccept","onComplete","inputRef"],dE=md.filter(r=>hE.indexOf(r)<0);function fE(r){var e;const t=(e=class extends C.default.Component{constructor(i){super(i),this._inputRef=this._inputRef.bind(this)}componentDidMount(){this.props.mask&&this.initMask()}componentDidUpdate(){const i=this.props,o=this._extractMaskOptionsFromProps(i);if(o.mask)this.maskRef?(this.maskRef.updateOptions(o),"value"in i&&i.value!==void 0&&(this.maskValue=i.value)):this.initMask(o);else if(this.destroyMask(),"value"in i&&i.value!==void 0){var a;(a=this.element)!=null&&a.isContentEditable&&this.element.tagName!=="INPUT"&&this.element.tagName!=="TEXTAREA"?this.element.textContent=i.value:this.element.value=i.value}}componentWillUnmount(){this.destroyMask()}_inputRef(i){this.element=i,this.props.inputRef&&(Object.prototype.hasOwnProperty.call(this.props.inputRef,"current")?this.props.inputRef.current=i:this.props.inputRef(i))}initMask(i){i===void 0&&(i=this._extractMaskOptionsFromProps(this.props)),this.maskRef=ce(this.element,i).on("accept",this._onAccept.bind(this)).on("complete",this._onComplete.bind(this)),"value"in this.props&&this.props.value!==void 0&&(this.maskValue=this.props.value)}destroyMask(){this.maskRef&&(this.maskRef.destroy(),delete this.maskRef)}_extractMaskOptionsFromProps(i){const{...o}=i;return Object.keys(o).filter(a=>dE.indexOf(a)<0).forEach(a=>{delete o[a]}),o}_extractNonMaskProps(i){const{...o}=i;return md.forEach(a=>{a!=="maxLength"&&delete o[a]}),"defaultValue"in o||(o.defaultValue=i.mask?"":o.value),delete o.value,o}get maskValue(){return this.maskRef?this.props.unmask==="typed"?this.maskRef.typedValue:this.props.unmask?this.maskRef.unmaskedValue:this.maskRef.value:""}set maskValue(i){this.maskRef&&(i=i==null&&this.props.unmask!=="typed"?"":i,this.props.unmask==="typed"?this.maskRef.typedValue=i:this.props.unmask?this.maskRef.unmaskedValue=i:this.maskRef.value=i)}_onAccept(i){this.props.onAccept&&this.maskRef&&this.props.onAccept(this.maskValue,this.maskRef,i)}_onComplete(i){this.props.onComplete&&this.maskRef&&this.props.onComplete(this.maskValue,this.maskRef,i)}render(){return C.default.createElement(r,{...this._extractNonMaskProps(this.props),inputRef:this._inputRef})}},e.displayName=void 0,e.propTypes=void 0,e),n=r.displayName||r.name||"Component";return t.displayName="IMask("+n+")",t.propTypes=gd,C.default.forwardRef((s,i)=>C.default.createElement(t,{...s,ref:i}))}const pE=fE(r=>{let{inputRef:e,...t}=r;return C.default.createElement("input",{...t,ref:e})}),gE=(r,e)=>C.default.createElement(pE,{...r,ref:e}),mE=C.default.forwardRef(gE),vd=Ke.forwardRef(({className:r,type:e,variant:t,...n},s)=>I.jsx(mE,{className:Ce.cn(Si({variant:t}),r),ref:s,...n}));vd.displayName="MaskInput";var hl="Radio",[vE,yd]=le.createContextScope(hl),[yE,bE]=vE(hl),bd=C.forwardRef((r,e)=>{const{__scopeRadio:t,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:l,form:c,...h}=r,[g,p]=C.useState(null),m=Oe.useComposedRefs(e,b=>p(b)),v=C.useRef(!1),d=g?c||!!g.closest("form"):!0;return I.jsxs(yE,{scope:t,checked:s,disabled:o,children:[I.jsx(le.Primitive.button,{type:"button",role:"radio","aria-checked":s,"data-state":_d(s),"data-disabled":o?"":void 0,disabled:o,value:a,...h,ref:m,onClick:le.composeEventHandlers(r.onClick,b=>{s||l==null||l(),d&&(v.current=b.isPropagationStopped(),v.current||b.stopPropagation())})}),d&&I.jsx(xd,{control:g,bubbles:!v.current,name:n,value:a,checked:s,required:i,disabled:o,form:c,style:{transform:"translateX(-100%)"}})]})});bd.displayName=hl;var Ed="RadioIndicator",wd=C.forwardRef((r,e)=>{const{__scopeRadio:t,forceMount:n,...s}=r,i=bE(Ed,t);return I.jsx(le.Presence,{present:n||i.checked,children:I.jsx(le.Primitive.span,{"data-state":_d(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});wd.displayName=Ed;var EE="RadioBubbleInput",xd=C.forwardRef(({__scopeRadio:r,control:e,checked:t,bubbles:n=!0,...s},i)=>{const o=C.useRef(null),a=Oe.useComposedRefs(o,i),l=li(t),c=$t.useSize(e);return C.useEffect(()=>{const h=o.current;if(!h)return;const g=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(g,"checked").set;if(l!==t&&m){const v=new Event("click",{bubbles:n});m.call(h,t),h.dispatchEvent(v)}},[l,t,n]),I.jsx(le.Primitive.input,{type:"radio","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:a,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});xd.displayName=EE;function _d(r){return r?"checked":"unchecked"}var wE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ni="RadioGroup",[xE]=le.createContextScope(Ni,[ai.createRovingFocusGroupScope,yd]),Sd=ai.createRovingFocusGroupScope(),Ad=yd(),[_E,SE]=xE(Ni),Cd=C.forwardRef((r,e)=>{const{__scopeRadioGroup:t,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:h=!0,onValueChange:g,...p}=r,m=Sd(t),v=oc.useDirection(c),[d,b]=er.useControllableState({prop:i,defaultProp:s??null,onChange:g,caller:Ni});return I.jsx(_E,{scope:t,name:n,required:o,disabled:a,value:d,onValueChange:b,children:I.jsx(ai.Root,{asChild:!0,...m,orientation:l,dir:v,loop:h,children:I.jsx(le.Primitive.div,{role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:v,...p,ref:e})})})});Cd.displayName=Ni;var Td="RadioGroupItem",kd=C.forwardRef((r,e)=>{const{__scopeRadioGroup:t,disabled:n,...s}=r,i=SE(Td,t),o=i.disabled||n,a=Sd(t),l=Ad(t),c=C.useRef(null),h=Oe.useComposedRefs(e,c),g=i.value===s.value,p=C.useRef(!1);return C.useEffect(()=>{const m=d=>{wE.includes(d.key)&&(p.current=!0)},v=()=>p.current=!1;return document.addEventListener("keydown",m),document.addEventListener("keyup",v),()=>{document.removeEventListener("keydown",m),document.removeEventListener("keyup",v)}},[]),I.jsx(ai.Item,{asChild:!0,...a,focusable:!o,active:g,children:I.jsx(bd,{disabled:o,required:i.required,checked:g,...l,...s,name:i.name,ref:h,onCheck:()=>i.onValueChange(s.value),onKeyDown:le.composeEventHandlers(m=>{m.key==="Enter"&&m.preventDefault()}),onFocus:le.composeEventHandlers(s.onFocus,()=>{var m;p.current&&((m=c.current)==null||m.click())})})})});kd.displayName=Td;var AE="RadioGroupIndicator",Nd=C.forwardRef((r,e)=>{const{__scopeRadioGroup:t,...n}=r,s=Ad(t);return I.jsx(wd,{...s,...n,ref:e})});Nd.displayName=AE;var Id=Cd,Rd=kd,CE=Nd;const Od=C.forwardRef(({className:r,...e},t)=>I.jsx(Id,{className:Ce.cn("grid gap-2",r),...e,ref:t}));Od.displayName=Id.displayName;const Ld=C.forwardRef(({className:r,...e},t)=>I.jsx(Rd,{ref:t,className:Ce.cn("border-border-alpha-strong text-item-primary ring-offset-background focus-visible:ring-ring aspect-square size-4 rounded-full border focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",r),...e,children:I.jsx(CE,{className:"flex items-center justify-center",children:I.jsx(ac.Circle,{className:"size-2.5 fill-current text-current"})})}));Ld.displayName=Rd.displayName;function TE(r){const e=kE(r),t=C.forwardRef((n,s)=>{const{children:i,...o}=n,a=C.Children.toArray(i),l=a.find(IE);if(l){const c=l.props.children,h=a.map(g=>g===l?C.Children.count(c)>1?C.Children.only(null):C.isValidElement(c)?c.props.children:null:g);return I.jsx(e,{...o,ref:s,children:C.isValidElement(c)?C.cloneElement(c,void 0,h):null})}return I.jsx(e,{...o,ref:s,children:i})});return t.displayName=`${r}.Slot`,t}function kE(r){const e=C.forwardRef((t,n)=>{const{children:s,...i}=t;if(C.isValidElement(s)){const o=OE(s),a=RE(i,s.props);return s.type!==C.Fragment&&(a.ref=n?Oe.composeRefs(n,o):o),C.cloneElement(s,a)}return C.Children.count(s)>1?C.Children.only(null):null});return e.displayName=`${r}.SlotClone`,e}var NE=Symbol("radix.slottable");function IE(r){return C.isValidElement(r)&&typeof r.type=="function"&&"__radixId"in r.type&&r.type.__radixId===NE}function RE(r,e){const t={...e};for(const n in e){const s=r[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?t[n]=(...a)=>{const l=i(...a);return s(...a),l}:s&&(t[n]=s):n==="style"?t[n]={...s,...i}:n==="className"&&(t[n]=[s,i].filter(Boolean).join(" "))}return{...r,...t}}function OE(r){var n,s;let e=(n=Object.getOwnPropertyDescriptor(r.props,"ref"))==null?void 0:n.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?r.ref:(e=(s=Object.getOwnPropertyDescriptor(r,"ref"))==null?void 0:s.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?r.props.ref:r.props.ref||r.ref)}var LE=[" ","Enter","ArrowUp","ArrowDown"],ME=[" ","Enter"],Tr="Select",[Ii,Ri,DE]=Of.createCollection(Tr),[vn]=le.createContextScope(Tr,[DE,$t.createPopperScope]),Oi=$t.createPopperScope(),[PE,ur]=vn(Tr),[BE,qE]=vn(Tr),Md=r=>{const{__scopeSelect:e,children:t,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:l,dir:c,name:h,autoComplete:g,disabled:p,required:m,form:v}=r,d=Oi(e),[b,E]=C.useState(null),[x,S]=C.useState(null),[k,_]=C.useState(!1),B=oc.useDirection(c),[L,K]=er.useControllableState({prop:n,defaultProp:s??!1,onChange:i,caller:Tr}),[ae,de]=er.useControllableState({prop:o,defaultProp:a,onChange:l,caller:Tr}),y=C.useRef(null),M=b?v||!!b.closest("form"):!0,[A,V]=C.useState(new Set),j=Array.from(A).map(R=>R.props.value).join(";");return I.jsx($t.Root2,{...d,children:I.jsxs(PE,{required:m,scope:e,trigger:b,onTriggerChange:E,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:k,onValueNodeHasChildrenChange:_,contentId:er.useId(),value:ae,onValueChange:de,open:L,onOpenChange:K,dir:B,triggerPointerDownPosRef:y,disabled:p,children:[I.jsx(Ii.Provider,{scope:e,children:I.jsx(BE,{scope:r.__scopeSelect,onNativeOptionAdd:C.useCallback(R=>{V(q=>new Set(q).add(R))},[]),onNativeOptionRemove:C.useCallback(R=>{V(q=>{const Y=new Set(q);return Y.delete(R),Y})},[]),children:t})}),M?I.jsxs(of,{"aria-hidden":!0,required:m,tabIndex:-1,name:h,autoComplete:g,value:ae,onChange:R=>de(R.target.value),disabled:p,form:v,children:[ae===void 0?I.jsx("option",{value:""}):null,Array.from(A)]},j):null]})})};Md.displayName=Tr;var Dd="SelectTrigger",Pd=C.forwardRef((r,e)=>{const{__scopeSelect:t,disabled:n=!1,...s}=r,i=Oi(t),o=ur(Dd,t),a=o.disabled||n,l=Oe.useComposedRefs(e,o.onTriggerChange),c=Ri(t),h=C.useRef("touch"),[g,p,m]=lf(d=>{const b=c().filter(S=>!S.disabled),E=b.find(S=>S.value===o.value),x=uf(b,d,E);x!==void 0&&o.onValueChange(x.value)}),v=d=>{a||(o.onOpenChange(!0),m()),d&&(o.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return I.jsx($t.Anchor,{asChild:!0,...i,children:I.jsx(le.Primitive.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":af(o.value)?"":void 0,...s,ref:l,onClick:le.composeEventHandlers(s.onClick,d=>{d.currentTarget.focus(),h.current!=="mouse"&&v(d)}),onPointerDown:le.composeEventHandlers(s.onPointerDown,d=>{h.current=d.pointerType;const b=d.target;b.hasPointerCapture(d.pointerId)&&b.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(v(d),d.preventDefault())}),onKeyDown:le.composeEventHandlers(s.onKeyDown,d=>{const b=g.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&p(d.key),!(b&&d.key===" ")&&LE.includes(d.key)&&(v(),d.preventDefault())})})})});Pd.displayName=Dd;var Bd="SelectValue",qd=C.forwardRef((r,e)=>{const{__scopeSelect:t,className:n,style:s,children:i,placeholder:o="",...a}=r,l=ur(Bd,t),{onValueNodeHasChildrenChange:c}=l,h=i!==void 0,g=Oe.useComposedRefs(e,l.onValueNodeChange);return ir.useLayoutEffect2(()=>{c(h)},[c,h]),I.jsx(le.Primitive.span,{...a,ref:g,style:{pointerEvents:"none"},children:af(l.value)?I.jsx(I.Fragment,{children:o}):i})});qd.displayName=Bd;var FE="SelectIcon",Fd=C.forwardRef((r,e)=>{const{__scopeSelect:t,children:n,...s}=r;return I.jsx(le.Primitive.span,{"aria-hidden":!0,...s,ref:e,children:n||"▼"})});Fd.displayName=FE;var jE="SelectPortal",jd=r=>I.jsx(Te.Portal,{asChild:!0,...r});jd.displayName=jE;var kr="SelectContent",$d=C.forwardRef((r,e)=>{const t=ur(kr,r.__scopeSelect),[n,s]=C.useState();if(ir.useLayoutEffect2(()=>{s(new DocumentFragment)},[]),!t.open){const i=n;return i?cc.createPortal(I.jsx(Vd,{scope:r.__scopeSelect,children:I.jsx(Ii.Slot,{scope:r.__scopeSelect,children:I.jsx("div",{children:r.children})})}),i):null}return I.jsx(Ud,{...r,ref:e})});$d.displayName=kr;var it=10,[Vd,cr]=vn(kr),$E="SelectContentImpl",VE=TE("SelectContent.RemoveScroll"),Ud=C.forwardRef((r,e)=>{const{__scopeSelect:t,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:h,arrowPadding:g,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:d,avoidCollisions:b,...E}=r,x=ur(kr,t),[S,k]=C.useState(null),[_,B]=C.useState(null),L=Oe.useComposedRefs(e,F=>k(F)),[K,ae]=C.useState(null),[de,y]=C.useState(null),M=Ri(t),[A,V]=C.useState(!1),j=C.useRef(!1);C.useEffect(()=>{if(S)return Te.hideOthers(S)},[S]),Te.useFocusGuards();const R=C.useCallback(F=>{const[$,...X]=M().map(N=>N.ref.current),[G]=X.slice(-1),Q=document.activeElement;for(const N of F)if(N===Q||(N==null||N.scrollIntoView({block:"nearest"}),N===$&&_&&(_.scrollTop=0),N===G&&_&&(_.scrollTop=_.scrollHeight),N==null||N.focus(),document.activeElement!==Q))return},[M,_]),q=C.useCallback(()=>R([K,S]),[R,K,S]);C.useEffect(()=>{A&&q()},[A,q]);const{onOpenChange:Y,triggerPointerDownPosRef:Z}=x;C.useEffect(()=>{if(S){let F={x:0,y:0};const $=G=>{var Q,N;F={x:Math.abs(Math.round(G.pageX)-(((Q=Z.current)==null?void 0:Q.x)??0)),y:Math.abs(Math.round(G.pageY)-(((N=Z.current)==null?void 0:N.y)??0))}},X=G=>{F.x<=10&&F.y<=10?G.preventDefault():S.contains(G.target)||Y(!1),document.removeEventListener("pointermove",$),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",$),document.addEventListener("pointerup",X,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",$),document.removeEventListener("pointerup",X,{capture:!0})}}},[S,Y,Z]),C.useEffect(()=>{const F=()=>Y(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[Y]);const[T,D]=lf(F=>{const $=M().filter(Q=>!Q.disabled),X=$.find(Q=>Q.ref.current===document.activeElement),G=uf($,F,X);G&&setTimeout(()=>G.ref.current.focus())}),U=C.useCallback((F,$,X)=>{const G=!j.current&&!X;(x.value!==void 0&&x.value===$||G)&&(ae(F),G&&(j.current=!0))},[x.value]),W=C.useCallback(()=>S==null?void 0:S.focus(),[S]),z=C.useCallback((F,$,X)=>{const G=!j.current&&!X;(x.value!==void 0&&x.value===$||G)&&y(F)},[x.value]),H=n==="popper"?Na:Hd,J=H===Na?{side:a,sideOffset:l,align:c,alignOffset:h,arrowPadding:g,collisionBoundary:p,collisionPadding:m,sticky:v,hideWhenDetached:d,avoidCollisions:b}:{};return I.jsx(Vd,{scope:t,content:S,viewport:_,onViewportChange:B,itemRefCallback:U,selectedItem:K,onItemLeave:W,itemTextRefCallback:z,focusSelectedItem:q,selectedItemText:de,position:n,isPositioned:A,searchRef:T,children:I.jsx(Te.ReactRemoveScroll,{as:VE,allowPinchZoom:!0,children:I.jsx(Te.FocusScope,{asChild:!0,trapped:x.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:le.composeEventHandlers(s,F=>{var $;($=x.trigger)==null||$.focus({preventScroll:!0}),F.preventDefault()}),children:I.jsx(Lf.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:I.jsx(H,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:F=>F.preventDefault(),...E,...J,onPlaced:()=>V(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:le.composeEventHandlers(E.onKeyDown,F=>{const $=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!$&&F.key.length===1&&D(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let G=M().filter(Q=>!Q.disabled).map(Q=>Q.ref.current);if(["ArrowUp","End"].includes(F.key)&&(G=G.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const Q=F.target,N=G.indexOf(Q);G=G.slice(N+1)}setTimeout(()=>R(G)),F.preventDefault()}})})})})})})});Ud.displayName=$E;var UE="SelectItemAlignedPosition",Hd=C.forwardRef((r,e)=>{const{__scopeSelect:t,onPlaced:n,...s}=r,i=ur(kr,t),o=cr(kr,t),[a,l]=C.useState(null),[c,h]=C.useState(null),g=Oe.useComposedRefs(e,L=>h(L)),p=Ri(t),m=C.useRef(!1),v=C.useRef(!0),{viewport:d,selectedItem:b,selectedItemText:E,focusSelectedItem:x}=o,S=C.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&d&&b&&E){const L=i.trigger.getBoundingClientRect(),K=c.getBoundingClientRect(),ae=i.valueNode.getBoundingClientRect(),de=E.getBoundingClientRect();if(i.dir!=="rtl"){const Q=de.left-K.left,N=ae.left-Q,ue=L.left-N,ge=L.width+ue,be=Math.max(ge,K.width),kt=window.innerWidth-it,Ht=yl.clamp(N,[it,Math.max(it,kt-be)]);a.style.minWidth=ge+"px",a.style.left=Ht+"px"}else{const Q=K.right-de.right,N=window.innerWidth-ae.right-Q,ue=window.innerWidth-L.right-N,ge=L.width+ue,be=Math.max(ge,K.width),kt=window.innerWidth-it,Ht=yl.clamp(N,[it,Math.max(it,kt-be)]);a.style.minWidth=ge+"px",a.style.right=Ht+"px"}const y=p(),M=window.innerHeight-it*2,A=d.scrollHeight,V=window.getComputedStyle(c),j=parseInt(V.borderTopWidth,10),R=parseInt(V.paddingTop,10),q=parseInt(V.borderBottomWidth,10),Y=parseInt(V.paddingBottom,10),Z=j+R+A+Y+q,T=Math.min(b.offsetHeight*5,Z),D=window.getComputedStyle(d),U=parseInt(D.paddingTop,10),W=parseInt(D.paddingBottom,10),z=L.top+L.height/2-it,H=M-z,J=b.offsetHeight/2,F=b.offsetTop+J,$=j+R+F,X=Z-$;if($<=z){const Q=y.length>0&&b===y[y.length-1].ref.current;a.style.bottom="0px";const N=c.clientHeight-d.offsetTop-d.offsetHeight,ue=Math.max(H,J+(Q?W:0)+N+q),ge=$+ue;a.style.height=ge+"px"}else{const Q=y.length>0&&b===y[0].ref.current;a.style.top="0px";const ue=Math.max(z,j+d.offsetTop+(Q?U:0)+J)+X;a.style.height=ue+"px",d.scrollTop=$-z+d.offsetTop}a.style.margin=`${it}px 0`,a.style.minHeight=T+"px",a.style.maxHeight=M+"px",n==null||n(),requestAnimationFrame(()=>m.current=!0)}},[p,i.trigger,i.valueNode,a,c,d,b,E,i.dir,n]);ir.useLayoutEffect2(()=>S(),[S]);const[k,_]=C.useState();ir.useLayoutEffect2(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const B=C.useCallback(L=>{L&&v.current===!0&&(S(),x==null||x(),v.current=!1)},[S,x]);return I.jsx(zE,{scope:t,contentWrapper:a,shouldExpandOnScrollRef:m,onScrollButtonChange:B,children:I.jsx("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:I.jsx(le.Primitive.div,{...s,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});Hd.displayName=UE;var HE="SelectPopperPosition",Na=C.forwardRef((r,e)=>{const{__scopeSelect:t,align:n="start",collisionPadding:s=it,...i}=r,o=Oi(t);return I.jsx($t.Content,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Na.displayName=HE;var[zE,dl]=vn(kr,{}),Ia="SelectViewport",zd=C.forwardRef((r,e)=>{const{__scopeSelect:t,nonce:n,...s}=r,i=cr(Ia,t),o=dl(Ia,t),a=Oe.useComposedRefs(e,i.onViewportChange),l=C.useRef(0);return I.jsxs(I.Fragment,{children:[I.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),I.jsx(Ii.Slot,{scope:t,children:I.jsx(le.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:le.composeEventHandlers(s.onScroll,c=>{const h=c.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:p}=o;if(p!=null&&p.current&&g){const m=Math.abs(l.current-h.scrollTop);if(m>0){const v=window.innerHeight-it*2,d=parseFloat(g.style.minHeight),b=parseFloat(g.style.height),E=Math.max(d,b);if(E<v){const x=E+m,S=Math.min(v,x),k=x-S;g.style.height=S+"px",g.style.bottom==="0px"&&(h.scrollTop=k>0?k:0,g.style.justifyContent="flex-end")}}}l.current=h.scrollTop})})})]})});zd.displayName=Ia;var Gd="SelectGroup",[GE,KE]=vn(Gd),Kd=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r,s=er.useId();return I.jsx(GE,{scope:t,id:s,children:I.jsx(le.Primitive.div,{role:"group","aria-labelledby":s,...n,ref:e})})});Kd.displayName=Gd;var Wd="SelectLabel",Yd=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r,s=KE(Wd,t);return I.jsx(le.Primitive.div,{id:s.id,...n,ref:e})});Yd.displayName=Wd;var oi="SelectItem",[WE,Zd]=vn(oi),Xd=C.forwardRef((r,e)=>{const{__scopeSelect:t,value:n,disabled:s=!1,textValue:i,...o}=r,a=ur(oi,t),l=cr(oi,t),c=a.value===n,[h,g]=C.useState(i??""),[p,m]=C.useState(!1),v=Oe.useComposedRefs(e,x=>{var S;return(S=l.itemRefCallback)==null?void 0:S.call(l,x,n,s)}),d=er.useId(),b=C.useRef("touch"),E=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return I.jsx(WE,{scope:t,value:n,disabled:s,textId:d,isSelected:c,onItemTextChange:C.useCallback(x=>{g(S=>S||((x==null?void 0:x.textContent)??"").trim())},[]),children:I.jsx(Ii.ItemSlot,{scope:t,value:n,disabled:s,textValue:h,children:I.jsx(le.Primitive.div,{role:"option","aria-labelledby":d,"data-highlighted":p?"":void 0,"aria-selected":c&&p,"data-state":c?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:v,onFocus:le.composeEventHandlers(o.onFocus,()=>m(!0)),onBlur:le.composeEventHandlers(o.onBlur,()=>m(!1)),onClick:le.composeEventHandlers(o.onClick,()=>{b.current!=="mouse"&&E()}),onPointerUp:le.composeEventHandlers(o.onPointerUp,()=>{b.current==="mouse"&&E()}),onPointerDown:le.composeEventHandlers(o.onPointerDown,x=>{b.current=x.pointerType}),onPointerMove:le.composeEventHandlers(o.onPointerMove,x=>{var S;b.current=x.pointerType,s?(S=l.onItemLeave)==null||S.call(l):b.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:le.composeEventHandlers(o.onPointerLeave,x=>{var S;x.currentTarget===document.activeElement&&((S=l.onItemLeave)==null||S.call(l))}),onKeyDown:le.composeEventHandlers(o.onKeyDown,x=>{var k;((k=l.searchRef)==null?void 0:k.current)!==""&&x.key===" "||(ME.includes(x.key)&&E(),x.key===" "&&x.preventDefault())})})})})});Xd.displayName=oi;var jn="SelectItemText",Qd=C.forwardRef((r,e)=>{const{__scopeSelect:t,className:n,style:s,...i}=r,o=ur(jn,t),a=cr(jn,t),l=Zd(jn,t),c=qE(jn,t),[h,g]=C.useState(null),p=Oe.useComposedRefs(e,E=>g(E),l.onItemTextChange,E=>{var x;return(x=a.itemTextRefCallback)==null?void 0:x.call(a,E,l.value,l.disabled)}),m=h==null?void 0:h.textContent,v=C.useMemo(()=>I.jsx("option",{value:l.value,disabled:l.disabled,children:m},l.value),[l.disabled,l.value,m]),{onNativeOptionAdd:d,onNativeOptionRemove:b}=c;return ir.useLayoutEffect2(()=>(d(v),()=>b(v)),[d,b,v]),I.jsxs(I.Fragment,{children:[I.jsx(le.Primitive.span,{id:l.textId,...i,ref:p}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?cc.createPortal(i.children,o.valueNode):null]})});Qd.displayName=jn;var Jd="SelectItemIndicator",ef=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r;return Zd(Jd,t).isSelected?I.jsx(le.Primitive.span,{"aria-hidden":!0,...n,ref:e}):null});ef.displayName=Jd;var Ra="SelectScrollUpButton",tf=C.forwardRef((r,e)=>{const t=cr(Ra,r.__scopeSelect),n=dl(Ra,r.__scopeSelect),[s,i]=C.useState(!1),o=Oe.useComposedRefs(e,n.onScrollButtonChange);return ir.useLayoutEffect2(()=>{if(t.viewport&&t.isPositioned){let a=function(){const c=l.scrollTop>0;i(c)};const l=t.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),s?I.jsx(nf,{...r,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=t;a&&l&&(a.scrollTop=a.scrollTop-l.offsetHeight)}}):null});tf.displayName=Ra;var Oa="SelectScrollDownButton",rf=C.forwardRef((r,e)=>{const t=cr(Oa,r.__scopeSelect),n=dl(Oa,r.__scopeSelect),[s,i]=C.useState(!1),o=Oe.useComposedRefs(e,n.onScrollButtonChange);return ir.useLayoutEffect2(()=>{if(t.viewport&&t.isPositioned){let a=function(){const c=l.scrollHeight-l.clientHeight,h=Math.ceil(l.scrollTop)<c;i(h)};const l=t.viewport;return a(),l.addEventListener("scroll",a),()=>l.removeEventListener("scroll",a)}},[t.viewport,t.isPositioned]),s?I.jsx(nf,{...r,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:l}=t;a&&l&&(a.scrollTop=a.scrollTop+l.offsetHeight)}}):null});rf.displayName=Oa;var nf=C.forwardRef((r,e)=>{const{__scopeSelect:t,onAutoScroll:n,...s}=r,i=cr("SelectScrollButton",t),o=C.useRef(null),a=Ri(t),l=C.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return C.useEffect(()=>()=>l(),[l]),ir.useLayoutEffect2(()=>{var h;const c=a().find(g=>g.ref.current===document.activeElement);(h=c==null?void 0:c.ref.current)==null||h.scrollIntoView({block:"nearest"})},[a]),I.jsx(le.Primitive.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:le.composeEventHandlers(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:le.composeEventHandlers(s.onPointerMove,()=>{var c;(c=i.onItemLeave)==null||c.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:le.composeEventHandlers(s.onPointerLeave,()=>{l()})})}),YE="SelectSeparator",sf=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r;return I.jsx(le.Primitive.div,{"aria-hidden":!0,...n,ref:e})});sf.displayName=YE;var La="SelectArrow",ZE=C.forwardRef((r,e)=>{const{__scopeSelect:t,...n}=r,s=Oi(t),i=ur(La,t),o=cr(La,t);return i.open&&o.position==="popper"?I.jsx($t.Arrow,{...s,...n,ref:e}):null});ZE.displayName=La;var XE="SelectBubbleInput",of=C.forwardRef(({__scopeSelect:r,value:e,...t},n)=>{const s=C.useRef(null),i=Oe.useComposedRefs(n,s),o=li(e);return C.useEffect(()=>{const a=s.current;if(!a)return;const l=window.HTMLSelectElement.prototype,h=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==e&&h){const g=new Event("change",{bubbles:!0});h.call(a,e),a.dispatchEvent(g)}},[o,e]),I.jsx(le.Primitive.select,{...t,style:{...Df.VISUALLY_HIDDEN_STYLES,...t.style},ref:i,defaultValue:e})});of.displayName=XE;function af(r){return r===""||r===void 0}function lf(r){const e=Mf.useCallbackRef(r),t=C.useRef(""),n=C.useRef(0),s=C.useCallback(o=>{const a=t.current+o;e(a),(function l(c){t.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))})(a)},[e]),i=C.useCallback(()=>{t.current="",window.clearTimeout(n.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(n.current),[]),[t,s,i]}function uf(r,e,t){const s=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,i=t?r.indexOf(t):-1;let o=QE(r,Math.max(i,0));s.length===1&&(o=o.filter(c=>c!==t));const l=o.find(c=>c.textValue.toLowerCase().startsWith(s.toLowerCase()));return l!==t?l:void 0}function QE(r,e){return r.map((t,n)=>r[(e+n)%r.length])}var JE=Md,cf=Pd,ew=qd,tw=Fd,rw=jd,hf=$d,nw=zd,sw=Kd,df=Yd,ff=Xd,iw=Qd,ow=ef,pf=tf,gf=rf,mf=sf;function aw(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,en._setPrototypeOf(r,e)}var ec=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function lw(r,e){return!!(r===e||ec(r)&&ec(e))}function uw(r,e){if(r.length!==e.length)return!1;for(var t=0;t<r.length;t++)if(!lw(r[t],e[t]))return!1;return!0}function Wo(r,e){e===void 0&&(e=uw);var t,n=[],s,i=!1;function o(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&t===this&&e(a,n)||(s=r.apply(this,a),i=!0,t=this,n=a),s}return o}var cw=typeof performance=="object"&&typeof performance.now=="function",tc=cw?function(){return performance.now()}:function(){return Date.now()};function rc(r){cancelAnimationFrame(r.id)}function hw(r,e){var t=tc();function n(){tc()-t>=e?r.call(null):s.id=requestAnimationFrame(n)}var s={id:requestAnimationFrame(n)};return s}var Yo=-1;function nc(r){if(r===void 0&&(r=!1),Yo===-1||r){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",document.body.appendChild(e),Yo=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Yo}var Kr=null;function sc(r){if(r===void 0&&(r=!1),Kr===null||r){var e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";var n=document.createElement("div"),s=n.style;return s.width="100px",s.height="100px",e.appendChild(n),document.body.appendChild(e),e.scrollLeft>0?Kr="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?Kr="negative":Kr="positive-ascending"),document.body.removeChild(e),Kr}return Kr}process.env.NODE_ENV;var dw=150,fw=function(e,t){return e},Ys=null,Zs=null;process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof window.WeakSet<"u"&&(Ys=new WeakSet,Zs=new WeakSet);function pw(r){var e,t=r.getItemOffset,n=r.getEstimatedTotalSize,s=r.getItemSize,i=r.getOffsetForIndexAndAlignment,o=r.getStartIndexForOffset,a=r.getStopIndexForStartIndex,l=r.initInstanceProps,c=r.shouldResetStyleCacheOnItemSizeChange,h=r.validateProps;return e=(function(g){aw(p,g);function p(v){var d;return d=g.call(this,v)||this,d._instanceProps=l(d.props,en._assertThisInitialized(d)),d._outerRef=void 0,d._resetIsScrollingTimeoutId=null,d.state={instance:en._assertThisInitialized(d),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof d.props.initialScrollOffset=="number"?d.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},d._callOnItemsRendered=void 0,d._callOnItemsRendered=Wo(function(b,E,x,S){return d.props.onItemsRendered({overscanStartIndex:b,overscanStopIndex:E,visibleStartIndex:x,visibleStopIndex:S})}),d._callOnScroll=void 0,d._callOnScroll=Wo(function(b,E,x){return d.props.onScroll({scrollDirection:b,scrollOffset:E,scrollUpdateWasRequested:x})}),d._getItemStyle=void 0,d._getItemStyle=function(b){var E=d.props,x=E.direction,S=E.itemSize,k=E.layout,_=d._getItemStyleCache(c&&S,c&&k,c&&x),B;if(_.hasOwnProperty(b))B=_[b];else{var L=t(d.props,b,d._instanceProps),K=s(d.props,b,d._instanceProps),ae=x==="horizontal"||k==="horizontal",de=x==="rtl",y=ae?L:0;_[b]=B={position:"absolute",left:de?void 0:y,right:de?y:void 0,top:ae?0:L,height:ae?"100%":K,width:ae?K:"100%"}}return B},d._getItemStyleCache=void 0,d._getItemStyleCache=Wo(function(b,E,x){return{}}),d._onScrollHorizontal=function(b){var E=b.currentTarget,x=E.clientWidth,S=E.scrollLeft,k=E.scrollWidth;d.setState(function(_){if(_.scrollOffset===S)return null;var B=d.props.direction,L=S;if(B==="rtl")switch(sc()){case"negative":L=-S;break;case"positive-descending":L=k-x-S;break}return L=Math.max(0,Math.min(L,k-x)),{isScrolling:!0,scrollDirection:_.scrollOffset<L?"forward":"backward",scrollOffset:L,scrollUpdateWasRequested:!1}},d._resetIsScrollingDebounced)},d._onScrollVertical=function(b){var E=b.currentTarget,x=E.clientHeight,S=E.scrollHeight,k=E.scrollTop;d.setState(function(_){if(_.scrollOffset===k)return null;var B=Math.max(0,Math.min(k,S-x));return{isScrolling:!0,scrollDirection:_.scrollOffset<B?"forward":"backward",scrollOffset:B,scrollUpdateWasRequested:!1}},d._resetIsScrollingDebounced)},d._outerRefSetter=function(b){var E=d.props.outerRef;d._outerRef=b,typeof E=="function"?E(b):E!=null&&typeof E=="object"&&E.hasOwnProperty("current")&&(E.current=b)},d._resetIsScrollingDebounced=function(){d._resetIsScrollingTimeoutId!==null&&rc(d._resetIsScrollingTimeoutId),d._resetIsScrollingTimeoutId=hw(d._resetIsScrolling,dw)},d._resetIsScrolling=function(){d._resetIsScrollingTimeoutId=null,d.setState({isScrolling:!1},function(){d._getItemStyleCache(-1,null)})},d}p.getDerivedStateFromProps=function(d,b){return gw(d,b),h(d),null};var m=p.prototype;return m.scrollTo=function(d){d=Math.max(0,d),this.setState(function(b){return b.scrollOffset===d?null:{scrollDirection:b.scrollOffset<d?"forward":"backward",scrollOffset:d,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(d,b){b===void 0&&(b="auto");var E=this.props,x=E.itemCount,S=E.layout,k=this.state.scrollOffset;d=Math.max(0,Math.min(d,x-1));var _=0;if(this._outerRef){var B=this._outerRef;S==="vertical"?_=B.scrollWidth>B.clientWidth?nc():0:_=B.scrollHeight>B.clientHeight?nc():0}this.scrollTo(i(this.props,d,b,k,this._instanceProps,_))},m.componentDidMount=function(){var d=this.props,b=d.direction,E=d.initialScrollOffset,x=d.layout;if(typeof E=="number"&&this._outerRef!=null){var S=this._outerRef;b==="horizontal"||x==="horizontal"?S.scrollLeft=E:S.scrollTop=E}this._callPropsCallbacks()},m.componentDidUpdate=function(){var d=this.props,b=d.direction,E=d.layout,x=this.state,S=x.scrollOffset,k=x.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var _=this._outerRef;if(b==="horizontal"||E==="horizontal")if(b==="rtl")switch(sc()){case"negative":_.scrollLeft=-S;break;case"positive-ascending":_.scrollLeft=S;break;default:var B=_.clientWidth,L=_.scrollWidth;_.scrollLeft=L-B-S;break}else _.scrollLeft=S;else _.scrollTop=S}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&rc(this._resetIsScrollingTimeoutId)},m.render=function(){var d=this.props,b=d.children,E=d.className,x=d.direction,S=d.height,k=d.innerRef,_=d.innerElementType,B=d.innerTagName,L=d.itemCount,K=d.itemData,ae=d.itemKey,de=ae===void 0?fw:ae,y=d.layout,M=d.outerElementType,A=d.outerTagName,V=d.style,j=d.useIsScrolling,R=d.width,q=this.state.isScrolling,Y=x==="horizontal"||y==="horizontal",Z=Y?this._onScrollHorizontal:this._onScrollVertical,T=this._getRangeToRender(),D=T[0],U=T[1],W=[];if(L>0)for(var z=D;z<=U;z++)W.push(Ke.createElement(b,{data:K,key:de(z,K),index:z,isScrolling:j?q:void 0,style:this._getItemStyle(z)}));var H=n(this.props,this._instanceProps);return Ke.createElement(M||A||"div",{className:E,onScroll:Z,ref:this._outerRefSetter,style:en._extends({position:"relative",height:S,width:R,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},V)},Ke.createElement(_||B||"div",{children:W,ref:k,style:{height:Y?"100%":H,pointerEvents:q?"none":void 0,width:Y?H:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var d=this.props.itemCount;if(d>0){var b=this._getRangeToRender(),E=b[0],x=b[1],S=b[2],k=b[3];this._callOnItemsRendered(E,x,S,k)}}if(typeof this.props.onScroll=="function"){var _=this.state,B=_.scrollDirection,L=_.scrollOffset,K=_.scrollUpdateWasRequested;this._callOnScroll(B,L,K)}},m._getRangeToRender=function(){var d=this.props,b=d.itemCount,E=d.overscanCount,x=this.state,S=x.isScrolling,k=x.scrollDirection,_=x.scrollOffset;if(b===0)return[0,0,0,0];var B=o(this.props,_,this._instanceProps),L=a(this.props,B,_,this._instanceProps),K=!S||k==="backward"?Math.max(1,E):1,ae=!S||k==="forward"?Math.max(1,E):1;return[Math.max(0,B-K),Math.max(0,Math.min(b-1,L+ae)),B,L]},p})(Ke.PureComponent),e.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},e}var gw=function(e,t){var n=e.children,s=e.direction,i=e.height,o=e.layout,a=e.innerTagName,l=e.outerTagName,c=e.width,h=t.instance;if(process.env.NODE_ENV!=="production"){(a!=null||l!=null)&&Zs&&!Zs.has(h)&&(Zs.add(h),console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead."));var g=s==="horizontal"||o==="horizontal";switch(s){case"horizontal":case"vertical":Ys&&!Ys.has(h)&&(Ys.add(h),console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.'));break;case"ltr":case"rtl":break;default:throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". '+('"'+s+'" was specified.'))}switch(o){case"horizontal":case"vertical":break;default:throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". '+('"'+o+'" was specified.'))}if(n==null)throw Error('An invalid "children" prop has been specified. Value should be a React component. '+('"'+(n===null?"null":typeof n)+'" was specified.'));if(g&&typeof c!="number")throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. '+('"'+(c===null?"null":typeof c)+'" was specified.'));if(!g&&typeof i!="number")throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. '+('"'+(i===null?"null":typeof i)+'" was specified.'))}},mw=pw({getItemOffset:function(e,t){var n=e.itemSize;return t*n},getItemSize:function(e,t){var n=e.itemSize;return n},getEstimatedTotalSize:function(e){var t=e.itemCount,n=e.itemSize;return n*t},getOffsetForIndexAndAlignment:function(e,t,n,s,i,o){var a=e.direction,l=e.height,c=e.itemCount,h=e.itemSize,g=e.layout,p=e.width,m=a==="horizontal"||g==="horizontal",v=m?p:l,d=Math.max(0,c*h-v),b=Math.min(d,t*h),E=Math.max(0,t*h-v+h+o);switch(n==="smart"&&(s>=E-v&&s<=b+v?n="auto":n="center"),n){case"start":return b;case"end":return E;case"center":{var x=Math.round(E+(b-E)/2);return x<Math.ceil(v/2)?0:x>d+Math.floor(v/2)?d:x}case"auto":default:return s>=E&&s<=b?s:s<E?E:b}},getStartIndexForOffset:function(e,t){var n=e.itemCount,s=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/s)))},getStopIndexForStartIndex:function(e,t,n){var s=e.direction,i=e.height,o=e.itemCount,a=e.itemSize,l=e.layout,c=e.width,h=s==="horizontal"||l==="horizontal",g=t*a,p=h?c:i,m=Math.ceil((p+n-g)/a);return Math.max(0,Math.min(o-1,t+m-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){var t=e.itemSize;if(process.env.NODE_ENV!=="production"&&typeof t!="number")throw Error('An invalid "itemSize" prop has been specified. Value should be a number. '+('"'+(t===null?"null":typeof t)+'" was specified.'))}});const vw=JE,yw=sw,bw=ew,vf=C.forwardRef(({className:r,children:e,variant:t="default",...n},s)=>I.jsxs(cf,{ref:s,className:Ce.cn("border-border ring-offset-background placeholder:text-muted-foreground focus:ring-offset-none focus:ring-primary flex h-10 w-full items-center justify-between rounded-md border bg-white px-3 py-2 text-sm focus:ring-2 focus:ring-offset-transparent focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 dark:bg-transparent [&>span]:line-clamp-1",t==="failure"&&"focus:ring-destructive hover:bg-destructive/20 bg-destructive/20 border-destructive !text-destructive",r),...n,children:[e,I.jsx(tw,{asChild:!0,children:I.jsx(lc.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));vf.displayName=cf.displayName;const fl=C.forwardRef(({className:r,...e},t)=>I.jsx(pf,{ref:t,className:Ce.cn("flex cursor-default items-center justify-center py-1",r),...e,children:I.jsx(Ff,{className:"h-4 w-4"})}));fl.displayName=pf.displayName;const pl=C.forwardRef(({className:r,...e},t)=>I.jsx(gf,{ref:t,className:Ce.cn("flex cursor-default items-center justify-center py-1",r),...e,children:I.jsx(lc.ChevronDown,{className:"h-4 w-4"})}));pl.displayName=gf.displayName;const gl=C.forwardRef(({className:r,children:e,position:t="popper",...n},s)=>I.jsx(rw,{children:I.jsxs(hf,{ref:s,className:Ce.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border shadow-md",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",r),position:t,...n,children:[I.jsx(fl,{}),I.jsx(nw,{className:Ce.cn("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:e}),I.jsx(pl,{})]})}));gl.displayName=hf.displayName;const yf=C.forwardRef(({className:r,...e},t)=>I.jsx(df,{ref:t,className:Ce.cn("py-1.5 pr-2 pl-8 text-sm font-semibold",r),...e}));yf.displayName=df.displayName;const ml=C.forwardRef(({className:r,children:e,...t},n)=>I.jsxs(ff,{ref:n,className:Ce.cn("focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50",r),...t,children:[I.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:I.jsx(ow,{children:I.jsx(ac.Check,{className:"h-4 w-4"})})}),I.jsx(iw,{children:e})]}));ml.displayName=ff.displayName;const bf=C.forwardRef(({className:r,...e},t)=>I.jsx(mf,{ref:t,className:Ce.cn("bg-muted -mx-1 my-1 h-px",r),...e}));bf.displayName=mf.displayName;const Ef=C.forwardRef(({className:r,options:e,position:t="popper",itemHeight:n=35,maxHeight:s=300,...i},o)=>{const a=Ke.useRef(null),l=({index:c,style:h})=>{const g=e[c];return I.jsx("div",{style:h,children:I.jsx(ml,{value:`${g.value}`,children:g.label})})};return I.jsx(gl,{ref:o,...i,children:I.jsx(mw,{ref:a,height:Math.min(s,e.length*n),itemCount:e.length,itemSize:n,width:"100%",children:l})})});Ef.displayName="VirtualizedSelectContent";var Li="Switch",[Ew]=le.createContextScope(Li),[ww,xw]=Ew(Li),wf=C.forwardRef((r,e)=>{const{__scopeSwitch:t,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:l="on",onCheckedChange:c,form:h,...g}=r,[p,m]=C.useState(null),v=Oe.useComposedRefs(e,S=>m(S)),d=C.useRef(!1),b=p?h||!!p.closest("form"):!0,[E,x]=er.useControllableState({prop:s,defaultProp:i??!1,onChange:c,caller:Li});return I.jsxs(ww,{scope:t,checked:E,disabled:a,children:[I.jsx(le.Primitive.button,{type:"button",role:"switch","aria-checked":E,"aria-required":o,"data-state":Af(E),"data-disabled":a?"":void 0,disabled:a,value:l,...g,ref:v,onClick:le.composeEventHandlers(r.onClick,S=>{x(k=>!k),b&&(d.current=S.isPropagationStopped(),d.current||S.stopPropagation())})}),b&&I.jsx(Sf,{control:p,bubbles:!d.current,name:n,value:l,checked:E,required:o,disabled:a,form:h,style:{transform:"translateX(-100%)"}})]})});wf.displayName=Li;var xf="SwitchThumb",_f=C.forwardRef((r,e)=>{const{__scopeSwitch:t,...n}=r,s=xw(xf,t);return I.jsx(le.Primitive.span,{"data-state":Af(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});_f.displayName=xf;var _w="SwitchBubbleInput",Sf=C.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:n=!0,...s},i)=>{const o=C.useRef(null),a=Oe.useComposedRefs(o,i),l=li(t),c=$t.useSize(e);return C.useEffect(()=>{const h=o.current;if(!h)return;const g=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(g,"checked").set;if(l!==t&&m){const v=new Event("click",{bubbles:n});m.call(h,t),h.dispatchEvent(v)}},[l,t,n]),I.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:a,style:{...s.style,...c,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Sf.displayName=_w;function Af(r){return r?"checked":"unchecked"}var Cf=wf,Sw=_f;const Tf=C.forwardRef(({className:r,...e},t)=>I.jsx(Cf,{className:Ce.cn("peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-item-primary data-[state=unchecked]:bg-input inline-flex h-4 w-7 shrink-0 cursor-pointer items-center rounded-full border border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-40",r),...e,ref:t,children:I.jsx(Sw,{className:Ce.cn("bg-background pointer-events-none block size-3.5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-3 data-[state=unchecked]:translate-x-0")})}));Tf.displayName=Cf.displayName;const kf=C.forwardRef(({className:r,variant:e,...t},n)=>I.jsx("textarea",{className:Ce.cn("min-h-20 px-3 py-2",Si({variant:e}),r),ref:n,...t}));kf.displayName="Textarea";exports.Checkbox=yc;exports.FilepondContainer=Uc;exports.Form=tg;exports.FormControl=Zc;exports.FormDescription=Xc;exports.FormField=rg;exports.FormItem=Wc;exports.FormLabel=Yc;exports.FormMessage=Qc;exports.HtmlEditor=id;exports.Input=od;exports.Label=Ha;exports.MaskInput=vd;exports.RadioGroup=Od;exports.RadioGroupItem=Ld;exports.Select=vw;exports.SelectContent=gl;exports.SelectGroup=yw;exports.SelectItem=ml;exports.SelectLabel=yf;exports.SelectScrollDownButton=pl;exports.SelectScrollUpButton=fl;exports.SelectSeparator=bf;exports.SelectTrigger=vf;exports.SelectValue=bw;exports.Switch=Tf;exports.Textarea=kf;exports.VirtualizedSelectContent=Ef;exports.inputVariants=Si;exports.useFormField=rs;
173
+ //# sourceMappingURL=textarea-EPWY09og.cjs.js.map