@richscripts/richtexteditor 2.14.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +173 -10
- package/angular/build-manifest.json +23 -0
- package/angular/index.d.ts +71 -76
- package/angular/index.mjs +2 -0
- package/angular/package.json +4 -0
- package/headless/index.d.ts +3 -1
- package/headless/index.js +72 -16
- package/index.d.ts +33 -54
- package/integrations/initialization-scope.js +27 -0
- package/integrations/native-mount.js +30 -0
- package/integrations/shared.d.ts +23 -1
- package/integrations/shared.js +58 -22
- package/package.json +25 -3
- package/react/index.js +118 -37
- package/react/index.mjs +29 -0
- package/richtexteditor/all_plugins.js +7113 -1111
- package/richtexteditor/all_plugins.min.js +62 -59
- package/richtexteditor/lang/emoji/LICENSE-CLDR.txt +41 -0
- package/richtexteditor/lang/emoji/rte-emoji-de.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-es.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-fr.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-it.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-ja.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-ko.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-nl.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-pt-pt.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-pt.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-ru.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-zh-Hans.js +3 -0
- package/richtexteditor/lang/emoji/rte-emoji-zh-Hant.js +3 -0
- package/richtexteditor/lang/rte-lang-af.js +1 -0
- package/richtexteditor/lang/rte-lang-ar.js +1 -0
- package/richtexteditor/lang/rte-lang-bg.js +1 -0
- package/richtexteditor/lang/rte-lang-bn.js +1 -0
- package/richtexteditor/lang/rte-lang-bs.js +1 -0
- package/richtexteditor/lang/rte-lang-ca.js +1 -0
- package/richtexteditor/lang/rte-lang-cs.js +1 -0
- package/richtexteditor/lang/rte-lang-cy.js +1 -0
- package/richtexteditor/lang/rte-lang-da.js +1 -0
- package/richtexteditor/lang/rte-lang-de.js +1017 -2
- package/richtexteditor/lang/rte-lang-el.js +1 -0
- package/richtexteditor/lang/rte-lang-en.js +1 -0
- package/richtexteditor/lang/rte-lang-es.js +1023 -2
- package/richtexteditor/lang/rte-lang-et.js +1 -0
- package/richtexteditor/lang/rte-lang-fa.js +1 -0
- package/richtexteditor/lang/rte-lang-fi.js +1 -0
- package/richtexteditor/lang/rte-lang-fil.js +1 -0
- package/richtexteditor/lang/rte-lang-fj.js +1 -0
- package/richtexteditor/lang/rte-lang-fr.js +1023 -2
- package/richtexteditor/lang/rte-lang-ga.js +1 -0
- package/richtexteditor/lang/rte-lang-gu.js +1 -0
- package/richtexteditor/lang/rte-lang-he.js +1 -0
- package/richtexteditor/lang/rte-lang-hi.js +1 -0
- package/richtexteditor/lang/rte-lang-hr.js +1 -0
- package/richtexteditor/lang/rte-lang-ht.js +1 -0
- package/richtexteditor/lang/rte-lang-hu.js +1 -0
- package/richtexteditor/lang/rte-lang-id.js +1 -0
- package/richtexteditor/lang/rte-lang-is.js +1 -0
- package/richtexteditor/lang/rte-lang-it.js +1023 -2
- package/richtexteditor/lang/rte-lang-ja.js +1023 -2
- package/richtexteditor/lang/rte-lang-kn.js +1 -0
- package/richtexteditor/lang/rte-lang-ko.js +1023 -2
- package/richtexteditor/lang/rte-lang-lt.js +1 -0
- package/richtexteditor/lang/rte-lang-lv.js +1 -0
- package/richtexteditor/lang/rte-lang-mg.js +1 -0
- package/richtexteditor/lang/rte-lang-mi.js +1 -0
- package/richtexteditor/lang/rte-lang-ml.js +1 -0
- package/richtexteditor/lang/rte-lang-mr.js +1 -0
- package/richtexteditor/lang/rte-lang-ms.js +1 -0
- package/richtexteditor/lang/rte-lang-mt.js +1 -0
- package/richtexteditor/lang/rte-lang-mww.js +1 -0
- package/richtexteditor/lang/rte-lang-nb.js +1 -0
- package/richtexteditor/lang/rte-lang-nl.js +1023 -2
- package/richtexteditor/lang/rte-lang-otq.js +1 -0
- package/richtexteditor/lang/rte-lang-pa.js +1 -0
- package/richtexteditor/lang/rte-lang-pl.js +1 -0
- package/richtexteditor/lang/rte-lang-pt-pt.js +1023 -2
- package/richtexteditor/lang/rte-lang-pt.js +1023 -2
- package/richtexteditor/lang/rte-lang-ro.js +1 -0
- package/richtexteditor/lang/rte-lang-ru.js +1023 -2
- package/richtexteditor/lang/rte-lang-sk.js +1 -0
- package/richtexteditor/lang/rte-lang-sl.js +1 -0
- package/richtexteditor/lang/rte-lang-sm.js +1 -0
- package/richtexteditor/lang/rte-lang-sr-Cyrl.js +1 -0
- package/richtexteditor/lang/rte-lang-sr-Latn.js +1 -0
- package/richtexteditor/lang/rte-lang-sv.js +1 -0
- package/richtexteditor/lang/rte-lang-sw.js +1 -0
- package/richtexteditor/lang/rte-lang-ta.js +1 -0
- package/richtexteditor/lang/rte-lang-te.js +1 -0
- package/richtexteditor/lang/rte-lang-th.js +1 -0
- package/richtexteditor/lang/rte-lang-tlh-Latn.js +1 -0
- package/richtexteditor/lang/rte-lang-tlh-Piqd.js +1 -0
- package/richtexteditor/lang/rte-lang-to.js +1 -0
- package/richtexteditor/lang/rte-lang-tr.js +1 -0
- package/richtexteditor/lang/rte-lang-ty.js +1 -0
- package/richtexteditor/lang/rte-lang-uk.js +1 -0
- package/richtexteditor/lang/rte-lang-ur.js +1 -0
- package/richtexteditor/lang/rte-lang-vi.js +1 -0
- package/richtexteditor/lang/rte-lang-yua.js +1 -0
- package/richtexteditor/lang/rte-lang-zh-Hans.js +1017 -2
- package/richtexteditor/lang/rte-lang-zh-Hant.js +1017 -2
- package/richtexteditor/plugins/a11yenhance.js +2 -1
- package/richtexteditor/plugins/a11yenhance.min.js +1 -1
- package/richtexteditor/plugins/accessibilitychecker.js +252 -60
- package/richtexteditor/plugins/accessibilitychecker.min.js +1 -1
- package/richtexteditor/plugins/aitoolkit.js +966 -303
- package/richtexteditor/plugins/aitoolkit.min.js +7 -7
- package/richtexteditor/plugins/all_plugins.js +7113 -1111
- package/richtexteditor/plugins/all_plugins.min.js +62 -59
- package/richtexteditor/plugins/autocorrect.js +66 -31
- package/richtexteditor/plugins/autocorrect.min.js +1 -1
- package/richtexteditor/plugins/autoembed.js +17 -0
- package/richtexteditor/plugins/autoembed.min.js +1 -1
- package/richtexteditor/plugins/blocktypes.js +18 -9
- package/richtexteditor/plugins/blocktypes.min.js +1 -1
- package/richtexteditor/plugins/bookmarkcard.js +12 -5
- package/richtexteditor/plugins/bookmarkcard.min.js +2 -2
- package/richtexteditor/plugins/changecase.js +72 -19
- package/richtexteditor/plugins/changecase.min.js +1 -1
- package/richtexteditor/plugins/charlimit.js +62 -2
- package/richtexteditor/plugins/charlimit.min.js +2 -2
- package/richtexteditor/plugins/comments.js +458 -59
- package/richtexteditor/plugins/comments.min.js +4 -3
- package/richtexteditor/plugins/contentminimap.js +25 -6
- package/richtexteditor/plugins/contentminimap.min.js +1 -1
- package/richtexteditor/plugins/crossreference.js +1 -1
- package/richtexteditor/plugins/crossreference.min.js +1 -1
- package/richtexteditor/plugins/dialoga11y.js +26 -4
- package/richtexteditor/plugins/dialoga11y.min.js +1 -1
- package/richtexteditor/plugins/dictation.js +1 -1
- package/richtexteditor/plugins/documentimport.js +220 -51
- package/richtexteditor/plugins/documentimport.min.js +4 -4
- package/richtexteditor/plugins/documentoutline.js +88 -38
- package/richtexteditor/plugins/documentoutline.min.js +1 -1
- package/richtexteditor/plugins/docxexport.js +204 -32
- package/richtexteditor/plugins/docxexport.min.js +2 -2
- package/richtexteditor/plugins/draghandle.js +267 -3
- package/richtexteditor/plugins/draghandle.min.js +1 -1
- package/richtexteditor/plugins/emailtoolkit.js +28 -14
- package/richtexteditor/plugins/emailtoolkit.min.js +1 -1
- package/richtexteditor/plugins/emojiautocomplete.js +110 -56
- package/richtexteditor/plugins/emojiautocomplete.min.js +1 -1
- package/richtexteditor/plugins/footnotes.js +65 -11
- package/richtexteditor/plugins/footnotes.min.js +1 -1
- package/richtexteditor/plugins/formatpainter.js +10 -0
- package/richtexteditor/plugins/formatpainter.min.js +1 -1
- package/richtexteditor/plugins/formattingmarks.js +53 -8
- package/richtexteditor/plugins/formattingmarks.min.js +1 -1
- package/richtexteditor/plugins/gapcursor.js +60 -0
- package/richtexteditor/plugins/gapcursor.min.js +1 -1
- package/richtexteditor/plugins/ghostcomplete.js +1 -1
- package/richtexteditor/plugins/html2pdf.js +1 -1
- package/richtexteditor/plugins/html2pdf.min.js +1 -1
- package/richtexteditor/plugins/imageeditor.js +12 -6
- package/richtexteditor/plugins/imageeditor.min.js +1 -1
- package/richtexteditor/plugins/importstyles.js +1 -1
- package/richtexteditor/plugins/inlinecode.js +25 -0
- package/richtexteditor/plugins/inlinecode.min.js +1 -1
- package/richtexteditor/plugins/insertcode.js +21 -3
- package/richtexteditor/plugins/insertcode.min.js +4 -4
- package/richtexteditor/plugins/insertemoji.js +112 -15
- package/richtexteditor/plugins/insertemoji.min.js +1 -1
- package/richtexteditor/plugins/insertgallery.js +42 -36
- package/richtexteditor/plugins/insertgallery.min.js +1 -1
- package/richtexteditor/plugins/inserttemplate.js +33 -17
- package/richtexteditor/plugins/inserttemplate.min.js +1 -1
- package/richtexteditor/plugins/keyboarda11y.js +66 -3
- package/richtexteditor/plugins/keyboarda11y.min.js +1 -1
- package/richtexteditor/plugins/layouttable.js +20 -0
- package/richtexteditor/plugins/layouttable.min.js +1 -1
- package/richtexteditor/plugins/linkchecker.js +29 -9
- package/richtexteditor/plugins/linkchecker.min.js +1 -1
- package/richtexteditor/plugins/localdraft.js +51 -7
- package/richtexteditor/plugins/localdraft.min.js +1 -1
- package/richtexteditor/plugins/markdownexport.js +159 -0
- package/richtexteditor/plugins/markdownexport.min.js +2 -2
- package/richtexteditor/plugins/mathdialog.js +11 -5
- package/richtexteditor/plugins/mathdialog.min.js +1 -1
- package/richtexteditor/plugins/mentionplugin.js +88 -25
- package/richtexteditor/plugins/mentionplugin.min.js +1 -1
- package/richtexteditor/plugins/mermaiddiagram.js +9 -3
- package/richtexteditor/plugins/mermaiddiagram.min.js +2 -2
- package/richtexteditor/plugins/multilevellist.js +4 -0
- package/richtexteditor/plugins/multilevellist.min.js +1 -1
- package/richtexteditor/plugins/pdfexport.js +235 -35
- package/richtexteditor/plugins/pdfexport.min.js +12 -12
- package/richtexteditor/plugins/permanentpen.js +3 -3
- package/richtexteditor/plugins/permanentpen.min.js +1 -1
- package/richtexteditor/plugins/readabilitystats.js +25 -11
- package/richtexteditor/plugins/readabilitystats.min.js +1 -1
- package/richtexteditor/plugins/readaloud.js +29 -15
- package/richtexteditor/plugins/readaloud.min.js +1 -1
- package/richtexteditor/plugins/restrictedediting.js +166 -0
- package/richtexteditor/plugins/restrictedediting.min.js +2 -2
- package/richtexteditor/plugins/revisionhistory.js +169 -37
- package/richtexteditor/plugins/revisionhistory.min.js +3 -3
- package/richtexteditor/plugins/rubyannotation.js +19 -9
- package/richtexteditor/plugins/rubyannotation.min.js +1 -1
- package/richtexteditor/plugins/sanitizer.js +86 -4
- package/richtexteditor/plugins/sanitizer.min.js +1 -1
- package/richtexteditor/plugins/slashcommand.js +30 -16
- package/richtexteditor/plugins/slashcommand.min.js +2 -2
- package/richtexteditor/plugins/smartchips.js +36 -22
- package/richtexteditor/plugins/smartchips.min.js +2 -2
- package/richtexteditor/plugins/spellcheck.js +17 -8
- package/richtexteditor/plugins/spellcheck.min.js +2 -2
- package/richtexteditor/plugins/stateinspector.js +19 -9
- package/richtexteditor/plugins/stateinspector.min.js +2 -2
- package/richtexteditor/plugins/structured-content-bridge.js +56 -24
- package/richtexteditor/plugins/structured-content-bridge.min.js +7 -7
- package/richtexteditor/plugins/tableofcontents.js +5 -2
- package/richtexteditor/plugins/tableofcontents.min.js +1 -1
- package/richtexteditor/plugins/tabletools.js +388 -3
- package/richtexteditor/plugins/tabletools.min.js +1 -1
- package/richtexteditor/plugins/textdirection.js +18 -5
- package/richtexteditor/plugins/textdirection.min.js +1 -1
- package/richtexteditor/plugins/textpartlanguage.js +161 -32
- package/richtexteditor/plugins/textpartlanguage.min.js +1 -1
- package/richtexteditor/plugins/todolist.js +90 -6
- package/richtexteditor/plugins/todolist.min.js +1 -1
- package/richtexteditor/plugins/trackedchanges.js +1812 -25
- package/richtexteditor/plugins/trackedchanges.min.js +5 -3
- package/richtexteditor/plugins/wordexport.js +2 -2
- package/richtexteditor/plugins/yjscollab.js +9 -4
- package/richtexteditor/plugins/yjscollab.min.js +1 -1
- package/richtexteditor/plugins/zz_richtextbox_dialog_style.js +22 -13
- package/richtexteditor/plugins/zz_richtextbox_dialog_style.min.js +1 -1
- package/richtexteditor/rte-config.js +131 -50
- package/richtexteditor/rte-headless.js +19 -4
- package/richtexteditor/rte-webcomponent.js +89 -16
- package/richtexteditor/rte.js +133 -52
- package/richtexteditor/runtime/colorpicker_more_ns.htm +93 -16
- package/scripts/build-angular.mjs +97 -0
- package/svelte/index.d.ts +2 -1
- package/svelte/index.js +80 -9
- package/vue/index.js +130 -34
- package/angular/component.ts +0 -297
- package/angular/index.ts +0 -24
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
window.RTE_DefaultConfig||(window.RTE_DefaultConfig={}),RTE_DefaultConfig.plugin_documentimport=RTE_Plugin_DocumentImport,typeof RTE_DefaultConfig.documentImport>"u"&&(RTE_DefaultConfig.documentImport=!0);function RTE_Plugin_DocumentImport(){var
|
|
2
|
-
`).split(/\n{2,}/);return o.map(function(a){return"<p>"+M(a).replace(/\n/g,"<br>")+"</p>"}).join("")}}function se(n,e){return n==null?!1:e==="insert"&&typeof E.insertHTML=="function"?(E.insertHTML(n),!0):typeof E.setHTMLCode=="function"?(E.setHTMLCode(n),!0):!1}function xe(n,e){var o=e.mode||Y.documentImportMode||"replace";return new Promise(function(a){if(!n){a(!1);return}var t=Te(n.name);if(typeof Y.documentImportResolver=="function")try{var v=Y.documentImportResolver(n);Promise.resolve(v).then(function(m){typeof m=="string"?a(se(m,o)):u()},function(){u()});return}catch{u();return}u();function u(){if(t==="docx"){if(!Ie()){me("This browser can't unpack .docx (no DecompressionStream). Save as .doc/.html/.md, or wire config.documentImportResolver."),a(!1);return}ke(n).then(function(y){y!=null?a(se(y,o)):(me("Could not read this .docx file."),a(!1))},function(){me("Could not read this .docx file."),a(!1)});return}if(typeof FileReader>"u"){a(!1);return}var m=new FileReader;m.onload=function(){var y=Ne(m.result,t);a(se(y,o))},m.onerror=function(){a(!1)},m.readAsText(n)}})}function we(n){try{var e=document.createElement("input");return e.type="file",e.accept=n.accept||Y.documentImportAccept||".md,.markdown,.html,.htm,.txt,.doc,.docx",e.style.position="fixed",e.style.left="-9999px",e.addEventListener("change",function(){var o=e.files&&e.files[0];o&&xe(o,n),setTimeout(function(){try{document.body.removeChild(e)}catch{}},0)}),document.body.appendChild(e),e.click(),!0}catch(o){return window.console&&console.error("documentimport: openPicker failed",o),!1}}function Ie(){return typeof DecompressionStream=="function"&&typeof DOMParser=="function"&&(typeof Response=="function"||typeof Blob=="function")}function qe(n,e){for(var o=new DataView(n.buffer,n.byteOffset,n.byteLength),a=-1,t=n.length-22;t>=0&&t>=n.length-22-65536;t--)if(o.getUint32(t,!0)===101010256){a=t;break}if(a<0)return null;for(var v=o.getUint32(a+16,!0),u=o.getUint16(a+10,!0),m=v,y=0;y<u&&o.getUint32(m,!0)===33639248;y++){var s=o.getUint16(m+10,!0),T=o.getUint32(m+20,!0),r=o.getUint16(m+28,!0),c=o.getUint16(m+30,!0),b=o.getUint16(m+32,!0),g=o.getUint32(m+42,!0),A=$(n.subarray(m+46,m+46+r)).replace(/\\/g,"/");if(A===e){var I=new DataView(n.buffer,n.byteOffset+g,30),R=I.getUint16(26,!0),Z=I.getUint16(28,!0),D=g+30+R+Z;return{method:s,data:n.subarray(D,D+T)}}m+=46+r+c+b}return null}function $(n){try{return new TextDecoder("utf-8").decode(n)}catch{for(var e="",o=0;o<n.length;o++)e+=String.fromCharCode(n[o]);return e}}function Ee(n){var e=new DecompressionStream("deflate-raw"),o=new Blob([n]);return new Response(o.stream().pipeThrough(e)).arrayBuffer().then(function(a){return new Uint8Array(a)})}function Me(n){for(var e=new DataView(n.buffer,n.byteOffset,n.byteLength),o=-1,a=n.length-22;a>=0&&a>=n.length-22-65536;a--)if(e.getUint32(a,!0)===101010256){o=a;break}if(o<0)return[];for(var t=e.getUint32(o+16,!0),v=e.getUint16(o+10,!0),u=t,m=[],y=0;y<v&&e.getUint32(u,!0)===33639248;y++){var s=e.getUint16(u+10,!0),T=e.getUint32(u+20,!0),r=e.getUint16(u+28,!0),c=e.getUint16(u+30,!0),b=e.getUint16(u+32,!0),g=e.getUint32(u+42,!0),A=$(n.subarray(u+46,u+46+r)).replace(/\\/g,"/"),I=new DataView(n.buffer,n.byteOffset+g,30),R=g+30+I.getUint16(26,!0)+I.getUint16(28,!0);m.push({name:A,method:s,data:n.subarray(R,R+T)}),u+=46+r+c+b}return m}function z(n){return n.method===0?Promise.resolve(n.data):Ee(n.data)}function Re(n){var e=(n.split(".").pop()||"").toLowerCase();return e==="png"?"image/png":e==="jpg"||e==="jpeg"?"image/jpeg":e==="gif"?"image/gif":e==="bmp"?"image/bmp":e==="webp"?"image/webp":e==="svg"?"image/svg+xml":null}function Be(n,e){for(var o=32768,a="",t=0;t<n.length;t+=o)a+=String.fromCharCode.apply(null,n.subarray(t,t+o));return"data:"+e+";base64,"+btoa(a)}function ke(n){var e=n.arrayBuffer?n.arrayBuffer():new Promise(function(o,a){var t=new FileReader;t.onload=function(){o(t.result)},t.onerror=a,t.readAsArrayBuffer(n)});return e.then(function(o){for(var a=new Uint8Array(o),t=Me(a),v={},u=0;u<t.length;u++)v[t[u].name]=t[u];if(!v["word/document.xml"])return null;var m={rels:{},numbering:{},media:{},footnotes:{},endnotes:{},comments:{},diagrams:{},vectorNames:{}},y=Y.documentImportImages!==!1,s=[z(v["word/document.xml"]).then(function(c){m.documentXml=$(c)})];v["word/_rels/document.xml.rels"]&&s.push(z(v["word/_rels/document.xml.rels"]).then(function(c){m.rels=De($(c))})),v["word/numbering.xml"]&&s.push(z(v["word/numbering.xml"]).then(function(c){m.numbering=Fe($(c))})),v["word/footnotes.xml"]&&s.push(z(v["word/footnotes.xml"]).then(function(c){m.footnotes=ye($(c),"footnote")})),v["word/endnotes.xml"]&&s.push(z(v["word/endnotes.xml"]).then(function(c){m.endnotes=ye($(c),"endnote")})),v["word/comments.xml"]&&s.push(z(v["word/comments.xml"]).then(function(c){m.comments=_e($(c))}));for(var T=0;T<t.length;T++)(function(c){/^word\/diagrams\/data\d*\.xml$/.test(c.name)&&s.push(z(c).then(function(b){try{m.diagrams[c.name]=Oe($(b))}catch{}}))})(t[T]);if(y)for(var r=0;r<t.length;r++)(function(c){if(c.name.indexOf("word/media/")===0){var b=Re(c.name);b&&s.push(z(c).then(function(g){try{m.media[c.name]=Be(g,b)}catch{}}))}})(t[r]);return Promise.all(s).then(function(){return $e(m.documentXml,m)})})}function De(n){var e={};try{for(var o=new DOMParser().parseFromString(n,"application/xml"),a=o.getElementsByTagName("*"),t=0;t<a.length;t++)if(a[t].localName==="Relationship"){var v=a[t].getAttribute("Id"),u=a[t].getAttribute("Target"),m=a[t].getAttribute("TargetMode");v&&u&&(e[v]={target:u,external:m==="External"})}}catch{}return e}function ye(n,e){var o={};try{for(var a="http://schemas.openxmlformats.org/wordprocessingml/2006/main",t=new DOMParser().parseFromString(n,"application/xml"),v=t.getElementsByTagNameNS(a,e||"footnote"),u=0;u<v.length;u++){var m=v[u],y=m.getAttributeNS(a,"type")||m.getAttribute("w:type")||"";if(!y){var s=m.getAttributeNS(a,"id")||m.getAttribute("w:id");if(s!=null){var T=(m.textContent||"").replace(/\s+/g," ").trim();T&&(o[String(s)]=T)}}}}catch{}return o}function _e(n){var e={};try{for(var o="http://schemas.openxmlformats.org/wordprocessingml/2006/main",a=new DOMParser().parseFromString(n,"application/xml"),t=a.getElementsByTagNameNS(o,"comment"),v=0;v<t.length;v++){var u=t[v],m=u.getAttributeNS(o,"id")||u.getAttribute("w:id");m!=null&&(e[String(m)]={text:(u.textContent||"").replace(/\s+/g," ").trim(),author:u.getAttributeNS(o,"author")||u.getAttribute("w:author")||""})}}catch{}return e}function Oe(n){var e=[];try{for(var o="http://schemas.openxmlformats.org/drawingml/2006/diagram",a=new DOMParser().parseFromString(n,"application/xml"),t=a.getElementsByTagNameNS(o,"pt"),v=0;v<t.length;v++){var u=t[v].getAttribute("type")||"";if(!(u==="pres"||u==="parTrans"||u==="sibTrans")){var m=t[v].getElementsByTagNameNS(o,"t")[0];if(m){var y=(m.textContent||"").replace(/\s+/g," ").trim();y&&e.push(y)}}}}catch{}return e}function Fe(n){var e={};try{let D=function(q){return q&&(q.getAttributeNS(o,"val")||q.getAttribute("w:val"))||""};for(var Z=D,o="http://schemas.openxmlformats.org/wordprocessingml/2006/main",a=new DOMParser().parseFromString(n,"application/xml"),t={},v=a.getElementsByTagNameNS(o,"abstractNum"),u=0;u<v.length;u++){for(var m=v[u].getAttributeNS(o,"abstractNumId")||v[u].getAttribute("w:abstractNumId"),y={},s=v[u].getElementsByTagNameNS(o,"lvl"),T=0;T<s.length;T++){var r=s[T].getAttributeNS(o,"ilvl")||s[T].getAttribute("w:ilvl")||"0",c=D(s[T].getElementsByTagNameNS(o,"numFmt")[0]);y[r]=c||"decimal"}m!=null&&(t[m]=y)}for(var b=a.getElementsByTagNameNS(o,"num"),g=0;g<b.length;g++){var A=b[g].getAttributeNS(o,"numId")||b[g].getAttribute("w:numId"),I=b[g].getElementsByTagNameNS(o,"abstractNumId")[0],R=D(I);A!=null&&t[R]&&(e[A]=t[R])}}catch{}return e}var ce="http://schemas.openxmlformats.org/officeDocument/2006/math",Se={"\u2211":"\\sum","\u220F":"\\prod","\u2210":"\\coprod","\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u22C3":"\\bigcup","\u22C2":"\\bigcap","\xB1":"\\pm","\u2213":"\\mp","\xD7":"\\times","\xF7":"\\div","\u2212":"-","\u2260":"\\neq","\u2264":"\\leq","\u2265":"\\geq","\u2248":"\\approx","\u2261":"\\equiv","\u221D":"\\propto","\u221E":"\\infty","\u2202":"\\partial","\u2207":"\\nabla","\u221A":"\\sqrt","\u2220":"\\angle","\u22C5":"\\cdot","\u2026":"\\dots","\u2192":"\\to","\u2190":"\\leftarrow","\u21D2":"\\Rightarrow","\u21D4":"\\Leftrightarrow","\u2208":"\\in","\u2209":"\\notin","\u2282":"\\subset","\u2286":"\\subseteq","\u222A":"\\cup","\u2229":"\\cap","\u2205":"\\emptyset","\u2200":"\\forall","\u2203":"\\exists","\xAC":"\\neg","\u2227":"\\land","\u2228":"\\lor","\u2234":"\\therefore",\u03B1:"\\alpha",\u03B2:"\\beta",\u03B3:"\\gamma",\u03B4:"\\delta",\u03B5:"\\epsilon",\u03B6:"\\zeta",\u03B7:"\\eta",\u03B8:"\\theta",\u03B9:"\\iota",\u03BA:"\\kappa",\u03BB:"\\lambda",\u03BC:"\\mu",\u03BD:"\\nu",\u03BE:"\\xi",\u03C0:"\\pi",\u03C1:"\\rho",\u03C3:"\\sigma",\u03C4:"\\tau",\u03C5:"\\upsilon",\u03C6:"\\varphi",\u03C7:"\\chi",\u03C8:"\\psi",\u03C9:"\\omega",\u0393:"\\Gamma",\u0394:"\\Delta",\u0398:"\\Theta",\u039B:"\\Lambda",\u039E:"\\Xi",\u03A0:"\\Pi",\u03A3:"\\Sigma",\u03A6:"\\Phi",\u03A8:"\\Psi",\u03A9:"\\Omega"},He={"\u0302":"\\hat","\u0303":"\\tilde","\u0304":"\\bar","\u0305":"\\overline","\u0306":"\\breve","\u0307":"\\dot","\u0308":"\\ddot","\u030A":"\\mathring","\u030C":"\\check","\u2192":"\\vec","\u20D7":"\\vec","\u0301":"\\acute","\u0300":"\\grave"};function Le(n){var e=ce;function o(r,c){for(var b=0;b<r.childNodes.length;b++){var g=r.childNodes[b];if(g.nodeType===1&&g.localName===c)return g.getAttributeNS(e,"val")||g.getAttribute("m:val")||""}return""}function a(r,c,b){var g=t(r,c);return g?o(g,b):""}function t(r,c){for(var b=0;b<r.childNodes.length;b++){var g=r.childNodes[b];if(g.nodeType===1&&g.localName===c&&g.namespaceURI===e)return g}return null}function v(r,c){for(var b=[],g=0;g<r.childNodes.length;g++){var A=r.childNodes[g];A.nodeType===1&&A.localName===c&&A.namespaceURI===e&&b.push(A)}return b}function u(r){return"{"+(r?s(r).trim():"")+"}"}function m(r){var c=r?s(r).trim():"";return/^[A-Za-z0-9]$/.test(c)||/^\\[A-Za-z]+$/.test(c)?c:"{"+c+"}"}function y(r){for(var c="",b=0;b<r.length;b++){var g=r.charAt(b),A=Se[g];if(A){c+=A+" ";continue}if("#$%&_{}".indexOf(g)>=0){c+="\\"+g;continue}if(g==="\\"){c+="\\backslash ";continue}c+=g}return c}function s(r){for(var c="",b=0;b<r.childNodes.length;b++){var g=r.childNodes[b];if(g.nodeType===1){if(g.namespaceURI!==e){c+=y(g.textContent||"");continue}c+=T(g)}}return c}function T(r){var c=r.localName;switch(c){case"oMath":case"oMathPara":case"e":case"num":case"den":case"sub":case"sup":case"deg":case"lim":case"fName":return s(r);case"rPr":case"ctrlPr":case"fPr":case"radPr":case"naryPr":case"dPr":case"sSupPr":case"sSubPr":case"sSubSupPr":case"accPr":case"barPr":case"funcPr":case"mPr":case"limLowPr":case"limUppPr":case"groupChrPr":case"mcPr":case"eqArrPr":case"boxPr":case"borderBoxPr":case"phantPr":case"sPrePr":return"";case"r":return y(r.textContent||"");case"t":return y(r.textContent||"");case"f":{var b=a(r,"fPr","type"),g=u(t(r,"num")),A=u(t(r,"den"));return b==="noBar"?"\\binom"+g+A:b==="skw"||b==="lin"?g+"/"+A:"\\frac"+g+A}case"sSup":return m(t(r,"e"))+"^"+u(t(r,"sup"));case"sSub":return m(t(r,"e"))+"_"+u(t(r,"sub"));case"sSubSup":return m(t(r,"e"))+"_"+u(t(r,"sub"))+"^"+u(t(r,"sup"));case"sPre":return"{}_"+u(t(r,"sub"))+"^"+u(t(r,"sup"))+u(t(r,"e"));case"rad":{var I=a(r,"radPr","degHide"),R=t(r,"deg"),Z=u(t(r,"e"));return I==="1"||I==="on"||I==="true"||!R||!(R.textContent||"").trim()?"\\sqrt"+Z:"\\sqrt["+s(R)+"]"+Z}case"nary":{var D=a(r,"naryPr","chr")||"\u222B",q=Se[D]||y(D),W=a(r,"naryPr","subHide"),le=a(r,"naryPr","supHide"),K=q;W!=="1"&&W!=="on"&&t(r,"sub")&&(K+="_"+u(t(r,"sub"))),le!=="1"&&le!=="on"&&t(r,"sup")&&(K+="^"+u(t(r,"sup")));var C=t(r,"e");return K+" "+(C?s(C).trim():"")}case"d":{let p=function(N,x){if(!N)return x==="l"?"\\left.":"\\right.";if(N==="{"||N==="}")return"\\"+N;if(N==="|")return"|";if(N==="\u2016")return"\\|";var w=N.charCodeAt(0);return w===10216||w===12296||w===9001?"\\langle":w===10217||w===12297||w===9002?"\\rangle":N==="\u230A"?"\\lfloor":N==="\u230B"?"\\rfloor":N==="\u2308"?"\\lceil":N==="\u2309"?"\\rceil":N};var S=p,_=a(r,"dPr","begChr"),H=a(r,"dPr","endChr"),j=a(r,"dPr","sepChr")||"|";_===""&&(_="("),H===""&&(H=")");for(var ee=v(r,"e"),B=[],re=0;re<ee.length;re++)B.push(s(ee[re]));return"\\left"+p(_,"l")+B.join(" "+p(j,"m")+" ")+"\\right"+p(H,"r")}case"func":{var P=s(t(r,"fName")).trim(),V=/^(sin|cos|tan|cot|sec|csc|sinh|cosh|tanh|log|ln|lg|exp|lim|max|min|det|dim|gcd|arg|deg|hom|ker|Pr|sup|inf)$/,L=V.test(P)?"\\"+P:P?"\\operatorname{"+P+"}":"";return L+u(t(r,"e"))}case"limLow":{var G=s(t(r,"e")).trim();return G==="lim"||G==="\\lim"?"\\lim_"+u(t(r,"lim")):"\\underset"+u(t(r,"lim"))+"{"+G+"}"}case"limUpp":return"\\overset"+u(t(r,"lim"))+u(t(r,"e"));case"acc":{var de=a(r,"accPr","chr")||"\u0302",te=He[de]||"\\hat";return te+u(t(r,"e"))}case"bar":return(a(r,"barPr","pos")==="bot"?"\\underline":"\\overline")+u(t(r,"e"));case"groupChr":{var pe=a(r,"groupChrPr","chr");return pe==="\u23DF"?"\\underbrace"+u(t(r,"e")):"\\overbrace"+u(t(r,"e"))}case"borderBox":return"\\boxed"+u(t(r,"e"));case"box":case"phant":return s(r);case"m":{for(var ae=v(r,"mr"),oe=[],ne=0;ne<ae.length;ne++){for(var ie=v(ae[ne],"e"),d=[],i=0;i<ie.length;i++)d.push(s(ie[i]));oe.push(d.join(" & "))}return"\\begin{matrix}"+oe.join(" \\\\ ")+"\\end{matrix}"}case"eqArr":{for(var l=v(r,"e"),f=[],h=0;h<l.length;h++)f.push(s(l[h]));return"\\begin{aligned}"+f.join(" \\\\ ")+"\\end{aligned}"}default:return s(r)}}try{return T(n).replace(/\s+/g," ").trim()}catch{return(n.textContent||"").trim()}}function $e(n,e){e=e||{rels:{},numbering:{},media:{}},e.diagrams||(e.diagrams={});var o=new DOMParser().parseFromString(n,"application/xml"),a="http://schemas.openxmlformats.org/wordprocessingml/2006/main",t="http://schemas.openxmlformats.org/officeDocument/2006/relationships";function v(d){if(!d)return null;var i=d.getAttributeNS(t,"id")||d.getAttribute("r:id")||d.getAttributeNS(t,"embed")||d.getAttribute("r:embed");return i&&e.rels[i]||null}function u(d){for(var i=d.getElementsByTagName("*"),l=0;l<i.length;l++)if(!(i[l].localName!=="blip"&&i[l].localName!=="imagedata")){var f=v(i[l]);if(f){var h=f.target.replace(/^\.\//,""),S=h.indexOf("word/")===0?h:"word/"+h,p=e.media[S];if(p)return'<img src="'+p+'" alt="">';if(f.external)return'<img src="'+M(f.target)+'" alt="">';if(/\.(wmf|emf|emz|wmz)$/i.test(h)){var N=h.split("/").pop();return b('<p class="rte-imported-unsupported" data-source="'+M(N)+'"><em>[Unsupported image: '+M(N)+" \u2014 Windows metafiles have no browser-renderable form]</em></p>"),""}}}return b(m(d)),""}function m(d){for(var i=d.getElementsByTagName("*"),l=0;l<i.length;l++)if(i[l].localName==="relIds"){var f=i[l].getAttributeNS(t,"dm")||i[l].getAttribute("r:dm"),h=f?e.rels[f]:null;if(h){var S=h.target.replace(/^\.\//,""),p=S.indexOf("word/")===0?S:"word/"+S,N=e.diagrams[p];if(!(!N||!N.length)){for(var x="",w=0;w<N.length;w++)x+="<li>"+M(N[w])+"</li>";return'<div class="rte-imported-smartart" style="'+Ce+'"><ul>'+x+"</ul></div>"}}}return""}function y(d,i){return d.getElementsByTagNameNS(a,i)}function s(d,i){for(var l=0;l<d.childNodes.length;l++){var f=d.childNodes[l];if(f.nodeType===1&&f.localName===i&&f.namespaceURI===a)return f}return null}function T(d){for(var i="",l=d.childNodes,f=0;f<l.length;f++){var h=l[f];h.nodeType===1&&(h.localName==="t"||h.localName==="delText"?i+=h.textContent||"":h.localName==="tab"?i+=" ":(h.localName==="br"||h.localName==="cr")&&(i+=`
|
|
3
|
-
`))}return
|
|
4
|
-
`);function
|
|
1
|
+
window.RTE_DefaultConfig||(window.RTE_DefaultConfig={}),RTE_DefaultConfig.plugin_documentimport=RTE_Plugin_DocumentImport,typeof RTE_DefaultConfig.documentImport>"u"&&(RTE_DefaultConfig.documentImport=!0);function RTE_Plugin_DocumentImport(){var Le=this,F,E;Le.PluginName="DocumentImport",Le.InitConfig=function(n){F=n},Le.InitEditor=function(n){E=n,F.documentImport!==!1&&(E.htmlFromImportText=function(e,i){return $e(String(e??""),i)},E.importFile=function(e,i){return qe(e,i||{})},E.openImportDialog=function(e){return je(e||{})},E.attachEvent("exec_command_importdocument",function(e){e.returnValue=!0,e.stopBubble=!0,je({})}))};function Je(n){var e=String(n||"").toLowerCase();return/\.(md|markdown|mdown|mkd)$/.test(e)?"md":/\.html?$/.test(e)?"html":/\.doc$/.test(e)?"doc":/\.docx$/.test(e)?"docx":(/\.txt$/.test(e),"txt")}function R(n){return String(n??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}var Ke="border:1px solid #b9c2cf;border-radius:4px;padding:10px 14px;margin:12px 0;background:#fbfcfe",Qe="border:1px solid #b9c2cf;border-radius:4px;padding:10px 14px 10px 6px;margin:12px 0;background:#f7faff";function We(n){var e=String(n||""),i=/<body[^>]*>([\s\S]*?)<\/body>/i.exec(e);return i&&(e=i[1]),e=e.replace(/<!--\[if[\s\S]*?\[endif\]-->/gi,""),e=e.replace(/<!--[\s\S]*?-->/g,""),e=e.replace(/<\/?(o:p|o:|w:|xml|style|meta|link|title|head)[^>]*>/gi,""),e=e.replace(/<\\?\?xml[^>]*>/gi,""),e=e.replace(/\sstyle="[^"]*"/gi,function(t){var a=t.replace(/mso-[^;"]*;?/gi,"").replace(/style="\s*;*\s*"/i,"");return/style="\s*"/.test(a)||a===' style=""'?"":a}),e=e.replace(/\sclass="Mso[^"]*"/gi,""),e=e.replace(/\s(lang|xmlns(:\w+)?)="[^"]*"/gi,""),e}function $e(n,e){switch(e){case"md":return E&&typeof E.fromMarkdown=="function"?E.fromMarkdown(n,{apply:!1}):"<p>"+R(n).replace(/\n{2,}/g,"</p><p>").replace(/\n/g,"<br>")+"</p>";case"html":return n;case"doc":return We(n);default:var i=String(n).replace(/\r\n?/g,`
|
|
2
|
+
`).split(/\n{2,}/);return i.map(function(t){return"<p>"+R(t).replace(/\n/g,"<br>")+"</p>"}).join("")}}function Fe(n,e){return n==null?!1:e==="insert"&&typeof E.insertHTML=="function"?(E.insertHTML(n),!0):typeof E.setHTMLCode=="function"?(E.setHTMLCode(n,{undoable:!0}),!0):!1}function qe(n,e){var i=e.mode||F.documentImportMode||"replace";return new Promise(function(t){if(!n){t(!1);return}var a=Je(n.name);if(typeof F.documentImportResolver=="function")try{var v=F.documentImportResolver(n);Promise.resolve(v).then(function(p){typeof p=="string"?t(Fe(p,i)):l()},function(){l()});return}catch{l();return}l();function l(){if(a==="docx"){if(!et()){He(F&&F.text_imp_nounpack||"This browser can't unpack .docx (no DecompressionStream). Save as .doc/.html/.md, or wire config.documentImportResolver."),t(!1);return}it(n).then(function(A){A!=null?t(Fe(A,i)):(He(F&&F.text_imp_badfile||"Could not read this .docx file."),t(!1))},function(){He(F&&F.text_imp_badfile||"Could not read this .docx file."),t(!1)});return}if(typeof FileReader>"u"){t(!1);return}var p=new FileReader;p.onload=function(){var A=$e(p.result,a);t(Fe(A,i))},p.onerror=function(){t(!1)},p.readAsText(n)}})}function je(n){try{var e=document.createElement("input");return e.type="file",e.accept=n.accept||F.documentImportAccept||".md,.markdown,.html,.htm,.txt,.doc,.docx",e.style.position="fixed",e.style.left="-9999px",e.addEventListener("change",function(){var i=e.files&&e.files[0];i&&qe(i,n),setTimeout(function(){try{document.body.removeChild(e)}catch{}},0)}),document.body.appendChild(e),e.click(),!0}catch(i){return window.console&&console.error("documentimport: openPicker failed",i),!1}}function et(){return typeof DecompressionStream=="function"&&typeof DOMParser=="function"&&(typeof Response=="function"||typeof Blob=="function")}function mt(n,e){for(var i=new DataView(n.buffer,n.byteOffset,n.byteLength),t=-1,a=n.length-22;a>=0&&a>=n.length-22-65536;a--)if(i.getUint32(a,!0)===101010256){t=a;break}if(t<0)return null;for(var v=i.getUint32(t+16,!0),l=i.getUint16(t+10,!0),p=v,A=0;A<l&&i.getUint32(p,!0)===33639248;A++){var x=i.getUint16(p+10,!0),d=i.getUint32(p+20,!0),r=i.getUint16(p+28,!0),m=i.getUint16(p+30,!0),b=i.getUint16(p+32,!0),g=i.getUint32(p+42,!0),I=te(n.subarray(p+46,p+46+r)).replace(/\\/g,"/");if(I===e){var _=new DataView(n.buffer,n.byteOffset+g,30),D=_.getUint16(26,!0),G=_.getUint16(28,!0),V=g+30+D+G;return{method:x,data:n.subarray(V,V+d)}}p+=46+r+m+b}return null}function te(n){try{return new TextDecoder("utf-8").decode(n)}catch{for(var e="",i=0;i<n.length;i++)e+=String.fromCharCode(n[i]);return e}}function tt(n){var e=new DecompressionStream("deflate-raw"),i=new Blob([n]);return new Response(i.stream().pipeThrough(e)).arrayBuffer().then(function(t){return new Uint8Array(t)})}function rt(n){for(var e=new DataView(n.buffer,n.byteOffset,n.byteLength),i=-1,t=n.length-22;t>=0&&t>=n.length-22-65536;t--)if(e.getUint32(t,!0)===101010256){i=t;break}if(i<0)return[];for(var a=e.getUint32(i+16,!0),v=e.getUint16(i+10,!0),l=a,p=[],A=0;A<v&&e.getUint32(l,!0)===33639248;A++){var x=e.getUint16(l+10,!0),d=e.getUint32(l+20,!0),r=e.getUint16(l+28,!0),m=e.getUint16(l+30,!0),b=e.getUint16(l+32,!0),g=e.getUint32(l+42,!0),I=te(n.subarray(l+46,l+46+r)).replace(/\\/g,"/"),_=new DataView(n.buffer,n.byteOffset+g,30),D=g+30+_.getUint16(26,!0)+_.getUint16(28,!0);p.push({name:I,method:x,data:n.subarray(D,D+d)}),l+=46+r+m+b}return p}function ie(n){return n.method===0?Promise.resolve(n.data):tt(n.data)}function at(n){var e=(n.split(".").pop()||"").toLowerCase();return e==="png"?"image/png":e==="jpg"||e==="jpeg"?"image/jpeg":e==="gif"?"image/gif":e==="bmp"?"image/bmp":e==="webp"?"image/webp":e==="svg"?"image/svg+xml":null}function nt(n,e){for(var i=32768,t="",a=0;a<n.length;a+=i)t+=String.fromCharCode.apply(null,n.subarray(a,a+i));return"data:"+e+";base64,"+btoa(t)}function it(n){var e=n.arrayBuffer?n.arrayBuffer():new Promise(function(i,t){var a=new FileReader;a.onload=function(){i(a.result)},a.onerror=t,a.readAsArrayBuffer(n)});return e.then(function(i){for(var t=new Uint8Array(i),a=rt(t),v={},l=0;l<a.length;l++)v[a[l].name]=a[l];if(!v["word/document.xml"])return null;var p={rels:{},numbering:{},media:{},footnotes:{},endnotes:{},comments:{},diagrams:{},vectorNames:{}},A=F.documentImportImages!==!1,x=[ie(v["word/document.xml"]).then(function(m){p.documentXml=te(m)})];v["word/_rels/document.xml.rels"]&&x.push(ie(v["word/_rels/document.xml.rels"]).then(function(m){p.rels=ot(te(m))})),v["word/styles.xml"]&&x.push(ie(v["word/styles.xml"]).then(function(m){var b=/<w:docDefaults>[\s\S]*?<w:lang[^>]*w:val="([^"]+)"/.exec(te(m));b&&(p.defaultLang=b[1].toLowerCase())})),v["word/numbering.xml"]&&x.push(ie(v["word/numbering.xml"]).then(function(m){p.numbering=ft(te(m))})),v["word/footnotes.xml"]&&x.push(ie(v["word/footnotes.xml"]).then(function(m){p.footnotes=ze(te(m),"footnote")})),v["word/endnotes.xml"]&&x.push(ie(v["word/endnotes.xml"]).then(function(m){p.endnotes=ze(te(m),"endnote")})),v["word/comments.xml"]&&x.push(ie(v["word/comments.xml"]).then(function(m){p.comments=ut(te(m))}));for(var d=0;d<a.length;d++)(function(m){/^word\/diagrams\/data\d*\.xml$/.test(m.name)&&x.push(ie(m).then(function(b){try{p.diagrams[m.name]=lt(te(b))}catch{}}))})(a[d]);if(A)for(var r=0;r<a.length;r++)(function(m){if(m.name.indexOf("word/media/")===0){var b=at(m.name);b&&x.push(ie(m).then(function(g){try{p.media[m.name]=nt(g,b)}catch{}}))}})(a[r]);return Promise.all(x).then(function(){return pt(p.documentXml,p)})})}function ot(n){var e={};try{for(var i=new DOMParser().parseFromString(n,"application/xml"),t=i.getElementsByTagName("*"),a=0;a<t.length;a++)if(t[a].localName==="Relationship"){var v=t[a].getAttribute("Id"),l=t[a].getAttribute("Target"),p=t[a].getAttribute("TargetMode");v&&l&&(e[v]={target:l,external:p==="External"})}}catch{}return e}function ze(n,e){var i={};try{for(var t="http://schemas.openxmlformats.org/wordprocessingml/2006/main",a=new DOMParser().parseFromString(n,"application/xml"),v=a.getElementsByTagNameNS(t,e||"footnote"),l=0;l<v.length;l++){var p=v[l],A=p.getAttributeNS(t,"type")||p.getAttribute("w:type")||"";if(!A){var x=p.getAttributeNS(t,"id")||p.getAttribute("w:id");if(x!=null){var d=(p.textContent||"").replace(/\s+/g," ").trim();d&&(i[String(x)]=d)}}}}catch{}return i}function ut(n){var e={};try{for(var i="http://schemas.openxmlformats.org/wordprocessingml/2006/main",t=new DOMParser().parseFromString(n,"application/xml"),a=t.getElementsByTagNameNS(i,"comment"),v=0;v<a.length;v++){var l=a[v],p=l.getAttributeNS(i,"id")||l.getAttribute("w:id");p!=null&&(e[String(p)]={text:(l.textContent||"").replace(/\s+/g," ").trim(),author:l.getAttributeNS(i,"author")||l.getAttribute("w:author")||""})}}catch{}return e}function lt(n){var e=[];try{for(var i="http://schemas.openxmlformats.org/drawingml/2006/diagram",t=new DOMParser().parseFromString(n,"application/xml"),a=t.getElementsByTagNameNS(i,"pt"),v=0;v<a.length;v++){var l=a[v].getAttribute("type")||"";if(!(l==="pres"||l==="parTrans"||l==="sibTrans")){var p=a[v].getElementsByTagNameNS(i,"t")[0];if(p){var A=(p.textContent||"").replace(/\s+/g," ").trim();A&&e.push(A)}}}}catch{}return e}function ft(n){var e={};try{let M=function(j){return j&&(j.getAttributeNS(i,"val")||j.getAttribute("w:val"))||""};for(var P=M,i="http://schemas.openxmlformats.org/wordprocessingml/2006/main",t=new DOMParser().parseFromString(n,"application/xml"),a={},v=t.getElementsByTagNameNS(i,"abstractNum"),l=0;l<v.length;l++){for(var p=v[l].getAttributeNS(i,"abstractNumId")||v[l].getAttribute("w:abstractNumId"),A={},x=v[l].getElementsByTagNameNS(i,"lvl"),d=0;d<x.length;d++){var r=x[d].getAttributeNS(i,"ilvl")||x[d].getAttribute("w:ilvl")||"0",m=M(x[d].getElementsByTagNameNS(i,"numFmt")[0]);A[r]=m||"decimal";var b=x[d].getElementsByTagNameNS(i,"start")[0];b&&(A["s"+r]=parseInt(M(b),10)||1)}p!=null&&(a[p]=A)}for(var g=t.getElementsByTagNameNS(i,"num"),I=0;I<g.length;I++){var _=g[I].getAttributeNS(i,"numId")||g[I].getAttribute("w:numId"),D=g[I].getElementsByTagNameNS(i,"abstractNumId")[0],G=M(D);if(_!=null&&a[G]){var V={};for(var we in a[G])V[we]=a[G][we];for(var J=g[I].getElementsByTagNameNS(i,"lvlOverride"),X=0;X<J.length;X++){var de=J[X].getAttributeNS(i,"ilvl")||J[X].getAttribute("w:ilvl")||"0",oe=J[X].getElementsByTagNameNS(i,"startOverride")[0];oe&&(V["s"+de]=parseInt(M(oe),10)||1)}e[_]=V}}}catch{}return e}var Oe="http://schemas.openxmlformats.org/officeDocument/2006/math",Ve={"\u2211":"\\sum","\u220F":"\\prod","\u2210":"\\coprod","\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u22C3":"\\bigcup","\u22C2":"\\bigcap","\xB1":"\\pm","\u2213":"\\mp","\xD7":"\\times","\xF7":"\\div","\u2212":"-","\u2260":"\\neq","\u2264":"\\leq","\u2265":"\\geq","\u2248":"\\approx","\u2261":"\\equiv","\u221D":"\\propto","\u221E":"\\infty","\u2202":"\\partial","\u2207":"\\nabla","\u221A":"\\sqrt","\u2220":"\\angle","\u22C5":"\\cdot","\u2026":"\\dots","\u2192":"\\to","\u2190":"\\leftarrow","\u21D2":"\\Rightarrow","\u21D4":"\\Leftrightarrow","\u2208":"\\in","\u2209":"\\notin","\u2282":"\\subset","\u2286":"\\subseteq","\u222A":"\\cup","\u2229":"\\cap","\u2205":"\\emptyset","\u2200":"\\forall","\u2203":"\\exists","\xAC":"\\neg","\u2227":"\\land","\u2228":"\\lor","\u2234":"\\therefore",\u03B1:"\\alpha",\u03B2:"\\beta",\u03B3:"\\gamma",\u03B4:"\\delta",\u03B5:"\\epsilon",\u03B6:"\\zeta",\u03B7:"\\eta",\u03B8:"\\theta",\u03B9:"\\iota",\u03BA:"\\kappa",\u03BB:"\\lambda",\u03BC:"\\mu",\u03BD:"\\nu",\u03BE:"\\xi",\u03C0:"\\pi",\u03C1:"\\rho",\u03C3:"\\sigma",\u03C4:"\\tau",\u03C5:"\\upsilon",\u03C6:"\\varphi",\u03C7:"\\chi",\u03C8:"\\psi",\u03C9:"\\omega",\u0393:"\\Gamma",\u0394:"\\Delta",\u0398:"\\Theta",\u039B:"\\Lambda",\u039E:"\\Xi",\u03A0:"\\Pi",\u03A3:"\\Sigma",\u03A6:"\\Phi",\u03A8:"\\Psi",\u03A9:"\\Omega"},st={"\u0302":"\\hat","\u0303":"\\tilde","\u0304":"\\bar","\u0305":"\\overline","\u0306":"\\breve","\u0307":"\\dot","\u0308":"\\ddot","\u030A":"\\mathring","\u030C":"\\check","\u2192":"\\vec","\u20D7":"\\vec","\u0301":"\\acute","\u0300":"\\grave"};function ct(n){var e=Oe;function i(r,m){for(var b=0;b<r.childNodes.length;b++){var g=r.childNodes[b];if(g.nodeType===1&&g.localName===m)return g.getAttributeNS(e,"val")||g.getAttribute("m:val")||""}return""}function t(r,m,b){var g=a(r,m);return g?i(g,b):""}function a(r,m){for(var b=0;b<r.childNodes.length;b++){var g=r.childNodes[b];if(g.nodeType===1&&g.localName===m&&g.namespaceURI===e)return g}return null}function v(r,m){for(var b=[],g=0;g<r.childNodes.length;g++){var I=r.childNodes[g];I.nodeType===1&&I.localName===m&&I.namespaceURI===e&&b.push(I)}return b}function l(r){return"{"+(r?x(r).trim():"")+"}"}function p(r){var m=r?x(r).trim():"";return/^[A-Za-z0-9]$/.test(m)||/^\\[A-Za-z]+$/.test(m)?m:"{"+m+"}"}function A(r){for(var m="",b=0;b<r.length;b++){var g=r.charAt(b),I=Ve[g];if(I){m+=I+" ";continue}if("#$%&_{}".indexOf(g)>=0){m+="\\"+g;continue}if(g==="\\"){m+="\\backslash ";continue}m+=g}return m}function x(r){for(var m="",b=0;b<r.childNodes.length;b++){var g=r.childNodes[b];if(g.nodeType===1){if(g.namespaceURI!==e){m+=A(g.textContent||"");continue}m+=d(g)}}return m}function d(r){var m=r.localName;switch(m){case"oMath":case"oMathPara":case"e":case"num":case"den":case"sub":case"sup":case"deg":case"lim":case"fName":return x(r);case"rPr":case"ctrlPr":case"fPr":case"radPr":case"naryPr":case"dPr":case"sSupPr":case"sSubPr":case"sSubSupPr":case"accPr":case"barPr":case"funcPr":case"mPr":case"limLowPr":case"limUppPr":case"groupChrPr":case"mcPr":case"eqArrPr":case"boxPr":case"borderBoxPr":case"phantPr":case"sPrePr":return"";case"r":return A(r.textContent||"");case"t":return A(r.textContent||"");case"f":{var b=t(r,"fPr","type"),g=l(a(r,"num")),I=l(a(r,"den"));return b==="noBar"?"\\binom"+g+I:b==="skw"||b==="lin"?g+"/"+I:"\\frac"+g+I}case"sSup":return p(a(r,"e"))+"^"+l(a(r,"sup"));case"sSub":return p(a(r,"e"))+"_"+l(a(r,"sub"));case"sSubSup":return p(a(r,"e"))+"_"+l(a(r,"sub"))+"^"+l(a(r,"sup"));case"sPre":return"{}_"+l(a(r,"sub"))+"^"+l(a(r,"sup"))+l(a(r,"e"));case"rad":{var _=t(r,"radPr","degHide"),D=a(r,"deg"),G=l(a(r,"e"));return _==="1"||_==="on"||_==="true"||!D||!(D.textContent||"").trim()?"\\sqrt"+G:"\\sqrt["+x(D)+"]"+G}case"nary":{var V=t(r,"naryPr","chr")||"\u222B",we=Ve[V]||A(V),J=t(r,"naryPr","subHide"),X=t(r,"naryPr","supHide"),de=we;J!=="1"&&J!=="on"&&a(r,"sub")&&(de+="_"+l(a(r,"sub"))),X!=="1"&&X!=="on"&&a(r,"sup")&&(de+="^"+l(a(r,"sup")));var oe=a(r,"e");return de+" "+(oe?x(oe).trim():"")}case"d":{let K=function($,ke){if(!$)return ke==="l"?"\\left.":"\\right.";if($==="{"||$==="}")return"\\"+$;if($==="|")return"|";if($==="\u2016")return"\\|";var ue=$.charCodeAt(0);return ue===10216||ue===12296||ue===9001?"\\langle":ue===10217||ue===12297||ue===9002?"\\rangle":$==="\u230A"?"\\lfloor":$==="\u230B"?"\\rfloor":$==="\u2308"?"\\lceil":$==="\u2309"?"\\rceil":$};var Xe=K,P=t(r,"dPr","begChr"),M=t(r,"dPr","endChr"),j=t(r,"dPr","sepChr")||"|";P===""&&(P="("),M===""&&(M=")");for(var ce=v(r,"e"),z=[],ge=0;ge<ce.length;ge++)z.push(x(ce[ge]));return"\\left"+K(P,"l")+z.join(" "+K(j,"m")+" ")+"\\right"+K(M,"r")}case"func":{var L=x(a(r,"fName")).trim(),Ee=/^(sin|cos|tan|cot|sec|csc|sinh|cosh|tanh|log|ln|lg|exp|lim|max|min|det|dim|gcd|arg|deg|hom|ker|Pr|sup|inf)$/,N=Ee.test(L)?"\\"+L:L?"\\operatorname{"+L+"}":"";return N+l(a(r,"e"))}case"limLow":{var k=x(a(r,"e")).trim();return k==="lim"||k==="\\lim"?"\\lim_"+l(a(r,"lim")):"\\underset"+l(a(r,"lim"))+"{"+k+"}"}case"limUpp":return"\\overset"+l(a(r,"lim"))+l(a(r,"e"));case"acc":{var ye=t(r,"accPr","chr")||"\u0302",Ae=st[ye]||"\\hat";return Ae+l(a(r,"e"))}case"bar":return(t(r,"barPr","pos")==="bot"?"\\underline":"\\overline")+l(a(r,"e"));case"groupChr":{var Se=t(r,"groupChrPr","chr");return Se==="\u23DF"?"\\underbrace"+l(a(r,"e")):"\\overbrace"+l(a(r,"e"))}case"borderBox":return"\\boxed"+l(a(r,"e"));case"box":case"phant":return x(r);case"m":{for(var Re=v(r,"mr"),Pe=[],O=0;O<Re.length;O++){for(var pe=v(Re[O],"e"),Ie=[],Ce=0;Ce<pe.length;Ce++)Ie.push(x(pe[Ce]));Pe.push(Ie.join(" & "))}return"\\begin{matrix}"+Pe.join(" \\\\ ")+"\\end{matrix}"}case"eqArr":{for(var Be=v(r,"e"),Me=[],Te=0;Te<Be.length;Te++)Me.push(x(Be[Te]));return"\\begin{aligned}"+Me.join(" \\\\ ")+"\\end{aligned}"}default:return x(r)}}try{return d(n).replace(/\s+/g," ").trim()}catch{return(n.textContent||"").trim()}}function pt(n,e){e=e||{rels:{},numbering:{},media:{}},e.diagrams||(e.diagrams={});var i=new DOMParser().parseFromString(n,"application/xml"),t="http://schemas.openxmlformats.org/wordprocessingml/2006/main",a="http://schemas.openxmlformats.org/officeDocument/2006/relationships";function v(s){if(!s)return null;var u=s.getAttributeNS(a,"id")||s.getAttribute("r:id")||s.getAttributeNS(a,"embed")||s.getAttribute("r:embed");return u&&e.rels[u]||null}function l(s){for(var u=s.getElementsByTagName("*"),o="",f=0,h=0,S=0;S<u.length;S++){var c=u[S],T=c.localName;if(T==="docPr")o=c.getAttribute("descr")||c.getAttribute("title")||"";else if(T==="extent"&&!f)f=Math.round((parseInt(c.getAttribute("cx"),10)||0)*96/914400),h=Math.round((parseInt(c.getAttribute("cy"),10)||0)*96/914400);else if(T==="shape"&&!f){var w=c.getAttribute("style")||"",y=/width:\s*([\d.]+)pt/.exec(w),H=/height:\s*([\d.]+)pt/.exec(w);y&&H&&(f=Math.round(parseFloat(y[1])*96/72),h=Math.round(parseFloat(H[1])*96/72)),o||(o=c.getAttribute("alt")||"")}}return' alt="'+R(o).replace(/"/g,""")+'"'+(f>0&&h>0?' width="'+f+'" height="'+h+'"':"")}function p(s){for(var u=s.getElementsByTagName("*"),o=0;o<u.length;o++)if(!(u[o].localName!=="blip"&&u[o].localName!=="imagedata")){var f=v(u[o]);if(f){var h=f.target.replace(/^\.\//,""),S=h.indexOf("word/")===0?h:"word/"+h,c=e.media[S];if(c)return'<img src="'+c+'"'+l(s)+">";if(f.external)return'<img src="'+R(f.target)+'"'+l(s)+">";if(/\.(wmf|emf|emz|wmz)$/i.test(h)){var T=h.split("/").pop();return g('<p class="rte-imported-unsupported" data-source="'+R(T)+'"><em>[Unsupported image: '+R(T)+" \u2014 Windows metafiles have no browser-renderable form]</em></p>"),""}}}return g(A(s)),""}function A(s){for(var u=s.getElementsByTagName("*"),o=0;o<u.length;o++)if(u[o].localName==="relIds"){var f=u[o].getAttributeNS(a,"dm")||u[o].getAttribute("r:dm"),h=f?e.rels[f]:null;if(h){var S=h.target.replace(/^\.\//,""),c=S.indexOf("word/")===0?S:"word/"+S,T=e.diagrams[c];if(!(!T||!T.length)){for(var w="",y=0;y<T.length;y++)w+="<li>"+R(T[y])+"</li>";return'<div class="rte-imported-smartart" style="'+Qe+'"><ul>'+w+"</ul></div>"}}}return""}function x(s,u){return s.getElementsByTagNameNS(t,u)}function d(s,u){for(var o=0;o<s.childNodes.length;o++){var f=s.childNodes[o];if(f.nodeType===1&&f.localName===u&&f.namespaceURI===t)return f}return null}function r(s){for(var u="",o=s.childNodes,f=0;f<o.length;f++){var h=o[f];h.nodeType===1&&(h.localName==="t"||h.localName==="delText"?u+=h.textContent||"":h.localName==="tab"?u+=" ":h.localName==="br"&&(h.getAttributeNS(t,"type")||h.getAttribute("w:type"))==="page"?u+="\f":(h.localName==="br"||h.localName==="cr")&&(u+=`
|
|
3
|
+
`))}return u}function m(s){for(var u="",o=0;o<s.childNodes.length;o++){var f=s.childNodes[o];if(f.nodeType===1&&(f.localName==="drawing"||f.localName==="pict")&&(u+=p(f)),f.nodeType===1&&f.localName==="footnoteReference"){var h=f.getAttributeNS(t,"id")||f.getAttribute("w:id"),S=h!=null?e.footnotes[String(h)]:null;S&&(u+=V(S))}if(f.nodeType===1&&f.localName==="endnoteReference"){var c=f.getAttributeNS(t,"id")||f.getAttribute("w:id"),T=c!=null?e.endnotes[String(c)]:null;T&&(u+=V(T))}f.nodeType===1&&(f.localName==="pict"||f.localName==="drawing"||f.localName==="object"||f.localName==="AlternateContent")&&I(f)}var w=R(r(s));if(!w)return u;w=w.replace(/\n/g,"<br>");var y=d(s,"rPr");if(y){let be=function(Ne){var _e=Ne.getAttributeNS(t,"val")||Ne.getAttribute("w:val")||"";return!/^(0|false|off)$/.test(_e)};var De=be;d(y,"b")&&(w="<strong>"+w+"</strong>"),d(y,"i")&&(w="<em>"+w+"</em>"),d(y,"u")&&(w="<u>"+w+"</u>"),d(y,"strike")&&(w="<s>"+w+"</s>");var H=d(y,"vertAlign");if(H){var U=H.getAttributeNS(t,"val")||H.getAttribute("w:val")||"";U==="superscript"?w="<sup>"+w+"</sup>":U==="subscript"&&(w="<sub>"+w+"</sub>")}var C="",B=d(y,"color");if(B){var re=B.getAttributeNS(t,"val")||B.getAttribute("w:val")||"";re&&/^[0-9A-Fa-f]{6}$/.test(re)&&(C+="color:#"+re+";")}var Z=d(y,"highlight");if(Z){var Q=Z.getAttributeNS(t,"val")||Z.getAttribute("w:val")||"";Q&&Q!=="none"&&(C+="background-color:"+Q+";")}var le=d(y,"shd");if(le){var q=le.getAttributeNS(t,"fill")||le.getAttribute("w:fill")||"";q&&/^[0-9A-Fa-f]{6}$/.test(q)&&(C+="background-color:#"+q+";")}var W=d(y,"rFonts");if(W){var ae=W.getAttributeNS(t,"ascii")||W.getAttribute("w:ascii")||"";/consolas|courier|monospace|mono$/i.test(ae)?w="<code>"+w+"</code>":ae&&(C+="font-family:"+ae.replace(/[<>"]/g,"")+";")}var ne=d(y,"sz");if(ne){var fe=parseInt(ne.getAttributeNS(t,"val")||ne.getAttribute("w:val")||"",10);fe>0&&(C+="font-size:"+fe/2+"pt;")}var ee=d(y,"smallCaps"),me=d(y,"caps");ee&&be(ee)&&(C+="font-variant:small-caps;"),me&&be(me)&&(C+="text-transform:uppercase;");var ve=d(y,"spacing");if(ve){var Ue=parseInt(ve.getAttributeNS(t,"val")||ve.getAttribute("w:val")||"",10);Ue&&(C+="letter-spacing:"+Math.round(Ue/15*100)/100+"px;")}var he=d(y,"lang"),Y="";he&&(Y=(he.getAttributeNS(t,"val")||he.getAttribute("w:val")||"").replace(/[^A-Za-z0-9-]/g,""),(e.defaultLang?Y.toLowerCase()===e.defaultLang:/^en(-|$)/i.test(Y))&&(Y="")),(C||Y)&&(w="<span"+(Y?' lang="'+Y+'"':"")+(C?' style="'+C+'"':"")+">"+w+"</span>")}return u+w}var b=[];function g(s){s&&b.indexOf(s)<0&&b.push(s)}function I(s){for(var u=s.getElementsByTagName("*"),o=0;o<u.length;o++)if(u[o].localName==="txbxContent"){for(var f="",h=u[o].childNodes,S=0;S<h.length;S++){var c=h[S];if(c.nodeType===1)if(c.localName==="p"){var T=X(c);T&&(f+="<p>"+T+"</p>")}else c.localName==="tbl"&&(f+=Ge(c))}f&&g('<div class="rte-imported-textbox" style="'+Ke+'">'+f+"</div>")}}function _(){if(!b.length)return"";var s=b.join("");return b=[],s}var D=[];function G(s){var u=ct(s);if(!u)return"";var o=s.localName==="oMathPara";return'<span class="rte-math-inline'+(o?" rte-math-display":"")+'" data-tex="'+R(u)+'">'+R(u)+"</span>"}function V(s){var u="fnimp"+(D.length+1);D.push({id:u,text:s});var o=D.length;return'<sup class="rte-fn-ref" data-fn-id="'+u+'" data-fn-number="'+o+'" id="fnref-'+u+'" contenteditable="false">'+o+"</sup>"}function we(){if(!D.length)return"";for(var s="",u=0;u<D.length;u++){var o=D[u];s+='<li class="rte-fn-note" data-fn-id="'+o.id+'" data-fn-number="'+(u+1)+'" id="fn-'+o.id+'">'+R(o.text)+'<a class="rte-fn-back" data-fn-id="'+o.id+'" href="#fnref-'+o.id+'" contenteditable="false" title="Back to reference">\u21A9</a></li>'}return'<section class="rte-footnotes"><h2 class="rte-fn-title">Footnotes</h2><ol class="rte-fn-list" data-numbering="decimal">'+s+"</ol></section>"}function J(s,u){for(var o="",f=0;f<s.childNodes.length;f++){var h=s.childNodes[f];h.nodeType===1&&(h.localName==="r"?o+=m(h):h.localName==="ins"?o+=J(h,"ins"):h.localName==="del"&&(o+=J(h,"del")))}if(!o)return"";var S=s.getAttributeNS(t,"author")||s.getAttribute("w:author")||"",c=s.getAttributeNS(t,"date")||s.getAttribute("w:date")||"";return"<"+u+(S?' data-author="'+R(S)+'"':"")+(c?' data-date="'+R(c)+'"':"")+">"+o+"</"+u+">"}function X(s){var u="",o=s.childNodes,f=[];function h(C){var B=e.comments[String(C)];return B?(f.push(C),'<span data-comment="'+R(B.text)+'"'+(B.author?' data-comment-author="'+R(B.author)+'"':"")+">"):""}for(var S=0;S<o.length;S++){var c=o[S];if(c.nodeType===1&&c.localName==="commentRangeStart"){u+=h(c.getAttributeNS(t,"id")||c.getAttribute("w:id"));continue}if(c.nodeType===1&&c.localName==="commentRangeEnd"){f.length&&(f.pop(),u+="</span>");continue}if(c.nodeType===1&&(c.localName==="ins"||c.localName==="del")&&c.namespaceURI===t){u+=J(c,c.localName);continue}if(c.nodeType===1&&c.namespaceURI===Oe&&(c.localName==="oMath"||c.localName==="oMathPara")){u+=G(c);continue}if(c.nodeType===1&&c.localName==="r"&&c.namespaceURI===t)u+=m(c);else if(c.nodeType===1&&c.localName==="hyperlink"){for(var T="",w=0;w<c.childNodes.length;w++)c.childNodes[w].localName==="r"&&(T+=m(c.childNodes[w]));var y=v(c),H=c.getAttributeNS(t,"anchor")||c.getAttribute("w:anchor"),U=y?y.target:H?"#"+H:null;u+=U?'<a href="'+R(U)+'">'+(T||R(U))+"</a>":T}}for(;f.length;)f.pop(),u+="</span>";return u}function de(s){var u=d(s,"pPr");if(!u)return{};var o={},f=d(u,"pStyle");if(f){var h=f.getAttributeNS(t,"val")||f.getAttribute("w:val")||"",S=/heading(\d)/i.exec(h);S?o.heading=Math.min(6,parseInt(S[1],10)):/^(intense)?quote$|blockquote/i.test(h.replace(/\s+/g,""))?o.quote=!0:/^(code|sourcecode|htmlpre|preformatted)$/i.test(h.replace(/\s+/g,""))&&(o.pre=!0)}var c=d(u,"pBdr");c&&d(c,"bottom")&&(o.rule=!0);var T=d(u,"numPr");if(T){o.list=!0;var w=d(T,"ilvl"),y=d(T,"numId");o.level=parseInt(w&&(w.getAttributeNS(t,"val")||w.getAttribute("w:val"))||"0",10)||0;var H=y&&(y.getAttributeNS(t,"val")||y.getAttribute("w:val"))||"",U=e.numbering[H],C=U?U[String(o.level)]:null;o.ordered=!!C&&C!=="bullet"&&C!=="none",o.numId=H,o.start=U&&U["s"+o.level]||1,o.listStyle={lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman"}[C]||""}var B=d(u,"ind");if(B){var re=B.getAttributeNS(t,"left")||B.getAttribute("w:left")||"",Z=parseInt(re,10);Z>0&&!(o.quote&&Z===720)&&(o.indentPx=Math.round(Z/15));var Q=parseInt(B.getAttributeNS(t,"firstLine")||B.getAttribute("w:firstLine")||"",10),le=parseInt(B.getAttributeNS(t,"hanging")||B.getAttribute("w:hanging")||"",10);le>0?o.textIndentPx=-Math.round(le/15):Q>0&&(o.textIndentPx=Math.round(Q/15))}var q=d(u,"spacing");if(q){var W=parseInt(q.getAttributeNS(t,"line")||q.getAttribute("w:line")||"",10),ae=q.getAttributeNS(t,"lineRule")||q.getAttribute("w:lineRule")||"auto";W>0&&!(ae==="auto"&&W===240)&&(o.lineHeight=ae==="auto"?String(Math.round(W/240*100)/100):Math.round(W/15)+"px")}var ne=d(u,"bidi");ne&&!/^(0|false|off)$/.test(ne.getAttributeNS(t,"val")||ne.getAttribute("w:val")||"")&&(o.rtl=!0),d(u,"pageBreakBefore")&&(o.pageBreakBefore=!0);var fe=d(u,"jc");if(fe){var ee=fe.getAttributeNS(t,"val")||fe.getAttribute("w:val")||"";(ee==="center"||ee==="right"||ee==="both")&&(o.align=ee==="both"?"justify":ee)}return o}var oe=x(i,"body")[0];if(!oe)return"";var P=[],M=[],j=[],ce={};function z(s){for(;M.length>s;){var u=M.length-1;j[u]&&(P.push("</li>"),j[u]=!1),P.push("</"+M.pop()+">"),j.pop()}}for(var ge=0;ge<oe.childNodes.length;ge++){var L=oe.childNodes[ge];if(L.nodeType===1){if(L.namespaceURI===Oe&&(L.localName==="oMathPara"||L.localName==="oMath")){z(0);var Ee=G(L);Ee&&P.push("<p>"+Ee+"</p>");continue}if(L.namespaceURI===t)if(L.localName==="p"){var N=de(L),k=X(L);if(N.pageBreakBefore&&(z(0),P.push(Ye())),k&&k.indexOf("\f")!==-1)if(!N.list&&!N.heading&&!N.pre&&!N.quote){var ye=k.split("\f");k=ye.pop(),z(0);for(var Ae=0;Ae<ye.length;Ae++)ye[Ae].replace(/<[^>]*>/g,"").trim()&&P.push("<p>"+ye[Ae]+"</p>"),P.push(Ye())}else k=k.split("\f").join("");var Se=!N.list&&!N.heading&&k&&/^((?:<[^>]+>)*)\s*([\u2610\u2611\u2612])[\s\u00a0]?/.exec(k);if(Se){z(0);var Re=Se[1]+k.slice(Se[0].length);P.push('<ul class="rte-task-list"><li class="rte-task-item" data-checked="'+(Se[2]==="\u2610"?"false":"true")+'"><span class="rte-task-checkbox" contenteditable="false"></span>'+(Re||"<br>")+"</li></ul>");var Pe=_();Pe&&P.push(Pe);continue}if(N.list){var O=(N.level||0)+1,pe=N.ordered?"ol":"ul";for(M.length>O&&z(O),M.length===O&&M[O-1]!==pe&&z(O-1);M.length<O;){var Ie=pe==="ol"&&M.length===O-1?(N.start||1)+(ce[N.numId+":"+N.level]||0):1,Ce=(Ie!==1?' start="'+Ie+'"':"")+(pe==="ol"&&M.length===O-1&&N.listStyle?' style="list-style-type: '+N.listStyle+'"':"");P.push("<"+pe+Ce+">"),M.push(pe),j.push(!1)}if(j[O-1]&&(P.push("</li>"),j[O-1]=!1),N.ordered){var Be=N.numId+":"+N.level;ce[Be]=(ce[Be]||0)+1}for(var Me in ce){var Te=Me.split(":");Te[0]===String(N.numId)&&+Te[1]>N.level&&(ce[Me]=0)}P.push("<li>"+(k||"")),j[O-1]=!0;continue}if(z(0),N.rule&&!(k||"").replace(/<[^>]*>/g,"").trim()){z(0),P.push("<hr>");continue}if(N.pre){P.push("<pre>"+(k||"<br>")+"</pre>");continue}if(N.heading){var Xe=N.indentPx?' style="margin-left:'+N.indentPx+'px"':"";P.push("<h"+N.heading+Xe+">"+(k||"")+"</h"+N.heading+">")}else if(N.quote)P.push("<blockquote>"+(k||"<br>")+"</blockquote>");else{var K=[];N.align&&K.push("text-align:"+N.align),N.indentPx&&K.push("margin-left:"+N.indentPx+"px"),N.textIndentPx&&K.push("text-indent:"+N.textIndentPx+"px"),N.lineHeight&&K.push("line-height:"+N.lineHeight);var $=(N.rtl?' dir="rtl"':"")+(K.length?' style="'+K.join(";")+'"':""),ke=_();(k||!ke)&&P.push("<p"+$+">"+(k||"<br>")+"</p>"),ke&&P.push(ke)}}else L.localName==="tbl"&&(z(0),P.push(Ge(L)))}}z(0);var ue=_();ue&&P.push(ue);var Ze=we();return Ze&&P.push(Ze),P.join(`
|
|
4
|
+
`).replace(/<\/ul>\n<ul class="rte-task-list">/g,"");function Ye(){var s=E&&E.getLangText?E.getLangText("insertpagebreak"):"";return(!s||s==="insertpagebreak")&&(s="Page break"),'<div data-rte-page-break="true" contenteditable="false" style="position:relative;text-align:center;border-top:2px dashed #94a3b8;margin:18px 0 14px;padding:0;height:0;line-height:0;user-select:none;"><span style="position:relative;top:-0.75em;display:inline-block;padding:0 10px;background:#fff;color:#64748b;font-size:12px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase;line-height:1.6;">'+R(s)+"</span></div>"}function Ge(s){var u=[],o=s.childNodes,f={};function h(se){return se&&(se.getAttributeNS(t,"val")||se.getAttribute("w:val"))||""}for(var S=0;S<o.length;S++){var c=o[S];if(!(c.nodeType!==1||c.localName!=="tr")){for(var T=d(c,"trPr"),w=!!(T&&d(T,"tblHeader")),y=w?"th":"td",H=[],U=0,C=0;C<c.childNodes.length;C++){var B=c.childNodes[C];if(!(B.nodeType!==1||B.localName!=="tc")){var re=d(B,"tcPr"),Z=parseInt(h(re&&d(re,"gridSpan")),10)||1,Q=re&&d(re,"vMerge");if(Q&&h(Q)!=="restart"&&f[U]){f[U].rowspan++,U+=Z;continue}for(var le="",q=0;q<B.childNodes.length;q++)B.childNodes[q].localName==="p"&&(le+="<p>"+(X(B.childNodes[q])||"<br>")+"</p>");var W={tag:y,html:le,colspan:Z,rowspan:1};H.push(W);for(var ae=U;ae<U+Z;ae++)delete f[ae];Q&&h(Q)==="restart"&&(f[U]=W),U+=Z}}u.push(H)}}var ne="<table",fe="",ee=d(s,"tblPr"),me=ee&&d(ee,"tblW");if(me&&(me.getAttributeNS(t,"type")||me.getAttribute("w:type"))==="pct"){var ve=String(me.getAttributeNS(t,"w")||me.getAttribute("w:w")||""),Ue=/%$/.test(ve)?parseFloat(ve):parseFloat(ve)/50;Ue>0&&(ne+=' style="width:'+Math.round(Ue*10)/10+'%"')}var he=d(s,"tblGrid");if(he){for(var Y=[],De=0,be=0;be<he.childNodes.length;be++){var Ne=he.childNodes[be];if(!(Ne.nodeType!==1||Ne.localName!=="gridCol")){var _e=parseInt(Ne.getAttributeNS(t,"w")||Ne.getAttribute("w:w")||"",10)||0;Y.push(_e),De+=_e}}Y.length>1&&De>0&&Y.every(function(se){return se>0})&&(fe="<colgroup>"+Y.map(function(se){return'<col style="width:'+Math.round(se/De*1e3)/10+'%">'}).join("")+"</colgroup>")}return ne+">"+fe+u.map(function(se){return"<tr>"+se.map(function(xe){return"<"+xe.tag+(xe.colspan>1?' colspan="'+xe.colspan+'"':"")+(xe.rowspan>1?' rowspan="'+xe.rowspan+'"':"")+">"+xe.html+"</"+xe.tag+">"}).join("")+"</tr>"}).join("")+"</table>"}}function He(n){try{if(E&&typeof E.createDialog=="function"){var e=E.createDialog(F&&F.text_importtitle||"Import document","rte-dialog-import"),i=e.ownerDocument.createElement("div");i.style.cssText="padding:16px;max-width:420px;font:13px -apple-system,Segoe UI,sans-serif;line-height:1.5",i.textContent=n,e.appendChild(i);return}}catch{}window.console&&console.warn("documentimport:",n)}}
|
|
@@ -15,19 +15,35 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
15
15
|
|
|
16
16
|
obj.PluginName = "DocumentOutline";
|
|
17
17
|
|
|
18
|
+
// 2026-10-18 the words read config.text_ keys (language packs), English as the fallback; {0} fills a template.
|
|
19
|
+
// tools/i18n/plugin-panels-language.mjs
|
|
20
|
+
function pText(key, fallback, arg) {
|
|
21
|
+
var s = (config && config["text_" + key]) || fallback;
|
|
22
|
+
return arg === undefined ? s : s.split("{0}").join(String(arg));
|
|
23
|
+
}
|
|
18
24
|
obj.InitConfig = function (argconfig) {
|
|
19
25
|
config = argconfig;
|
|
20
26
|
if (config.documentOutlineEnabled === false) return;
|
|
21
27
|
|
|
22
|
-
config.documentOutlineTitle = config.documentOutlineTitle || "Outline";
|
|
23
|
-
config.documentOutlineHint = config.documentOutlineHint || "Browse headings and jump through long documents without leaving the editor.";
|
|
24
|
-
config.documentOutlineEmptyText = config.documentOutlineEmptyText || "Add headings to build the document outline.";
|
|
28
|
+
config.documentOutlineTitle = config.documentOutlineTitle || pText("ol_title", "Outline");
|
|
29
|
+
config.documentOutlineHint = config.documentOutlineHint || pText("ol_hint", "Browse headings and jump through long documents without leaving the editor.");
|
|
30
|
+
config.documentOutlineEmptyText = config.documentOutlineEmptyText || pText("ol_empty", "Add headings to build the document outline.");
|
|
25
31
|
if (typeof config.documentOutlineAutoOpen !== "boolean") config.documentOutlineAutoOpen = false;
|
|
26
32
|
if (typeof config.documentOutlineMinLevel !== "number") config.documentOutlineMinLevel = 1;
|
|
27
33
|
if (typeof config.documentOutlineMaxLevel !== "number") config.documentOutlineMaxLevel = 6;
|
|
28
34
|
|
|
29
35
|
appendToolbarCommand("toolbar_default", "#{documentoutline}");
|
|
30
36
|
appendToolbarCommand("toolbar_full", "#{documentoutline}");
|
|
37
|
+
// 2026-10-03 Build the shell NOW, before the editor creates its iframe. ensureShell() moves the
|
|
38
|
+
// editor container; done in InitEditor it moved the live iframe, which then gets a fresh
|
|
39
|
+
// document - and every plugin that had already bound listeners to the old one went deaf (the
|
|
40
|
+
// slash menu, @mentions and emoji autocomplete, until they moved to editor.bindDocumentEvent;
|
|
41
|
+
// customer plugins binding the document directly still were). Nothing is loaded yet here.
|
|
42
|
+
// InitEditor's own ensureShell() call finds the shell and returns it.
|
|
43
|
+
// tools/keyboard/plugin-listeners.mjs
|
|
44
|
+
if (config.documentOutlineEnabled !== false && config.container && config.container.parentNode) {
|
|
45
|
+
try { ensureShell(); } catch (e) { /* InitEditor builds it */ }
|
|
46
|
+
}
|
|
31
47
|
};
|
|
32
48
|
|
|
33
49
|
obj.InitEditor = function (argeditor) {
|
|
@@ -57,6 +73,9 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
57
73
|
editor.attachEvent("change", function () {
|
|
58
74
|
scheduleRefresh();
|
|
59
75
|
});
|
|
76
|
+
// 2026-10-18 setHTMLCode fires no "change": a replaced document left the panel on the old one.
|
|
77
|
+
// tools/outline/panels-follow-sethtml.mjs
|
|
78
|
+
try { editor.attachEvent("aftersethtml", function () { scheduleRefresh(); }); } catch (e) { /* older cores */ }
|
|
60
79
|
editor.attachEvent("selectionchange", function () {
|
|
61
80
|
updateActiveHeading();
|
|
62
81
|
});
|
|
@@ -96,6 +115,17 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
96
115
|
".rte-document-outline-item.is-active{background:#eef4ff;border-color:rgba(37,99,235,.26);color:#0f3f9f;box-shadow:0 8px 18px rgba(37,99,235,.1);}",
|
|
97
116
|
".rte-document-outline-item-level{display:inline-flex;margin:0 0 3px;padding:2px 6px;border-radius:999px;background:#fff;color:#64748b;font-size:10px;line-height:1.1;letter-spacing:.08em;text-transform:uppercase;font-weight:850;box-shadow:inset 0 0 0 1px rgba(148,163,184,.18);}",
|
|
98
117
|
".rte-document-outline-empty{margin:6px;padding:14px;color:#52657e;font-size:13px;font-weight:700;line-height:1.55;background:#fff;border:1px dashed rgba(148,163,184,.34);border-radius:8px;}",
|
|
118
|
+
".rte-document-outline-panel.rte-document-outline-dark{background:linear-gradient(180deg,#1e293b,#0f172a);border-color:#334155;color:#e2e8f0;box-shadow:0 18px 40px rgba(0,0,0,.45);}",
|
|
119
|
+
".rte-document-outline-dark .rte-document-outline-header,.rte-document-outline-dark .rte-document-outline-toolbar{background:rgba(15,23,42,.6);border-color:#334155;}",
|
|
120
|
+
".rte-document-outline-dark .rte-document-outline-kicker,.rte-document-outline-dark .rte-document-outline-copy,.rte-document-outline-dark .rte-document-outline-count{color:#94a3b8;}",
|
|
121
|
+
".rte-document-outline-dark .rte-document-outline-title{color:#f1f5f9;}",
|
|
122
|
+
".rte-document-outline-dark .rte-document-outline-close{background:#0f172a;color:#bfdbfe;border-color:#475569;}",
|
|
123
|
+
".rte-document-outline-dark .rte-document-outline-close:hover,.rte-document-outline-dark .rte-document-outline-close:focus-visible{background:#1e3a8a;color:#ffffff;}",
|
|
124
|
+
".rte-document-outline-dark .rte-document-outline-item{color:#e2e8f0;}",
|
|
125
|
+
".rte-document-outline-dark .rte-document-outline-item:hover,.rte-document-outline-dark .rte-document-outline-item:focus-visible{background:#1e293b;border-color:#475569;}",
|
|
126
|
+
".rte-document-outline-dark .rte-document-outline-item.is-active{background:#1e3a8a;border-color:#3b82f6;color:#ffffff;}",
|
|
127
|
+
".rte-document-outline-dark .rte-document-outline-item-level{background:#0f172a;color:#cbd5e1;}",
|
|
128
|
+
".rte-document-outline-dark .rte-document-outline-empty{background:#0f172a;color:#94a3b8;border-color:#475569;}",
|
|
99
129
|
"@media (max-width: 1100px){.rte-document-outline-shell{display:block;}.rte-document-outline-panel{margin-top:12px;max-width:none;width:100%;}.rte-document-outline-body{max-height:320px;}}"
|
|
100
130
|
].join("");
|
|
101
131
|
var style = hostDoc.createElement("style");
|
|
@@ -133,7 +163,7 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
133
163
|
header.className = "rte-document-outline-header";
|
|
134
164
|
var kicker = hostDoc.createElement("div");
|
|
135
165
|
kicker.className = "rte-document-outline-kicker";
|
|
136
|
-
kicker.innerText = "Document";
|
|
166
|
+
kicker.innerText = pText("pn_document", "Document");
|
|
137
167
|
var title = hostDoc.createElement("div");
|
|
138
168
|
title.className = "rte-document-outline-title";
|
|
139
169
|
title.innerText = config.documentOutlineTitle;
|
|
@@ -152,8 +182,8 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
152
182
|
var close = hostDoc.createElement("button");
|
|
153
183
|
close.type = "button";
|
|
154
184
|
close.className = "rte-document-outline-close";
|
|
155
|
-
close.innerText = "Hide";
|
|
156
|
-
close.setAttribute("aria-label", "Hide document outline");
|
|
185
|
+
close.innerText = pText("pn_hide", "Hide");
|
|
186
|
+
close.setAttribute("aria-label", pText("ol_hidearia", "Hide document outline"));
|
|
157
187
|
close.onclick = function () { closePanel(); };
|
|
158
188
|
toolbar.appendChild(count);
|
|
159
189
|
toolbar.appendChild(close);
|
|
@@ -180,8 +210,17 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
180
210
|
else openPanel();
|
|
181
211
|
}
|
|
182
212
|
|
|
213
|
+
// 2026-10-17 the panel sits beside the editor's element, so rte-dark could not reach it: mirrored (and
|
|
214
|
+
// rte-auto-dark under a dark system setting). tools/outline/outline-dark.mjs
|
|
215
|
+
function editorIsDark() {
|
|
216
|
+
try {
|
|
217
|
+
var k = editor.container && editor.container.classList;
|
|
218
|
+
return !!k && (k.contains("rte-dark") || (k.contains("rte-auto-dark") && !k.contains("rte-light") && !!(window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches)));
|
|
219
|
+
} catch (x) { return false; }
|
|
220
|
+
}
|
|
183
221
|
function openPanel() {
|
|
184
222
|
ensureShell();
|
|
223
|
+
if (panel && panel.classList) { if (editorIsDark()) panel.classList.add("rte-document-outline-dark"); else panel.classList.remove("rte-document-outline-dark"); }
|
|
185
224
|
shell.classList.add("is-open");
|
|
186
225
|
renderOutline();
|
|
187
226
|
}
|
|
@@ -224,36 +263,47 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
224
263
|
// valid and the pasted copy becomes "slug-2". Ids on non-heading elements are
|
|
225
264
|
// reserved too, so a heading never takes one. Every heading is checked, including
|
|
226
265
|
// levels the outline does not display, since they share one id namespace.
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
//
|
|
233
|
-
//
|
|
234
|
-
//
|
|
235
|
-
// and
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
266
|
+
//
|
|
267
|
+
// 2026-09-25 ...but only when the core does not own heading ids. With
|
|
268
|
+
// autoHeadingAnchors on (the default) the core pass gives every heading a unique id
|
|
269
|
+
// after each change, with the same first-keeps rule, and marks the ids it generated so
|
|
270
|
+
// they can follow the text. This block ran 80 ms after each change instead: a heading
|
|
271
|
+
// a person was typing got the slug of its FIRST letter ("Typed heading" -> id="t"),
|
|
272
|
+
// unmarked, so the core took it for the author's own id and kept it for good. The
|
|
273
|
+
// outline needs no id to work (it navigates by element), so it now leaves ids to the
|
|
274
|
+
// core and keeps this pass for integrations that switched core anchors off.
|
|
275
|
+
if (config.autoHeadingAnchors === false) {
|
|
276
|
+
var used = {};
|
|
277
|
+
var withId = editable.querySelectorAll("[id]");
|
|
278
|
+
for (i = 0; i < withId.length; i++) {
|
|
279
|
+
if (!/^H[1-6]$/.test(withId[i].nodeName)) used[withId[i].id] = true;
|
|
280
|
+
}
|
|
281
|
+
// Headings with text claim ids first. An EMPTY heading is usually the shell a cut
|
|
282
|
+
// leaves behind, still carrying the moved heading's id; letting it claim first would
|
|
283
|
+
// hand the moved heading "-2" and break every link to it. So empty headings go last
|
|
284
|
+
// and simply drop an id that a real heading already holds.
|
|
285
|
+
var textOf = function (el) {
|
|
286
|
+
return (el.innerText || el.textContent || "").replace(/\s+/g, " ").replace(/^\s+|\s+$/g, "");
|
|
287
|
+
};
|
|
288
|
+
var empties = [];
|
|
289
|
+
for (i = 0; i < headings.length; i++) {
|
|
290
|
+
var h = headings[i];
|
|
291
|
+
var t = textOf(h);
|
|
292
|
+
if (!t) { empties.push(h); continue; }
|
|
293
|
+
var base = h.id;
|
|
294
|
+
if (!base) base = slugifyHeading(t);
|
|
295
|
+
else if (!used[base]) { used[base] = true; continue; }
|
|
296
|
+
var unique = base;
|
|
297
|
+
var n = 2;
|
|
298
|
+
while (used[unique]) { unique = base + "-" + n; n++; }
|
|
299
|
+
used[unique] = true;
|
|
300
|
+
if (h.id !== unique) h.id = unique;
|
|
301
|
+
}
|
|
302
|
+
for (i = 0; i < empties.length; i++) {
|
|
303
|
+
if (!empties[i].id) continue;
|
|
304
|
+
if (used[empties[i].id]) empties[i].removeAttribute("id");
|
|
305
|
+
else used[empties[i].id] = true;
|
|
306
|
+
}
|
|
257
307
|
}
|
|
258
308
|
for (i = 0; i < headings.length; i++) {
|
|
259
309
|
var heading = headings[i];
|
|
@@ -266,7 +316,7 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
266
316
|
// every empty entry at once.
|
|
267
317
|
id: heading.id || ("__rte-outline-" + items.length),
|
|
268
318
|
level: level,
|
|
269
|
-
text: text || ("Heading "
|
|
319
|
+
text: text || pText("ol_heading", "Heading {0}", items.length + 1),
|
|
270
320
|
element: heading
|
|
271
321
|
});
|
|
272
322
|
}
|
|
@@ -354,7 +404,7 @@ function RTE_Plugin_DocumentOutline() {
|
|
|
354
404
|
while (list.firstChild) list.removeChild(list.firstChild);
|
|
355
405
|
|
|
356
406
|
var count = panel.querySelector("[data-rte-outline-count]");
|
|
357
|
-
if (count) count.innerText = items.length
|
|
407
|
+
if (count) count.innerText = items.length === 1 ? pText("ol_count1", "1 heading") : pText("ol_countn", "{0} headings", items.length);
|
|
358
408
|
empty.style.display = items.length ? "none" : "block";
|
|
359
409
|
|
|
360
410
|
for (var i = 0; i < items.length; i++) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.RTE_DefaultConfig||(window.RTE_DefaultConfig={}),RTE_DefaultConfig.plugin_documentoutline=RTE_Plugin_DocumentOutline;function RTE_Plugin_DocumentOutline(){var E=this,o,i,c=null,d=null,p=null,b=null,D=0,g="";E.PluginName="DocumentOutline",E.InitConfig=function(t){o=t,o.documentOutlineEnabled!==!1&&(o.documentOutlineTitle=o.documentOutlineTitle||"Outline",o.documentOutlineHint=o.documentOutlineHint||"Browse headings and jump through long documents without leaving the editor.",o.documentOutlineEmptyText=o.documentOutlineEmptyText||"Add headings to build the document outline.",typeof o.documentOutlineAutoOpen!="boolean"&&(o.documentOutlineAutoOpen=!1),typeof o.documentOutlineMinLevel!="number"&&(o.documentOutlineMinLevel=1),typeof o.documentOutlineMaxLevel!="number"&&(o.documentOutlineMaxLevel=6),L("toolbar_default","#{documentoutline}"),L("toolbar_full","#{documentoutline}"))},E.InitEditor=function(t){i=t,o.documentOutlineEnabled!==!1&&(i.documentOutline={close:function(){A()},list:function(){return N()},open:function(){T()},refresh:function(){y()},toggle:function(){H()}},I(),i.toolbarFactoryMap=i.toolbarFactoryMap||{},i.toolbarFactoryMap.documentoutline=function(e){return i.createToolbarButton(e)},i.attachEvent("exec_command_documentoutline",function(e){e.returnValue=!0,e.stopBubble=!0,H()}),i.attachEvent("change",function(){z()}),i.attachEvent("selectionchange",function(){$()}),O(),y(),o.documentOutlineAutoOpen&&T())};function L(t,e){o[t]&&o[t].indexOf(e)===-1&&(o[t]=o[t]+e)}function I(){var t=o.container.ownerDocument;if(!t.getElementById("rte-document-outline-style")){var e=[".rte-document-outline-shell{display:flex;align-items:stretch;gap:10px;}",".rte-document-outline-shell>.rte-document-outline-host{flex:1 1 auto;min-width:0;}","/* 2026-07-12 navigation panel precision */",".rte-document-outline-panel{display:none;flex:0 0 286px;min-width:248px;max-width:min(330px,30vw);border:1px solid rgba(148,163,184,.22);border-radius:8px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.96));box-shadow:0 14px 32px rgba(29,78,216,.1),0 2px 8px rgba(15,23,42,.06);overflow:hidden;color:#172033;font-family:Aptos,'Segoe UI',sans-serif;}",".rte-document-outline-shell.is-open>.rte-document-outline-panel{display:flex;flex-direction:column;}",".rte-document-outline-header{padding:12px 12px 9px 14px;border-bottom:1px solid rgba(148,163,184,.16);background:rgba(255,255,255,.72);}",".rte-document-outline-kicker{font-size:10px;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:#52657e;font-weight:850;}",".rte-document-outline-title{margin-top:3px;font-size:15px;line-height:1.2;font-weight:850;color:#172033;}",".rte-document-outline-copy{margin-top:5px;font-size:12px;line-height:1.42;color:#52657e;}",".rte-document-outline-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 8px 14px;border-bottom:1px solid rgba(148,163,184,.16);gap:10px;background:rgba(255,255,255,.52);}",".rte-document-outline-count{min-width:0;font-size:12px;font-weight:750;color:#52657e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}",".rte-document-outline-close{appearance:none;border:1px solid rgba(100,116,139,.18);background:#fff;color:#315277;cursor:pointer;font-size:12px;font-weight:750;padding:6px 9px;border-radius:7px;line-height:1;}",".rte-document-outline-close:hover,.rte-document-outline-close:focus-visible{background:#eef4ff;color:#0f3f9f;border-color:rgba(37,99,235,.28);}",".rte-document-outline-body{padding:6px;overflow:auto;min-height:140px;max-height:520px;scrollbar-width:thin;}",".rte-document-outline-list{display:flex;flex-direction:column;gap:5px;}",".rte-document-outline-item{appearance:none;width:100%;text-align:left;border:1px solid transparent;background:transparent;color:#172033;cursor:pointer;border-radius:7px;padding:8px 10px 8px calc(10px + (var(--rte-outline-level,1) - 1) * 12px);font-size:13px;line-height:1.35;font-weight:650;}",".rte-document-outline-item:hover,.rte-document-outline-item:focus-visible{background:#f8fbff;border-color:rgba(37,99,235,.18);}",".rte-document-outline-item.is-active{background:#eef4ff;border-color:rgba(37,99,235,.26);color:#0f3f9f;box-shadow:0 8px 18px rgba(37,99,235,.1);}",".rte-document-outline-item-level{display:inline-flex;margin:0 0 3px;padding:2px 6px;border-radius:999px;background:#fff;color:#64748b;font-size:10px;line-height:1.1;letter-spacing:.08em;text-transform:uppercase;font-weight:850;box-shadow:inset 0 0 0 1px rgba(148,163,184,.18);}",".rte-document-outline-empty{margin:6px;padding:14px;color:#52657e;font-size:13px;font-weight:700;line-height:1.55;background:#fff;border:1px dashed rgba(148,163,184,.34);border-radius:8px;}","@media (max-width: 1100px){.rte-document-outline-shell{display:block;}.rte-document-outline-panel{margin-top:12px;max-width:none;width:100%;}.rte-document-outline-body{max-height:320px;}}"].join(""),r=t.createElement("style");r.id="rte-document-outline-style",r.appendChild(t.createTextNode(e)),t.head.appendChild(r),i&&typeof i.ensureStyleSheetLive=="function"&&i.ensureStyleSheetLive(t,r,"rte-document-outline-style",e)}}function O(){if(c)return c;var t=o.container,e=t.ownerDocument;c=e.createElement("div"),c.className="rte-document-outline-shell";var r=e.createElement("div");r.className="rte-document-outline-host";var u=t.parentNode;u.insertBefore(c,t),c.appendChild(r),r.appendChild(t),d=e.createElement("aside"),d.className="rte-document-outline-panel",d.setAttribute("aria-label",o.documentOutlineTitle),d.setAttribute("role","complementary");var l=e.createElement("div");l.className="rte-document-outline-header";var n=e.createElement("div");n.className="rte-document-outline-kicker",n.innerText="Document";var a=e.createElement("div");a.className="rte-document-outline-title",a.innerText=o.documentOutlineTitle;var m=e.createElement("div");m.className="rte-document-outline-copy",m.innerText=o.documentOutlineHint,l.appendChild(n),l.appendChild(a),l.appendChild(m);var v=e.createElement("div");v.className="rte-document-outline-toolbar";var f=e.createElement("div");f.className="rte-document-outline-count",f.setAttribute("data-rte-outline-count","1");var s=e.createElement("button");s.type="button",s.className="rte-document-outline-close",s.innerText="Hide",s.setAttribute("aria-label","Hide document outline"),s.onclick=function(){A()},v.appendChild(f),v.appendChild(s);var h=e.createElement("div");return h.className="rte-document-outline-body",p=e.createElement("div"),p.className="rte-document-outline-list",b=e.createElement("div"),b.className="rte-document-outline-empty",b.innerText=o.documentOutlineEmptyText,h.appendChild(p),h.appendChild(b),d.appendChild(l),d.appendChild(v),d.appendChild(h),c.appendChild(d),c}function H(){c&&c.classList.contains("is-open")?A():T()}function T(){O(),c.classList.add("is-open"),y()}function A(){c&&c.classList.remove("is-open")}function z(){clearTimeout(D),D=setTimeout(function(){y()},80)}function B(t){var e=String(t||"").toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");return e||"section"}function N(){var t=i.getEditable();if(!t)return[];var e=Math.max(1,Math.min(6,o.documentOutlineMinLevel||1)),r=Math.max(e,Math.min(6,o.documentOutlineMaxLevel||6)),u=t.querySelectorAll("h1,h2,h3,h4,h5,h6"),l=[],n,a={},m=t.querySelectorAll("[id]");for(n=0;n<m.length;n++)/^H[1-6]$/.test(m[n].nodeName)||(a[m[n].id]=!0);var v=function(M){return(M.innerText||M.textContent||"").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},f=[];for(n=0;n<u.length;n++){var s=u[n],h=v(s);if(!h){f.push(s);continue}var x=s.id;if(!x)x=B(h);else if(!a[x]){a[x]=!0;continue}for(var w=x,_=2;a[w];)w=x+"-"+_,_++;a[w]=!0,s.id!==w&&(s.id=w)}for(n=0;n<f.length;n++)f[n].id&&(a[f[n].id]?f[n].removeAttribute("id"):a[f[n].id]=!0);for(n=0;n<u.length;n++){var C=u[n],S=parseInt(C.nodeName.substring(1),10);if(!(S<e||S>r)){var F=(C.innerText||C.textContent||"").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"");l.push({id:C.id||"__rte-outline-"+l.length,level:S,text:F||"Heading "+(l.length+1),element:C})}}return l}function P(){var t=i.getSelection?i.getSelection():null;if(!t||t.rangeCount===0)return null;try{var e=t.getRangeAt(0).cloneRange();return e.collapse(!0),e}catch{return null}}function R(t){var e=P();if(!e||!t.length)return"";var r=e.startContainer.ownerDocument||i.getEditable().ownerDocument,u=r.createRange(),l="";try{u.setStart(e.startContainer,e.startOffset),u.collapse(!0);for(var n=0;n<t.length;n++){var a=r.createRange();a.selectNodeContents(t[n].element),a.collapse(!0),a.compareBoundaryPoints(Range.START_TO_START,u)<=0&&(l=t[n].id)}}catch{return g}return l}function j(t){if(!(!t||!t.element)){t.element.scrollIntoView({behavior:"smooth",block:"center"});try{var e=i.getSelection?i.getSelection():null,r=t.element.ownerDocument.createRange();r.selectNodeContents(t.element),r.collapse(!0),e&&(e.removeAllRanges(),e.addRange(r))}catch{}i.focus(),g=t.id,k()}}function k(){if(p)for(var t=p.querySelectorAll(".rte-document-outline-item"),e=0;e<t.length;e++){var r=t[e],u=r.getAttribute("data-rte-outline-id")===g;r.classList.toggle("is-active",u),r.setAttribute("aria-current",u?"true":"false")}}function $(){var t=N(),e=R(t);if(e===g&&p&&p.childNodes.length){k();return}g=e,y(t)}function y(t){O();var e=t||N();for(g=R(e)||g;p.firstChild;)p.removeChild(p.firstChild);var r=d.querySelector("[data-rte-outline-count]");r&&(r.innerText=e.length+" heading"+(e.length===1?"":"s")),b.style.display=e.length?"none":"block";for(var u=0;u<e.length;u++)(function(l){var n=d.ownerDocument.createElement("button");n.type="button",n.className="rte-document-outline-item",n.style.setProperty("--rte-outline-level",String(l.level)),n.setAttribute("data-rte-outline-id",l.id),n.setAttribute("aria-current","false");var a=d.ownerDocument.createElement("span");a.className="rte-document-outline-item-level",a.innerText="H"+l.level;var m=d.ownerDocument.createElement("span");m.innerText=l.text,n.appendChild(a),n.appendChild(m),n.onclick=function(){j(l)},p.appendChild(n)})(e[u]);k()}}
|
|
1
|
+
window.RTE_DefaultConfig||(window.RTE_DefaultConfig={}),RTE_DefaultConfig.plugin_documentoutline=RTE_Plugin_DocumentOutline;function RTE_Plugin_DocumentOutline(){var O=this,o,i,d=null,c=null,m=null,y=null,L=0,h="";O.PluginName="DocumentOutline";function g(t,e,r){var l=o&&o["text_"+t]||e;return r===void 0?l:l.split("{0}").join(String(r))}O.InitConfig=function(t){if(o=t,o.documentOutlineEnabled!==!1&&(o.documentOutlineTitle=o.documentOutlineTitle||g("ol_title","Outline"),o.documentOutlineHint=o.documentOutlineHint||g("ol_hint","Browse headings and jump through long documents without leaving the editor."),o.documentOutlineEmptyText=o.documentOutlineEmptyText||g("ol_empty","Add headings to build the document outline."),typeof o.documentOutlineAutoOpen!="boolean"&&(o.documentOutlineAutoOpen=!1),typeof o.documentOutlineMinLevel!="number"&&(o.documentOutlineMinLevel=1),typeof o.documentOutlineMaxLevel!="number"&&(o.documentOutlineMaxLevel=6),D("toolbar_default","#{documentoutline}"),D("toolbar_full","#{documentoutline}"),o.documentOutlineEnabled!==!1&&o.container&&o.container.parentNode))try{E()}catch{}},O.InitEditor=function(t){if(i=t,o.documentOutlineEnabled!==!1){i.documentOutline={close:function(){A()},list:function(){return N()},open:function(){T()},refresh:function(){k()},toggle:function(){H()}},B(),i.toolbarFactoryMap=i.toolbarFactoryMap||{},i.toolbarFactoryMap.documentoutline=function(e){return i.createToolbarButton(e)},i.attachEvent("exec_command_documentoutline",function(e){e.returnValue=!0,e.stopBubble=!0,H()}),i.attachEvent("change",function(){M()});try{i.attachEvent("aftersethtml",function(){M()})}catch{}i.attachEvent("selectionchange",function(){V()}),E(),k(),o.documentOutlineAutoOpen&&T()}};function D(t,e){o[t]&&o[t].indexOf(e)===-1&&(o[t]=o[t]+e)}function B(){var t=o.container.ownerDocument;if(!t.getElementById("rte-document-outline-style")){var e=[".rte-document-outline-shell{display:flex;align-items:stretch;gap:10px;}",".rte-document-outline-shell>.rte-document-outline-host{flex:1 1 auto;min-width:0;}","/* 2026-07-12 navigation panel precision */",".rte-document-outline-panel{display:none;flex:0 0 286px;min-width:248px;max-width:min(330px,30vw);border:1px solid rgba(148,163,184,.22);border-radius:8px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.96));box-shadow:0 14px 32px rgba(29,78,216,.1),0 2px 8px rgba(15,23,42,.06);overflow:hidden;color:#172033;font-family:Aptos,'Segoe UI',sans-serif;}",".rte-document-outline-shell.is-open>.rte-document-outline-panel{display:flex;flex-direction:column;}",".rte-document-outline-header{padding:12px 12px 9px 14px;border-bottom:1px solid rgba(148,163,184,.16);background:rgba(255,255,255,.72);}",".rte-document-outline-kicker{font-size:10px;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:#52657e;font-weight:850;}",".rte-document-outline-title{margin-top:3px;font-size:15px;line-height:1.2;font-weight:850;color:#172033;}",".rte-document-outline-copy{margin-top:5px;font-size:12px;line-height:1.42;color:#52657e;}",".rte-document-outline-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 8px 14px;border-bottom:1px solid rgba(148,163,184,.16);gap:10px;background:rgba(255,255,255,.52);}",".rte-document-outline-count{min-width:0;font-size:12px;font-weight:750;color:#52657e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}",".rte-document-outline-close{appearance:none;border:1px solid rgba(100,116,139,.18);background:#fff;color:#315277;cursor:pointer;font-size:12px;font-weight:750;padding:6px 9px;border-radius:7px;line-height:1;}",".rte-document-outline-close:hover,.rte-document-outline-close:focus-visible{background:#eef4ff;color:#0f3f9f;border-color:rgba(37,99,235,.28);}",".rte-document-outline-body{padding:6px;overflow:auto;min-height:140px;max-height:520px;scrollbar-width:thin;}",".rte-document-outline-list{display:flex;flex-direction:column;gap:5px;}",".rte-document-outline-item{appearance:none;width:100%;text-align:left;border:1px solid transparent;background:transparent;color:#172033;cursor:pointer;border-radius:7px;padding:8px 10px 8px calc(10px + (var(--rte-outline-level,1) - 1) * 12px);font-size:13px;line-height:1.35;font-weight:650;}",".rte-document-outline-item:hover,.rte-document-outline-item:focus-visible{background:#f8fbff;border-color:rgba(37,99,235,.18);}",".rte-document-outline-item.is-active{background:#eef4ff;border-color:rgba(37,99,235,.26);color:#0f3f9f;box-shadow:0 8px 18px rgba(37,99,235,.1);}",".rte-document-outline-item-level{display:inline-flex;margin:0 0 3px;padding:2px 6px;border-radius:999px;background:#fff;color:#64748b;font-size:10px;line-height:1.1;letter-spacing:.08em;text-transform:uppercase;font-weight:850;box-shadow:inset 0 0 0 1px rgba(148,163,184,.18);}",".rte-document-outline-empty{margin:6px;padding:14px;color:#52657e;font-size:13px;font-weight:700;line-height:1.55;background:#fff;border:1px dashed rgba(148,163,184,.34);border-radius:8px;}",".rte-document-outline-panel.rte-document-outline-dark{background:linear-gradient(180deg,#1e293b,#0f172a);border-color:#334155;color:#e2e8f0;box-shadow:0 18px 40px rgba(0,0,0,.45);}",".rte-document-outline-dark .rte-document-outline-header,.rte-document-outline-dark .rte-document-outline-toolbar{background:rgba(15,23,42,.6);border-color:#334155;}",".rte-document-outline-dark .rte-document-outline-kicker,.rte-document-outline-dark .rte-document-outline-copy,.rte-document-outline-dark .rte-document-outline-count{color:#94a3b8;}",".rte-document-outline-dark .rte-document-outline-title{color:#f1f5f9;}",".rte-document-outline-dark .rte-document-outline-close{background:#0f172a;color:#bfdbfe;border-color:#475569;}",".rte-document-outline-dark .rte-document-outline-close:hover,.rte-document-outline-dark .rte-document-outline-close:focus-visible{background:#1e3a8a;color:#ffffff;}",".rte-document-outline-dark .rte-document-outline-item{color:#e2e8f0;}",".rte-document-outline-dark .rte-document-outline-item:hover,.rte-document-outline-dark .rte-document-outline-item:focus-visible{background:#1e293b;border-color:#475569;}",".rte-document-outline-dark .rte-document-outline-item.is-active{background:#1e3a8a;border-color:#3b82f6;color:#ffffff;}",".rte-document-outline-dark .rte-document-outline-item-level{background:#0f172a;color:#cbd5e1;}",".rte-document-outline-dark .rte-document-outline-empty{background:#0f172a;color:#94a3b8;border-color:#475569;}","@media (max-width: 1100px){.rte-document-outline-shell{display:block;}.rte-document-outline-panel{margin-top:12px;max-width:none;width:100%;}.rte-document-outline-body{max-height:320px;}}"].join(""),r=t.createElement("style");r.id="rte-document-outline-style",r.appendChild(t.createTextNode(e)),t.head.appendChild(r),i&&typeof i.ensureStyleSheetLive=="function"&&i.ensureStyleSheetLive(t,r,"rte-document-outline-style",e)}}function E(){if(d)return d;var t=o.container,e=t.ownerDocument;d=e.createElement("div"),d.className="rte-document-outline-shell";var r=e.createElement("div");r.className="rte-document-outline-host";var l=t.parentNode;l.insertBefore(d,t),d.appendChild(r),r.appendChild(t),c=e.createElement("aside"),c.className="rte-document-outline-panel",c.setAttribute("aria-label",o.documentOutlineTitle),c.setAttribute("role","complementary");var a=e.createElement("div");a.className="rte-document-outline-header";var n=e.createElement("div");n.className="rte-document-outline-kicker",n.innerText=g("pn_document","Document");var u=e.createElement("div");u.className="rte-document-outline-title",u.innerText=o.documentOutlineTitle;var p=e.createElement("div");p.className="rte-document-outline-copy",p.innerText=o.documentOutlineHint,a.appendChild(n),a.appendChild(u),a.appendChild(p);var b=e.createElement("div");b.className="rte-document-outline-toolbar";var f=e.createElement("div");f.className="rte-document-outline-count",f.setAttribute("data-rte-outline-count","1");var s=e.createElement("button");s.type="button",s.className="rte-document-outline-close",s.innerText=g("pn_hide","Hide"),s.setAttribute("aria-label",g("ol_hidearia","Hide document outline")),s.onclick=function(){A()},b.appendChild(f),b.appendChild(s);var v=e.createElement("div");return v.className="rte-document-outline-body",m=e.createElement("div"),m.className="rte-document-outline-list",y=e.createElement("div"),y.className="rte-document-outline-empty",y.innerText=o.documentOutlineEmptyText,v.appendChild(m),v.appendChild(y),c.appendChild(a),c.appendChild(b),c.appendChild(v),d.appendChild(c),d}function H(){d&&d.classList.contains("is-open")?A():T()}function P(){try{var t=i.container&&i.container.classList;return!!t&&(t.contains("rte-dark")||t.contains("rte-auto-dark")&&!t.contains("rte-light")&&!!(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches))}catch{return!1}}function T(){E(),c&&c.classList&&(P()?c.classList.add("rte-document-outline-dark"):c.classList.remove("rte-document-outline-dark")),d.classList.add("is-open"),k()}function A(){d&&d.classList.remove("is-open")}function M(){clearTimeout(L),L=setTimeout(function(){k()},80)}function j(t){var e=String(t||"").toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");return e||"section"}function N(){var t=i.getEditable();if(!t)return[];var e=Math.max(1,Math.min(6,o.documentOutlineMinLevel||1)),r=Math.max(e,Math.min(6,o.documentOutlineMaxLevel||6)),l=t.querySelectorAll("h1,h2,h3,h4,h5,h6"),a=[],n;if(o.autoHeadingAnchors===!1){var u={},p=t.querySelectorAll("[id]");for(n=0;n<p.length;n++)/^H[1-6]$/.test(p[n].nodeName)||(u[p[n].id]=!0);var b=function(I){return(I.innerText||I.textContent||"").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"")},f=[];for(n=0;n<l.length;n++){var s=l[n],v=b(s);if(!v){f.push(s);continue}var x=s.id;if(!x)x=j(v);else if(!u[x]){u[x]=!0;continue}for(var w=x,z=2;u[w];)w=x+"-"+z,z++;u[w]=!0,s.id!==w&&(s.id=w)}for(n=0;n<f.length;n++)f[n].id&&(u[f[n].id]?f[n].removeAttribute("id"):u[f[n].id]=!0)}for(n=0;n<l.length;n++){var C=l[n],S=parseInt(C.nodeName.substring(1),10);if(!(S<e||S>r)){var U=(C.innerText||C.textContent||"").replace(/\s+/g," ").replace(/^\s+|\s+$/g,"");a.push({id:C.id||"__rte-outline-"+a.length,level:S,text:U||g("ol_heading","Heading {0}",a.length+1),element:C})}}return a}function $(){var t=i.getSelection?i.getSelection():null;if(!t||t.rangeCount===0)return null;try{var e=t.getRangeAt(0).cloneRange();return e.collapse(!0),e}catch{return null}}function R(t){var e=$();if(!e||!t.length)return"";var r=e.startContainer.ownerDocument||i.getEditable().ownerDocument,l=r.createRange(),a="";try{l.setStart(e.startContainer,e.startOffset),l.collapse(!0);for(var n=0;n<t.length;n++){var u=r.createRange();u.selectNodeContents(t[n].element),u.collapse(!0),u.compareBoundaryPoints(Range.START_TO_START,l)<=0&&(a=t[n].id)}}catch{return h}return a}function F(t){if(!(!t||!t.element)){t.element.scrollIntoView({behavior:"smooth",block:"center"});try{var e=i.getSelection?i.getSelection():null,r=t.element.ownerDocument.createRange();r.selectNodeContents(t.element),r.collapse(!0),e&&(e.removeAllRanges(),e.addRange(r))}catch{}i.focus(),h=t.id,_()}}function _(){if(m)for(var t=m.querySelectorAll(".rte-document-outline-item"),e=0;e<t.length;e++){var r=t[e],l=r.getAttribute("data-rte-outline-id")===h;r.classList.toggle("is-active",l),r.setAttribute("aria-current",l?"true":"false")}}function V(){var t=N(),e=R(t);if(e===h&&m&&m.childNodes.length){_();return}h=e,k(t)}function k(t){E();var e=t||N();for(h=R(e)||h;m.firstChild;)m.removeChild(m.firstChild);var r=c.querySelector("[data-rte-outline-count]");r&&(r.innerText=e.length===1?g("ol_count1","1 heading"):g("ol_countn","{0} headings",e.length)),y.style.display=e.length?"none":"block";for(var l=0;l<e.length;l++)(function(a){var n=c.ownerDocument.createElement("button");n.type="button",n.className="rte-document-outline-item",n.style.setProperty("--rte-outline-level",String(a.level)),n.setAttribute("data-rte-outline-id",a.id),n.setAttribute("aria-current","false");var u=c.ownerDocument.createElement("span");u.className="rte-document-outline-item-level",u.innerText="H"+a.level;var p=c.ownerDocument.createElement("span");p.innerText=a.text,n.appendChild(u),n.appendChild(p),n.onclick=function(){F(a)},m.appendChild(n)})(e[l]);_()}}
|