athif-custom-package 1.0.0 → 1.0.1

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.
@@ -1,2 +1,2 @@
1
- @import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.cme-wrapper{--cme-toolbar-panel-height:68px;background:0 0;border:none;border-radius:4px;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;overflow:visible}.cme-tabs{background:#1a1a2e;border-bottom:1px solid #2a2a45;gap:2px;padding:4px 12px 0;display:flex}.cme-tab{color:#a0a0c0;cursor:pointer;background:#13131f;border:1px solid #3a3a5c;border-bottom:none;border-top-left-radius:4px;border-top-right-radius:4px;align-items:center;gap:6px;padding:8px 16px;font-size:11px;font-weight:600;transition:background .12s,color .12s;display:inline-flex}.cme-tab:hover{color:#e8e8ff;background:#1f1f35}.cme-tab.active{color:#c4b5fd;z-index:2;background:#1a1a2e;border-color:#3a3a5c #3a3a5c #1a1a2e;margin-bottom:-1px}.cme-tab svg{opacity:.9;width:14px;height:14px}.cme-toolbar{background:linear-gradient(#dbe4ea 0%,#c7d3dc 100%);border-bottom:1px solid #92a6b4;flex-direction:column;padding:0;display:flex;position:relative;overflow:hidden}.cme-toolbar-groups{box-sizing:border-box;background:#fff;border-bottom:1px solid #8fa1ae;flex-wrap:wrap;gap:2px;min-height:30px;padding:10px 6px 0;display:flex}.cme-group-tab{color:#556e7b;cursor:pointer;white-space:nowrap;z-index:1;box-sizing:border-box;background:linear-gradient(#7d93a0 0%,#556e7b 100%);border:none;border-bottom:1px solid #556e7b;border-top-left-radius:5px;border-top-right-radius:5px;justify-content:center;align-items:center;min-width:54px;height:24px;margin-bottom:-1px;padding:0 8px;font-size:10px;font-weight:700;transition:all .15s;display:inline-flex;position:relative;box-shadow:inset 0 1px #ffffff3d}.cme-group-tab--popup{flex:0 0 56px;width:56px;min-width:56px;max-width:56px;padding:0 4px;overflow:hidden}.cme-group-tab-label{justify-content:center;align-items:center;width:100%;min-width:0;max-width:100%;display:inline-flex;overflow:hidden}.cme-group-tab--popup .cme-tab-icon{width:100%;max-width:38px}.cme-group-tab--popup .cme-tab-icon--svg,.cme-group-tab--math .cme-tab-svg-icon{flex-shrink:1;width:38px;max-width:100%;height:16px}.cme-group-tab--popup .cme-tab-icon-top,.cme-group-tab--math .cme-tab-icon-bottom{white-space:nowrap;max-width:100%;overflow:hidden}.cme-tab-icon{letter-spacing:.02em;color:inherit;flex-direction:column;justify-content:center;align-items:center;line-height:.8;display:inline-flex}.cme-tab-icon.compact{flex-direction:row;gap:2px;line-height:1}.cme-tab-icon--svg{width:46px;height:20px}.cme-tab-svg-icon{width:46px;height:20px;display:block}.cme-tab-icon-top,.cme-tab-icon-bottom{font-size:10px;font-weight:700;display:block}.cme-tab-icon-bottom{opacity:.96;margin-top:1px;font-size:8px}.cme-tab-icon.compact .cme-tab-icon-top{font-size:15px}.cme-group-tab:hover{color:#556e7b;background:linear-gradient(#8ca1ad 0%,#6e8694 100%)}.cme-group-tab--popup.active{color:#556e7b;z-index:2;background:#e6edf2;border:1px solid #9aadb9;border-bottom-color:#e6edf2;height:28px;margin-top:-4px;box-shadow:inset 0 1px #ffffff61}.cme-group-tab--math:nth-child(-n+9):not(.active),.cme-group-tab--math:nth-child(-n+9):not(.active):hover,.cme-group-tab--chem:not(.active),.cme-group-tab--chem:not(.active):hover{color:#fff}.cme-group-tab--chem.active,.cme-group-tab--chem.active:hover,.cme-group-tab--chem.active .cme-group-tab-label,.cme-group-tab--chem.active .cme-tab-icon,.cme-group-tab--chem.active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(2).active,.cme-group-tab--math:nth-child(2).active:hover,.cme-group-tab--math:nth-child(3).active,.cme-group-tab--math:nth-child(3).active:hover,.cme-group-tab--math:nth-child(4).active,.cme-group-tab--math:nth-child(4).active:hover,.cme-group-tab--math:nth-child(5).active,.cme-group-tab--math:nth-child(5).active:hover,.cme-group-tab--math:nth-child(6).active,.cme-group-tab--math:nth-child(6).active:hover,.cme-group-tab--math:nth-child(7).active,.cme-group-tab--math:nth-child(7).active:hover,.cme-group-tab--math:nth-child(9).active,.cme-group-tab--math:nth-child(9).active:hover,.cme-group-tab--math:nth-child(2).active .cme-group-tab-label,.cme-group-tab--math:nth-child(2).active .cme-tab-icon,.cme-group-tab--math:nth-child(2).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(3).active .cme-group-tab-label,.cme-group-tab--math:nth-child(3).active .cme-tab-icon,.cme-group-tab--math:nth-child(3).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(4).active .cme-group-tab-label,.cme-group-tab--math:nth-child(4).active .cme-tab-icon,.cme-group-tab--math:nth-child(4).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(5).active .cme-group-tab-label,.cme-group-tab--math:nth-child(5).active .cme-tab-icon,.cme-group-tab--math:nth-child(5).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(6).active .cme-group-tab-label,.cme-group-tab--math:nth-child(6).active .cme-tab-icon,.cme-group-tab--math:nth-child(6).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(7).active .cme-group-tab-label,.cme-group-tab--math:nth-child(7).active .cme-tab-icon,.cme-group-tab--math:nth-child(7).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(9).active .cme-group-tab-label,.cme-group-tab--math:nth-child(9).active .cme-tab-icon,.cme-group-tab--math:nth-child(9).active .cme-tab-svg-icon{color:#556e7b!important}.cme-group-tab--math:last-child{color:#fff;z-index:2;background:linear-gradient(#f3d6d9 0%,#dc9e9e 100%);border:none;height:24px;box-shadow:inset 0 1px #ffffff61}.cme-group-tab--math:last-child.active{color:#556e7b;background:#e6edf2;border:1px solid #9aadb9;border-bottom-color:#e6edf2;height:28px}.cme-toolbar-items{box-sizing:border-box;width:calc(100% - 12px);min-width:calc(100% - 12px);max-width:calc(100% - 12px);height:var(--cme-toolbar-panel-height);min-height:var(--cme-toolbar-panel-height);max-height:var(--cme-toolbar-panel-height);background:#e6edf2;border:1px solid #9aadb9;border-radius:0 0 4px 4px;flex-flow:row;align-content:flex-start;align-items:flex-start;gap:2px;margin:0 6px 6px;padding:5px;display:flex;overflow:auto hidden;box-shadow:inset 0 1px #ffffffbf}.cme-toolbar:has(.cme-group-tab--popup.active) .cme-toolbar-items{border-top-color:#e6edf2}.cme-toolbar-items--integral-templates{align-items:stretch;height:112px;min-height:112px;max-height:112px}.cme-toolbar-items--roots-main{grid-template-columns:repeat(var(--cme-roots-main-columns), minmax(0, 1fr));grid-template-rows:repeat(2,24px);align-content:start;place-items:stretch stretch;gap:2px;display:grid}.cme-toolbar-items--greek{padding:5px;display:block}.cme-toolbar-items--popup-compact{gap:2px;padding:5px}.cme-toolbar-items--first-tab{gap:5px;width:100%;min-width:100%;max-width:100%;padding:5px}.cme-toolbar-items--first-tab .cme-symbol-subgroup{gap:6px;margin:0;padding:0 5px}.cme-toolbar-items--first-tab .cme-btn,.cme-toolbar-items--first-tab .cme-btn--compact{margin:0;padding:0 1px}.cme-toolbar-items--first-tab .cme-roots-main-subgroup{place-content:stretch;align-self:stretch;height:100%;grid-template-rows:var(--cme-subgroup-rows,repeat(2, minmax(0, 1fr)))!important}.cme-toolbar-items--first-tab .cme-roots-main-subgroup .cme-btn,.cme-toolbar-items--first-tab .cme-roots-main-subgroup .cme-btn--compact,.cme-toolbar-items--first-tab .cme-roots-main-subgroup .cme-style-select-trigger{width:100%;height:100%;min-height:0}.cme-toolbar-items--first-tab .cme-roots-main-subgroup--stack{min-width:26px}.cme-toolbar-items--first-tab .cme-roots-main-subgroup--dropdown{min-width:88px}.cme-toolbar-items--relations{gap:1px;overflow:hidden}.cme-toolbar-items--relations .cme-symbol-subgroup{align-content:start;margin:0;padding:0 3px;grid-template-rows:repeat(3,auto)!important}.cme-toolbar-items--relations .cme-btn{min-width:17px;height:21px;padding:0 2px;font-size:10px}.cme-toolbar-items--relations .cme-btn.arrow-picker-tool{width:14px;min-width:14px;height:100%;min-height:100%;box-shadow:none;color:#526a79;background:0 0;border:none;border-radius:3px;flex-direction:column;grid-row:1/-1;justify-content:flex-end;place-self:stretch center;align-items:center;padding:0;display:inline-flex}.cme-toolbar-items--arrows{gap:1px;height:84px;min-height:84px;max-height:84px;overflow:hidden}.cme-toolbar-items--arrows .cme-arrows-subgroup{place-content:stretch;align-self:stretch;gap:7px;height:100%;margin:0;padding:3px 4px;grid-template-rows:var(--cme-subgroup-rows,repeat(2, minmax(0, 1fr)))!important}.cme-toolbar-items--arrows .cme-arrows-subgroup .cme-btn,.cme-toolbar-items--arrows .cme-arrows-subgroup .cme-btn--compact{width:100%;height:100%;min-height:0}.cme-toolbar-items--arrows .cme-arrows-subgroup--stack{min-width:20px}.cme-toolbar-items--arrows .cme-arrows-subgroup--picker{min-width:14px}.cme-toolbar-items--arrows .cme-arrows-subgroup--before-picker{border-right:none}.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template{min-width:32px;padding:0 4px}.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template.matrix-tall-template,.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template.matrix-extra-tall-template{height:37px;min-height:37px}.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template .cme-toolbar-icon-image-wrapper{padding:2px}.cme-toolbar-items--brackets{gap:1px;overflow:hidden}.cme-toolbar-items--brackets .cme-brackets-subgroup{place-content:stretch;align-self:stretch;gap:0;height:100%;margin:0;padding:0 3px;grid-template-rows:var(--cme-subgroup-rows,repeat(2, minmax(0, 1fr)))!important}.cme-toolbar-items--brackets .cme-brackets-subgroup .cme-btn,.cme-toolbar-items--brackets .cme-brackets-subgroup .cme-btn--compact{width:100%;height:100%;min-height:0}.cme-toolbar-items--brackets .cme-brackets-subgroup--picker{min-width:14px}.cme-toolbar-items--brackets .cme-brackets-subgroup--before-picker{border-right:none}.cme-toolbar-items::-webkit-scrollbar{height:5px}.cme-toolbar-items::-webkit-scrollbar-track{background:0 0}.cme-toolbar-items::-webkit-scrollbar-thumb{background:#3a3a5c;border-radius:3px}.cme-toolbar-items::-webkit-scrollbar-thumb:hover{background:#8b5cf6}.cme-symbol-subgroup{border-right:1px solid #b9c7d0;flex-shrink:0;grid-template-columns:repeat(2,auto);grid-auto-columns:auto;grid-auto-flow:column;place-content:center;align-items:center;gap:2px;margin:1px 0;padding:0 4px;display:grid;grid-template-rows:repeat(2,auto)!important}.cme-symbol-subgroup:last-child{border-right:none}.cme-symbol-subgroup--compact,.cme-symbol-subgroup--tab-roots-main,.cme-symbol-subgroup--tab-relations,.cme-symbol-subgroup--tab-arrows,.cme-symbol-subgroup--tab-greek,.cme-symbol-subgroup--tab-matrix,.cme-symbol-subgroup--tab-power-frac,.cme-symbol-subgroup--tab-brackets,.cme-symbol-subgroup--tab-sets{gap:8px;margin:0;padding:0 3px}.cme-symbol-subgroup--tab-calc{gap:2px;margin:0;padding:0 3px}.cme-symbol-subgroup--tab-move-text{gap:8px;margin:0;padding:0 3px}.cme-greek-panel{flex-direction:row;flex-shrink:0;align-items:flex-start;gap:0;width:max-content;min-width:100%;height:100%;display:inline-flex}.cme-greek-subgroup{place-content:start;margin:0}.cme-toolbar-items--greek .cme-symbol-subgroup{grid-auto-flow:row;grid-template-rows:var(--cme-greek-rows,repeat(2, auto))!important}.cme-toolbar-items--greek .cme-greek-subgroup--picker{align-content:stretch;align-self:stretch;height:100%;grid-template-rows:repeat(3,minmax(0,1fr))!important}.cme-toolbar-items--greek .cme-greek-subgroup--before-picker{border-right:none}.cme-greek-btn{box-shadow:none;border-radius:0;font-size:14px}.cme-btn{border:1px solid #e6edf2;border-image:#e6edf2;color:#22343d;cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box;background:#e6edf2;border-radius:2px;justify-content:center;align-items:center;min-width:24px;height:24px;padding:0 3px;font-family:Latin Modern Math,STIX Two Math,Times New Roman,serif;font-size:11px;line-height:1;transition:background .12s,border-color .12s,box-shadow .12s,transform .12s;display:inline-flex}.cme-btn:hover{background:linear-gradient(#fff 0%,#e6eef5 100%);border-color:#8daab7;box-shadow:0 0 0 1px #93a7b247}.cme-btn:focus,.cme-btn:focus-visible,.cme-group-tab:focus,.cme-group-tab:focus-visible,.cme-popup-window-btn:focus,.cme-popup-window-btn:focus-visible,.cme-popup-close:focus,.cme-popup-close:focus-visible,.cme-insert-btn:focus,.cme-insert-btn:focus-visible,.cme-cancel-btn:focus,.cme-cancel-btn:focus-visible{outline:none}.cme-btn:active{background:linear-gradient(#dff0ea 0%,#c5e7db 100%);border-color:#5ea98a;transform:translateY(1px)}.cme-btn.template{color:#334750;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:9px;font-weight:500}.cme-select{appearance:none;text-align:left;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#fff 0%,#edf3f7 100%);background-position:right 7px center,50%;background-repeat:no-repeat,no-repeat;background-size:10px 6px,100% 100%;border-radius:4px;min-width:24px;height:24px;padding:0 22px 0 6px;font-size:10px;line-height:22px;display:inline-block}.cme-select:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#fff 0%,#e6eef5 100%)}.cme-select:focus{outline:none}.cme-style-select-trigger{text-overflow:ellipsis;overflow:hidden;transition:none!important}.cme-style-select-trigger:hover{background-color:#0000;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#fff 0%,#edf3f7 100%);background-position:0 0;background-repeat:repeat;background-size:auto;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;border-color:#c5d0d8;transform:none;box-shadow:inset 0 1px #ffffffeb}.cme-style-dropdown-popup{background:linear-gradient(#fff 0%,#f6fafc 100%);border:1px solid #c8d4dc;border-radius:5px;gap:2px;max-height:260px;padding:6px;display:grid;overflow-y:auto;box-shadow:0 12px 28px #21363f2e,inset 0 1px #ffffffeb}.cme-style-dropdown-option{color:#22343d;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;height:24px;padding:0 9px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:11px;font-weight:600}.cme-style-dropdown-option:hover,.cme-style-dropdown-option.active{color:#1f593f;background:linear-gradient(#fff 0%,#e6eef5 100%);border-color:#8daab7}.cme-style-dropdown-option.active{background:linear-gradient(#e3f4ec 0%,#cae7d9 100%);border-color:#56a17e}.cme-btn.chem-element{color:#2c7040;letter-spacing:.01em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:11px;font-weight:700}.cme-btn.green-template{color:#2c8a43;font-family:Segoe UI,Arial,sans-serif;font-size:11px;font-weight:700}.cme-btn.soft-tool{color:#7e92a1}.cme-btn.format-tool{font-family:Georgia,Times New Roman,serif;font-size:12px;font-weight:700}.cme-btn.color-tool{color:#f39c12}.cme-btn.omega-tool{color:#7f57b6}.cme-btn.text-tool{color:#9462b0;letter-spacing:.04em}.cme-btn.prime-symbol-tool{font-family:STIX Two Math,Cambria Math,Latin Modern Math,Times New Roman,serif;font-size:13.5px;font-weight:700;line-height:1}.cme-btn--compact{border-radius:3px;min-width:19px;height:24px;padding:0 2px;font-size:10.5px}.cme-btn--compact.prime-symbol-tool{font-size:13px}.cme-btn.small-template{min-width:17px;height:20px;padding:0 1px;font-size:8px}.cme-btn.small-template .cme-toolbar-icon-image{max-width:12px;max-height:13px}.cme-btn.small-template .cme-toolbar-glyph{font-size:8px;line-height:.9}.cme-btn.integral-hero-template{width:48px;min-width:48px;height:48px;padding:2px}.cme-btn.integral-hero-template .cme-toolbar-icon-image-wrapper{padding:3px}.cme-btn.integral-hero-template .cme-toolbar-icon-image{max-width:34px;max-height:40px}.cme-btn.derivative-hero-template{width:48px;min-width:48px;height:48px;padding:2px}.cme-btn.derivative-hero-template .cme-toolbar-icon-image-wrapper{padding:3px}.cme-btn.derivative-hero-template .cme-toolbar-icon-image{max-width:34px;max-height:40px}.cme-btn.chem-element:hover{border-color:#75b189}.cme-btn.chem-arrow,.cme-btn.chem-state{color:#334750;letter-spacing:.01em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:12px;font-weight:700}.cme-btn.chem-arrow:hover,.cme-btn.chem-state:hover{border-color:#8daab7}.cme-fraction-icon{letter-spacing:.01em;justify-content:center;align-items:center;gap:0;display:inline-flex}.cme-toolbar-icon-image-wrapper{box-sizing:border-box;flex-shrink:0;justify-content:center;align-items:center;width:100%;min-width:0;height:100%;min-height:0;padding:2px 1px;display:inline-flex}.cme-toolbar-icon-image{object-fit:contain;object-position:center;width:100%;max-width:41px;height:125%;max-height:30px;display:block}.cme-toolbar-icon-image-wrapper--log-base-template-image{padding:1px 0}.cme-toolbar-icon-image--log-base-template-image{object-fit:fill;width:100%;max-width:none;height:100%;max-height:none}.cme-toolbar-icon-image-wrapper--vec-accent-template-image,.cme-toolbar-icon-image-wrapper--overrightarrow-accent-template-image,.cme-toolbar-icon-image-wrapper--overleftrightarrow-accent-template-image,.cme-toolbar-icon-image-wrapper--overline-accent-template-image,.cme-toolbar-icon-image-wrapper--hat-accent-template-image,.cme-toolbar-icon-image-wrapper--tilde-accent-template-image,.cme-toolbar-icon-image-wrapper--ddot-accent-template-image,.cme-toolbar-icon-image-wrapper--dot-accent-template-image{padding:1px}.cme-toolbar-icon-image--vec-accent-template-image,.cme-toolbar-icon-image--overrightarrow-accent-template-image,.cme-toolbar-icon-image--overleftrightarrow-accent-template-image,.cme-toolbar-icon-image--overline-accent-template-image,.cme-toolbar-icon-image--hat-accent-template-image,.cme-toolbar-icon-image--tilde-accent-template-image,.cme-toolbar-icon-image--ddot-accent-template-image,.cme-toolbar-icon-image--dot-accent-template-image{object-fit:contain;width:100%;max-width:25px;height:100%;max-height:20px}.cme-toolbar-icon-image-wrapper--overbrace-arc-template-image,.cme-toolbar-icon-image-wrapper--underbrace-arc-template-image,.cme-toolbar-icon-image-wrapper--overparen-template-image,.cme-toolbar-icon-image-wrapper--underparen-template-image{padding:1px}.cme-toolbar-icon-image--overbrace-arc-template-image,.cme-toolbar-icon-image--underbrace-arc-template-image,.cme-toolbar-icon-image--overparen-template-image,.cme-toolbar-icon-image--underparen-template-image{object-fit:contain;width:100%;max-width:33px;height:100%;max-height:23px}.cme-toolbar-icon-image-wrapper--overline-frame-template-image,.cme-toolbar-icon-image-wrapper--underline-frame-template-image,.cme-toolbar-icon-image-wrapper--left-bar-template-image,.cme-toolbar-icon-image-wrapper--right-bar-template-image,.cme-toolbar-icon-image-wrapper--boxed-square-template-image,.cme-toolbar-icon-image-wrapper--paren-frame-template-image{padding:1px}.cme-toolbar-icon-image--overline-frame-template-image,.cme-toolbar-icon-image--underline-frame-template-image,.cme-toolbar-icon-image--left-bar-template-image,.cme-toolbar-icon-image--right-bar-template-image,.cme-toolbar-icon-image--boxed-square-template-image,.cme-toolbar-icon-image--paren-frame-template-image{object-fit:contain;width:100%;max-width:31px;height:100%;max-height:25px}.cme-toolbar-icon-image-wrapper--cancel-diagonal-template-image,.cme-toolbar-icon-image-wrapper--bcancel-template-image,.cme-toolbar-icon-image-wrapper--sout-template-image,.cme-toolbar-icon-image-wrapper--xcancel-template-image{padding:1px}.cme-toolbar-icon-image--cancel-diagonal-template-image,.cme-toolbar-icon-image--bcancel-template-image,.cme-toolbar-icon-image--sout-template-image,.cme-toolbar-icon-image--xcancel-template-image{object-fit:contain;width:100%;max-width:30px;height:100%;max-height:25px}.cme-fraction-icon.cme-fraction-stack{width:22px;height:24px;overflow:hidden}.cme-fraction-svg{width:22px;height:24px;display:block;overflow:hidden}.cme-fraction-svg rect,.cme-fraction-svg line{stroke:#2c8a43;stroke-width:1.8px;fill:none;stroke-linecap:square}.cme-arrow-label-icon{justify-content:center;align-items:center;width:25px;height:25px;display:inline-flex;overflow:hidden}.cme-arrow-label-svg{width:25px;height:25px;display:block;overflow:hidden}.cme-arrow-label-svg rect{stroke:#2c8a43;stroke-width:1px;fill:none}.cme-arrow-label-svg line,.cme-arrow-label-svg path{stroke:#22343d;stroke-width:.8px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-btn.arrow-picker-tool{width:14px;min-width:14px;height:100%;min-height:100%;box-shadow:none;color:#526a79;background:0 0;border:none;border-radius:3px;flex-direction:column;grid-row:1/-1;justify-content:flex-end;place-self:stretch center;align-items:center;padding:0;display:inline-flex}.cme-toolbar-chevron-indicator{justify-content:center;align-items:flex-end;width:100%;height:100%;padding:0 0 2px;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.cme-btn.arrow-picker-tool:hover{box-shadow:none;background:#b6cbd847}.cme-btn.arrow-picker-tool:active{background:#99b2c261;transform:none}.cme-btn.arrow-picker-tool.active,.cme-btn.arrow-picker-tool.active:hover,.cme-btn.arrow-picker-tool.active:active{box-shadow:none!important;color:#fff!important;background:#7a92a1!important;border-color:#0000!important;transform:none!important}.cme-arrow-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-arrow-picker-grid{grid-template-columns:repeat(8,30px);grid-auto-rows:30px;gap:6px 8px;display:grid}.cme-arrow-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:30px;height:30px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-arrow-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-arrow-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-arrow-picker-btn svg{width:22px;height:22px}.cme-arrow-label-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:8px;padding:6px 8px;box-shadow:0 10px 18px #3b586b29}.cme-arrow-label-picker-grid{grid-template-columns:repeat(4,48px);grid-auto-rows:34px;gap:4px;display:grid}.cme-arrow-label-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:48px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-arrow-label-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-arrow-label-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-greek-italic-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-greek-italic-picker-grid{grid-template-columns:repeat(8,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-greek-italic-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-greek-italic-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-greek-italic-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-greek-italic-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:italic;line-height:1}.cme-blackboard-bold-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-blackboard-bold-picker-grid{grid-template-columns:repeat(8,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-blackboard-bold-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-blackboard-bold-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-blackboard-bold-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-blackboard-bold-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:normal;line-height:1}.cme-fraktur-script-picker-popup{scrollbar-width:thin;scrollbar-color:#88a2b4 #ffffff80;background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;width:352px;max-height:332px;padding:8px 10px;overflow:hidden auto;box-shadow:0 10px 18px #3b586b29}.cme-fraktur-script-picker-popup::-webkit-scrollbar{width:10px}.cme-fraktur-script-picker-popup::-webkit-scrollbar-track{background:#ffffff73;border-radius:999px}.cme-fraktur-script-picker-popup::-webkit-scrollbar-thumb{background:linear-gradient(#9db3c2 0%,#7f99ab 100%);border:2px solid #fff6;border-radius:999px}.cme-fraktur-script-picker-grid{grid-template-columns:repeat(8,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-fraktur-script-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-fraktur-script-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-fraktur-script-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-fraktur-script-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:normal;line-height:1}.cme-hebrew-symbol-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-hebrew-symbol-picker-grid{grid-template-columns:repeat(5,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-hebrew-symbol-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-hebrew-symbol-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-hebrew-symbol-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-hebrew-symbol-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:normal;line-height:1}.cme-periodic-table-picker-popup{background:#dbe5ec;border:1px solid #90a0ab;border-radius:8px;padding:4px;box-shadow:0 12px 24px #27425238}.cme-periodic-table-board{background:#dde7ed;position:relative;overflow:hidden}.cme-periodic-table-connector{pointer-events:none;z-index:0;position:absolute}.cme-periodic-table-connector--vertical{background:#8c9aa4;width:2px}.cme-periodic-table-connector--horizontal{background:#8c9aa4;height:2px}.cme-periodic-table-cell{color:#1f252b;cursor:pointer;box-sizing:border-box;z-index:1;border:1px solid #54616b47;border-radius:2px;justify-content:center;align-items:center;margin:0;padding:0;font-family:Segoe UI,Arial,sans-serif;font-size:13px;font-weight:500;line-height:1;transition:transform 80ms,box-shadow 80ms,filter 80ms;display:inline-flex;position:absolute}.cme-periodic-table-cell:hover{filter:brightness(1.02);transform:translateY(-1px);box-shadow:0 2px 6px #2f3d462e}.cme-periodic-table-cell:active{filter:brightness(.98);transform:translateY(0);box-shadow:inset 0 1px 3px #1f252b2e}.cme-periodic-table-cell--hydrogen,.cme-periodic-table-cell--placeholder{background:#f7f9fb}.cme-periodic-table-cell--noble-gas{background:#7feef1}.cme-periodic-table-cell--alkali{background:#ffb200}.cme-periodic-table-cell--alkaline{background:#fff100}.cme-periodic-table-cell--transition{background:#f792b0}.cme-periodic-table-cell--post-transition{background:#32d2e7}.cme-periodic-table-cell--nonmetal{background:#1cff19}.cme-periodic-table-cell--lanthanide{background:#f1b289}.cme-periodic-table-cell--actinide{background:#d9b5df}.cme-periodic-table-cell--series-anchor{background:#ff6f97}.cme-integral-template-icon{flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex;overflow:hidden}.cme-integral-template-svg{width:18px;height:18px;display:block;overflow:hidden}.cme-integral-template-svg path{stroke:#22343d;stroke-width:1.15px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-integral-template-text{fill:#22343d;font-family:Cambria Math,Times New Roman,serif;font-size:6.4px;font-weight:600}.cme-integral-template-box{stroke:#2c8a43;stroke-width:1.02px;fill:none}.cme-matrix-icon{flex-shrink:0;justify-content:center;align-items:center;width:22px;height:24px;display:inline-flex;overflow:hidden}.cme-matrix-svg{width:22px;height:24px;display:block;overflow:hidden}.cme-matrix-svg path{stroke:#22343d;stroke-width:1.25px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-matrix-svg-cell{stroke:#2c8a43;stroke-width:1.05px;fill:none}.cme-matrix-template-icon{flex-shrink:0;justify-content:center;align-items:center;width:28px;height:30px;display:inline-flex;overflow:hidden}.cme-matrix-template-svg{width:28px;height:30px;display:block;overflow:hidden}.cme-matrix-template-svg path{stroke:#22343d;stroke-width:1.2px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-script-icon{flex-shrink:0;justify-content:center;align-items:center;width:20px;height:22px;display:inline-flex;overflow:hidden}.cme-script-svg{width:20px;height:22px;display:block;overflow:hidden}.cme-script-svg rect{stroke:#2c8a43;stroke-width:1.6px;fill:none}.cme-root-icon{flex-shrink:0;justify-content:center;align-items:center;width:30px;height:29px;display:inline-flex;overflow:hidden}.cme-root-svg{width:30px;height:29px;display:block;overflow:hidden}.cme-root-svg path{stroke:#222;stroke-width:2.5px;fill:none}.cme-root-svg-box{stroke:#43a047;stroke-width:2.5px;fill:none}.cme-root-svg-box--small{stroke-width:2.5px}.cme-accent-icon{flex-shrink:0;justify-content:center;align-items:center;width:26px;height:28px;display:inline-flex;overflow:hidden}.cme-accent-svg{width:26px;height:28px;display:block;overflow:hidden}.cme-accent-svg line,.cme-accent-svg path{stroke:#22343d;stroke-width:.7px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-accent-svg-box{stroke:#2c8a43;stroke-width:1.2px;fill:none}.cme-toolbar-glyph{white-space:nowrap;text-align:center;justify-content:center;align-items:center;width:100%;min-width:0;max-width:100%;line-height:1;display:inline-flex;overflow:hidden}.cme-toolbar-glyph--roots-main{letter-spacing:-.01em;font-family:Cambria Math,STIX Two Math,Segoe UI Symbol,Segoe UI,serif;font-size:14.4px;font-weight:800}.cme-toolbar-glyph--math{letter-spacing:-.01em;font-family:Cambria Math,STIX Two Math,Segoe UI Symbol,Segoe UI,serif;font-size:17px;font-weight:800}.cme-toolbar-glyph--relations{letter-spacing:-.015em;font-family:Cambria Math,STIX Two Math,Segoe UI Symbol,Segoe UI,serif;font-size:13.8px;font-weight:800}.cme-toolbar-glyph--greek{letter-spacing:-.02em;font-size:16px}.cme-toolbar-glyph--chem{letter-spacing:.005em;color:inherit;font-family:Segoe UI,Arial,sans-serif;font-size:11.4px;font-weight:800}.cme-toolbar-glyph--chem-element{font-size:11.5px}.cme-toolbar-glyph--chem-script{letter-spacing:-.02em;font-family:Segoe UI Symbol,Cambria Math,Segoe UI,sans-serif;font-size:13.2px;font-weight:800;line-height:.95}.cme-toolbar-glyph--chem-charge{letter-spacing:0;font-family:Segoe UI Symbol,Cambria Math,Segoe UI,sans-serif;font-size:11.8px;font-weight:800;line-height:1}.cme-toolbar-glyph--chem-arrow{letter-spacing:0;font-family:Segoe UI Symbol,Segoe UI,Arial,sans-serif;font-size:12.1px}.cme-toolbar-glyph--chem-state{letter-spacing:0;font-size:10.4px}.cme-toolbar-glyph--template{color:#000;font-size:16.4px}.cme-toolbar-glyph--tool{font-family:Segoe UI Symbol,Segoe UI,Arial,sans-serif;font-size:12.2px;font-weight:800}.cme-toolbar-glyph--format{letter-spacing:.01em;font-family:Segoe UI,Arial,sans-serif;font-size:10.6px;font-weight:800}.cme-toolbar-glyph--wide{letter-spacing:-.015em;font-size:13.2px}.cme-toolbar-glyph--very-wide{letter-spacing:-.02em;font-size:12.2px}.cme-fraction-mathfield-icon{pointer-events:none;background:0 0;border:none;width:26px;height:24px;margin:0;padding:0;font-size:10px;overflow:hidden}.cme-fraction-mathfield-icon::part(mf){padding:0}.cme-sep{background:#2a2a45;flex-shrink:0;width:1px;height:20px;margin:0 4px}.cme-mathfield-container{box-sizing:border-box;background:#fff;border:1px solid #97aab7;border-radius:2px;flex:1;min-height:152px;margin:0 8px 8px;display:block;position:relative;overflow:auto;box-shadow:inset 0 1px #ffffffeb}.cme-mathfield-container--rtl{direction:rtl}.cme-mathfield-container::-webkit-scrollbar{width:8px;height:8px}.cme-mathfield-container::-webkit-scrollbar-track{background:#edf2f6}.cme-mathfield-container::-webkit-scrollbar-thumb{background:#9baebb;border-radius:4px}.cme-mathfield-container::-webkit-scrollbar-thumb:hover{background:#7f98a7}math-field.cme-mathfield::-webkit-scrollbar{width:8px;height:8px}math-field.cme-mathfield::-webkit-scrollbar-track{background:#edf2f6}math-field.cme-mathfield::-webkit-scrollbar-thumb{background:#9baebb;border-radius:4px}math-field.cme-mathfield::-webkit-scrollbar-thumb:hover{background:#7f98a7}math-field.cme-mathfield{box-sizing:border-box;cursor:text;--hue:270;--primary-color:#2f6f4c;--caret-color:#2f8a57;--selection-background-color:#5199702e;--selection-color:#1d2c35;--contains-highlight-background-color:transparent;--smart-fence-color:#2f8a57;--text-font-family:"Segoe UI", "Helvetica Neue", Arial, sans-serif;--highlight-inactive-color:transparent;--text-highlight-background-color:transparent;color:#243740;background:0 0;border:none;outline:none;width:max-content;min-width:100%;height:max-content;min-height:100%;padding:10px 12px;font-size:18px;display:block}math-field.cme-mathfield--rtl{text-align:right;direction:rtl}math-field.cme-mathfield:focus-within{background:0 0}math-field.cme-mathfield::part(container){align-items:center;min-height:40px}math-field.cme-mathfield--rtl::part(container){text-align:right;direction:rtl;justify-content:flex-end}math-field.cme-mathfield::part(virtual-keyboard-toggle),math-field.cme-mathfield::part(menu-toggle){display:none}.cme-footer{color:#5a5a80;background:#1a1a2e;border-top:1px solid #2a2a45;justify-content:space-between;align-items:center;gap:8px;padding:6px 12px;font-size:11px;display:flex}.cme-mode-badge{text-transform:uppercase;border-radius:3px;flex-shrink:0;align-items:center;gap:4px;padding:2px 8px;font-size:10px;font-weight:700;display:inline-flex}.cme-mode-badge.math{color:#c4b5fd;background:#8b5cf633}.cme-mode-badge.chem{color:#34d399;background:#34d39926}.cme-hint{color:#3a3a5c;font-size:10px}.Input-question-box{background:0 0;width:100%;padding:0}math-field.cme-main-mathfield{box-sizing:border-box;cursor:text;color:#e8e8ff;--text-font-family:"Segoe UI", "Helvetica Neue", Arial, sans-serif;background:#1a1a2e;border:1px solid #3a3a5c;border-radius:10px;outline:none;width:100%;min-height:48px;padding:12px;font-family:Inter,sans-serif;font-size:16px;transition:border-color .2s,box-shadow .2s;display:block}math-field.cme-main-mathfield:focus-within{background:#1f1f35;border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf633}math-field.cme-main-mathfield::part(virtual-keyboard-toggle),math-field.cme-main-mathfield::part(menu-toggle),.ck-math-widget math-field::part(virtual-keyboard-toggle),.ck-math-widget math-field::part(menu-toggle),.question-preview math-field::part(virtual-keyboard-toggle),.question-preview math-field::part(menu-toggle){display:none}.cme-editor-popup{z-index:10000;box-sizing:border-box;will-change:width, height, top, left;background:#f1f4f7;border:1px solid #879dab;border-radius:3px;flex-direction:column;width:min(720px,100vw - 24px);height:384px;transition:width .24s cubic-bezier(.2,.8,.2,1),height .24s cubic-bezier(.2,.8,.2,1),top .24s cubic-bezier(.2,.8,.2,1),left .24s cubic-bezier(.2,.8,.2,1),background-color .18s,border-color .18s,box-shadow .18s;animation:.2s ease-out slideUp;display:flex;position:fixed;bottom:24px;right:24px;overflow:hidden;box-shadow:0 14px 36px #0b182257}.cme-editor-popup.maximized{border-radius:0;width:75vw;max-width:none;height:80dvh;max-height:none;inset:75px auto auto 189px}.cme-editor-popup.maximized .cme-popup-header,.cme-editor-popup.maximized .cme-toolbar,.cme-editor-popup.maximized .cme-popup-footer{flex:none}.cme-editor-popup.maximized .cme-popup-header{border-radius:0}.cme-editor-popup.maximized .cme-mathfield-container{flex:auto;min-height:0;max-height:none}.cme-editor-popup.minimized{width:min(420px,100vw - 24px);height:32px}.cme-editor-popup.dragging{transition:none}.cme-editor-popup.dragging .cme-popup-header{cursor:grabbing}.cme-editor-popup.minimized>:not(.cme-popup-header){display:none}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.cme-popup-header{color:#fff;box-sizing:border-box;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;background:#778d9a;border-bottom:1px solid #6b8391;border-top-left-radius:2px;border-top-right-radius:2px;justify-content:space-between;align-items:center;min-height:30px;padding:6px 10px;font-size:12px;font-weight:600;display:flex}.cme-popup-header,.cme-toolbar,.cme-mathfield-container,.cme-popup-footer,.cme-toolbar-groups,.cme-toolbar-items,.cme-group-tab,.cme-btn,.cme-btn--compact,.cme-popup-window-btn,.cme-popup-close{transition:background-color 1s,border-color 1s,box-shadow 1s,color 1s,opacity 1s,transform 1s,max-height 1s}.cme-toolbar,.cme-mathfield-container,.cme-popup-footer{opacity:1;transform:translateY(0)}.cme-toolbar{max-height:260px}.cme-mathfield-container{max-height:320px}.cme-popup-footer{max-height:80px}.cme-popup-header:active{cursor:grabbing}.cme-popup-actions{align-items:center;gap:4px;display:flex}.cme-popup-close{color:#ffffffeb;cursor:pointer;opacity:1;background:0 0;border:none;align-items:center;height:100%;font-size:15px;line-height:1;transition:color .15s,background .15s;display:flex}.cme-popup-close:hover{color:#fff}.cme-popup-close:before{content:none;color:#ffffffb3;margin-right:8px;font-family:monospace;font-size:11px}.cme-popup-window-btn,.cme-popup-close{border-radius:3px;justify-content:center;align-items:center;width:18px;height:18px;padding:0;line-height:1;display:inline-flex}.cme-popup-window-btn{color:#ffffffeb;cursor:pointer;background:0 0;border:none;font-size:12px;transition:color .15s,background .15s}.cme-popup-window-btn:hover,.cme-popup-close:hover{color:#fff;background:#ffffff29}.cme-popup-footer{box-sizing:border-box;background:#f1f4f7;border-top:1px solid #c6d1d8;border-bottom-right-radius:2px;border-bottom-left-radius:2px;justify-content:flex-start;gap:10px;padding:8px;display:flex}.cme-insert-btn{color:#fff;cursor:pointer;background:linear-gradient(#8da2b0 0%,#778e9a 100%);border:1px solid #7a92a1;border-radius:3px;min-width:100px;padding:7px 18px;font-size:12px;font-weight:600;transition:filter .15s}.cme-insert-btn:hover{filter:brightness(1.05)}.cme-cancel-btn{color:#1c2c34;cursor:pointer;background:linear-gradient(#fefefe 0%,#e9eef2 100%);border:1px solid #93a6b3;border-radius:3px;min-width:100px;padding:7px 18px;font-size:12px;font-weight:500;transition:background .15s,border-color .15s}.cme-cancel-btn:hover{color:#102028;background:linear-gradient(#fff 0%,#edf2f5 100%);border-color:#7d95a3}@media (width<=640px){.cme-editor-popup{width:auto;height:min(384px,100vh - 24px);bottom:12px;left:12px;right:12px}.cme-group-tab{padding:0 6px;font-size:9px}.cme-wrapper{--cme-toolbar-panel-height:68px}.cme-insert-btn,.cme-cancel-btn{min-width:88px;padding:6px 14px}}.cme-matrix-selector{background:#0f0f1a;border-bottom:1px solid #2a2a45;flex-direction:column;align-items:center;padding:12px;display:flex}.cme-matrix-label{color:#c4b5fd;-webkit-user-select:none;user-select:none;margin-bottom:8px;font-size:13px;font-weight:600}.cme-matrix-grid{grid-template-rows:repeat(10,20px);grid-template-columns:repeat(10,20px);justify-content:center;gap:2px;display:grid}.cme-matrix-cell{cursor:pointer;background:#13131f;border:1px solid #2a2a45;border-radius:2px;width:20px;height:20px;transition:background .1s,border-color .1s}.cme-matrix-cell.selected{background:#8b5cf6;border-color:#7c3aed}.cme-matrix-btn-wrapper{display:inline-block;position:relative}.cme-matrix-hover-popover{z-index:10005;background:linear-gradient(#f7fafc 0%,#edf3f6 100%);border:1px solid #9eb0bc;border-radius:8px;flex-direction:column;align-items:stretch;gap:6px;margin-top:6px;padding:8px;font-family:Segoe UI,Tahoma,sans-serif;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 14px 28px #0b182233}.cme-matrix-hover-title-wrap{justify-content:space-between;align-items:center;gap:8px;display:flex}.cme-matrix-hover-title{color:#304652;text-align:left;white-space:nowrap;letter-spacing:.04em;text-transform:uppercase;font-size:10px;font-weight:700}.cme-matrix-hover-subtitle{color:#1f593f;text-align:center;background:#56a17e1f;border:1px solid #56a17e40;border-radius:999px;min-width:32px;padding:2px 6px;font-size:10px;font-weight:700;line-height:1.1}.cme-matrix-hover-grid{background:#fff;border:1px solid #b8c8d2;border-radius:4px;flex-direction:column;gap:0;padding:0;display:flex;overflow:hidden}.cme-matrix-hover-row{gap:0;display:flex}.cme-matrix-hover-cell{cursor:pointer;background:#fff;border:1px solid #d7e1e8;border-radius:0;width:12px;height:12px;transition:background-color .12s,border-color .12s,box-shadow .12s}.cme-matrix-hover-cell:hover{background-color:#eef7f1;border-color:#78aa8e}.cme-matrix-hover-cell.selected{background:linear-gradient(#dff2e8 0%,#cce8d8 100%);border-color:#56a17e;box-shadow:inset 0 1px #ffffffd9}.cme-matrix-hover-footer{border-top:1px solid #c7d4db;justify-content:space-between;align-items:center;gap:6px;width:100%;margin-top:0;padding-top:6px;display:flex}.cme-matrix-counter{align-items:center;gap:4px;display:flex}.cme-counter-label{color:#5c7482;font-size:10px;font-weight:700}.cme-counter-val{text-align:center;color:#21363f;background:#fff;border:1px solid #b8c8d2;border-radius:4px;min-width:18px;padding:2px 4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:700}.cme-counter-btns{flex-direction:column;gap:1px;display:flex}.cme-counter-btns button{color:#47606d;cursor:pointer;background:linear-gradient(#fff 0%,#e9eef2 100%);border:1px solid #b8c8d2;border-radius:3px;justify-content:center;align-items:center;width:16px;height:12px;padding:0;font-size:10px;font-weight:700;line-height:1;transition:background .12s,border-color .12s,color .12s;display:flex}.cme-counter-btns button:hover{color:#1f593f;background:linear-gradient(#f7fcf9 0%,#e2f1e8 100%);border-color:#7faa93}.cme-matrix-hover-popover.ck-only{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:8px;width:152px;min-height:148px;padding:8px;display:flex;overflow:hidden}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-title-wrap{display:none}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-grid{border-radius:4px;flex-direction:column;gap:2px;width:100%;padding:3px;display:flex;overflow:hidden}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-row{gap:2px;width:100%;display:flex}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-cell{border-radius:2px;flex:1;height:14px}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-footer{gap:8px;margin-top:auto}.cme-matrix-hover-popover.ck-only .cme-matrix-counter{gap:3px}.cme-matrix-hover-popover.ck-only .cme-counter-btns button{width:15px;height:11px;font-size:9px}.cme-counter-input{color:#21363f;text-align:center;box-sizing:border-box;background:#fff;border:1px solid #b8c8d2;border-radius:4px;width:34px;min-width:34px;height:20px;padding:0 4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:700}.cme-counter-input:focus{box-shadow:none;background:#fff;border-color:#b8c8d2;outline:none}.cme-counter-input::-webkit-outer-spin-button{margin:0}.cme-counter-input::-webkit-inner-spin-button{margin:0}.cme-btn.active,.cme-select.active{color:#1f593f!important;background:linear-gradient(#e3f4ec 0%,#cae7d9 100%)!important;border-color:#56a17e!important;box-shadow:0 0 0 2px #56a17e3d,inset 0 1px #ffffffeb!important}.cme-style-select-trigger,.cme-style-select-trigger:hover,.cme-style-select-trigger:focus,.cme-style-select-trigger:active,.cme-style-select-trigger.active,.cme-style-select-trigger.active:hover{color:#334750!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 7px center/10px 6px no-repeat,linear-gradient(#fff 0%,#edf3f7 100%)!important;border-color:#c5d0d8!important;transition:none!important;transform:none!important;box-shadow:inset 0 1px #ffffffeb!important}.cme-toolbar-items--power-frac{height:88px;min-height:68px;max-height:68px}.cme-toolbar-placeholder-box-green{color:#2ca02c}.cme-btn.green-template.black-glyph-template{color:#111}.cme-fraction-stack--black-glyph-template .cme-fraction-svg rect{stroke:#2c8a43}.cme-fraction-stack--black-glyph-template .cme-fraction-svg line{stroke:#111}.cme-toolbar-placeholder-box-black{color:#2ca02c}.cme-arrow-label-picker-popup .cme-arrow-label-svg rect,.cme-arrow-label-picker-btn .cme-arrow-label-svg rect,.cme-arrow-label-placeholder-box{fill:none;stroke:#2ca02c!important}.cme-group-tab,.cme-btn,.cme-btn--compact,.cme-select,.cme-style-select-trigger,.cme-popup-window-btn,.cme-popup-close,.cme-arrow-picker-btn,.cme-arrow-label-picker-btn,.cme-greek-italic-picker-btn,.cme-blackboard-bold-picker-btn,.cme-fraktur-script-picker-btn,.cme-hebrew-symbol-picker-btn,.cme-insert-btn,.cme-cancel-btn,.cme-counter-btns button,.cme-style-dropdown-option{transition:none!important}.cme-toolbar-items--greek .cme-greek-subgroup--no-right-border{border-right:none}.ck-editor-shell{width:100%}.ck-preview-toolbar{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:16px;display:flex}.ck-preview-toolbar-label{color:#000;text-transform:uppercase;text-align:center;margin:0;font-size:20px;font-weight:1000}.ck-preview-trigger{color:#fff;cursor:pointer;background:#1877f2;border:1px solid #1877f2;border-radius:8px;align-items:center;gap:8px;padding:11px 18px;font-size:15px;font-weight:700;line-height:1;transition:transform .15s,box-shadow .15s,border-color .15s;display:inline-flex;box-shadow:0 10px 24px #0f172a0f}.ck-preview-trigger:hover{border-color:#1877f2;transform:translateY(-1px);box-shadow:0 14px 30px #0f172a1a}.ck-preview-trigger:focus-visible,.ck-preview-modal-icon-button:focus-visible,.ck-preview-modal-close-button:focus-visible{outline-offset:2px;outline:2px solid #94a3b8}.ck-preview-modal-overlay{z-index:99999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172a59;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.ck-preview-modal{background:#fff;border:1px solid #e5e7eb;border-radius:24px;flex-direction:column;width:min(760px,100%);min-height:320px;max-height:min(80vh,760px);display:flex;overflow:hidden;box-shadow:0 32px 80px #0f172a38}.ck-preview-modal-header,.ck-preview-modal-footer{justify-content:space-between;align-items:center;padding:24px 28px;display:flex}.ck-preview-modal-header{border-bottom:1px solid #edf2f7}.ck-preview-modal-footer{border-top:1px solid #edf2f7;justify-content:flex-end}.ck-preview-modal-title{color:#0f172a;margin:0;font-size:20px;font-weight:800;line-height:1.2}.ck-preview-modal-icon-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:14px;width:44px;height:44px;font-size:24px;line-height:1;transition:background .15s,border-color .15s}.ck-preview-modal-icon-button:hover,.ck-preview-modal-close-button:hover{background:#f8fafc;border-color:#cbd5e1}.ck-preview-modal-body{color:#0f172a;flex:1;padding:24px 28px;font-size:15px;line-height:1.75;overflow:auto}.ck-preview-modal-body::-webkit-scrollbar{width:10px}.ck-preview-modal-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.ck-preview-render-zone{color:#0f172a;word-break:break-word}.ck-preview-render-zone .ck-math-widget,.ck-preview-render-zone .ck-math-widget .ck-math-widget-inner,.ck-preview-render-zone .ck-math-widget math-field{color:#0f172a!important}.ck-preview-empty-state{color:#64748b;margin:0;font-style:italic}.ck-preview-modal-close-button{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #d7dee7;border-radius:14px;min-width:140px;padding:12px 22px;font-size:16px;font-weight:700;transition:background .15s,border-color .15s}@media (width<=640px){.ck-preview-modal-overlay{padding:16px}.ck-preview-modal{border-radius:18px;min-height:260px}.ck-preview-modal-header,.ck-preview-modal-body,.ck-preview-modal-footer{padding-left:18px;padding-right:18px}.ck-preview-modal-close-button{width:100%}}.scm-overlay{z-index:100000;position:fixed;inset:0}.scm-modal{background:linear-gradient(#e3ebf1 0%,#d0dbe4 100%);border:1px solid #8fa4b3;border-radius:4px;flex-direction:column;width:270px;height:274px;font-family:Segoe UI,Tahoma,sans-serif;display:flex;position:absolute;overflow:hidden;box-shadow:0 12px 28px #0f1a2347}.scm-toolbar{box-sizing:border-box;background:linear-gradient(#e8eef3 0%,#d8e2ea 100%);border-bottom:1px solid #a3b4c0;align-items:center;gap:6px;padding:5px 8px;display:flex}.scm-code-label{color:#6d88a2;flex-shrink:0;font-size:12px;font-weight:700}.scm-code-input{box-sizing:border-box;color:#22343d;background:#fdfefe;border:1px solid #657887;border-radius:8px;outline:none;width:68px;height:21px;padding:0 7px;font-size:11px}.scm-code-input:focus{border-color:#597086;box-shadow:0 0 0 2px #7d98aa2e}.scm-category-select{box-sizing:border-box;color:#22343d;background:linear-gradient(#fff 0%,#edf1f4 100%);border:1px solid #657887;border-radius:8px;outline:none;flex:1;min-width:96px;height:21px;padding:0 7px;font-size:11px;font-weight:600}.scm-category-select:focus{border-color:#597086;box-shadow:0 0 0 2px #7d98aa2e}.scm-category-select option{color:#22343d;background:#f6f8fa}.scm-body{background:linear-gradient(#d9e2e8 0%,#c9d5de 100%);flex:1;padding:8px 8px 10px;overflow:hidden}.scm-grid-container{background:#f7f8fa;border:1px solid #b2bdc6;height:100%;padding:0;overflow:hidden auto}.scm-grid-container::-webkit-scrollbar{width:16px}.scm-grid-container::-webkit-scrollbar-track{background:#3d4044}.scm-grid-container::-webkit-scrollbar-thumb{background:#a8adb3;border:3px solid #3d4044;border-radius:8px}.scm-grid-container::-webkit-scrollbar-thumb:hover{background:#bcc2c7}.scm-category-group{width:100%}.scm-char-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:0;display:grid}.scm-char-btn{color:#6f89a3;cursor:pointer;background:#fbfbfc;border:none;border-top:1px solid #d0d5da;border-left:1px solid #d0d5da;border-radius:0;justify-content:center;align-items:center;min-width:0;height:24px;padding:0;font-size:17px;transition:background .1s,color .1s;display:flex}.scm-char-btn:hover{color:#38566f;background:#eef4f8}.scm-no-results{text-align:center;color:#6b7f90;padding:22px 10px;font-size:12px}
1
+ @import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";.cme-wrapper{--cme-toolbar-panel-height:68px;background:0 0;border:none;border-radius:4px;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;display:flex;overflow:visible}.cme-tabs{background:#1a1a2e;border-bottom:1px solid #2a2a45;gap:2px;padding:4px 12px 0;display:flex}.cme-tab{color:#a0a0c0;cursor:pointer;background:#13131f;border:1px solid #3a3a5c;border-bottom:none;border-top-left-radius:4px;border-top-right-radius:4px;align-items:center;gap:6px;padding:8px 16px;font-size:11px;font-weight:600;transition:background .12s,color .12s;display:inline-flex}.cme-tab:hover{color:#e8e8ff;background:#1f1f35}.cme-tab.active{color:#c4b5fd;z-index:2;background:#1a1a2e;border-color:#3a3a5c #3a3a5c #1a1a2e;margin-bottom:-1px}.cme-tab svg{opacity:.9;width:14px;height:14px}.cme-toolbar{background:linear-gradient(#dbe4ea 0%,#c7d3dc 100%);border-bottom:1px solid #92a6b4;flex-direction:column;padding:0;display:flex;position:relative;overflow:hidden}.cme-toolbar-groups{box-sizing:border-box;background:#fff;border-bottom:1px solid #8fa1ae;flex-wrap:wrap;gap:2px;min-height:30px;padding:10px 6px 0;display:flex}.cme-group-tab{color:#556e7b;cursor:pointer;white-space:nowrap;z-index:1;box-sizing:border-box;background:linear-gradient(#7d93a0 0%,#556e7b 100%);border:none;border-bottom:1px solid #556e7b;border-top-left-radius:5px;border-top-right-radius:5px;justify-content:center;align-items:center;min-width:54px;height:24px;margin-bottom:-1px;padding:0 8px;font-size:10px;font-weight:700;transition:all .15s;display:inline-flex;position:relative;box-shadow:inset 0 1px #ffffff3d}.cme-group-tab--popup{flex:0 0 56px;width:56px;min-width:56px;max-width:56px;padding:0 4px;overflow:hidden}.cme-group-tab-label{justify-content:center;align-items:center;width:100%;min-width:0;max-width:100%;display:inline-flex;overflow:hidden}.cme-group-tab--popup .cme-tab-icon{width:100%;max-width:38px}.cme-group-tab--popup .cme-tab-icon--svg,.cme-group-tab--math .cme-tab-svg-icon{flex-shrink:1;width:38px;max-width:100%;height:16px}.cme-group-tab--popup .cme-tab-icon-top,.cme-group-tab--math .cme-tab-icon-bottom{white-space:nowrap;max-width:100%;overflow:hidden}.cme-tab-icon{letter-spacing:.02em;color:inherit;flex-direction:column;justify-content:center;align-items:center;line-height:.8;display:inline-flex}.cme-tab-icon.compact{flex-direction:row;gap:2px;line-height:1}.cme-tab-icon--svg{width:46px;height:20px}.cme-tab-svg-icon{width:46px;height:20px;display:block}.cme-tab-icon-top,.cme-tab-icon-bottom{font-size:10px;font-weight:700;display:block}.cme-tab-icon-bottom{opacity:.96;margin-top:1px;font-size:8px}.cme-tab-icon.compact .cme-tab-icon-top{font-size:15px}.cme-group-tab:hover{color:#556e7b;background:linear-gradient(#8ca1ad 0%,#6e8694 100%)}.cme-group-tab--popup.active{color:#556e7b;z-index:2;background:#e6edf2;border:1px solid #9aadb9;border-bottom-color:#e6edf2;height:28px;margin-top:-4px;box-shadow:inset 0 1px #ffffff61}.cme-group-tab--math:nth-child(-n+9):not(.active),.cme-group-tab--math:nth-child(-n+9):not(.active):hover,.cme-group-tab--chem:not(.active),.cme-group-tab--chem:not(.active):hover{color:#fff}.cme-group-tab--chem.active,.cme-group-tab--chem.active:hover,.cme-group-tab--chem.active .cme-group-tab-label,.cme-group-tab--chem.active .cme-tab-icon,.cme-group-tab--chem.active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(2).active,.cme-group-tab--math:nth-child(2).active:hover,.cme-group-tab--math:nth-child(3).active,.cme-group-tab--math:nth-child(3).active:hover,.cme-group-tab--math:nth-child(4).active,.cme-group-tab--math:nth-child(4).active:hover,.cme-group-tab--math:nth-child(5).active,.cme-group-tab--math:nth-child(5).active:hover,.cme-group-tab--math:nth-child(6).active,.cme-group-tab--math:nth-child(6).active:hover,.cme-group-tab--math:nth-child(7).active,.cme-group-tab--math:nth-child(7).active:hover,.cme-group-tab--math:nth-child(9).active,.cme-group-tab--math:nth-child(9).active:hover,.cme-group-tab--math:nth-child(2).active .cme-group-tab-label,.cme-group-tab--math:nth-child(2).active .cme-tab-icon,.cme-group-tab--math:nth-child(2).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(3).active .cme-group-tab-label,.cme-group-tab--math:nth-child(3).active .cme-tab-icon,.cme-group-tab--math:nth-child(3).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(4).active .cme-group-tab-label,.cme-group-tab--math:nth-child(4).active .cme-tab-icon,.cme-group-tab--math:nth-child(4).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(5).active .cme-group-tab-label,.cme-group-tab--math:nth-child(5).active .cme-tab-icon,.cme-group-tab--math:nth-child(5).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(6).active .cme-group-tab-label,.cme-group-tab--math:nth-child(6).active .cme-tab-icon,.cme-group-tab--math:nth-child(6).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(7).active .cme-group-tab-label,.cme-group-tab--math:nth-child(7).active .cme-tab-icon,.cme-group-tab--math:nth-child(7).active .cme-tab-svg-icon,.cme-group-tab--math:nth-child(9).active .cme-group-tab-label,.cme-group-tab--math:nth-child(9).active .cme-tab-icon,.cme-group-tab--math:nth-child(9).active .cme-tab-svg-icon{color:#556e7b!important}.cme-group-tab--math:last-child{color:#fff;z-index:2;background:linear-gradient(#f3d6d9 0%,#dc9e9e 100%);border:none;height:24px;box-shadow:inset 0 1px #ffffff61}.cme-group-tab--math:last-child.active{color:#556e7b;background:#e6edf2;border:1px solid #9aadb9;border-bottom-color:#e6edf2;height:28px}.cme-toolbar-items{box-sizing:border-box;width:calc(100% - 12px);min-width:calc(100% - 12px);max-width:calc(100% - 12px);height:var(--cme-toolbar-panel-height);min-height:var(--cme-toolbar-panel-height);max-height:var(--cme-toolbar-panel-height);background:#e6edf2;border:1px solid #9aadb9;border-radius:0 0 4px 4px;flex-flow:row;align-content:flex-start;align-items:flex-start;gap:2px;margin:0 6px 6px;padding:5px;display:flex;overflow:auto hidden;box-shadow:inset 0 1px #ffffffbf}.cme-toolbar:has(.cme-group-tab--popup.active) .cme-toolbar-items{border-top-color:#e6edf2}.cme-toolbar-items--integral-templates{align-items:stretch;height:112px;min-height:112px;max-height:112px}.cme-toolbar-items--roots-main{grid-template-columns:repeat(var(--cme-roots-main-columns), minmax(0, 1fr));grid-template-rows:repeat(2,24px);align-content:start;place-items:stretch stretch;gap:2px;display:grid}.cme-toolbar-items--greek{padding:5px;display:block}.cme-toolbar-items--popup-compact{gap:2px;padding:5px}.cme-toolbar-items--first-tab{gap:5px;width:100%;min-width:100%;max-width:100%;padding:5px}.cme-toolbar-items--first-tab .cme-symbol-subgroup{gap:6px;margin:0;padding:0 5px}.cme-toolbar-items--first-tab .cme-btn,.cme-toolbar-items--first-tab .cme-btn--compact{margin:0;padding:0 1px}.cme-toolbar-items--first-tab .cme-roots-main-subgroup{place-content:stretch;align-self:stretch;height:100%;grid-template-rows:var(--cme-subgroup-rows,repeat(2, minmax(0, 1fr)))!important}.cme-toolbar-items--first-tab .cme-roots-main-subgroup .cme-btn,.cme-toolbar-items--first-tab .cme-roots-main-subgroup .cme-btn--compact,.cme-toolbar-items--first-tab .cme-roots-main-subgroup .cme-style-select-trigger{width:100%;height:100%;min-height:0}.cme-toolbar-items--first-tab .cme-roots-main-subgroup--stack{min-width:26px}.cme-toolbar-items--first-tab .cme-roots-main-subgroup--dropdown{min-width:88px}.cme-toolbar-items--relations{gap:1px;overflow:hidden}.cme-toolbar-items--relations .cme-symbol-subgroup{align-content:start;margin:0;padding:0 3px;grid-template-rows:repeat(3,auto)!important}.cme-toolbar-items--relations .cme-btn{min-width:17px;height:21px;padding:0 2px;font-size:10px}.cme-toolbar-items--relations .cme-btn.arrow-picker-tool{width:14px;min-width:14px;height:100%;min-height:100%;box-shadow:none;color:#526a79;background:0 0;border:none;border-radius:3px;flex-direction:column;grid-row:1/-1;justify-content:flex-end;place-self:stretch center;align-items:center;padding:0;display:inline-flex}.cme-toolbar-items--arrows{gap:1px;height:84px;min-height:84px;max-height:84px;overflow:hidden}.cme-toolbar-items--arrows .cme-arrows-subgroup{place-content:stretch;align-self:stretch;gap:7px;height:100%;margin:0;padding:3px 4px;grid-template-rows:var(--cme-subgroup-rows,repeat(2, minmax(0, 1fr)))!important}.cme-toolbar-items--arrows .cme-arrows-subgroup .cme-btn,.cme-toolbar-items--arrows .cme-arrows-subgroup .cme-btn--compact{width:100%;height:100%;min-height:0}.cme-toolbar-items--arrows .cme-arrows-subgroup--stack{min-width:20px}.cme-toolbar-items--arrows .cme-arrows-subgroup--picker{min-width:14px}.cme-toolbar-items--arrows .cme-arrows-subgroup--before-picker{border-right:none}.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template{min-width:32px;padding:0 4px}.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template.matrix-tall-template,.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template.matrix-extra-tall-template{height:37px;min-height:37px}.cme-toolbar-items--matrix .cme-btn.matrix-roomy-template .cme-toolbar-icon-image-wrapper{padding:2px}.cme-toolbar-items--brackets{gap:1px;overflow:hidden}.cme-toolbar-items--brackets .cme-brackets-subgroup{place-content:stretch;align-self:stretch;gap:0;height:100%;margin:0;padding:0 3px;grid-template-rows:var(--cme-subgroup-rows,repeat(2, minmax(0, 1fr)))!important}.cme-toolbar-items--brackets .cme-brackets-subgroup .cme-btn,.cme-toolbar-items--brackets .cme-brackets-subgroup .cme-btn--compact{width:100%;height:100%;min-height:0}.cme-toolbar-items--brackets .cme-brackets-subgroup--picker{min-width:14px}.cme-toolbar-items--brackets .cme-brackets-subgroup--before-picker{border-right:none}.cme-toolbar-items::-webkit-scrollbar{height:5px}.cme-toolbar-items::-webkit-scrollbar-track{background:0 0}.cme-toolbar-items::-webkit-scrollbar-thumb{background:#3a3a5c;border-radius:3px}.cme-toolbar-items::-webkit-scrollbar-thumb:hover{background:#8b5cf6}.cme-symbol-subgroup{border-right:1px solid #b9c7d0;flex-shrink:0;grid-template-columns:repeat(2,auto);grid-auto-columns:auto;grid-auto-flow:column;place-content:center;align-items:center;gap:2px;margin:1px 0;padding:0 4px;display:grid;grid-template-rows:repeat(2,auto)!important}.cme-symbol-subgroup:last-child{border-right:none}.cme-symbol-subgroup--compact,.cme-symbol-subgroup--tab-roots-main,.cme-symbol-subgroup--tab-relations,.cme-symbol-subgroup--tab-arrows,.cme-symbol-subgroup--tab-greek,.cme-symbol-subgroup--tab-matrix,.cme-symbol-subgroup--tab-power-frac,.cme-symbol-subgroup--tab-brackets,.cme-symbol-subgroup--tab-sets{gap:8px;margin:0;padding:0 3px}.cme-symbol-subgroup--tab-calc{gap:2px;margin:0;padding:0 3px}.cme-symbol-subgroup--tab-move-text{gap:8px;margin:0;padding:0 3px}.cme-greek-panel{flex-direction:row;flex-shrink:0;align-items:flex-start;gap:0;width:max-content;min-width:100%;height:100%;display:inline-flex}.cme-greek-subgroup{place-content:start;margin:0}.cme-toolbar-items--greek .cme-symbol-subgroup{grid-auto-flow:row;grid-template-rows:var(--cme-greek-rows,repeat(2, auto))!important}.cme-toolbar-items--greek .cme-greek-subgroup--picker{align-content:stretch;align-self:stretch;height:100%;grid-template-rows:repeat(3,minmax(0,1fr))!important}.cme-toolbar-items--greek .cme-greek-subgroup--before-picker{border-right:none}.cme-greek-btn{box-shadow:none;border-radius:0;font-size:14px}.cme-btn{border:1px solid #e6edf2;border-image:#e6edf2;color:#22343d;cursor:pointer;white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box;background:#e6edf2;border-radius:2px;justify-content:center;align-items:center;min-width:24px;height:24px;padding:0 3px;font-family:Latin Modern Math,STIX Two Math,Times New Roman,serif;font-size:11px;line-height:1;transition:background .12s,border-color .12s,box-shadow .12s,transform .12s;display:inline-flex}.cme-btn:hover{background:linear-gradient(#fff 0%,#e6eef5 100%);border-color:#8daab7;box-shadow:0 0 0 1px #93a7b247}.cme-btn:focus,.cme-btn:focus-visible,.cme-group-tab:focus,.cme-group-tab:focus-visible,.cme-popup-window-btn:focus,.cme-popup-window-btn:focus-visible,.cme-popup-close:focus,.cme-popup-close:focus-visible,.cme-insert-btn:focus,.cme-insert-btn:focus-visible,.cme-cancel-btn:focus,.cme-cancel-btn:focus-visible{outline:none}.cme-btn:active{background:linear-gradient(#dff0ea 0%,#c5e7db 100%);border-color:#5ea98a;transform:translateY(1px)}.cme-btn.template{color:#334750;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:9px;font-weight:500}.cme-select{appearance:none;text-align:left;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#fff 0%,#edf3f7 100%);background-position:right 7px center,50%;background-repeat:no-repeat,no-repeat;background-size:10px 6px,100% 100%;border-radius:4px;min-width:24px;height:24px;padding:0 22px 0 6px;font-size:10px;line-height:22px;display:inline-block}.cme-select:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#fff 0%,#e6eef5 100%)}.cme-select:focus{outline:none}.cme-style-select-trigger{text-overflow:ellipsis;overflow:hidden;transition:none!important}.cme-style-select-trigger:hover{background-color:#0000;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),linear-gradient(#fff 0%,#edf3f7 100%);background-position:0 0;background-repeat:repeat;background-size:auto;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;border-color:#c5d0d8;transform:none;box-shadow:inset 0 1px #ffffffeb}.cme-style-dropdown-popup{background:linear-gradient(#fff 0%,#f6fafc 100%);border:1px solid #c8d4dc;border-radius:5px;gap:2px;max-height:260px;padding:6px;display:grid;overflow-y:auto;box-shadow:0 12px 28px #21363f2e,inset 0 1px #ffffffeb}.cme-style-dropdown-option{color:#22343d;text-align:left;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;height:24px;padding:0 9px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:11px;font-weight:600}.cme-style-dropdown-option:hover,.cme-style-dropdown-option.active{color:#1f593f;background:linear-gradient(#fff 0%,#e6eef5 100%);border-color:#8daab7}.cme-style-dropdown-option.active{background:linear-gradient(#e3f4ec 0%,#cae7d9 100%);border-color:#56a17e}.cme-btn.chem-element{color:#2c7040;letter-spacing:.01em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:11px;font-weight:700}.cme-btn.green-template{color:#2c8a43;font-family:Segoe UI,Arial,sans-serif;font-size:11px;font-weight:700}.cme-btn.soft-tool{color:#7e92a1}.cme-btn.format-tool{font-family:Georgia,Times New Roman,serif;font-size:12px;font-weight:700}.cme-btn.color-tool{color:#f39c12}.cme-btn.omega-tool{color:#7f57b6}.cme-btn.text-tool{color:#9462b0;letter-spacing:.04em}.cme-btn.prime-symbol-tool{font-family:STIX Two Math,Cambria Math,Latin Modern Math,Times New Roman,serif;font-size:13.5px;font-weight:700;line-height:1}.cme-btn--compact{border-radius:3px;min-width:19px;height:24px;padding:0 2px;font-size:10.5px}.cme-btn--compact.prime-symbol-tool{font-size:13px}.cme-btn.small-template{min-width:17px;height:20px;padding:0 1px;font-size:8px}.cme-btn.small-template .cme-toolbar-icon-image{max-width:12px;max-height:13px}.cme-btn.small-template .cme-toolbar-glyph{font-size:8px;line-height:.9}.cme-btn.integral-hero-template{width:48px;min-width:48px;height:48px;padding:2px}.cme-btn.integral-hero-template .cme-toolbar-icon-image-wrapper{padding:3px}.cme-btn.integral-hero-template .cme-toolbar-icon-image{max-width:34px;max-height:40px}.cme-btn.derivative-hero-template{width:48px;min-width:48px;height:48px;padding:2px}.cme-btn.derivative-hero-template .cme-toolbar-icon-image-wrapper{padding:3px}.cme-btn.derivative-hero-template .cme-toolbar-icon-image{max-width:34px;max-height:40px}.cme-btn.chem-element:hover{border-color:#75b189}.cme-btn.chem-arrow,.cme-btn.chem-state{color:#334750;letter-spacing:.01em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:12px;font-weight:700}.cme-btn.chem-arrow:hover,.cme-btn.chem-state:hover{border-color:#8daab7}.cme-fraction-icon{letter-spacing:.01em;justify-content:center;align-items:center;gap:0;display:inline-flex}.cme-toolbar-icon-image-wrapper{box-sizing:border-box;flex-shrink:0;justify-content:center;align-items:center;width:100%;min-width:0;height:100%;min-height:0;padding:2px 1px;display:inline-flex}.cme-toolbar-icon-image{object-fit:contain;object-position:center;width:100%;max-width:41px;height:125%;max-height:30px;display:block}.cme-toolbar-icon-image-wrapper--log-base-template-image{padding:1px 0}.cme-toolbar-icon-image--log-base-template-image{object-fit:fill;width:100%;max-width:none;height:100%;max-height:none}.cme-toolbar-icon-image-wrapper--vec-accent-template-image,.cme-toolbar-icon-image-wrapper--overrightarrow-accent-template-image,.cme-toolbar-icon-image-wrapper--overleftrightarrow-accent-template-image,.cme-toolbar-icon-image-wrapper--overline-accent-template-image,.cme-toolbar-icon-image-wrapper--hat-accent-template-image,.cme-toolbar-icon-image-wrapper--tilde-accent-template-image,.cme-toolbar-icon-image-wrapper--ddot-accent-template-image,.cme-toolbar-icon-image-wrapper--dot-accent-template-image{padding:1px}.cme-toolbar-icon-image--vec-accent-template-image,.cme-toolbar-icon-image--overrightarrow-accent-template-image,.cme-toolbar-icon-image--overleftrightarrow-accent-template-image,.cme-toolbar-icon-image--overline-accent-template-image,.cme-toolbar-icon-image--hat-accent-template-image,.cme-toolbar-icon-image--tilde-accent-template-image,.cme-toolbar-icon-image--ddot-accent-template-image,.cme-toolbar-icon-image--dot-accent-template-image{object-fit:contain;width:100%;max-width:25px;height:100%;max-height:20px}.cme-toolbar-icon-image-wrapper--overbrace-arc-template-image,.cme-toolbar-icon-image-wrapper--underbrace-arc-template-image,.cme-toolbar-icon-image-wrapper--overparen-template-image,.cme-toolbar-icon-image-wrapper--underparen-template-image{padding:1px}.cme-toolbar-icon-image--overbrace-arc-template-image,.cme-toolbar-icon-image--underbrace-arc-template-image,.cme-toolbar-icon-image--overparen-template-image,.cme-toolbar-icon-image--underparen-template-image{object-fit:contain;width:100%;max-width:33px;height:100%;max-height:23px}.cme-toolbar-icon-image-wrapper--overline-frame-template-image,.cme-toolbar-icon-image-wrapper--underline-frame-template-image,.cme-toolbar-icon-image-wrapper--left-bar-template-image,.cme-toolbar-icon-image-wrapper--right-bar-template-image,.cme-toolbar-icon-image-wrapper--boxed-square-template-image,.cme-toolbar-icon-image-wrapper--paren-frame-template-image{padding:1px}.cme-toolbar-icon-image--overline-frame-template-image,.cme-toolbar-icon-image--underline-frame-template-image,.cme-toolbar-icon-image--left-bar-template-image,.cme-toolbar-icon-image--right-bar-template-image,.cme-toolbar-icon-image--boxed-square-template-image,.cme-toolbar-icon-image--paren-frame-template-image{object-fit:contain;width:100%;max-width:31px;height:100%;max-height:25px}.cme-toolbar-icon-image-wrapper--cancel-diagonal-template-image,.cme-toolbar-icon-image-wrapper--bcancel-template-image,.cme-toolbar-icon-image-wrapper--sout-template-image,.cme-toolbar-icon-image-wrapper--xcancel-template-image{padding:1px}.cme-toolbar-icon-image--cancel-diagonal-template-image,.cme-toolbar-icon-image--bcancel-template-image,.cme-toolbar-icon-image--sout-template-image,.cme-toolbar-icon-image--xcancel-template-image{object-fit:contain;width:100%;max-width:30px;height:100%;max-height:25px}.cme-fraction-icon.cme-fraction-stack{width:22px;height:24px;overflow:hidden}.cme-fraction-svg{width:22px;height:24px;display:block;overflow:hidden}.cme-fraction-svg rect,.cme-fraction-svg line{stroke:#2c8a43;stroke-width:1.8px;fill:none;stroke-linecap:square}.cme-arrow-label-icon{justify-content:center;align-items:center;width:25px;height:25px;display:inline-flex;overflow:hidden}.cme-arrow-label-svg{width:25px;height:25px;display:block;overflow:hidden}.cme-arrow-label-svg rect{stroke:#2c8a43;stroke-width:1px;fill:none}.cme-arrow-label-svg line,.cme-arrow-label-svg path{stroke:#22343d;stroke-width:.8px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-btn.arrow-picker-tool{width:14px;min-width:14px;height:100%;min-height:100%;box-shadow:none;color:#526a79;background:0 0;border:none;border-radius:3px;flex-direction:column;grid-row:1/-1;justify-content:flex-end;place-self:stretch center;align-items:center;padding:0;display:inline-flex}.cme-toolbar-chevron-indicator{justify-content:center;align-items:flex-end;width:100%;height:100%;padding:0 0 2px;font-size:11px;font-weight:700;line-height:1;display:inline-flex}.cme-btn.arrow-picker-tool:hover{box-shadow:none;background:#b6cbd847}.cme-btn.arrow-picker-tool:active{background:#99b2c261;transform:none}.cme-btn.arrow-picker-tool.active,.cme-btn.arrow-picker-tool.active:hover,.cme-btn.arrow-picker-tool.active:active{box-shadow:none!important;color:#fff!important;background:#7a92a1!important;border-color:#0000!important;transform:none!important}.cme-arrow-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-arrow-picker-grid{grid-template-columns:repeat(8,30px);grid-auto-rows:30px;gap:6px 8px;display:grid}.cme-arrow-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:30px;height:30px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-arrow-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-arrow-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-arrow-picker-btn svg{width:22px;height:22px}.cme-arrow-label-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:8px;padding:6px 8px;box-shadow:0 10px 18px #3b586b29}.cme-arrow-label-picker-grid{grid-template-columns:repeat(4,48px);grid-auto-rows:34px;gap:4px;display:grid}.cme-arrow-label-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:48px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-arrow-label-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-arrow-label-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-greek-italic-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-greek-italic-picker-grid{grid-template-columns:repeat(8,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-greek-italic-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-greek-italic-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-greek-italic-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-greek-italic-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:italic;line-height:1}.cme-blackboard-bold-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-blackboard-bold-picker-grid{grid-template-columns:repeat(8,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-blackboard-bold-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-blackboard-bold-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-blackboard-bold-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-blackboard-bold-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:normal;line-height:1}.cme-fraktur-script-picker-popup{scrollbar-width:thin;scrollbar-color:#88a2b4 #ffffff80;background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;width:352px;max-height:332px;padding:8px 10px;overflow:hidden auto;box-shadow:0 10px 18px #3b586b29}.cme-fraktur-script-picker-popup::-webkit-scrollbar{width:10px}.cme-fraktur-script-picker-popup::-webkit-scrollbar-track{background:#ffffff73;border-radius:999px}.cme-fraktur-script-picker-popup::-webkit-scrollbar-thumb{background:linear-gradient(#9db3c2 0%,#7f99ab 100%);border:2px solid #fff6;border-radius:999px}.cme-fraktur-script-picker-grid{grid-template-columns:repeat(8,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-fraktur-script-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-fraktur-script-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-fraktur-script-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-fraktur-script-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:normal;line-height:1}.cme-hebrew-symbol-picker-popup{background:linear-gradient(#f8fbfe 0%,#dbe7ef 100%);border:1px solid #7f9bad;border-radius:10px;padding:8px 10px;box-shadow:0 10px 18px #3b586b29}.cme-hebrew-symbol-picker-grid{grid-template-columns:repeat(5,36px);grid-auto-rows:34px;gap:4px;display:grid}.cme-hebrew-symbol-picker-btn{color:#1f252b;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;width:36px;height:34px;transition:background .12s,border-color .12s,box-shadow .12s;display:inline-flex}.cme-hebrew-symbol-picker-btn:hover{background:linear-gradient(#fffffff2 0%,#e9f1f7fa 100%);border-color:#8ea7b8;box-shadow:inset 0 0 0 1px #ffffffb3}.cme-hebrew-symbol-picker-btn:active{background:linear-gradient(#edf4f8 0%,#d6e5ef 100%);border-color:#7d98aa}.cme-hebrew-symbol-picker-glyph{font-family:Cambria Math,STIX Two Math,Times New Roman,serif;font-size:20px;font-style:normal;line-height:1}.cme-periodic-table-picker-popup{background:#dbe5ec;border:1px solid #90a0ab;border-radius:8px;padding:4px;box-shadow:0 12px 24px #27425238}.cme-periodic-table-board{background:#dde7ed;position:relative;overflow:hidden}.cme-periodic-table-connector{pointer-events:none;z-index:0;position:absolute}.cme-periodic-table-connector--vertical{background:#8c9aa4;width:2px}.cme-periodic-table-connector--horizontal{background:#8c9aa4;height:2px}.cme-periodic-table-cell{color:#1f252b;cursor:pointer;box-sizing:border-box;z-index:1;border:1px solid #54616b47;border-radius:2px;justify-content:center;align-items:center;margin:0;padding:0;font-family:Segoe UI,Arial,sans-serif;font-size:13px;font-weight:500;line-height:1;transition:transform 80ms,box-shadow 80ms,filter 80ms;display:inline-flex;position:absolute}.cme-periodic-table-cell:hover{filter:brightness(1.02);transform:translateY(-1px);box-shadow:0 2px 6px #2f3d462e}.cme-periodic-table-cell:active{filter:brightness(.98);transform:translateY(0);box-shadow:inset 0 1px 3px #1f252b2e}.cme-periodic-table-cell--hydrogen,.cme-periodic-table-cell--placeholder{background:#f7f9fb}.cme-periodic-table-cell--noble-gas{background:#7feef1}.cme-periodic-table-cell--alkali{background:#ffb200}.cme-periodic-table-cell--alkaline{background:#fff100}.cme-periodic-table-cell--transition{background:#f792b0}.cme-periodic-table-cell--post-transition{background:#32d2e7}.cme-periodic-table-cell--nonmetal{background:#1cff19}.cme-periodic-table-cell--lanthanide{background:#f1b289}.cme-periodic-table-cell--actinide{background:#d9b5df}.cme-periodic-table-cell--series-anchor{background:#ff6f97}.cme-integral-template-icon{flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex;overflow:hidden}.cme-integral-template-svg{width:18px;height:18px;display:block;overflow:hidden}.cme-integral-template-svg path{stroke:#22343d;stroke-width:1.15px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-integral-template-text{fill:#22343d;font-family:Cambria Math,Times New Roman,serif;font-size:6.4px;font-weight:600}.cme-integral-template-box{stroke:#2c8a43;stroke-width:1.02px;fill:none}.cme-matrix-icon{flex-shrink:0;justify-content:center;align-items:center;width:22px;height:24px;display:inline-flex;overflow:hidden}.cme-matrix-svg{width:22px;height:24px;display:block;overflow:hidden}.cme-matrix-svg path{stroke:#22343d;stroke-width:1.25px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-matrix-svg-cell{stroke:#2c8a43;stroke-width:1.05px;fill:none}.cme-matrix-template-icon{flex-shrink:0;justify-content:center;align-items:center;width:28px;height:30px;display:inline-flex;overflow:hidden}.cme-matrix-template-svg{width:28px;height:30px;display:block;overflow:hidden}.cme-matrix-template-svg path{stroke:#22343d;stroke-width:1.2px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-script-icon{flex-shrink:0;justify-content:center;align-items:center;width:20px;height:22px;display:inline-flex;overflow:hidden}.cme-script-svg{width:20px;height:22px;display:block;overflow:hidden}.cme-script-svg rect{stroke:#2c8a43;stroke-width:1.6px;fill:none}.cme-root-icon{flex-shrink:0;justify-content:center;align-items:center;width:30px;height:29px;display:inline-flex;overflow:hidden}.cme-root-svg{width:30px;height:29px;display:block;overflow:hidden}.cme-root-svg path{stroke:#222;stroke-width:2.5px;fill:none}.cme-root-svg-box{stroke:#43a047;stroke-width:2.5px;fill:none}.cme-root-svg-box--small{stroke-width:2.5px}.cme-accent-icon{flex-shrink:0;justify-content:center;align-items:center;width:26px;height:28px;display:inline-flex;overflow:hidden}.cme-accent-svg{width:26px;height:28px;display:block;overflow:hidden}.cme-accent-svg line,.cme-accent-svg path{stroke:#22343d;stroke-width:.7px;fill:none;stroke-linecap:round;stroke-linejoin:round}.cme-accent-svg-box{stroke:#2c8a43;stroke-width:1.2px;fill:none}.cme-toolbar-glyph{white-space:nowrap;text-align:center;justify-content:center;align-items:center;width:100%;min-width:0;max-width:100%;line-height:1;display:inline-flex;overflow:hidden}.cme-toolbar-glyph--roots-main{letter-spacing:-.01em;font-family:Cambria Math,STIX Two Math,Segoe UI Symbol,Segoe UI,serif;font-size:14.4px;font-weight:800}.cme-toolbar-glyph--math{letter-spacing:-.01em;font-family:Cambria Math,STIX Two Math,Segoe UI Symbol,Segoe UI,serif;font-size:17px;font-weight:800}.cme-toolbar-glyph--relations{letter-spacing:-.015em;font-family:Cambria Math,STIX Two Math,Segoe UI Symbol,Segoe UI,serif;font-size:13.8px;font-weight:800}.cme-toolbar-glyph--greek{letter-spacing:-.02em;font-size:16px}.cme-toolbar-glyph--chem{letter-spacing:.005em;color:inherit;font-family:Segoe UI,Arial,sans-serif;font-size:11.4px;font-weight:800}.cme-toolbar-glyph--chem-element{font-size:11.5px}.cme-toolbar-glyph--chem-script{letter-spacing:-.02em;font-family:Segoe UI Symbol,Cambria Math,Segoe UI,sans-serif;font-size:13.2px;font-weight:800;line-height:.95}.cme-toolbar-glyph--chem-charge{letter-spacing:0;font-family:Segoe UI Symbol,Cambria Math,Segoe UI,sans-serif;font-size:11.8px;font-weight:800;line-height:1}.cme-toolbar-glyph--chem-arrow{letter-spacing:0;font-family:Segoe UI Symbol,Segoe UI,Arial,sans-serif;font-size:12.1px}.cme-toolbar-glyph--chem-state{letter-spacing:0;font-size:10.4px}.cme-toolbar-glyph--template{color:#000;font-size:16.4px}.cme-toolbar-glyph--tool{font-family:Segoe UI Symbol,Segoe UI,Arial,sans-serif;font-size:12.2px;font-weight:800}.cme-toolbar-glyph--format{letter-spacing:.01em;font-family:Segoe UI,Arial,sans-serif;font-size:10.6px;font-weight:800}.cme-toolbar-glyph--wide{letter-spacing:-.015em;font-size:13.2px}.cme-toolbar-glyph--very-wide{letter-spacing:-.02em;font-size:12.2px}.cme-fraction-mathfield-icon{pointer-events:none;background:0 0;border:none;width:26px;height:24px;margin:0;padding:0;font-size:10px;overflow:hidden}.cme-fraction-mathfield-icon::part(mf){padding:0}.cme-sep{background:#2a2a45;flex-shrink:0;width:1px;height:20px;margin:0 4px}.cme-mathfield-container{box-sizing:border-box;background:#fff;border:1px solid #97aab7;border-radius:2px;flex:1;min-height:152px;margin:0 8px 8px;display:block;position:relative;overflow:auto;box-shadow:inset 0 1px #ffffffeb}.cme-mathfield-container--rtl{direction:rtl}.cme-mathfield-container::-webkit-scrollbar{width:8px;height:8px}.cme-mathfield-container::-webkit-scrollbar-track{background:#edf2f6}.cme-mathfield-container::-webkit-scrollbar-thumb{background:#9baebb;border-radius:4px}.cme-mathfield-container::-webkit-scrollbar-thumb:hover{background:#7f98a7}math-field.cme-mathfield::-webkit-scrollbar{width:8px;height:8px}math-field.cme-mathfield::-webkit-scrollbar-track{background:#edf2f6}math-field.cme-mathfield::-webkit-scrollbar-thumb{background:#9baebb;border-radius:4px}math-field.cme-mathfield::-webkit-scrollbar-thumb:hover{background:#7f98a7}math-field.cme-mathfield{box-sizing:border-box;cursor:text;--hue:270;--primary-color:#2f6f4c;--caret-color:#2f8a57;--selection-background-color:#5199702e;--selection-color:#1d2c35;--contains-highlight-background-color:transparent;--smart-fence-color:#2f8a57;--text-font-family:"Segoe UI", "Helvetica Neue", Arial, sans-serif;--highlight-inactive-color:transparent;--text-highlight-background-color:transparent;color:#243740;background:0 0;border:none;outline:none;width:max-content;min-width:100%;height:max-content;min-height:100%;padding:10px 12px;font-size:18px;display:block}math-field.cme-mathfield--rtl{text-align:right;direction:rtl}math-field.cme-mathfield:focus-within{background:0 0}math-field.cme-mathfield::part(container){align-items:center;min-height:40px}math-field.cme-mathfield--rtl::part(container){text-align:right;direction:rtl;justify-content:flex-end}math-field.cme-mathfield::part(virtual-keyboard-toggle),math-field.cme-mathfield::part(menu-toggle){display:none}.cme-footer{color:#5a5a80;background:#1a1a2e;border-top:1px solid #2a2a45;justify-content:space-between;align-items:center;gap:8px;padding:6px 12px;font-size:11px;display:flex}.cme-mode-badge{text-transform:uppercase;border-radius:3px;flex-shrink:0;align-items:center;gap:4px;padding:2px 8px;font-size:10px;font-weight:700;display:inline-flex}.cme-mode-badge.math{color:#c4b5fd;background:#8b5cf633}.cme-mode-badge.chem{color:#34d399;background:#34d39926}.cme-hint{color:#3a3a5c;font-size:10px}.Input-question-box{background:0 0;width:100%;padding:0}math-field.cme-main-mathfield{box-sizing:border-box;cursor:text;color:#e8e8ff;--text-font-family:"Segoe UI", "Helvetica Neue", Arial, sans-serif;background:#1a1a2e;border:1px solid #3a3a5c;border-radius:10px;outline:none;width:100%;min-height:48px;padding:12px;font-family:Inter,sans-serif;font-size:16px;transition:border-color .2s,box-shadow .2s;display:block}math-field.cme-main-mathfield:focus-within{background:#1f1f35;border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf633}math-field.cme-main-mathfield::part(virtual-keyboard-toggle),math-field.cme-main-mathfield::part(menu-toggle),.ck-math-widget math-field::part(virtual-keyboard-toggle),.ck-math-widget math-field::part(menu-toggle),.question-preview math-field::part(virtual-keyboard-toggle),.question-preview math-field::part(menu-toggle){display:none}.cme-editor-popup{z-index:10000;box-sizing:border-box;will-change:width, height, top, left;background:#f1f4f7;border:1px solid #879dab;border-radius:3px;flex-direction:column;width:min(720px,100vw - 24px);height:384px;transition:width .24s cubic-bezier(.2,.8,.2,1),height .24s cubic-bezier(.2,.8,.2,1),top .24s cubic-bezier(.2,.8,.2,1),left .24s cubic-bezier(.2,.8,.2,1),background-color .18s,border-color .18s,box-shadow .18s;animation:.2s ease-out slideUp;display:flex;position:fixed;bottom:24px;right:24px;overflow:hidden;box-shadow:0 14px 36px #0b182257}.cme-editor-popup.maximized{border-radius:0;width:75vw;max-width:none;height:80dvh;max-height:none;inset:75px auto auto 189px}.cme-editor-popup.maximized .cme-popup-header,.cme-editor-popup.maximized .cme-toolbar,.cme-editor-popup.maximized .cme-popup-footer{flex:none}.cme-editor-popup.maximized .cme-popup-header{border-radius:0}.cme-editor-popup.maximized .cme-mathfield-container{flex:auto;min-height:0;max-height:none}.cme-editor-popup.minimized{width:min(420px,100vw - 24px);height:32px}.cme-editor-popup.dragging{transition:none}.cme-editor-popup.dragging .cme-popup-header{cursor:grabbing}.cme-editor-popup.minimized>:not(.cme-popup-header){display:none}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.cme-popup-header{color:#fff;box-sizing:border-box;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;background:#778d9a;border-bottom:1px solid #6b8391;border-top-left-radius:2px;border-top-right-radius:2px;justify-content:space-between;align-items:center;min-height:30px;padding:6px 10px;font-size:12px;font-weight:600;display:flex}.cme-popup-header,.cme-toolbar,.cme-mathfield-container,.cme-popup-footer,.cme-toolbar-groups,.cme-toolbar-items,.cme-group-tab,.cme-btn,.cme-btn--compact,.cme-popup-window-btn,.cme-popup-close{transition:background-color 1s,border-color 1s,box-shadow 1s,color 1s,opacity 1s,transform 1s,max-height 1s}.cme-toolbar,.cme-mathfield-container,.cme-popup-footer{opacity:1;transform:translateY(0)}.cme-toolbar{max-height:260px}.cme-mathfield-container{max-height:320px}.cme-popup-footer{max-height:80px}.cme-popup-header:active{cursor:grabbing}.cme-popup-actions{align-items:center;gap:4px;display:flex}.cme-popup-close{color:#ffffffeb;cursor:pointer;opacity:1;background:0 0;border:none;align-items:center;height:100%;font-size:15px;line-height:1;transition:color .15s,background .15s;display:flex}.cme-popup-close:hover{color:#fff}.cme-popup-close:before{content:none;color:#ffffffb3;margin-right:8px;font-family:monospace;font-size:11px}.cme-popup-window-btn,.cme-popup-close{border-radius:3px;justify-content:center;align-items:center;width:18px;height:18px;padding:0;line-height:1;display:inline-flex}.cme-popup-window-btn{color:#ffffffeb;cursor:pointer;background:0 0;border:none;font-size:12px;transition:color .15s,background .15s}.cme-popup-window-btn:hover,.cme-popup-close:hover{color:#fff;background:#ffffff29}.cme-popup-footer{box-sizing:border-box;background:#f1f4f7;border-top:1px solid #c6d1d8;border-bottom-right-radius:2px;border-bottom-left-radius:2px;justify-content:flex-start;gap:10px;padding:8px;display:flex}.cme-insert-btn{color:#fff;cursor:pointer;background:linear-gradient(#8da2b0 0%,#778e9a 100%);border:1px solid #7a92a1;border-radius:3px;min-width:100px;padding:7px 18px;font-size:12px;font-weight:600;transition:filter .15s}.cme-insert-btn:hover{filter:brightness(1.05)}.cme-cancel-btn{color:#1c2c34;cursor:pointer;background:linear-gradient(#fefefe 0%,#e9eef2 100%);border:1px solid #93a6b3;border-radius:3px;min-width:100px;padding:7px 18px;font-size:12px;font-weight:500;transition:background .15s,border-color .15s}.cme-cancel-btn:hover{color:#102028;background:linear-gradient(#fff 0%,#edf2f5 100%);border-color:#7d95a3}@media (width<=640px){.cme-editor-popup{width:auto;height:min(384px,100vh - 24px);bottom:12px;left:12px;right:12px}.cme-group-tab{padding:0 6px;font-size:9px}.cme-wrapper{--cme-toolbar-panel-height:68px}.cme-insert-btn,.cme-cancel-btn{min-width:88px;padding:6px 14px}}.cme-matrix-selector{background:#0f0f1a;border-bottom:1px solid #2a2a45;flex-direction:column;align-items:center;padding:12px;display:flex}.cme-matrix-label{color:#c4b5fd;-webkit-user-select:none;user-select:none;margin-bottom:8px;font-size:13px;font-weight:600}.cme-matrix-grid{grid-template-rows:repeat(10,20px);grid-template-columns:repeat(10,20px);justify-content:center;gap:2px;display:grid}.cme-matrix-cell{cursor:pointer;background:#13131f;border:1px solid #2a2a45;border-radius:2px;width:20px;height:20px;transition:background .1s,border-color .1s}.cme-matrix-cell.selected{background:#8b5cf6;border-color:#7c3aed}.cme-matrix-btn-wrapper{display:inline-block;position:relative}.cme-matrix-hover-popover{z-index:10005;background:linear-gradient(#f7fafc 0%,#edf3f6 100%);border:1px solid #9eb0bc;border-radius:8px;flex-direction:column;align-items:stretch;gap:6px;margin-top:6px;padding:8px;font-family:Segoe UI,Tahoma,sans-serif;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 14px 28px #0b182233}.cme-matrix-hover-title-wrap{justify-content:space-between;align-items:center;gap:8px;display:flex}.cme-matrix-hover-title{color:#304652;text-align:left;white-space:nowrap;letter-spacing:.04em;text-transform:uppercase;font-size:10px;font-weight:700}.cme-matrix-hover-subtitle{color:#1f593f;text-align:center;background:#56a17e1f;border:1px solid #56a17e40;border-radius:999px;min-width:32px;padding:2px 6px;font-size:10px;font-weight:700;line-height:1.1}.cme-matrix-hover-grid{background:#fff;border:1px solid #b8c8d2;border-radius:4px;flex-direction:column;gap:0;padding:0;display:flex;overflow:hidden}.cme-matrix-hover-row{gap:0;display:flex}.cme-matrix-hover-cell{cursor:pointer;background:#fff;border:1px solid #d7e1e8;border-radius:0;width:12px;height:12px;transition:background-color .12s,border-color .12s,box-shadow .12s}.cme-matrix-hover-cell:hover{background-color:#eef7f1;border-color:#78aa8e}.cme-matrix-hover-cell.selected{background:linear-gradient(#dff2e8 0%,#cce8d8 100%);border-color:#56a17e;box-shadow:inset 0 1px #ffffffd9}.cme-matrix-hover-footer{border-top:1px solid #c7d4db;justify-content:space-between;align-items:center;gap:6px;width:100%;margin-top:0;padding-top:6px;display:flex}.cme-matrix-counter{align-items:center;gap:4px;display:flex}.cme-counter-label{color:#5c7482;font-size:10px;font-weight:700}.cme-counter-val{text-align:center;color:#21363f;background:#fff;border:1px solid #b8c8d2;border-radius:4px;min-width:18px;padding:2px 4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:700}.cme-counter-btns{flex-direction:column;gap:1px;display:flex}.cme-counter-btns button{color:#47606d;cursor:pointer;background:linear-gradient(#fff 0%,#e9eef2 100%);border:1px solid #b8c8d2;border-radius:3px;justify-content:center;align-items:center;width:16px;height:12px;padding:0;font-size:10px;font-weight:700;line-height:1;transition:background .12s,border-color .12s,color .12s;display:flex}.cme-counter-btns button:hover{color:#1f593f;background:linear-gradient(#f7fcf9 0%,#e2f1e8 100%);border-color:#7faa93}.cme-matrix-hover-popover.ck-only{box-sizing:border-box;flex-direction:column;align-items:stretch;gap:8px;width:152px;min-height:148px;padding:8px;display:flex;overflow:hidden}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-title-wrap{display:none}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-grid{border-radius:4px;flex-direction:column;gap:2px;width:100%;padding:3px;display:flex;overflow:hidden}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-row{gap:2px;width:100%;display:flex}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-cell{border-radius:2px;flex:1;height:14px}.cme-matrix-hover-popover.ck-only .cme-matrix-hover-footer{gap:8px;margin-top:auto}.cme-matrix-hover-popover.ck-only .cme-matrix-counter{gap:3px}.cme-matrix-hover-popover.ck-only .cme-counter-btns button{width:15px;height:11px;font-size:9px}.cme-counter-input{color:#21363f;text-align:center;box-sizing:border-box;background:#fff;border:1px solid #b8c8d2;border-radius:4px;width:34px;min-width:34px;height:20px;padding:0 4px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:700}.cme-counter-input:focus{box-shadow:none;background:#fff;border-color:#b8c8d2;outline:none}.cme-counter-input::-webkit-outer-spin-button{margin:0}.cme-counter-input::-webkit-inner-spin-button{margin:0}.cme-btn.active,.cme-select.active{color:#1f593f!important;background:linear-gradient(#e3f4ec 0%,#cae7d9 100%)!important;border-color:#56a17e!important;box-shadow:0 0 0 2px #56a17e3d,inset 0 1px #ffffffeb!important}.cme-style-select-trigger,.cme-style-select-trigger:hover,.cme-style-select-trigger:focus,.cme-style-select-trigger:active,.cme-style-select-trigger.active,.cme-style-select-trigger.active:hover{color:#334750!important;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23586d7b' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 7px center/10px 6px no-repeat,linear-gradient(#fff 0%,#edf3f7 100%)!important;border-color:#c5d0d8!important;transition:none!important;transform:none!important;box-shadow:inset 0 1px #ffffffeb!important}.cme-toolbar-items--power-frac{height:88px;min-height:68px;max-height:68px}.cme-toolbar-placeholder-box-green{color:#2ca02c}.cme-btn.green-template.black-glyph-template{color:#111}.cme-fraction-stack--black-glyph-template .cme-fraction-svg rect{stroke:#2c8a43}.cme-fraction-stack--black-glyph-template .cme-fraction-svg line{stroke:#111}.cme-toolbar-placeholder-box-black{color:#2ca02c}.cme-arrow-label-picker-popup .cme-arrow-label-svg rect,.cme-arrow-label-picker-btn .cme-arrow-label-svg rect,.cme-arrow-label-placeholder-box{fill:none;stroke:#2ca02c!important}.cme-group-tab,.cme-btn,.cme-btn--compact,.cme-select,.cme-style-select-trigger,.cme-popup-window-btn,.cme-popup-close,.cme-arrow-picker-btn,.cme-arrow-label-picker-btn,.cme-greek-italic-picker-btn,.cme-blackboard-bold-picker-btn,.cme-fraktur-script-picker-btn,.cme-hebrew-symbol-picker-btn,.cme-insert-btn,.cme-cancel-btn,.cme-counter-btns button,.cme-style-dropdown-option{transition:none!important}.cme-toolbar-items--greek .cme-greek-subgroup--no-right-border{border-right:none}.ck-editor-shell{width:100%}.ck-preview-toolbar{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:16px;display:flex}.ck-preview-toolbar-label{color:#000;text-transform:uppercase;text-align:center;margin:0;font-size:20px;font-weight:1000}.ck-preview-trigger{color:#fff;cursor:pointer;background:#1877f2;border:1px solid #1877f2;border-radius:8px;align-items:center;gap:8px;padding:11px 18px;font-size:15px;font-weight:700;line-height:1;transition:transform .15s,box-shadow .15s,border-color .15s;display:inline-flex;box-shadow:0 10px 24px #0f172a0f}.ck-preview-trigger:hover{border-color:#1877f2;transform:translateY(-1px);box-shadow:0 14px 30px #0f172a1a}.ck-preview-trigger:focus-visible,.ck-preview-modal-icon-button:focus-visible,.ck-preview-modal-close-button:focus-visible{outline-offset:2px;outline:2px solid #94a3b8}.ck-preview-modal-overlay{z-index:99999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0f172a59;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.ck-preview-modal{background:#fff;border:1px solid #e5e7eb;border-radius:24px;flex-direction:column;width:min(760px,100%);min-height:320px;max-height:min(80vh,760px);display:flex;overflow:hidden;box-shadow:0 32px 80px #0f172a38}.ck-preview-modal-header,.ck-preview-modal-footer{justify-content:space-between;align-items:center;padding:24px 28px;display:flex}.ck-preview-modal-header{border-bottom:1px solid #edf2f7}.ck-preview-modal-footer{border-top:1px solid #edf2f7;justify-content:flex-end}.ck-preview-modal-title{color:#0f172a;margin:0;font-size:20px;font-weight:800;line-height:1.2}.ck-preview-modal-icon-button{color:#334155;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:14px;width:44px;height:44px;font-size:24px;line-height:1;transition:background .15s,border-color .15s}.ck-preview-modal-icon-button:hover,.ck-preview-modal-close-button:hover{background:#f8fafc;border-color:#cbd5e1}.ck-preview-modal-body{color:#0f172a;flex:1;padding:24px 28px;font-size:15px;line-height:1.75;overflow:auto}.ck-preview-modal-body::-webkit-scrollbar{width:10px}.ck-preview-modal-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}.ck-preview-render-zone{color:#0f172a;word-break:break-word}.ck-preview-render-zone .math-tex,.ck-preview-render-zone .math-tex math-field{color:#0f172a!important}.ck-preview-empty-state{color:#64748b;margin:0;font-style:italic}.ck-preview-modal-close-button{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #d7dee7;border-radius:14px;min-width:140px;padding:12px 22px;font-size:16px;font-weight:700;transition:background .15s,border-color .15s}@media (width<=640px){.ck-preview-modal-overlay{padding:16px}.ck-preview-modal{border-radius:18px;min-height:260px}.ck-preview-modal-header,.ck-preview-modal-body,.ck-preview-modal-footer{padding-left:18px;padding-right:18px}.ck-preview-modal-close-button{width:100%}}.scm-overlay{z-index:100000;position:fixed;inset:0}.scm-modal{background:linear-gradient(#e3ebf1 0%,#d0dbe4 100%);border:1px solid #8fa4b3;border-radius:4px;flex-direction:column;width:270px;height:274px;font-family:Segoe UI,Tahoma,sans-serif;display:flex;position:absolute;overflow:hidden;box-shadow:0 12px 28px #0f1a2347}.scm-toolbar{box-sizing:border-box;background:linear-gradient(#e8eef3 0%,#d8e2ea 100%);border-bottom:1px solid #a3b4c0;align-items:center;gap:6px;padding:5px 8px;display:flex}.scm-code-label{color:#6d88a2;flex-shrink:0;font-size:12px;font-weight:700}.scm-code-input{box-sizing:border-box;color:#22343d;background:#fdfefe;border:1px solid #657887;border-radius:8px;outline:none;width:68px;height:21px;padding:0 7px;font-size:11px}.scm-code-input:focus{border-color:#597086;box-shadow:0 0 0 2px #7d98aa2e}.scm-category-select{box-sizing:border-box;color:#22343d;background:linear-gradient(#fff 0%,#edf1f4 100%);border:1px solid #657887;border-radius:8px;outline:none;flex:1;min-width:96px;height:21px;padding:0 7px;font-size:11px;font-weight:600}.scm-category-select:focus{border-color:#597086;box-shadow:0 0 0 2px #7d98aa2e}.scm-category-select option{color:#22343d;background:#f6f8fa}.scm-body{background:linear-gradient(#d9e2e8 0%,#c9d5de 100%);flex:1;padding:8px 8px 10px;overflow:hidden}.scm-grid-container{background:#f7f8fa;border:1px solid #b2bdc6;height:100%;padding:0;overflow:hidden auto}.scm-grid-container::-webkit-scrollbar{width:16px}.scm-grid-container::-webkit-scrollbar-track{background:#3d4044}.scm-grid-container::-webkit-scrollbar-thumb{background:#a8adb3;border:3px solid #3d4044;border-radius:8px}.scm-grid-container::-webkit-scrollbar-thumb:hover{background:#bcc2c7}.scm-category-group{width:100%}.scm-char-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:0;display:grid}.scm-char-btn{color:#6f89a3;cursor:pointer;background:#fbfbfc;border:none;border-top:1px solid #d0d5da;border-left:1px solid #d0d5da;border-radius:0;justify-content:center;align-items:center;min-width:0;height:24px;padding:0;font-size:17px;transition:background .1s,color .1s;display:flex}.scm-char-btn:hover{color:#38566f;background:#eef4f8}.scm-no-results{text-align:center;color:#6b7f90;padding:22px 10px;font-size:12px}
2
2
  /*$vite$:1*/
package/dist/index.cjs CHANGED
@@ -33,7 +33,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
33
33
  ▯`,insert:`\\xcancel{#?}`,cls:`template`,directInsert:!0,title:`Cross Cancel`,icon:`xcancel-template-image`},_(`strikeDecorationExtras`,`More Strike Decorations`)]},{id:`sets`,label:(0,i.jsx)(N,{top:`Σ ∪`,compact:!0}),items:[{label:`sum-limits-both`,insert:`\\sum\\limits_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Summation With Upper and Lower Limits`,icon:`sum-limits-both-template-image`},{label:`sum-limits-lower`,insert:`\\sum\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Lower Limit`,icon:`sum-limits-lower-template-image`},{label:`sum-right-both`,insert:`\\sum\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Superscript and Subscript`,icon:`sum-right-both-template-image`},{label:`sum-right-lower`,insert:`\\sum\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Summation With Right Subscript`,icon:`sum-right-lower-template-image`},{label:`prod-limits-both`,insert:`\\prod\\limits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Upper and Lower Limits`,icon:`prod-limits-both-template-image`},{label:`prod-limits-lower`,insert:`\\prod\\limits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Lower Limit`,icon:`prod-limits-lower-template-image`},{label:`prod-right-both`,insert:`\\prod\\nolimits^{#?}_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Superscript and Subscript`,icon:`prod-right-both-template-image`},{label:`prod-right-lower`,insert:`\\prod\\nolimits_{#?}`,cls:`template`,directInsert:!0,title:`Product With Right Subscript`,icon:`prod-right-lower-template-image`},{label:`□
34
34
 
35
35
  □`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\overset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}}`,cls:`template`,directInsert:!0,title:`Operator With Upper and Lower Limits`,icon:`operator-limits-both-template-image`},{label:`▯
36
- □`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{label:`⋂`,insert:`\\bigcap`},{label:`⋃`,insert:`\\bigcup`},{label:`∏`,insert:`\\prod`},{label:`∐`,insert:`\\coprod`},{label:`⨅`,insert:`\\sqcap`},{label:`⨆`,insert:`\\bigsqcup`},{label:`∑`,insert:`\\sum`}]},{id:`calc`,label:(0,i.jsx)(z,{}),isTemplate:!0,items:[{label:`integral-both`,insert:`\\int_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Definite Integral`,icon:`integral-both-template-image`},{label:`integral-lower`,insert:`\\int_{#?}`,cls:`template`,directInsert:!0,title:`Integral With Subscript`,icon:`integral-lower-template-image`},{label:`∫□d□`,insert:`\\int_{#?}^{#?} #? \\, d#?`,directInsert:!0,title:`Integral`,icon:`integral-box-differential-template-image`},{label:``,insert:`\\int_{#?} #? \\, d#?`,cls:`template`,directInsert:!0,title:`Integral`,icon:`integral-template-image`},{type:`sep`,cols:4},{label:`d`,insert:`d`,cls:`template`,directInsert:!0,title:`Differential`},{label:`∂`,insert:`∂`,cls:`template`,directInsert:!0,title:`Partial Differential`},{label:`first-derivative`,insert:`\\frac{d#?}{d#?}`,cls:`template`,directInsert:!0,title:`First Derivative`,icon:`first-derivative-template-image`},{label:`partial-derivative`,insert:`\\frac{\\partial#?}{\\partial#?}`,cls:`template`,directInsert:!0,title:`Partial Derivative`,icon:`partial-derivative-template-image`},{type:`sep`,cols:2},{label:`limit-infinity`,insert:`\\lim_{#?\\to\\infty}`,cls:`template`,directInsert:!0,title:`Limit to Infinity`,icon:`limit-infinity-template-image`},{label:`limit-generic`,insert:`\\lim_{#?}`,cls:`template`,directInsert:!0,title:`Limit`,icon:`limit-generic-template-image`},{type:`sep`,cols:2},{label:`∇×□`,insert:`\\nabla \\times #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Curl`},{label:`∇·□`,insert:`\\nabla \\cdot #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Divergence`},{label:`∇□`,insert:`\\nabla #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Gradient`},{label:`Δ□`,insert:`\\Delta #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Delta Expression`},{type:`sep`,cols:3},{label:`∫`,insert:`\\int`,icon:`single-integral-template-image`},{label:`∮`,insert:`\\oint`,icon:`contour-integral-template-image`},{label:`∬`,insert:`\\iint`,icon:`double-integral-template-image`},{label:`∯`,insert:`\\oiint`,icon:`double-contour-integral-template-image`},_(`tripleIntegralExtras`,`More Triple Integrals`),{type:`sep`,cols:2},{label:`log(□)`,insert:`\\log\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`log₍□₎(□)`,insert:`\\log_{#?}\\left(#?\\right)`,cls:`template`,directInsert:!0,title:`Logarithm With Base`,icon:`log-base-template-image`},{type:`sep`,cols:4},{label:`sin(□)`,insert:`\\sin\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan(□)`,insert:`\\tan\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos(□)`,insert:`\\cos\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`ln(□)`,insert:`\\ln\\left(#0\\right)`,cls:`green-placeholder-glyph`},_(`trigFunctionExtras`,`More Trig Functions`)]},{id:`move-text`,label:(0,i.jsx)(B,{}),isTemplate:!0,items:[{label:`Move Up`,action:`MOVE_TEXT_UP`,cls:`template`,title:`Move Up`,icon:`move-text-up-template-image`},{label:`Move Right`,action:`MOVE_TEXT_RIGHT`,cls:`template`,title:`Move Right`,icon:`move-text-right-template-image`},{label:`Move Left`,action:`MOVE_TEXT_LEFT`,cls:`template`,title:`Move Left`,icon:`move-text-left-template-image`},{label:`Move Down`,action:`MOVE_TEXT_DOWN`,cls:`template`,title:`Move Down`,icon:`move-text-down-template-image`}]}],se=[{id:`chem-period-1`,label:(0,i.jsx)(N,{top:`H-Ne`,bottom:`elem`}),isChem:!0,items:[`H`,`He`,`Li`,`Be`,`B`,`C`,`N`,`O`,`F`,`Ne`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-period-2`,label:(0,i.jsx)(N,{top:`Na-Ca`,bottom:`elem`}),isChem:!0,items:[`Na`,`Mg`,`Al`,`Si`,`P`,`S`,`Cl`,`Ar`,`K`,`Ca`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-reactions`,label:(0,i.jsx)(N,{top:`Fe-Zn`,bottom:`→ ⇌`}),isChem:!0,items:[...[`Fe`,`Cu`,`Zn`,`Mn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Cr`,`Ni`,`Co`,`Ag`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Au`,`Hg`,`Pb`,`Sn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Br`,`I`,`Ba`,`Pt`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},{label:`Xe`,insert:`Xe`,cls:`chem-element`},{type:`sep`,cols:5},{label:`→`,insert:`->`,cls:`chem-arrow`},{label:`⇌`,insert:`<=>`,cls:`chem-arrow`},{label:`←`,insert:`<-`,cls:`chem-arrow`},{label:`⇄`,insert:`<->`,cls:`chem-arrow`},{label:`↑`,insert:`^`,cls:`chem-arrow`},{type:`sep`,cols:4},{label:`↓`,insert:`v`,cls:`chem-arrow`},{label:`+`,insert:` + `,cls:`chem-arrow`},{label:`→(Δ)`,insert:`->[\\Delta]`,cls:`chem-arrow`},{label:`→(aq)`,insert:`->[aq]`,cls:`chem-arrow`}]},{id:`chem-states`,label:(0,i.jsx)(N,{top:`(aq)`,bottom:`± ₂`}),isChem:!0,items:[{label:`(s)`,insert:`(s)`,cls:`chem-state`},{label:`(l)`,insert:`(l)`,cls:`chem-state`},{label:`(g)`,insert:`(g)`,cls:`chem-state`},{label:`(aq)`,insert:`(aq)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`(conc)`,insert:`(conc)`,cls:`chem-state`},{label:`(dil)`,insert:`(dil)`,cls:`chem-state`},{label:`(ppt)`,insert:`(ppt)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`✚`,insert:`^{+}`,cls:`chem-element`},{label:`━`,insert:`^{-}`,cls:`chem-element`},{label:`²⁺`,insert:`^{2+}`,cls:`chem-element`},{label:`²⁻`,insert:`^{2-}`,cls:`chem-element`},{type:`sep`,cols:2},{label:`³⁺`,insert:`^{3+}`,cls:`chem-element`},{label:`³⁻`,insert:`^{3-}`,cls:`chem-element`},{label:`2`,insert:`2`,cls:`chem-element`},{label:`3`,insert:`3`,cls:`chem-element`},{type:`sep`,cols:2},{label:`4`,insert:`4`,cls:`chem-element`},{label:`5`,insert:`5`,cls:`chem-element`},{label:`6`,insert:`6`,cls:`chem-element`},{label:`7`,insert:`7`,cls:`chem-element`},{type:`sep`,cols:3},{label:`8`,insert:`8`,cls:`chem-element`},{label:`x`,insert:`x`,cls:`chem-element`},{label:`n`,insert:`n`,cls:`chem-element`}]},{id:`chem-molecules`,label:(0,i.jsx)(N,{top:`H₂O`,bottom:`ions`}),isChem:!0,items:[{label:`H₂O`,insert:`H2O`,cls:`chem-element`},{label:`CO₂`,insert:`CO2`,cls:`chem-element`},{label:`NH₃`,insert:`NH3`,cls:`chem-element`},{label:`H₂SO₄`,insert:`H2SO4`,cls:`chem-element`},{label:`HCl`,insert:`HCl`,cls:`chem-element`},{label:`NaOH`,insert:`NaOH`,cls:`chem-element`},{label:`NaCl`,insert:`NaCl`,cls:`chem-element`},{label:`CaCO₃`,insert:`CaCO3`,cls:`chem-element`},{label:`HNO₃`,insert:`HNO3`,cls:`chem-element`},{label:`H₃PO₄`,insert:`H3PO4`,cls:`chem-element`},{label:`CH₃COOH`,insert:`CH3COOH`,cls:`chem-element`},{label:`C₆H₁₂O₆`,insert:`C6H12O6`,cls:`chem-element`},{label:`CH₄`,insert:`CH4`,cls:`chem-element`},{label:`C₂H₅OH`,insert:`C2H5OH`,cls:`chem-element`},{label:`CO₃²⁻`,insert:`CO3^{2-}`,cls:`chem-element`},{label:`SO₄²⁻`,insert:`SO4^{2-}`,cls:`chem-element`},{label:`NO₃⁻`,insert:`NO3^-`,cls:`chem-element`},{label:`PO₄³⁻`,insert:`PO4^{3-}`,cls:`chem-element`},{label:`NH₄⁺`,insert:`NH4^+`,cls:`chem-element`},{label:`OH⁻`,insert:`OH^-`,cls:`chem-element`}]}];function ce(e=``){if(String(e).match(/^\\ce\{([\s\S]*)\}$/))return e;let t=e.replace(/\\text\{([^}]*)\}/g,`$1`).replace(/\$/g,``).trim();return t?`\\ce{${t}}`:``}function N({top:e,bottom:t=``,compact:n=!1}){return(0,i.jsxs)(`span`,{className:`cme-tab-icon${n?` compact`:``}`,"aria-hidden":`true`,children:[(0,i.jsx)(`span`,{className:`cme-tab-icon-top`,children:e}),t?(0,i.jsx)(`span`,{className:`cme-tab-icon-bottom`,children:t}):null]})}function P(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 48 24`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M2 13 L5 13 L7 18 L10 4 L20 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`rect`,{x:`13`,y:`7`,width:`8`,height:`8`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`3`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`line`,{x1:`29`,y1:`12`,x2:`39`,y2:`12`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`15`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`})]})})}function F(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 210 110`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 H4 V102 H12`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`path`,{d:`M96 8 H104 V102 H96`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`24`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`path`,{d:`M142 8 C132 8 132 18 132 28 C132 38 128 45 124 49 C128 53 132 60 132 70 C132 80 132 90 142 102`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`154`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`154`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`})]})})}function le(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 70 50`,focusable:`false`,children:[(0,i.jsx)(`rect`,{x:`4`,y:`20`,width:`20`,height:`28`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`24`,y:`6`,width:`12`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`51`,y:`10`,width:`8`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`48`,y:`30`,width:`14`,height:`18`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function I(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 56 28`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M18 4 C10 4 6 9 6 14 C6 19 10 24 18 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`line`,{x1:`8`,y1:`14`,x2:`18`,y2:`14`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`}),(0,i.jsx)(`text`,{x:`26`,y:`24`,fill:`currentColor`,fontFamily:`Cambria Math, serif`,fontSize:`35`,children:`∞`})]})})}function L(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 40 24`,focusable:`false`,children:(0,i.jsx)(`text`,{x:`2`,y:`20`,fill:`currentColor`,fontFamily:`Segoe UI Symbol, Arial Unicode MS, sans-serif`,fontSize:`25`,children:`α Ω`})})})}function R(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 90 50`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 C4 14,4 36,12 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`20`,y:`10`,width:`18`,height:`30`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`path`,{d:`M46 8 C54 14,54 36,46 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`path`,{d:`M65 10 Q75 2 85 10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`68`,y:`18`,width:`14`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function z(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 80 50`,focusable:`false`,children:[(0,i.jsx)(`text`,{x:`2`,y:`40`,fill:`currentColor`,fontSize:`42`,fontFamily:`Cambria Math, Times New Roman, serif`,fontWeight:`500`,children:`∫`}),(0,i.jsx)(`rect`,{x:`30`,y:`1`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`40`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`text`,{x:`45`,y:`36`,fill:`currentColor`,fontSize:`32`,fontWeight:`500`,fontFamily:`Cambria Math, Times New Roman, serif`,children:`lim`})]})})}function B(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:[(0,i.jsx)(`path`,{d:`M12 3V12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),(0,i.jsx)(`path`,{d:`M8.5 8.5L12 12L15.5 8.5`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M4 15C4 19 7.5 22 12 22C16.5 22 20 19 20 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M7 15C7 17.5 9 19 12 19C15 19 17 17.5 17 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`})]})})}function V(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 64 24`,focusable:`false`,children:(0,i.jsxs)(`g`,{fill:`currentColor`,children:[(0,i.jsx)(`path`,{d:`M4 10h20V5l12 7-12 7v-5H4z`}),(0,i.jsx)(`circle`,{cx:`44`,cy:`18`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`52`,cy:`12`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`60`,cy:`6`,r:`2.5`})]})})})}var ue=class extends r.Plugin{static get pluginName(){return`MathInlinePlugin`}static get requires(){return[r.Widget]}init(){let e=this.editor;e.model.schema.register(`mathInline`,{isInline:!0,isObject:!0,allowWhere:`$text`,allowAttributes:[`latex`,`dir`]}),e.model.schema.addChildCheck((e,t)=>{if(t.name===`mathInline`)return!0}),e.conversion.for(`editingDowncast`).elementToElement({model:`mathInline`,view:(t,{writer:n})=>{let i=t.getAttribute(`latex`)||``,a=t.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,o=`math-`+Math.random().toString(36).substr(2,9);window.__ckMathWidgets.set(o,t);let s=n.createContainerElement(`span`,{class:`ck-math-widget ck-math-inline-word`,contenteditable:`false`,"data-math-id":o,"data-latex":i,"data-dir":a,dir:a}),c=n.createRawElement(`span`,{class:`ck-math-widget-inner`,style:`display:inline-block;vertical-align:middle;margin:0 2px;cursor:pointer;width:auto;max-width:100%;pointer-events:none;`},t=>{let n=document.createElement(`math-field`);n.setAttribute(`read-only`,``),n.setAttribute(`math-virtual-keyboard-policy`,`manual`),n.setAttribute(`tabindex`,`-1`),n.setAttribute(`letter-shape-style`,`upright`),n.setAttribute(`dir`,a),n.style.display=`inline-block`,n.style.width=`auto`,n.style.maxWidth=`100%`,n.style.verticalAlign=`middle`,n.style.border=`none`,n.style.background=`transparent`,n.style.outline=`none`,n.style.fontSize=`inherit`,n.style.minHeight=`auto`,n.style.padding=`0 2px`,n.style.margin=`0`,n.style.pointerEvents=`none`,n.style.direction=a,n.style.textAlign=a===`rtl`?`right`:`left`,n.style.unicodeBidi=a===`rtl`?`plaintext`:`normal`,n.style.color=`#ffffff`;let r=()=>{n.setValue?n.setValue(i,{silenceNotifications:!0}):n.value=i};customElements.get(`math-field`)?requestAnimationFrame(r):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(r)),t.appendChild(n);let o=()=>{let n=t.parentElement;n&&m(e,n)};o(),requestAnimationFrame(o)});return n.insert(n.createPositionAt(s,0),c),(0,r.toWidget)(s,n,{label:`math formula`})}});let t=e.editing.view.document;this.listenTo(t,`mousedown`,(t,n)=>{let r=c(n.domTarget);r&&n.domEvent.button===0&&(t.stop(),n.preventDefault(),p(e,null,l(r),r))},{priority:`high`}),e.conversion.for(`dataDowncast`).elementToElement({model:`mathInline`,view:(e,{writer:t})=>{let n=e.getAttribute(`latex`)||``,r=e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,i=t.createContainerElement(`span`,{class:`math-tex`,"data-latex":n,"data-dir":r,dir:r,style:`display:inline;`});return t.insert(t.createPositionAt(i,0),t.createText(n)),i}}),e.conversion.for(`upcast`).elementToElement({view:{name:`span`,classes:`math-tex`},model:(e,{writer:t})=>{let n=e.getAttribute(`data-latex`)||``,r=e.getAttribute(`data-dir`)===`rtl`||e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`;return t.createElement(`mathInline`,{latex:n,dir:r})}})}},H=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path d="M4 12h3l3 6l5-12h5" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,de=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><rect x="3" y="3" width="18" height="18" rx="3" fill="none" stroke="currentColor" stroke-width="2"/><text x="12" y="16" text-anchor="middle" font-size="12" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">C</text><text x="6" y="8" font-size="4" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">6</text></svg>`,fe=[{label:`Black`,value:`#000000`},{label:`Dim Gray`,value:`#696969`},{label:`Gray`,value:`#808080`},{label:`Dark Gray`,value:`#a9a9a9`},{label:`Silver`,value:`#c0c0c0`},{label:`White`,value:`#ffffff`},{label:`Red`,value:`#ff0000`},{label:`Orange`,value:`#ffa500`},{label:`Yellow`,value:`#ffff00`},{label:`Lime`,value:`#00ff00`},{label:`Cyan`,value:`#00ffff`},{label:`Blue`,value:`#0000ff`},{label:`Purple`,value:`#800080`},{label:`Magenta`,value:`#ff00ff`},{label:`Pink`,value:`#ffc0cb`},{label:`Brown`,value:`#a52a2a`},{label:`Maroon`,value:`#800000`},{label:`Olive`,value:`#808000`},{label:`Green`,value:`#008000`},{label:`Teal`,value:`#008080`},{label:`Navy`,value:`#000080`},{label:`Indigo`,value:`#4b0082`},{label:`Violet`,value:`#ee82ee`},{label:`Gold`,value:`#ffd700`}];function pe(e){let t=String(e||``).trim();if(!t)return``;if(t===`none`)return`none`;if(typeof document>`u`)return t.toLowerCase();let n=document.createElement(`span`);if(n.style.color=``,n.style.color=t,!n.style.color)return``;n.style.position=`absolute`,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n);let r=window.getComputedStyle(n).color;n.remove();let i=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return i?`#${[i[1],i[2],i[3]].map(e=>Number(e).toString(16).padStart(2,`0`)).join(``)}`:r.toLowerCase()}function U(e){return`data:image/svg+xml;utf8,${encodeURIComponent(e)}`}function W(e){return U(`
36
+ □`,insert:`\\displaystyle{\\underset{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.34em;line-height:1.15}{#?}}{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}}}`,cls:`template`,directInsert:!0,title:`Operator With Lower Limit`,icon:`operator-lower-limit-template-image`},{label:`▯^□_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}^{\\htmlStyle{font-size:1.1em;display:inline-block;padding-bottom:0.26em;line-height:1.15}{#?}}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Superscript and Subscript`,icon:`operator-right-sup-sub-template-image`},{label:`▯_□`,insert:`\\displaystyle{\\htmlStyle{font-size:1.45em;line-height:1.1}{#0}_{\\htmlStyle{font-size:1.1em;display:inline-block;padding-top:0.26em;line-height:1.15}{#?}}}`,cls:`template`,directInsert:!0,title:`Operator With Right Subscript`,icon:`operator-right-sub-template-image`},{label:`⋂`,insert:`\\bigcap`},{label:`⋃`,insert:`\\bigcup`},{label:`∏`,insert:`\\prod`},{label:`∐`,insert:`\\coprod`},{label:`⨅`,insert:`\\sqcap`},{label:`⨆`,insert:`\\bigsqcup`},{label:`∑`,insert:`\\sum`}]},{id:`calc`,label:(0,i.jsx)(z,{}),isTemplate:!0,items:[{label:`integral-both`,insert:`\\int_{#?}^{#?}`,cls:`template`,directInsert:!0,title:`Definite Integral`,icon:`integral-both-template-image`},{label:`integral-lower`,insert:`\\int_{#?}`,cls:`template`,directInsert:!0,title:`Integral With Subscript`,icon:`integral-lower-template-image`},{label:`∫□d□`,insert:`\\int_{#?}^{#?} #? \\, d#?`,directInsert:!0,title:`Integral`,icon:`integral-box-differential-template-image`},{label:``,insert:`\\int_{#?} #? \\, d#?`,cls:`template`,directInsert:!0,title:`Integral`,icon:`integral-template-image`},{type:`sep`,cols:4},{label:`d`,insert:`d`,cls:`template`,directInsert:!0,title:`Differential`},{label:`∂`,insert:`∂`,cls:`template`,directInsert:!0,title:`Partial Differential`},{label:`first-derivative`,insert:`\\frac{d#?}{d#?}`,cls:`template`,directInsert:!0,title:`First Derivative`,icon:`first-derivative-template-image`},{label:`partial-derivative`,insert:`\\frac{\\partial#?}{\\partial#?}`,cls:`template`,directInsert:!0,title:`Partial Derivative`,icon:`partial-derivative-template-image`},{type:`sep`,cols:2},{label:`limit-infinity`,insert:`\\lim_{#?\\to\\infty}`,cls:`template`,directInsert:!0,title:`Limit to Infinity`,icon:`limit-infinity-template-image`},{label:`limit-generic`,insert:`\\lim_{#?}`,cls:`template`,directInsert:!0,title:`Limit`,icon:`limit-generic-template-image`},{type:`sep`,cols:2},{label:`∇×□`,insert:`\\nabla \\times #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Curl`},{label:`∇·□`,insert:`\\nabla \\cdot #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Divergence`},{label:`∇□`,insert:`\\nabla #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Gradient`},{label:`Δ□`,insert:`\\Delta #?`,cls:`template green-placeholder-glyph`,directInsert:!0,title:`Delta Expression`},{type:`sep`,cols:3},{label:`∫`,insert:`\\int`,icon:`single-integral-template-image`},{label:`∮`,insert:`\\oint`,icon:`contour-integral-template-image`},{label:`∬`,insert:`\\iint`,icon:`double-integral-template-image`},{label:`∯`,insert:`\\oiint`,icon:`double-contour-integral-template-image`},_(`tripleIntegralExtras`,`More Triple Integrals`),{type:`sep`,cols:2},{label:`log(□)`,insert:`\\log\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`log₍□₎(□)`,insert:`\\log_{#?}\\left(#?\\right)`,cls:`template`,directInsert:!0,title:`Logarithm With Base`,icon:`log-base-template-image`},{type:`sep`,cols:4},{label:`sin(□)`,insert:`\\sin\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`tan(□)`,insert:`\\tan\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`cos(□)`,insert:`\\cos\\left(#0\\right)`,cls:`green-placeholder-glyph`},{label:`ln(□)`,insert:`\\ln\\left(#0\\right)`,cls:`green-placeholder-glyph`},_(`trigFunctionExtras`,`More Trig Functions`)]},{id:`move-text`,label:(0,i.jsx)(B,{}),isTemplate:!0,items:[{label:`Move Up`,action:`MOVE_TEXT_UP`,cls:`template`,title:`Move Up`,icon:`move-text-up-template-image`},{label:`Move Right`,action:`MOVE_TEXT_RIGHT`,cls:`template`,title:`Move Right`,icon:`move-text-right-template-image`},{label:`Move Left`,action:`MOVE_TEXT_LEFT`,cls:`template`,title:`Move Left`,icon:`move-text-left-template-image`},{label:`Move Down`,action:`MOVE_TEXT_DOWN`,cls:`template`,title:`Move Down`,icon:`move-text-down-template-image`}]}],se=[{id:`chem-period-1`,label:(0,i.jsx)(N,{top:`H-Ne`,bottom:`elem`}),isChem:!0,items:[`H`,`He`,`Li`,`Be`,`B`,`C`,`N`,`O`,`F`,`Ne`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-period-2`,label:(0,i.jsx)(N,{top:`Na-Ca`,bottom:`elem`}),isChem:!0,items:[`Na`,`Mg`,`Al`,`Si`,`P`,`S`,`Cl`,`Ar`,`K`,`Ca`].map(e=>({label:e,insert:e,cls:`chem-element`}))},{id:`chem-reactions`,label:(0,i.jsx)(N,{top:`Fe-Zn`,bottom:`→ ⇌`}),isChem:!0,items:[...[`Fe`,`Cu`,`Zn`,`Mn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Cr`,`Ni`,`Co`,`Ag`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Au`,`Hg`,`Pb`,`Sn`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},...[`Br`,`I`,`Ba`,`Pt`].map(e=>({label:e,insert:e,cls:`chem-element`})),{type:`sep`,cols:2},{label:`Xe`,insert:`Xe`,cls:`chem-element`},{type:`sep`,cols:5},{label:`→`,insert:`->`,cls:`chem-arrow`},{label:`⇌`,insert:`<=>`,cls:`chem-arrow`},{label:`←`,insert:`<-`,cls:`chem-arrow`},{label:`⇄`,insert:`<->`,cls:`chem-arrow`},{label:`↑`,insert:`^`,cls:`chem-arrow`},{type:`sep`,cols:4},{label:`↓`,insert:`v`,cls:`chem-arrow`},{label:`+`,insert:` + `,cls:`chem-arrow`},{label:`→(Δ)`,insert:`->[\\Delta]`,cls:`chem-arrow`},{label:`→(aq)`,insert:`->[aq]`,cls:`chem-arrow`}]},{id:`chem-states`,label:(0,i.jsx)(N,{top:`(aq)`,bottom:`± ₂`}),isChem:!0,items:[{label:`(s)`,insert:`(s)`,cls:`chem-state`},{label:`(l)`,insert:`(l)`,cls:`chem-state`},{label:`(g)`,insert:`(g)`,cls:`chem-state`},{label:`(aq)`,insert:`(aq)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`(conc)`,insert:`(conc)`,cls:`chem-state`},{label:`(dil)`,insert:`(dil)`,cls:`chem-state`},{label:`(ppt)`,insert:`(ppt)`,cls:`chem-state`},{type:`sep`,cols:2},{label:`✚`,insert:`^{+}`,cls:`chem-element`},{label:`━`,insert:`^{-}`,cls:`chem-element`},{label:`²⁺`,insert:`^{2+}`,cls:`chem-element`},{label:`²⁻`,insert:`^{2-}`,cls:`chem-element`},{type:`sep`,cols:2},{label:`³⁺`,insert:`^{3+}`,cls:`chem-element`},{label:`³⁻`,insert:`^{3-}`,cls:`chem-element`},{label:`2`,insert:`2`,cls:`chem-element`},{label:`3`,insert:`3`,cls:`chem-element`},{type:`sep`,cols:2},{label:`4`,insert:`4`,cls:`chem-element`},{label:`5`,insert:`5`,cls:`chem-element`},{label:`6`,insert:`6`,cls:`chem-element`},{label:`7`,insert:`7`,cls:`chem-element`},{type:`sep`,cols:3},{label:`8`,insert:`8`,cls:`chem-element`},{label:`x`,insert:`x`,cls:`chem-element`},{label:`n`,insert:`n`,cls:`chem-element`}]},{id:`chem-molecules`,label:(0,i.jsx)(N,{top:`H₂O`,bottom:`ions`}),isChem:!0,items:[{label:`H₂O`,insert:`H2O`,cls:`chem-element`},{label:`CO₂`,insert:`CO2`,cls:`chem-element`},{label:`NH₃`,insert:`NH3`,cls:`chem-element`},{label:`H₂SO₄`,insert:`H2SO4`,cls:`chem-element`},{label:`HCl`,insert:`HCl`,cls:`chem-element`},{label:`NaOH`,insert:`NaOH`,cls:`chem-element`},{label:`NaCl`,insert:`NaCl`,cls:`chem-element`},{label:`CaCO₃`,insert:`CaCO3`,cls:`chem-element`},{label:`HNO₃`,insert:`HNO3`,cls:`chem-element`},{label:`H₃PO₄`,insert:`H3PO4`,cls:`chem-element`},{label:`CH₃COOH`,insert:`CH3COOH`,cls:`chem-element`},{label:`C₆H₁₂O₆`,insert:`C6H12O6`,cls:`chem-element`},{label:`CH₄`,insert:`CH4`,cls:`chem-element`},{label:`C₂H₅OH`,insert:`C2H5OH`,cls:`chem-element`},{label:`CO₃²⁻`,insert:`CO3^{2-}`,cls:`chem-element`},{label:`SO₄²⁻`,insert:`SO4^{2-}`,cls:`chem-element`},{label:`NO₃⁻`,insert:`NO3^-`,cls:`chem-element`},{label:`PO₄³⁻`,insert:`PO4^{3-}`,cls:`chem-element`},{label:`NH₄⁺`,insert:`NH4^+`,cls:`chem-element`},{label:`OH⁻`,insert:`OH^-`,cls:`chem-element`}]}];function ce(e=``){if(String(e).match(/^\\ce\{([\s\S]*)\}$/))return e;let t=e.replace(/\\text\{([^}]*)\}/g,`$1`).replace(/\$/g,``).trim();return t?`\\ce{${t}}`:``}function N({top:e,bottom:t=``,compact:n=!1}){return(0,i.jsxs)(`span`,{className:`cme-tab-icon${n?` compact`:``}`,"aria-hidden":`true`,children:[(0,i.jsx)(`span`,{className:`cme-tab-icon-top`,children:e}),t?(0,i.jsx)(`span`,{className:`cme-tab-icon-bottom`,children:t}):null]})}function P(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 48 24`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M2 13 L5 13 L7 18 L10 4 L20 4`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.8`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`rect`,{x:`13`,y:`7`,width:`8`,height:`8`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`3`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`line`,{x1:`29`,y1:`12`,x2:`39`,y2:`12`,stroke:`currentColor`,strokeWidth:`1.7`}),(0,i.jsx)(`rect`,{x:`31`,y:`15`,width:`6`,height:`6`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.7`})]})})}function F(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 210 110`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 H4 V102 H12`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`path`,{d:`M96 8 H104 V102 H96`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`24`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`64`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`path`,{d:`M142 8 C132 8 132 18 132 28 C132 38 128 45 124 49 C128 53 132 60 132 70 C132 80 132 90 142 102`,fill:`none`,stroke:`currentColor`,strokeWidth:`7`}),(0,i.jsx)(`rect`,{x:`154`,y:`15`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`}),(0,i.jsx)(`rect`,{x:`154`,y:`63`,width:`22`,height:`32`,fill:`none`,stroke:`currentColor`,strokeWidth:`7.5`})]})})}function le(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 70 50`,focusable:`false`,children:[(0,i.jsx)(`rect`,{x:`4`,y:`20`,width:`20`,height:`28`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`24`,y:`6`,width:`12`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`51`,y:`10`,width:`8`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`rect`,{x:`48`,y:`30`,width:`14`,height:`18`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function I(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 56 28`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M18 4 C10 4 6 9 6 14 C6 19 10 24 18 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`,strokeLinejoin:`round`}),(0,i.jsx)(`line`,{x1:`8`,y1:`14`,x2:`18`,y2:`14`,stroke:`currentColor`,strokeWidth:`2.5`,strokeLinecap:`round`}),(0,i.jsx)(`text`,{x:`26`,y:`24`,fill:`currentColor`,fontFamily:`Cambria Math, serif`,fontSize:`35`,children:`∞`})]})})}function L(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 40 24`,focusable:`false`,children:(0,i.jsx)(`text`,{x:`2`,y:`20`,fill:`currentColor`,fontFamily:`Segoe UI Symbol, Arial Unicode MS, sans-serif`,fontSize:`25`,children:`α Ω`})})})}function R(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 90 50`,focusable:`false`,children:[(0,i.jsx)(`path`,{d:`M12 8 C4 14,4 36,12 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`20`,y:`10`,width:`18`,height:`30`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`}),(0,i.jsx)(`path`,{d:`M46 8 C54 14,54 36,46 42`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`path`,{d:`M65 10 Q75 2 85 10`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`,strokeLinecap:`round`}),(0,i.jsx)(`rect`,{x:`68`,y:`18`,width:`14`,height:`22`,fill:`none`,stroke:`currentColor`,strokeWidth:`4`})]})})}function z(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 80 50`,focusable:`false`,children:[(0,i.jsx)(`text`,{x:`2`,y:`40`,fill:`currentColor`,fontSize:`42`,fontFamily:`Cambria Math, Times New Roman, serif`,fontWeight:`500`,children:`∫`}),(0,i.jsx)(`rect`,{x:`30`,y:`1`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`rect`,{x:`24`,y:`40`,width:`10`,height:`10`,fill:`none`,stroke:`currentColor`,strokeWidth:`2.5`}),(0,i.jsx)(`text`,{x:`45`,y:`36`,fill:`currentColor`,fontSize:`32`,fontWeight:`500`,fontFamily:`Cambria Math, Times New Roman, serif`,children:`lim`})]})})}function B(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`,fill:`none`,children:[(0,i.jsx)(`path`,{d:`M12 3V12`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`}),(0,i.jsx)(`path`,{d:`M8.5 8.5L12 12L15.5 8.5`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M4 15C4 19 7.5 22 12 22C16.5 22 20 19 20 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`}),(0,i.jsx)(`path`,{d:`M7 15C7 17.5 9 19 12 19C15 19 17 17.5 17 15`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,fill:`none`})]})})}function V(){return(0,i.jsx)(`span`,{className:`cme-tab-icon cme-tab-icon--svg`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-tab-svg-icon`,viewBox:`0 0 64 24`,focusable:`false`,children:(0,i.jsxs)(`g`,{fill:`currentColor`,children:[(0,i.jsx)(`path`,{d:`M4 10h20V5l12 7-12 7v-5H4z`}),(0,i.jsx)(`circle`,{cx:`44`,cy:`18`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`52`,cy:`12`,r:`2.5`}),(0,i.jsx)(`circle`,{cx:`60`,cy:`6`,r:`2.5`})]})})})}var ue=class extends r.Plugin{static get pluginName(){return`MathInlinePlugin`}static get requires(){return[r.Widget]}init(){let e=this.editor;e.model.schema.register(`mathInline`,{isInline:!0,isObject:!0,allowWhere:`$text`,allowAttributes:[`latex`,`dir`]}),e.model.schema.addChildCheck((e,t)=>{if(t.name===`mathInline`)return!0}),e.conversion.for(`editingDowncast`).elementToElement({model:`mathInline`,view:(t,{writer:n})=>{let i=t.getAttribute(`latex`)||``,a=t.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,o=`math-`+Math.random().toString(36).substr(2,9);window.__ckMathWidgets.set(o,t);let s=n.createContainerElement(`span`,{class:`ck-math-widget ck-math-inline-word`,contenteditable:`false`,"data-math-id":o,"data-latex":i,"data-dir":a,dir:a}),c=n.createRawElement(`span`,{class:`ck-math-widget-inner`,style:`display:inline-block;vertical-align:middle;margin:0 2px;cursor:pointer;width:auto;max-width:100%;pointer-events:none;`},t=>{let n=document.createElement(`math-field`);n.setAttribute(`read-only`,``),n.setAttribute(`math-virtual-keyboard-policy`,`manual`),n.setAttribute(`tabindex`,`-1`),n.setAttribute(`letter-shape-style`,`upright`),n.setAttribute(`dir`,a),n.style.display=`inline-block`,n.style.width=`auto`,n.style.maxWidth=`100%`,n.style.verticalAlign=`middle`,n.style.border=`none`,n.style.background=`transparent`,n.style.outline=`none`,n.style.fontSize=`inherit`,n.style.minHeight=`auto`,n.style.padding=`0 2px`,n.style.margin=`0`,n.style.pointerEvents=`none`,n.style.direction=a,n.style.textAlign=a===`rtl`?`right`:`left`,n.style.unicodeBidi=a===`rtl`?`plaintext`:`normal`,n.style.color=`#000000`;let r=()=>{n.setValue?n.setValue(i,{silenceNotifications:!0}):n.value=i};customElements.get(`math-field`)?requestAnimationFrame(r):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(r)),t.appendChild(n);let o=()=>{let n=t.parentElement;n&&m(e,n)};o(),requestAnimationFrame(o)});return n.insert(n.createPositionAt(s,0),c),(0,r.toWidget)(s,n,{label:`math formula`})}});let t=e.editing.view.document;this.listenTo(t,`mousedown`,(t,n)=>{let r=c(n.domTarget);r&&n.domEvent.button===0&&(t.stop(),n.preventDefault(),p(e,null,l(r),r))},{priority:`high`}),e.conversion.for(`dataDowncast`).elementToElement({model:`mathInline`,view:(e,{writer:t})=>{let n=e.getAttribute(`latex`)||``,r=e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`,i=t.createContainerElement(`span`,{class:`math-tex`,"data-latex":n,"data-dir":r,dir:r,style:`display:inline;`});return t.insert(t.createPositionAt(i,0),t.createText(n)),i}}),e.conversion.for(`upcast`).elementToElement({view:{name:`span`,classes:`math-tex`},model:(e,{writer:t})=>{let n=e.getAttribute(`data-latex`)||``,r=e.getAttribute(`data-dir`)===`rtl`||e.getAttribute(`dir`)===`rtl`?`rtl`:`ltr`;return t.createElement(`mathInline`,{latex:n,dir:r})}})}},H=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><path d="M4 12h3l3 6l5-12h5" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/></svg>`,de=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20"><rect x="3" y="3" width="18" height="18" rx="3" fill="none" stroke="currentColor" stroke-width="2"/><text x="12" y="16" text-anchor="middle" font-size="12" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">C</text><text x="6" y="8" font-size="4" font-weight="bold" fill="currentColor" font-family="system-ui, sans-serif">6</text></svg>`,fe=[{label:`Black`,value:`#000000`},{label:`Dim Gray`,value:`#696969`},{label:`Gray`,value:`#808080`},{label:`Dark Gray`,value:`#a9a9a9`},{label:`Silver`,value:`#c0c0c0`},{label:`White`,value:`#ffffff`},{label:`Red`,value:`#ff0000`},{label:`Orange`,value:`#ffa500`},{label:`Yellow`,value:`#ffff00`},{label:`Lime`,value:`#00ff00`},{label:`Cyan`,value:`#00ffff`},{label:`Blue`,value:`#0000ff`},{label:`Purple`,value:`#800080`},{label:`Magenta`,value:`#ff00ff`},{label:`Pink`,value:`#ffc0cb`},{label:`Brown`,value:`#a52a2a`},{label:`Maroon`,value:`#800000`},{label:`Olive`,value:`#808000`},{label:`Green`,value:`#008000`},{label:`Teal`,value:`#008080`},{label:`Navy`,value:`#000080`},{label:`Indigo`,value:`#4b0082`},{label:`Violet`,value:`#ee82ee`},{label:`Gold`,value:`#ffd700`}];function pe(e){let t=String(e||``).trim();if(!t)return``;if(t===`none`)return`none`;if(typeof document>`u`)return t.toLowerCase();let n=document.createElement(`span`);if(n.style.color=``,n.style.color=t,!n.style.color)return``;n.style.position=`absolute`,n.style.opacity=`0`,n.style.pointerEvents=`none`,document.body.appendChild(n);let r=window.getComputedStyle(n).color;n.remove();let i=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return i?`#${[i[1],i[2],i[3]].map(e=>Number(e).toString(16).padStart(2,`0`)).join(``)}`:r.toLowerCase()}function U(e){return`data:image/svg+xml;utf8,${encodeURIComponent(e)}`}function W(e){return U(`
37
37
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
38
38
  <g fill="none" stroke="#1f252b" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
39
39
  ${e}
@@ -2619,7 +2619,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2619
2619
  <text x="4" y="36" font-size="36" font-family="sans-serif" fill="#000">۴۶</text>
2620
2620
  </svg>
2621
2621
  `)};function he(e,t={}){if(e.cls?.includes(`arrow-picker-tool`))return(0,i.jsx)(`span`,{className:`cme-toolbar-chevron-indicator`,"aria-hidden":`true`,children:`⏵`});if(e.icon&&me[e.icon])return(0,i.jsx)(`span`,{className:`cme-toolbar-icon-image-wrapper cme-toolbar-icon-image-wrapper--${e.icon}`,"aria-hidden":`true`,children:(0,i.jsx)(`img`,{className:`cme-toolbar-icon-image cme-toolbar-icon-image--${e.icon}`,src:me[e.icon],alt:``})});if(e.icon===`stacked-fraction`)return(0,i.jsx)(`span`,{className:`cme-fraction-icon cme-fraction-stack${e.cls?.includes(`black-glyph-template`)?` cme-fraction-stack--black-glyph-template`:``}`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-fraction-svg`,viewBox:`0 0 24 24`,focusable:`false`,"aria-hidden":`true`,children:[(0,i.jsx)(`rect`,{x:`7.5`,y:`-0.2`,width:`9`,height:`9`}),(0,i.jsx)(`line`,{x1:`5.5`,y1:`12`,x2:`18.5`,y2:`12`}),(0,i.jsx)(`rect`,{x:`7.5`,y:`15.3`,width:`9`,height:`9`})]})});if(e.icon===`arrow-label-right-above`||e.icon===`arrow-label-left-above`||e.icon===`arrow-label-both-above`||e.icon===`arrow-label-right-below`||e.icon===`arrow-label-left-below`||e.icon===`arrow-label-both-below`||e.icon===`arrow-label-both-above-below`||e.icon===`arrow-label-right-above-below`||e.icon===`arrow-label-left-above-below`||e.icon===`harpoon-label-right-left-above`||e.icon===`harpoon-label-right-left-below`||e.icon===`harpoon-label-right-left-above-below`||e.icon===`harpoon-label-left-right-above-below`||e.icon===`bar-harpoon-label-right-left-above-below`||e.icon===`bar-harpoon-label-right-left-above`||e.icon===`bar-harpoon-label-right-left-below`||e.icon===`bar-harpoon-label-left-right-above-below`||e.icon===`bar-arrow-label-right-left-above`||e.icon===`bar-arrow-label-right-left-above-below`||e.icon===`bar-arrow-label-left-right-above`||e.icon===`bar-arrow-label-left-right-above-below`){let{direction:t,arrowY:n,topBox:r,bottomBox:a}={"arrow-label-right-above":{direction:`right`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-left-above":{direction:`left`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-both-above":{direction:`both`,arrowY:11.25,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"arrow-label-right-below":{direction:`right`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-left-below":{direction:`left`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-below":{direction:`both`,arrowY:6.7,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"arrow-label-both-above-below":{direction:`both`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-right-above-below":{direction:`right`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"arrow-label-left-above-below":{direction:`left`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-right-left-above":{direction:`harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"harpoon-label-right-left-below":{direction:`harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"harpoon-label-right-left-above-below":{direction:`harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"harpoon-label-left-right-above-below":{direction:`harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above-below":{direction:`bar-harpoon-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-harpoon-label-right-left-above":{direction:`bar-harpoon-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-harpoon-label-right-left-below":{direction:`bar-harpoon-rl`,arrowY:6.6,bottomBox:{x:6.5,y:10.35,width:4.8,height:5.7}},"bar-harpoon-label-left-right-above-below":{direction:`bar-harpoon-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-right-left-above":{direction:`bar-arrow-rl`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-right-left-above-below":{direction:`bar-arrow-rl`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}},"bar-arrow-label-left-right-above":{direction:`bar-arrow-lr`,arrowY:11.15,topBox:{x:6.5,y:1.55,width:4.8,height:5.7}},"bar-arrow-label-left-right-above-below":{direction:`bar-arrow-lr`,arrowY:8.55,topBox:{x:6.5,y:1.3,width:4.8,height:4.9},bottomBox:{x:6.5,y:11.7,width:4.8,height:4.9}}}[e.icon],o=t===`left`?(0,i.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H14.9`}):t===`both`?(0,i.jsx)(`path`,{d:`M5.1 ${n-1.55}L2.55 ${n}L5.1 ${n+1.55}M2.95 ${n}H15.05M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}`}):t===`harpoon-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M3.1 ${n-1.95}H14.35M12.05 ${n-3.15}L14.55 ${n-1.95}L12.05 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.45 ${n+1.65}H3.2M5.45 ${n+.45}L2.95 ${n+1.65}L5.45 ${n+2.85}`})]}):t===`harpoon-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.45 ${n-1.95}H3.2M5.45 ${n-3.15}L2.95 ${n-1.95}L5.45 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M3.1 ${n+1.65}H14.35M12.05 ${n+.45}L14.55 ${n+1.65}L12.05 ${n+2.85}`})]}):t===`bar-harpoon-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M4.3 ${n-1.95}H14.1M11.8 ${n-3.15}L14.3 ${n-1.95}L11.8 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.2 ${n+1.65}H4.1M6.35 ${n+.45}L3.85 ${n+1.65}L6.35 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`2.95`,y1:n-1.95,x2:`4.15`,y2:n-1.95}),(0,i.jsx)(`line`,{x1:`14.2`,y1:n+1.65,x2:`15.3`,y2:n+1.65})]}):t===`bar-harpoon-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.2 ${n-1.95}H4.1M6.35 ${n-3.15}L3.85 ${n-1.95}L6.35 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M4.3 ${n+1.65}H14.1M11.8 ${n+.45}L14.3 ${n+1.65}L11.8 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`14.2`,y1:n-1.95,x2:`15.3`,y2:n-1.95}),(0,i.jsx)(`line`,{x1:`2.95`,y1:n+1.65,x2:`4.15`,y2:n+1.65})]}):t===`bar-arrow-rl`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M4.2 ${n-1.95}H14.05M11.75 ${n-3.15}L14.25 ${n-1.95}L11.75 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M14.15 ${n+1.65}H4.25M6.55 ${n+.45}L4.05 ${n+1.65}L6.55 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`4.05`,y1:n+1.65,x2:`14.15`,y2:n+1.65})]}):t===`bar-arrow-lr`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`path`,{d:`M14.15 ${n-1.95}H4.25M6.55 ${n-3.15}L4.05 ${n-1.95}L6.55 ${n-.75}`}),(0,i.jsx)(`path`,{d:`M4.2 ${n+1.65}H14.05M11.75 ${n+.45}L14.25 ${n+1.65}L11.75 ${n+2.85}`}),(0,i.jsx)(`line`,{x1:`4.05`,y1:n-1.95,x2:`14.15`,y2:n-1.95})]}):(0,i.jsx)(`path`,{d:`M12.5 ${n-1.55}L15.05 ${n}L12.5 ${n+1.55}M2.95 ${n}H14.65`});return(0,i.jsx)(`span`,{className:`cme-arrow-label-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-arrow-label-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[r?(0,i.jsx)(`rect`,{...r,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null,o,a?(0,i.jsx)(`rect`,{...a,rx:`0.45`,className:`cme-arrow-label-placeholder-box`}):null]})})}if(e.insert===`matrix`||e.insert===`bmatrix`||e.insert===`pmatrix`||e.insert===`vmatrix`){let t=e.insert,n=t===`matrix`?[[2.3,3.1],[7.1,3.1],[11.9,3.1],[2.3,7.25],[7.1,7.25],[11.9,7.25],[2.3,11.4],[7.1,11.4],[11.9,11.4]]:[[5.3,2.95],[10.1,2.95],[5.3,7.1],[10.1,7.1],[5.3,11.25],[10.1,11.25]],r;return t===`bmatrix`?r=(0,i.jsx)(`path`,{d:`M3 1.8H1.95V15.85H3M12.95 1.8H14V15.85H12.95`}):t===`pmatrix`?r=(0,i.jsx)(`path`,{d:`M3.15 1.8C1.85 3.05 1.35 4.75 1.35 8.85C1.35 12.95 1.85 14.65 3.15 15.85M12.85 1.8C14.15 3.05 14.65 4.75 14.65 8.85C14.65 12.95 14.15 14.65 12.85 15.85`}):t===`vmatrix`&&(r=(0,i.jsx)(`path`,{d:`M2.6 1.9V15.75M13.4 1.9V15.75`})),(0,i.jsx)(`span`,{className:`cme-matrix-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-matrix-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[r,n.map(([e,n],r)=>(0,i.jsx)(`rect`,{x:e,y:n,width:`2.35`,height:`2.9`,rx:`0.28`,className:`cme-matrix-svg-cell`},`${t}-${r}`))]})})}let n={"\\begin{matrix} #? & #? & #? \\end{matrix}":{frame:`none`,cells:[[2.15,7.05],[6.85,7.05],[11.55,7.05]]},"\\begin{bmatrix} #? \\\\ #? \\end{bmatrix}":{frame:`brackets`,cells:[[7.05,3.25],[7.05,10.2]]},"\\begin{bmatrix} #? & #? \\end{bmatrix}":{frame:`brackets`,cells:[[4.85,7.05],[9.25,7.05]]},"\\begin{pmatrix} #? \\\\ #? \\end{pmatrix}":{frame:`parentheses`,cells:[[7.05,3.25],[7.05,10.2]]},"\\begin{pmatrix} #? & #? \\end{pmatrix}":{frame:`parentheses`,cells:[[4.85,7.05],[9.25,7.05]]},"\\begin{bmatrix} #? \\\\ #? \\\\ #? \\end{bmatrix}":{frame:`brackets`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\begin{pmatrix} #? \\\\ #? \\\\ #? \\end{pmatrix}":{frame:`parentheses`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]},"\\begin{matrix} #? \\\\ #? \\\\ #? \\end{matrix}":{frame:`none`,cells:[[7.05,1.9],[7.05,7.05],[7.05,12.2]]}}[e.insert];if(n){let e;return n.frame===`brackets`?e=(0,i.jsx)(`path`,{d:`M2.7 1.4H1.75V16.1H2.7M13.3 1.4H14.25V16.1H13.3`}):n.frame===`parentheses`&&(e=(0,i.jsx)(`path`,{d:`M3 1.4C1.95 2.7 1.55 4.65 1.55 8.75C1.55 12.85 1.95 14.8 3 16.1M13 1.4C14.05 2.7 14.45 4.65 14.45 8.75C14.45 12.85 14.05 14.8 13 16.1`})),(0,i.jsx)(`span`,{className:`cme-matrix-template-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-matrix-template-svg`,viewBox:`0 0 16 18`,focusable:`false`,"aria-hidden":`true`,children:[e,n.cells.map(([e,t],n)=>(0,i.jsx)(`rect`,{x:e,y:t,width:`2.35`,height:`3`,rx:`0.28`,className:`cme-matrix-svg-cell`},`matrix-template-${n}`))]})})}if(e.icon===`superscript-template`||e.icon===`subscript-template`)return(0,i.jsx)(`span`,{className:`cme-script-icon`,"aria-hidden":`true`,children:(0,i.jsx)(`svg`,{className:`cme-script-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:e.icon===`superscript-template`?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`rect`,{x:`3`,y:`7`,width:`6`,height:`8`,rx:`0.5`}),(0,i.jsx)(`rect`,{x:`10`,y:`3`,width:`5`,height:`7`,rx:`0.5`})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(`rect`,{x:`3`,y:`3`,width:`6`,height:`8`,rx:`0.5`}),(0,i.jsx)(`rect`,{x:`10`,y:`8`,width:`5`,height:`7`,rx:`0.5`})]})})});if(e.icon===`square-root-template`||e.icon===`nth-root-template`){let t=e.icon===`nth-root-template`;return(0,i.jsx)(`span`,{className:`cme-root-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-root-svg`,width:`48`,height:`32`,viewBox:`0 0 46 32`,focusable:`false`,"aria-hidden":`true`,children:[t?(0,i.jsx)(`rect`,{x:`8`,y:`4`,width:`8`,height:`10`,className:`cme-root-svg-box cme-root-svg-box--small`}):null,(0,i.jsx)(`path`,{d:t?`M10 18 L17 25 L24 4 L46 4`:`M4 18 L11 25 L18 4 L42 4`}),(0,i.jsx)(`rect`,{x:t?`30`:`24`,y:`9`,width:`11`,height:`15`,className:`cme-root-svg-box`})]})})}if(e.icon===`accent-harpoon-right`||e.icon===`accent-arrow-right`||e.icon===`accent-arrow-both`||e.icon===`accent-bar`){let t;return t=e.icon===`accent-bar`?(0,i.jsx)(`line`,{x1:`3.5`,y1:`4.5`,x2:`14.5`,y2:`4.5`}):e.icon===`accent-arrow-both`?(0,i.jsx)(`path`,{d:`M3.3 5.5L5 3.9M3.3 5.5L5 7.1M3.5 5.5H14.5M13 3.9L14.7 5.5L13 7.1`}):e.icon===`accent-harpoon-right`?(0,i.jsx)(`path`,{d:`M3.5 5.5H14.5M12 3.9L14.7 5.5M14 5.5V5`}):(0,i.jsx)(`path`,{d:`M3.5 5.5H14.2M11.8 3.9L14.7 5.5L11.8 7.1`}),(0,i.jsx)(`span`,{className:`cme-accent-icon`,"aria-hidden":`true`,children:(0,i.jsxs)(`svg`,{className:`cme-accent-svg`,viewBox:`0 0 18 18`,focusable:`false`,"aria-hidden":`true`,children:[t,(0,i.jsx)(`rect`,{x:`6.4`,y:`8.6`,width:`5.2`,height:`7`,rx:`0.45`,className:`cme-accent-svg-box`})]})})}if(t.isMathMode||t.isChemMode){let n=[`cme-toolbar-glyph`],r=e.cls||``,a=t.groupId===`roots-main`,o=t.groupId===`relations`,s=t.groupId===`greek`,c=!!t.isChemMode,l=String(e.label||``),u=l.length;if(c){let t=/^(?:[⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ⁿⁱ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ₐₑₒₓᵢⱼₙ])+$/u.test(String(e.label||``));n.push(`cme-toolbar-glyph--chem`);let i=/^(?:[+-]|[²³][⁺⁻])$/u.test(String(e.label||``));r.includes(`chem-element`)&&n.push(`cme-toolbar-glyph--chem-element`),r.includes(`chem-arrow`)&&n.push(`cme-toolbar-glyph--chem-arrow`),r.includes(`chem-state`)&&n.push(`cme-toolbar-glyph--chem-state`),t&&n.push(`cme-toolbar-glyph--chem-script`),i&&n.push(`cme-toolbar-glyph--chem-charge`)}else a&&n.push(`cme-toolbar-glyph--roots-main`),o&&n.push(`cme-toolbar-glyph--relations`),!a&&!o&&n.push(`cme-toolbar-glyph--math`),s&&n.push(`cme-toolbar-glyph--greek`);return r.includes(`green-template`)&&n.push(`cme-toolbar-glyph--template`),r.includes(`soft-tool`)&&n.push(`cme-toolbar-glyph--tool`),r.includes(`format-tool`)&&n.push(`cme-toolbar-glyph--format`),u>=4&&n.push(`cme-toolbar-glyph--wide`),u>=8&&n.push(`cme-toolbar-glyph--very-wide`),(0,i.jsx)(`span`,{className:n.join(` `),"aria-hidden":`true`,children:r.includes(`green-placeholder-glyph`)||r.includes(`black-glyph-template`)||r.includes(`black-placeholder-glyph`)?Array.from(l).map((e,t)=>e===`□`?(0,i.jsx)(`span`,{className:r.includes(`black-placeholder-glyph`)?`cme-toolbar-placeholder-box-black`:`cme-toolbar-placeholder-box-green`,children:e},`placeholder-${t}`):(0,i.jsx)(`span`,{children:e},`glyph-${t}`)):e.label})}return e.label}function ge({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-6,8),window.innerWidth-348),r=Math.min(e.y+2,window.innerHeight-148),a=e=>e.preview===`rightleft-short-left`?(0,i.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,i.jsx)(`line`,{x1:`10`,y1:`8`,x2:`38`,y2:`8`}),(0,i.jsx)(`polyline`,{points:`30,2 38,8 30,14`}),(0,i.jsx)(`line`,{x1:`34`,y1:`16`,x2:`18`,y2:`16`}),(0,i.jsx)(`polyline`,{points:`26,10 18,16 26,22`})]}):e.preview===`right-short-over-left-long`?(0,i.jsxs)(`svg`,{width:`22`,height:`18`,viewBox:`0 0 50 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,i.jsx)(`line`,{x1:`14`,y1:`8`,x2:`30`,y2:`8`}),(0,i.jsx)(`polyline`,{points:`22,2 30,8 22,14`}),(0,i.jsx)(`line`,{x1:`40`,y1:`16`,x2:`12`,y2:`16`}),(0,i.jsx)(`polyline`,{points:`20,10 12,16 20,22`})]}):(0,i.jsx)(`span`,{"aria-hidden":`true`,style:{fontSize:`18px`,lineHeight:1,fontFamily:`"Cambria Math", "STIX Two Math", "Segoe UI Symbol", "Segoe UI", sans-serif`,whiteSpace:`pre-line`},children:e.label});return(0,i.jsx)(`div`,{className:`cme-arrow-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-picker-grid`,children:y.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:a(e)},`${e.insert}-${e.title||e.label}`))})})}function _e({position:e,items:t=[],onInsert:n,popupBounds:r=null,picker:a=``}){let o=a===`trigFunctionExtras`||a===`bracketDelimiterExtras`||a===`enclosureFrameExtras`||a===`strikeDecorationExtras`||a===`arithmeticLayoutExtras`,s=o?2:Math.max(1,Math.min(t.length,5)),c=o?88:30,l=o?34:30,u=o?10:8,d=o?8:6,f=o?18:20,p=o?18:16,m=Math.max(1,Math.ceil(t.length/s)),h=s*c+(s-1)*u+f,g=m*l+(m-1)*d+p,_=r?{left:r.left,top:r.top,right:r.right,bottom:r.bottom}:{left:8,top:8,right:window.innerWidth-8,bottom:window.innerHeight-8},v=_.left+8,y=Math.max(v,_.right-h-8),b=_.top+8,x=Math.max(b,_.bottom-g-8),S=Math.min(Math.max(e.x-6,v),y),C=e.y+2,w=e.y-g-6,T=C<=x?C:Math.max(b,Math.min(w,x));return(0,i.jsx)(`div`,{className:`cme-arrow-picker-popup cme-relation-more-picker-popup`,style:{position:`fixed`,left:`${S}px`,top:`${T}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-picker-grid`,style:{gridTemplateColumns:`repeat(${s}, ${c}px)`,gridAutoRows:`${l}px`,gap:`${d}px ${u}px`},children:t.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-picker-btn${e.cls?` ${e.cls}`:``}`,title:e.title||e.label,style:{width:`${c}px`,height:`${l}px`,padding:o?`0 8px`:0},onMouseDown:t=>{t.preventDefault(),n(e.insert)},children:he(e,{groupId:`relations`,isMathMode:!0,isChemMode:!1})},`${e.insert}-${e.title||e.label}`))})})}function ve({position:e,onInsert:t}){let n=Math.ceil(b.length/4),r=n*34+(n-1)*4+12,a=Math.min(Math.max(e.x-8,8),Math.max(8,window.innerWidth-220-8)),o=Math.min(e.y+2,Math.max(8,window.innerHeight-r-8));return(0,i.jsx)(`div`,{className:`cme-arrow-label-picker-popup`,style:{position:`fixed`,left:`${a}px`,top:`${o}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-arrow-label-picker-grid`,style:{gridTemplateColumns:`repeat(4, 48px)`},children:b.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-arrow-label-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:he(e,{groupId:`arrows`,isMathMode:!0,isChemMode:!1})},`${e.icon}-${e.title}`))})})}function ye({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-148);return(0,i.jsx)(`div`,{className:`cme-greek-italic-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-greek-italic-picker-grid`,children:x.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-greek-italic-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-greek-italic-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.label))})})}function be({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-308);return(0,i.jsx)(`div`,{className:`cme-blackboard-bold-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-blackboard-bold-picker-grid`,children:S.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-blackboard-bold-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-blackboard-bold-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function xe({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-356),r=Math.min(e.y+2,window.innerHeight-348);return(0,i.jsx)(`div`,{className:`cme-fraktur-script-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-fraktur-script-picker-grid`,children:C.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-fraktur-script-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-fraktur-script-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function Se({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-248),r=Math.min(e.y+2,window.innerHeight-88);return(0,i.jsx)(`div`,{className:`cme-hebrew-symbol-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsx)(`div`,{className:`cme-hebrew-symbol-picker-grid`,children:w.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-hebrew-symbol-picker-btn`,title:e.title,onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:(0,i.jsx)(`span`,{className:`cme-hebrew-symbol-picker-glyph`,"aria-hidden":`true`,children:e.label})},e.insert))})})}function Ce({position:e,onInsert:t}){let n=Math.min(Math.max(e.x-8,8),window.innerWidth-612),r=Math.min(e.y+2,window.innerHeight-313),a=2*O+Math.floor(D/2),o=5*O+Math.floor(D/2),s=7*O+Math.floor(D/2),c=8*O+Math.floor(D/2),l=3*O;return(0,i.jsx)(`div`,{className:`cme-periodic-table-picker-popup`,style:{position:`fixed`,left:`${n}px`,top:`${r}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:(0,i.jsxs)(`div`,{className:`cme-periodic-table-board`,style:{width:`${k}px`,height:`${A}px`},children:[(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--vertical`,style:{left:`${a}px`,top:`${o}px`,height:`${c-o}px`}}),(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${a}px`,top:`${s}px`,width:`${l-a}px`}}),(0,i.jsx)(`div`,{className:`cme-periodic-table-connector cme-periodic-table-connector--horizontal`,style:{left:`${a}px`,top:`${c}px`,width:`${l-a}px`}}),j.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-periodic-table-cell cme-periodic-table-cell--${e.tone}`,title:e.title,style:{left:`${(e.col-1)*O}px`,top:`${(e.row-1)*O}px`,width:`${D}px`,height:`${D}px`},onMouseDown:n=>{n.preventDefault(),t(e.insert)},children:e.label},`${e.label}-${e.row}-${e.col}`))]})})}function we({position:e,options:t,value:n,onSelect:r,width:a=132}){let o=Math.min(Math.max(e.x,8),window.innerWidth-a-8),s=Math.max(8,Math.min(e.y+4,window.innerHeight-290));return(0,i.jsx)(`div`,{className:`cme-style-dropdown-popup`,style:{position:`fixed`,left:`${o}px`,top:`${s}px`,width:`${a}px`,zIndex:1e5},onMouseDown:e=>e.stopPropagation(),children:t.map(e=>(0,i.jsx)(`button`,{type:`button`,className:`cme-style-dropdown-option${n===e.value?` active`:``}`,onMouseDown:t=>{t.preventDefault(),r(e.value)},children:e.label},e.value))})}function Te(e){return class extends r.Plugin{init(){let t=this.editor;t.ui.componentFactory.add(`mathType`,()=>{let t=new r.ButtonView;return t.set({label:`Math`,icon:H,tooltip:`Insert Math Formula`}),t.on(`execute`,()=>e(`math`)),t}),t.ui.componentFactory.add(`chemType`,()=>{let t=new r.ButtonView;return t.set({label:`Chemistry`,icon:de,tooltip:`Insert Chemistry Formula`}),t.on(`execute`,()=>e(`chem`)),t})}}}function Ee({matrixType:t,x:n,y:r,onSelect:a,onMouseEnter:o,onMouseLeave:s}){let[c,l]=(0,e.useState)({r:2,c:2}),u={matrix:`Plain Matrix`,bmatrix:`Square Matrix`,pmatrix:`Parenthesis Matrix`,vmatrix:`Vertical Matrix`},d=(0,e.useCallback)((e,t)=>{let n=Number.parseInt(t,10);Number.isNaN(n)||l(t=>({...t,[e]:Math.min(20,Math.max(1,n))}))},[]);return(0,e.useEffect)(()=>{let e=e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),a(c.r,c.c))};return window.addEventListener(`keydown`,e,!0),()=>window.removeEventListener(`keydown`,e,!0)},[c.r,c.c,a]),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-popover ck-only`,style:{top:`${r}px`,left:`${n}px`},onMouseDown:e=>e.stopPropagation(),onMouseEnter:o,onMouseLeave:s,children:[(0,i.jsxs)(`div`,{className:`cme-matrix-hover-title-wrap`,children:[(0,i.jsx)(`div`,{className:`cme-matrix-hover-title`,children:u[t]||`Matrix`}),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-subtitle`,children:[c.r,` × `,c.c]})]}),(0,i.jsx)(`div`,{className:`cme-matrix-hover-grid`,children:Array.from({length:6}).map((e,t)=>(0,i.jsx)(`div`,{className:`cme-matrix-hover-row`,children:Array.from({length:6}).map((e,n)=>(0,i.jsx)(`div`,{className:`cme-matrix-hover-cell${t<c.r&&n<c.c?` selected`:``}`,onMouseEnter:()=>l({r:t+1,c:n+1}),onClick:e=>{e.preventDefault(),e.stopPropagation(),a(t+1,n+1)}},`${t}-${n}`))},t))}),(0,i.jsxs)(`div`,{className:`cme-matrix-hover-footer`,children:[(0,i.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,i.jsx)(`span`,{className:`cme-counter-label`,children:`R`}),(0,i.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:c.r,className:`cme-counter-input`,onChange:e=>d(`r`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,i.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,r:Math.min(20,e.r+1)})),children:`+`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,r:Math.max(1,e.r-1)})),children:`-`})]})]}),(0,i.jsxs)(`div`,{className:`cme-matrix-counter`,children:[(0,i.jsx)(`span`,{className:`cme-counter-label`,children:`C`}),(0,i.jsx)(`input`,{type:`number`,min:`1`,max:`20`,value:c.c,className:`cme-counter-input`,onChange:e=>d(`c`,e.target.value),onMouseDown:e=>e.stopPropagation()}),(0,i.jsxs)(`div`,{className:`cme-counter-btns`,children:[(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,c:Math.min(20,e.c+1)})),children:`+`}),(0,i.jsx)(`button`,{type:`button`,onClick:()=>l(e=>({...e,c:Math.max(1,e.c-1)})),children:`-`})]})]})]})]})}function G({mode:n,onInsert:r,onClose:a,initialLatex:o,initialDirection:c=`ltr`,isEditing:l}){let u=(0,e.useRef)(null),d=(0,e.useRef)(null),f=(0,e.useRef)(null),p=(0,e.useRef)(null),m=(0,e.useRef)(()=>{}),h=(0,e.useRef)(null),[_,v]=(0,e.useState)(0),[y,b]=(0,e.useState)(null),[x,S]=(0,e.useState)(null),[C,w]=(0,e.useState)(null),[T,E]=(0,e.useState)(null),[D,O]=(0,e.useState)(null),[k,A]=(0,e.useState)(null),[j,N]=(0,e.useState)(null),[P,F]=(0,e.useState)(null),[le,I]=(0,e.useState)(null),[L,R]=(0,e.useState)(null),[z,B]=(0,e.useState)(null),[V,ue]=(0,e.useState)(null),[H,de]=(0,e.useState)(`normal`),[U,W]=(0,e.useState)(null),[me,Te]=(0,e.useState)(!1),[G,De]=(0,e.useState)(c===`rtl`),[K,Oe]=(0,e.useState)(``),[ke,Ae]=(0,e.useState)(``),je=n===`math`?oe:se,q=n===`math`,Me=n===`chem`,J=q||Me,Y=je[_]||{},Ne=q&&Y.id?` cme-symbol-subgroup--tab-${Y.id}`:``,Pe=(0,e.useMemo)(()=>fe.map(e=>({...e,normalized:pe(e.value)||e.value.toLowerCase()})),[]),[X,Fe]=(0,e.useState)({bold:!1,italic:!1,boldItalic:!1,color:`none`,fontOption:``,fontSize:`auto`}),[Z,Ie]=(0,e.useState)(`western`),[Le,Re]=(0,e.useState)(`thin`),ze=(0,e.useCallback)((e,t)=>{let n=d.current,r=n?.offsetWidth||720,i=n?.offsetHeight||384,a=Math.max(12,window.innerWidth-r-12),o=Math.max(12,window.innerHeight-i-12);return{x:Math.min(Math.max(12,e),a),y:Math.min(Math.max(12,t),o)}},[]),Be=(0,e.useCallback)(()=>{m.current(),m.current=()=>{},p.current=null,Te(!1)},[]);(0,e.useEffect)(()=>()=>Be(),[Be]),(0,e.useEffect)(()=>{f.current=U},[U]),(0,e.useEffect)(()=>{H===`minimized`&&(b(null),S(null),w(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),ue(null))},[H]),(0,e.useEffect)(()=>{if(H===`maximized`)return;let e=()=>{let e=d.current;if(!e)return;let t=f.current;if(t){let e=ze(t.x,t.y);f.current=e,W(e);return}let n=e.getBoundingClientRect(),r=ze(window.innerWidth-n.width-24,window.innerHeight-n.height-24);f.current=r,W(r)},t=requestAnimationFrame(e),n=d.current,r=t=>{t.target===n&&(t.propertyName!==`width`&&t.propertyName!==`height`||e())};return n?.addEventListener(`transitionend`,r),()=>{cancelAnimationFrame(t),n?.removeEventListener(`transitionend`,r)}},[ze,H]),(0,e.useEffect)(()=>{if(H===`maximized`)return;let e=()=>{let e=f.current;if(!e)return;let t=ze(e.x,e.y);f.current=t,W(t)};return window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[ze,H]);let Ve=(0,e.useCallback)(e=>{if(H===`maximized`||e.button!==void 0&&e.button!==0||e.target.closest(`.cme-popup-actions`))return;let t=d.current;if(!t)return;e.preventDefault(),Te(!0);let n=t.getBoundingClientRect(),r=f.current||{x:n.left,y:n.top};f.current=r,W(r),p.current={offsetX:e.clientX-n.left,offsetY:e.clientY-n.top};let i=e=>{if(!p.current)return;e.preventDefault();let t=ze(e.clientX-p.current.offsetX,e.clientY-p.current.offsetY);f.current=t,W(t)},a=()=>Be();m.current=()=>{window.removeEventListener(`pointermove`,i),window.removeEventListener(`pointerup`,a)},window.addEventListener(`pointermove`,i),window.addEventListener(`pointerup`,a)},[ze,Be,H]);(0,e.useEffect)(()=>{De(c===`rtl`)},[c]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=G?`rtl`:`ltr`;e.setAttribute(`dir`,t),e.style.direction=t,e.style.textAlign=G?`right`:`left`,e.style.unicodeBidi=G?`plaintext`:`normal`},[G]);let Q=(0,e.useCallback)(()=>{let e=u.current;if(!(!e||typeof e.queryStyle!=`function`))try{let t=e.queryStyle({variantStyle:`bolditalic`})===`all`,n=t||e.queryStyle({fontSeries:`b`})===`all`||e.queryStyle({variantStyle:`bold`})===`all`,r=t||e.queryStyle({fontShape:`it`})===`all`||e.queryStyle({variantStyle:`italic`})===`all`,i=M.find(({style:t})=>Object.entries(t).every(([t,n])=>e.queryStyle({[t]:n})===`all`))||null,a=ne.find(({value:t})=>e.queryStyle({fontSize:parseInt(t,10)})===`all`)?.value||`auto`,o=pe(K),s=[...new Set(Pe.flatMap(e=>[e.normalized,e.value]).concat(X.color===`none`?[]:[X.color]).concat(o?[o,K.trim()]:[]).filter(Boolean))].find(t=>e.queryStyle({color:t})===`all`),c=s?pe(s)||s:`none`;Fe({bold:n,italic:r,boldItalic:t,fontOption:i?.value||``,fontSize:String(a),color:c})}catch(e){console.warn(`Failed to query active styles:`,e)}},[X.color,Pe,K]),He=(0,e.useCallback)(e=>{let t=u.current;if(!t||typeof t.applyStyle!=`function`)return;let n=!!e.bold,r=!!e.italic,i=n&&r?`bolditalic`:n?`bold`:r?`italic`:`up`;t.applyStyle({variantStyle:i,fontSeries:n?`b`:`m`,fontShape:r?`it`:`n`}),t.applyStyle({color:e.color===`none`?`none`:e.color}),t.applyStyle(te);let a=M.find(({value:t})=>t===e.fontOption);if(a&&t.applyStyle(a.style),e.fontSize!==`auto`){let n=parseInt(e.fontSize,10);t.applyStyle({fontSize:n,size:n})}},[]),Ue=(0,e.useCallback)((e,t)=>{let n=u.current;n&&(n.focus(),He({...X,bold:e,italic:t,boldItalic:e&&t}),requestAnimationFrame(Q))},[X,He,Q]),We=(0,e.useCallback)(e=>{let t=u.current;if(!t||typeof t.applyStyle!=`function`)return!1;let n=e===`none`?`none`:pe(e);if(e!==`none`&&!n)return Ae(`Enter a valid hex code or CSS color name.`),!1;let r=e===`none`?`none`:n;return t.focus(),t.applyStyle({color:r}),Fe(e=>({...e,color:r})),Oe(r===`none`?``:r),Ae(``),requestAnimationFrame(Q),!0},[Q]),Ge=(0,e.useCallback)((e,t)=>{let n=u.current;if(!(!n||typeof n.applyStyle!=`function`)){if(n.focus(),e===`font`){n.applyStyle(te);let e=M.find(e=>e.value===t);e&&n.applyStyle(e.style),Fe(e=>({...e,fontOption:t}))}else{let e=t?parseInt(t,10):`auto`;n.applyStyle({fontSize:e,size:e}),Fe(e=>({...e,fontSize:t||`auto`}))}requestAnimationFrame(Q)}},[Q]);(0,e.useEffect)(()=>{if(!y&&!z&&!V&&!C&&!T&&!D&&!k&&!j&&!P&&!le&&!L)return;let e=e=>{!e.target.closest(`.cme-matrix-hover-popover`)&&!e.target.closest(`.cme-matrix-btn-wrapper`)&&b(null),!e.target.closest(`.cme-color-picker-popup`)&&!e.target.closest(`[title="Text Color"]`)&&B(null),!e.target.closest(`.cme-style-dropdown-popup`)&&!e.target.closest(`.cme-style-select-trigger`)&&ue(null),!e.target.closest(`.cme-arrow-picker-popup`)&&!e.target.closest(`.arrow-picker-tool`)&&w(null),!e.target.closest(`.cme-relation-more-picker-popup`)&&!e.target.closest(`.relation-more-picker-tool`)&&E(null),!e.target.closest(`.cme-arrow-label-picker-popup`)&&!e.target.closest(`.arrow-label-picker-tool`)&&O(null),!e.target.closest(`.cme-greek-italic-picker-popup`)&&!e.target.closest(`.greek-italic-picker-tool`)&&A(null),!e.target.closest(`.cme-blackboard-bold-picker-popup`)&&!e.target.closest(`.blackboard-bold-picker-tool`)&&N(null),!e.target.closest(`.cme-fraktur-script-picker-popup`)&&!e.target.closest(`.fraktur-script-picker-tool`)&&F(null),!e.target.closest(`.cme-hebrew-symbol-picker-popup`)&&!e.target.closest(`.hebrew-symbol-picker-tool`)&&I(null),!e.target.closest(`.cme-periodic-table-picker-popup`)&&!e.target.closest(`.periodic-table-picker-tool`)&&R(null)};return window.addEventListener(`mousedown`,e,!0),window.addEventListener(`pointerdown`,e,!0),()=>{window.removeEventListener(`mousedown`,e,!0),window.removeEventListener(`pointerdown`,e,!0)}},[y,z,V,C,T,D,k,j,P,le,L]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;e.defaultMode=n===`chem`?`text`:`math`,e.letterShapeStyle=`upright`;let t=()=>{let t=o||``;if(n===`chem`&&t){let e=t.match(/^\\ce\{([\s\S]*)\}$/);e&&(t=e[1])}e.setValue?e.setValue(t,{silenceNotifications:!0}):e.value=t,requestAnimationFrame(()=>e.focus())};customElements.get(`math-field`)?requestAnimationFrame(t):customElements.whenDefined(`math-field`).then(()=>requestAnimationFrame(t))},[n,o]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>e.getValue?e.getValue():e.value||``,n=()=>{try{if(typeof e.executeCommand==`function`)for(let t of[`moveToMathFieldStart`,`moveToMathfieldStart`,`moveToStart`])try{e.executeCommand(t);return}catch{}}catch{}try{typeof e.setSelectionRange==`function`&&e.setSelectionRange(0,0)}catch{}},r=t=>{typeof e.setValue==`function`?e.setValue(t):e.value=t,requestAnimationFrame(()=>{e.focus?.(),n(),Q()})},i=n=>{let i=n.key.length===1&&n.key!==` `&&!n.ctrlKey&&!n.metaKey&&!n.altKey,a=/^\d$/.test(n.key)&&!n.ctrlKey&&!n.metaKey&&!n.altKey;if(Le===`negativeThin`&&i){n.preventDefault();let i=Z!==`western`&&a?ee(n.key,Z):n.key;G?r(`\\!${i}${t()}`):e.executeCommand([`insert`,`\\!${i}`]);return}if(Z!==`western`&&a){n.preventDefault();let i=ee(n.key,Z);G?r(`${i}${t()}`):e.executeCommand([`insert`,i]);return}if(n.key===` `){n.preventDefault();let i=Le===`negativeThin`?`\\!`:`\\, `;G?r(`${i}${t()}`):e.executeCommand([`insert`,i]);return}else if(n.key===`Enter`){n.preventDefault(),G?r(`\\\\${t()}`):e.executeCommand([`insert`,`\\\\`]),setTimeout(()=>{He(X),Q()},10);return}if(G&&n.key===`Backspace`){n.preventDefault(),r(t().slice(1));return}G&&i&&(n.preventDefault(),r(`${n.key}${t()}`))};return e.addEventListener(`keydown`,i),()=>e.removeEventListener(`keydown`,i)},[n,X,He,Q,G,Z,Le]),(0,e.useEffect)(()=>{let e=u.current;if(!e)return;let t=()=>{setTimeout(()=>{let t=e.shadowRoot;if(!t)return;let n=t.querySelector(`.ML__caret`)||t.querySelector(`[class*="caret"]`);n&&n.scrollIntoView({behavior:`auto`,block:`nearest`,inline:`nearest`}),Q()},0)};return e.addEventListener(`selection-change`,t),e.addEventListener(`input`,t),e.addEventListener(`keydown`,t),setTimeout(Q,50),()=>{e.removeEventListener(`selection-change`,t),e.removeEventListener(`input`,t),e.removeEventListener(`keydown`,t)}},[Q]);let $=(0,e.useCallback)(e=>{let t=u.current;if(!t)return;let n=/#(?:0|\?)/.test(e);t.focus(),typeof t.insert==`function`?t.insert(e,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:n?`placeholder`:`after`}):t.executeCommand([`insert`,e]),requestAnimationFrame(()=>t.focus?.())},[]),Ke=(0,e.useCallback)(e=>{let t=u.current;if(t){if(t.focus(),e===`\\hphantom{0}`){t.executeCommand([`insert`,`\\hphantom{0}`]);return}if(e===`\\,`){Re(`thin`),t.executeCommand([`insert`,`\\,`]);return}e===`\\!`&&(Re(`negativeThin`),t.executeCommand([`insert`,`\\!`]))}},[]),qe=(0,e.useCallback)(e=>{let t=u.current,n=re[e];if(!t||!n)return;let r=t.selection||t.model?.selection;if(!(r&&Array.isArray(r.ranges)&&r.ranges.length>0&&r.ranges.some(([e,t])=>e!==t))){h.current=null;return}if(t.focus(),`selection`in t)try{t.selection=r}catch{}let i=typeof t.getValue==`function`?t.getValue(r,`latex`)||``:t.model?.getValue?.(r,`latex`)||``;if(!i){h.current=null;return}let a=ie(i),o=h.current,s=a.baseLatex,c=o?.baseLatex===s,l=c?o.offsetX:a.offsetX,d=c?o.offsetY:a.offsetY,f=l+n.x,p=d+n.y,m=ae(s,f,p);if(h.current={baseLatex:s,offsetX:f,offsetY:p},typeof t.insert==`function`){t.insert(m,{format:`latex`,insertionMode:`replaceSelection`,selectionMode:`item`});return}t.executeCommand([`insert`,m])},[]),Je=(0,e.useCallback)((e,t,n)=>{let r=`\\begin{${e}} `;for(let e=0;e<t;e++){for(let e=0;e<n;e++)r+=`#?`,e<n-1&&(r+=` & `);e<t-1&&(r+=` \\\\ `)}r+=` \\end{${e}}`,$(r)},[$]),Ye=()=>{let e=u.current;if(!e)return;let t=e.getValue?e.getValue():e.value;if(!t||t.trim()===``){a();return}n===`chem`&&(t=ce(t)),r(t,{direction:G?`rtl`:`ltr`}),e.setValue?e.setValue(``):e.value=``,a()},Xe=H!==`maximized`&&U?{left:`${U.x}px`,top:`${U.y}px`,right:`auto`,bottom:`auto`}:void 0;return(0,i.jsxs)(`div`,{ref:d,className:`cme-editor-popup ${H}${me?` dragging`:``}`,style:Xe,onMouseDown:e=>e.stopPropagation(),children:[(0,i.jsxs)(`div`,{className:`cme-popup-header`,onPointerDown:Ve,children:[(0,i.jsx)(`span`,{children:n===`math`?`MathType`:`ChemType`}),(0,i.jsxs)(`div`,{className:`cme-popup-actions`,onPointerDown:e=>e.stopPropagation(),children:[(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":H===`minimized`?`Restore window`:`Minimize window`,onClick:()=>de(e=>e===`minimized`?`normal`:`minimized`),children:H===`minimized`?`+`:`-`}),(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-window-btn`,"aria-label":H===`maximized`?`Restore window`:`Maximize window`,onClick:()=>de(e=>e===`maximized`?`normal`:`maximized`),children:H===`maximized`?`o`:`⤢ `}),(0,i.jsx)(`button`,{type:`button`,className:`cme-popup-close`,onClick:()=>{Be(),a()},children:`x`})]})]}),(0,i.jsxs)(`div`,{className:`cme-toolbar`,role:`toolbar`,"aria-label":`Symbol palette`,children:[(0,i.jsx)(`div`,{className:`cme-toolbar-groups`,children:je.map((e,t)=>(0,i.jsx)(`button`,{className:`cme-group-tab${J?` cme-group-tab--popup`:``}${q?` cme-group-tab--math`:``}${Me?` cme-group-tab--chem`:``}${_===t?` active`:``}`,type:`button`,onClick:()=>{v(t),b(null)},children:(0,i.jsx)(`span`,{className:`cme-group-tab-label`,children:e.label})},e.id||t))}),(0,i.jsx)(`div`,{className:`cme-toolbar-items${_===0&&q?` cme-toolbar-items--first-tab`:``}${Y.id===`greek`?` cme-toolbar-items--greek`:``}${Y.id===`relations`?` cme-toolbar-items--relations`:``}${Y.id===`arrows`?` cme-toolbar-items--arrows`:``}${Y.id===`brackets`?` cme-toolbar-items--brackets`:``}${Y.id===`matrix`?` cme-toolbar-items--matrix`:``}${J?` cme-toolbar-items--popup-compact`:``}`,children:(()=>{let e=Y.items||[];if(Y.id===`greek`){let t=e.reduce((e,t)=>{let n=t.category||`Greek Letters`;return e[n]||(e[n]=[]),e[n].push(t),e},{}),n={"Lowercase Greek Letters":{cols:10,rows:3},"Greek Letter Picker":{cols:1,rows:3},"Blackboard Bold / Number Sets":{cols:2,rows:3},"Blackboard Bold Picker":{cols:1,rows:3},"Fraktur Symbols":{cols:1,rows:3},"Script Symbols":{cols:1,rows:3},"Fraktur / Script Picker":{cols:1,rows:3},"Hebrew Mathematical Symbols":{cols:1,rows:3},"Hebrew Symbol Picker":{cols:1,rows:3},"Arabic-Indic Numeral Systems":{cols:1,rows:3},"Periodic Table Symbols":{cols:2,rows:3},"Periodic Table Picker":{cols:1,rows:3}},r=Object.entries(t);return(0,i.jsx)(`div`,{className:`cme-greek-panel`,children:r.map(([e,t],a)=>{let o=n[e]||{cols:2,rows:Math.max(1,Math.ceil(t.length/2))},s=o.cols,c=o.rows,l=t.every(e=>e.cls?.includes(`arrow-picker-tool`)),d=r[a+1]?.[1]||[],f=d.length>0&&d.every(e=>e.cls?.includes(`arrow-picker-tool`));return(0,i.jsx)(`section`,{className:`cme-symbol-subgroup cme-greek-subgroup${e===`Fraktur Symbols`?` cme-greek-subgroup--no-right-border`:``}${l?` cme-greek-subgroup--picker`:``}${f?` cme-greek-subgroup--before-picker`:``}${J?` cme-symbol-subgroup--compact`:``}${Ne}`,style:{gridTemplateColumns:`repeat(${s}, auto)`,gridTemplateRows:`repeat(${c}, auto)`,"--cme-greek-rows":`repeat(${c}, auto)`},children:t.map((t,n)=>{let r=Y,a=`${r.id||r.label||_}-${e}-${n}-${t.insert||t.action||t.label}`,o=t.action===`GREEK_ITALIC_PICKER`,s=t.action===`BLACKBOARD_BOLD_PICKER`,c=t.action===`FRAKTUR_SCRIPT_PICKER`,l=t.action===`HEBREW_SYMBOL_PICKER`,d=t.action===`PERIODIC_TABLE_PICKER`,f=t.action===`ARABIC_INDIC_NUMERALS`,p=t.action===`EASTERN_ARABIC_INDIC_NUMERALS`,m=o?!!k:s?!!j:c?!!P:l?!!le:d?!!L:f?Z===`arabicIndic`:p?Z===`easternArabicIndic`:!1;return(0,i.jsx)(`button`,{type:`button`,className:`cme-btn cme-greek-btn${J?` cme-btn--compact`:``}${t.cls?` ${t.cls}`:``}${m?` active`:``}`,title:t.title||t.insert,onMouseDown:e=>{if(e.preventDefault(),t.action===`GREEK_ITALIC_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),N(null),F(null),I(null),R(null),A(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),F(null),I(null),R(null),N(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`FRAKTUR_SCRIPT_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),N(null),I(null),R(null),F(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),N(null),F(null),R(null),I(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();w(null),O(null),B(null),S(null),A(null),N(null),F(null),I(null),R(e=>e?null:{x:t.left,y:t.bottom+4});return}if(t.action===`ARABIC_INDIC_NUMERALS`){w(null),O(null),B(null),S(null),A(null),N(null),F(null),I(null),R(null),Ie(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>u.current?.focus?.());return}if(t.action===`EASTERN_ARABIC_INDIC_NUMERALS`){w(null),O(null),B(null),S(null),A(null),N(null),F(null),I(null),R(null),Ie(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>u.current?.focus?.());return}$(t.insert)},children:he(t,{groupId:r.id,isMathMode:q,isChemMode:Me})},a)})},e)})})}let t=e.some(e=>e.type===`sep`),n=[];if(t){let t={cols:2,items:[]};for(let r of e)r.type===`sep`?(t.items.length>0&&n.push(t),t={cols:r.cols||2,items:[]}):t.items.push(r);if(t.items.length>0&&n.push(t),Y.id===`relations`&&(n=n.map(e=>({...e,cols:Math.max(1,Math.ceil(e.items.length/3))}))),Y.id===`roots-main`){let[e=[],t=[],r=[],i=[],a=[],o=[],s=[],c=[],l=[],u=[]]=n.map(e=>e.items||[]),d=(e,t)=>t.map(t=>e[t]).filter(Boolean);n=[{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(e,[0,2,1,3])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(t,[0,1])},{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(r,[0,2,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(i,[0,4,2,5,1,3])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(a,[0,1,5,4,3,2])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:[]},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(o,[0,1,2])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup`,items:d(s,[1,3,0,4,2,5])},{cols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--format`,items:d(c,[0,5,1,3,2,4])},{cols:1,rows:1,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--stack`,items:d(l,[0])},{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-roots-main-subgroup cme-roots-main-subgroup--dropdown`,items:d(u,[0,1])}].filter(e=>e.items.length>0)}if(Y.id===`arrows`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`ARROW_PICKER`&&e?.action!==`ARROW_LABEL_PICKER`),picker:e.find(e=>e?.action===`ARROW_PICKER`||e?.action===`ARROW_LABEL_PICKER`)||null}),c=s(e),l=s(i);n=[{cols:3,trackCols:6,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(c.regular,[1,0,2,4,3,5,6,7])},c.picker?{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[c.picker]}:null,{cols:2,trackCols:2,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup`,items:o(t,[0,1,2,3,4])},{cols:1,rows:3,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--stack`,items:o(r,[0,1,2])},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-arrows-subgroup cme-arrows-subgroup--picker`,items:[l.picker]}:null,{cols:2,trackCols:2,rows:2,flow:`row`,equalColumns:!0,stretchLastRow:!0,className:` cme-arrows-subgroup`,items:o(a,[0,1,2,3])}].filter(e=>e&&e.items.length>0)}if(Y.id===`brackets`){let[e=[],t=[],r=[],i=[],a=[]]=n.map(e=>e.items||[]),o=(e,t)=>t.map(t=>e[t]).filter(Boolean),s=e=>({regular:e.filter(e=>e?.action!==`RELATION_MORE_PICKER`),picker:e.find(e=>e?.action===`RELATION_MORE_PICKER`)||null}),c=s(e),l=s(i),u=s(a),d=o(r,[0,1,2,3,4,5,6,7]);d[6]&&={...d[6],gridColumn:`2`},n=[{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(c.regular,[0,2,4,1,3,5])},c.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[c.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:o(t,[0,2,1,3])},{cols:3,rows:3,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup`,items:d},{cols:3,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(l.regular,[0,2,4,1,3,5])},l.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[l.picker]}:null,{cols:2,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--before-picker`,items:o(u.regular,[0,2,1,3])},u.picker?{cols:1,rows:2,flow:`row`,equalColumns:!0,className:` cme-brackets-subgroup cme-brackets-subgroup--picker`,items:[u.picker]}:null].filter(e=>e&&e.items.length>0)}}else for(let t=0;t<e.length;t+=4)n.push({cols:2,items:e.slice(t,t+4)});return n.map((e,t)=>{let n=e.cols||1,r=e.trackCols||n,a=e.items.length,o=n>0?a%n:0,s=o===0?n:o,c=a-s,l=Math.max(1,Math.floor(r/n));return(0,i.jsx)(`div`,{className:`cme-symbol-subgroup${e.className||``}${J?` cme-symbol-subgroup--compact`:``}${Ne}`,style:{gridTemplateColumns:`repeat(${r}, ${e.equalColumns?`minmax(0, 1fr)`:`auto`})`,gridTemplateRows:`repeat(${e.rows||Math.ceil(e.items.length/n)}, auto)`,gridAutoFlow:e.flow||`column`,...e.rows?{"--cme-subgroup-rows":`repeat(${e.rows}, minmax(0, 1fr))`}:{}},children:e.items.map((o,d)=>{let f=e.stretchLastRow&&a>0&&d>=c&&s<n?`span ${Math.max(1,Math.floor(r/s))}`:l>1?`span ${l}`:void 0,p=Y,m=p.id||p.label||_,h=`${m}-${t*4+d}-${o.insert||o.action||o.label}`;if(o.type===`dropdown`){let t=o.label===`Font...`,n=o.label===`Size`,r=t&&X.fontOption!==``,a=n&&X.fontSize!==`auto`&&X.fontSize!==`5`,s=t?X.fontOption:n?X.fontSize===`auto`||X.fontSize===`5`?``:X.fontSize:``,c=(t?M:ne).find(e=>e.value===s)?.label||o.label,l=V?.buttonKey===h;return(0,i.jsx)(`button`,{type:`button`,className:`cme-style-select-trigger cme-select cme-btn template${r||a||l?` active`:``}`,title:o.label,style:{width:o.width||`60px`,boxSizing:`border-box`,margin:`2px 0`,gridColumn:o.gridColumn||f||(e.cols===3||e.cols===1?`span 1`:`span 2`),gridRow:o.gridRow},onMouseDown:e=>{e.preventDefault(),e.stopPropagation();let n=e.currentTarget.getBoundingClientRect();ue(e=>e?.buttonKey===h?null:{x:n.left,y:n.bottom,type:t?`font`:`size`,buttonKey:h})},children:c},d)}if(p.isMatrix&&!o.directInsert&&!o.action)return(0,i.jsx)(`div`,{className:`cme-matrix-btn-wrapper`,children:(0,i.jsx)(`button`,{type:`button`,className:`cme-btn template${J?` cme-btn--compact`:``}${o.cls?` ${o.cls}`:``}${y?.type===o.insert?` active`:``}`,title:o.insert,onMouseDown:e=>{if(e.preventDefault(),e.stopPropagation(),y?.type===o.insert)b(null);else{let t=e.currentTarget.getBoundingClientRect();b({type:o.insert,x:t.left+t.width/2,y:t.bottom})}},children:he(o,{groupId:p.id,isMathMode:q,isChemMode:Me})})},d);let g=o.action===`BOLD`,v=o.action===`ITALIC`,x=o.action===`BOLD_ITALIC`,k=o.action===`TEXT_COLOR`,te=o.action===`TOGGLE_RTL`,re=o.action===`ARROW_PICKER`,ie=o.action===`RELATION_MORE_PICKER`,ae=o.action===`ARROW_LABEL_PICKER`,oe=o.action===`BLACKBOARD_BOLD_PICKER`,se=o.action===`FRAKTUR_SCRIPT_PICKER`,ce=o.action===`HEBREW_SYMBOL_PICKER`,z=o.action===`PERIODIC_TABLE_PICKER`,H=g&&X.bold&&!X.italic||v&&X.italic&&!X.bold||x&&X.boldItalic||te&&G||re&&!!C||ie&&T?.picker===o.picker||ae&&!!D||oe&&!!j||se&&!!P||ce&&!!le||z&&!!L||k&&X.color!==`none`;return(0,i.jsx)(`button`,{type:`button`,className:`cme-btn${p.isTemplate?` template`:``}${J?` cme-btn--compact`:``}${o.cls?` ${o.cls}`:``}${H?` active`:``}`,title:o.title||o.insert,style:o.gridColumn||o.gridRow||f?{gridColumn:o.gridColumn||f,gridRow:o.gridRow}:void 0,onMouseDown:e=>{e.preventDefault();let t=u.current;if(o.action===`SPECIAL_CHARS`){let t=e.currentTarget.getBoundingClientRect();w(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),S({x:t.left,y:t.bottom+4})}else if(o.action===`ARROW_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),w(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`RELATION_MORE_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),A(null),N(null),F(null),I(null),R(null),B(null),E(e=>e?.picker===o.picker?null:{x:t.left,y:t.bottom+4,picker:o.picker})}else if(o.action===`ARROW_LABEL_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),E(null),A(null),N(null),F(null),I(null),R(null),B(null),O(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`BLACKBOARD_BOLD_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),F(null),I(null),R(null),N(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`FRAKTUR_SCRIPT_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),N(null),I(null),R(null),F(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`HEBREW_SYMBOL_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),N(null),F(null),R(null),I(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`PERIODIC_TABLE_PICKER`){let t=e.currentTarget.getBoundingClientRect();S(null),w(null),O(null),B(null),E(null),A(null),N(null),F(null),I(null),R(e=>e?null:{x:t.left,y:t.bottom+4})}else if(o.action===`TEXT_COLOR`){let t=e.currentTarget.getBoundingClientRect();w(null),E(null),O(null),A(null),N(null),F(null),I(null),R(null),Oe(X.color===`none`?``:X.color),Ae(``),B({x:t.left,y:t.bottom+4})}else if(o.action===`TOGGLE_RTL`)De(e=>!e),requestAnimationFrame(()=>u.current?.focus?.());else if(o.action===`BOLD`)Ue(!X.bold,X.italic);else if(o.action===`BOLD_ITALIC`){let e=!X.boldItalic;Ue(e,e)}else if(o.action===`CUT`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{}),t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.())}else if(o.action===`COPY`){let e=t?t.getValue?t.getValue():t.value||``:``;e&&navigator.clipboard?.writeText&&navigator.clipboard.writeText(e).catch(()=>{})}else o.action===`PASTE`?navigator.clipboard?.readText&&navigator.clipboard.readText().then(e=>{e&&$(ee(e,Z))}).catch(()=>{}):o.action===`ARABIC_INDIC_NUMERALS`?(Ie(e=>e===`arabicIndic`?`western`:`arabicIndic`),requestAnimationFrame(()=>u.current?.focus?.())):o.action===`EASTERN_ARABIC_INDIC_NUMERALS`?(Ie(e=>e===`easternArabicIndic`?`western`:`easternArabicIndic`),requestAnimationFrame(()=>u.current?.focus?.())):o.action===`MOVE_TEXT_UP`?qe(`up`):o.action===`MOVE_TEXT_RIGHT`?qe(`right`):o.action===`MOVE_TEXT_LEFT`?qe(`left`):o.action===`MOVE_TEXT_DOWN`?qe(`down`):o.action===`BLACKBOARD`?$(`\\mathbb{#0}`):o.action===`GREEK`?$(`\\Omega`):o.action===`TILDE`?$(`\\widetilde{#0}`):o.action===`ITALIC`?Ue(X.bold,!X.italic):o.action===`TEXT`?$(`\\text{#0}`):o.action===`UNDO`?u.current?.executeCommand(`undo`):o.action===`REDO`?u.current?.executeCommand(`redo`):o.action===`CLEAR`?t&&(typeof t.setValue==`function`?t.setValue(``):t.value=``,t.focus?.()):o.insert===`\\hphantom{0}`||o.insert===`\\,`||o.insert===`\\!`?Ke(o.insert):$(o.insert)},children:he(o,{groupId:p.id,isMathMode:q,isChemMode:Me})},`${m}-${t*4+d}`)})},t)})})()})]}),(0,i.jsx)(`div`,{className:`cme-mathfield-container${G?` cme-mathfield-container--rtl`:``}`,onMouseDown:e=>{u.current&&(e.target===u.current||u.current.contains(e.target))||(e.preventDefault(),requestAnimationFrame(()=>{u.current?.focus?.()}))},children:(0,i.jsx)(`math-field`,{ref:u,class:`cme-mathfield${G?` cme-mathfield--rtl`:``}`,dir:G?`rtl`:`ltr`,"letter-shape-style":`upright`,tabIndex:0,"math-virtual-keyboard-policy":`manual`,placeholder:``})}),(0,i.jsxs)(`div`,{className:`cme-popup-footer`,children:[(0,i.jsx)(`button`,{type:`button`,className:`cme-insert-btn`,onClick:Ye,children:l?`Update`:`Insert`}),(0,i.jsx)(`button`,{type:`button`,className:`cme-cancel-btn`,onClick:a,children:`Cancel`})]}),y&&(0,i.jsx)(Ee,{matrixType:y.type,x:y.x,y:y.y,onSelect:(e,t)=>{Je(y.type,e,t),b(null)},onMouseEnter:()=>{},onMouseLeave:()=>{}}),x&&(0,t.createPortal)((0,i.jsx)(s,{isOpen:!!x,position:x,onClose:()=>S(null),onInsert:e=>{$(e),S(null)}}),document.body),C&&(0,t.createPortal)((0,i.jsx)(ge,{position:C,onInsert:e=>{$(e),w(null)}}),document.body),T&&(0,t.createPortal)((0,i.jsx)(_e,{position:T,picker:T.picker,popupBounds:d.current?.getBoundingClientRect?.()||null,items:g[T.picker]||[],onInsert:e=>{$(e),E(null)}}),document.body),D&&(0,t.createPortal)((0,i.jsx)(ve,{position:D,onInsert:e=>{$(e),O(null)}}),document.body),k&&(0,t.createPortal)((0,i.jsx)(ye,{position:k,onInsert:e=>{$(e),A(null)}}),document.body),j&&(0,t.createPortal)((0,i.jsx)(be,{position:j,onInsert:e=>{$(e),N(null)}}),document.body),P&&(0,t.createPortal)((0,i.jsx)(xe,{position:P,onInsert:e=>{$(e),F(null)}}),document.body),le&&(0,t.createPortal)((0,i.jsx)(Se,{position:le,onInsert:e=>{$(e),I(null)}}),document.body),L&&(0,t.createPortal)((0,i.jsx)(Ce,{position:L,onInsert:e=>{$(e),R(null)}}),document.body),V&&(0,t.createPortal)((0,i.jsx)(we,{position:V,options:V.type===`font`?M:ne,value:V.type===`font`?X.fontOption:X.fontSize,width:V.type===`font`?142:96,onSelect:e=>{Ge(V.type,e),ue(null)}}),document.body),z&&(0,t.createPortal)((0,i.jsxs)(`div`,{className:`cme-color-picker-popup`,style:{position:`fixed`,left:Math.min(z.x,window.innerWidth-260)+`px`,top:Math.min(z.y,window.innerHeight-235)+`px`,zIndex:1e5,width:`244px`,background:`linear-gradient(180deg, #ffffff 0%, #f6fafc 100%)`,border:`1px solid #c8d4dc`,padding:`12px`,display:`flex`,flexDirection:`column`,gap:`10px`,borderRadius:`10px`,boxShadow:`0 16px 28px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08)`},children:[(0,i.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,gap:`10px`},children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`div`,{style:{fontSize:`12px`,fontWeight:700,color:`#1f2f37`,lineHeight:1.1},children:`Text Color`}),(0,i.jsx)(`div`,{style:{fontSize:`10px`,color:`#667b88`,marginTop:`2px`},children:`Pick a swatch or enter a custom value`})]}),(0,i.jsx)(`div`,{style:{width:`28px`,height:`28px`,borderRadius:`8px`,border:`1px solid #b8c8d2`,background:X.color===`none`?`linear-gradient(135deg, #ffffff 0%, #eef3f7 100%)`:pe(K)||X.color,boxShadow:`inset 0 1px 0 rgba(255,255,255,0.8)`},title:X.color===`none`?`No color selected`:X.color})]}),(0,i.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`repeat(6, 1fr)`,gap:`6px`,padding:`8px`,border:`1px solid #d7e1e8`,borderRadius:`8px`,background:`rgba(255,255,255,0.78)`},children:Pe.map(e=>{let t=X.color===e.normalized;return(0,i.jsx)(`div`,{title:e.label,style:{width:`22px`,height:`22px`,backgroundColor:e.value,cursor:`pointer`,border:t?`2px solid #d6a528`:`1px solid rgba(31, 47, 55, 0.22)`,borderRadius:`6px`,boxSizing:`border-box`,boxShadow:t?`0 0 0 2px rgba(214, 165, 40, 0.16)`:`inset 0 1px 0 rgba(255,255,255,0.6)`},onMouseDown:t=>{t.preventDefault(),t.stopPropagation(),We(e.normalized)&&B(null)}},e.normalized)})}),(0,i.jsxs)(`div`,{style:{display:`flex`,flexDirection:`column`,gap:`6px`},children:[(0,i.jsx)(`div`,{style:{fontSize:`10px`,fontWeight:700,color:`#5f7481`,letterSpacing:`0.04em`,textTransform:`uppercase`},children:`Custom Value`}),(0,i.jsx)(`input`,{type:`text`,value:K,placeholder:`#2c8a43 or tomato`,style:{width:`100%`,minWidth:0,height:`32px`,border:`1px solid ${ke?`#dc2626`:`#b7c7d1`}`,borderRadius:`8px`,padding:`0 10px`,fontSize:`12px`,color:`#22343d`,background:`#fff`,boxSizing:`border-box`,outline:`none`},onChange:e=>{Oe(e.target.value),ke&&Ae(``)},onMouseDown:e=>e.stopPropagation(),onKeyDown:e=>{e.key===`Enter`&&(e.preventDefault(),e.stopPropagation(),We(K)&&B(null))}})]}),(0,i.jsxs)(`div`,{style:{display:`flex`,gap:`8px`},children:[(0,i.jsx)(`button`,{type:`button`,style:{flex:1,border:`1px solid #7a92a1`,borderRadius:`8px`,background:`linear-gradient(180deg, #8ea3b0 0%, #738d9d 100%)`,color:`#fff`,fontSize:`11px`,fontWeight:600,height:`30px`,minWidth:0,padding:`0 10px`,cursor:`pointer`},onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),We(K)&&B(null)},children:`Apply Color`}),(0,i.jsx)(`button`,{type:`button`,style:{width:`32px`,minWidth:`32px`,border:`1px solid #c4d0d8`,borderRadius:`8px`,background:`#ffffff`,color:`#647987`,fontSize:`12px`,fontWeight:700,height:`30px`,padding:0,cursor:`pointer`},title:`Clear color`,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),We(`none`),B(null)},children:`×`})]}),ke?(0,i.jsx)(`div`,{style:{fontSize:`10px`,color:`#b91c1c`,lineHeight:1.2,marginTop:`-2px`},children:ke}):null]}),document.body)]})}function De(e){let t=e,n=t.match(/^\\ce\{([\s\S]*)\}$/);n&&(t=n[1]);let r=[[`\\varepsilon`,`ε`],[`\\varphi`,`φ`],[`\\alpha`,`α`],[`\\beta`,`β`],[`\\gamma`,`γ`],[`\\delta`,`δ`],[`\\epsilon`,`ε`],[`\\zeta`,`ζ`],[`\\eta`,`η`],[`\\theta`,`θ`],[`\\iota`,`ι`],[`\\kappa`,`κ`],[`\\lambda`,`λ`],[`\\mu`,`μ`],[`\\nu`,`ν`],[`\\xi`,`ξ`],[`\\pi`,`π`],[`\\rho`,`ρ`],[`\\sigma`,`σ`],[`\\tau`,`τ`],[`\\upsilon`,`υ`],[`\\phi`,`φ`],[`\\chi`,`χ`],[`\\psi`,`ψ`],[`\\omega`,`ω`],[`\\Gamma`,`Γ`],[`\\Delta`,`Δ`],[`\\Theta`,`Θ`],[`\\Lambda`,`Λ`],[`\\Xi`,`Ξ`],[`\\Pi`,`Π`],[`\\Sigma`,`Σ`],[`\\Upsilon`,`Υ`],[`\\Phi`,`Φ`],[`\\Psi`,`Ψ`],[`\\Omega`,`Ω`],[`\\pm`,`±`],[`\\mp`,`∓`],[`\\times`,`×`],[`\\div`,`÷`],[`\\backslash`,`\\`],[`\\cdot`,`·`],[`\\neq`,`≠`],[`\\leq`,`≤`],[`\\geq`,`≥`],[`\\approx`,`≈`],[`\\equiv`,`≡`],[`\\infty`,`∞`],[`\\sum`,`∑`],[`\\prod`,`∏`],[`\\int`,`∫`],[`\\oint`,`∮`],[`\\iint`,`∬`],[`\\iiint`,`∭`],[`\\oiint`,`∯`],[`\\partial`,`∂`],[`\\nabla`,`∇`],[`\\in`,`∈`],[`\\notin`,`∉`],[`\\subset`,`⊂`],[`\\subseteq`,`⊆`],[`\\supset`,`⊃`],[`\\supseteq`,`⊇`],[`\\cup`,`∪`],[`\\cap`,`∩`],[`\\emptyset`,`∅`],[`\\setminus`,`﹨`],[`\\forall`,`∀`],[`\\exists`,`∃`],[`\\neg`,`¬`],[`\\land`,`∧`],[`\\lor`,`∨`],[`\\leftrightarrow`,`↔`],[`\\Leftrightarrow`,`⇔`],[`\\rightarrow`,`→`],[`\\leftarrow`,`←`],[`\\Rightarrow`,`⇒`],[`\\Leftarrow`,`⇐`],[`\\uparrow`,`↑`],[`\\downarrow`,`↓`],[`\\sin`,`sin`],[`\\cos`,`cos`],[`\\tan`,`tan`],[`\\cot`,`cot`],[`\\sec`,`sec`],[`\\csc`,`csc`],[`\\log`,`log`],[`\\ln`,`ln`],[`\\exp`,`exp`],[`\\lim`,`lim`],...S.map(({insert:e,label:t})=>[e,t]),...C.map(({insert:e,label:t})=>[e,t]),...w.map(({insert:e,label:t})=>[e,t]),[`\\wp`,`℘`],[`\\left(`,`(`],[`\\right)`,`)`],[`\\left[`,`[`],[`\\right]`,`]`],[`\\left|`,`|`],[`\\right|`,`|`],[`\\left\\{`,`{`],[`\\right\\}`,`}`],[`\\,`,` `],[`\\;`,` `],[`\\quad`,` `],[`\\qquad`,` `],[`\\prime`,`′`],[`\\vdots`,`⋮`],[`\\cdots`,`⋯`],[`\\ddots`,`⋱`],[`\\ldots`,`…`]];for(let[e,n]of r){let r=e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);t=t.replace(new RegExp(r,`g`),n)}t=t.replace(/\\frac\{([^}]*)\}\{([^}]*)\}/g,`$1/$2`),t=t.replace(/\\sqrt\[([^\]]*)\]\{([^}]*)\}/g,`$1√($2)`),t=t.replace(/\\sqrt\{([^}]*)\}/g,`√($1)`),t=t.replace(/\\vec\{([^}]*)\}/g,`$1⃗`),t=t.replace(/\\hat\{([^}]*)\}/g,`$1̂`),t=t.replace(/\\bar\{([^}]*)\}/g,`$1̄`),t=t.replace(/\\ddot\{([^}]*)\}/g,`$1̈`),t=t.replace(/\\dot\{([^}]*)\}/g,`$1̇`),t=t.replace(/\\text\{([^}]*)\}/g,`$1`),t=t.replace(/\\begin\{pmatrix\}([\s\S]*?)\\end\{pmatrix\}/g,(e,t)=>`[`+t.replace(/\\\\/g,`; `).replace(/&/g,`, `).trim()+`]`);let i={0:`⁰`,1:`¹`,2:`²`,3:`³`,4:`⁴`,5:`⁵`,6:`⁶`,7:`⁷`,8:`⁸`,9:`⁹`,"+":`⁺`,"-":`⁻`,"=":`⁼`,"(":`⁽`,")":`⁾`,n:`ⁿ`,i:`ⁱ`};t=t.replace(/\^\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>i[e]||e).join(``)),t=t.replace(/\^([a-zA-Z0-9])/g,(e,t)=>i[t]||t);let a={0:`₀`,1:`₁`,2:`₂`,3:`₃`,4:`₄`,5:`₅`,6:`₆`,7:`₇`,8:`₈`,9:`₉`,"+":`₊`,"-":`₋`,"=":`₌`,"(":`₍`,")":`₎`,a:`ₐ`,e:`ₑ`,o:`ₒ`,x:`ₓ`,i:`ᵢ`,j:`ⱼ`,n:`ₙ`};return t=t.replace(/_\{([^}]*)\}/g,(e,t)=>t.split(``).map(e=>a[e]||e).join(``)),t=t.replace(/_([a-zA-Z0-9])/g,(e,t)=>a[t]||t),t=t.replace(/->/g,`→`),t=t.replace(/<=>/g,`⇌`),t=t.replace(/\\[a-zA-Z]+/g,``),t=t.replace(/[{}]/g,``),t=t.replace(/\s+/g,` `),t=t.replace(/\\\\/g,`
2622
- `),t.trim()}function K({value:a,defaultValue:o=``,onChange:s,className:u=``,title:f=`custom ck editor`,showPreviewButton:m=!0,previewButtonLabel:h=`Preview Question`,previewModalTitle:g=`Question Preview`,previewEmptyMessage:_=`Type your question to preview it here.`}){let v=(0,e.useRef)(null),y=(0,e.useRef)(!1),[b,x]=(0,e.useState)(null),[S,C]=(0,e.useState)(null),[w,T]=(0,e.useState)(!1),[E,ee]=(0,e.useState)(``),D=a!==void 0,[O,k]=(0,e.useState)(()=>a??o);(0,e.useEffect)(()=>{y.current=!!b},[b]),(0,e.useEffect)(()=>{D&&k(a??``)},[D,a]),(0,e.useEffect)(()=>()=>{window.__ckMathWidgetClickHandler=null},[]);let A=(0,e.useCallback)(e=>{C(null),y.current=!0,x(e)},[]),j=(0,e.useCallback)(()=>{y.current=!1,x(null),C(null);let e=v.current;e&&e.model.change(e=>{e.setSelection(null)})},[]),[M,te]=(0,e.useState)(!1),ne=(0,e.useCallback)((e,{direction:t=`ltr`}={})=>{let n=v.current;if(!n||!e?.trim())return;let r={latex:e.trim(),dir:t===`rtl`?`rtl`:`ltr`};if(S){let e=d(n,S.modelElement)?S.modelElement:null;e?n.model.change(t=>{let n=t.createElement(`mathInline`,r),i=t.createPositionBefore(e);t.insert(n,i),t.remove(e),t.setSelection(t.createPositionAfter(n))}):n.model.change(e=>{let t=e.createElement(`mathInline`,r);n.model.insertContent(t)}),C(null)}else if(M){let t=De(e.trim());if(!t)return;n.model.change(e=>{let r=e.createText(t);n.model.insertContent(r)})}else n.model.change(e=>{let t=e.createElement(`mathInline`,r);n.model.insertContent(t),n.model.insertContent(e.createText(` `))});n.editing.view.focus()},[M,S]),re=(0,e.useMemo)(()=>Te(A),[A]),ie=(0,e.useCallback)(e=>{v.current=e;let t=(e,t,n=`ltr`)=>{if(!t)return;let r=/^\\ce\{/.test(t),i=e?.getAttribute(`dir`)===`rtl`||n===`rtl`?`rtl`:`ltr`;y.current=!0,C({modelElement:e,latex:t,direction:i}),x(r?`chem`:`math`)};e.mathWidgetClickHandler=t,window.__ckMathWidgetClickHandler=t;let n=e.ui.getEditableElement();if(!n||n._ckMathClickAttached)return;n._ckMathClickAttached=!0;let r=t=>{let n=c(t.target);n&&t.button===0&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation?.(),p(e,null,l(n),n))};n.addEventListener(`mousedown`,r,!0),n.addEventListener(`click`,r,!0)},[]),ae=(0,e.useCallback)(()=>{let e=v.current;ee((e?e.getData():O)||``),T(!0)},[O]),oe=(0,e.useCallback)(()=>{T(!1)},[]);return(0,e.useEffect)(()=>{if(!w)return;let e=e=>{e.key===`Escape`&&T(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[w]),(0,i.jsxs)(`div`,{className:`ck-editor-shell ${u}`.trim(),children:[(0,i.jsx)(`style`,{children:`
2622
+ `),t.trim()}function K({value:a,defaultValue:o=``,onChange:s,className:u=``,title:f=`custom ck editor`,showPreviewButton:m=!0,previewButtonLabel:h=`Preview Question`,previewModalTitle:g=`Question Preview`,previewEmptyMessage:_=`Type your question to preview it here.`}){let v=(0,e.useRef)(null),y=(0,e.useRef)(!1),[b,x]=(0,e.useState)(null),[S,C]=(0,e.useState)(null),[w,T]=(0,e.useState)(!1),[E,ee]=(0,e.useState)(``),D=a!==void 0,[O,k]=(0,e.useState)(()=>a??o);(0,e.useEffect)(()=>{y.current=!!b},[b]),(0,e.useEffect)(()=>{D&&k(a??``)},[D,a]),(0,e.useEffect)(()=>()=>{window.__ckMathWidgetClickHandler=null},[]);let A=(0,e.useCallback)(e=>{C(null),y.current=!0,x(e)},[]),j=(0,e.useCallback)(()=>{y.current=!1,x(null),C(null);let e=v.current;e&&e.model.change(e=>{e.setSelection(null)})},[]),[M,te]=(0,e.useState)(!1),ne=(0,e.useCallback)((e,{direction:t=`ltr`}={})=>{let n=v.current;if(!n||!e?.trim())return;let r={latex:e.trim(),dir:t===`rtl`?`rtl`:`ltr`};if(S){let e=d(n,S.modelElement)?S.modelElement:null;e?n.model.change(t=>{let n=t.createElement(`mathInline`,r),i=t.createPositionBefore(e);t.insert(n,i),t.remove(e),t.setSelection(t.createPositionAfter(n))}):n.model.change(e=>{let t=e.createElement(`mathInline`,r);n.model.insertContent(t)}),C(null)}else if(M){let t=De(e.trim());if(!t)return;n.model.change(e=>{let r=e.createText(t);n.model.insertContent(r)})}else n.model.change(e=>{let t=e.createElement(`mathInline`,r);n.model.insertContent(t),n.model.insertContent(e.createText(` `))});n.editing.view.focus()},[M,S]),re=(0,e.useMemo)(()=>Te(A),[A]),ie=(0,e.useCallback)(e=>{v.current=e;let t=(e,t,n=`ltr`)=>{if(!t)return;let r=/^\\ce\{/.test(t),i=e?.getAttribute(`dir`)===`rtl`||n===`rtl`?`rtl`:`ltr`;y.current=!0,C({modelElement:e,latex:t,direction:i}),x(r?`chem`:`math`)};e.mathWidgetClickHandler=t,window.__ckMathWidgetClickHandler=t;let n=e.ui.getEditableElement();if(!n||n._ckMathClickAttached)return;n._ckMathClickAttached=!0;let r=t=>{let n=c(t.target);n&&t.button===0&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation?.(),p(e,null,l(n),n))};n.addEventListener(`mousedown`,r,!0),n.addEventListener(`click`,r,!0)},[]),ae=(0,e.useCallback)(()=>{let e=v.current;ee((e?e.getData():O)||``),T(!0)},[O]),oe=(0,e.useCallback)(()=>{T(!1)},[]);return(0,e.useEffect)(()=>{if(!w)return;let e=e=>{e.key===`Escape`&&T(!1)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[w]),(0,e.useEffect)(()=>{if(!w)return;let e=setTimeout(()=>{let e=document.querySelector(`.ck-preview-render-zone`);e&&e.querySelectorAll(`.math-tex`).forEach(e=>{let t=e.getAttribute(`data-latex`)||e.textContent||``,n=e.getAttribute(`data-dir`)||`ltr`;e.innerHTML=``;let r=document.createElement(`math-field`);r.setAttribute(`read-only`,``),r.setAttribute(`math-virtual-keyboard-policy`,`manual`),r.setAttribute(`tabindex`,`-1`),r.setAttribute(`letter-shape-style`,`upright`),r.setAttribute(`dir`,n),r.style.display=`inline-block`,r.style.width=`auto`,r.style.maxWidth=`100%`,r.style.verticalAlign=`middle`,r.style.border=`none`,r.style.background=`transparent`,r.style.outline=`none`,r.style.fontSize=`inherit`,r.style.minHeight=`auto`,r.style.padding=`0 2px`,r.style.margin=`0`,r.style.pointerEvents=`none`,r.style.direction=n,r.style.textAlign=n===`rtl`?`right`:`left`,r.style.unicodeBidi=n===`rtl`?`plaintext`:`normal`,r.style.color=`#000000`;let i=()=>{r.setValue?r.setValue(t,{silenceNotifications:!0}):r.value=t};customElements.get(`math-field`)?i():customElements.whenDefined(`math-field`).then(()=>i()),e.appendChild(r)})},50);return()=>clearTimeout(e)},[w,E]),(0,i.jsxs)(`div`,{className:`ck-editor-shell ${u}`.trim(),children:[(0,i.jsx)(`style`,{children:`
2623
2623
  .ck-powered-by { display: none !important; }
2624
2624
  .ck-math-widget {
2625
2625
  display: inline-block !important;
@@ -2642,7 +2642,7 @@ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{val
2642
2642
  width: auto !important;
2643
2643
  max-width: 100% !important;
2644
2644
  pointer-events: none !important;
2645
- color: #ffffff !important;
2645
+ color: #000000 !important;
2646
2646
  }
2647
2647
  .ck-math-widget[data-dir="rtl"] {
2648
2648
  direction: rtl !important;
package/dist/index.js CHANGED
@@ -6199,7 +6199,7 @@ var Ee = class extends g {
6199
6199
  style: "display:inline-block;vertical-align:middle;margin:0 2px;cursor:pointer;width:auto;max-width:100%;pointer-events:none;"
6200
6200
  }, (t) => {
6201
6201
  let n = document.createElement("math-field");
6202
- n.setAttribute("read-only", ""), n.setAttribute("math-virtual-keyboard-policy", "manual"), n.setAttribute("tabindex", "-1"), n.setAttribute("letter-shape-style", "upright"), n.setAttribute("dir", i), n.style.display = "inline-block", n.style.width = "auto", n.style.maxWidth = "100%", n.style.verticalAlign = "middle", n.style.border = "none", n.style.background = "transparent", n.style.outline = "none", n.style.fontSize = "inherit", n.style.minHeight = "auto", n.style.padding = "0 2px", n.style.margin = "0", n.style.pointerEvents = "none", n.style.direction = i, n.style.textAlign = i === "rtl" ? "right" : "left", n.style.unicodeBidi = i === "rtl" ? "plaintext" : "normal", n.style.color = "#ffffff";
6202
+ n.setAttribute("read-only", ""), n.setAttribute("math-virtual-keyboard-policy", "manual"), n.setAttribute("tabindex", "-1"), n.setAttribute("letter-shape-style", "upright"), n.setAttribute("dir", i), n.style.display = "inline-block", n.style.width = "auto", n.style.maxWidth = "100%", n.style.verticalAlign = "middle", n.style.border = "none", n.style.background = "transparent", n.style.outline = "none", n.style.fontSize = "inherit", n.style.minHeight = "auto", n.style.padding = "0 2px", n.style.margin = "0", n.style.pointerEvents = "none", n.style.direction = i, n.style.textAlign = i === "rtl" ? "right" : "left", n.style.unicodeBidi = i === "rtl" ? "plaintext" : "normal", n.style.color = "#000000";
6203
6203
  let a = () => {
6204
6204
  n.setValue ? n.setValue(r, { silenceNotifications: !0 }) : n.value = r;
6205
6205
  };
@@ -9286,10 +9286,26 @@ function Ge({ value: c, defaultValue: g = "", onChange: y, className: ie = "", t
9286
9286
  e.key === "Escape" && F(!1);
9287
9287
  };
9288
9288
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
9289
- }, [P]), /* @__PURE__ */ S("div", {
9289
+ }, [P]), t(() => {
9290
+ if (!P) return;
9291
+ let e = setTimeout(() => {
9292
+ let e = document.querySelector(".ck-preview-render-zone");
9293
+ e && e.querySelectorAll(".math-tex").forEach((e) => {
9294
+ let t = e.getAttribute("data-latex") || e.textContent || "", n = e.getAttribute("data-dir") || "ltr";
9295
+ e.innerHTML = "";
9296
+ let r = document.createElement("math-field");
9297
+ r.setAttribute("read-only", ""), r.setAttribute("math-virtual-keyboard-policy", "manual"), r.setAttribute("tabindex", "-1"), r.setAttribute("letter-shape-style", "upright"), r.setAttribute("dir", n), r.style.display = "inline-block", r.style.width = "auto", r.style.maxWidth = "100%", r.style.verticalAlign = "middle", r.style.border = "none", r.style.background = "transparent", r.style.outline = "none", r.style.fontSize = "inherit", r.style.minHeight = "auto", r.style.padding = "0 2px", r.style.margin = "0", r.style.pointerEvents = "none", r.style.direction = n, r.style.textAlign = n === "rtl" ? "right" : "left", r.style.unicodeBidi = n === "rtl" ? "plaintext" : "normal", r.style.color = "#000000";
9298
+ let i = () => {
9299
+ r.setValue ? r.setValue(t, { silenceNotifications: !0 }) : r.value = t;
9300
+ };
9301
+ customElements.get("math-field") ? i() : customElements.whenDefined("math-field").then(() => i()), e.appendChild(r);
9302
+ });
9303
+ }, 50);
9304
+ return () => clearTimeout(e);
9305
+ }, [P, I]), /* @__PURE__ */ S("div", {
9290
9306
  className: `ck-editor-shell ${ie}`.trim(),
9291
9307
  children: [
9292
- /* @__PURE__ */ x("style", { children: "\n .ck-powered-by { display: none !important; }\n .ck-math-widget {\n display: inline-block !important;\n position: relative !important;\n width: auto !important;\n max-width: 100% !important;\n cursor: pointer !important;\n vertical-align: middle !important;\n }\n .ck-math-widget::after {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 2;\n cursor: pointer;\n }\n .ck-math-widget .ck-math-widget-inner,\n .ck-math-widget math-field {\n display: inline-block !important;\n width: auto !important;\n max-width: 100% !important;\n pointer-events: none !important;\n color: #ffffff !important;\n }\n .ck-math-widget[data-dir=\"rtl\"] {\n direction: rtl !important;\n unicode-bidi: plaintext !important;\n }\n .ck-math-widget[data-dir=\"rtl\"] .ck-math-widget-inner,\n .ck-math-widget[data-dir=\"rtl\"] math-field {\n direction: rtl !important;\n text-align: right !important;\n }\n .ck-math-widget:hover,\n .ck-math-widget.ck-widget_selected { outline: 2px solid #0f766e; outline-offset: 1px; border-radius: 4px; }\n " }),
9308
+ /* @__PURE__ */ x("style", { children: "\n .ck-powered-by { display: none !important; }\n .ck-math-widget {\n display: inline-block !important;\n position: relative !important;\n width: auto !important;\n max-width: 100% !important;\n cursor: pointer !important;\n vertical-align: middle !important;\n }\n .ck-math-widget::after {\n content: '';\n position: absolute;\n inset: 0;\n z-index: 2;\n cursor: pointer;\n }\n .ck-math-widget .ck-math-widget-inner,\n .ck-math-widget math-field {\n display: inline-block !important;\n width: auto !important;\n max-width: 100% !important;\n pointer-events: none !important;\n color: #000000 !important;\n }\n .ck-math-widget[data-dir=\"rtl\"] {\n direction: rtl !important;\n unicode-bidi: plaintext !important;\n }\n .ck-math-widget[data-dir=\"rtl\"] .ck-math-widget-inner,\n .ck-math-widget[data-dir=\"rtl\"] math-field {\n direction: rtl !important;\n text-align: right !important;\n }\n .ck-math-widget:hover,\n .ck-math-widget.ck-widget_selected { outline: 2px solid #0f766e; outline-offset: 1px; border-radius: 4px; }\n " }),
9293
9309
  (b || C) && /* @__PURE__ */ S("div", {
9294
9310
  className: "ck-preview-toolbar",
9295
9311
  children: [b ? /* @__PURE__ */ x("p", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "athif-custom-package",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "CKEditor 5 React package with math, chemistry, special characters, and question preview",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",