hypothesis 1.892.0 → 1.896.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.
@@ -18,14 +18,14 @@ var K=function(e,t){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
18
18
  Copyright (c) 2018 Jed Watson.
19
19
  Licensed under the MIT License (MIT), see
20
20
  http://jedwatson.github.io/classnames
21
- */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)t.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Qn);var er,tr,nr,rr=Qn.exports,or=0,ir=[],ar=t.__b,sr=t.__r,lr=t.diffed,cr=t.__c,ur=t.unmount;function hr(e,n){t.__h&&t.__h(tr,e,or||n),or=0;var r=tr.__H||(tr.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function dr(e){return or=1,pr(Ar,e)}function pr(e,t,n){var r=hr(er++,2);return r.t=e,r.__c||(r.__=[n?n(t):Ar(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=tr),r.__}function mr(e,n){var r=hr(er++,3);!t.__s&&Sr(r.__H,n)&&(r.__=e,r.__H=n,tr.__H.__h.push(r))}function fr(e,n){var r=hr(er++,4);!t.__s&&Sr(r.__H,n)&&(r.__=e,r.__H=n,tr.__h.push(r))}function gr(e){return or=5,vr((function(){return{current:e}}),[])}function vr(e,t){var n=hr(er++,7);return Sr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function yr(e,t){return or=8,vr((function(){return e}),t)}function _r(e){var t=tr.context[e.__c],n=hr(er++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(tr)),t.props.value):e.__}function br(){ir.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(xr),e.__H.__h.forEach(kr),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}})),ir=[]}t.__b=function(e){tr=null,ar&&ar(e)},t.__r=function(e){sr&&sr(e),er=0;var t=(tr=e.__c).__H;t&&(t.__h.forEach(xr),t.__h.forEach(kr),t.__h=[])},t.diffed=function(e){lr&&lr(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==ir.push(n)&&nr===t.requestAnimationFrame||((nr=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),wr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);wr&&(t=requestAnimationFrame(n))})(br)),tr=void 0},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(xr),e.__h=e.__h.filter((function(e){return!e.__||kr(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),cr&&cr(e,n)},t.unmount=function(e){ur&&ur(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(xr)}catch(e){t.__e(e,n.__v)}};var wr="function"==typeof requestAnimationFrame;function xr(e){var t=tr;"function"==typeof e.__c&&e.__c(),tr=t}function kr(e){var t=tr;e.__c=e.__(),tr=t}function Sr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ar(e,t){return"function"==typeof t?t(e):t}function Er(e,n,r,o,i){var a={};for(var s in n)"ref"!=s&&(a[s]=n[s]);var l,c,u={type:e,props:a,key:r,ref:n&&n.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++t.__v,__source:o,__self:i};if("function"==typeof e&&(l=e.defaultProps))for(c in l)void 0===a[c]&&(a[c]=l[c]);return t.vnode&&t.vnode(u),u}let Tr={};function Cr({name:e,className:t="",inline:n=!1,title:r=""}){if(!Tr[e])throw new Error(`Icon name "${e}" is not registered`);const o=Tr[e],i=gr();fr((()=>{const e=i.current.querySelector("svg");e&&e.setAttribute("class",t)}),[t,o]);const a={};return r&&(a.title=r),Er("span",{className:rr("Hyp-SvgIcon",{"Hyp-SvgIcon--inline":n}),dangerouslySetInnerHTML:{__html:o},ref:i,...a},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/SvgIcon.js",lineNumber:69,columnNumber:5})}function Nr(e,{reset:t=!1}={}){t&&(Tr={}),Object.assign(Tr,e)}var Mr="/home/runner/work/frontend-shared/frontend-shared/src/components/buttons.js";function Lr({buttonRef:e,classes:t,className:n,icon:r,iconPosition:o="left",size:i="medium",variant:a="normal",expanded:s,pressed:l,type:c="button",...u}){const h={"aria-expanded":s,"aria-pressed":l,"aria-label":u.title};return Er("button",{ref:e,className:rr(n,`${n}--${i}`,`${n}--${a}`,{[`${n}--icon-${o}`]:r},t),type:c,...h,...u},void 0,!1,{fileName:Mr,lineNumber:73,columnNumber:5})}function Ir({className:e="Hyp-IconButton",...t}){const{icon:n}=t;return Er(Lr,{className:e,...t,children:Er(Cr,{name:n},void 0,!1,{fileName:Mr,lineNumber:100,columnNumber:7})},void 0,!1,{fileName:Mr,lineNumber:99,columnNumber:5})}function zr({children:e,className:t="Hyp-LabeledButton",...n}){const{icon:r,iconPosition:o="left"}=n;return Er(Lr,{className:t,...n,children:[r&&"left"===o&&Er(Cr,{name:r},void 0,!1,{fileName:Mr,lineNumber:118,columnNumber:43}),e,r&&"right"===o&&Er(Cr,{name:r},void 0,!1,{fileName:Mr,lineNumber:120,columnNumber:44})]},void 0,!0,{fileName:Mr,lineNumber:117,columnNumber:5})}function Or(e){return Er(Lr,{className:"Hyp-LinkButton",...e},void 0,!1,{fileName:Mr,lineNumber:131,columnNumber:10})}Nr({"hyp-checkbox":' <svg\n width="32"\n height="32"\n viewBox="-4 -4 39 39"\n aria-hidden="true"\n focusable="false"\n >\n <rect\n class="hyp-svg-checkbox--background"\n width="35"\n height="35"\n x="-2"\n y="-2"\n stroke="currentColor"\n fill="none"\n stroke-width="3"\n rx="5"\n ry="5"\n />\n <polyline\n class="hyp-svg-checkbox--checkmark"\n points="4,14 12,23 28,5"\n stroke="transparent"\n stroke-width="5"\n fill="none"\n />\n</svg>'});function Pr({children:e,direction:t="row",classes:n="",containerRef:r}){return Er("div",{className:rr(`Hyp-Actions--${t}`,n),ref:r,children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/containers.js",lineNumber:72,columnNumber:5})}var Rr='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cancel"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 8l3.536-3.536L8 8 4.464 4.464 8 8zm0 0l-3.536 3.536L8 8l3.536 3.536L8 8z"></path></g></svg>\n',Dr="/home/runner/work/frontend-shared/frontend-shared/src/components/Dialog.js";Nr({"hyp-cancel":Rr});let Br=0;function Fr(e){const[t]=dr((()=>(++Br,`${e}-${Br}`)));return t}function jr({buttons:e,cancelLabel:t="Cancel",children:n,contentClass:r,icon:o,initialFocus:i,onCancel:a,role:s="dialog",title:l,withCancelButton:c=!0,withCloseButton:u=!0}){const h=Fr("dialog-description"),d=Fr("dialog-title"),p=gr(null);mr((()=>{if(null!==i){const e=null==i?void 0:i.current;e&&!e.disabled?e.focus():p.current.focus()}}),[]),fr((()=>{const e=p.current.querySelector("p");e&&(e.id=h,p.current.setAttribute("aria-describedby",h))}),[h]);const m=a&&c,f=e||m;return Er("div",{"aria-labelledby":d,className:rr("Hyp-Dialog",{"Hyp-Dialog--closeable":a&&u},r),ref:p,role:s,tabIndex:-1,children:[Er("header",{children:[o&&Er("div",{className:"Hyp-Dialog__header-icon",children:Er(Cr,{name:o,title:l,"data-testid":"header-icon"},void 0,!1,{fileName:Dr,lineNumber:141,columnNumber:13})},void 0,!1,{fileName:Dr,lineNumber:140,columnNumber:11}),Er("h2",{className:"Hyp-Dialog__title",id:d,children:l},void 0,!1,{fileName:Dr,lineNumber:144,columnNumber:9}),a&&u&&Er("div",{className:"Hyp-Dialog__close",children:Er(Ir,{"data-testid":"close-button",icon:"hyp-cancel",title:"Close",onClick:a},void 0,!1,{fileName:Dr,lineNumber:149,columnNumber:13})},void 0,!1,{fileName:Dr,lineNumber:148,columnNumber:11})]},void 0,!0,{fileName:Dr,lineNumber:138,columnNumber:7}),n,f&&Er("div",{className:"Hyp-Dialog__actions",children:[m&&Er(zr,{"data-testid":"cancel-button",onClick:a,children:t},void 0,!1,{fileName:Dr,lineNumber:162,columnNumber:13}),e]},void 0,!0,{fileName:Dr,lineNumber:160,columnNumber:9})]},void 0,!0,{fileName:Dr,lineNumber:127,columnNumber:5})}function Hr(e){const t={Left:"ArrowLeft",Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Spacebar:" ",Del:"Delete"};return t[e]?t[e]:e}function Ur(e,t,n,{useCapture:r=!1}={}){return t.forEach((t=>e.addEventListener(t,n,r))),()=>{t.forEach((t=>e.removeEventListener(t,n,r)))}}function qr(e,t,n){mr((()=>{if(!t)return()=>{};const r=Ur(document.body,["keydown"],(e=>{"Escape"===Hr(e.key)&&n()})),o=Ur(document.body,["focus"],(t=>{e.current.contains(t.target)||n()}),{useCapture:!0}),i=Ur(document.body,["mousedown","click"],(t=>{e.current.contains(t.target)||n()}),{useCapture:!0});return()=>{r(),i(),o()}}),[e,t,n])}var $r="/home/runner/work/frontend-shared/frontend-shared/src/components/Modal.js";function Gr({children:e,onCancel:t,...n}){const r=gr(null);return qr(r,!0,(()=>{t&&t()})),Er(d,{children:[Er("div",{className:"Hyp-Modal__overlay"},void 0,!1,{fileName:$r,lineNumber:37,columnNumber:7}),Er("div",{className:"Hyp-Modal",ref:r,children:Er(jr,{onCancel:t,...n,children:e},void 0,!1,{fileName:$r,lineNumber:39,columnNumber:9})},void 0,!1,{fileName:$r,lineNumber:38,columnNumber:7})]},void 0,!0)}function Vr({message:e,confirmAction:t,onConfirm:n,onCancel:r,...o}){return Er(Gr,{onCancel:r,buttons:[Er(zr,{onClick:n,variant:"primary","data-testid":"confirm-button",children:t},"ok",!1,{fileName:$r,lineNumber:74,columnNumber:9})],...o,children:Er("p",{children:e},void 0,!1,{fileName:$r,lineNumber:85,columnNumber:7})},void 0,!1,{fileName:$r,lineNumber:71,columnNumber:5})}var Wr="/home/runner/work/frontend-shared/frontend-shared/src/components/Panel.js";function Yr({children:e,icon:t,onClose:n,title:r}){const o=!!n;return Er("div",{className:rr("Hyp-Panel",{"Hyp-Panel--closeable":o}),children:[Er("header",{children:[t&&Er("div",{className:"Hyp-Panel__header-icon",children:Er(Cr,{name:t,title:r},void 0,!1,{fileName:Wr,lineNumber:39,columnNumber:13})},void 0,!1,{fileName:Wr,lineNumber:38,columnNumber:11}),Er("h2",{className:"Hyp-Panel__title",children:r},void 0,!1,{fileName:Wr,lineNumber:42,columnNumber:9}),o&&Er("div",{className:"Hyp-Panel__close",children:Er(Ir,{icon:"hyp-cancel",title:"Close",onClick:n},void 0,!1,{fileName:Wr,lineNumber:45,columnNumber:13})},void 0,!1,{fileName:Wr,lineNumber:44,columnNumber:11})]},void 0,!0,{fileName:Wr,lineNumber:36,columnNumber:7}),Er("div",{className:"Hyp-Panel__content",children:e},void 0,!1,{fileName:Wr,lineNumber:49,columnNumber:7})]},void 0,!0,{fileName:Wr,lineNumber:31,columnNumber:5})}Nr({"hyp-cancel":Rr});function Kr({classes:e="",size:t="medium"}){return Er(Cr,{name:"hyp-spinner",className:rr(`Hyp-Spinner--${t}`,e)},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/Spinner.js",lineNumber:27,columnNumber:5})}Nr({"hyp-spinner":'<svg viewBox="0 0 64 64">\n <g stroke-width="6" stroke="currentColor" stroke-linecap="round">\n <line y1="16" y2="28" transform="translate(32,32) rotate(180)">\n <animate attributeName="stroke-opacity" dur="750ms" values="0;1;.8;.65;.45;.3;.15;0" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(225)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".15;0;1;.8;.65;.45;.3;.15" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(270)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".3;.15;0;1;.8;.65;.45;.3" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(315)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".45;.3;.15;0;1;.85;.65;.45" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(0)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".65;.45;.3;.15;0;1;.8;.65;" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(45)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".8;.65;.45;.3;.15;0;1;.8" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(90)">\n <animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.6;.45;.3;.15;0;1;" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(135)">\n <animate attributeName="stroke-opacity" dur="750ms" values="0;1;.8;.65;.45;.3;.15;0" repeatCount="indefinite"></animate>\n </line>\n </g>\n</svg>'});var Xr="/home/runner/work/frontend-shared/frontend-shared/src/components/TextInput.js";function Jr({classes:e="",inputRef:t,hasError:n=!1,type:r="text",...o}){return Er("input",{className:rr("Hyp-TextInput",{"has-error":n},e),...o,ref:t,type:r},void 0,!1,{fileName:Xr,lineNumber:39,columnNumber:5})}function Zr({children:e,classes:t=""}){return Er("div",{className:rr("Hyp-TextInputWithButton",t),children:e},void 0,!1,{fileName:Xr,lineNumber:67,columnNumber:5})}var Qr='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cancel"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 8l3.536-3.536L8 8 4.464 4.464 8 8zm0 0l-3.536 3.536L8 8l3.536 3.536L8 8z"></path></g></svg>\n',eo='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="24px" height="28px" viewBox="0 0 24 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <rect fill="#ffffff" stroke="none" width="17.14407" height="16.046612" x="3.8855932" y="3.9449153" />\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M0,2.00494659 C0,0.897645164 0.897026226,0 2.00494659,0 L21.9950534,0 C23.1023548,0 24,0.897026226 24,2.00494659 L24,21.9950534 C24,23.1023548 23.1029738,24 21.9950534,24 L2.00494659,24 C0.897645164,24 0,23.1029738 0,21.9950534 L0,2.00494659 Z M9,24 L12,28 L15,24 L9,24 Z M7.00811294,4 L4,4 L4,20 L7.00811294,20 L7.00811294,15.0028975 C7.00811294,12.004636 8.16824717,12.0097227 9,12 C10,12.0072451 11.0189302,12.0606714 11.0189302,14.003477 L11.0189302,20 L14.0270431,20 L14.0270431,13.1087862 C14.0270433,10 12,9.00309038 10,9.00309064 C8.01081726,9.00309091 8,9.00309086 7.00811294,11.0019317 L7.00811294,4 Z M19,19.9869002 C20.1045695,19.9869002 21,19.0944022 21,17.9934501 C21,16.892498 20.1045695,16 19,16 C17.8954305,16 17,16.892498 17,17.9934501 C17,19.0944022 17.8954305,19.9869002 19,19.9869002 Z" fill="currentColor"></path>\n </g>\n</svg>\n',to={add:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--plus"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 8V3v5H3h5zm0 0v5-5h5-5z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>',annotate:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M15 0c.27 0 .505.099.703.297A.961.961 0 0116 1v15l-4-3H1a.974.974 0 01-.703-.29A.953.953 0 010 12V1C0 .719.096.482.29.29A.966.966 0 011 0h14zM7 3l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C4.156 5.229 4 6 4 7l.002.063.006.062a.896.896 0 01.008.11l-.002.074-.006.066a1.447 1.447 0 00.43 1.188C4.729 8.854 5.082 9 5.5 9c.417 0 .77-.146 1.063-.438C6.854 8.271 7 7.918 7 7.5c0-.417-.146-.77-.438-1.063A1.447 1.447 0 005.5 6c-.073 0-.146.005-.219.016-.073.01-.14.026-.203.046.177-1.03.542-1.632 1.094-1.804L7 4V3zm5 0l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C9.156 5.229 9 6 9 7l.002.063.006.062a.896.896 0 01.008.11l-.002.074-.006.066a1.447 1.447 0 00.43 1.188c.291.291.645.437 1.062.437.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.447 1.447 0 0010.5 6c-.073 0-.146.005-.219.016-.073.01-.14.026-.203.046.177-1.03.542-1.632 1.094-1.804L12 4V3z"/>\n</svg>\n',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--arrow-left"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 12L3 8l4-4M4 8h9-9z"></path></g></svg>\n',"arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--arrow-right"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 4l4 4-4 4m3-4H3h9z"></path></g></svg>\n',cancel:Qr,"caret-right":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--caret-right"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 4l4 4-4 4"></path></g></svg>\n',"cc-std":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cc-std"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M7.985 0c2.238 0 4.143.781 5.715 2.343a7.694 7.694 0 011.714 2.579C15.804 5.888 16 6.914 16 8a8.164 8.164 0 01-.579 3.078 7.344 7.344 0 01-1.707 2.536 8.222 8.222 0 01-2.657 1.772c-.99.41-2.014.614-3.071.614a7.775 7.775 0 01-3.036-.607 8.047 8.047 0 01-2.6-1.757A7.846 7.846 0 010 8c0-1.057.202-2.074.607-3.05A8.033 8.033 0 012.371 2.33C3.895.777 5.766 0 7.985 0zm.03 1.443c-1.83 0-3.367.638-4.615 1.914a6.878 6.878 0 00-1.45 2.15A6.301 6.301 0 001.443 8c0 .858.168 1.684.507 2.479a6.627 6.627 0 001.45 2.129 6.593 6.593 0 002.129 1.428c.79.329 1.619.493 2.485.493.857 0 1.688-.166 2.494-.5a6.91 6.91 0 002.178-1.442c1.247-1.22 1.871-2.748 1.871-4.586a6.57 6.57 0 00-.486-2.515 6.397 6.397 0 00-1.413-2.114C11.37 2.086 9.824 1.443 8.014 1.443zm-.1 5.229l-1.073.557c-.114-.238-.254-.405-.42-.5a.95.95 0 00-.465-.143c-.714 0-1.072.472-1.072 1.415 0 .428.09.77.271 1.028.181.257.448.386.8.386.467 0 .796-.229.987-.686l.985.5a2.35 2.35 0 01-2.1 1.257c-.714 0-1.29-.218-1.729-.657-.438-.438-.657-1.047-.657-1.828 0-.762.222-1.367.665-1.814.442-.448 1.002-.672 1.678-.672.991 0 1.7.385 2.13 1.157zm4.613 0l-1.057.557c-.114-.238-.255-.405-.421-.5a.972.972 0 00-.479-.143c-.714 0-1.072.472-1.072 1.415 0 .428.091.77.272 1.028.18.257.447.386.8.386.466 0 .795-.229.985-.686l1 .5c-.218.39-.514.698-.885.922a2.308 2.308 0 01-1.214.335c-.724 0-1.302-.218-1.735-.657-.434-.438-.65-1.047-.65-1.828 0-.762.22-1.367.664-1.814.442-.448 1.002-.672 1.678-.672.99 0 1.696.385 2.114 1.157z"></path></g></svg>\n',"cc-zero":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cc-zero"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M7.983 0c2.238 0 4.148.78 5.72 2.342a7.662 7.662 0 011.715 2.582c.39.962.582 1.99.582 3.076a8.13 8.13 0 01-.583 3.087 7.262 7.262 0 01-1.703 2.526 8.213 8.213 0 01-2.655 1.77c-.99.41-2.018.617-3.076.617a7.902 7.902 0 01-3.042-.6 8.301 8.301 0 01-2.6-1.759A8.087 8.087 0 01.6 11.042 7.84 7.84 0 010 8c0-1.057.2-2.07.6-3.042a8.12 8.12 0 011.77-2.633C3.893.772 5.764 0 7.983 0zm.034 1.44c-1.829 0-3.369.64-4.616 1.915a6.962 6.962 0 00-1.457 2.157 6.388 6.388 0 000 4.969 6.83 6.83 0 003.585 3.558c.79.324 1.62.487 2.488.487.857 0 1.681-.165 2.482-.498a6.88 6.88 0 002.184-1.446C13.931 11.364 14.56 9.838 14.56 8a6.57 6.57 0 00-.487-2.515 6.418 6.418 0 00-1.418-2.118C11.37 2.081 9.826 1.44 8.017 1.44zM8 3.395c2.641 0 3.305 2.492 3.305 4.605 0 2.113-.664 4.605-3.305 4.605S4.694 10.113 4.694 8l.007-.355c.073-2.027.804-4.25 3.299-4.25zm1.316 3.227L7.35 10.017c-.274.412-.083.645.219.774l.135.044c.091.022.19.034.297.034 1.357 0 1.422-1.938 1.422-2.869l-.007-.409a7.282 7.282 0 00-.06-.72l-.04-.25zM8 5.132c-1.258 0-1.406 1.66-1.421 2.646L6.577 8c0 .24.005.544.035.865l.027.244 1.759-3.232c.182-.316.09-.542-.101-.706A1.222 1.222 0 008 5.13z"></path></g></svg>\n',"collapse-menu":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M7.456 4.212a.804.804 0 0 1 1.088 0l6.23 5.867c.301.283.301.742 0 1.025l-.726.684a.804.804 0 0 1-1.087.001L8 7.139l-4.961 4.65a.804.804 0 0 1-1.087-.001l-.727-.684a.695.695 0 0 1 0-1.025l6.23-5.867z"/>\n</svg>',collapsed:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">\n <g transform="matrix(6.12323e-17,1,-1,6.12323e-17,15.9996,0.000432345)">\n <path fill="currentColor" d="M7.456,4.212C7.762,3.931 8.238,3.931 8.544,4.212L14.774,10.079C15.075,10.362 15.075,10.821 14.774,11.104L14.048,11.788C13.742,12.069 13.267,12.069 12.961,11.789L8,7.139L3.039,11.789C2.733,12.069 2.258,12.069 1.952,11.788L1.225,11.104C1.081,10.972 0.999,10.786 0.999,10.592C0.999,10.397 1.081,10.211 1.225,10.079L7.455,4.212L7.456,4.212Z" />\n </g>\n</svg>\n',copy:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--copy"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 15H1V5h3m11-4v10H7V1h8z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>',cursor:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="10px" height="30px" viewBox="0 0 10 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --\x3e\n <title>Shape</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g transform="translate(-239.000000, -73.000000)" fill-rule="nonzero" fill="#000000">\n <g transform="translate(1.000000, 1.000000)">\n <path d="M243.3125,75.186875 C243.3125,73.535 243.3125,72.625 246.434687,72.625 L248,72.625 L248,72 L246.434687,72 C244.324375,72 243.402813,72.4684375 243,73.183125 C242.597187,72.4684375 241.675625,72 239.565313,72 L238,72 L238,72.625 L239.565313,72.625 C242.6875,72.6246875 242.6875,73.5346875 242.6875,75.186875 L242.6875,82 L242.6875,86.6875 L240.929375,86.6875 L240.929375,87.3125 L242.6875,87.3125 L242.6875,92 L242.6875,98.5434375 C242.6875,100.187188 242.6875,101.375 239.565313,101.375 L238,101.375 L238,102 L239.565313,102 C241.675625,102 242.5975,101.442813 243,100.6525 C243.402813,101.442813 244.324375,102 246.434687,102 L248,102 L248,101.375 L246.434687,101.375 C243.3125,101.374688 243.3125,100.187188 243.3125,98.5434375 L243.3125,91.9996875 L243.3125,87.3121875 L245.070312,87.3121875 L245.070312,86.6871875 L243.3125,86.6871875 L243.3125,81.9996875 L243.3125,75.186875 Z"></path>\n </g>\n </g>\n </g>\n</svg>\n',edit:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--edit"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 4l1 1-9 9-2 1 1-2 9-9zm3-3l1 1-1 1-1-1 1-1z"></path></g></svg>\n',email:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--email"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 3v10h14V3H1zm0 0l7 6 7-6H1z"></path></g></svg>\n',"expand-menu":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M7.456 11.788L1.226 5.92a.695.695 0 0 1 0-1.025l.726-.684a.804.804 0 0 1 1.087-.001L8 8.861l4.961-4.65a.804.804 0 0 1 1.087.001l.727.684c.3.283.3.742 0 1.025l-6.23 5.867a.804.804 0 0 1-1.09 0z"/>\n</svg>',error:Qr,external:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--external"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3h6v6m-1-5l-9 9 9-9z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>',facebook:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--social-facebook"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M15.999 8.049c0-4.445-3.582-8.049-8-8.049S0 3.604 0 8.049C0 12.066 2.925 15.396 6.75 16v-5.624H4.717V8.049H6.75V6.276c0-2.018 1.195-3.132 3.022-3.132.875 0 1.79.157 1.79.157v1.981h-1.008c-.994 0-1.304.62-1.304 1.257v1.51h2.219l-.355 2.327H9.25V16c3.825-.604 6.75-3.934 6.75-7.951z"></path></g></svg>\n',flag:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--flag"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 9v6V1h12l-4 4 4 4H3z"></path></g></svg>\n',"flag--active":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--flag-filled"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M2 1a1 1 0 01.883-.993L3 0h12c.852 0 1.297.986.783 1.623l-.076.084L12.415 5l3.292 3.293c.575.575.253 1.523-.485 1.684l-.108.017L15 10H4v5a1 1 0 01-1.993.117L2 15V1z"></path></g></svg>\n',"format-bold":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-type-bold"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M8.661 16c.805 0 1.536-.117 2.193-.351a4.953 4.953 0 001.69-.993c.47-.428.831-.947 1.081-1.557s.375-1.287.375-2.03c0-.29-.038-.588-.114-.893a4.123 4.123 0 00-.325-.87 3.937 3.937 0 00-.495-.754 4.412 4.412 0 00-.604-.597c-.17-.126-.17-.264 0-.412.381-.335.699-.772.953-1.311.254-.54.382-1.062.382-1.568 0-.64-.132-1.244-.394-1.813a4.628 4.628 0 00-1.081-1.484c-.458-.42-1-.753-1.627-.999A5.531 5.531 0 008.66 0h-6.14a.534.534 0 00-.362.14A.415.415 0 002 .456v15.086c0 .119.053.225.159.318.106.093.227.139.362.139h6.14zm-.127-9.852H5.826c-.17 0-.254-.075-.254-.223V3.437c0-.157.085-.235.254-.235h2.708c.45 0 .847.145 1.195.435.347.29.521.633.521 1.027 0 .394-.174.74-.521 1.038a1.784 1.784 0 01-1.195.446zm0 6.65H5.826c-.17 0-.254-.075-.254-.223v-2.99c0-.157.085-.235.254-.235h2.708c.56 0 1.004.177 1.335.53.33.353.495.75.495 1.188 0 .454-.165.856-.495 1.205-.33.35-.776.525-1.335.525z"></path></g></svg>\n',"format-functions":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-latex"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M13.392 16c.158 0 .299-.036.423-.108.123-.073.185-.155.185-.248v-1.778c0-.099-.062-.183-.185-.252a.848.848 0 00-.423-.104H6.85c-.138 0-.227-.028-.267-.083-.04-.055-.04-.105 0-.152l5.533-5.101c.158-.14.223-.265.193-.378a.755.755 0 00-.193-.325L6.88 2.707c-.04-.046-.042-.094-.007-.143.034-.05.13-.074.289-.074h6.17a.782.782 0 00.416-.108c.119-.073.178-.155.178-.248V.356c0-.093-.06-.175-.178-.248A.782.782 0 0013.333 0H2.905c-.158 0-.3.036-.423.108-.124.073-.185.155-.185.248v1.943c0 .128.037.236.11.326l.171.204 5.31 4.815c.04.047.065.106.075.178a.221.221 0 01-.074.195l-5.622 5.154c-.04.047-.094.113-.163.2A.512.512 0 002 13.7v1.943c0 .093.062.175.185.248a.822.822 0 00.423.108h10.784z"></path></g></svg>\n',"format-italic":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-type-italic"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M10.61 16c.12 0 .23-.046.329-.14a.633.633 0 00.191-.317l.457-2.176a.348.348 0 00-.064-.313.336.336 0 00-.276-.133H8.845c-.142-.008-.198-.086-.17-.235l1.892-9.372c.035-.149.124-.223.266-.223H13a.49.49 0 00.335-.14.62.62 0 00.196-.318L13.99.457a.542.542 0 00.011-.1.337.337 0 00-.085-.223.336.336 0 00-.276-.134H5.805a.49.49 0 00-.335.14.62.62 0 00-.196.317l-.457 2.176a.353.353 0 00.069.318c.074.093.168.14.281.14h2.18c.141 0 .198.074.17.223l-1.893 9.372c-.028.156-.113.235-.255.235H2.967a.489.489 0 00-.324.133.59.59 0 00-.197.313l-.435 2.176a.542.542 0 00-.011.1c0 .082.025.156.074.223.071.09.16.134.266.134h8.27z"></path></g></svg>\n',"format-list-numbered":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--list-ordered"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M2.748 11.5c.227 0 .443.034.646.103.203.069.381.164.534.286.155.123.276.267.364.432.089.168.134.35.134.543 0 .17-.042.333-.124.484a1.384 1.384 0 01-.19.269l-.062.061.047.035c.047.041.09.086.13.134l.058.075.075.122c.093.172.14.352.14.538 0 .201-.048.39-.143.566a1.44 1.44 0 01-.384.45c-.16.125-.344.223-.554.294-.21.072-.434.108-.67.108-.237 0-.461-.036-.671-.108a1.871 1.871 0 01-.555-.295 1.42 1.42 0 01-.382-.45 1.178 1.178 0 01-.132-.417L1 14.582l.002-.078.01-.05a.249.249 0 01.077-.111.283.283 0 01.121-.06l.07-.008h.708l.05.007c.044.01.084.028.12.056a.24.24 0 01.089.133l.006.054v.047l.005.077a.279.279 0 00.112.186c.088.066.213.101.378.101a.615.615 0 00.376-.102.29.29 0 00.12-.252.29.29 0 00-.12-.252.538.538 0 00-.262-.096l-.114-.007h-.1l-.051-.007a.292.292 0 01-.12-.059.244.244 0 01-.087-.13l-.006-.053.001-.57.01-.05a.249.249 0 01.078-.112.283.283 0 01.121-.06l.07-.008h.076l.112-.006a.454.454 0 00.224-.086.26.26 0 00.104-.222.246.246 0 00-.103-.213.533.533 0 00-.329-.09.527.527 0 00-.324.09.24.24 0 00-.098.148l-.006.065-.002.11-.01.05a.249.249 0 01-.081.112.292.292 0 01-.12.059l-.066.007h-.712l-.052-.007a.292.292 0 01-.12-.059.244.244 0 01-.087-.13l-.006-.054v-.096l.008-.135c.018-.141.062-.275.132-.402.091-.164.213-.307.366-.43.152-.122.33-.217.533-.286.203-.069.418-.103.645-.103zM15 13a1 1 0 01.117 1.993L15 15H7a1 1 0 01-.117-1.993L7 13h8zM2.777 5.5c.234 0 .454.034.66.101.207.068.389.164.544.288.156.124.28.27.372.437.093.17.14.355.14.551 0 .19-.049.37-.145.542-.07.123-.156.237-.258.34l-.108.1L2.71 8.932l1.52.001.053.006c.044.01.084.029.12.056.047.036.078.08.091.132l.007.054-.002.59-.01.05a.25.25 0 01-.083.113.298.298 0 01-.121.059L4.216 10H1.27l-.053-.007a.298.298 0 01-.122-.059.246.246 0 01-.089-.132L1 9.748v-.711l.004-.05a.26.26 0 01.04-.115l.034-.043.035-.033L3.04 7.167l.036-.036a.98.98 0 00.08-.114.295.295 0 00.055-.145.27.27 0 00-.099-.21c-.068-.062-.167-.094-.303-.094-.163 0-.285.032-.369.093a.244.244 0 00-.103.147l-.006.064-.002.123-.01.052a.25.25 0 01-.084.112.298.298 0 01-.12.058l-.069.008h-.726l-.053-.007a.298.298 0 01-.121-.059.246.246 0 01-.09-.132l-.006-.054V6.87l.01-.137c.017-.143.063-.28.135-.407.094-.167.22-.313.379-.437.157-.123.339-.219.544-.287.206-.067.425-.101.658-.101zM15 7a1 1 0 01.117 1.993L15 9H7a1 1 0 01-.117-1.993L7 7h8zM3.237 0l.052.008c.044.01.084.031.12.061a.248.248 0 01.083.132l.006.052-.004 3.167.744.001.051.007c.044.01.084.03.119.058.044.036.074.08.086.132l.006.053-.001.595-.01.05a.278.278 0 01-.197.176l-.07.008H1.29l-.051-.008a.287.287 0 01-.12-.061.248.248 0 01-.084-.132l-.006-.052.001-.596.01-.05a.247.247 0 01.077-.113.28.28 0 01.12-.06l.069-.008.932.002.003-1.959-.796.629-.068.037a.295.295 0 01-.196-.002.25.25 0 01-.172-.179L1 1.881v-.587l.007-.089.015-.075a.345.345 0 01.073-.132l.06-.059.83-.758.04-.036A.994.994 0 012.139.07a.498.498 0 01.183-.062L2.428 0h.809zM15 1a1 1 0 01.117 1.993L15 3H7a1 1 0 01-.117-1.993L7 1h8z"></path></g></svg>\n',"format-list-unordered":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--list-unordered"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M15 1a1 1 0 01.117 1.993L15 3H7a1 1 0 01-.117-1.993L7 1h8zm0 6a1 1 0 01.117 1.993L15 9H7a1 1 0 01-.117-1.993L7 7h8zM2 12a2 2 0 110 4 2 2 0 010-4zm13 1a1 1 0 01.117 1.993L15 15H7a1 1 0 01-.117-1.993L7 13h8zM2 6a2 2 0 110 4 2 2 0 010-4zm0-6a2 2 0 110 4 2 2 0 010-4z"></path></g></svg>\n',"format-quote":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-quote"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M2.701 14c.38 0 .659-.085.837-.255.177-.17.328-.343.45-.52l2.408-3.25c.246-.328.445-.725.598-1.19a4.69 4.69 0 00.23-1.475V2.775a.752.752 0 00-.23-.539A.713.713 0 006.47 2H1.947a.713.713 0 00-.524.236.752.752 0 00-.23.539v4.649c0 .214.077.396.23.548a.726.726 0 00.524.226h.901c.123 0 .23.054.322.161.092.107.101.224.028.35l-2.041 3.817c-.196.365-.208.702-.037 1.011.172.309.447.463.827.463h.754zm7.795 0c.367 0 .64-.085.818-.255.178-.17.328-.343.45-.52l2.409-3.25c.257-.328.46-.725.606-1.19A4.87 4.87 0 0015 7.31V2.775a.752.752 0 00-.23-.539.713.713 0 00-.524-.236H9.742a.703.703 0 00-.533.236.767.767 0 00-.22.539v4.649c0 .214.076.396.23.548a.726.726 0 00.523.226h.9c.123 0 .228.054.313.161.086.107.092.224.019.35L8.95 12.526c-.208.365-.223.702-.045 1.011.177.309.456.463.836.463h.754z"></path></g></svg>\n',groups:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--groups"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 15a3 3 0 0 1 6 0m2-4a3 3 0 0 1 6 0M4 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm8-4a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>\n',help:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--help"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4c0-1.657 1.79-3 4-3s4 1.343 4 3-1.79 3-4 3m0 0v2-2zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>\n',highlight:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15H1h11zm-.5-6v2l-1 1v-2l1-1zm.5-7v6h-2V2h2zm0-1h-2 2zm0 8h-2 2z"></path></g></svg>\n',image:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--image"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 1v14H1V1h14zM1 15l3-8 4 6 3-4 4 6m-4-9a1 1 0 110-2 1 1 0 010 2z"></path></g></svg>\n',leave:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M8 0c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14.452A6.45 6.45 0 0 0 14.452 8 6.45 6.45 0 0 0 8 1.548 6.45 6.45 0 0 0 1.548 8 6.45 6.45 0 0 0 8 14.452zm3.284-8.458L9.277 8l2.007 2.006a.387.387 0 0 1 0 .549l-.73.729a.387.387 0 0 1-.548 0L8 9.277l-2.006 2.007a.387.387 0 0 1-.549 0l-.729-.73a.387.387 0 0 1 0-.548L6.723 8 4.716 5.994a.387.387 0 0 1 0-.549l.73-.729a.387.387 0 0 1 .548 0L8 6.723l2.006-2.007a.387.387 0 0 1 .549 0l.729.73a.387.387 0 0 1 0 .548z"/>\n</svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--link"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.069 3.042l1.057-1.274c1.193-1.106 3.035-.938 4.046 0 1.012.94 1.193 2.649 0 3.755L11.046 9.17m0 0c-1.193 1.107-2.853 1.107-4.046 0m-.069 3.788l-1.057 1.274c-1.193 1.106-3.035.938-4.046 0-1.012-.94-1.193-2.649 0-3.755L4.954 6.83m0 0C6.147 5.723 7.807 5.723 9 6.8"></path></g></svg>\n',lock:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="48px" height="56px" viewBox="0 0 48 56" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <rect x="0" y="24" width="48" height="32"></rect>\n <path d="M24,0 C24,0 8,0 8,16 L8,32 L16,32 L16,16.0000004 C16,8 24,8 24,8 C24,8 32,8 32,16 L32,32 L40,32 L40,16 C40,0 24,0 24,0 Z"></path>\n </g>\n </g>\n</svg>\n',logo:eo,pointer:'<svg xmlns="http://www.w3.org/2000/svg" width="15" height="8" viewBox="0 0 15 8" aria-hidden="true" focusable="false"><path d="M0 8 L7 0 L15 8" stroke="currentColor" strokeWidth="2" /></svg>\n',profile:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--profile"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 15c0-2.761 3.134-5 7-5s7 2.239 7 5M8 7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"></path></g></svg>\n',public:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm2.655 11.535c.244-.242.442-.719.442-1.063a1.13 1.13 0 0 0-.288-.696l-.442-.442a1.033 1.033 0 0 0-.73-.302H7.484C7.181 8.88 6.791 8 6.452 8c-.34 0-.674-.08-.978-.231l-.357-.179a.386.386 0 0 1-.213-.345c0-.153.118-.317.263-.366l1.006-.335a.618.618 0 0 1 .163-.026c.106 0 .258.056.338.126l.3.26c.046.04.106.063.169.063h.182a.258.258 0 0 0 .23-.373l-.503-1.006a.306.306 0 0 1-.027-.116c0-.06.035-.143.078-.185l.32-.31a.258.258 0 0 1 .18-.074h.29c.06 0 .141-.034.183-.076l.258-.258c.1-.1.1-.264 0-.364l-.151-.152c-.101-.1-.101-.264 0-.365l.333-.333.151-.151a.516.516 0 0 0 0-.73l-.912-.913a6.45 6.45 0 0 0-.787.078v.365a.516.516 0 0 1-.747.461l-.775-.387a6.487 6.487 0 0 0-3.329 3.287c.32.474.813 1.205 1.116 1.65.138.203.4.503.582.668l.026.023c.308.278.65.516 1.021.702.452.227 1.111.586 1.575.842.328.182.53.527.53.903v1.032c0 .274.11.537.303.73.484.484.785 1.246.73 1.653v.884c.473 0 .932-.055 1.376-.152l.56-1.511c.067-.177.106-.362.155-.544a.771.771 0 0 1 .199-.346l.365-.364zm2.797-2.946l.94.235c.036-.27.06-.544.06-.824a6.4 6.4 0 0 0-.688-2.882l-.419.21a.773.773 0 0 0-.298.263l-.632.947a.908.908 0 0 0-.13.43c0 .13.058.321.13.43l.58.87c.107.16.27.274.457.32z"/>\n</svg>\n',refresh:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch --\x3e\n <defs/>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <g>\n <path d="M0,8 C0,12.418278 3.581722,16 8,16 C12.418278,16 16,12.418278 16,8 C16,4.89580324 14.2154684,2.11256098 11.4682644,0.789110134 L10.6002482,2.59092808 C12.661769,3.58405472 14,5.6712248 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,5.65296151 3.35941993,3.55225774 5.44569583,2.56903563 L4.59307587,0.759881355 C1.81273067,2.07020511 0,4.87140735 0,8 Z" />\n <polygon points="7 8.58578644 7 0 9 0 9 8.58578644 10.2928932 7.29289322 11 6.58578644 12.4142136 8 11.7071068 8.70710678 8.70710678 11.7071068 8 12.4142136 7.64644661 12.0606602 7.29289322 11.7071068 4.29289322 8.70710678 3.58578644 8 5 6.58578644 5.70710678 7.29289322"/>\n </g>\n </g>\n </g>\n</svg>\n',restricted:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 1C4.5 1 1 4.5 1 8s3.5 7 7 7 7-3.5 7-7-3.5-7-7-7zm0 7l-4 4 4-4 4-4-4 4z"></path></g></svg>\n',reply:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M6.422 5.422c2 0 3.542.417 4.625 1.25 1.083.833 1.875 1.75 2.375 2.75s.792 1.917.875 2.75l.125 1.25h-2l-.094-.938c-.062-.625-.281-1.312-.656-2.062-.375-.75-.969-1.438-1.781-2.063-.813-.625-1.97-.937-3.47-.937H4.829l2 2-1.406 1.422L1 6.422 5.422 2l1.406 1.422-2 2h1.594z"/>\n</svg>\n',search:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--search"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.536 9.536a5 5 0 1 1-7.071-7.071 5 5 0 0 1 7.07 7.07L15 15 9.536 9.536z"></path></g></svg>\n',share:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--share"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 11V2m7 8v5H1v-5m3-5l4-4 4 4"></path></g></svg>\n',success:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class="Icon Icon--check"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 3L6 13 3 8"></path></g></svg>\n',sort:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--sort"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 9V2v7zM1 5l4-4 4 4m2 2v7-7zm-4 4l4 4 4-4"></path></g></svg>\n',trash:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--trash"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2 4h12l-2 11H4L2 4zM1 1h14H1z"></path></g></svg>\n',twitter:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--social-twitter"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M15.969 3.049c-.59.259-1.22.436-1.884.516a3.305 3.305 0 0 0 1.442-1.815c-.634.37-1.336.64-2.084.79a3.28 3.28 0 0 0-5.59 2.988 9.29 9.29 0 0 1-6.76-3.418A3.214 3.214 0 0 0 .65 3.76c0 1.14.58 2.142 1.459 2.73a3.27 3.27 0 0 1-1.485-.41v.04a3.282 3.282 0 0 0 2.63 3.218 3.33 3.33 0 0 1-1.474.057 3.291 3.291 0 0 0 3.069 2.278A6.578 6.578 0 0 1 .78 13.076c-.26 0-.52-.015-.78-.044a9.33 9.33 0 0 0 5.038 1.472c6.036 0 9.332-4.997 9.332-9.323 0-.14 0-.28-.01-.42.64-.46 1.2-1.04 1.64-1.7l-.031-.012z"></path></g></svg>\n'},no="featureFlagsUpdated",ro="helpRequested",oo="loginRequested",io="logoutRequested",ao="profileRequested",so="publicAnnotationCountChanged",lo="signupRequested";async function co({title:e="Confirm",message:t,confirmAction:n="Yes"}){const r=document.createElement("div");return r.setAttribute("data-testid","confirm-container"),r.style.position="relative",r.style.zIndex="10",document.body.appendChild(r),new Promise((o=>{const i=e=>{L(null,r),r.remove(),o(e)};L(Er(Vr,{title:e,message:t,confirmAction:n,onConfirm:()=>i(!0),onCancel:()=>i(!1)}),r)}))}const uo=function(e,t){var n={__c:t="__cC"+i++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(g)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}({get(e){throw new Error(`Missing ServiceContext provider to provide "${e}" prop`)}});function ho(e,t){function n(n){const r=_r(uo),o={};for(let e of t)e in n||(o[e]=r.get(e));return Er(e,{...o,...n})}const r=e.displayName||e.name;return n.displayName=`withServices(${r})`,n}class po{constructor(e,t,n,r){this.name=e,this.method=t,this.args=n,this.result=r}matches(e,t){return this.name===e&&this.args.every(((e,n)=>t[n]===e))}}function mo(){const e=(t="store",_r(uo).get(t));var t;const[,n]=pr((e=>e+1),0),r=gr([]).current,o=gr(null);if(!o.current){const t={},n=(e,n)=>{const o=e[n];if("function"!=typeof o)return o;let i=t[n];return i||(i=(...t)=>{const i=r.find((e=>e.matches(n,t)));if(i)return i.result;const a=e.getState(),s=o.apply(e,t);return a===e.getState()&&r.push(new po(n,o,t,s)),s},t[n]=i,i)};o.current=new Proxy(e,{get:n})}return mr((()=>e.subscribe((()=>{r.find((t=>t.method.apply(e,t.args)!==t.result))&&(r.splice(0,r.length),n(0))}))),[r,e]),o.current}function fo(e){if(!e)return null;const t=e.match(/^acct:([^@]+)@(.+)/);return t?{username:t[1],provider:t[2]}:null}function go(e){const t=fo(e);return t?t.username:""}function vo(e,t){const n=fo(e);return!!n&&n.provider!==t}const yo={accentColor:"color",appBackgroundColor:"backgroundColor",ctaBackgroundColor:"backgroundColor",ctaTextColor:"color",selectionFontFamily:"fontFamily",annotationFontFamily:"fontFamily"};function _o(e,t){const n={};if(!t.branding)return n;const{branding:r}=t;return e.forEach((e=>{const t=yo[e],o=r[e];t&&o&&(n[t]=o)})),n}const bo={collapsed:!1,depth:0,visible:!0,replyCount:0};function wo(e){return e.id||e.$tag}function xo(e,t,n){return!(!e[n]||e[n].parent===t)&&(!e[n].parent||xo(e,t,e[n].parent))}function ko(e,t,n=[]){if(e[t].parent||!n.length)return;const r=n[n.length-1];e[r]||(e[r]={...bo,children:[],id:r},ko(e,r,n.slice(0,-1))),xo(e,t,r)&&(e[t].parent=r,e[r].children.push(e[t]))}function So(e,t){return Object.assign({},t(e),{children:e.children.map((e=>So(e,t)))})}function Ao(e,t,n){const r=e.children.map((e=>Ao(e,n,n))).slice().sort(t);return{...e,children:r}}function Eo(e,t){const n=e.children.map((e=>Eo(e,t+1))),r=n.reduce(((e,t)=>e+1+t.replyCount),0);return{...e,children:n,depth:t,replyCount:r}}function To(e){return e.children.some((e=>e.visible||To(e)))}const Co=(e,t)=>e.annotation&&t.annotation?e.annotation.created<t.annotation.created?-1:e.annotation.created>t.annotation.created?1:0:0;function No(e,t){const n=t.selected.length>0,r=t.forcedVisible.length>0;let o=function(e){const t={};e.forEach((e=>{const n=wo(e);t[n]={...bo,children:[],annotation:e,id:n}})),e.forEach((e=>{const n=(e.references||[]).filter((t=>t!==e.id));return ko(t,wo(e),n)}));const n=[];for(const e in t)t[e].parent||(t[e].collapsed=!0,n.push(t[e]));return{...bo,id:"root",children:n}}(e);return n&&(o.children=o.children.filter((e=>{const n=t.selected.includes(e.id),o=r&&t.forcedVisible.includes(e.id);return n||o}))),t.threadFilterFn&&(o.children=o.children.filter(t.threadFilterFn)),o.visible=!1,o=So(o,(e=>{let n=e.visible;return t.filterFn&&(n=!(!r||!t.forcedVisible.includes(e.id))||!!e.annotation&&!!t.filterFn(e.annotation)),{...e,visible:n}})),o.children=o.children.filter((e=>e.visible||To(e))),o=So(o,(e=>{const n={collapsed:e.collapsed};if(t.expanded.hasOwnProperty(e.id))n.collapsed=!t.expanded[e.id];else{const r=t.filterFn&&To(e);n.collapsed=e.collapsed&&!r}return{...e,...n}})),o=Ao(o,t.sortCompareFn,Co),o=Eo(o,-1),o}function Mo(e){const t=e.slice(0,e.indexOf(":"));if(!t)return[null,e];if(["group","quote","since","tag","text","uri","user"].includes(t)){return[t,e.slice(t.length+1)]}return[null,e]}function Lo(e){if(!e)return[];const t=function(e){const t=e.slice(0,1),n=e.slice(-1);return'"'!==t&&"'"!==t||t!==n||(e=e.slice(1,e.length-1)),e};let n=e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g)||[];n=n.map(t);for(let e=0;e<n.length;e++){const r=n[e],[o,i]=Mo(r);o&&(n[e]=o+":"+t(i))}return n}function Io(e){const t={},n=e=>"tag"===e?"tags":e,r=(e,n)=>t[e]?t[e].push(n):t[e]=[n];if(e){const t=Lo(e);for(const e of t){let[t,o]=Mo(e);t||(t="any",o=e),r(n(t),o)}}return t}function zo(e){const t=e.uri;let n;try{n=new URL(t).hostname}catch{n=""}"localhost"===n&&(n="");let r=n;return e.document&&e.document.title&&(r=e.document.title[0]),{uri:t,domain:n,title:r}}function Oo(e){let t=e.uri;return t&&0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=null),e.links&&e.links.incontext&&(t=e.links.incontext),t}function Po(e){const t=zo(e);let n="";if(t.uri&&0===t.uri.indexOf("file://")&&t.title){const e=t.uri.split("/"),r=e[e.length-1];r&&(n=r)}else t.domain&&t.domain!==t.title&&(n=t.domain);return n}function Ro(e){let t=zo(e).title;return t.length>30&&(t=t.slice(0,30)+"…"),t}function Do(e){return(e.references||[]).length>0}function Bo(e){return!e.id}function Fo(e){let t=!1;return e.permissions?(e.permissions.read.forEach((e=>{const n=e.split(":");2===n.length&&"group"===n[0]&&(t=!0)})),t):t}function jo(e){return!!(e.target&&e.target.length>0&&e.target[0].selector)}function Ho(e){return jo(e)&&void 0===e.$orphan&&!e.$anchorTimeout}function Uo(e){return!!e.hidden}function qo(e){return!!e.$highlight||!Bo(e)&&!(Go(e)||Do(e)||e.hidden||e.text||e.tags&&e.tags.length)}function $o(e){return jo(e)&&!0===e.$orphan}function Go(e){return!jo(e)&&!Do(e)}function Vo(e){return!(!jo(e)||$o(e))}function Wo(e){if(e){const t=e.target||[];for(let e=0;e<t.length;e++){const n=t[e].selector||[];for(const e of n)if("TextPositionSelector"===e.type)return e.start}}return Number.POSITIVE_INFINITY}function Yo(e){if(0===e.target.length)return null;const t=e.target[0];if(!t.selector)return null;const n=t.selector.find((e=>"TextQuoteSelector"===e.type));return n?n.exact:null}const Ko=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D02\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1DC0-\u1DE6\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE26]/g;function Xo(e){return"string"!=typeof e?e:function(e){return e.replace(Ko,"")}((t=e,t.normalize("NFKD"))).toLowerCase();var t}class Jo{constructor(e,t,n){this.field=e,this.term=t,this.checker=n}matches(e){const t=this.checker;if(t.autofalse&&t.autofalse(e))return!1;let n=t.value(e);return n=Array.isArray(n)?n.map(Xo):Xo(n),t.match(this.term,n)}}class Zo{constructor(e,t){this.operator=e,this.filters=t}matches(e){return"and"===this.operator?this.filters.every((t=>t.matches(e))):this.filters.some((t=>t.matches(e)))}}const Qo={quote:{autofalse:e=>(e.references||[]).length>0,value:e=>Yo(e)||"",match:(e,t)=>t.indexOf(e)>-1},since:{autofalse:e=>"string"!=typeof e.updated,value:e=>new Date(e.updated),match:(e,t)=>(Date.now()-t)/1e3<=e},tag:{autofalse:e=>!Array.isArray(e.tags),value:e=>e.tags,match:(e,t)=>t.includes(e)},text:{autofalse:e=>"string"!=typeof e.text,value:e=>e.text,match:(e,t)=>t.indexOf(e)>-1},uri:{autofalse:e=>"string"!=typeof e.uri,value:e=>e.uri,match:(e,t)=>t.indexOf(e)>-1},user:{autofalse:e=>"string"!=typeof e.user,value:e=>e.user+" "+function(e){return e.user_info&&e.user_info.display_name||""}(e),match:(e,t)=>t.indexOf(e)>-1}};function ei(e){return $o(e)?"orphan":Go(e)?"note":"annotation"}function ti(e,t){const n=e.visible===t;return e.children.reduce(((e,n)=>e+ti(n,t)),n?1:0)}function ni(e){return ti(e,!1)}function ri(e){return ti(e,!0)}function oi(e){const t=e.filter((e=>!!e.annotation)).map((e=>e.annotation));if(t.length)return t;const n=[];if(e.forEach((e=>{e.children&&n.push(...e.children)})),n.length)return oi(n);throw new Error("Thread contains no annotations")}function ii(e){return oi([e]).reduce(((e,t)=>t.created>e?t.created:e),"")}function ai(e){return oi([e]).reduce(((e,t)=>(e||(e=t.created),t.created<e?t.created:e)),"")}const si={Newest:function(e,t){const n=ii(e),r=ii(t);return n>r?-1:n<r?1:0},Oldest:function(e,t){const n=ai(e),r=ai(t);return n<r?-1:n>r?1:0},Location:function(e,t){if(!e.annotation||!t.annotation)return function(e,t){return e.annotation||t.annotation?e.annotation?1:-1:0}(e,t);const n=Wo(e.annotation),r=Wo(t.annotation);return n<r?-1:n>r?1:0}};const li=function(e){if(1!==e.length)throw new Error("Memoize input must be a function of one argument");let t,n;return function(r){return r===t||(t=r,n=e(r)),n}}((function(e){const t=e.selection,n={expanded:t.expanded,forcedVisible:t.forcedVisible,selected:t.selected,sortCompareFn:si[t.sortKey]},r=!!t.filterQuery||Object.keys(t.filters).length>0;if(r){const e=function(e,t={}){let n;const r=[],o=[],i=[],a=[],s=[],l=[],c=t.user?[t.user]:[];if(e){n=Lo(e);for(const e of n){const t=e.slice(0,e.indexOf(":")),n=e.slice(t.length+1);switch(t){case"quote":o.push(n);break;case"since":{const t=86400,n={sec:1,min:60,hour:3600,day:t,week:7*t,month:30*t,year:365*t},r=e.slice(6).toLowerCase().match(/^(\d+)(sec|min|hour|day|week|month|year)?$/);if(r){const e=parseFloat(r[1]),t=r[2]||"sec";i.push(e*n[t])}}break;case"tag":a.push(n);break;case"text":s.push(n);break;case"uri":l.push(n);break;case"user":c.push(n);break;default:r.push(e)}}}return{any:{terms:r,operator:"and"},quote:{terms:o,operator:"and"},since:{terms:i,operator:"and"},tag:{terms:a,operator:"and"},text:{terms:s,operator:"and"},uri:{terms:l,operator:"or"},user:{terms:c,operator:"or"}}}(t.filterQuery||"",t.filters);n.filterFn=t=>function(e,t){const n=Object.entries(t).filter((([,e])=>e.terms.length>0)).map((([e,t])=>{const n=t.terms.map(Xo);let r;if("any"===e){const e=["quote","text","tag","user"];r=n.map((t=>new Zo("or",e.map((e=>new Jo(e,t,Qo[e]))))))}else r=n.map((t=>new Jo(e,t,Qo[e])));return new Zo(t.operator,r)})),r=new Zo("and",n);return e.filter((e=>e.id&&r.matches(e))).map((e=>e.id))}([t],e).length>0}return!r&&"sidebar"===e.route&&(n.threadFilterFn=e=>{return!!e.annotation&&(n=e.annotation,r=t.selectedTab,!Ho(n)&&ei(n)===r);var n,r}),No(e.annotations,n)}));function ci(){const e=mo(),t=e.allAnnotations(),n=e.filterQuery(),r=e.route(),o=e.selectionState(),i=e.getFilterValues(),a=vr((()=>({annotations:t,route:r,selection:{...o,filterQuery:n,filters:i}})),[t,n,r,o,i]);return li(a)}var ui=/^\s+|\s+$/g,hi=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,pi=/^0o[0-7]+$/i,mi=parseInt,fi="object"==typeof jn&&jn&&jn.Object===Object&&jn,gi="object"==typeof self&&self&&self.Object===Object&&self,vi=fi||gi||Function("return this")(),yi=Object.prototype.toString,_i=Math.max,bi=Math.min,wi=function(){return vi.Date.now()};function xi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ki(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==yi.call(e)}(e))return NaN;if(xi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=xi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ui,"");var n=di.test(e);return n||pi.test(e)?mi(e.slice(2),n?2:8):hi.test(e)?NaN:+e}var Si=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){return c=e,s=setTimeout(g,t),u?p(e):a}function f(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-c>=i}function g(){var e=wi();if(f(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return h?bi(n,i-(e-c)):n}(e))}function v(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=wi(),n=f(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return m(l);if(h)return s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=ki(t)||0,xi(n)&&(u=!!n.leading,i=(h="maxWait"in n)?_i(ki(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?a:v(wi())},y};class Ai{constructor(){this._listeners=[]}add(e,t,n,r){e.addEventListener(t,n,r),this._listeners.push({eventTarget:e,eventType:t,listener:n})}removeAll(){this._listeners.forEach((({eventTarget:e,eventType:t,listener:n})=>{e.removeEventListener(t,n)})),this._listeners=[]}}const Ei={defaultHeight:200,marginAbove:800,marginBelow:800};function Ti(e){const t=window.getComputedStyle(e);return e.getBoundingClientRect().height+(parseFloat(t.marginTop)+parseFloat(t.marginBottom))}function Ci(e){return/^http(s?):/i.test(e)}function Ni(e){return{read:[e],update:[e],delete:[e]}}function Mi(e,t){return Object.assign(Ni(e),{read:["group:"+t]})}function Li(e,t,n){return"private"===function(e){switch(e){case"private":case"shared":return e;default:return"shared"}}(n)&&e?Ni(e):Mi(e,t)}function Ii(e){return e.read.some((e=>0===e.indexOf("group:")))}function zi(e){return!Ii(e)}function Oi(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("data-testid","copy-text"),t.contentEditable="true",document.body.appendChild(t),t.focus();try{const e=document.createRange(),n=document.getSelection();n.removeAllRanges(),e.selectNodeContents(t),n.addRange(e),t.setSelectionRange(0,t.value.length),document.execCommand("copy")}finally{t.remove()}}function Pi({label:e,iconName:t,uri:n}){return Er("li",{className:"ShareLinks__link",children:Er("a",{"aria-label":e,href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:Er(Cr,{name:t,className:"ShareLinks__icon"})})})}function Ri({shareURI:e}){const t=encodeURIComponent(e);return Er("ul",{className:"ShareLinks",children:[Er(Pi,{iconName:"twitter",label:"Tweet share link",uri:`https://twitter.com/intent/tweet?url=${t}&hashtags=annotated`}),Er(Pi,{iconName:"facebook",label:"Share on Facebook",uri:`https://www.facebook.com/sharer/sharer.php?u=${t}`}),Er(Pi,{iconName:"email",label:"Share via email",uri:`mailto:?subject=${encodeURIComponent("Let's Annotate")}&body=${t}`})]})}function Di(){return((e=window.navigator,t="ontouchend"in document)=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(e.platform)||e.userAgent.includes("Mac")&&t)()}var Bi=ho((function({annotation:e,toastMessenger:t,group:n,shareUri:r}){const o=zi(e.permissions),i=Ci(e.uri),a=gr(null),s=gr(null),[l,c]=dr(!1),u=gr(l);if(qr(a,l,(()=>c(!1))),mr((()=>{var e,t;u.current!==l&&(u.current=l,l&&!Di()&&(null===(e=s.current)||void 0===e||e.focus(),null===(t=s.current)||void 0===t||t.select()))}),[l]),!n)return null;const h=i,d="private"===n.type?Er("span",{children:["Only members of the group ",Er("em",{children:n.name})," may view this annotation."]}):Er("span",{children:"Anyone using this link may view this annotation."}),p=o?Er("span",{children:"Only you may view this annotation."}):d;return Er("div",{className:"AnnotationShareControl",ref:a,children:[Er(Ir,{icon:"share",title:"Share",onClick:()=>c(!l),expanded:l}),l&&Er("div",{className:"annotation-share-panel",children:[Er("div",{className:"annotation-share-panel__header",children:Er("div",{className:"annotation-share-panel__title",children:"Share this annotation"})}),Er("div",{className:"annotation-share-panel__content",children:[Er("div",{className:"hyp-u-layout-row annotation-share-panel__inputs",children:Er(Zr,{children:[Er(Jr,{"aria-label":"Use this URL to share this annotation",type:"text",value:r,readOnly:!0,inputRef:s}),Er(Ir,{icon:"copy",title:"Copy share link to clipboard",onClick:()=>{try{Oi(r),t.success("Copied share link to clipboard")}catch(e){t.error("Unable to copy link")}},variant:"dark"})]})}),Er("div",i?{className:"annotation-share-panel__details",children:p}:{className:"annotation-share-panel__details",children:"This annotation cannot be shared in its original context because it was made on a document that is not available on the web. This link shares the annotation by itself."}),h&&Er(Ri,{shareURI:r})]}),Er(Cr,{name:"pointer",inline:!0,className:"annotation-share-panel__arrow"})]})]})}),["toastMessenger"]);var Fi=ho((function({annotation:e,annotationsService:t,onReply:n,settings:r,toastMessenger:o}){const i=mo(),a=i.profile(),s=i.getGroup(e.group),l=i.isLoggedIn(),c=t=>function(e,t,n){return-1!==e[t].indexOf(n||"")}(e.permissions,t,a.userid),u=c("delete"),h=c("update"),d=function(e){const t=D(e);return!1!==(null==t?void 0:t.allowFlagging)}(r)&&!!a.userid&&a.userid!==e.user,p=function(e){const t=D(e);return!1!==(null==t?void 0:t.enableShareLinks)}(r)&&function(e){var t,n,r,o,i,a;return Ci(e.uri)?null!==(t=null!==(n=null===(r=e.links)||void 0===r?void 0:r.incontext)&&void 0!==n?n:null===(o=e.links)||void 0===o?void 0:o.html)&&void 0!==t?t:null:null!==(i=null===(a=e.links)||void 0===a?void 0:a.html)&&void 0!==i?i:null}(e);return Er("div",{className:"AnnotationActionBar hyp-u-layout-row u-font--xlarge",children:[h&&Er(Ir,{icon:"edit",title:"Edit",onClick:()=>{i.createDraft(e,{tags:e.tags,text:e.text,isPrivate:zi(e.permissions)})}}),u&&Er(Ir,{icon:"trash",title:"Delete",onClick:async()=>{if(await co({title:"Delete annotation?",message:"Are you sure you want to delete this annotation?",confirmAction:"Delete"}))try{await t.delete(e)}catch(e){o.error(e.message)}}}),Er(Ir,{icon:"reply",title:"Reply",onClick:()=>{l?n():i.openSidebarPanel("loginPrompt")}}),p&&Er(Bi,{annotation:e,group:s,shareUri:p}),d&&!e.flagged&&Er(Ir,{icon:"flag",title:"Report this annotation to moderators",onClick:()=>{t.flag(e).catch((()=>o.error("Flagging annotation failed")))}}),d&&e.flagged&&Er(Ir,{pressed:!0,icon:"flag--active",title:"Annotation has been reported to the moderators"})]})}),["annotationsService","settings","toastMessenger"]);function ji({isCollapsed:e,setCollapsed:t,linkStyle:n={}}){return Er("div",{className:"Excerpt__inline-controls",children:Er("div",{className:"Excerpt__toggle-container",children:Er(Or,{classes:"InlineLinkButton InlineLinkButton--underlined",onClick:()=>t(!e),expanded:!e,title:"Toggle visibility of full excerpt text",style:n,variant:"dark",children:e?"More":"Less"})})})}const Hi=()=>{};var Ui=ho((function({children:e,collapse:t=!1,collapsedHeight:n,inlineControls:r=!0,onCollapsibleChanged:o=Hi,onToggleCollapsed:i=Hi,overflowThreshold:a=0,settings:s={}}){const[l,c]=dr(!0),u=gr(null),[h,d]=dr(0),p=yr((()=>{const e=u.current.clientHeight;d(e);o(e>n+a)}),[n,o,a]);fr((()=>{const e=function(e,t){if("undefined"!=typeof ResizeObserver){const n=new ResizeObserver((()=>t(e.clientWidth,e.clientHeight)));return n.observe(e),()=>n.disconnect()}const n=new Ai;let r=e.clientWidth,o=e.clientHeight;const i=()=>{r===e.clientWidth&&o===e.clientHeight||(r=e.clientWidth,o=e.clientHeight,t(r,o))};n.add(e,"load",i),n.add(window,"resize",i);const a=new MutationObserver(i);return a.observe(e,{characterData:!0,childList:!0,subtree:!0}),()=>{n.removeAll(),a.disconnect()}}(u.current,p);return p(),e}),[p]);const m=h>n+a,f=m&&(r?l:t),g={};0!==h&&(g["max-height"]=f?n:h);const v=e=>r?c(e):i(e);return Er("div",{className:"Excerpt",style:g,children:[Er("div",{className:"Excerpt__content",ref:u,children:e}),Er("div",{role:"presentation",onClick:()=>v(!1),className:rr({Excerpt__shadow:!0,"Excerpt__shadow--transparent":r,"is-hidden":!f}),title:"Show the full excerpt"}),m&&r&&Er(ji,{isCollapsed:l,setCollapsed:v,linkStyle:_o(["selectionFontFamily"],s)})]})}),["settings"]);function qi(e,t=16/9){const n=document.createElement("iframe");return n.src=e,n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",""),function(e,t){e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%";const n=document.createElement("div");return n.style.paddingBottom=1/t*100+"%",n.style.position="relative",n.appendChild(e),n}(n,t)}function $i(e){const t=/(\d+)([hms]?)/g,n={h:3600,m:60,s:1};let r,o=0;for(;null!==(r=t.exec(e));)r[2]?o+=Number(r[1])*n[r[2]]:o+=+r[1];return o.toString()}function Gi(e,t){const n=function(e){const t=["end","start","t"],n=new URLSearchParams(e.search),r=new URLSearchParams;for(let[e,o]of n)t.includes(e)&&("t"===e?r.append("start",$i(o)):r.append(e,o));r.sort();let o=r.toString();return o&&(o=`?${o}`),o}(t);return qi(`https://www.youtube.com/embed/${e}${n}`)}function Vi(e,t,n,{aspectRatio:r}={}){return o=>{if(o.hostname!==e)return null;const i=t.exec(o.pathname);if(!i)return null;const a=i[1];return qi(n(a),r)}}const Wi=[function(e){if("www.youtube.com"!==e.hostname)return null;if(!/\/watch\/?/.test(e.pathname))return null;const t=/[&?]v=([^&#]+)/.exec(e.search);return t?Gi(t[1],e):null},function(e){if("youtu.be"!==e.hostname)return null;const t=/^\/([^/]+)\/?$/.exec(e.pathname);return t?Gi(t[1],e):null},Vi("vimeo.com",/^\/([^/?#]+)\/?$/,(e=>`https://player.vimeo.com/video/${e}`)),Vi("vimeo.com",/^\/channels\/[^/]+\/([^/?#]+)\/?$/,(e=>`https://player.vimeo.com/video/${e}`)),Vi("flipgrid.com",/^\/s\/([^/]+)$/,(e=>`https://flipgrid.com/s/${e}?embed=true`)),function(e){if("archive.org"!==e.hostname)return null;const t=/^\/(embed|details)\/(.+)/.exec(e.pathname);if(!t)return null;let n=t[2];const r=new URLSearchParams(e.search);let o=r.get("start"),i=r.get("end");if(!o){const e=n.match(/\/start\/([^/]+)/);e&&(o=e[1],n=n.replace(e[0],""))}if(!i){const e=n.match(/\/end\/([^/]+)/);e&&(i=e[1],n=n.replace(e[0],""))}const a=new URL(`https://archive.org/embed/${n}`);return o&&a.searchParams.append("start",o),i&&a.searchParams.append("end",i),qi(a.href)},function(e){return e.pathname.endsWith(".mp3")||e.pathname.endsWith(".ogg")||e.pathname.endsWith(".wav")?function(e){const t=document.createElement("audio");return t.controls=!0,t.src=e,t}(e.href):null}];function Yi(e){if(e.href!==e.textContent&&decodeURI(e.href)!==e.textContent)return null;const t=function(e){let t,n;for(n=0;n<Wi.length;n++)if(t=Wi[n](e),t)return t;return null}(e);return t&&e.parentElement.replaceChild(t,e),t}var Ki=Object.hasOwnProperty,Xi=Object.setPrototypeOf,Ji=Object.isFrozen,Zi=Object.getPrototypeOf,Qi=Object.getOwnPropertyDescriptor,ea=Object.freeze,ta=Object.seal,na=Object.create,ra="undefined"!=typeof Reflect&&Reflect,oa=ra.apply,ia=ra.construct;oa||(oa=function(e,t,n){return e.apply(t,n)}),ea||(ea=function(e){return e}),ta||(ta=function(e){return e}),ia||(ia=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(
21
+ */!function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var o=arguments[r];if(o){var i=typeof o;if("string"===i||"number"===i)e.push(o);else if(Array.isArray(o)){if(o.length){var a=n.apply(null,o);a&&e.push(a)}}else if("object"===i)if(o.toString===Object.prototype.toString)for(var s in o)t.call(o,s)&&o[s]&&e.push(s);else e.push(o.toString())}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}(Qn);var er,tr,nr,rr=Qn.exports,or=0,ir=[],ar=t.__b,sr=t.__r,lr=t.diffed,cr=t.__c,ur=t.unmount;function hr(e,n){t.__h&&t.__h(tr,e,or||n),or=0;var r=tr.__H||(tr.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function dr(e){return or=1,pr(Ar,e)}function pr(e,t,n){var r=hr(er++,2);return r.t=e,r.__c||(r.__=[n?n(t):Ar(void 0,t),function(e){var t=r.t(r.__[0],e);r.__[0]!==t&&(r.__=[t,r.__[1]],r.__c.setState({}))}],r.__c=tr),r.__}function mr(e,n){var r=hr(er++,3);!t.__s&&Sr(r.__H,n)&&(r.__=e,r.__H=n,tr.__H.__h.push(r))}function fr(e,n){var r=hr(er++,4);!t.__s&&Sr(r.__H,n)&&(r.__=e,r.__H=n,tr.__h.push(r))}function gr(e){return or=5,vr((function(){return{current:e}}),[])}function vr(e,t){var n=hr(er++,7);return Sr(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function yr(e,t){return or=8,vr((function(){return e}),t)}function _r(e){var t=tr.context[e.__c],n=hr(er++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(tr)),t.props.value):e.__}function br(){ir.forEach((function(e){if(e.__P)try{e.__H.__h.forEach(xr),e.__H.__h.forEach(kr),e.__H.__h=[]}catch(n){e.__H.__h=[],t.__e(n,e.__v)}})),ir=[]}t.__b=function(e){tr=null,ar&&ar(e)},t.__r=function(e){sr&&sr(e),er=0;var t=(tr=e.__c).__H;t&&(t.__h.forEach(xr),t.__h.forEach(kr),t.__h=[])},t.diffed=function(e){lr&&lr(e);var n=e.__c;n&&n.__H&&n.__H.__h.length&&(1!==ir.push(n)&&nr===t.requestAnimationFrame||((nr=t.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),wr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);wr&&(t=requestAnimationFrame(n))})(br)),tr=void 0},t.__c=function(e,n){n.some((function(e){try{e.__h.forEach(xr),e.__h=e.__h.filter((function(e){return!e.__||kr(e)}))}catch(r){n.some((function(e){e.__h&&(e.__h=[])})),n=[],t.__e(r,e.__v)}})),cr&&cr(e,n)},t.unmount=function(e){ur&&ur(e);var n=e.__c;if(n&&n.__H)try{n.__H.__.forEach(xr)}catch(e){t.__e(e,n.__v)}};var wr="function"==typeof requestAnimationFrame;function xr(e){var t=tr;"function"==typeof e.__c&&e.__c(),tr=t}function kr(e){var t=tr;e.__c=e.__(),tr=t}function Sr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ar(e,t){return"function"==typeof t?t(e):t}function Er(e,n,r,o,i){var a={};for(var s in n)"ref"!=s&&(a[s]=n[s]);var l,c,u={type:e,props:a,key:r,ref:n&&n.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++t.__v,__source:o,__self:i};if("function"==typeof e&&(l=e.defaultProps))for(c in l)void 0===a[c]&&(a[c]=l[c]);return t.vnode&&t.vnode(u),u}let Tr={};function Cr({name:e,className:t="",inline:n=!1,title:r=""}){if(!Tr[e])throw new Error(`Icon name "${e}" is not registered`);const o=Tr[e],i=gr();fr((()=>{const e=i.current.querySelector("svg");e&&e.setAttribute("class",t)}),[t,o]);const a={};return r&&(a.title=r),Er("span",{className:rr("Hyp-SvgIcon",{"Hyp-SvgIcon--inline":n}),dangerouslySetInnerHTML:{__html:o},ref:i,...a},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/SvgIcon.js",lineNumber:69,columnNumber:5})}function Nr(e,{reset:t=!1}={}){t&&(Tr={}),Object.assign(Tr,e)}var Mr="/home/runner/work/frontend-shared/frontend-shared/src/components/buttons.js";function Lr({buttonRef:e,classes:t,className:n,icon:r,iconPosition:o="left",size:i="medium",variant:a="normal",expanded:s,pressed:l,type:c="button",...u}){const h={"aria-expanded":s,"aria-pressed":l,"aria-label":u.title};return Er("button",{ref:e,className:rr(n,`${n}--${i}`,`${n}--${a}`,{[`${n}--icon-${o}`]:r},t),type:c,...h,...u},void 0,!1,{fileName:Mr,lineNumber:73,columnNumber:5})}function Ir({className:e="Hyp-IconButton",...t}){const{icon:n}=t;return Er(Lr,{className:e,...t,children:Er(Cr,{name:n},void 0,!1,{fileName:Mr,lineNumber:100,columnNumber:7})},void 0,!1,{fileName:Mr,lineNumber:99,columnNumber:5})}function zr({children:e,className:t="Hyp-LabeledButton",...n}){const{icon:r,iconPosition:o="left"}=n;return Er(Lr,{className:t,...n,children:[r&&"left"===o&&Er(Cr,{name:r},void 0,!1,{fileName:Mr,lineNumber:118,columnNumber:43}),e,r&&"right"===o&&Er(Cr,{name:r},void 0,!1,{fileName:Mr,lineNumber:120,columnNumber:44})]},void 0,!0,{fileName:Mr,lineNumber:117,columnNumber:5})}function Or(e){return Er(Lr,{className:"Hyp-LinkButton",...e},void 0,!1,{fileName:Mr,lineNumber:131,columnNumber:10})}Nr({"hyp-checkbox":' <svg\n width="32"\n height="32"\n viewBox="-4 -4 39 39"\n aria-hidden="true"\n focusable="false"\n >\n <rect\n class="hyp-svg-checkbox--background"\n width="35"\n height="35"\n x="-2"\n y="-2"\n stroke="currentColor"\n fill="none"\n stroke-width="3"\n rx="5"\n ry="5"\n />\n <polyline\n class="hyp-svg-checkbox--checkmark"\n points="4,14 12,23 28,5"\n stroke="transparent"\n stroke-width="5"\n fill="none"\n />\n</svg>'});function Pr({children:e,direction:t="row",classes:n="",containerRef:r}){return Er("div",{className:rr(`Hyp-Actions--${t}`,n),ref:r,children:e},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/containers.js",lineNumber:72,columnNumber:5})}var Rr='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cancel"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 8l3.536-3.536L8 8 4.464 4.464 8 8zm0 0l-3.536 3.536L8 8l3.536 3.536L8 8z"></path></g></svg>\n',Dr="/home/runner/work/frontend-shared/frontend-shared/src/components/Dialog.js";Nr({"hyp-cancel":Rr});let Br=0;function Fr(e){const[t]=dr((()=>(++Br,`${e}-${Br}`)));return t}function jr({buttons:e,cancelLabel:t="Cancel",children:n,contentClass:r,icon:o,initialFocus:i,onCancel:a,role:s="dialog",title:l,withCancelButton:c=!0,withCloseButton:u=!0}){const h=Fr("dialog-description"),d=Fr("dialog-title"),p=gr(null);mr((()=>{if(null!==i){const e=null==i?void 0:i.current;e&&!e.disabled?e.focus():p.current.focus()}}),[]),fr((()=>{const e=p.current.querySelector("p");e&&(e.id=h,p.current.setAttribute("aria-describedby",h))}),[h]);const m=a&&c,f=e||m;return Er("div",{"aria-labelledby":d,className:rr("Hyp-Dialog",{"Hyp-Dialog--closeable":a&&u},r),ref:p,role:s,tabIndex:-1,children:[Er("header",{children:[o&&Er("div",{className:"Hyp-Dialog__header-icon",children:Er(Cr,{name:o,title:l,"data-testid":"header-icon"},void 0,!1,{fileName:Dr,lineNumber:141,columnNumber:13})},void 0,!1,{fileName:Dr,lineNumber:140,columnNumber:11}),Er("h2",{className:"Hyp-Dialog__title",id:d,children:l},void 0,!1,{fileName:Dr,lineNumber:144,columnNumber:9}),a&&u&&Er("div",{className:"Hyp-Dialog__close",children:Er(Ir,{"data-testid":"close-button",icon:"hyp-cancel",title:"Close",onClick:a},void 0,!1,{fileName:Dr,lineNumber:149,columnNumber:13})},void 0,!1,{fileName:Dr,lineNumber:148,columnNumber:11})]},void 0,!0,{fileName:Dr,lineNumber:138,columnNumber:7}),n,f&&Er("div",{className:"Hyp-Dialog__actions",children:[m&&Er(zr,{"data-testid":"cancel-button",onClick:a,children:t},void 0,!1,{fileName:Dr,lineNumber:162,columnNumber:13}),e]},void 0,!0,{fileName:Dr,lineNumber:160,columnNumber:9})]},void 0,!0,{fileName:Dr,lineNumber:127,columnNumber:5})}function Hr(e){const t={Left:"ArrowLeft",Up:"ArrowUp",Down:"ArrowDown",Right:"ArrowRight",Spacebar:" ",Del:"Delete"};return t[e]?t[e]:e}function Ur(e,t,n,{useCapture:r=!1}={}){return t.forEach((t=>e.addEventListener(t,n,r))),()=>{t.forEach((t=>e.removeEventListener(t,n,r)))}}function qr(e,t,n){mr((()=>{if(!t)return()=>{};const r=Ur(document.body,["keydown"],(e=>{"Escape"===Hr(e.key)&&n()})),o=Ur(document.body,["focus"],(t=>{e.current.contains(t.target)||n()}),{useCapture:!0}),i=Ur(document.body,["mousedown","click"],(t=>{e.current.contains(t.target)||n()}),{useCapture:!0});return()=>{r(),i(),o()}}),[e,t,n])}var $r="/home/runner/work/frontend-shared/frontend-shared/src/components/Modal.js";function Gr({children:e,onCancel:t,...n}){const r=gr(null);return qr(r,!0,(()=>{t&&t()})),Er(d,{children:[Er("div",{className:"Hyp-Modal__overlay"},void 0,!1,{fileName:$r,lineNumber:37,columnNumber:7}),Er("div",{className:"Hyp-Modal",ref:r,children:Er(jr,{onCancel:t,...n,children:e},void 0,!1,{fileName:$r,lineNumber:39,columnNumber:9})},void 0,!1,{fileName:$r,lineNumber:38,columnNumber:7})]},void 0,!0)}function Vr({message:e,confirmAction:t,onConfirm:n,onCancel:r,...o}){return Er(Gr,{onCancel:r,buttons:[Er(zr,{onClick:n,variant:"primary","data-testid":"confirm-button",children:t},"ok",!1,{fileName:$r,lineNumber:74,columnNumber:9})],...o,children:Er("p",{children:e},void 0,!1,{fileName:$r,lineNumber:85,columnNumber:7})},void 0,!1,{fileName:$r,lineNumber:71,columnNumber:5})}var Wr="/home/runner/work/frontend-shared/frontend-shared/src/components/Panel.js";function Yr({children:e,icon:t,onClose:n,title:r}){const o=!!n;return Er("div",{className:rr("Hyp-Panel",{"Hyp-Panel--closeable":o}),children:[Er("header",{children:[t&&Er("div",{className:"Hyp-Panel__header-icon",children:Er(Cr,{name:t,title:r},void 0,!1,{fileName:Wr,lineNumber:39,columnNumber:13})},void 0,!1,{fileName:Wr,lineNumber:38,columnNumber:11}),Er("h2",{className:"Hyp-Panel__title",children:r},void 0,!1,{fileName:Wr,lineNumber:42,columnNumber:9}),o&&Er("div",{className:"Hyp-Panel__close",children:Er(Ir,{icon:"hyp-cancel",title:"Close",onClick:n},void 0,!1,{fileName:Wr,lineNumber:45,columnNumber:13})},void 0,!1,{fileName:Wr,lineNumber:44,columnNumber:11})]},void 0,!0,{fileName:Wr,lineNumber:36,columnNumber:7}),Er("div",{className:"Hyp-Panel__content",children:e},void 0,!1,{fileName:Wr,lineNumber:49,columnNumber:7})]},void 0,!0,{fileName:Wr,lineNumber:31,columnNumber:5})}Nr({"hyp-cancel":Rr});function Kr({classes:e="",size:t="medium"}){return Er(Cr,{name:"hyp-spinner",className:rr(`Hyp-Spinner--${t}`,e)},void 0,!1,{fileName:"/home/runner/work/frontend-shared/frontend-shared/src/components/Spinner.js",lineNumber:27,columnNumber:5})}Nr({"hyp-spinner":'<svg viewBox="0 0 64 64">\n <g stroke-width="6" stroke="currentColor" stroke-linecap="round">\n <line y1="16" y2="28" transform="translate(32,32) rotate(180)">\n <animate attributeName="stroke-opacity" dur="750ms" values="0;1;.8;.65;.45;.3;.15;0" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(225)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".15;0;1;.8;.65;.45;.3;.15" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(270)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".3;.15;0;1;.8;.65;.45;.3" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(315)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".45;.3;.15;0;1;.85;.65;.45" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(0)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".65;.45;.3;.15;0;1;.8;.65;" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(45)">\n <animate attributeName="stroke-opacity" dur="750ms" values=".8;.65;.45;.3;.15;0;1;.8" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(90)">\n <animate attributeName="stroke-opacity" dur="750ms" values="1;.85;.6;.45;.3;.15;0;1;" repeatCount="indefinite"></animate>\n </line>\n <line y1="16" y2="28" transform="translate(32,32) rotate(135)">\n <animate attributeName="stroke-opacity" dur="750ms" values="0;1;.8;.65;.45;.3;.15;0" repeatCount="indefinite"></animate>\n </line>\n </g>\n</svg>'});var Xr="/home/runner/work/frontend-shared/frontend-shared/src/components/TextInput.js";function Jr({classes:e="",inputRef:t,hasError:n=!1,type:r="text",...o}){return Er("input",{className:rr("Hyp-TextInput",{"has-error":n},e),...o,ref:t,type:r},void 0,!1,{fileName:Xr,lineNumber:39,columnNumber:5})}function Zr({children:e,classes:t=""}){return Er("div",{className:rr("Hyp-TextInputWithButton",t),children:e},void 0,!1,{fileName:Xr,lineNumber:67,columnNumber:5})}var Qr='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cancel"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 8l3.536-3.536L8 8 4.464 4.464 8 8zm0 0l-3.536 3.536L8 8l3.536 3.536L8 8z"></path></g></svg>\n',eo='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="24px" height="28px" viewBox="0 0 24 28" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <rect fill="#ffffff" stroke="none" width="17.14407" height="16.046612" x="3.8855932" y="3.9449153" />\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <path d="M0,2.00494659 C0,0.897645164 0.897026226,0 2.00494659,0 L21.9950534,0 C23.1023548,0 24,0.897026226 24,2.00494659 L24,21.9950534 C24,23.1023548 23.1029738,24 21.9950534,24 L2.00494659,24 C0.897645164,24 0,23.1029738 0,21.9950534 L0,2.00494659 Z M9,24 L12,28 L15,24 L9,24 Z M7.00811294,4 L4,4 L4,20 L7.00811294,20 L7.00811294,15.0028975 C7.00811294,12.004636 8.16824717,12.0097227 9,12 C10,12.0072451 11.0189302,12.0606714 11.0189302,14.003477 L11.0189302,20 L14.0270431,20 L14.0270431,13.1087862 C14.0270433,10 12,9.00309038 10,9.00309064 C8.01081726,9.00309091 8,9.00309086 7.00811294,11.0019317 L7.00811294,4 Z M19,19.9869002 C20.1045695,19.9869002 21,19.0944022 21,17.9934501 C21,16.892498 20.1045695,16 19,16 C17.8954305,16 17,16.892498 17,17.9934501 C17,19.0944022 17.8954305,19.9869002 19,19.9869002 Z" fill="currentColor"></path>\n </g>\n</svg>\n',to={add:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--plus"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 8V3v5H3h5zm0 0v5-5h5-5z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>',annotate:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M15 0c.27 0 .505.099.703.297A.961.961 0 0116 1v15l-4-3H1a.974.974 0 01-.703-.29A.953.953 0 010 12V1C0 .719.096.482.29.29A.966.966 0 011 0h14zM7 3l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C4.156 5.229 4 6 4 7l.002.063.006.062a.896.896 0 01.008.11l-.002.074-.006.066a1.447 1.447 0 00.43 1.188C4.729 8.854 5.082 9 5.5 9c.417 0 .77-.146 1.063-.438C6.854 8.271 7 7.918 7 7.5c0-.417-.146-.77-.438-1.063A1.447 1.447 0 005.5 6c-.073 0-.146.005-.219.016-.073.01-.14.026-.203.046.177-1.03.542-1.632 1.094-1.804L7 4V3zm5 0l-.469.063c-.312.041-.656.187-1.031.437-.375.25-.719.646-1.031 1.188C9.156 5.229 9 6 9 7l.002.063.006.062a.896.896 0 01.008.11l-.002.074-.006.066a1.447 1.447 0 00.43 1.188c.291.291.645.437 1.062.437.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.447 1.447 0 0010.5 6c-.073 0-.146.005-.219.016-.073.01-.14.026-.203.046.177-1.03.542-1.632 1.094-1.804L12 4V3z"/>\n</svg>\n',"arrow-left":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--arrow-left"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 12L3 8l4-4M4 8h9-9z"></path></g></svg>\n',"arrow-right":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--arrow-right"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 4l4 4-4 4m3-4H3h9z"></path></g></svg>\n',cancel:Qr,"caret-right":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--caret-right"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 4l4 4-4 4"></path></g></svg>\n',"cc-std":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cc-std"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M7.985 0c2.238 0 4.143.781 5.715 2.343a7.694 7.694 0 011.714 2.579C15.804 5.888 16 6.914 16 8a8.164 8.164 0 01-.579 3.078 7.344 7.344 0 01-1.707 2.536 8.222 8.222 0 01-2.657 1.772c-.99.41-2.014.614-3.071.614a7.775 7.775 0 01-3.036-.607 8.047 8.047 0 01-2.6-1.757A7.846 7.846 0 010 8c0-1.057.202-2.074.607-3.05A8.033 8.033 0 012.371 2.33C3.895.777 5.766 0 7.985 0zm.03 1.443c-1.83 0-3.367.638-4.615 1.914a6.878 6.878 0 00-1.45 2.15A6.301 6.301 0 001.443 8c0 .858.168 1.684.507 2.479a6.627 6.627 0 001.45 2.129 6.593 6.593 0 002.129 1.428c.79.329 1.619.493 2.485.493.857 0 1.688-.166 2.494-.5a6.91 6.91 0 002.178-1.442c1.247-1.22 1.871-2.748 1.871-4.586a6.57 6.57 0 00-.486-2.515 6.397 6.397 0 00-1.413-2.114C11.37 2.086 9.824 1.443 8.014 1.443zm-.1 5.229l-1.073.557c-.114-.238-.254-.405-.42-.5a.95.95 0 00-.465-.143c-.714 0-1.072.472-1.072 1.415 0 .428.09.77.271 1.028.181.257.448.386.8.386.467 0 .796-.229.987-.686l.985.5a2.35 2.35 0 01-2.1 1.257c-.714 0-1.29-.218-1.729-.657-.438-.438-.657-1.047-.657-1.828 0-.762.222-1.367.665-1.814.442-.448 1.002-.672 1.678-.672.991 0 1.7.385 2.13 1.157zm4.613 0l-1.057.557c-.114-.238-.255-.405-.421-.5a.972.972 0 00-.479-.143c-.714 0-1.072.472-1.072 1.415 0 .428.091.77.272 1.028.18.257.447.386.8.386.466 0 .795-.229.985-.686l1 .5c-.218.39-.514.698-.885.922a2.308 2.308 0 01-1.214.335c-.724 0-1.302-.218-1.735-.657-.434-.438-.65-1.047-.65-1.828 0-.762.22-1.367.664-1.814.442-.448 1.002-.672 1.678-.672.99 0 1.696.385 2.114 1.157z"></path></g></svg>\n',"cc-zero":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--cc-zero"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M7.983 0c2.238 0 4.148.78 5.72 2.342a7.662 7.662 0 011.715 2.582c.39.962.582 1.99.582 3.076a8.13 8.13 0 01-.583 3.087 7.262 7.262 0 01-1.703 2.526 8.213 8.213 0 01-2.655 1.77c-.99.41-2.018.617-3.076.617a7.902 7.902 0 01-3.042-.6 8.301 8.301 0 01-2.6-1.759A8.087 8.087 0 01.6 11.042 7.84 7.84 0 010 8c0-1.057.2-2.07.6-3.042a8.12 8.12 0 011.77-2.633C3.893.772 5.764 0 7.983 0zm.034 1.44c-1.829 0-3.369.64-4.616 1.915a6.962 6.962 0 00-1.457 2.157 6.388 6.388 0 000 4.969 6.83 6.83 0 003.585 3.558c.79.324 1.62.487 2.488.487.857 0 1.681-.165 2.482-.498a6.88 6.88 0 002.184-1.446C13.931 11.364 14.56 9.838 14.56 8a6.57 6.57 0 00-.487-2.515 6.418 6.418 0 00-1.418-2.118C11.37 2.081 9.826 1.44 8.017 1.44zM8 3.395c2.641 0 3.305 2.492 3.305 4.605 0 2.113-.664 4.605-3.305 4.605S4.694 10.113 4.694 8l.007-.355c.073-2.027.804-4.25 3.299-4.25zm1.316 3.227L7.35 10.017c-.274.412-.083.645.219.774l.135.044c.091.022.19.034.297.034 1.357 0 1.422-1.938 1.422-2.869l-.007-.409a7.282 7.282 0 00-.06-.72l-.04-.25zM8 5.132c-1.258 0-1.406 1.66-1.421 2.646L6.577 8c0 .24.005.544.035.865l.027.244 1.759-3.232c.182-.316.09-.542-.101-.706A1.222 1.222 0 008 5.13z"></path></g></svg>\n',"collapse-menu":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M7.456 4.212a.804.804 0 0 1 1.088 0l6.23 5.867c.301.283.301.742 0 1.025l-.726.684a.804.804 0 0 1-1.087.001L8 7.139l-4.961 4.65a.804.804 0 0 1-1.087-.001l-.727-.684a.695.695 0 0 1 0-1.025l6.23-5.867z"/>\n</svg>',collapsed:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="16" height="16" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg">\n <g transform="matrix(6.12323e-17,1,-1,6.12323e-17,15.9996,0.000432345)">\n <path fill="currentColor" d="M7.456,4.212C7.762,3.931 8.238,3.931 8.544,4.212L14.774,10.079C15.075,10.362 15.075,10.821 14.774,11.104L14.048,11.788C13.742,12.069 13.267,12.069 12.961,11.789L8,7.139L3.039,11.789C2.733,12.069 2.258,12.069 1.952,11.788L1.225,11.104C1.081,10.972 0.999,10.786 0.999,10.592C0.999,10.397 1.081,10.211 1.225,10.079L7.455,4.212L7.456,4.212Z" />\n </g>\n</svg>\n',copy:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--copy"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 15H1V5h3m11-4v10H7V1h8z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>',cursor:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="10px" height="30px" viewBox="0 0 10 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 46.2 (44496) - http://www.bohemiancoding.com/sketch --\x3e\n <title>Shape</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g transform="translate(-239.000000, -73.000000)" fill-rule="nonzero" fill="#000000">\n <g transform="translate(1.000000, 1.000000)">\n <path d="M243.3125,75.186875 C243.3125,73.535 243.3125,72.625 246.434687,72.625 L248,72.625 L248,72 L246.434687,72 C244.324375,72 243.402813,72.4684375 243,73.183125 C242.597187,72.4684375 241.675625,72 239.565313,72 L238,72 L238,72.625 L239.565313,72.625 C242.6875,72.6246875 242.6875,73.5346875 242.6875,75.186875 L242.6875,82 L242.6875,86.6875 L240.929375,86.6875 L240.929375,87.3125 L242.6875,87.3125 L242.6875,92 L242.6875,98.5434375 C242.6875,100.187188 242.6875,101.375 239.565313,101.375 L238,101.375 L238,102 L239.565313,102 C241.675625,102 242.5975,101.442813 243,100.6525 C243.402813,101.442813 244.324375,102 246.434687,102 L248,102 L248,101.375 L246.434687,101.375 C243.3125,101.374688 243.3125,100.187188 243.3125,98.5434375 L243.3125,91.9996875 L243.3125,87.3121875 L245.070312,87.3121875 L245.070312,86.6871875 L243.3125,86.6871875 L243.3125,81.9996875 L243.3125,75.186875 Z"></path>\n </g>\n </g>\n </g>\n</svg>\n',edit:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--edit"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 4l1 1-9 9-2 1 1-2 9-9zm3-3l1 1-1 1-1-1 1-1z"></path></g></svg>\n',email:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--email"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 3v10h14V3H1zm0 0l7 6 7-6H1z"></path></g></svg>\n',"expand-menu":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M7.456 11.788L1.226 5.92a.695.695 0 0 1 0-1.025l.726-.684a.804.804 0 0 1 1.087-.001L8 8.861l4.961-4.65a.804.804 0 0 1 1.087.001l.727.684c.3.283.3.742 0 1.025l-6.23 5.867a.804.804 0 0 1-1.09 0z"/>\n</svg>',error:Qr,external:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--external"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 3h6v6m-1-5l-9 9 9-9z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>',facebook:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--social-facebook"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M15.999 8.049c0-4.445-3.582-8.049-8-8.049S0 3.604 0 8.049C0 12.066 2.925 15.396 6.75 16v-5.624H4.717V8.049H6.75V6.276c0-2.018 1.195-3.132 3.022-3.132.875 0 1.79.157 1.79.157v1.981h-1.008c-.994 0-1.304.62-1.304 1.257v1.51h2.219l-.355 2.327H9.25V16c3.825-.604 6.75-3.934 6.75-7.951z"></path></g></svg>\n',flag:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--flag"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 9v6V1h12l-4 4 4 4H3z"></path></g></svg>\n',"flag--active":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--flag-filled"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M2 1a1 1 0 01.883-.993L3 0h12c.852 0 1.297.986.783 1.623l-.076.084L12.415 5l3.292 3.293c.575.575.253 1.523-.485 1.684l-.108.017L15 10H4v5a1 1 0 01-1.993.117L2 15V1z"></path></g></svg>\n',"format-bold":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-type-bold"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M8.661 16c.805 0 1.536-.117 2.193-.351a4.953 4.953 0 001.69-.993c.47-.428.831-.947 1.081-1.557s.375-1.287.375-2.03c0-.29-.038-.588-.114-.893a4.123 4.123 0 00-.325-.87 3.937 3.937 0 00-.495-.754 4.412 4.412 0 00-.604-.597c-.17-.126-.17-.264 0-.412.381-.335.699-.772.953-1.311.254-.54.382-1.062.382-1.568 0-.64-.132-1.244-.394-1.813a4.628 4.628 0 00-1.081-1.484c-.458-.42-1-.753-1.627-.999A5.531 5.531 0 008.66 0h-6.14a.534.534 0 00-.362.14A.415.415 0 002 .456v15.086c0 .119.053.225.159.318.106.093.227.139.362.139h6.14zm-.127-9.852H5.826c-.17 0-.254-.075-.254-.223V3.437c0-.157.085-.235.254-.235h2.708c.45 0 .847.145 1.195.435.347.29.521.633.521 1.027 0 .394-.174.74-.521 1.038a1.784 1.784 0 01-1.195.446zm0 6.65H5.826c-.17 0-.254-.075-.254-.223v-2.99c0-.157.085-.235.254-.235h2.708c.56 0 1.004.177 1.335.53.33.353.495.75.495 1.188 0 .454-.165.856-.495 1.205-.33.35-.776.525-1.335.525z"></path></g></svg>\n',"format-functions":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-latex"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M13.392 16c.158 0 .299-.036.423-.108.123-.073.185-.155.185-.248v-1.778c0-.099-.062-.183-.185-.252a.848.848 0 00-.423-.104H6.85c-.138 0-.227-.028-.267-.083-.04-.055-.04-.105 0-.152l5.533-5.101c.158-.14.223-.265.193-.378a.755.755 0 00-.193-.325L6.88 2.707c-.04-.046-.042-.094-.007-.143.034-.05.13-.074.289-.074h6.17a.782.782 0 00.416-.108c.119-.073.178-.155.178-.248V.356c0-.093-.06-.175-.178-.248A.782.782 0 0013.333 0H2.905c-.158 0-.3.036-.423.108-.124.073-.185.155-.185.248v1.943c0 .128.037.236.11.326l.171.204 5.31 4.815c.04.047.065.106.075.178a.221.221 0 01-.074.195l-5.622 5.154c-.04.047-.094.113-.163.2A.512.512 0 002 13.7v1.943c0 .093.062.175.185.248a.822.822 0 00.423.108h10.784z"></path></g></svg>\n',"format-italic":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-type-italic"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M10.61 16c.12 0 .23-.046.329-.14a.633.633 0 00.191-.317l.457-2.176a.348.348 0 00-.064-.313.336.336 0 00-.276-.133H8.845c-.142-.008-.198-.086-.17-.235l1.892-9.372c.035-.149.124-.223.266-.223H13a.49.49 0 00.335-.14.62.62 0 00.196-.318L13.99.457a.542.542 0 00.011-.1.337.337 0 00-.085-.223.336.336 0 00-.276-.134H5.805a.49.49 0 00-.335.14.62.62 0 00-.196.317l-.457 2.176a.353.353 0 00.069.318c.074.093.168.14.281.14h2.18c.141 0 .198.074.17.223l-1.893 9.372c-.028.156-.113.235-.255.235H2.967a.489.489 0 00-.324.133.59.59 0 00-.197.313l-.435 2.176a.542.542 0 00-.011.1c0 .082.025.156.074.223.071.09.16.134.266.134h8.27z"></path></g></svg>\n',"format-list-numbered":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--list-ordered"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M2.748 11.5c.227 0 .443.034.646.103.203.069.381.164.534.286.155.123.276.267.364.432.089.168.134.35.134.543 0 .17-.042.333-.124.484a1.384 1.384 0 01-.19.269l-.062.061.047.035c.047.041.09.086.13.134l.058.075.075.122c.093.172.14.352.14.538 0 .201-.048.39-.143.566a1.44 1.44 0 01-.384.45c-.16.125-.344.223-.554.294-.21.072-.434.108-.67.108-.237 0-.461-.036-.671-.108a1.871 1.871 0 01-.555-.295 1.42 1.42 0 01-.382-.45 1.178 1.178 0 01-.132-.417L1 14.582l.002-.078.01-.05a.249.249 0 01.077-.111.283.283 0 01.121-.06l.07-.008h.708l.05.007c.044.01.084.028.12.056a.24.24 0 01.089.133l.006.054v.047l.005.077a.279.279 0 00.112.186c.088.066.213.101.378.101a.615.615 0 00.376-.102.29.29 0 00.12-.252.29.29 0 00-.12-.252.538.538 0 00-.262-.096l-.114-.007h-.1l-.051-.007a.292.292 0 01-.12-.059.244.244 0 01-.087-.13l-.006-.053.001-.57.01-.05a.249.249 0 01.078-.112.283.283 0 01.121-.06l.07-.008h.076l.112-.006a.454.454 0 00.224-.086.26.26 0 00.104-.222.246.246 0 00-.103-.213.533.533 0 00-.329-.09.527.527 0 00-.324.09.24.24 0 00-.098.148l-.006.065-.002.11-.01.05a.249.249 0 01-.081.112.292.292 0 01-.12.059l-.066.007h-.712l-.052-.007a.292.292 0 01-.12-.059.244.244 0 01-.087-.13l-.006-.054v-.096l.008-.135c.018-.141.062-.275.132-.402.091-.164.213-.307.366-.43.152-.122.33-.217.533-.286.203-.069.418-.103.645-.103zM15 13a1 1 0 01.117 1.993L15 15H7a1 1 0 01-.117-1.993L7 13h8zM2.777 5.5c.234 0 .454.034.66.101.207.068.389.164.544.288.156.124.28.27.372.437.093.17.14.355.14.551 0 .19-.049.37-.145.542-.07.123-.156.237-.258.34l-.108.1L2.71 8.932l1.52.001.053.006c.044.01.084.029.12.056.047.036.078.08.091.132l.007.054-.002.59-.01.05a.25.25 0 01-.083.113.298.298 0 01-.121.059L4.216 10H1.27l-.053-.007a.298.298 0 01-.122-.059.246.246 0 01-.089-.132L1 9.748v-.711l.004-.05a.26.26 0 01.04-.115l.034-.043.035-.033L3.04 7.167l.036-.036a.98.98 0 00.08-.114.295.295 0 00.055-.145.27.27 0 00-.099-.21c-.068-.062-.167-.094-.303-.094-.163 0-.285.032-.369.093a.244.244 0 00-.103.147l-.006.064-.002.123-.01.052a.25.25 0 01-.084.112.298.298 0 01-.12.058l-.069.008h-.726l-.053-.007a.298.298 0 01-.121-.059.246.246 0 01-.09-.132l-.006-.054V6.87l.01-.137c.017-.143.063-.28.135-.407.094-.167.22-.313.379-.437.157-.123.339-.219.544-.287.206-.067.425-.101.658-.101zM15 7a1 1 0 01.117 1.993L15 9H7a1 1 0 01-.117-1.993L7 7h8zM3.237 0l.052.008c.044.01.084.031.12.061a.248.248 0 01.083.132l.006.052-.004 3.167.744.001.051.007c.044.01.084.03.119.058.044.036.074.08.086.132l.006.053-.001.595-.01.05a.278.278 0 01-.197.176l-.07.008H1.29l-.051-.008a.287.287 0 01-.12-.061.248.248 0 01-.084-.132l-.006-.052.001-.596.01-.05a.247.247 0 01.077-.113.28.28 0 01.12-.06l.069-.008.932.002.003-1.959-.796.629-.068.037a.295.295 0 01-.196-.002.25.25 0 01-.172-.179L1 1.881v-.587l.007-.089.015-.075a.345.345 0 01.073-.132l.06-.059.83-.758.04-.036A.994.994 0 012.139.07a.498.498 0 01.183-.062L2.428 0h.809zM15 1a1 1 0 01.117 1.993L15 3H7a1 1 0 01-.117-1.993L7 1h8z"></path></g></svg>\n',"format-list-unordered":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--list-unordered"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M15 1a1 1 0 01.117 1.993L15 3H7a1 1 0 01-.117-1.993L7 1h8zm0 6a1 1 0 01.117 1.993L15 9H7a1 1 0 01-.117-1.993L7 7h8zM2 12a2 2 0 110 4 2 2 0 010-4zm13 1a1 1 0 01.117 1.993L15 15H7a1 1 0 01-.117-1.993L7 13h8zM2 6a2 2 0 110 4 2 2 0 010-4zm0-6a2 2 0 110 4 2 2 0 010-4z"></path></g></svg>\n',"format-quote":'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--editor-quote"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M2.701 14c.38 0 .659-.085.837-.255.177-.17.328-.343.45-.52l2.408-3.25c.246-.328.445-.725.598-1.19a4.69 4.69 0 00.23-1.475V2.775a.752.752 0 00-.23-.539A.713.713 0 006.47 2H1.947a.713.713 0 00-.524.236.752.752 0 00-.23.539v4.649c0 .214.077.396.23.548a.726.726 0 00.524.226h.901c.123 0 .23.054.322.161.092.107.101.224.028.35l-2.041 3.817c-.196.365-.208.702-.037 1.011.172.309.447.463.827.463h.754zm7.795 0c.367 0 .64-.085.818-.255.178-.17.328-.343.45-.52l2.409-3.25c.257-.328.46-.725.606-1.19A4.87 4.87 0 0015 7.31V2.775a.752.752 0 00-.23-.539.713.713 0 00-.524-.236H9.742a.703.703 0 00-.533.236.767.767 0 00-.22.539v4.649c0 .214.076.396.23.548a.726.726 0 00.523.226h.9c.123 0 .228.054.313.161.086.107.092.224.019.35L8.95 12.526c-.208.365-.223.702-.045 1.011.177.309.456.463.836.463h.754z"></path></g></svg>\n',groups:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--groups"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 15a3 3 0 0 1 6 0m2-4a3 3 0 0 1 6 0M4 9a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm8-4a2 2 0 1 1 0-4 2 2 0 0 1 0 4z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>\n',help:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--help"><g fill-rule="evenodd"><path fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4c0-1.657 1.79-3 4-3s4 1.343 4 3-1.79 3-4 3m0 0v2-2zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect></g></svg>\n',highlight:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15H1h11zm-.5-6v2l-1 1v-2l1-1zm.5-7v6h-2V2h2zm0-1h-2 2zm0 8h-2 2z"></path></g></svg>\n',image:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--image"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 1v14H1V1h14zM1 15l3-8 4 6 3-4 4 6m-4-9a1 1 0 110-2 1 1 0 010 2z"></path></g></svg>\n',leave:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M8 0c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 14.452A6.45 6.45 0 0 0 14.452 8 6.45 6.45 0 0 0 8 1.548 6.45 6.45 0 0 0 1.548 8 6.45 6.45 0 0 0 8 14.452zm3.284-8.458L9.277 8l2.007 2.006a.387.387 0 0 1 0 .549l-.73.729a.387.387 0 0 1-.548 0L8 9.277l-2.006 2.007a.387.387 0 0 1-.549 0l-.729-.73a.387.387 0 0 1 0-.548L6.723 8 4.716 5.994a.387.387 0 0 1 0-.549l.73-.729a.387.387 0 0 1 .548 0L8 6.723l2.006-2.007a.387.387 0 0 1 .549 0l.729.73a.387.387 0 0 1 0 .548z"/>\n</svg>',link:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--link"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.069 3.042l1.057-1.274c1.193-1.106 3.035-.938 4.046 0 1.012.94 1.193 2.649 0 3.755L11.046 9.17m0 0c-1.193 1.107-2.853 1.107-4.046 0m-.069 3.788l-1.057 1.274c-1.193 1.106-3.035.938-4.046 0-1.012-.94-1.193-2.649 0-3.755L4.954 6.83m0 0C6.147 5.723 7.807 5.723 9 6.8"></path></g></svg>\n',lock:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="48px" height="56px" viewBox="0 0 48 56" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <rect x="0" y="24" width="48" height="32"></rect>\n <path d="M24,0 C24,0 8,0 8,16 L8,32 L16,32 L16,16.0000004 C16,8 24,8 24,8 C24,8 32,8 32,16 L32,32 L40,32 L40,16 C40,0 24,0 24,0 Z"></path>\n </g>\n </g>\n</svg>\n',logo:eo,pointer:'<svg xmlns="http://www.w3.org/2000/svg" width="15" height="8" viewBox="0 0 15 8" aria-hidden="true" focusable="false"><path d="M0 8 L7 0 L15 8" stroke="currentColor" strokeWidth="2" /></svg>\n',profile:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--profile"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 15c0-2.761 3.134-5 7-5s7 2.239 7 5M8 7a3 3 0 1 1 0-6 3 3 0 0 1 0 6z"></path></g></svg>\n',public:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm2.655 11.535c.244-.242.442-.719.442-1.063a1.13 1.13 0 0 0-.288-.696l-.442-.442a1.033 1.033 0 0 0-.73-.302H7.484C7.181 8.88 6.791 8 6.452 8c-.34 0-.674-.08-.978-.231l-.357-.179a.386.386 0 0 1-.213-.345c0-.153.118-.317.263-.366l1.006-.335a.618.618 0 0 1 .163-.026c.106 0 .258.056.338.126l.3.26c.046.04.106.063.169.063h.182a.258.258 0 0 0 .23-.373l-.503-1.006a.306.306 0 0 1-.027-.116c0-.06.035-.143.078-.185l.32-.31a.258.258 0 0 1 .18-.074h.29c.06 0 .141-.034.183-.076l.258-.258c.1-.1.1-.264 0-.364l-.151-.152c-.101-.1-.101-.264 0-.365l.333-.333.151-.151a.516.516 0 0 0 0-.73l-.912-.913a6.45 6.45 0 0 0-.787.078v.365a.516.516 0 0 1-.747.461l-.775-.387a6.487 6.487 0 0 0-3.329 3.287c.32.474.813 1.205 1.116 1.65.138.203.4.503.582.668l.026.023c.308.278.65.516 1.021.702.452.227 1.111.586 1.575.842.328.182.53.527.53.903v1.032c0 .274.11.537.303.73.484.484.785 1.246.73 1.653v.884c.473 0 .932-.055 1.376-.152l.56-1.511c.067-.177.106-.362.155-.544a.771.771 0 0 1 .199-.346l.365-.364zm2.797-2.946l.94.235c.036-.27.06-.544.06-.824a6.4 6.4 0 0 0-.688-2.882l-.419.21a.773.773 0 0 0-.298.263l-.632.947a.908.908 0 0 0-.13.43c0 .13.058.321.13.43l.58.87c.107.16.27.274.457.32z"/>\n</svg>\n',refresh:'<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n \x3c!-- Generator: Sketch 39.1 (31720) - http://www.bohemiancoding.com/sketch --\x3e\n <defs/>\n <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g fill="currentColor">\n <g>\n <path d="M0,8 C0,12.418278 3.581722,16 8,16 C12.418278,16 16,12.418278 16,8 C16,4.89580324 14.2154684,2.11256098 11.4682644,0.789110134 L10.6002482,2.59092808 C12.661769,3.58405472 14,5.6712248 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,5.65296151 3.35941993,3.55225774 5.44569583,2.56903563 L4.59307587,0.759881355 C1.81273067,2.07020511 0,4.87140735 0,8 Z" />\n <polygon points="7 8.58578644 7 0 9 0 9 8.58578644 10.2928932 7.29289322 11 6.58578644 12.4142136 8 11.7071068 8.70710678 8.70710678 11.7071068 8 12.4142136 7.64644661 12.0606602 7.29289322 11.7071068 4.29289322 8.70710678 3.58578644 8 5 6.58578644 5.70710678 7.29289322"/>\n </g>\n </g>\n </g>\n</svg>\n',restricted:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 1C4.5 1 1 4.5 1 8s3.5 7 7 7 7-3.5 7-7-3.5-7-7-7zm0 7l-4 4 4-4 4-4-4 4z"></path></g></svg>\n',reply:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">\n <path fill="currentColor" fill-rule="nonzero" d="M6.422 5.422c2 0 3.542.417 4.625 1.25 1.083.833 1.875 1.75 2.375 2.75s.792 1.917.875 2.75l.125 1.25h-2l-.094-.938c-.062-.625-.281-1.312-.656-2.062-.375-.75-.969-1.438-1.781-2.063-.813-.625-1.97-.937-3.47-.937H4.829l2 2-1.406 1.422L1 6.422 5.422 2l1.406 1.422-2 2h1.594z"/>\n</svg>\n',search:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--search"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.536 9.536a5 5 0 1 1-7.071-7.071 5 5 0 0 1 7.07 7.07L15 15 9.536 9.536z"></path></g></svg>\n',share:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--share"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 11V2m7 8v5H1v-5m3-5l4-4 4 4"></path></g></svg>\n',success:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" class="Icon Icon--check"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 3L6 13 3 8"></path></g></svg>\n',sort:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--sort"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 9V2v7zM1 5l4-4 4 4m2 2v7-7zm-4 4l4 4 4-4"></path></g></svg>\n',trash:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--trash"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2 4h12l-2 11H4L2 4zM1 1h14H1z"></path></g></svg>\n',twitter:'<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" aria-hidden="true" focusable="false" class="Icon Icon--social-twitter"><g fill-rule="evenodd"><rect fill="none" stroke="none" x="0" y="0" width="16" height="16"></rect><path fill="currentColor" stroke="none" d="M15.969 3.049c-.59.259-1.22.436-1.884.516a3.305 3.305 0 0 0 1.442-1.815c-.634.37-1.336.64-2.084.79a3.28 3.28 0 0 0-5.59 2.988 9.29 9.29 0 0 1-6.76-3.418A3.214 3.214 0 0 0 .65 3.76c0 1.14.58 2.142 1.459 2.73a3.27 3.27 0 0 1-1.485-.41v.04a3.282 3.282 0 0 0 2.63 3.218 3.33 3.33 0 0 1-1.474.057 3.291 3.291 0 0 0 3.069 2.278A6.578 6.578 0 0 1 .78 13.076c-.26 0-.52-.015-.78-.044a9.33 9.33 0 0 0 5.038 1.472c6.036 0 9.332-4.997 9.332-9.323 0-.14 0-.28-.01-.42.64-.46 1.2-1.04 1.64-1.7l-.031-.012z"></path></g></svg>\n'};async function no({title:e="Confirm",message:t,confirmAction:n="Yes"}){const r=document.createElement("div");return r.setAttribute("data-testid","confirm-container"),r.style.position="relative",r.style.zIndex="10",document.body.appendChild(r),new Promise((o=>{const i=e=>{L(null,r),r.remove(),o(e)};L(Er(Vr,{title:e,message:t,confirmAction:n,onConfirm:()=>i(!0),onCancel:()=>i(!1)}),r)}))}function ro(e){if(!e)return null;const t=e.match(/^acct:([^@]+)@(.+)/);return t?{username:t[1],provider:t[2]}:null}function oo(e){const t=ro(e);return t?t.username:""}function io(e,t){const n=ro(e);return!!n&&n.provider!==t}const ao={accentColor:"color",appBackgroundColor:"backgroundColor",ctaBackgroundColor:"backgroundColor",ctaTextColor:"color",selectionFontFamily:"fontFamily",annotationFontFamily:"fontFamily"};function so(e,t){const n={};if(!t.branding)return n;const{branding:r}=t;return e.forEach((e=>{const t=ao[e],o=r[e];t&&o&&(n[t]=o)})),n}const lo=function(e,t){var n={__c:t="__cC"+i++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(g)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}({get(e){throw new Error(`Missing ServiceContext provider to provide "${e}" prop`)}});function co(e,t){function n(n){const r=_r(lo),o={};for(let e of t)e in n||(o[e]=r.get(e));return Er(e,{...o,...n})}const r=e.displayName||e.name;return n.displayName=`withServices(${r})`,n}class uo{constructor(e,t,n,r){this.name=e,this.method=t,this.args=n,this.result=r}matches(e,t){return this.name===e&&this.args.every(((e,n)=>t[n]===e))}}function ho(){const e=(t="store",_r(lo).get(t));var t;const[,n]=pr((e=>e+1),0),r=gr([]).current,o=gr(null);if(!o.current){const t={},n=(e,n)=>{const o=e[n];if("function"!=typeof o)return o;let i=t[n];return i||(i=(...t)=>{const i=r.find((e=>e.matches(n,t)));if(i)return i.result;const a=e.getState(),s=o.apply(e,t);return a===e.getState()&&r.push(new uo(n,o,t,s)),s},t[n]=i,i)};o.current=new Proxy(e,{get:n})}return mr((()=>e.subscribe((()=>{r.find((t=>t.method.apply(e,t.args)!==t.result))&&(r.splice(0,r.length),n(0))}))),[r,e]),o.current}const po={collapsed:!1,depth:0,visible:!0,replyCount:0};function mo(e){return e.id||e.$tag}function fo(e,t,n){return!(!e[n]||e[n].parent===t)&&(!e[n].parent||fo(e,t,e[n].parent))}function go(e,t,n=[]){if(e[t].parent||!n.length)return;const r=n[n.length-1];e[r]||(e[r]={...po,children:[],id:r},go(e,r,n.slice(0,-1))),fo(e,t,r)&&(e[t].parent=r,e[r].children.push(e[t]))}function vo(e,t){return Object.assign({},t(e),{children:e.children.map((e=>vo(e,t)))})}function yo(e,t,n){const r=e.children.map((e=>yo(e,n,n))).slice().sort(t);return{...e,children:r}}function _o(e,t){const n=e.children.map((e=>_o(e,t+1))),r=n.reduce(((e,t)=>e+1+t.replyCount),0);return{...e,children:n,depth:t,replyCount:r}}function bo(e){return e.children.some((e=>e.visible||bo(e)))}const wo=(e,t)=>e.annotation&&t.annotation?e.annotation.created<t.annotation.created?-1:e.annotation.created>t.annotation.created?1:0:0;function xo(e,t){const n=t.selected.length>0,r=t.forcedVisible.length>0;let o=function(e){const t={};e.forEach((e=>{const n=mo(e);t[n]={...po,children:[],annotation:e,id:n}})),e.forEach((e=>{const n=(e.references||[]).filter((t=>t!==e.id));return go(t,mo(e),n)}));const n=[];for(const e in t)t[e].parent||(t[e].collapsed=!0,n.push(t[e]));return{...po,id:"root",children:n}}(e);return n&&(o.children=o.children.filter((e=>{const n=t.selected.includes(e.id),o=r&&t.forcedVisible.includes(e.id);return n||o}))),t.threadFilterFn&&(o.children=o.children.filter(t.threadFilterFn)),o.visible=!1,o=vo(o,(e=>{let n=e.visible;return t.filterFn&&(n=!(!r||!t.forcedVisible.includes(e.id))||!!e.annotation&&!!t.filterFn(e.annotation)),{...e,visible:n}})),o.children=o.children.filter((e=>e.visible||bo(e))),o=vo(o,(e=>{const n={collapsed:e.collapsed};if(t.expanded.hasOwnProperty(e.id))n.collapsed=!t.expanded[e.id];else{const r=t.filterFn&&bo(e);n.collapsed=e.collapsed&&!r}return{...e,...n}})),o=yo(o,t.sortCompareFn,wo),o=_o(o,-1),o}function ko(e){const t=e.slice(0,e.indexOf(":"));if(!t)return[null,e];if(["group","quote","since","tag","text","uri","user"].includes(t)){return[t,e.slice(t.length+1)]}return[null,e]}function So(e){if(!e)return[];const t=function(e){const t=e.slice(0,1),n=e.slice(-1);return'"'!==t&&"'"!==t||t!==n||(e=e.slice(1,e.length-1)),e};let n=e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g)||[];n=n.map(t);for(let e=0;e<n.length;e++){const r=n[e],[o,i]=ko(r);o&&(n[e]=o+":"+t(i))}return n}function Ao(e){const t={},n=e=>"tag"===e?"tags":e,r=(e,n)=>t[e]?t[e].push(n):t[e]=[n];if(e){const t=So(e);for(const e of t){let[t,o]=ko(e);t||(t="any",o=e),r(n(t),o)}}return t}function Eo(e){const t=e.uri;let n;try{n=new URL(t).hostname}catch{n=""}"localhost"===n&&(n="");let r=n;return e.document&&e.document.title&&(r=e.document.title[0]),{uri:t,domain:n,title:r}}function To(e){let t=e.uri;return t&&0!==t.indexOf("http://")&&0!==t.indexOf("https://")&&(t=null),e.links&&e.links.incontext&&(t=e.links.incontext),t}function Co(e){const t=Eo(e);let n="";if(t.uri&&0===t.uri.indexOf("file://")&&t.title){const e=t.uri.split("/"),r=e[e.length-1];r&&(n=r)}else t.domain&&t.domain!==t.title&&(n=t.domain);return n}function No(e){let t=Eo(e).title;return t.length>30&&(t=t.slice(0,30)+"…"),t}function Mo(e){return(e.references||[]).length>0}function Lo(e){return!e.id}function Io(e){let t=!1;return e.permissions?(e.permissions.read.forEach((e=>{const n=e.split(":");2===n.length&&"group"===n[0]&&(t=!0)})),t):t}function zo(e){return!!(e.target&&e.target.length>0&&e.target[0].selector)}function Oo(e){return zo(e)&&void 0===e.$orphan&&!e.$anchorTimeout}function Po(e){return!!e.hidden}function Ro(e){return!!e.$highlight||!Lo(e)&&!(Bo(e)||Mo(e)||e.hidden||e.text||e.tags&&e.tags.length)}function Do(e){return zo(e)&&!0===e.$orphan}function Bo(e){return!zo(e)&&!Mo(e)}function Fo(e){return!(!zo(e)||Do(e))}function jo(e){if(e){const t=e.target||[];for(let e=0;e<t.length;e++){const n=t[e].selector||[];for(const e of n)if("TextPositionSelector"===e.type)return e.start}}return Number.POSITIVE_INFINITY}function Ho(e){if(0===e.target.length)return null;const t=e.target[0];if(!t.selector)return null;const n=t.selector.find((e=>"TextQuoteSelector"===e.type));return n?n.exact:null}const Uo=/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E4-\u08FE\u0900-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C01-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C82\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D02\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u192B\u1930-\u193B\u19B0-\u19C0\u19C8\u19C9\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1DC0-\u1DE6\u1DFC-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE26]/g;function qo(e){return"string"!=typeof e?e:function(e){return e.replace(Uo,"")}((t=e,t.normalize("NFKD"))).toLowerCase();var t}class $o{constructor(e,t,n){this.field=e,this.term=t,this.checker=n}matches(e){const t=this.checker;if(t.autofalse&&t.autofalse(e))return!1;let n=t.value(e);return n=Array.isArray(n)?n.map(qo):qo(n),t.match(this.term,n)}}class Go{constructor(e,t){this.operator=e,this.filters=t}matches(e){return"and"===this.operator?this.filters.every((t=>t.matches(e))):this.filters.some((t=>t.matches(e)))}}const Vo={quote:{autofalse:e=>(e.references||[]).length>0,value:e=>Ho(e)||"",match:(e,t)=>t.indexOf(e)>-1},since:{autofalse:e=>"string"!=typeof e.updated,value:e=>new Date(e.updated),match:(e,t)=>(Date.now()-t)/1e3<=e},tag:{autofalse:e=>!Array.isArray(e.tags),value:e=>e.tags,match:(e,t)=>t.includes(e)},text:{autofalse:e=>"string"!=typeof e.text,value:e=>e.text,match:(e,t)=>t.indexOf(e)>-1},uri:{autofalse:e=>"string"!=typeof e.uri,value:e=>e.uri,match:(e,t)=>t.indexOf(e)>-1},user:{autofalse:e=>"string"!=typeof e.user,value:e=>e.user+" "+function(e){return e.user_info&&e.user_info.display_name||""}(e),match:(e,t)=>t.indexOf(e)>-1}};function Wo(e){return Do(e)?"orphan":Bo(e)?"note":"annotation"}function Yo(e,t){const n=e.visible===t;return e.children.reduce(((e,n)=>e+Yo(n,t)),n?1:0)}function Ko(e){return Yo(e,!1)}function Xo(e){return Yo(e,!0)}function Jo(e){const t=e.filter((e=>!!e.annotation)).map((e=>e.annotation));if(t.length)return t;const n=[];if(e.forEach((e=>{e.children&&n.push(...e.children)})),n.length)return Jo(n);throw new Error("Thread contains no annotations")}function Zo(e){return Jo([e]).reduce(((e,t)=>t.created>e?t.created:e),"")}function Qo(e){return Jo([e]).reduce(((e,t)=>(e||(e=t.created),t.created<e?t.created:e)),"")}const ei={Newest:function(e,t){const n=Zo(e),r=Zo(t);return n>r?-1:n<r?1:0},Oldest:function(e,t){const n=Qo(e),r=Qo(t);return n<r?-1:n>r?1:0},Location:function(e,t){if(!e.annotation||!t.annotation)return function(e,t){return e.annotation||t.annotation?e.annotation?1:-1:0}(e,t);const n=jo(e.annotation),r=jo(t.annotation);return n<r?-1:n>r?1:0}};const ti=function(e){if(1!==e.length)throw new Error("Memoize input must be a function of one argument");let t,n;return function(r){return r===t||(t=r,n=e(r)),n}}((function(e){const t=e.selection,n={expanded:t.expanded,forcedVisible:t.forcedVisible,selected:t.selected,sortCompareFn:ei[t.sortKey]},r=!!t.filterQuery||Object.keys(t.filters).length>0;if(r){const e=function(e,t={}){let n;const r=[],o=[],i=[],a=[],s=[],l=[],c=t.user?[t.user]:[];if(e){n=So(e);for(const e of n){const t=e.slice(0,e.indexOf(":")),n=e.slice(t.length+1);switch(t){case"quote":o.push(n);break;case"since":{const t=86400,n={sec:1,min:60,hour:3600,day:t,week:7*t,month:30*t,year:365*t},r=e.slice(6).toLowerCase().match(/^(\d+)(sec|min|hour|day|week|month|year)?$/);if(r){const e=parseFloat(r[1]),t=r[2]||"sec";i.push(e*n[t])}}break;case"tag":a.push(n);break;case"text":s.push(n);break;case"uri":l.push(n);break;case"user":c.push(n);break;default:r.push(e)}}}return{any:{terms:r,operator:"and"},quote:{terms:o,operator:"and"},since:{terms:i,operator:"and"},tag:{terms:a,operator:"and"},text:{terms:s,operator:"and"},uri:{terms:l,operator:"or"},user:{terms:c,operator:"or"}}}(t.filterQuery||"",t.filters);n.filterFn=t=>function(e,t){const n=Object.entries(t).filter((([,e])=>e.terms.length>0)).map((([e,t])=>{const n=t.terms.map(qo);let r;if("any"===e){const e=["quote","text","tag","user"];r=n.map((t=>new Go("or",e.map((e=>new $o(e,t,Vo[e]))))))}else r=n.map((t=>new $o(e,t,Vo[e])));return new Go(t.operator,r)})),r=new Go("and",n);return e.filter((e=>e.id&&r.matches(e))).map((e=>e.id))}([t],e).length>0}return!r&&"sidebar"===e.route&&(n.threadFilterFn=e=>{return!!e.annotation&&(n=e.annotation,r=t.selectedTab,!Oo(n)&&Wo(n)===r);var n,r}),xo(e.annotations,n)}));function ni(){const e=ho(),t=e.allAnnotations(),n=e.filterQuery(),r=e.route(),o=e.selectionState(),i=e.getFilterValues(),a=vr((()=>({annotations:t,route:r,selection:{...o,filterQuery:n,filters:i}})),[t,n,r,o,i]);return ti(a)}var ri=/^\s+|\s+$/g,oi=/^[-+]0x[0-9a-f]+$/i,ii=/^0b[01]+$/i,ai=/^0o[0-7]+$/i,si=parseInt,li="object"==typeof jn&&jn&&jn.Object===Object&&jn,ci="object"==typeof self&&self&&self.Object===Object&&self,ui=li||ci||Function("return this")(),hi=Object.prototype.toString,di=Math.max,pi=Math.min,mi=function(){return ui.Date.now()};function fi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function gi(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==hi.call(e)}(e))return NaN;if(fi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ri,"");var n=ii.test(e);return n||ai.test(e)?si(e.slice(2),n?2:8):oi.test(e)?NaN:+e}var vi=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,h=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function m(e){return c=e,s=setTimeout(g,t),u?p(e):a}function f(e){var n=e-l;return void 0===l||n>=t||n<0||h&&e-c>=i}function g(){var e=mi();if(f(e))return v(e);s=setTimeout(g,function(e){var n=t-(e-l);return h?pi(n,i-(e-c)):n}(e))}function v(e){return s=void 0,d&&r?p(e):(r=o=void 0,a)}function y(){var e=mi(),n=f(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return m(l);if(h)return s=setTimeout(g,t),p(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=gi(t)||0,fi(n)&&(u=!!n.leading,i=(h="maxWait"in n)?di(gi(n.maxWait)||0,t):i,d="trailing"in n?!!n.trailing:d),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?a:v(mi())},y};class yi{constructor(){this._listeners=[]}add(e,t,n,r){e.addEventListener(t,n,r),this._listeners.push({eventTarget:e,eventType:t,listener:n})}removeAll(){this._listeners.forEach((({eventTarget:e,eventType:t,listener:n})=>{e.removeEventListener(t,n)})),this._listeners=[]}}const _i={defaultHeight:200,marginAbove:800,marginBelow:800};function bi(e){const t=window.getComputedStyle(e);return e.getBoundingClientRect().height+(parseFloat(t.marginTop)+parseFloat(t.marginBottom))}function wi(e){return/^http(s?):/i.test(e)}function xi(e){return{read:[e],update:[e],delete:[e]}}function ki(e,t){return Object.assign(xi(e),{read:["group:"+t]})}function Si(e,t,n){return"private"===function(e){switch(e){case"private":case"shared":return e;default:return"shared"}}(n)&&e?xi(e):ki(e,t)}function Ai(e){return e.read.some((e=>0===e.indexOf("group:")))}function Ei(e){return!Ai(e)}function Ti(e){const t=document.createElement("textarea");t.value=e,t.setAttribute("data-testid","copy-text"),t.contentEditable="true",document.body.appendChild(t),t.focus();try{const e=document.createRange(),n=document.getSelection();n.removeAllRanges(),e.selectNodeContents(t),n.addRange(e),t.setSelectionRange(0,t.value.length),document.execCommand("copy")}finally{t.remove()}}function Ci({label:e,iconName:t,uri:n}){return Er("li",{className:"ShareLinks__link",children:Er("a",{"aria-label":e,href:n,title:e,target:"_blank",rel:"noopener noreferrer",children:Er(Cr,{name:t,className:"ShareLinks__icon"})})})}function Ni({shareURI:e}){const t=encodeURIComponent(e);return Er("ul",{className:"ShareLinks",children:[Er(Ci,{iconName:"twitter",label:"Tweet share link",uri:`https://twitter.com/intent/tweet?url=${t}&hashtags=annotated`}),Er(Ci,{iconName:"facebook",label:"Share on Facebook",uri:`https://www.facebook.com/sharer/sharer.php?u=${t}`}),Er(Ci,{iconName:"email",label:"Share via email",uri:`mailto:?subject=${encodeURIComponent("Let's Annotate")}&body=${t}`})]})}function Mi(){return((e=window.navigator,t="ontouchend"in document)=>["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(e.platform)||e.userAgent.includes("Mac")&&t)()}var Li=co((function({annotation:e,toastMessenger:t,group:n,shareUri:r}){const o=Ei(e.permissions),i=wi(e.uri),a=gr(null),s=gr(null),[l,c]=dr(!1),u=gr(l);if(qr(a,l,(()=>c(!1))),mr((()=>{var e,t;u.current!==l&&(u.current=l,l&&!Mi()&&(null===(e=s.current)||void 0===e||e.focus(),null===(t=s.current)||void 0===t||t.select()))}),[l]),!n)return null;const h=i,d="private"===n.type?Er("span",{children:["Only members of the group ",Er("em",{children:n.name})," may view this annotation."]}):Er("span",{children:"Anyone using this link may view this annotation."}),p=o?Er("span",{children:"Only you may view this annotation."}):d;return Er("div",{className:"AnnotationShareControl",ref:a,children:[Er(Ir,{icon:"share",title:"Share",onClick:()=>c(!l),expanded:l}),l&&Er("div",{className:"annotation-share-panel",children:[Er("div",{className:"annotation-share-panel__header",children:Er("div",{className:"annotation-share-panel__title",children:"Share this annotation"})}),Er("div",{className:"annotation-share-panel__content",children:[Er("div",{className:"hyp-u-layout-row annotation-share-panel__inputs",children:Er(Zr,{children:[Er(Jr,{"aria-label":"Use this URL to share this annotation",type:"text",value:r,readOnly:!0,inputRef:s}),Er(Ir,{icon:"copy",title:"Copy share link to clipboard",onClick:()=>{try{Ti(r),t.success("Copied share link to clipboard")}catch(e){t.error("Unable to copy link")}},variant:"dark"})]})}),Er("div",i?{className:"annotation-share-panel__details",children:p}:{className:"annotation-share-panel__details",children:"This annotation cannot be shared in its original context because it was made on a document that is not available on the web. This link shares the annotation by itself."}),h&&Er(Ni,{shareURI:r})]}),Er(Cr,{name:"pointer",inline:!0,className:"annotation-share-panel__arrow"})]})]})}),["toastMessenger"]);var Ii=co((function({annotation:e,annotationsService:t,onReply:n,settings:r,toastMessenger:o}){const i=ho(),a=i.profile(),s=i.getGroup(e.group),l=i.isLoggedIn(),c=t=>function(e,t,n){return-1!==e[t].indexOf(n||"")}(e.permissions,t,a.userid),u=c("delete"),h=c("update"),d=function(e){const t=D(e);return!1!==(null==t?void 0:t.allowFlagging)}(r)&&!!a.userid&&a.userid!==e.user,p=function(e){const t=D(e);return!1!==(null==t?void 0:t.enableShareLinks)}(r)&&function(e){var t,n,r,o,i,a;return wi(e.uri)?null!==(t=null!==(n=null===(r=e.links)||void 0===r?void 0:r.incontext)&&void 0!==n?n:null===(o=e.links)||void 0===o?void 0:o.html)&&void 0!==t?t:null:null!==(i=null===(a=e.links)||void 0===a?void 0:a.html)&&void 0!==i?i:null}(e);return Er("div",{className:"AnnotationActionBar hyp-u-layout-row u-font--xlarge",children:[h&&Er(Ir,{icon:"edit",title:"Edit",onClick:()=>{i.createDraft(e,{tags:e.tags,text:e.text,isPrivate:Ei(e.permissions)})}}),u&&Er(Ir,{icon:"trash",title:"Delete",onClick:async()=>{if(await no({title:"Delete annotation?",message:"Are you sure you want to delete this annotation?",confirmAction:"Delete"}))try{await t.delete(e)}catch(e){o.error(e.message)}}}),Er(Ir,{icon:"reply",title:"Reply",onClick:()=>{l?n():i.openSidebarPanel("loginPrompt")}}),p&&Er(Li,{annotation:e,group:s,shareUri:p}),d&&!e.flagged&&Er(Ir,{icon:"flag",title:"Report this annotation to moderators",onClick:()=>{t.flag(e).catch((()=>o.error("Flagging annotation failed")))}}),d&&e.flagged&&Er(Ir,{pressed:!0,icon:"flag--active",title:"Annotation has been reported to the moderators"})]})}),["annotationsService","settings","toastMessenger"]);function zi({isCollapsed:e,setCollapsed:t,linkStyle:n={}}){return Er("div",{className:"Excerpt__inline-controls",children:Er("div",{className:"Excerpt__toggle-container",children:Er(Or,{classes:"InlineLinkButton InlineLinkButton--underlined",onClick:()=>t(!e),expanded:!e,title:"Toggle visibility of full excerpt text",style:n,variant:"dark",children:e?"More":"Less"})})})}const Oi=()=>{};var Pi=co((function({children:e,collapse:t=!1,collapsedHeight:n,inlineControls:r=!0,onCollapsibleChanged:o=Oi,onToggleCollapsed:i=Oi,overflowThreshold:a=0,settings:s={}}){const[l,c]=dr(!0),u=gr(null),[h,d]=dr(0),p=yr((()=>{const e=u.current.clientHeight;d(e);o(e>n+a)}),[n,o,a]);fr((()=>{const e=function(e,t){if("undefined"!=typeof ResizeObserver){const n=new ResizeObserver((()=>t(e.clientWidth,e.clientHeight)));return n.observe(e),()=>n.disconnect()}const n=new yi;let r=e.clientWidth,o=e.clientHeight;const i=()=>{r===e.clientWidth&&o===e.clientHeight||(r=e.clientWidth,o=e.clientHeight,t(r,o))};n.add(e,"load",i),n.add(window,"resize",i);const a=new MutationObserver(i);return a.observe(e,{characterData:!0,childList:!0,subtree:!0}),()=>{n.removeAll(),a.disconnect()}}(u.current,p);return p(),e}),[p]);const m=h>n+a,f=m&&(r?l:t),g={};0!==h&&(g["max-height"]=f?n:h);const v=e=>r?c(e):i(e);return Er("div",{className:"Excerpt",style:g,children:[Er("div",{className:"Excerpt__content",ref:u,children:e}),Er("div",{role:"presentation",onClick:()=>v(!1),className:rr({Excerpt__shadow:!0,"Excerpt__shadow--transparent":r,"is-hidden":!f}),title:"Show the full excerpt"}),m&&r&&Er(zi,{isCollapsed:l,setCollapsed:v,linkStyle:so(["selectionFontFamily"],s)})]})}),["settings"]);function Ri(e,t=16/9){const n=document.createElement("iframe");return n.src=e,n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",""),function(e,t){e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",e.style.height="100%";const n=document.createElement("div");return n.style.paddingBottom=1/t*100+"%",n.style.position="relative",n.appendChild(e),n}(n,t)}function Di(e){const t=/(\d+)([hms]?)/g,n={h:3600,m:60,s:1};let r,o=0;for(;null!==(r=t.exec(e));)r[2]?o+=Number(r[1])*n[r[2]]:o+=+r[1];return o.toString()}function Bi(e,t){const n=function(e){const t=["end","start","t"],n=new URLSearchParams(e.search),r=new URLSearchParams;for(let[e,o]of n)t.includes(e)&&("t"===e?r.append("start",Di(o)):r.append(e,o));r.sort();let o=r.toString();return o&&(o=`?${o}`),o}(t);return Ri(`https://www.youtube.com/embed/${e}${n}`)}function Fi(e,t,n,{aspectRatio:r}={}){return o=>{if(o.hostname!==e)return null;const i=t.exec(o.pathname);if(!i)return null;const a=i[1];return Ri(n(a),r)}}const ji=[function(e){if("www.youtube.com"!==e.hostname)return null;if(!/\/watch\/?/.test(e.pathname))return null;const t=/[&?]v=([^&#]+)/.exec(e.search);return t?Bi(t[1],e):null},function(e){if("youtu.be"!==e.hostname)return null;const t=/^\/([^/]+)\/?$/.exec(e.pathname);return t?Bi(t[1],e):null},Fi("vimeo.com",/^\/([^/?#]+)\/?$/,(e=>`https://player.vimeo.com/video/${e}`)),Fi("vimeo.com",/^\/channels\/[^/]+\/([^/?#]+)\/?$/,(e=>`https://player.vimeo.com/video/${e}`)),Fi("flipgrid.com",/^\/s\/([^/]+)$/,(e=>`https://flipgrid.com/s/${e}?embed=true`)),function(e){if("archive.org"!==e.hostname)return null;const t=/^\/(embed|details)\/(.+)/.exec(e.pathname);if(!t)return null;let n=t[2];const r=new URLSearchParams(e.search);let o=r.get("start"),i=r.get("end");if(!o){const e=n.match(/\/start\/([^/]+)/);e&&(o=e[1],n=n.replace(e[0],""))}if(!i){const e=n.match(/\/end\/([^/]+)/);e&&(i=e[1],n=n.replace(e[0],""))}const a=new URL(`https://archive.org/embed/${n}`);return o&&a.searchParams.append("start",o),i&&a.searchParams.append("end",i),Ri(a.href)},function(e){return e.pathname.endsWith(".mp3")||e.pathname.endsWith(".ogg")||e.pathname.endsWith(".wav")?function(e){const t=document.createElement("audio");return t.controls=!0,t.src=e,t}(e.href):null}];function Hi(e){if(e.href!==e.textContent&&decodeURI(e.href)!==e.textContent)return null;const t=function(e){let t,n;for(n=0;n<ji.length;n++)if(t=ji[n](e),t)return t;return null}(e);return t&&e.parentElement.replaceChild(t,e),t}var Ui=Object.hasOwnProperty,qi=Object.setPrototypeOf,$i=Object.isFrozen,Gi=Object.getPrototypeOf,Vi=Object.getOwnPropertyDescriptor,Wi=Object.freeze,Yi=Object.seal,Ki=Object.create,Xi="undefined"!=typeof Reflect&&Reflect,Ji=Xi.apply,Zi=Xi.construct;Ji||(Ji=function(e,t,n){return e.apply(t,n)}),Wi||(Wi=function(e){return e}),Yi||(Yi=function(e){return e}),Zi||(Zi=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(
22
22
  /*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */
23
- function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var aa,sa=va(Array.prototype.forEach),la=va(Array.prototype.pop),ca=va(Array.prototype.push),ua=va(String.prototype.toLowerCase),ha=va(String.prototype.match),da=va(String.prototype.replace),pa=va(String.prototype.indexOf),ma=va(String.prototype.trim),fa=va(RegExp.prototype.test),ga=(aa=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ia(aa,t)});function va(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return oa(e,t,r)}}function ya(e,t){Xi&&Xi(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=ua(r);o!==r&&(Ji(t)||(t[n]=o),r=o)}e[r]=!0}return e}function _a(e){var t=na(null),n=void 0;for(n in e)oa(Ki,e,[n])&&(t[n]=e[n]);return t}function ba(e,t){for(;null!==e;){var n=Qi(e,t);if(n){if(n.get)return va(n.get);if("function"==typeof n.value)return va(n.value)}e=Zi(e)}return function(e){return console.warn("fallback value for",e),null}}var wa=ea(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xa=ea(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ka=ea(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Sa=ea(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Aa=ea(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Ea=ea(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ta=ea(["#text"]),Ca=ea(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Na=ea(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ma=ea(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),La=ea(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ia=ta(/\{\{[\s\S]*|[\s\S]*\}\}/gm),za=ta(/<%[\s\S]*|[\s\S]*%>/gm),Oa=ta(/^data-[\-\w.\u00B7-\uFFFF]/),Pa=ta(/^aria-[\-\w]+$/),Ra=ta(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Da=ta(/^(?:\w+script|data):/i),Ba=ta(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function ja(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Ha=function(){return"undefined"==typeof window?null:window},Ua=function(e,t){if("object"!==(void 0===e?"undefined":Fa(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};var qa=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ha(),n=function(t){return e(t)};if(n.version="2.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,h=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.Text,p=t.Comment,m=t.DOMParser,f=t.trustedTypes,g=l.prototype,v=ba(g,"cloneNode"),y=ba(g,"nextSibling"),_=ba(g,"childNodes"),b=ba(g,"parentNode");if("function"==typeof a){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var x=Ua(f,r),k=x&&te?x.createHTML(""):"",S=o,A=S.implementation,E=S.createNodeIterator,T=S.createDocumentFragment,C=S.getElementsByTagName,N=r.importNode,M={};try{M=_a(o).documentMode?o.documentMode:{}}catch(e){}var L={};n.isSupported="function"==typeof b&&A&&void 0!==A.createHTMLDocument&&9!==M;var I=Ia,z=za,O=Oa,P=Pa,R=Da,D=Ba,B=Ra,F=null,j=ya({},[].concat(ja(wa),ja(xa),ja(ka),ja(Aa),ja(Ta))),H=null,U=ya({},[].concat(ja(Ca),ja(Na),ja(Ma),ja(La))),q=null,$=null,G=!0,V=!0,W=!1,Y=!1,K=!1,X=!1,J=!1,Z=!1,Q=!1,ee=!0,te=!1,ne=!0,re=!0,oe=!1,ie={},ae=null,se=ya({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),le=null,ce=ya({},["audio","video","img","source","image","track"]),ue=null,he=ya({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml",fe=me,ge=!1,ve=void 0,ye=["application/xhtml+xml","text/html"],_e="text/html",be=void 0,we=null,xe=o.createElement("form"),ke=function(e){we&&we===e||(e&&"object"===(void 0===e?"undefined":Fa(e))||(e={}),e=_a(e),F="ALLOWED_TAGS"in e?ya({},e.ALLOWED_TAGS):j,H="ALLOWED_ATTR"in e?ya({},e.ALLOWED_ATTR):U,ue="ADD_URI_SAFE_ATTR"in e?ya(_a(he),e.ADD_URI_SAFE_ATTR):he,le="ADD_DATA_URI_TAGS"in e?ya(_a(ce),e.ADD_DATA_URI_TAGS):ce,ae="FORBID_CONTENTS"in e?ya({},e.FORBID_CONTENTS):se,q="FORBID_TAGS"in e?ya({},e.FORBID_TAGS):{},$="FORBID_ATTR"in e?ya({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,ee=!1!==e.RETURN_DOM_IMPORT,te=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,fe=e.NAMESPACE||me,ve=ve=-1===ye.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ve?function(e){return e}:ua,Y&&(V=!1),Q&&(Z=!0),ie&&(F=ya({},[].concat(ja(Ta))),H=[],!0===ie.html&&(ya(F,wa),ya(H,Ca)),!0===ie.svg&&(ya(F,xa),ya(H,Na),ya(H,La)),!0===ie.svgFilters&&(ya(F,ka),ya(H,Na),ya(H,La)),!0===ie.mathMl&&(ya(F,Aa),ya(H,Ma),ya(H,La))),e.ADD_TAGS&&(F===j&&(F=_a(F)),ya(F,e.ADD_TAGS)),e.ADD_ATTR&&(H===U&&(H=_a(H)),ya(H,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ya(ue,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ae===se&&(ae=_a(ae)),ya(ae,e.FORBID_CONTENTS)),re&&(F["#text"]=!0),K&&ya(F,["html","head","body"]),F.table&&(ya(F,["tbody"]),delete q.tbody),ea&&ea(e),we=e)},Se=ya({},["mi","mo","mn","ms","mtext"]),Ae=ya({},["foreignobject","desc","title","annotation-xml"]),Ee=ya({},xa);ya(Ee,ka),ya(Ee,Sa);var Te=ya({},Aa);ya(Te,Ea);var Ce=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});var n=ua(e.tagName),r=ua(t.tagName);if(e.namespaceURI===pe)return t.namespaceURI===me?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ee[n]);if(e.namespaceURI===de)return t.namespaceURI===me?"math"===n:t.namespaceURI===pe?"math"===n&&Ae[r]:Boolean(Te[n]);if(e.namespaceURI===me){if(t.namespaceURI===pe&&!Ae[r])return!1;if(t.namespaceURI===de&&!Se[r])return!1;var o=ya({},["title","style","font","a","script"]);return!Te[n]&&(o[n]||!Ee[n])}return!1},Ne=function(e){ca(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=k}catch(t){e.remove()}}},Me=function(e,t){try{ca(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ca(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(Z||Q)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var r=ha(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=x?x.createHTML(e):e;if(fe===me)try{t=(new m).parseFromString(i,ve)}catch(e){}if(!t||!t.documentElement){t=A.createDocument(fe,"template",null);try{t.documentElement.innerHTML=ge?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),fe===me?C.call(t,K?"html":"body")[0]:K?t.documentElement:a},Ie=function(e){return E.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ze=function(e){return!(e instanceof d||e instanceof p)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof h&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},Oe=function(e){return"object"===(void 0===s?"undefined":Fa(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Fa(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,r){L[e]&&sa(L[e],(function(e){e.call(n,t,r,we)}))},Re=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),ze(e))return Ne(e),!0;if(ha(e.nodeName,/[\u0080-\uFFFF]/))return Ne(e),!0;var r=be(e.nodeName);if(Pe("uponSanitizeElement",e,{tagName:r,allowedTags:F}),!Oe(e.firstElementChild)&&(!Oe(e.content)||!Oe(e.content.firstElementChild))&&fa(/<[/\w]/g,e.innerHTML)&&fa(/<[/\w]/g,e.textContent))return Ne(e),!0;if("select"===r&&fa(/<template/i,e.innerHTML))return Ne(e),!0;if(!F[r]||q[r]){if(re&&!ae[r]){var o=b(e)||e.parentNode,i=_(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),y(e))}return Ne(e),!0}return e instanceof l&&!Ce(e)?(Ne(e),!0):"noscript"!==r&&"noembed"!==r||!fa(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=da(t,I," "),t=da(t,z," "),e.textContent!==t&&(ca(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1):(Ne(e),!0)},De=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in o||n in xe))return!1;if(V&&!$[t]&&fa(O,t));else if(G&&fa(P,t));else{if(!H[t]||$[t])return!1;if(ue[t]);else if(fa(B,da(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==pa(n,"data:")||!le[e]){if(W&&!fa(R,da(n,D,"")));else if(n)return!1}else;}return!0},Be=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;Pe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(i=a.length;i--;){var l=t=a[i],c=l.name,u=l.namespaceURI;if(r=ma(t.value),o=be(c),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Pe("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Me(c,e),s.keepAttr))if(fa(/\/>/i,r))Me(c,e);else{Y&&(r=da(r,I," "),r=da(r,z," "));var h=be(e.nodeName);if(De(h,o,r))try{u?e.setAttributeNS(u,c,r):e.setAttribute(c,r),la(n.removed)}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},Fe=function e(t){var n=void 0,r=Ie(t);for(Pe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Pe("uponSanitizeShadowNode",n,null),Re(n)||(n.content instanceof i&&e(n.content),Be(n));Pe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,l=void 0,c=void 0,u=void 0,h=void 0;if((ge=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Oe(e)){if("function"!=typeof e.toString)throw ga("toString is not a function");if("string"!=typeof(e=e.toString()))throw ga("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Fa(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Oe(e))return t.toStaticHTML(e.outerHTML)}return e}if(X||ke(o),n.removed=[],"string"==typeof e&&(oe=!1),oe);else if(e instanceof s)1===(l=(a=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?a=l:a.appendChild(l);else{if(!Z&&!Y&&!K&&-1===e.indexOf("<"))return x&&te?x.createHTML(e):e;if(!(a=Le(e)))return Z?null:k}a&&J&&Ne(a.firstChild);for(var d=Ie(oe?e:a);c=d.nextNode();)3===c.nodeType&&c===u||Re(c)||(c.content instanceof i&&Fe(c.content),Be(c),u=c);if(u=null,oe)return e;if(Z){if(Q)for(h=T.call(a.ownerDocument);a.firstChild;)h.appendChild(a.firstChild);else h=a;return ee&&(h=N.call(r,h,!0)),h}var p=K?a.outerHTML:a.innerHTML;return Y&&(p=da(p,I," "),p=da(p,z," ")),x&&te?x.createHTML(p):p},n.setConfig=function(e){ke(e),X=!0},n.clearConfig=function(){we=null,X=!1},n.isValidAttribute=function(e,t,n){we||ke({});var r=be(e),o=be(t);return De(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(L[e]=L[e]||[],ca(L[e],t))},n.removeHook=function(e){L[e]&&la(L[e])},n.removeHooks=function(e){L[e]&&(L[e]=[])},n.removeAllHooks=function(){L={}},n}(),$a=/["'&<>]/,Ga=function(e){var t,n=""+e,r=$a.exec(n);if(!r)return n;var o="",i=0,a=0;for(i=r.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==i&&(o+=n.substring(a,i)),a=i+1,o+=t}return a!==i?o+n.substring(a,i):o};
23
+ function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(t))))});var Qi,ea=ua(Array.prototype.forEach),ta=ua(Array.prototype.pop),na=ua(Array.prototype.push),ra=ua(String.prototype.toLowerCase),oa=ua(String.prototype.match),ia=ua(String.prototype.replace),aa=ua(String.prototype.indexOf),sa=ua(String.prototype.trim),la=ua(RegExp.prototype.test),ca=(Qi=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Zi(Qi,t)});function ua(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ji(e,t,r)}}function ha(e,t){qi&&qi(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var o=ra(r);o!==r&&($i(t)||(t[n]=o),r=o)}e[r]=!0}return e}function da(e){var t=Ki(null),n=void 0;for(n in e)Ji(Ui,e,[n])&&(t[n]=e[n]);return t}function pa(e,t){for(;null!==e;){var n=Vi(e,t);if(n){if(n.get)return ua(n.get);if("function"==typeof n.value)return ua(n.value)}e=Gi(e)}return function(e){return console.warn("fallback value for",e),null}}var ma=Wi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),fa=Wi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ga=Wi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),va=Wi(["animate","color-profile","cursor","discard","fedropshadow","feimage","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ya=Wi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),_a=Wi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ba=Wi(["#text"]),wa=Wi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),xa=Wi(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ka=Wi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Sa=Wi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Aa=Yi(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Ea=Yi(/<%[\s\S]*|[\s\S]*%>/gm),Ta=Yi(/^data-[\-\w.\u00B7-\uFFFF]/),Ca=Yi(/^aria-[\-\w]+$/),Na=Yi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ma=Yi(/^(?:\w+script|data):/i),La=Yi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ia="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function za(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var Oa=function(){return"undefined"==typeof window?null:window},Pa=function(e,t){if("object"!==(void 0===e?"undefined":Ia(e))||"function"!=typeof e.createPolicy)return null;var n=null,r="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(r)&&(n=t.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};var Ra=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa(),n=function(t){return e(t)};if(n.version="2.3.3",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;var r=t.document,o=t.document,i=t.DocumentFragment,a=t.HTMLTemplateElement,s=t.Node,l=t.Element,c=t.NodeFilter,u=t.NamedNodeMap,h=void 0===u?t.NamedNodeMap||t.MozNamedAttrMap:u,d=t.Text,p=t.Comment,m=t.DOMParser,f=t.trustedTypes,g=l.prototype,v=pa(g,"cloneNode"),y=pa(g,"nextSibling"),_=pa(g,"childNodes"),b=pa(g,"parentNode");if("function"==typeof a){var w=o.createElement("template");w.content&&w.content.ownerDocument&&(o=w.content.ownerDocument)}var x=Pa(f,r),k=x&&te?x.createHTML(""):"",S=o,A=S.implementation,E=S.createNodeIterator,T=S.createDocumentFragment,C=S.getElementsByTagName,N=r.importNode,M={};try{M=da(o).documentMode?o.documentMode:{}}catch(e){}var L={};n.isSupported="function"==typeof b&&A&&void 0!==A.createHTMLDocument&&9!==M;var I=Aa,z=Ea,O=Ta,P=Ca,R=Ma,D=La,B=Na,F=null,j=ha({},[].concat(za(ma),za(fa),za(ga),za(ya),za(ba))),H=null,U=ha({},[].concat(za(wa),za(xa),za(ka),za(Sa))),q=null,$=null,G=!0,V=!0,W=!1,Y=!1,K=!1,X=!1,J=!1,Z=!1,Q=!1,ee=!0,te=!1,ne=!0,re=!0,oe=!1,ie={},ae=null,se=ha({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),le=null,ce=ha({},["audio","video","img","source","image","track"]),ue=null,he=ha({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml",fe=me,ge=!1,ve=void 0,ye=["application/xhtml+xml","text/html"],_e="text/html",be=void 0,we=null,xe=o.createElement("form"),ke=function(e){we&&we===e||(e&&"object"===(void 0===e?"undefined":Ia(e))||(e={}),e=da(e),F="ALLOWED_TAGS"in e?ha({},e.ALLOWED_TAGS):j,H="ALLOWED_ATTR"in e?ha({},e.ALLOWED_ATTR):U,ue="ADD_URI_SAFE_ATTR"in e?ha(da(he),e.ADD_URI_SAFE_ATTR):he,le="ADD_DATA_URI_TAGS"in e?ha(da(ce),e.ADD_DATA_URI_TAGS):ce,ae="FORBID_CONTENTS"in e?ha({},e.FORBID_CONTENTS):se,q="FORBID_TAGS"in e?ha({},e.FORBID_TAGS):{},$="FORBID_ATTR"in e?ha({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,V=!1!==e.ALLOW_DATA_ATTR,W=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,Q=e.RETURN_DOM_FRAGMENT||!1,ee=!1!==e.RETURN_DOM_IMPORT,te=e.RETURN_TRUSTED_TYPE||!1,J=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,re=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,B=e.ALLOWED_URI_REGEXP||B,fe=e.NAMESPACE||me,ve=ve=-1===ye.indexOf(e.PARSER_MEDIA_TYPE)?_e:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ve?function(e){return e}:ra,Y&&(V=!1),Q&&(Z=!0),ie&&(F=ha({},[].concat(za(ba))),H=[],!0===ie.html&&(ha(F,ma),ha(H,wa)),!0===ie.svg&&(ha(F,fa),ha(H,xa),ha(H,Sa)),!0===ie.svgFilters&&(ha(F,ga),ha(H,xa),ha(H,Sa)),!0===ie.mathMl&&(ha(F,ya),ha(H,ka),ha(H,Sa))),e.ADD_TAGS&&(F===j&&(F=da(F)),ha(F,e.ADD_TAGS)),e.ADD_ATTR&&(H===U&&(H=da(H)),ha(H,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ha(ue,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(ae===se&&(ae=da(ae)),ha(ae,e.FORBID_CONTENTS)),re&&(F["#text"]=!0),K&&ha(F,["html","head","body"]),F.table&&(ha(F,["tbody"]),delete q.tbody),Wi&&Wi(e),we=e)},Se=ha({},["mi","mo","mn","ms","mtext"]),Ae=ha({},["foreignobject","desc","title","annotation-xml"]),Ee=ha({},fa);ha(Ee,ga),ha(Ee,va);var Te=ha({},ya);ha(Te,_a);var Ce=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});var n=ra(e.tagName),r=ra(t.tagName);if(e.namespaceURI===pe)return t.namespaceURI===me?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(Ee[n]);if(e.namespaceURI===de)return t.namespaceURI===me?"math"===n:t.namespaceURI===pe?"math"===n&&Ae[r]:Boolean(Te[n]);if(e.namespaceURI===me){if(t.namespaceURI===pe&&!Ae[r])return!1;if(t.namespaceURI===de&&!Se[r])return!1;var o=ha({},["title","style","font","a","script"]);return!Te[n]&&(o[n]||!Ee[n])}return!1},Ne=function(e){na(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=k}catch(t){e.remove()}}},Me=function(e,t){try{na(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){na(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(Z||Q)try{Ne(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var r=oa(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var i=x?x.createHTML(e):e;if(fe===me)try{t=(new m).parseFromString(i,ve)}catch(e){}if(!t||!t.documentElement){t=A.createDocument(fe,"template",null);try{t.documentElement.innerHTML=ge?"":i}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),fe===me?C.call(t,K?"html":"body")[0]:K?t.documentElement:a},Ie=function(e){return E.call(e.ownerDocument||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ze=function(e){return!(e instanceof d||e instanceof p)&&!("string"==typeof e.nodeName&&"string"==typeof e.textContent&&"function"==typeof e.removeChild&&e.attributes instanceof h&&"function"==typeof e.removeAttribute&&"function"==typeof e.setAttribute&&"string"==typeof e.namespaceURI&&"function"==typeof e.insertBefore)},Oe=function(e){return"object"===(void 0===s?"undefined":Ia(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Ia(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,r){L[e]&&ea(L[e],(function(e){e.call(n,t,r,we)}))},Re=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),ze(e))return Ne(e),!0;if(oa(e.nodeName,/[\u0080-\uFFFF]/))return Ne(e),!0;var r=be(e.nodeName);if(Pe("uponSanitizeElement",e,{tagName:r,allowedTags:F}),!Oe(e.firstElementChild)&&(!Oe(e.content)||!Oe(e.content.firstElementChild))&&la(/<[/\w]/g,e.innerHTML)&&la(/<[/\w]/g,e.textContent))return Ne(e),!0;if("select"===r&&la(/<template/i,e.innerHTML))return Ne(e),!0;if(!F[r]||q[r]){if(re&&!ae[r]){var o=b(e)||e.parentNode,i=_(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(v(i[a],!0),y(e))}return Ne(e),!0}return e instanceof l&&!Ce(e)?(Ne(e),!0):"noscript"!==r&&"noembed"!==r||!la(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=ia(t,I," "),t=ia(t,z," "),e.textContent!==t&&(na(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1):(Ne(e),!0)},De=function(e,t,n){if(ne&&("id"===t||"name"===t)&&(n in o||n in xe))return!1;if(V&&!$[t]&&la(O,t));else if(G&&la(P,t));else{if(!H[t]||$[t])return!1;if(ue[t]);else if(la(B,ia(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==aa(n,"data:")||!le[e]){if(W&&!la(R,ia(n,D,"")));else if(n)return!1}else;}return!0},Be=function(e){var t=void 0,r=void 0,o=void 0,i=void 0;Pe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(i=a.length;i--;){var l=t=a[i],c=l.name,u=l.namespaceURI;if(r=sa(t.value),o=be(c),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Pe("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Me(c,e),s.keepAttr))if(la(/\/>/i,r))Me(c,e);else{Y&&(r=ia(r,I," "),r=ia(r,z," "));var h=be(e.nodeName);if(De(h,o,r))try{u?e.setAttributeNS(u,c,r):e.setAttribute(c,r),ta(n.removed)}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},Fe=function e(t){var n=void 0,r=Ie(t);for(Pe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Pe("uponSanitizeShadowNode",n,null),Re(n)||(n.content instanceof i&&e(n.content),Be(n));Pe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,o){var a=void 0,l=void 0,c=void 0,u=void 0,h=void 0;if((ge=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Oe(e)){if("function"!=typeof e.toString)throw ca("toString is not a function");if("string"!=typeof(e=e.toString()))throw ca("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Ia(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Oe(e))return t.toStaticHTML(e.outerHTML)}return e}if(X||ke(o),n.removed=[],"string"==typeof e&&(oe=!1),oe);else if(e instanceof s)1===(l=(a=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===l.nodeName||"HTML"===l.nodeName?a=l:a.appendChild(l);else{if(!Z&&!Y&&!K&&-1===e.indexOf("<"))return x&&te?x.createHTML(e):e;if(!(a=Le(e)))return Z?null:k}a&&J&&Ne(a.firstChild);for(var d=Ie(oe?e:a);c=d.nextNode();)3===c.nodeType&&c===u||Re(c)||(c.content instanceof i&&Fe(c.content),Be(c),u=c);if(u=null,oe)return e;if(Z){if(Q)for(h=T.call(a.ownerDocument);a.firstChild;)h.appendChild(a.firstChild);else h=a;return ee&&(h=N.call(r,h,!0)),h}var p=K?a.outerHTML:a.innerHTML;return Y&&(p=ia(p,I," "),p=ia(p,z," ")),x&&te?x.createHTML(p):p},n.setConfig=function(e){ke(e),X=!0},n.clearConfig=function(){we=null,X=!1},n.isValidAttribute=function(e,t,n){we||ke({});var r=be(e),o=be(t);return De(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(L[e]=L[e]||[],na(L[e],t))},n.removeHook=function(e){L[e]&&ta(L[e])},n.removeHooks=function(e){L[e]&&(L[e]=[])},n.removeAllHooks=function(){L={}},n}(),Da=/["'&<>]/,Ba=function(e){var t,n=""+e,r=Da.exec(n);if(!r)return n;var o="",i=0,a=0;for(i=r.index;i<n.length;i++){switch(n.charCodeAt(i)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#39;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==i&&(o+=n.substring(a,i)),a=i+1,o+=t}return a!==i?o+n.substring(a,i):o};
24
24
  /*!
25
25
  * escape-html
26
26
  * Copyright(c) 2012-2013 TJ Holowaychuk
27
27
  * Copyright(c) 2015 Andreas Lubbe
28
28
  * Copyright(c) 2015 Tiancheng "Timothy" Gu
29
29
  * MIT Licensed
30
- */var Va,Wa={exports:{}};"undefined"!=typeof self&&self,Va=function(){return function(){var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return Kr}});var n=function e(t,n){this.position=void 0;var r,o="KaTeX parse error: "+t,i=n&&n.loc;if(i&&i.start<=i.end){var a=i.lexer.input;r=i.start;var s=i.end;r===a.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var l=a.slice(r,s).replace(/[^]/g,"$&̲");o+=(r>15?"…"+a.slice(r-15,r):a.slice(0,r))+l+(s+15<a.length?a.slice(s,s+15)+"…":a.slice(s))}var c=new Error(o);return c.name="ParseError",c.__proto__=e.prototype,c.position=r,c};n.prototype.__proto__=Error.prototype;var r=n,o=/([A-Z])/g,i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g,s=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},l={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(a,(function(e){return i[e]}))},hyphenate:function(e){return e.replace(o,"-$1").toLowerCase()},getBaseElem:s,isCharacterBox:function(e){var t=s(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},c=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},this.displayMode=l.deflt(e.displayMode,!1),this.output=l.deflt(e.output,"htmlAndMathml"),this.leqno=l.deflt(e.leqno,!1),this.fleqn=l.deflt(e.fleqn,!1),this.throwOnError=l.deflt(e.throwOnError,!0),this.errorColor=l.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,l.deflt(e.minRuleThickness,0)),this.colorIsTextColor=l.deflt(e.colorIsTextColor,!1),this.strict=l.deflt(e.strict,"warn"),this.trust=l.deflt(e.trust,!1),this.maxSize=Math.max(0,l.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,l.deflt(e.maxExpand,1e3)),this.globalGroup=l.deflt(e.globalGroup,!1)}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var o=this.strict;if("function"==typeof o&&(o=o(e,t,n)),o&&"ignore"!==o){if(!0===o||"error"===o)throw new r("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===o?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r&&("warn"===r?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=l.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),u=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return h[d[this.id]]},t.sub=function(){return h[p[this.id]]},t.fracNum=function(){return h[m[this.id]]},t.fracDen=function(){return h[f[this.id]]},t.cramp=function(){return h[g[this.id]]},t.text=function(){return h[v[this.id]]},t.isTight=function(){return this.size>=2},e}(),h=[new u(0,0,!1),new u(1,0,!0),new u(2,1,!1),new u(3,1,!0),new u(4,2,!1),new u(5,2,!0),new u(6,3,!1),new u(7,3,!0)],d=[4,5,4,5,6,7,6,7],p=[5,5,5,5,7,7,7,7],m=[2,3,4,5,6,7,6,7],f=[3,3,5,5,7,7,7,7],g=[1,1,3,3,5,5,7,7],v=[0,1,2,3,2,3,2,3],y={DISPLAY:h[0],TEXT:h[2],SCRIPT:h[4],SCRIPTSCRIPT:h[6]},_=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],b=[];function w(e){for(var t=0;t<b.length;t+=2)if(e>=b[t]&&e<=b[t+1])return!0;return!1}_.forEach((function(e){return e.blocks.forEach((function(e){return b.push.apply(b,e)}))}));var x=80,k={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},S=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){var e=function(e){return e.toText()};return this.children.map(e).join("")},e}(),A=function(e){return e.filter((function(e){return e})).join(" ")},E=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},T=function(e){var t=document.createElement(e);for(var n in t.className=A(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t},C=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+l.escape(A(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=l.hyphenate(r)+":"+this.style[r]+";");for(var o in n&&(t+=' style="'+l.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(o)&&(t+=" "+o+'="'+l.escape(this.attributes[o])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"},N=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"span")},t.toMarkup=function(){return C.call(this,"span")},e}(),M=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"a")},t.toMarkup=function(){return C.call(this,"a")},e}(),L=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=l.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+l.escape(t)+'"'),e+="'/>"},e}(),I={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"},z=function(){function e(e,t,n,r,o,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<_.length;t++)for(var n=_[t],r=0;r<n.blocks.length;r++){var o=n.blocks[r];if(e>=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=I[this.text])}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=A(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=l.escape(A(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=l.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+l.escape(n)+'"');var o=l.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o},e}(),O=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"},e}(),P=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",k[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+k[this.pathName]+"'/>"},e}(),R=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"},e}();function D(e){if(e instanceof z)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var B={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},F={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},j={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function H(e,t,n){if(!B[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),o=B[t][r];if(!o&&e[0]in j&&(r=j[e[0]].charCodeAt(0),o=B[t][r]),o||"text"!==n||w(r)&&(o=B[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var U={},q={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},G={math:{},text:{}},V=G;function W(e,t,n,r,o,i){G[e][o]={font:t,group:n,replace:r},i&&r&&(G[e][r]=G[e][o])}var Y="math",K="text",X="main",J="ams",Z="accent-token",Q="bin",ee="close",te="inner",ne="mathord",re="op-token",oe="open",ie="punct",ae="rel",se="spacing",le="textord";W(Y,X,ae,"≡","\\equiv",!0),W(Y,X,ae,"≺","\\prec",!0),W(Y,X,ae,"≻","\\succ",!0),W(Y,X,ae,"∼","\\sim",!0),W(Y,X,ae,"⊥","\\perp"),W(Y,X,ae,"⪯","\\preceq",!0),W(Y,X,ae,"⪰","\\succeq",!0),W(Y,X,ae,"≃","\\simeq",!0),W(Y,X,ae,"∣","\\mid",!0),W(Y,X,ae,"≪","\\ll",!0),W(Y,X,ae,"≫","\\gg",!0),W(Y,X,ae,"≍","\\asymp",!0),W(Y,X,ae,"∥","\\parallel"),W(Y,X,ae,"⋈","\\bowtie",!0),W(Y,X,ae,"⌣","\\smile",!0),W(Y,X,ae,"⊑","\\sqsubseteq",!0),W(Y,X,ae,"⊒","\\sqsupseteq",!0),W(Y,X,ae,"≐","\\doteq",!0),W(Y,X,ae,"⌢","\\frown",!0),W(Y,X,ae,"∋","\\ni",!0),W(Y,X,ae,"∝","\\propto",!0),W(Y,X,ae,"⊢","\\vdash",!0),W(Y,X,ae,"⊣","\\dashv",!0),W(Y,X,ae,"∋","\\owns"),W(Y,X,ie,".","\\ldotp"),W(Y,X,ie,"⋅","\\cdotp"),W(Y,X,le,"#","\\#"),W(K,X,le,"#","\\#"),W(Y,X,le,"&","\\&"),W(K,X,le,"&","\\&"),W(Y,X,le,"ℵ","\\aleph",!0),W(Y,X,le,"∀","\\forall",!0),W(Y,X,le,"ℏ","\\hbar",!0),W(Y,X,le,"∃","\\exists",!0),W(Y,X,le,"∇","\\nabla",!0),W(Y,X,le,"♭","\\flat",!0),W(Y,X,le,"ℓ","\\ell",!0),W(Y,X,le,"♮","\\natural",!0),W(Y,X,le,"♣","\\clubsuit",!0),W(Y,X,le,"℘","\\wp",!0),W(Y,X,le,"♯","\\sharp",!0),W(Y,X,le,"♢","\\diamondsuit",!0),W(Y,X,le,"ℜ","\\Re",!0),W(Y,X,le,"♡","\\heartsuit",!0),W(Y,X,le,"ℑ","\\Im",!0),W(Y,X,le,"♠","\\spadesuit",!0),W(Y,X,le,"§","\\S",!0),W(K,X,le,"§","\\S"),W(Y,X,le,"¶","\\P",!0),W(K,X,le,"¶","\\P"),W(Y,X,le,"†","\\dag"),W(K,X,le,"†","\\dag"),W(K,X,le,"†","\\textdagger"),W(Y,X,le,"‡","\\ddag"),W(K,X,le,"‡","\\ddag"),W(K,X,le,"‡","\\textdaggerdbl"),W(Y,X,ee,"⎱","\\rmoustache",!0),W(Y,X,oe,"⎰","\\lmoustache",!0),W(Y,X,ee,"⟯","\\rgroup",!0),W(Y,X,oe,"⟮","\\lgroup",!0),W(Y,X,Q,"∓","\\mp",!0),W(Y,X,Q,"⊖","\\ominus",!0),W(Y,X,Q,"⊎","\\uplus",!0),W(Y,X,Q,"⊓","\\sqcap",!0),W(Y,X,Q,"∗","\\ast"),W(Y,X,Q,"⊔","\\sqcup",!0),W(Y,X,Q,"◯","\\bigcirc",!0),W(Y,X,Q,"∙","\\bullet"),W(Y,X,Q,"‡","\\ddagger"),W(Y,X,Q,"≀","\\wr",!0),W(Y,X,Q,"⨿","\\amalg"),W(Y,X,Q,"&","\\And"),W(Y,X,ae,"⟵","\\longleftarrow",!0),W(Y,X,ae,"⇐","\\Leftarrow",!0),W(Y,X,ae,"⟸","\\Longleftarrow",!0),W(Y,X,ae,"⟶","\\longrightarrow",!0),W(Y,X,ae,"⇒","\\Rightarrow",!0),W(Y,X,ae,"⟹","\\Longrightarrow",!0),W(Y,X,ae,"↔","\\leftrightarrow",!0),W(Y,X,ae,"⟷","\\longleftrightarrow",!0),W(Y,X,ae,"⇔","\\Leftrightarrow",!0),W(Y,X,ae,"⟺","\\Longleftrightarrow",!0),W(Y,X,ae,"↦","\\mapsto",!0),W(Y,X,ae,"⟼","\\longmapsto",!0),W(Y,X,ae,"↗","\\nearrow",!0),W(Y,X,ae,"↩","\\hookleftarrow",!0),W(Y,X,ae,"↪","\\hookrightarrow",!0),W(Y,X,ae,"↘","\\searrow",!0),W(Y,X,ae,"↼","\\leftharpoonup",!0),W(Y,X,ae,"⇀","\\rightharpoonup",!0),W(Y,X,ae,"↙","\\swarrow",!0),W(Y,X,ae,"↽","\\leftharpoondown",!0),W(Y,X,ae,"⇁","\\rightharpoondown",!0),W(Y,X,ae,"↖","\\nwarrow",!0),W(Y,X,ae,"⇌","\\rightleftharpoons",!0),W(Y,J,ae,"≮","\\nless",!0),W(Y,J,ae,"","\\@nleqslant"),W(Y,J,ae,"","\\@nleqq"),W(Y,J,ae,"⪇","\\lneq",!0),W(Y,J,ae,"≨","\\lneqq",!0),W(Y,J,ae,"","\\@lvertneqq"),W(Y,J,ae,"⋦","\\lnsim",!0),W(Y,J,ae,"⪉","\\lnapprox",!0),W(Y,J,ae,"⊀","\\nprec",!0),W(Y,J,ae,"⋠","\\npreceq",!0),W(Y,J,ae,"⋨","\\precnsim",!0),W(Y,J,ae,"⪹","\\precnapprox",!0),W(Y,J,ae,"≁","\\nsim",!0),W(Y,J,ae,"","\\@nshortmid"),W(Y,J,ae,"∤","\\nmid",!0),W(Y,J,ae,"⊬","\\nvdash",!0),W(Y,J,ae,"⊭","\\nvDash",!0),W(Y,J,ae,"⋪","\\ntriangleleft"),W(Y,J,ae,"⋬","\\ntrianglelefteq",!0),W(Y,J,ae,"⊊","\\subsetneq",!0),W(Y,J,ae,"","\\@varsubsetneq"),W(Y,J,ae,"⫋","\\subsetneqq",!0),W(Y,J,ae,"","\\@varsubsetneqq"),W(Y,J,ae,"≯","\\ngtr",!0),W(Y,J,ae,"","\\@ngeqslant"),W(Y,J,ae,"","\\@ngeqq"),W(Y,J,ae,"⪈","\\gneq",!0),W(Y,J,ae,"≩","\\gneqq",!0),W(Y,J,ae,"","\\@gvertneqq"),W(Y,J,ae,"⋧","\\gnsim",!0),W(Y,J,ae,"⪊","\\gnapprox",!0),W(Y,J,ae,"⊁","\\nsucc",!0),W(Y,J,ae,"⋡","\\nsucceq",!0),W(Y,J,ae,"⋩","\\succnsim",!0),W(Y,J,ae,"⪺","\\succnapprox",!0),W(Y,J,ae,"≆","\\ncong",!0),W(Y,J,ae,"","\\@nshortparallel"),W(Y,J,ae,"∦","\\nparallel",!0),W(Y,J,ae,"⊯","\\nVDash",!0),W(Y,J,ae,"⋫","\\ntriangleright"),W(Y,J,ae,"⋭","\\ntrianglerighteq",!0),W(Y,J,ae,"","\\@nsupseteqq"),W(Y,J,ae,"⊋","\\supsetneq",!0),W(Y,J,ae,"","\\@varsupsetneq"),W(Y,J,ae,"⫌","\\supsetneqq",!0),W(Y,J,ae,"","\\@varsupsetneqq"),W(Y,J,ae,"⊮","\\nVdash",!0),W(Y,J,ae,"⪵","\\precneqq",!0),W(Y,J,ae,"⪶","\\succneqq",!0),W(Y,J,ae,"","\\@nsubseteqq"),W(Y,J,Q,"⊴","\\unlhd"),W(Y,J,Q,"⊵","\\unrhd"),W(Y,J,ae,"↚","\\nleftarrow",!0),W(Y,J,ae,"↛","\\nrightarrow",!0),W(Y,J,ae,"⇍","\\nLeftarrow",!0),W(Y,J,ae,"⇏","\\nRightarrow",!0),W(Y,J,ae,"↮","\\nleftrightarrow",!0),W(Y,J,ae,"⇎","\\nLeftrightarrow",!0),W(Y,J,ae,"△","\\vartriangle"),W(Y,J,le,"ℏ","\\hslash"),W(Y,J,le,"▽","\\triangledown"),W(Y,J,le,"◊","\\lozenge"),W(Y,J,le,"Ⓢ","\\circledS"),W(Y,J,le,"®","\\circledR"),W(K,J,le,"®","\\circledR"),W(Y,J,le,"∡","\\measuredangle",!0),W(Y,J,le,"∄","\\nexists"),W(Y,J,le,"℧","\\mho"),W(Y,J,le,"Ⅎ","\\Finv",!0),W(Y,J,le,"⅁","\\Game",!0),W(Y,J,le,"‵","\\backprime"),W(Y,J,le,"▲","\\blacktriangle"),W(Y,J,le,"▼","\\blacktriangledown"),W(Y,J,le,"■","\\blacksquare"),W(Y,J,le,"⧫","\\blacklozenge"),W(Y,J,le,"★","\\bigstar"),W(Y,J,le,"∢","\\sphericalangle",!0),W(Y,J,le,"∁","\\complement",!0),W(Y,J,le,"ð","\\eth",!0),W(K,X,le,"ð","ð"),W(Y,J,le,"╱","\\diagup"),W(Y,J,le,"╲","\\diagdown"),W(Y,J,le,"□","\\square"),W(Y,J,le,"□","\\Box"),W(Y,J,le,"◊","\\Diamond"),W(Y,J,le,"¥","\\yen",!0),W(K,J,le,"¥","\\yen",!0),W(Y,J,le,"✓","\\checkmark",!0),W(K,J,le,"✓","\\checkmark"),W(Y,J,le,"ℶ","\\beth",!0),W(Y,J,le,"ℸ","\\daleth",!0),W(Y,J,le,"ℷ","\\gimel",!0),W(Y,J,le,"ϝ","\\digamma",!0),W(Y,J,le,"ϰ","\\varkappa"),W(Y,J,oe,"┌","\\@ulcorner",!0),W(Y,J,ee,"┐","\\@urcorner",!0),W(Y,J,oe,"└","\\@llcorner",!0),W(Y,J,ee,"┘","\\@lrcorner",!0),W(Y,J,ae,"≦","\\leqq",!0),W(Y,J,ae,"⩽","\\leqslant",!0),W(Y,J,ae,"⪕","\\eqslantless",!0),W(Y,J,ae,"≲","\\lesssim",!0),W(Y,J,ae,"⪅","\\lessapprox",!0),W(Y,J,ae,"≊","\\approxeq",!0),W(Y,J,Q,"⋖","\\lessdot"),W(Y,J,ae,"⋘","\\lll",!0),W(Y,J,ae,"≶","\\lessgtr",!0),W(Y,J,ae,"⋚","\\lesseqgtr",!0),W(Y,J,ae,"⪋","\\lesseqqgtr",!0),W(Y,J,ae,"≑","\\doteqdot"),W(Y,J,ae,"≓","\\risingdotseq",!0),W(Y,J,ae,"≒","\\fallingdotseq",!0),W(Y,J,ae,"∽","\\backsim",!0),W(Y,J,ae,"⋍","\\backsimeq",!0),W(Y,J,ae,"⫅","\\subseteqq",!0),W(Y,J,ae,"⋐","\\Subset",!0),W(Y,J,ae,"⊏","\\sqsubset",!0),W(Y,J,ae,"≼","\\preccurlyeq",!0),W(Y,J,ae,"⋞","\\curlyeqprec",!0),W(Y,J,ae,"≾","\\precsim",!0),W(Y,J,ae,"⪷","\\precapprox",!0),W(Y,J,ae,"⊲","\\vartriangleleft"),W(Y,J,ae,"⊴","\\trianglelefteq"),W(Y,J,ae,"⊨","\\vDash",!0),W(Y,J,ae,"⊪","\\Vvdash",!0),W(Y,J,ae,"⌣","\\smallsmile"),W(Y,J,ae,"⌢","\\smallfrown"),W(Y,J,ae,"≏","\\bumpeq",!0),W(Y,J,ae,"≎","\\Bumpeq",!0),W(Y,J,ae,"≧","\\geqq",!0),W(Y,J,ae,"⩾","\\geqslant",!0),W(Y,J,ae,"⪖","\\eqslantgtr",!0),W(Y,J,ae,"≳","\\gtrsim",!0),W(Y,J,ae,"⪆","\\gtrapprox",!0),W(Y,J,Q,"⋗","\\gtrdot"),W(Y,J,ae,"⋙","\\ggg",!0),W(Y,J,ae,"≷","\\gtrless",!0),W(Y,J,ae,"⋛","\\gtreqless",!0),W(Y,J,ae,"⪌","\\gtreqqless",!0),W(Y,J,ae,"≖","\\eqcirc",!0),W(Y,J,ae,"≗","\\circeq",!0),W(Y,J,ae,"≜","\\triangleq",!0),W(Y,J,ae,"∼","\\thicksim"),W(Y,J,ae,"≈","\\thickapprox"),W(Y,J,ae,"⫆","\\supseteqq",!0),W(Y,J,ae,"⋑","\\Supset",!0),W(Y,J,ae,"⊐","\\sqsupset",!0),W(Y,J,ae,"≽","\\succcurlyeq",!0),W(Y,J,ae,"⋟","\\curlyeqsucc",!0),W(Y,J,ae,"≿","\\succsim",!0),W(Y,J,ae,"⪸","\\succapprox",!0),W(Y,J,ae,"⊳","\\vartriangleright"),W(Y,J,ae,"⊵","\\trianglerighteq"),W(Y,J,ae,"⊩","\\Vdash",!0),W(Y,J,ae,"∣","\\shortmid"),W(Y,J,ae,"∥","\\shortparallel"),W(Y,J,ae,"≬","\\between",!0),W(Y,J,ae,"⋔","\\pitchfork",!0),W(Y,J,ae,"∝","\\varpropto"),W(Y,J,ae,"◀","\\blacktriangleleft"),W(Y,J,ae,"∴","\\therefore",!0),W(Y,J,ae,"∍","\\backepsilon"),W(Y,J,ae,"▶","\\blacktriangleright"),W(Y,J,ae,"∵","\\because",!0),W(Y,J,ae,"⋘","\\llless"),W(Y,J,ae,"⋙","\\gggtr"),W(Y,J,Q,"⊲","\\lhd"),W(Y,J,Q,"⊳","\\rhd"),W(Y,J,ae,"≂","\\eqsim",!0),W(Y,X,ae,"⋈","\\Join"),W(Y,J,ae,"≑","\\Doteq",!0),W(Y,J,Q,"∔","\\dotplus",!0),W(Y,J,Q,"∖","\\smallsetminus"),W(Y,J,Q,"⋒","\\Cap",!0),W(Y,J,Q,"⋓","\\Cup",!0),W(Y,J,Q,"⩞","\\doublebarwedge",!0),W(Y,J,Q,"⊟","\\boxminus",!0),W(Y,J,Q,"⊞","\\boxplus",!0),W(Y,J,Q,"⋇","\\divideontimes",!0),W(Y,J,Q,"⋉","\\ltimes",!0),W(Y,J,Q,"⋊","\\rtimes",!0),W(Y,J,Q,"⋋","\\leftthreetimes",!0),W(Y,J,Q,"⋌","\\rightthreetimes",!0),W(Y,J,Q,"⋏","\\curlywedge",!0),W(Y,J,Q,"⋎","\\curlyvee",!0),W(Y,J,Q,"⊝","\\circleddash",!0),W(Y,J,Q,"⊛","\\circledast",!0),W(Y,J,Q,"⋅","\\centerdot"),W(Y,J,Q,"⊺","\\intercal",!0),W(Y,J,Q,"⋒","\\doublecap"),W(Y,J,Q,"⋓","\\doublecup"),W(Y,J,Q,"⊠","\\boxtimes",!0),W(Y,J,ae,"⇢","\\dashrightarrow",!0),W(Y,J,ae,"⇠","\\dashleftarrow",!0),W(Y,J,ae,"⇇","\\leftleftarrows",!0),W(Y,J,ae,"⇆","\\leftrightarrows",!0),W(Y,J,ae,"⇚","\\Lleftarrow",!0),W(Y,J,ae,"↞","\\twoheadleftarrow",!0),W(Y,J,ae,"↢","\\leftarrowtail",!0),W(Y,J,ae,"↫","\\looparrowleft",!0),W(Y,J,ae,"⇋","\\leftrightharpoons",!0),W(Y,J,ae,"↶","\\curvearrowleft",!0),W(Y,J,ae,"↺","\\circlearrowleft",!0),W(Y,J,ae,"↰","\\Lsh",!0),W(Y,J,ae,"⇈","\\upuparrows",!0),W(Y,J,ae,"↿","\\upharpoonleft",!0),W(Y,J,ae,"⇃","\\downharpoonleft",!0),W(Y,X,ae,"⊶","\\origof",!0),W(Y,X,ae,"⊷","\\imageof",!0),W(Y,J,ae,"⊸","\\multimap",!0),W(Y,J,ae,"↭","\\leftrightsquigarrow",!0),W(Y,J,ae,"⇉","\\rightrightarrows",!0),W(Y,J,ae,"⇄","\\rightleftarrows",!0),W(Y,J,ae,"↠","\\twoheadrightarrow",!0),W(Y,J,ae,"↣","\\rightarrowtail",!0),W(Y,J,ae,"↬","\\looparrowright",!0),W(Y,J,ae,"↷","\\curvearrowright",!0),W(Y,J,ae,"↻","\\circlearrowright",!0),W(Y,J,ae,"↱","\\Rsh",!0),W(Y,J,ae,"⇊","\\downdownarrows",!0),W(Y,J,ae,"↾","\\upharpoonright",!0),W(Y,J,ae,"⇂","\\downharpoonright",!0),W(Y,J,ae,"⇝","\\rightsquigarrow",!0),W(Y,J,ae,"⇝","\\leadsto"),W(Y,J,ae,"⇛","\\Rrightarrow",!0),W(Y,J,ae,"↾","\\restriction"),W(Y,X,le,"‘","`"),W(Y,X,le,"$","\\$"),W(K,X,le,"$","\\$"),W(K,X,le,"$","\\textdollar"),W(Y,X,le,"%","\\%"),W(K,X,le,"%","\\%"),W(Y,X,le,"_","\\_"),W(K,X,le,"_","\\_"),W(K,X,le,"_","\\textunderscore"),W(Y,X,le,"∠","\\angle",!0),W(Y,X,le,"∞","\\infty",!0),W(Y,X,le,"′","\\prime"),W(Y,X,le,"△","\\triangle"),W(Y,X,le,"Γ","\\Gamma",!0),W(Y,X,le,"Δ","\\Delta",!0),W(Y,X,le,"Θ","\\Theta",!0),W(Y,X,le,"Λ","\\Lambda",!0),W(Y,X,le,"Ξ","\\Xi",!0),W(Y,X,le,"Π","\\Pi",!0),W(Y,X,le,"Σ","\\Sigma",!0),W(Y,X,le,"Υ","\\Upsilon",!0),W(Y,X,le,"Φ","\\Phi",!0),W(Y,X,le,"Ψ","\\Psi",!0),W(Y,X,le,"Ω","\\Omega",!0),W(Y,X,le,"A","Α"),W(Y,X,le,"B","Β"),W(Y,X,le,"E","Ε"),W(Y,X,le,"Z","Ζ"),W(Y,X,le,"H","Η"),W(Y,X,le,"I","Ι"),W(Y,X,le,"K","Κ"),W(Y,X,le,"M","Μ"),W(Y,X,le,"N","Ν"),W(Y,X,le,"O","Ο"),W(Y,X,le,"P","Ρ"),W(Y,X,le,"T","Τ"),W(Y,X,le,"X","Χ"),W(Y,X,le,"¬","\\neg",!0),W(Y,X,le,"¬","\\lnot"),W(Y,X,le,"⊤","\\top"),W(Y,X,le,"⊥","\\bot"),W(Y,X,le,"∅","\\emptyset"),W(Y,J,le,"∅","\\varnothing"),W(Y,X,ne,"α","\\alpha",!0),W(Y,X,ne,"β","\\beta",!0),W(Y,X,ne,"γ","\\gamma",!0),W(Y,X,ne,"δ","\\delta",!0),W(Y,X,ne,"ϵ","\\epsilon",!0),W(Y,X,ne,"ζ","\\zeta",!0),W(Y,X,ne,"η","\\eta",!0),W(Y,X,ne,"θ","\\theta",!0),W(Y,X,ne,"ι","\\iota",!0),W(Y,X,ne,"κ","\\kappa",!0),W(Y,X,ne,"λ","\\lambda",!0),W(Y,X,ne,"μ","\\mu",!0),W(Y,X,ne,"ν","\\nu",!0),W(Y,X,ne,"ξ","\\xi",!0),W(Y,X,ne,"ο","\\omicron",!0),W(Y,X,ne,"π","\\pi",!0),W(Y,X,ne,"ρ","\\rho",!0),W(Y,X,ne,"σ","\\sigma",!0),W(Y,X,ne,"τ","\\tau",!0),W(Y,X,ne,"υ","\\upsilon",!0),W(Y,X,ne,"ϕ","\\phi",!0),W(Y,X,ne,"χ","\\chi",!0),W(Y,X,ne,"ψ","\\psi",!0),W(Y,X,ne,"ω","\\omega",!0),W(Y,X,ne,"ε","\\varepsilon",!0),W(Y,X,ne,"ϑ","\\vartheta",!0),W(Y,X,ne,"ϖ","\\varpi",!0),W(Y,X,ne,"ϱ","\\varrho",!0),W(Y,X,ne,"ς","\\varsigma",!0),W(Y,X,ne,"φ","\\varphi",!0),W(Y,X,Q,"∗","*",!0),W(Y,X,Q,"+","+"),W(Y,X,Q,"−","-",!0),W(Y,X,Q,"⋅","\\cdot",!0),W(Y,X,Q,"∘","\\circ"),W(Y,X,Q,"÷","\\div",!0),W(Y,X,Q,"±","\\pm",!0),W(Y,X,Q,"×","\\times",!0),W(Y,X,Q,"∩","\\cap",!0),W(Y,X,Q,"∪","\\cup",!0),W(Y,X,Q,"∖","\\setminus"),W(Y,X,Q,"∧","\\land"),W(Y,X,Q,"∨","\\lor"),W(Y,X,Q,"∧","\\wedge",!0),W(Y,X,Q,"∨","\\vee",!0),W(Y,X,le,"√","\\surd"),W(Y,X,oe,"⟨","\\langle",!0),W(Y,X,oe,"∣","\\lvert"),W(Y,X,oe,"∥","\\lVert"),W(Y,X,ee,"?","?"),W(Y,X,ee,"!","!"),W(Y,X,ee,"⟩","\\rangle",!0),W(Y,X,ee,"∣","\\rvert"),W(Y,X,ee,"∥","\\rVert"),W(Y,X,ae,"=","="),W(Y,X,ae,":",":"),W(Y,X,ae,"≈","\\approx",!0),W(Y,X,ae,"≅","\\cong",!0),W(Y,X,ae,"≥","\\ge"),W(Y,X,ae,"≥","\\geq",!0),W(Y,X,ae,"←","\\gets"),W(Y,X,ae,">","\\gt",!0),W(Y,X,ae,"∈","\\in",!0),W(Y,X,ae,"","\\@not"),W(Y,X,ae,"⊂","\\subset",!0),W(Y,X,ae,"⊃","\\supset",!0),W(Y,X,ae,"⊆","\\subseteq",!0),W(Y,X,ae,"⊇","\\supseteq",!0),W(Y,J,ae,"⊈","\\nsubseteq",!0),W(Y,J,ae,"⊉","\\nsupseteq",!0),W(Y,X,ae,"⊨","\\models"),W(Y,X,ae,"←","\\leftarrow",!0),W(Y,X,ae,"≤","\\le"),W(Y,X,ae,"≤","\\leq",!0),W(Y,X,ae,"<","\\lt",!0),W(Y,X,ae,"→","\\rightarrow",!0),W(Y,X,ae,"→","\\to"),W(Y,J,ae,"≱","\\ngeq",!0),W(Y,J,ae,"≰","\\nleq",!0),W(Y,X,se," ","\\ "),W(Y,X,se," ","\\space"),W(Y,X,se," ","\\nobreakspace"),W(K,X,se," ","\\ "),W(K,X,se," "," "),W(K,X,se," ","\\space"),W(K,X,se," ","\\nobreakspace"),W(Y,X,se,null,"\\nobreak"),W(Y,X,se,null,"\\allowbreak"),W(Y,X,ie,",",","),W(Y,X,ie,";",";"),W(Y,J,Q,"⊼","\\barwedge",!0),W(Y,J,Q,"⊻","\\veebar",!0),W(Y,X,Q,"⊙","\\odot",!0),W(Y,X,Q,"⊕","\\oplus",!0),W(Y,X,Q,"⊗","\\otimes",!0),W(Y,X,le,"∂","\\partial",!0),W(Y,X,Q,"⊘","\\oslash",!0),W(Y,J,Q,"⊚","\\circledcirc",!0),W(Y,J,Q,"⊡","\\boxdot",!0),W(Y,X,Q,"△","\\bigtriangleup"),W(Y,X,Q,"▽","\\bigtriangledown"),W(Y,X,Q,"†","\\dagger"),W(Y,X,Q,"⋄","\\diamond"),W(Y,X,Q,"⋆","\\star"),W(Y,X,Q,"◃","\\triangleleft"),W(Y,X,Q,"▹","\\triangleright"),W(Y,X,oe,"{","\\{"),W(K,X,le,"{","\\{"),W(K,X,le,"{","\\textbraceleft"),W(Y,X,ee,"}","\\}"),W(K,X,le,"}","\\}"),W(K,X,le,"}","\\textbraceright"),W(Y,X,oe,"{","\\lbrace"),W(Y,X,ee,"}","\\rbrace"),W(Y,X,oe,"[","\\lbrack",!0),W(K,X,le,"[","\\lbrack",!0),W(Y,X,ee,"]","\\rbrack",!0),W(K,X,le,"]","\\rbrack",!0),W(Y,X,oe,"(","\\lparen",!0),W(Y,X,ee,")","\\rparen",!0),W(K,X,le,"<","\\textless",!0),W(K,X,le,">","\\textgreater",!0),W(Y,X,oe,"⌊","\\lfloor",!0),W(Y,X,ee,"⌋","\\rfloor",!0),W(Y,X,oe,"⌈","\\lceil",!0),W(Y,X,ee,"⌉","\\rceil",!0),W(Y,X,le,"\\","\\backslash"),W(Y,X,le,"∣","|"),W(Y,X,le,"∣","\\vert"),W(K,X,le,"|","\\textbar",!0),W(Y,X,le,"∥","\\|"),W(Y,X,le,"∥","\\Vert"),W(K,X,le,"∥","\\textbardbl"),W(K,X,le,"~","\\textasciitilde"),W(K,X,le,"\\","\\textbackslash"),W(K,X,le,"^","\\textasciicircum"),W(Y,X,ae,"↑","\\uparrow",!0),W(Y,X,ae,"⇑","\\Uparrow",!0),W(Y,X,ae,"↓","\\downarrow",!0),W(Y,X,ae,"⇓","\\Downarrow",!0),W(Y,X,ae,"↕","\\updownarrow",!0),W(Y,X,ae,"⇕","\\Updownarrow",!0),W(Y,X,re,"∐","\\coprod"),W(Y,X,re,"⋁","\\bigvee"),W(Y,X,re,"⋀","\\bigwedge"),W(Y,X,re,"⨄","\\biguplus"),W(Y,X,re,"⋂","\\bigcap"),W(Y,X,re,"⋃","\\bigcup"),W(Y,X,re,"∫","\\int"),W(Y,X,re,"∫","\\intop"),W(Y,X,re,"∬","\\iint"),W(Y,X,re,"∭","\\iiint"),W(Y,X,re,"∏","\\prod"),W(Y,X,re,"∑","\\sum"),W(Y,X,re,"⨂","\\bigotimes"),W(Y,X,re,"⨁","\\bigoplus"),W(Y,X,re,"⨀","\\bigodot"),W(Y,X,re,"∮","\\oint"),W(Y,X,re,"∯","\\oiint"),W(Y,X,re,"∰","\\oiiint"),W(Y,X,re,"⨆","\\bigsqcup"),W(Y,X,re,"∫","\\smallint"),W(K,X,te,"…","\\textellipsis"),W(Y,X,te,"…","\\mathellipsis"),W(K,X,te,"…","\\ldots",!0),W(Y,X,te,"…","\\ldots",!0),W(Y,X,te,"⋯","\\@cdots",!0),W(Y,X,te,"⋱","\\ddots",!0),W(Y,X,le,"⋮","\\varvdots"),W(Y,X,Z,"ˊ","\\acute"),W(Y,X,Z,"ˋ","\\grave"),W(Y,X,Z,"¨","\\ddot"),W(Y,X,Z,"~","\\tilde"),W(Y,X,Z,"ˉ","\\bar"),W(Y,X,Z,"˘","\\breve"),W(Y,X,Z,"ˇ","\\check"),W(Y,X,Z,"^","\\hat"),W(Y,X,Z,"⃗","\\vec"),W(Y,X,Z,"˙","\\dot"),W(Y,X,Z,"˚","\\mathring"),W(Y,X,ne,"","\\@imath"),W(Y,X,ne,"","\\@jmath"),W(Y,X,le,"ı","ı"),W(Y,X,le,"ȷ","ȷ"),W(K,X,le,"ı","\\i",!0),W(K,X,le,"ȷ","\\j",!0),W(K,X,le,"ß","\\ss",!0),W(K,X,le,"æ","\\ae",!0),W(K,X,le,"œ","\\oe",!0),W(K,X,le,"ø","\\o",!0),W(K,X,le,"Æ","\\AE",!0),W(K,X,le,"Œ","\\OE",!0),W(K,X,le,"Ø","\\O",!0),W(K,X,Z,"ˊ","\\'"),W(K,X,Z,"ˋ","\\`"),W(K,X,Z,"ˆ","\\^"),W(K,X,Z,"˜","\\~"),W(K,X,Z,"ˉ","\\="),W(K,X,Z,"˘","\\u"),W(K,X,Z,"˙","\\."),W(K,X,Z,"¸","\\c"),W(K,X,Z,"˚","\\r"),W(K,X,Z,"ˇ","\\v"),W(K,X,Z,"¨",'\\"'),W(K,X,Z,"˝","\\H"),W(K,X,Z,"◯","\\textcircled");var ce={"--":!0,"---":!0,"``":!0,"''":!0};W(K,X,le,"–","--",!0),W(K,X,le,"–","\\textendash"),W(K,X,le,"—","---",!0),W(K,X,le,"—","\\textemdash"),W(K,X,le,"‘","`",!0),W(K,X,le,"‘","\\textquoteleft"),W(K,X,le,"’","'",!0),W(K,X,le,"’","\\textquoteright"),W(K,X,le,"“","``",!0),W(K,X,le,"“","\\textquotedblleft"),W(K,X,le,"”","''",!0),W(K,X,le,"”","\\textquotedblright"),W(Y,X,le,"°","\\degree",!0),W(K,X,le,"°","\\degree"),W(K,X,le,"°","\\textdegree",!0),W(Y,X,le,"£","\\pounds"),W(Y,X,le,"£","\\mathsterling",!0),W(K,X,le,"£","\\pounds"),W(K,X,le,"£","\\textsterling",!0),W(Y,J,le,"✠","\\maltese"),W(K,J,le,"✠","\\maltese");for(var ue='0123456789/@."',he=0;he<ue.length;he++){var de=ue.charAt(he);W(Y,X,le,de,de)}for(var pe='0123456789!@*()-=+";:?/.,',me=0;me<pe.length;me++){var fe=pe.charAt(me);W(K,X,le,fe,fe)}for(var ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ve=0;ve<ge.length;ve++){var ye=ge.charAt(ve);W(Y,X,ne,ye,ye),W(K,X,le,ye,ye)}W(Y,J,le,"C","ℂ"),W(K,J,le,"C","ℂ"),W(Y,J,le,"H","ℍ"),W(K,J,le,"H","ℍ"),W(Y,J,le,"N","ℕ"),W(K,J,le,"N","ℕ"),W(Y,J,le,"P","ℙ"),W(K,J,le,"P","ℙ"),W(Y,J,le,"Q","ℚ"),W(K,J,le,"Q","ℚ"),W(Y,J,le,"R","ℝ"),W(K,J,le,"R","ℝ"),W(Y,J,le,"Z","ℤ"),W(K,J,le,"Z","ℤ"),W(Y,X,ne,"h","ℎ"),W(K,X,ne,"h","ℎ");for(var _e="",be=0;be<ge.length;be++){var we=ge.charAt(be);W(Y,X,ne,we,_e=String.fromCharCode(55349,56320+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56372+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56424+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56580+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56736+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56788+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56840+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56944+be)),W(K,X,le,we,_e),be<26&&(W(Y,X,ne,we,_e=String.fromCharCode(55349,56632+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56476+be)),W(K,X,le,we,_e))}W(Y,X,ne,"k",_e=String.fromCharCode(55349,56668)),W(K,X,le,"k",_e);for(var xe=0;xe<10;xe++){var ke=xe.toString();W(Y,X,ne,ke,_e=String.fromCharCode(55349,57294+xe)),W(K,X,le,ke,_e),W(Y,X,ne,ke,_e=String.fromCharCode(55349,57314+xe)),W(K,X,le,ke,_e),W(Y,X,ne,ke,_e=String.fromCharCode(55349,57324+xe)),W(K,X,le,ke,_e),W(Y,X,ne,ke,_e=String.fromCharCode(55349,57334+xe)),W(K,X,le,ke,_e)}for(var Se="ÐÞþ",Ae=0;Ae<Se.length;Ae++){var Ee=Se.charAt(Ae);W(Y,X,ne,Ee,Ee),W(K,X,le,Ee,Ee)}var Te=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ce=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ne=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Me=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Le=function(e,t){return t.size<2?e:Ne[e-1][t.size-1]},Ie=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Me[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:Le(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Me[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=Le(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!U[t=e>=5?0:e>=3?1:2]){var n=U[t]={cssEmPerMu:F.quad[t]/18};for(var r in F)F.hasOwnProperty(r)&&(n[r]=F[r][t])}return U[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Ie.BASESIZE=6;var ze=Ie,Oe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Pe={ex:!0,em:!0,mu:!0},Re=function(e){return"string"!=typeof e&&(e=e.unit),e in Oe||e in Pe||"ex"===e},De=function(e,t){var n;if(e.unit in Oe)n=Oe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var o;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new r("Invalid unit: '"+e.unit+"'");n=o.fontMetrics().quad}o!==t&&(n*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Be=function(e,t,n){return V[n][e]&&V[n][e].replace&&(e=V[n][e].replace),{value:e,metrics:H(e,t,n)}},Fe=function(e,t,n,r,o){var i,a=Be(e,t,n),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),i=new z(e,s.height,s.depth,l,s.skew,s.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new z(e,0,0,0,0,0,o);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var c=r.getColor();c&&(i.style.color=c)}return i},je=function(e,t){if(A(e.classes)!==A(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},He=function(e){for(var t=0,n=0,r=0,o=0;o<e.children.length;o++){var i=e.children[o];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Ue=function(e,t,n,r){var o=new N(e,t,n,r);return He(o),o},qe=function(e,t,n,r){return new N(e,t,n,r)},$e=function(e){var t=new S(e);return He(t),t},Ge=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Ve={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},We={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ye={fontMap:Ve,makeSymbol:Fe,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&Be(e,"Main-Bold",t).metrics?Fe(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===V[t][e].font?Fe(e,"Main-Regular",t,n,r):Fe(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:Ue,makeSvgSpan:qe,makeLineSpan:function(e,t,n){var r=Ue([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var o=new M(e,t,n,r);return He(o),o},makeFragment:$e,wrapFragment:function(e,t){return e instanceof S?Ue([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,i=1;i<t.length;i++){var a=-t[i].shift-o-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);o+=a,n.push({type:"kern",size:s}),n.push(t[i])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var h=e.children[u];c-="kern"===h.type?h.size:h.elem.height+h.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var d=e.children[0];if("elem"!==d.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-d.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-d.elem.depth}}return{children:e.children,depth:l}}(e),r=n.children,o=n.depth,i=0,a=0;a<r.length;a++){var s=r[a];if("elem"===s.type){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var c=Ue(["pstrut"],[]);c.style.height=i+"em";for(var u=[],h=o,d=o,p=o,m=0;m<r.length;m++){var f=r[m];if("kern"===f.type)p+=f.size;else{var g=f.elem,v=f.wrapperClasses||[],y=f.wrapperStyle||{},_=Ue(v,[c,g],void 0,y);_.style.top=-i-p-g.depth+"em",f.marginLeft&&(_.style.marginLeft=f.marginLeft),f.marginRight&&(_.style.marginRight=f.marginRight),u.push(_),p+=g.height+g.depth}h=Math.min(h,p),d=Math.max(d,p)}var b,w=Ue(["vlist"],u);if(w.style.height=d+"em",h<0){var x=Ue([],[]),k=Ue(["vlist"],[x]);k.style.height=-h+"em";var S=Ue(["vlist-s"],[new z("​")]);b=[Ue(["vlist-r"],[w,S]),Ue(["vlist-r"],[k])]}else b=[Ue(["vlist-r"],[w])];var A=Ue(["vlist-t"],b);return 2===b.length&&A.classes.push("vlist-t2"),A.height=d,A.depth=-h,A},makeOrd:function(e,t,n){var o=e.mode,i=e.text,a=["mord"],s="math"===o||"text"===o&&t.font,l=s?t.font:t.fontFamily;if(55349===i.charCodeAt(0)){var c=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,o="math"===t?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[Te[i][2],Te[i][o]]}if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return[Ce[a][2],Ce[a][o]]}if(120485===n||120486===n)return[Te[0][2],Te[0][o]];if(120486<n&&n<120782)return["",""];throw new r("Unsupported character: "+e)}(i,o),u=c[0],h=c[1];return Fe(i,u,o,t,a.concat(h))}if(l){var d,p;if("boldsymbol"===l){var m=function(e,t,n,r,o){return"textord"!==o&&Be(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,o,0,0,n);d=m.fontName,p=[m.fontClass]}else s?(d=Ve[l].fontName,p=[l]):(d=Ge(l,t.fontWeight,t.fontShape),p=[l,t.fontWeight,t.fontShape]);if(Be(i,d,o).metrics)return Fe(i,d,o,t,a.concat(p));if(ce.hasOwnProperty(i)&&"Typewriter"===d.substr(0,10)){for(var f=[],g=0;g<i.length;g++)f.push(Fe(i[g],d,o,t,a.concat(p)));return $e(f)}}if("mathord"===n)return Fe(i,"Math-Italic",o,t,a.concat(["mathnormal"]));if("textord"===n){var v=V[o][i]&&V[o][i].font;if("ams"===v){var y=Ge("amsrm",t.fontWeight,t.fontShape);return Fe(i,y,o,t,a.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==v&&v){var _=Ge(v,t.fontWeight,t.fontShape);return Fe(i,_,o,t,a.concat(_,t.fontWeight,t.fontShape))}var b=Ge("textrm",t.fontWeight,t.fontShape);return Fe(i,b,o,t,a.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:function(e,t){var n=Ue(["mspace"],[],t),r=De(e,t);return n.style.marginRight=r+"em",n},staticSvg:function(e,t){var n=We[e],r=n[0],o=n[1],i=n[2],a=new P(r),s=new O([a],{width:o+"em",height:i+"em",style:"width:"+o+"em",viewBox:"0 0 "+1e3*o+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=qe(["overlay"],[s],t);return l.height=i,l.style.height=i+"em",l.style.width=o+"em",l},svgData:We,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof z&&r instanceof z&&je(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e}},Ke={number:3,unit:"mu"},Xe={number:4,unit:"mu"},Je={number:5,unit:"mu"},Ze={mord:{mop:Ke,mbin:Xe,mrel:Je,minner:Ke},mop:{mord:Ke,mop:Ke,mrel:Je,minner:Ke},mbin:{mord:Xe,mop:Xe,mopen:Xe,minner:Xe},mrel:{mord:Je,mop:Je,mopen:Je,minner:Je},mopen:{},mclose:{mop:Ke,mbin:Xe,mrel:Je,minner:Ke},mpunct:{mord:Ke,mop:Ke,mrel:Je,mopen:Ke,mclose:Ke,mpunct:Ke,minner:Ke},minner:{mord:Ke,mop:Ke,mbin:Xe,mrel:Je,mopen:Ke,mpunct:Ke,minner:Ke}},Qe={mord:{mop:Ke},mop:{mord:Ke,mop:Ke},mbin:{},mrel:{},mopen:{},mclose:{mop:Ke},mpunct:{},minner:{mop:Ke}},et={},tt={},nt={};function rt(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:o},l=0;l<n.length;++l)et[n[l]]=s;t&&(i&&(tt[t]=i),a&&(nt[t]=a))}function ot(e){rt({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var it=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},at=function(e){return"ordgroup"===e.type?e.body:[e]},st=Ye.makeSpan,lt=["leftmost","mbin","mopen","mrel","mop","mpunct"],ct=["rightmost","mrel","mclose","mpunct"],ut={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT},ht={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},dt=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=yt(e[i],t);if(a instanceof S){var s=a.children;o.push.apply(o,s)}else o.push(a)}if(Ye.tryCombineChars(o),!n)return o;var c=t;if(1===e.length){var u=e[0];"sizing"===u.type?c=t.havingSize(u.size):"styling"===u.type&&(c=t.havingStyle(ut[u.style]))}var h=st([r[0]||"leftmost"],[],t),d=st([r[1]||"rightmost"],[],t),p="root"===n;return pt(o,(function(e,t){var n=t.classes[0],r=e.classes[0];"mbin"===n&&l.contains(ct,r)?t.classes[0]="mord":"mbin"===r&&l.contains(lt,n)&&(e.classes[0]="mord")}),{node:h},d,p),pt(o,(function(e,t){var n=gt(t),r=gt(e),o=n&&r?e.hasClass("mtight")?Qe[n][r]:Ze[n][r]:null;if(o)return Ye.makeGlue(o,c)}),{node:h},d,p),o},pt=function e(t,n,r,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],l=mt(s);if(l)e(l.children,n,r,null,i);else{var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),a++))}c?r.node=s:i&&s.hasClass("newline")&&(r.node=st(["leftmost"])),r.insertAfter=function(e){return function(n){t.splice(e+1,0,n),a++}}(a)}}o&&t.pop()},mt=function(e){return e instanceof S||e instanceof M||e instanceof N&&e.hasClass("enclosing")?e:null},ft=function e(t,n){var r=mt(t);if(r){var o=r.children;if(o.length){if("right"===n)return e(o[o.length-1],"right");if("left"===n)return e(o[0],"left")}}return t},gt=function(e,t){return e?(t&&(e=ft(e,t)),ht[e.classes[0]]||null):null},vt=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return st(t.concat(n))},yt=function(e,t,n){if(!e)return st();if(tt[e.type]){var o=tt[e.type](e,t);if(n&&t.size!==n.size){o=st(t.sizingClasses(n),[o],t);var i=t.sizeMultiplier/n.sizeMultiplier;o.height*=i,o.depth*=i}return o}throw new r("Got group of unknown type: '"+e.type+"'")};function _t(e,t){var n=st(["base"],e,t),r=st(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function bt(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,o=dt(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(r=o.pop());for(var i,a=[],s=[],l=0;l<o.length;l++)if(s.push(o[l]),o[l].hasClass("mbin")||o[l].hasClass("mrel")||o[l].hasClass("allowbreak")){for(var c=!1;l<o.length-1&&o[l+1].hasClass("mspace")&&!o[l+1].hasClass("newline");)l++,s.push(o[l]),o[l].hasClass("nobreak")&&(c=!0);c||(a.push(_t(s,t)),s=[])}else o[l].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(_t(s,t)),s=[]),a.push(o[l]));s.length>0&&a.push(_t(s,t)),n?((i=_t(dt(n,t,!0))).classes=["tag"],a.push(i)):r&&a.push(r);var u=st(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),i){var h=i.children[0];h.style.height=u.height+u.depth+"em",h.style.verticalAlign=-u.depth+"em"}return u}function wt(e){return new S(e)}var xt=function(){function e(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=A(this.classes));for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=l.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+l.escape(A(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),kt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return l.escape(this.toText())},t.toText=function(){return this.text},e}(),St={MathNode:xt,TextNode:kt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:wt},At=function(e,t,n){return!V[t][e]||!V[t][e].replace||55349===e.charCodeAt(0)||ce.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=V[t][e].replace),new St.TextNode(e)},Et=function(e){return 1===e.length?e[0]:new St.MathNode("mrow",e)},Tt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return l.contains(["\\imath","\\jmath"],o)?null:(V[r][o]&&V[r][o].replace&&(o=V[r][o].replace),H(o,Ye.fontMap[n].fontName,r)?Ye.fontMap[n].variant:null)},Ct=function(e,t,n){if(1===e.length){var r=Mt(e[0],t);return n&&r instanceof xt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o,i=[],a=0;a<e.length;a++){var s=Mt(e[a],t);if(s instanceof xt&&o instanceof xt){if("mtext"===s.type&&"mtext"===o.type&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){var l;(l=o.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===o.type){var c;(c=o.children).push.apply(c,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===o.type){var u=s.children[0];if(u instanceof kt&&"."===u.text){var h;(h=o.children).push.apply(h,s.children);continue}}else if("mi"===o.type&&1===o.children.length){var d=o.children[0];if(d instanceof kt&&"̸"===d.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof kt&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),i.pop())}}}i.push(s),o=s}return i},Nt=function(e,t,n){return Et(Ct(e,t,n))},Mt=function(e,t){if(!e)return new St.MathNode("mrow");if(nt[e.type])return nt[e.type](e,t);throw new r("Got group of unknown type: '"+e.type+"'")};function Lt(e,t,n,r,o){var i,a=Ct(e,n);i=1===a.length&&a[0]instanceof xt&&l.contains(["mrow","mtable"],a[0].type)?a[0]:new St.MathNode("mrow",a);var s=new St.MathNode("annotation",[new St.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var c=new St.MathNode("semantics",[i,s]),u=new St.MathNode("math",[c]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var h=o?"katex":"katex-mathml";return Ye.makeSpan([h],[u])}var It=function(e){return new ze({style:e.displayMode?y.DISPLAY:y.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},zt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Ye.makeSpan(n,[e])}return e},Ot={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Pt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Rt=function(e,t,n,r,o){var i,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(i=Ye.makeSpan(["stretchy",t],[],o),"fbox"===t){var s=o.color&&o.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new R({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new R({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new O(l,{width:"100%",height:a+"em"});i=Ye.makeSvgSpan([],[c],o)}return i.height=a,i.style.height=a+"em",i},Dt=function(e){var t=new St.MathNode("mo",[new St.TextNode(Ot[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Bt=function(e,t){var n=function(){var n=4e5,r=e.label.substr(1);if(l.contains(["widehat","widecheck","widetilde","utilde"],r)){var o,i,a,s="ordgroup"===(m=e.base).type?m.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(o=420,n=2364,a=.42,i=r+"4"):(o=312,n=2340,a=.34,i="tilde4");else{var c=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],o=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],i=r+c):(n=[0,600,1033,2339,2340][c],o=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}var u=new P(i),h=new O([u],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:Ye.makeSvgSpan([],[h],t),minWidth:0,height:a}}var d,p,m,f=[],g=Pt[r],v=g[0],y=g[1],_=g[2],b=_/1e3,w=v.length;if(1===w)d=["hide-tail"],p=[g[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<w;x++){var k=new P(v[x]),S=new O([k],{width:"400em",height:b+"em",viewBox:"0 0 "+n+" "+_,preserveAspectRatio:p[x]+" slice"}),A=Ye.makeSvgSpan([d[x]],[S],t);if(1===w)return{span:A,minWidth:y,height:b};A.style.height=b+"em",f.push(A)}return{span:Ye.makeSpan(["stretchy"],f,t),minWidth:y,height:b}}(),r=n.span,o=n.minWidth,i=n.height;return r.height=i,r.style.height=i+"em",o>0&&(r.style.minWidth=o+"em"),r};function Ft(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function jt(e){var t=Ht(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Ht(e){return e&&("atom"===e.type||$.hasOwnProperty(e.type))?e:null}var Ut=function(e,t){var n,r,o;e&&"supsub"===e.type?(n=(r=Ft(e.base,"accent")).base,e.base=n,o=function(e){if(e instanceof N)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(yt(e,t)),e.base=r):n=(r=Ft(e,"accent")).base;var i=yt(n,t.havingCrampedStyle()),a=0;if(r.isShifty&&l.isCharacterBox(n)){var s=l.getBaseElem(n);a=D(yt(s,t.havingCrampedStyle())).skew}var c,u="\\c"===r.label,h=u?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(r.isStretchy)c=Bt(r,t),c=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+2*a+"em)",marginLeft:2*a+"em"}:void 0}]},t);else{var d,p;"\\vec"===r.label?(d=Ye.staticSvg("vec",t),p=Ye.svgData.vec[1]):((d=D(d=Ye.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,p=d.width,u&&(h+=d.depth)),c=Ye.makeSpan(["accent-body"],[d]);var m="\\textcircled"===r.label;m&&(c.classes.push("accent-full"),h=i.height);var f=a;m||(f-=p/2),c.style.left=f+"em","\\textcircled"===r.label&&(c.style.top=".2em"),c=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:c}]},t)}var g=Ye.makeSpan(["mord","accent"],[c],t);return o?(o.children[0]=g,o.height=Math.max(g.height,o.height),o.classes[0]="mord",o):g},qt=function(e,t){var n=e.isStretchy?Dt(e.label):new St.MathNode("mo",[At(e.label,e.mode)]),r=new St.MathNode("mover",[Mt(e.base,t),n]);return r.setAttribute("accent","true"),r},$t=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));rt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=it(t[0]),r=!$t.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:Ut,mathmlBuilder:qt}),rt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Ut,mathmlBuilder:qt}),rt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:function(e,t){var n=yt(e.base,t),r=Bt(e,t),o="\\utilde"===e.label?.12:0,i=Ye.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Ye.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var n=Dt(e.label),r=new St.MathNode("munder",[Mt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Gt=function(e){var t=new St.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};rt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=e.funcName;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,o=t.havingStyle(r.sup()),i=Ye.wrapFragment(yt(e.body,o,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(a+"-arrow-pad"),e.below&&(o=t.havingStyle(r.sub()),(n=Ye.wrapFragment(yt(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var s,l=Bt(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=i.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:h}]},t)}else s=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Ye.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var n,r=Dt(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=Gt(Mt(e.body,t));if(e.below){var i=Gt(Mt(e.below,t));n=new St.MathNode("munderover",[r,i,o])}else n=new St.MathNode("mover",[r,o])}else if(e.below){var a=Gt(Mt(e.below,t));n=new St.MathNode("munder",[r,a])}else n=Gt(),n=new St.MathNode("mover",[r,n]);return n}});var Vt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Wt=function(e){return"textord"===e.type&&"@"===e.text};function Yt(e,t,n){var r=Vt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:r,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[o],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}rt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder:function(e,t){var n=t.havingStyle(t.style.sup()),r=Ye.wrapFragment(yt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=.8-r.depth+"em",r.height=0,r.depth=0,r},mathmlBuilder:function(e,t){var n=new St.MathNode("mrow",[Mt(e.label,t)]);return(n=new St.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new St.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),rt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){return{type:"cdlabelparent",mode:e.parser.mode,fragment:t[0]}},htmlBuilder:function(e,t){var n=Ye.wrapFragment(yt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:function(e,t){return new St.MathNode("mrow",[Mt(e.fragment,t)])}}),rt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,o=Ft(t[0],"ordgroup").body,i="",a=0;a<o.length;a++)i+=Ft(o[a],"textord").text;var s,l=parseInt(i);if(isNaN(l))throw new r("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new r("\\@char with invalid code point "+i);return l<=65535?s=String.fromCharCode(l):(l-=65536,s=String.fromCharCode(55296+(l>>10),56320+(1023&l))),{type:"textord",mode:n.mode,text:s}}});var Kt=function(e,t){var n=dt(e.body,t.withColor(e.color),!1);return Ye.makeFragment(n)},Xt=function(e,t){var n=Ct(e.body,t.withColor(e.color)),r=new St.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};rt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,r=Ft(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:at(o)}},htmlBuilder:Kt,mathmlBuilder:Xt}),rt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,o=Ft(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:Kt,mathmlBuilder:Xt}),rt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=n[0],i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:o&&Ft(o,"size").value}},htmlBuilder:function(e,t){var n=Ye.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=De(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new St.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",De(e.size,t)+"em")),n}});var Jt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Zt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new r("Expected a control sequence",e);return t},Qt=function(e,t,n,r){var o=e.gullet.macros.get(n.text);null==o&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,r)};rt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var o=t.fetch();if(Jt[o.text])return"\\global"!==n&&"\\\\globallong"!==n||(o.text=Jt[o.text]),Ft(t.parseFunction(),"internal");throw new r("Invalid token after macro prefix",o)}}),rt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,o=t.gullet.popToken(),i=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new r("Expected a control sequence",o);for(var a,s=0,l=[[]];"{"!==t.gullet.future().text;)if("#"===(o=t.gullet.popToken()).text){if("{"===t.gullet.future().text){a=t.gullet.future(),l[s].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new r('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==s+1)throw new r('Argument number "'+o.text+'" out of order');s++,l.push([])}else{if("EOF"===o.text)throw new r("Expected a macro definition");l[s].push(o.text)}var c=t.gullet.consumeArg().tokens;return a&&c.unshift(a),"\\edef"!==n&&"\\xdef"!==n||(c=t.gullet.expandTokens(c)).reverse(),t.gullet.macros.set(i,{tokens:c,numArgs:s,delimiters:l},n===Jt[n]),{type:"internal",mode:t.mode}}}),rt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Zt(t.gullet.popToken());t.gullet.consumeSpaces();var o=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return Qt(t,r,o,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),rt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Zt(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return Qt(t,r,i,"\\\\globalfuture"===n),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var en=function(e,t,n){var r=H(V.math[e]&&V.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},tn=function(e,t,n,r){var o=n.havingBaseStyle(t),i=Ye.makeSpan(r.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},nn=function(e,t,n){var r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=o+"em",e.height-=o,e.depth+=o},rn=function(e,t,n,r,o,i){var a=function(e,t,n,r){return Ye.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,o,r),s=tn(Ye.makeSpan(["delimsizing","size"+t],[a],r),y.TEXT,r,i);return n&&nn(s,r,y.TEXT),s},on=function(e,t,n){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Ye.makeSpan(["delimsizinginner",r],[Ye.makeSpan([],[Ye.makeSymbol(e,t,n)])])}},an=function(e,t,n){var r=B["Size4-Regular"][e.charCodeAt(0)]?B["Size4-Regular"][e.charCodeAt(0)][4].toFixed(3):B["Size1-Regular"][e.charCodeAt(0)][4].toFixed(3),o=new P("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new O([o],{width:r+"em",height:t+"em",style:"width:"+r+"em",viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=Ye.makeSvgSpan([],[i],n);return a.height=t,a.style.height=t+"em",a.style.width=r+"em",{type:"elem",elem:a}},sn={type:"kern",size:-.008},ln=["|","\\lvert","\\rvert","\\vert"],cn=["\\|","\\lVert","\\rVert","\\Vert"],un=function(e,t,n,r,o,i){var a,s,c,u;a=c=u=e,s=null;var h="Size1-Regular";"\\uparrow"===e?c=u="⏐":"\\Uparrow"===e?c=u="‖":"\\downarrow"===e?a=c="⏐":"\\Downarrow"===e?a=c="‖":"\\updownarrow"===e?(a="\\uparrow",c="⏐",u="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",c="‖",u="\\Downarrow"):l.contains(ln,e)?c="∣":l.contains(cn,e)?c="∥":"["===e||"\\lbrack"===e?(a="⎡",c="⎢",u="⎣",h="Size4-Regular"):"]"===e||"\\rbrack"===e?(a="⎤",c="⎥",u="⎦",h="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(c=a="⎢",u="⎣",h="Size4-Regular"):"\\lceil"===e||"⌈"===e?(a="⎡",c=u="⎢",h="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(c=a="⎥",u="⎦",h="Size4-Regular"):"\\rceil"===e||"⌉"===e?(a="⎤",c=u="⎥",h="Size4-Regular"):"("===e||"\\lparen"===e?(a="⎛",c="⎜",u="⎝",h="Size4-Regular"):")"===e||"\\rparen"===e?(a="⎞",c="⎟",u="⎠",h="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",u="⎩",c="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",u="⎭",c="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",u="⎩",c="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",u="⎭",c="⎪",h="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",u="⎭",c="⎪",h="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",u="⎩",c="⎪",h="Size4-Regular");var d=en(a,h,o),p=d.height+d.depth,m=en(c,h,o),f=m.height+m.depth,g=en(u,h,o),v=g.height+g.depth,_=0,b=1;if(null!==s){var w=en(s,h,o);_=w.height+w.depth,b=2}var x=p+v+_,k=x+Math.max(0,Math.ceil((t-x)/(b*f)))*b*f,S=r.fontMetrics().axisHeight;n&&(S*=r.sizeMultiplier);var A=k/2-S,E=[];if(E.push(on(u,h,o)),E.push(sn),null===s){var T=k-p-v+.016;E.push(an(c,T,r))}else{var C=(k-p-v-_)/2+.016;E.push(an(c,C,r)),E.push(sn),E.push(on(s,h,o)),E.push(sn),E.push(an(c,C,r))}E.push(sn),E.push(on(a,h,o));var N=r.havingBaseStyle(y.TEXT),M=Ye.makeVList({positionType:"bottom",positionData:A,children:E},N);return tn(Ye.makeSpan(["delimsizing","mult"],[M],N),y.TEXT,r,i)},hn=.08,dn=function(e,t,n,r,o){var i=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize1":r=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize2":r=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize3":r=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize4":r=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,x);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,x,n)}return r}(e,r,n),a=new P(e,i),s=new O([a],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ye.makeSvgSpan(["hide-tail"],[s],o)},pn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],mn=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],fn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],gn=[0,1.2,1.8,2.4,3],vn=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],yn=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"stack"}],_n=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],bn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},wn=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size);o<n.length&&"stack"!==n[o].type;o++){var i=en(e,bn(n[o]),"math"),a=i.height+i.depth;if("small"===n[o].type&&(a*=r.havingBaseStyle(n[o].style).sizeMultiplier),a>t)return n[o]}return n[n.length-1]},xn=function(e,t,n,r,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=l.contains(fn,e)?vn:l.contains(pn,e)?_n:yn;var s=wn(e,t,a,r);return"small"===s.type?function(e,t,n,r,o,i){var a=Ye.makeSymbol(e,"Main-Regular",o,r),s=tn(a,t,r,i);return n&&nn(s,r,t),s}(e,s.style,n,r,o,i):"large"===s.type?rn(e,s.size,n,r,o,i):un(e,t,n,r,o,i)},kn=function(e,t){var n,r,o=t.havingBaseSizing(),i=wn("\\surd",e*o.sizeMultiplier,_n,o),a=o.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),c=(1+s)/a,(n=dn("sqrtMain",l=(1+s+hn)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",r=.833/a):"large"===i.type?(u=1080*gn[i.size],c=(gn[i.size]+s)/a,l=(gn[i.size]+s+hn)/a,(n=dn("sqrtSize"+i.size,l,u,s,t)).style.minWidth="1.02em",r=1/a):(l=e+s+hn,c=e+s,u=Math.floor(1e3*e+s)+80,(n=dn("sqrtTall",l,u,s,t)).style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=l+"em",{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},Sn=function(e,t,n,o,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),l.contains(pn,e)||l.contains(fn,e))return rn(e,t,!1,n,o,i);if(l.contains(mn,e))return un(e,gn[t],!1,n,o,i);throw new r("Illegal delimiter: '"+e+"'")},An=gn,En=xn,Tn=function(e,t,n,r,o,i){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-a,n+a),c=Math.max(l/500*901,2*l-s);return xn(e,c,!0,r,o,i)},Cn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Nn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Mn(e,t){var n=Ht(e);if(n&&l.contains(Nn,n.text))return n;throw new r(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Ln(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}rt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var n=Mn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Cn[e.funcName].size,mclass:Cn[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Ye.makeSpan([e.mclass]):Sn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(At(e.delim,e.mode));var n=new St.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true"),n.setAttribute("minsize",An[e.size]+"em"),n.setAttribute("maxsize",An[e.size]+"em"),n}}),rt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new r("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Mn(t[0],e).text,color:n}}}),rt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=Mn(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=Ft(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){Ln(e);for(var n,r,o=dt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,l=0;l<o.length;l++)o[l].isMiddle?s=!0:(i=Math.max(o[l].height,i),a=Math.max(o[l].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?vt(t,["mopen"]):Tn(e.left,i,a,t,e.mode,["mopen"]),o.unshift(n),s)for(var c=1;c<o.length;c++){var u=o[c].isMiddle;u&&(o[c]=Tn(u.delim,i,a,u.options,e.mode,[]))}if("."===e.right)r=vt(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;r=Tn(e.right,i,a,h,e.mode,["mclose"])}return o.push(r),Ye.makeSpan(["minner"],o,t)},mathmlBuilder:function(e,t){Ln(e);var n=Ct(e.body,t);if("."!==e.left){var r=new St.MathNode("mo",[At(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var o=new St.MathNode("mo",[At(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return Et(n)}}),rt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=Mn(t[0],e);if(!e.parser.leftrightDepth)throw new r("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=vt(t,[]);else{n=Sn(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:function(e,t){var n="\\vert"===e.delim||"|"===e.delim?At("|","text"):At(e.delim,e.mode),r=new St.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var In=function(e,t){var n,r,o=Ye.wrapFragment(yt(e.body,t),t),i=e.label.substr(1),a=t.sizeMultiplier,s=0,c=l.isCharacterBox(e.body);if("sout"===i)(n=Ye.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if("phase"===i){var u=De({number:.6,unit:"pt"},t),h=De({number:.35,unit:"ex"},t);a/=t.havingBaseSizing().sizeMultiplier;var d=o.height+o.depth+u+h;o.style.paddingLeft=d/2+u+"em";var p=Math.floor(1e3*d*a),m=function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"}(p),f=new O([new P("phase",m)],{width:"400em",height:p/1e3+"em",viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});(n=Ye.makeSvgSpan(["hide-tail"],[f],t)).style.height=d+"em",s=o.depth+u+h}else{/cancel/.test(i)?c||o.classes.push("cancel-pad"):"angl"===i?o.classes.push("anglpad"):o.classes.push("boxpad");var g=0,v=0,y=0;/box/.test(i)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=g=t.fontMetrics().fboxsep+("colorbox"===i?0:y)):"angl"===i?(g=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),v=Math.max(0,.25-o.depth)):v=g=c?.2:0,n=Rt(o,i,g,v,t),/fbox|boxed|fcolorbox/.test(i)?(n.style.borderStyle="solid",n.style.borderWidth=y+"em"):"angl"===i&&.049!==y&&(n.style.borderTopWidth=y+"em",n.style.borderRightWidth=y+"em"),s=o.depth+v,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)r=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:o,shift:0}]},t);else{var _=/cancel|phase/.test(i)?["svg-align"]:[];r=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:_}]},t)}return/cancel/.test(i)&&(r.height=o.height,r.depth=o.depth),/cancel/.test(i)&&!c?Ye.makeSpan(["mord","cancel-lap"],[r],t):Ye.makeSpan(["mord"],[r],t)},zn=function(e,t){var n=0,r=new St.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Mt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};rt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=Ft(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:In,mathmlBuilder:zn}),rt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=Ft(t[0],"color-token").color,a=Ft(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:In,mathmlBuilder:zn}),rt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),rt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:In,mathmlBuilder:zn}),rt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\angl",body:t[0]}}});var On={};function Pn(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<n.length;++l)On[n[l]]=s;i&&(tt[t]=i),a&&(nt[t]=a)}function Rn(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var Dn=function(e){if(!e.parser.settings.displayMode)throw new r("{"+e.envName+"} can be used only in display mode.")};function Bn(e,t,n){var o=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,s=t.arraystretch,l=t.colSeparationType,c=t.addEqnNum,u=t.singleRow,h=t.emptySingleRow,d=t.maxNumCols,p=t.leqno;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var m=e.gullet.expandMacroAsText("\\arraystretch");if(null==m)s=1;else if(!(s=parseFloat(m))||s<0)throw new r("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var f=[],g=[f],v=[],y=[];for(y.push(Rn(e));;){var _=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),_={type:"ordgroup",mode:e.mode,body:_},n&&(_={type:"styling",mode:e.mode,style:n,body:[_]}),f.push(_);var b=e.fetch().text;if("&"===b){if(d&&f.length===d){if(u||l)throw new r("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===b){1===f.length&&"styling"===_.type&&0===_.body[0].body.length&&(g.length>1||!h)&&g.pop(),y.length<g.length+1&&y.push([]);break}if("\\\\"!==b)throw new r("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var w=void 0;" "!==e.gullet.future().text&&(w=e.parseSizeGroup(!0)),v.push(w?w.value:null),y.push(Rn(e)),f=[],g.push(f)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:g,cols:a,rowGaps:v,hskipBeforeAndAfter:o,hLinesBeforeRow:y,colSeparationType:l,addEqnNum:c,leqno:p}}function Fn(e){return"d"===e.substr(0,1)?"display":"text"}var jn=function(e,t){var n,o,i=e.body.length,a=e.hLinesBeforeRow,s=0,c=new Array(i),u=[],h=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,p=5*d;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(y.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var m="CD"===e.colSeparationType?De({number:3,unit:"ex"},t):12*d,f=3*d,g=e.arraystretch*m,v=.7*g,_=.3*g,b=0;function w(e){for(var t=0;t<e.length;++t)t>0&&(b+=.25),u.push({pos:b,isDashed:e[t]})}for(w(a[0]),n=0;n<e.body.length;++n){var x=e.body[n],k=v,S=_;s<x.length&&(s=x.length);var A=new Array(x.length);for(o=0;o<x.length;++o){var E=yt(x[o],t);S<E.depth&&(S=E.depth),k<E.height&&(k=E.height),A[o]=E}var T=e.rowGaps[n],C=0;T&&(C=De(T,t))>0&&(S<(C+=_)&&(S=C),C=0),e.addJot&&(S+=f),A.height=k,A.depth=S,b+=k,A.pos=b,b+=S+C,c[n]=A,w(a[n+1])}var N,M,L=b/2+t.fontMetrics().axisHeight,I=e.cols||[],z=[],O=[];if(e.addEqnNum)for(n=0;n<i;++n){var P=c[n],R=P.pos-L,D=Ye.makeSpan(["eqn-num"],[],t);D.depth=P.depth,D.height=P.height,O.push({type:"elem",elem:D,shift:R})}for(o=0,M=0;o<s||M<I.length;++o,++M){for(var B=I[M]||{},F=!0;"separator"===B.type;){if(F||((N=Ye.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",z.push(N)),"|"!==B.separator&&":"!==B.separator)throw new r("Invalid separator type: "+B.separator);var j="|"===B.separator?"solid":"dashed",H=Ye.makeSpan(["vertical-separator"],[],t);H.style.height=b+"em",H.style.borderRightWidth=h+"em",H.style.borderRightStyle=j,H.style.margin="0 -"+h/2+"em",H.style.verticalAlign=-(b-L)+"em",z.push(H),B=I[++M]||{},F=!1}if(!(o>=s)){var U=void 0;(o>0||e.hskipBeforeAndAfter)&&0!==(U=l.deflt(B.pregap,p))&&((N=Ye.makeSpan(["arraycolsep"],[])).style.width=U+"em",z.push(N));var q=[];for(n=0;n<i;++n){var $=c[n],G=$[o];if(G){var V=$.pos-L;G.depth=$.depth,G.height=$.height,q.push({type:"elem",elem:G,shift:V})}}q=Ye.makeVList({positionType:"individualShift",children:q},t),q=Ye.makeSpan(["col-align-"+(B.align||"c")],[q]),z.push(q),(o<s-1||e.hskipBeforeAndAfter)&&0!==(U=l.deflt(B.postgap,p))&&((N=Ye.makeSpan(["arraycolsep"],[])).style.width=U+"em",z.push(N))}}if(c=Ye.makeSpan(["mtable"],z),u.length>0){for(var W=Ye.makeLineSpan("hline",t,h),Y=Ye.makeLineSpan("hdashline",t,h),K=[{type:"elem",elem:c,shift:0}];u.length>0;){var X=u.pop(),J=X.pos-L;X.isDashed?K.push({type:"elem",elem:Y,shift:J}):K.push({type:"elem",elem:W,shift:J})}c=Ye.makeVList({positionType:"individualShift",children:K},t)}if(e.addEqnNum){var Z=Ye.makeVList({positionType:"individualShift",children:O},t);return Z=Ye.makeSpan(["tag"],[Z],t),Ye.makeFragment([c,Z])}return Ye.makeSpan(["mord"],[c],t)},Hn={c:"center ",l:"left ",r:"right "},Un=function(e,t){for(var n=[],r=new St.MathNode("mtd",[],["mtr-glue"]),o=new St.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var a=e.body[i],s=[],l=0;l<a.length;l++)s.push(new St.MathNode("mtd",[Mt(a[l],t)]));e.addEqnNum&&(s.unshift(r),s.push(r),e.leqno?s.unshift(o):s.push(o)),n.push(new St.MathNode("mtr",s))}var c=new St.MathNode("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",u.toFixed(4)+"em");var h="",d="";if(e.cols&&e.cols.length>0){var p=e.cols,m="",f=!1,g=0,v=p.length;"separator"===p[0].type&&(h+="top ",g=1),"separator"===p[p.length-1].type&&(h+="bottom ",v-=1);for(var y=g;y<v;y++)"align"===p[y].type?(d+=Hn[p[y].align],f&&(m+="none "),f=!0):"separator"===p[y].type&&f&&(m+="|"===p[y].separator?"solid ":"dashed ",f=!1);c.setAttribute("columnalign",d.trim()),/[sd]/.test(m)&&c.setAttribute("columnlines",m.trim())}if("align"===e.colSeparationType){for(var _=e.cols||[],b="",w=1;w<_.length;w++)b+=w%2?"0em ":"1em ";c.setAttribute("columnspacing",b.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var x="",k=e.hLinesBeforeRow;h+=k[0].length>0?"left ":"",h+=k[k.length-1].length>0?"right ":"";for(var S=1;S<k.length-1;S++)x+=0===k[S].length?"none ":k[S][0]?"dashed ":"solid ";return/[sd]/.test(x)&&c.setAttribute("rowlines",x.trim()),""!==h&&(c=new St.MathNode("menclose",[c])).setAttribute("notation",h.trim()),e.arraystretch&&e.arraystretch<1&&(c=new St.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},qn=function(e,t){-1===e.envName.indexOf("ed")&&Dn(e);var n,o=[],i=e.envName.indexOf("at")>-1?"alignat":"align",a=Bn(e.parser,{cols:o,addJot:!0,addEqnNum:"align"===e.envName||"alignat"===e.envName,emptySingleRow:!0,colSeparationType:i,maxNumCols:"split"===e.envName?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++)c+=Ft(t[0].body[u],"textord").text;n=Number(c),s=2*n}var h=!s;a.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var o=Ft(e[t],"styling");Ft(o.body[0],"ordgroup").body.unshift(l)}if(h)s<e.length&&(s=e.length);else{var i=e.length/2;if(n<i)throw new r("Too many math in a row: expected "+n+", but got "+i,e[0])}}));for(var d=0;d<s;++d){var p="r",m=0;d%2==1?p="l":d>0&&h&&(m=1),o[d]={type:"align",align:p,pregap:m,postgap:0}}return a.colSeparationType=h?"align":"alignat",a};Pn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n=(Ht(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=jt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new r("Unknown column alignment: "+t,e)})),o={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Bn(e.parser,o,Fn(e.envName))},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,-1==="lcr".indexOf(n))throw new r("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),o.cols=[{type:"align",align:n}]}}var a=Bn(e.parser,o,Fn(e.envName)),s=Math.max.apply(Math,[0].concat(a.body.map((function(e){return e.length}))));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Bn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(Ht(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=jt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new r("Unknown column alignment: "+t,e)}));if(n.length>1)throw new r("{subarray} can contain only one column");var o={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((o=Bn(e.parser,o,"script")).body.length>0&&o.body[0].length>1)throw new r("{subarray} can contain only one column");return o},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=Bn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Fn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:qn,htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){l.contains(["gather","gather*"],e.envName)&&Dn(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",addEqnNum:"gather"===e.envName,emptySingleRow:!0,leqno:e.parser.settings.leqno};return Bn(e.parser,t,"display")},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:qn,htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Dn(e);var t={addEqnNum:"equation"===e.envName,emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Bn(e.parser,t,"display")},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Dn(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new r("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var o,i,a=[],s=[a],l=0;l<t.length;l++){for(var c=t[l],u={type:"styling",body:[],mode:"math",style:"display"},h=0;h<c.length;h++)if(Wt(c[h])){a.push(u);var d=jt(c[h+=1]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(d)>-1);else{if(!("<>AV".indexOf(d)>-1))throw new r('Expected one of "<>AV=|." after @',c[h]);for(var m=0;m<2;m++){for(var f=!0,g=h+1;g<c.length;g++){if(i=d,("mathord"===(o=c[g]).type||"atom"===o.type)&&o.text===i){f=!1,h=g;break}if(Wt(c[g]))throw new r("Missing a "+d+" character to complete a CD arrow.",c[g]);p[m].body.push(c[g])}if(f)throw new r("Missing a "+d+" character to complete a CD arrow.",c[h])}}var v={type:"styling",body:[Yt(d,p,e)],mode:"math",style:"display"};a.push(v),u={type:"styling",body:[],mode:"math",style:"display"}}else u.body.push(c[h]);l%2==0?a.push(u):a.shift(),a=[],s.push(a)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}(e.parser)},htmlBuilder:jn,mathmlBuilder:Un}),rt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new r(e.funcName+" valid only within array environment")}});var $n=On;rt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,o=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new r("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=Ft(i.body[s],"textord").text;if("\\begin"===o){if(!$n.hasOwnProperty(a))throw new r("No such environment: "+a,i);var l=$n[a],c=n.parseArguments("\\begin{"+a+"}",l),u=c.args,h=c.optArgs,d={mode:n.mode,envName:a,parser:n},p=l.handler(d,u,h);n.expect("\\end",!1);var m=n.nextToken,f=Ft(n.parseFunction(),"environment");if(f.name!==a)throw new r("Mismatch: \\begin{"+a+"} matched by \\end{"+f.name+"}",m);return p}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var Gn=Ye.makeSpan;function Vn(e,t){var n=dt(e.body,t,!0);return Gn([e.mclass],n,t)}function Wn(e,t){var n,r=Ct(e.body,t);return"minner"===e.mclass?St.newDocumentFragment(r):("mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new St.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new St.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}rt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.substr(5),body:at(o),isCharacterBox:l.isCharacterBox(o)}},htmlBuilder:Vn,mathmlBuilder:Wn});var Yn=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};rt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:Yn(t[0]),body:at(t[1]),isCharacterBox:l.isCharacterBox(t[1])}}}),rt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,r=e.parser,o=e.funcName,i=t[1],a=t[0];n="\\stackrel"!==o?Yn(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:at(i)},c={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[c],isCharacterBox:l.isCharacterBox(c)}},htmlBuilder:Vn,mathmlBuilder:Wn});var Kn=function(e,t){var n=e.font,r=t.withFont(n);return yt(e.body,r)},Xn=function(e,t){var n=e.font,r=t.withFont(n);return Mt(e.body,r)},Jn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};rt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=it(t[0]),i=r;return i in Jn&&(i=Jn[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:Kn,mathmlBuilder:Xn}),rt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0],o=l.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Yn(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),rt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=e.breakOnTokenText,i=n.mode,a=n.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:Kn,mathmlBuilder:Xn});var Zn=function(e,t){var n=t;return"display"===e?n=n.id>=y.SCRIPT.id?n.text():y.DISPLAY:"text"===e&&n.size===y.DISPLAY.size?n=y.TEXT:"script"===e?n=y.SCRIPT:"scriptscript"===e&&(n=y.SCRIPTSCRIPT),n},Qn=function(e,t){var n,r=Zn(e.size,t.style),o=r.fracNum(),i=r.fracDen();n=t.havingStyle(o);var a=yt(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}n=t.havingStyle(i);var c,u,h,d,p,m,f,g,v,_,b=yt(e.denom,n,t);if(e.hasBarLine?(e.barSize?(u=De(e.barSize,t),c=Ye.makeLineSpan("frac-line",t,u)):c=Ye.makeLineSpan("frac-line",t),u=c.height,h=c.height):(c=null,u=0,h=t.fontMetrics().defaultRuleThickness),r.size===y.DISPLAY.size||"display"===e.size?(d=t.fontMetrics().num1,p=u>0?3*h:7*h,m=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,p=h):(d=t.fontMetrics().num3,p=3*h),m=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;d-a.depth-(w+.5*u)<p&&(d+=p-(d-a.depth-(w+.5*u))),w-.5*u-(b.height-m)<p&&(m+=p-(w-.5*u-(b.height-m)));var x=-(w-.5*u);f=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:m},{type:"elem",elem:c,shift:x},{type:"elem",elem:a,shift:-d}]},t)}else{var k=d-a.depth-(b.height-m);k<p&&(d+=.5*(p-k),m+=.5*(p-k)),f=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:m},{type:"elem",elem:a,shift:-d}]},t)}return n=t.havingStyle(r),f.height*=n.sizeMultiplier/t.sizeMultiplier,f.depth*=n.sizeMultiplier/t.sizeMultiplier,g=r.size===y.DISPLAY.size?t.fontMetrics().delim1:r.size===y.SCRIPTSCRIPT.size?t.havingStyle(y.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?vt(t,["mopen"]):En(e.leftDelim,g,!0,t.havingStyle(r),e.mode,["mopen"]),_=e.continued?Ye.makeSpan([]):null==e.rightDelim?vt(t,["mclose"]):En(e.rightDelim,g,!0,t.havingStyle(r),e.mode,["mclose"]),Ye.makeSpan(["mord"].concat(n.sizingClasses(t)),[v,Ye.makeSpan(["mfrac"],[f]),_],t)},er=function(e,t){var n=new St.MathNode("mfrac",[Mt(e.numer,t),Mt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=De(e.barSize,t);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");var o=Zn(e.size,t.style);if(o.size!==t.style.size){n=new St.MathNode("mstyle",[n]);var i=o.size===y.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new St.MathNode("mo",[new St.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),null!=e.rightDelim){var l=new St.MathNode("mo",[new St.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return Et(a)}return n};rt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:function(e,t){var n,r=e.parser,o=e.funcName,i=t[0],a=t[1],s=null,l=null,c="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:n,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:Qn,mathmlBuilder:er}),rt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:function(e,t){var n=e.parser;e.funcName;var r=t[0],o=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:r,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),rt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,r=e.funcName,o=e.token;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});var tr=["display","text","script","scriptscript"],nr=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};rt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,r=e.parser,o=t[4],i=t[5],a=it(t[0]),s="atom"===a.type&&"open"===a.family?nr(a.text):null,l=it(t[1]),c="atom"===l.type&&"close"===l.family?nr(l.text):null,u=Ft(t[2],"size"),h=null;n=!!u.isBlank||(h=u.value).number>0;var d="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var m=Ft(p.body[0],"textord");d=tr[Number(m.text)]}}else p=Ft(p,"textord"),d=tr[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:o,denom:i,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:c,size:d}},htmlBuilder:Qn,mathmlBuilder:er}),rt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Ft(t[0],"size").value,token:r}}}),rt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser;e.funcName;var r=t[0],o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ft(t[1],"infix").size),i=t[2],a=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Qn,mathmlBuilder:er});var rr=function(e,t){var n,r,o=t.style;"supsub"===e.type?(n=e.sup?yt(e.sup,t.havingStyle(o.sup()),t):yt(e.sub,t.havingStyle(o.sub()),t),r=Ft(e.base,"horizBrace")):r=Ft(e,"horizBrace");var i,a=yt(r.base,t.havingBaseStyle(y.DISPLAY)),s=Bt(r,t);if(r.isOver?(i=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=Ye.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=Ye.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t);i=r.isOver?Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ye.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Ye.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t)};rt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:rr,mathmlBuilder:function(e,t){var n=Dt(e.label);return new St.MathNode(e.isOver?"mover":"munder",[Mt(e.base,t),n])}}),rt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],o=Ft(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:at(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=dt(e.body,t,!1);return Ye.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Nt(e.body,t);return n instanceof xt||(n=new xt("mrow",[n])),n.setAttribute("href",e.href),n}}),rt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ft(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:r,body:at(s)}}}),rt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler:function(e,t){return{type:"hbox",mode:e.parser.mode,body:at(t[0])}},htmlBuilder:function(e,t){var n=dt(e.body,t,!1);return Ye.makeFragment(n)},mathmlBuilder:function(e,t){return new St.MathNode("mrow",Ct(e.body,t))}}),rt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName;e.token;var i,a=Ft(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(o){case"\\htmlClass":l.class=a,i={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,i={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,i={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var c=a.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(2!==h.length)throw new r("Error parsing key-value for \\htmlData");l["data-"+h[0].trim()]=h[1].trim()}i={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(i)?{type:"html",mode:n.mode,attributes:l,body:at(s)}:n.formatUnsupportedCmd(o)},htmlBuilder:function(e,t){var n=dt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push.apply(r,e.attributes.class.trim().split(/\s+/));var o=Ye.makeSpan(r,n,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:function(e,t){return Nt(e.body,t)}}),rt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:at(t[0]),mathml:at(t[1])}},htmlBuilder:function(e,t){var n=dt(e.html,t,!1);return Ye.makeFragment(n)},mathmlBuilder:function(e,t){return Nt(e.mathml,t)}});var or=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new r("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Re(n))throw new r("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};rt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var o=e.parser,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var c=Ft(n[0],"raw").string.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(2===h.length){var d=h[1].trim();switch(h[0].trim()){case"alt":l=d;break;case"width":i=or(d);break;case"height":a=or(d);break;case"totalheight":s=or(d);break;default:throw new r("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var p=Ft(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:o.mode,alt:l,width:i,height:a,totalheight:s,src:p}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=De(e.height,t),r=0;e.totalheight.number>0&&(r=De(e.totalheight,t)-n,r=Number(r.toFixed(2)));var o=0;e.width.number>0&&(o=De(e.width,t));var i={height:n+r+"em"};o>0&&(i.width=o+"em"),r>0&&(i.verticalAlign=-r+"em");var a=new L(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new St.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=De(e.height,t),o=0;if(e.totalheight.number>0&&(o=(o=De(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),e.width.number>0){var i=De(e.width,t);n.setAttribute("width",i+"em")}return n.setAttribute("src",e.src),n}}),rt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=Ft(t[0],"size");if(n.settings.strict){var i="m"===r[1],a="mu"===o.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:function(e,t){return Ye.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=De(e.dimension,t);return new St.SpaceNode(n)}}),rt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Ye.makeSpan([],[yt(e.body,t)]),n=Ye.makeSpan(["inner"],[n],t)):n=Ye.makeSpan(["inner"],[yt(e.body,t)]);var r=Ye.makeSpan(["fix"],[]),o=Ye.makeSpan([e.alignment],[n,r],t),i=Ye.makeSpan(["strut"]);return i.style.height=o.height+o.depth+"em",i.style.verticalAlign=-o.depth+"em",o.children.unshift(i),o=Ye.makeSpan(["thinbox"],[o],t),Ye.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mpadded",[Mt(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),rt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,o=r.mode;r.switchMode("math");var i="\\("===n?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),rt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new r("Mismatched "+e.funcName)}});var ir=function(e,t){switch(t.style.size){case y.DISPLAY.size:return e.display;case y.TEXT.size:return e.text;case y.SCRIPT.size:return e.script;case y.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};rt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:at(t[0]),text:at(t[1]),script:at(t[2]),scriptscript:at(t[3])}},htmlBuilder:function(e,t){var n=ir(e,t),r=dt(n,t,!1);return Ye.makeFragment(r)},mathmlBuilder:function(e,t){var n=ir(e,t);return Nt(n,t)}});var ar=function(e,t,n,r,o,i,a){e=Ye.makeSpan([],[e]);var s,c,u,h=n&&l.isCharacterBox(n);if(t){var d=yt(t,r.havingStyle(o.sup()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var p=yt(n,r.havingStyle(o.sub()),r);s={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-p.height)}}if(c&&s){var m=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;u=Ye.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var f=e.height-a;u=Ye.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!c)return e;var g=e.depth+a;u=Ye.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var v=[u];if(s&&0!==i&&!h){var y=Ye.makeSpan(["mspace"],[],r);y.style.marginRight=i+"em",v.unshift(y)}return Ye.makeSpan(["mop","op-limits"],v,r)},sr=["\\smallint"],lr=function(e,t){var n,r,o,i=!1;"supsub"===e.type?(n=e.sup,r=e.sub,o=Ft(e.base,"op"),i=!0):o=Ft(e,"op");var a,s=t.style,c=!1;if(s.size===y.DISPLAY.size&&o.symbol&&!l.contains(sr,o.name)&&(c=!0),o.symbol){var u=c?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(h=o.name.substr(1),o.name="oiint"===h?"\\iint":"\\iiint"),a=Ye.makeSymbol(o.name,u,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),h.length>0){var d=a.italic,p=Ye.staticSvg(h+"Size"+(c?"2":"1"),t);a=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:p,shift:c?.08:0}]},t),o.name="\\"+h,a.classes.unshift("mop"),a.italic=d}}else if(o.body){var m=dt(o.body,t,!0);1===m.length&&m[0]instanceof z?(a=m[0]).classes[0]="mop":a=Ye.makeSpan(["mop"],m,t)}else{for(var f=[],g=1;g<o.name.length;g++)f.push(Ye.mathsym(o.name[g],o.mode,t));a=Ye.makeSpan(["mop"],f,t)}var v=0,_=0;return(a instanceof z||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(v=(a.height-a.depth)/2-t.fontMetrics().axisHeight,_=a.italic),i?ar(a,n,r,t,s,_,v):(v&&(a.style.position="relative",a.style.top=v+"em"),a)},cr=function(e,t){var n;if(e.symbol)n=new xt("mo",[At(e.name,e.mode)]),l.contains(sr,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new xt("mo",Ct(e.body,t));else{n=new xt("mi",[new kt(e.name.slice(1))]);var r=new xt("mo",[At("⁡","text")]);n=e.parentIsSupSub?new xt("mrow",[n,r]):wt([n,r])}return n},ur={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};rt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(e,t){var n=e.parser,r=e.funcName;return 1===r.length&&(r=ur[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:lr,mathmlBuilder:cr}),rt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:at(r)}},htmlBuilder:lr,mathmlBuilder:cr});var hr={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};rt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:lr,mathmlBuilder:cr}),rt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:lr,mathmlBuilder:cr}),rt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=hr[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:lr,mathmlBuilder:cr});var dr={};function pr(e,t){dr[e]=t}var mr=function(e,t){var n,r,o,i,a=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,o=Ft(e.base,"operatorname"),a=!0):o=Ft(e,"operatorname"),o.body.length>0){for(var s=o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=dt(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof z&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Ye.makeSpan(["mop"],l,t)}else i=Ye.makeSpan(["mop"],[],t);return a?ar(i,n,r,t,t.style,0,0):i};function fr(e,t,n){for(var r=dt(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var a=r[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[a+1]==="reset-size"+t.size&&(r[i].classes[a+1]="reset-size"+n.size),r[i].height*=o,r[i].depth*=o}return Ye.makeFragment(r)}rt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"operatorname",mode:n.mode,body:at(o),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:mr,mathmlBuilder:function(e,t){for(var n=Ct(e.body,t.withFont("mathrm")),r=!0,o=0;o<n.length;o++){var i=n[o];if(i instanceof St.SpaceNode);else if(i instanceof St.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof St.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map((function(e){return e.toText()})).join("");n=[new St.TextNode(s)]}var l=new St.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new St.MathNode("mo",[At("⁡","text")]);return e.parentIsSupSub?new St.MathNode("mrow",[l,c]):St.newDocumentFragment([l,c])}}),pr("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ot({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?Ye.makeFragment(dt(e.body,t,!1)):Ye.makeSpan(["mord"],dt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return Nt(e.body,t,!0)}}),rt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=yt(e.body,t.havingCrampedStyle()),r=Ye.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return Ye.makeSpan(["mord","overline"],[i],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[new St.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new St.MathNode("mover",[Mt(e.body,t),n]);return r.setAttribute("accent","true"),r}}),rt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"phantom",mode:n.mode,body:at(r)}},htmlBuilder:function(e,t){var n=dt(e.body,t.withPhantom(),!1);return Ye.makeFragment(n)},mathmlBuilder:function(e,t){var n=Ct(e.body,t);return new St.MathNode("mphantom",n)}}),rt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=Ye.makeSpan([],[yt(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Ye.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=Ct(at(e.body),t),r=new St.MathNode("mphantom",n),o=new St.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),rt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=Ye.makeSpan(["inner"],[yt(e.body,t.withPhantom())]),r=Ye.makeSpan(["fix"],[]);return Ye.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:function(e,t){var n=Ct(at(e.body),t),r=new St.MathNode("mphantom",n),o=new St.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),rt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ft(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder:function(e,t){var n=yt(e.body,t),r=De(e.dy,t);return Ye.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mpadded",[Mt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),rt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var r=e.parser,o=n[0],i=Ft(t[0],"size"),a=Ft(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&Ft(o,"size").value,width:i.value,height:a.value}},htmlBuilder:function(e,t){var n=Ye.makeSpan(["mord","rule"],[],t),r=De(e.width,t),o=De(e.height,t),i=e.shift?De(e.shift,t):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=o+"em",n.style.bottom=i+"em",n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=De(e.width,t),r=De(e.height,t),o=e.shift?De(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new St.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",n+"em"),a.setAttribute("height",r+"em");var s=new St.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height","+"+o+"em"):(s.setAttribute("height",o+"em"),s.setAttribute("depth","+"+-o+"em")),s.setAttribute("voffset",o+"em"),s}});var gr=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];rt({type:"sizing",names:gr,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:gr.indexOf(r)+1,body:i}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return fr(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=Ct(e.body,n),o=new St.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),rt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=!1,i=!1,a=n[0]&&Ft(n[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l)if("t"===(s=a.body[l].text))o=!0;else{if("b"!==s){o=!1,i=!1;break}i=!0}else o=!0,i=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:o,smashDepth:i}},htmlBuilder:function(e,t){var n=Ye.makeSpan([],[yt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var i=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Ye.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mpadded",[Mt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),rt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder:function(e,t){var n=yt(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Ye.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,o=r;t.style.id<y.TEXT.id&&(o=t.fontMetrics().xHeight);var i=r+o/4,a=n.height+n.depth+i+r,s=kn(a,t),l=s.span,c=s.ruleWidth,u=s.advanceWidth,h=l.height-c;h>n.height+n.depth+i&&(i=(i+h-n.height-n.depth)/2);var d=l.height-n.height-i-c;n.style.paddingLeft=u+"em";var p=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var m=t.havingStyle(y.SCRIPTSCRIPT),f=yt(e.index,m,t),g=.6*(p.height-p.depth),v=Ye.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},t),_=Ye.makeSpan(["root"],[v]);return Ye.makeSpan(["mord","sqrt"],[_,p],t)}return Ye.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new St.MathNode("mroot",[Mt(n,t),Mt(r,t)]):new St.MathNode("msqrt",[Mt(n,t)])}});var vr={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT};rt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder:function(e,t){var n=vr[e.style],r=t.havingStyle(n).withFont("");return fr(e.body,r,t)},mathmlBuilder:function(e,t){var n=vr[e.style],r=t.havingStyle(n),o=Ct(e.body,r),i=new St.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});var yr=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===y.DISPLAY.size||n.alwaysHandleSupSub)?lr:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===y.DISPLAY.size||n.limits)?mr:null:"accent"===n.type?l.isCharacterBox(n.base)?Ut:null:"horizBrace"===n.type&&!e.sub===n.isOver?rr:null:null};ot({type:"supsub",htmlBuilder:function(e,t){var n=yr(e,t);if(n)return n(e,t);var r,o,i,a=e.base,s=e.sup,c=e.sub,u=yt(a,t),h=t.fontMetrics(),d=0,p=0,m=a&&l.isCharacterBox(a);if(s){var f=t.havingStyle(t.style.sup());r=yt(s,f,t),m||(d=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(c){var g=t.havingStyle(t.style.sub());o=yt(c,g,t),m||(p=u.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===y.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;var v,_=t.sizeMultiplier,b=.5/h.ptPerEm/_+"em",w=null;if(o){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof z||x)&&(w=-u.italic+"em")}if(r&&o){d=Math.max(d,i,r.depth+.25*h.xHeight),p=Math.max(p,h.sub2);var k=4*h.defaultRuleThickness;if(d-r.depth-(o.height-p)<k){p=k-(d-r.depth)+o.height;var S=.8*h.xHeight-(d-r.depth);S>0&&(d+=S,p-=S)}var A=[{type:"elem",elem:o,shift:p,marginRight:b,marginLeft:w},{type:"elem",elem:r,shift:-d,marginRight:b}];v=Ye.makeVList({positionType:"individualShift",children:A},t)}else if(o){p=Math.max(p,h.sub1,o.height-.8*h.xHeight);var E=[{type:"elem",elem:o,marginLeft:w,marginRight:b}];v=Ye.makeVList({positionType:"shift",positionData:p,children:E},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,r.depth+.25*h.xHeight),v=Ye.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:b}]},t)}var T=gt(u,"right")||"mord";return Ye.makeSpan([T],[u,Ye.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,i=[Mt(e.base,t)];if(e.sub&&i.push(Mt(e.sub,t)),e.sup&&i.push(Mt(e.sup,t)),r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;o=a&&"op"===a.type&&a.limits&&t.style===y.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===y.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===y.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===y.DISPLAY)?"munder":"msub"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===y.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===y.DISPLAY)?"mover":"msup"}return new St.MathNode(o,i)}}),ot({type:"atom",htmlBuilder:function(e,t){return Ye.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[At(e.text,e.mode)]);if("bin"===e.family){var r=Tt(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var _r={mi:"italic",mn:"normal",mtext:"normal"};ot({type:"mathord",htmlBuilder:function(e,t){return Ye.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new St.MathNode("mi",[At(e.text,e.mode,t)]),r=Tt(e,t)||"italic";return r!==_r[n.type]&&n.setAttribute("mathvariant",r),n}}),ot({type:"textord",htmlBuilder:function(e,t){return Ye.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=At(e.text,e.mode,t),o=Tt(e,t)||"normal";return n="text"===e.mode?new St.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new St.MathNode("mn",[r]):"\\prime"===e.text?new St.MathNode("mo",[r]):new St.MathNode("mi",[r]),o!==_r[n.type]&&n.setAttribute("mathvariant",o),n}});var br={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},wr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ot({type:"spacing",htmlBuilder:function(e,t){if(wr.hasOwnProperty(e.text)){var n=wr[e.text].className||"";if("text"===e.mode){var o=Ye.makeOrd(e,t,"textord");return o.classes.push(n),o}return Ye.makeSpan(["mspace",n],[Ye.mathsym(e.text,e.mode,t)],t)}if(br.hasOwnProperty(e.text))return Ye.makeSpan(["mspace",br[e.text]],[],t);throw new r('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!wr.hasOwnProperty(e.text)){if(br.hasOwnProperty(e.text))return new St.MathNode("mspace");throw new r('Unknown type of space "'+e.text+'"')}return new St.MathNode("mtext",[new St.TextNode(" ")])}});var xr=function(){var e=new St.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ot({type:"tag",mathmlBuilder:function(e,t){var n=new St.MathNode("mtable",[new St.MathNode("mtr",[xr(),new St.MathNode("mtd",[Nt(e.body,t)]),xr(),new St.MathNode("mtd",[Nt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var kr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sr={"\\textbf":"textbf","\\textmd":"textmd"},Ar={"\\textit":"textit","\\textup":"textup"},Er=function(e,t){var n=e.font;return n?kr[n]?t.withTextFontFamily(kr[n]):Sr[n]?t.withTextFontWeight(Sr[n]):t.withTextFontShape(Ar[n]):t};rt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"text",mode:n.mode,body:at(o),font:r}},htmlBuilder:function(e,t){var n=Er(e,t),r=dt(e.body,n,!0);return Ye.makeSpan(["mord","text"],r,n)},mathmlBuilder:function(e,t){var n=Er(e,t);return Nt(e.body,n)}}),rt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=yt(e.body,t),r=Ye.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Ye.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Ye.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[new St.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new St.MathNode("munder",[Mt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),rt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=yt(e.body,t),r=t.fontMetrics().axisHeight,o=.5*(n.height-r-(n.depth+r));return Ye.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){return new St.MathNode("mpadded",[Mt(e.body,t)],["vcenter"])}}),rt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new r("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=Tr(e),r=[],o=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),r.push(Ye.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return Ye.makeSpan(["mord","text"].concat(o.sizingClasses(t)),Ye.tryCombineChars(r),o)},mathmlBuilder:function(e,t){var n=new St.TextNode(Tr(e)),r=new St.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Tr=function(e){return e.body.replace(/ /g,e.star?"␣":" ")},Cr=et,Nr=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),Mr=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,Nr.range(this,t))},e}(),Lr=new RegExp("[̀-ͯ]+$"),Ir=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Mr("EOF",new Nr(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new r("Unexpected character: '"+e[t]+"'",new Mr(e[t],new Nr(this,t,t+1)));var o=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[o]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Mr(o,new Nr(this,t,this.tokenRegex.lastIndex))},e}(),zr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new r("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}this.current[e]=t},e}(),Or=dr;pr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),pr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),pr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),pr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),pr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),pr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),pr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};pr("\\char",(function(e){var t,n=e.popToken(),o="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])o=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new r("\\char` missing argument");o=n.text.charCodeAt(0)}else t=10;if(t){if(null==(o=Pr[n.text])||o>=t)throw new r("Invalid base-"+t+" digit "+n.text);for(var i;null!=(i=Pr[e.future().text])&&i<t;)o*=t,o+=i,e.popToken()}return"\\@char{"+o+"}"}));var Rr=function(e,t,n){var o=e.consumeArg().tokens;if(1!==o.length)throw new r("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new r("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!n)throw new r("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(o=e.consumeArg().tokens).length&&"["===o[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new r("Invalid number of arguments: "+l);s=parseInt(l),o=e.consumeArg().tokens}return e.macros.set(i,{tokens:o,numArgs:s}),""};pr("\\newcommand",(function(e){return Rr(e,!1,!0)})),pr("\\renewcommand",(function(e){return Rr(e,!0,!1)})),pr("\\providecommand",(function(e){return Rr(e,!0,!0)})),pr("\\message",(function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((function(e){return e.text})).join("")),""})),pr("\\errmessage",(function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((function(e){return e.text})).join("")),""})),pr("\\show",(function(e){var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Cr[n],V.math[n],V.text[n]),""})),pr("\\bgroup","{"),pr("\\egroup","}"),pr("~","\\nobreakspace"),pr("\\lq","`"),pr("\\rq","'"),pr("\\aa","\\r a"),pr("\\AA","\\r A"),pr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),pr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),pr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),pr("ℬ","\\mathscr{B}"),pr("ℰ","\\mathscr{E}"),pr("ℱ","\\mathscr{F}"),pr("ℋ","\\mathscr{H}"),pr("ℐ","\\mathscr{I}"),pr("ℒ","\\mathscr{L}"),pr("ℳ","\\mathscr{M}"),pr("ℛ","\\mathscr{R}"),pr("ℭ","\\mathfrak{C}"),pr("ℌ","\\mathfrak{H}"),pr("ℨ","\\mathfrak{Z}"),pr("\\Bbbk","\\Bbb{k}"),pr("·","\\cdotp"),pr("\\llap","\\mathllap{\\textrm{#1}}"),pr("\\rlap","\\mathrlap{\\textrm{#1}}"),pr("\\clap","\\mathclap{\\textrm{#1}}"),pr("\\mathstrut","\\vphantom{(}"),pr("\\underbar","\\underline{\\text{#1}}"),pr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),pr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),pr("\\ne","\\neq"),pr("≠","\\neq"),pr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),pr("∉","\\notin"),pr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),pr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),pr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),pr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),pr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),pr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),pr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),pr("⟂","\\perp"),pr("‼","\\mathclose{!\\mkern-0.8mu!}"),pr("∌","\\notni"),pr("⌜","\\ulcorner"),pr("⌝","\\urcorner"),pr("⌞","\\llcorner"),pr("⌟","\\lrcorner"),pr("©","\\copyright"),pr("®","\\textregistered"),pr("️","\\textregistered"),pr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),pr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),pr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),pr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),pr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),pr("⋮","\\vdots"),pr("\\varGamma","\\mathit{\\Gamma}"),pr("\\varDelta","\\mathit{\\Delta}"),pr("\\varTheta","\\mathit{\\Theta}"),pr("\\varLambda","\\mathit{\\Lambda}"),pr("\\varXi","\\mathit{\\Xi}"),pr("\\varPi","\\mathit{\\Pi}"),pr("\\varSigma","\\mathit{\\Sigma}"),pr("\\varUpsilon","\\mathit{\\Upsilon}"),pr("\\varPhi","\\mathit{\\Phi}"),pr("\\varPsi","\\mathit{\\Psi}"),pr("\\varOmega","\\mathit{\\Omega}"),pr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),pr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),pr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),pr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),pr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),pr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Dr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};pr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Dr?t=Dr[n]:("\\not"===n.substr(0,4)||n in V.math&&l.contains(["bin","rel"],V.math[n].group))&&(t="\\dotsb"),t}));var Br={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};pr("\\dotso",(function(e){return e.future().text in Br?"\\ldots\\,":"\\ldots"})),pr("\\dotsc",(function(e){var t=e.future().text;return t in Br&&","!==t?"\\ldots\\,":"\\ldots"})),pr("\\cdots",(function(e){return e.future().text in Br?"\\@cdots\\,":"\\@cdots"})),pr("\\dotsb","\\cdots"),pr("\\dotsm","\\cdots"),pr("\\dotsi","\\!\\cdots"),pr("\\dotsx","\\ldots\\,"),pr("\\DOTSI","\\relax"),pr("\\DOTSB","\\relax"),pr("\\DOTSX","\\relax"),pr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),pr("\\,","\\tmspace+{3mu}{.1667em}"),pr("\\thinspace","\\,"),pr("\\>","\\mskip{4mu}"),pr("\\:","\\tmspace+{4mu}{.2222em}"),pr("\\medspace","\\:"),pr("\\;","\\tmspace+{5mu}{.2777em}"),pr("\\thickspace","\\;"),pr("\\!","\\tmspace-{3mu}{.1667em}"),pr("\\negthinspace","\\!"),pr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),pr("\\negthickspace","\\tmspace-{5mu}{.277em}"),pr("\\enspace","\\kern.5em "),pr("\\enskip","\\hskip.5em\\relax"),pr("\\quad","\\hskip1em\\relax"),pr("\\qquad","\\hskip2em\\relax"),pr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),pr("\\tag@paren","\\tag@literal{({#1})}"),pr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new r("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),pr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),pr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),pr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),pr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),pr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),pr("\\newline","\\\\\\relax"),pr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Fr=B["Main-Regular"]["T".charCodeAt(0)][1]-.7*B["Main-Regular"]["A".charCodeAt(0)][1]+"em";pr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Fr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),pr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Fr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),pr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),pr("\\@hspace","\\hskip #1\\relax"),pr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),pr("\\ordinarycolon",":"),pr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),pr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),pr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),pr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),pr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),pr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),pr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),pr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),pr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),pr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),pr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),pr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),pr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),pr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),pr("∷","\\dblcolon"),pr("∹","\\eqcolon"),pr("≔","\\coloneqq"),pr("≕","\\eqqcolon"),pr("⩴","\\Coloneqq"),pr("\\ratio","\\vcentcolon"),pr("\\coloncolon","\\dblcolon"),pr("\\colonequals","\\coloneqq"),pr("\\coloncolonequals","\\Coloneqq"),pr("\\equalscolon","\\eqqcolon"),pr("\\equalscoloncolon","\\Eqqcolon"),pr("\\colonminus","\\coloneq"),pr("\\coloncolonminus","\\Coloneq"),pr("\\minuscolon","\\eqcolon"),pr("\\minuscoloncolon","\\Eqcolon"),pr("\\coloncolonapprox","\\Colonapprox"),pr("\\coloncolonsim","\\Colonsim"),pr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),pr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),pr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),pr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),pr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),pr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),pr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),pr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),pr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),pr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),pr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),pr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),pr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),pr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),pr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),pr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),pr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),pr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),pr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),pr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),pr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),pr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),pr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),pr("\\imath","\\html@mathml{\\@imath}{ı}"),pr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),pr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),pr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),pr("⟦","\\llbracket"),pr("⟧","\\rrbracket"),pr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),pr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),pr("⦃","\\lBrace"),pr("⦄","\\rBrace"),pr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),pr("⦵","\\minuso"),pr("\\darr","\\downarrow"),pr("\\dArr","\\Downarrow"),pr("\\Darr","\\Downarrow"),pr("\\lang","\\langle"),pr("\\rang","\\rangle"),pr("\\uarr","\\uparrow"),pr("\\uArr","\\Uparrow"),pr("\\Uarr","\\Uparrow"),pr("\\N","\\mathbb{N}"),pr("\\R","\\mathbb{R}"),pr("\\Z","\\mathbb{Z}"),pr("\\alef","\\aleph"),pr("\\alefsym","\\aleph"),pr("\\Alpha","\\mathrm{A}"),pr("\\Beta","\\mathrm{B}"),pr("\\bull","\\bullet"),pr("\\Chi","\\mathrm{X}"),pr("\\clubs","\\clubsuit"),pr("\\cnums","\\mathbb{C}"),pr("\\Complex","\\mathbb{C}"),pr("\\Dagger","\\ddagger"),pr("\\diamonds","\\diamondsuit"),pr("\\empty","\\emptyset"),pr("\\Epsilon","\\mathrm{E}"),pr("\\Eta","\\mathrm{H}"),pr("\\exist","\\exists"),pr("\\harr","\\leftrightarrow"),pr("\\hArr","\\Leftrightarrow"),pr("\\Harr","\\Leftrightarrow"),pr("\\hearts","\\heartsuit"),pr("\\image","\\Im"),pr("\\infin","\\infty"),pr("\\Iota","\\mathrm{I}"),pr("\\isin","\\in"),pr("\\Kappa","\\mathrm{K}"),pr("\\larr","\\leftarrow"),pr("\\lArr","\\Leftarrow"),pr("\\Larr","\\Leftarrow"),pr("\\lrarr","\\leftrightarrow"),pr("\\lrArr","\\Leftrightarrow"),pr("\\Lrarr","\\Leftrightarrow"),pr("\\Mu","\\mathrm{M}"),pr("\\natnums","\\mathbb{N}"),pr("\\Nu","\\mathrm{N}"),pr("\\Omicron","\\mathrm{O}"),pr("\\plusmn","\\pm"),pr("\\rarr","\\rightarrow"),pr("\\rArr","\\Rightarrow"),pr("\\Rarr","\\Rightarrow"),pr("\\real","\\Re"),pr("\\reals","\\mathbb{R}"),pr("\\Reals","\\mathbb{R}"),pr("\\Rho","\\mathrm{P}"),pr("\\sdot","\\cdot"),pr("\\sect","\\S"),pr("\\spades","\\spadesuit"),pr("\\sub","\\subset"),pr("\\sube","\\subseteq"),pr("\\supe","\\supseteq"),pr("\\Tau","\\mathrm{T}"),pr("\\thetasym","\\vartheta"),pr("\\weierp","\\wp"),pr("\\Zeta","\\mathrm{Z}"),pr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),pr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),pr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),pr("\\bra","\\mathinner{\\langle{#1}|}"),pr("\\ket","\\mathinner{|{#1}\\rangle}"),pr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),pr("\\Bra","\\left\\langle#1\\right|"),pr("\\Ket","\\left|#1\\right\\rangle"),pr("\\angln","{\\angl n}"),pr("\\blue","\\textcolor{##6495ed}{#1}"),pr("\\orange","\\textcolor{##ffa500}{#1}"),pr("\\pink","\\textcolor{##ff00af}{#1}"),pr("\\red","\\textcolor{##df0030}{#1}"),pr("\\green","\\textcolor{##28ae7b}{#1}"),pr("\\gray","\\textcolor{gray}{#1}"),pr("\\purple","\\textcolor{##9d38bd}{#1}"),pr("\\blueA","\\textcolor{##ccfaff}{#1}"),pr("\\blueB","\\textcolor{##80f6ff}{#1}"),pr("\\blueC","\\textcolor{##63d9ea}{#1}"),pr("\\blueD","\\textcolor{##11accd}{#1}"),pr("\\blueE","\\textcolor{##0c7f99}{#1}"),pr("\\tealA","\\textcolor{##94fff5}{#1}"),pr("\\tealB","\\textcolor{##26edd5}{#1}"),pr("\\tealC","\\textcolor{##01d1c1}{#1}"),pr("\\tealD","\\textcolor{##01a995}{#1}"),pr("\\tealE","\\textcolor{##208170}{#1}"),pr("\\greenA","\\textcolor{##b6ffb0}{#1}"),pr("\\greenB","\\textcolor{##8af281}{#1}"),pr("\\greenC","\\textcolor{##74cf70}{#1}"),pr("\\greenD","\\textcolor{##1fab54}{#1}"),pr("\\greenE","\\textcolor{##0d923f}{#1}"),pr("\\goldA","\\textcolor{##ffd0a9}{#1}"),pr("\\goldB","\\textcolor{##ffbb71}{#1}"),pr("\\goldC","\\textcolor{##ff9c39}{#1}"),pr("\\goldD","\\textcolor{##e07d10}{#1}"),pr("\\goldE","\\textcolor{##a75a05}{#1}"),pr("\\redA","\\textcolor{##fca9a9}{#1}"),pr("\\redB","\\textcolor{##ff8482}{#1}"),pr("\\redC","\\textcolor{##f9685d}{#1}"),pr("\\redD","\\textcolor{##e84d39}{#1}"),pr("\\redE","\\textcolor{##bc2612}{#1}"),pr("\\maroonA","\\textcolor{##ffbde0}{#1}"),pr("\\maroonB","\\textcolor{##ff92c6}{#1}"),pr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),pr("\\maroonD","\\textcolor{##ca337c}{#1}"),pr("\\maroonE","\\textcolor{##9e034e}{#1}"),pr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),pr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),pr("\\purpleC","\\textcolor{##aa87ff}{#1}"),pr("\\purpleD","\\textcolor{##7854ab}{#1}"),pr("\\purpleE","\\textcolor{##543b78}{#1}"),pr("\\mintA","\\textcolor{##f5f9e8}{#1}"),pr("\\mintB","\\textcolor{##edf2df}{#1}"),pr("\\mintC","\\textcolor{##e0e5cc}{#1}"),pr("\\grayA","\\textcolor{##f6f7f7}{#1}"),pr("\\grayB","\\textcolor{##f0f1f2}{#1}"),pr("\\grayC","\\textcolor{##e3e5e6}{#1}"),pr("\\grayD","\\textcolor{##d6d8da}{#1}"),pr("\\grayE","\\textcolor{##babec2}{#1}"),pr("\\grayF","\\textcolor{##888d93}{#1}"),pr("\\grayG","\\textcolor{##626569}{#1}"),pr("\\grayH","\\textcolor{##3b3e40}{#1}"),pr("\\grayI","\\textcolor{##21242c}{#1}"),pr("\\kaBlue","\\textcolor{##314453}{#1}"),pr("\\kaGreen","\\textcolor{##71B307}{#1}");var jr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Hr=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new zr(Or,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Ir(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var o=this.consumeArg(["]"]);r=o.tokens,n=o.end}else{var i=this.consumeArg();r=i.tokens,t=i.start,n=i.end}return this.pushToken(new Mr("EOF",n.loc)),this.pushTokens(r),t.range(n,"")},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArg=function(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var o,i=this.future(),a=0,s=0;do{if(o=this.popToken(),t.push(o),"{"===o.text)++a;else if("}"===o.text){if(-1==--a)throw new r("Extra }",o)}else if("EOF"===o.text)throw new r("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",o);if(e&&n)if((0===a||1===a&&"{"===e[s])&&o.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}while(0!==a||n);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:o}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new r("The length of delimiters doesn't match the number of args!");for(var n=t[0],o=0;o<n.length;o++){var i=this.popToken();if(n[o]!==i.text)throw new r("Use of the macro doesn't match its definition",i)}}for(var a=[],s=0;s<e;s++)a.push(this.consumeArg(t&&t[s+1]).tokens);return a},t.expandOnce=function(e){var t=this.popToken(),n=t.text,o=t.noexpand?null:this._getExpansion(n);if(null==o||e&&o.unexpandable){if(e&&null==o&&"\\"===n[0]&&!this.isDefined(n))throw new r("Undefined control sequence: "+n);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new r("Too many expansions: infinite loop or need to increase maxExpand setting");var i=o.tokens,a=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs)for(var s=(i=i.slice()).length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new r("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new r("Not a valid argument number",l);var c;(c=i).splice.apply(c,[s,2].concat(a[+l.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof Mr){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Mr(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;){var r=this.expandOnce(!0);r instanceof Mr&&(r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(this.stack.pop()))}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var o=0;if(-1!==r.indexOf("#"))for(var i=r.replace(/##/g,"");-1!==i.indexOf("#"+(o+1));)++o;for(var a=new Ir(r,this.settings),s=[],l=a.lex();"EOF"!==l.text;)s.push(l),l=a.lex();return s.reverse(),{tokens:s,numArgs:o}}return r},t.isDefined=function(e){return this.macros.has(e)||Cr.hasOwnProperty(e)||V.math.hasOwnProperty(e)||V.text.hasOwnProperty(e)||jr.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Cr.hasOwnProperty(e)&&!Cr[e].primitive},e}(),Ur={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},qr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},$r=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Hr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new r("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&Cr[o.text]&&Cr[o.text].infix)break;var i=this.parseAtom(n);if(!i)break;"internal"!==i.type&&r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,o=0;o<e.length;o++)if("infix"===e[o].type){if(-1!==n)throw new r("only one infix operator per group",e[o].token);n=o,t=e[o].replaceWith}if(-1!==n&&t){var i,a,s=e.slice(0,n),l=e.slice(n+1);return i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},a=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[i,e[n],a],[]):this.callFunction(t,[i,a],[])]}return e},t.handleSupSubscript=function(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var o=this.parseGroup(e);if(!o)throw new r("Expected group after '"+n+"'",t);return o},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}},t.parseAtom=function(e){var t,n,o=this.parseGroup("atom",e);if("text"===this.mode)return o;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(o&&"op"===o.type){var a="\\limits"===i.text;o.limits=a,o.alwaysHandleSupSub=!0}else{if(!o||"operatorname"!==o.type)throw new r("Limit controls must follow a math operator",i);o.alwaysHandleSupSub&&(o.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new r("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new r("Double subscript",i);n=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(t)throw new r("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();"'"===this.fetch().text;)l.push(s),this.consume();"^"===this.fetch().text&&l.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:l}}}return t||n?{type:"supsub",mode:this.mode,base:o,sup:t,sub:n}:o},t.parseFunction=function(e,t){var n=this.fetch(),o=n.text,i=Cr[o];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new r("Got function '"+o+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!i.allowedInText)throw new r("Can't use function '"+o+"' in text mode",n);if("math"===this.mode&&!1===i.allowedInMath)throw new r("Can't use function '"+o+"' in math mode",n);var a=this.parseArguments(o,i),s=a.args,l=a.optArgs;return this.callFunction(o,s,l,n,e)},t.callFunction=function(e,t,n,o,i){var a={funcName:e,parser:this,token:o,breakOnTokenText:i},s=Cr[e];if(s&&s.handler)return s.handler(a,t,n);throw new r("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var o=[],i=[],a=0;a<n;a++){var s=t.argTypes&&t.argTypes[a],l=a<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===a&&null==i[0])&&(s="primitive");var c=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)i.push(c);else{if(null==c)throw new r("Null argument, please report this as a bug");o.push(c)}}return{args:o,optArgs:i}},t.parseGroupOfType=function(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var o=this.parseArgumentGroup(n,"text");return null!=o?{type:"styling",mode:o.mode,body:[o],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",n);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(n)throw new r("A primitive argument cannot be optional");var a=this.parseGroup(e);if(null==a)throw new r("Expected group as "+e,this.fetch());return a;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new r("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var r,o="";"EOF"!==(r=this.fetch()).text;)o+=r.text,this.consume();return this.consume(),n.text=o,n},t.parseRegexGroup=function(e,t){for(var n,o=this.fetch(),i=o,a="";"EOF"!==(n=this.fetch()).text&&e.test(a+n.text);)a+=(i=n).text,this.consume();if(""===a)throw new r("Invalid "+t+": '"+o.text+"'",o);return o.range(i,a)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new r("Invalid color: '"+t.text+"'",t);var o=n[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}},t.parseSizeGroup=function(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!o)throw new r("Invalid size: '"+t.text+"'",t);var i={number:+(o[1]+o[2]),unit:o[3]};if(!Re(i))throw new r("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}},t.parseUrlGroup=function(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}},t.parseArgumentGroup=function(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:n.loc,body:o};return t&&this.switchMode(r),i},t.parseGroup=function(e,t){var n,o=this.fetch(),i=o.text;if("{"===i||"\\begingroup"===i){this.consume();var a="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),l=this.fetch();this.expect(a),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:Nr.range(o,l),body:s,semisimple:"\\begingroup"===i||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!jr.hasOwnProperty(i)){if(this.settings.throwOnError)throw new r("Undefined control sequence: "+i,o);n=this.formatUnsupportedCmd(i),this.consume()}return n},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],o=r.text;"-"===o&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:Nr.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Nr.range(r,e[n+1]),text:"--"}),t-=1)),"'"!==o&&"`"!==o||e[n+1].text!==o||(e.splice(n,2,{type:"textord",mode:"text",loc:Nr.range(r,e[n+1]),text:o+o}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),o="*"===n.charAt(0);if(o&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new r("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:o}}qr.hasOwnProperty(t[0])&&!V[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=qr[t[0]]+t.substr(1));var i,a=Lr.exec(t);if(a&&("i"===(t=t.substring(0,a.index))?t="ı":"j"===t&&(t="ȷ")),V[this.mode][t]){this.settings.strict&&"math"===this.mode&&Se.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=V[this.mode][t].group,c=Nr.range(e);if(q.hasOwnProperty(l)){var u=l;s={type:"atom",mode:this.mode,family:u,loc:c,text:t}}else s={type:l,mode:this.mode,loc:c,text:t};i=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(w(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:Nr.range(e),text:t}}if(this.consume(),a)for(var h=0;h<a[0].length;h++){var d=a[0][h];if(!Ur[d])throw new r("Unknown accent ' "+d+"'",e);var p=Ur[d][this.mode]||Ur[d].text;if(!p)throw new r("Accent "+d+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:Nr.range(e),label:p,isStretchy:!1,isShifty:!0,base:i}}return i},e}();$r.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Gr=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new $r(e,t);delete n.gullet.macros.current["\\df@tag"];var o=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new r("\\tag works only in display equations");n.gullet.feed("\\df@tag"),o=[{type:"tag",mode:"text",body:o,tag:n.parse()}]}return o},Vr=function(e,t,n){t.textContent="";var r=Yr(e,n).toNode();t.appendChild(r)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Vr=function(){throw new r("KaTeX doesn't work in quirks mode.")});var Wr=function(e,t,n){if(n.throwOnError||!(e instanceof r))throw e;var o=Ye.makeSpan(["katex-error"],[new z(t)]);return o.setAttribute("title",e.toString()),o.setAttribute("style","color:"+n.errorColor),o},Yr=function(e,t){var n=new c(t);try{return function(e,t,n){var r,o=It(n);if("mathml"===n.output)return Lt(e,t,o,n.displayMode,!0);if("html"===n.output){var i=bt(e,o);r=Ye.makeSpan(["katex"],[i])}else{var a=Lt(e,t,o,n.displayMode,!1),s=bt(e,o);r=Ye.makeSpan(["katex"],[a,s])}return zt(r,n)}(Gr(e,n),e,n)}catch(t){return Wr(t,e,n)}},Kr={version:"0.13.18",render:Vr,renderToString:function(e,t){return Yr(e,t).toMarkup()},ParseError:r,__parse:function(e,t){var n=new c(t);return Gr(e,n)},__renderToDomTree:Yr,__renderToHTMLTree:function(e,t){var n=new c(t);try{return function(e,t,n){var r=bt(e,It(n)),o=Ye.makeSpan(["katex"],[r]);return zt(o,n)}(Gr(e,n),0,n)}catch(t){return Wr(t,e,n)}},__setFontMetrics:function(e,t){B[e]=t},__defineSymbol:W,__defineMacro:pr,__domTree:{Span:N,Anchor:M,SymbolNode:z,SvgNode:O,PathNode:P,LineNode:R}};return t=t.default}()},Wa.exports=Va();var Ya={exports:{}};!function(e){(function(){function t(e){var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var n={},r={},o={},i=t(!0),a="vanilla",s={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:function(){var e=t(!0),n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}()};function l(e,t){var r=t?"Error in "+t+" extension->":"Error in unnamed extension",o={valid:!0,error:""};n.helper.isArray(e)||(e=[e]);for(var i=0;i<e.length;++i){var a=r+" sub-extension "+i+": ",s=e[i];if("object"!=typeof s)return o.valid=!1,o.error=a+"must be an object, but "+typeof s+" given",o;if(!n.helper.isString(s.type))return o.valid=!1,o.error=a+'property "type" must be a string, but '+typeof s.type+" given",o;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return o.valid=!1,o.error=a+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',o;if("listener"===l){if(n.helper.isUndefined(s.listeners))return o.valid=!1,o.error=a+'. Extensions of type "listener" must have a property called "listeners"',o}else if(n.helper.isUndefined(s.filter)&&n.helper.isUndefined(s.regex))return o.valid=!1,o.error=a+l+' extensions must define either a "regex" property or a "filter" method',o;if(s.listeners){if("object"!=typeof s.listeners)return o.valid=!1,o.error=a+'"listeners" property must be an object but '+typeof s.listeners+" given",o;for(var c in s.listeners)if(s.listeners.hasOwnProperty(c)&&"function"!=typeof s.listeners[c])return o.valid=!1,o.error=a+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+c+" must be a function but "+typeof s.listeners[c]+" given",o}if(s.filter){if("function"!=typeof s.filter)return o.valid=!1,o.error=a+'"filter" must be a function, but '+typeof s.filter+" given",o}else if(s.regex){if(n.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return o.valid=!1,o.error=a+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",o;if(n.helper.isUndefined(s.replace))return o.valid=!1,o.error=a+'"regex" extensions must implement a replace string or function',o}}return o}function c(e,t){return"¨E"+t.charCodeAt(0)+"E"}n.helper={},n.extensions={},n.setOption=function(e,t){return i[e]=t,this},n.getOption=function(e){return i[e]},n.getOptions=function(){return i},n.resetOptions=function(){i=t(!0)},n.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");n.resetOptions();var t=s[e];for(var r in a=e,t)t.hasOwnProperty(r)&&(i[r]=t[r])},n.getFlavor=function(){return a},n.getFlavorOptions=function(e){if(s.hasOwnProperty(e))return s[e]},n.getDefaultOptions=function(e){return t(e)},n.subParser=function(e,t){if(n.helper.isString(e)){if(void 0===t){if(r.hasOwnProperty(e))return r[e];throw Error("SubParser named "+e+" not registered!")}r[e]=t}},n.extension=function(e,t){if(!n.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=n.helper.stdExtName(e),n.helper.isUndefined(t)){if(!o.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return o[e]}"function"==typeof t&&(t=t()),n.helper.isArray(t)||(t=[t]);var r=l(t,e);if(!r.valid)throw Error(r.error);o[e]=t},n.getAllExtensions=function(){return o},n.removeExtension=function(e){delete o[e]},n.resetExtensions=function(){o={}},n.validateExtension=function(e){var t=l(e,null);return!!t.valid||(console.warn(t.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(e){return"string"==typeof e||e instanceof String},n.helper.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},n.helper.isArray=function(e){return Array.isArray(e)},n.helper.isUndefined=function(e){return void 0===e},n.helper.forEach=function(e,t){if(n.helper.isUndefined(e))throw new Error("obj param is required");if(n.helper.isUndefined(t))throw new Error("callback param is required");if(!n.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(n.helper.isArray(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var o in e)e.hasOwnProperty(o)&&t(e[o],o,e)}},n.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},n.helper.escapeCharactersCallback=c,n.helper.escapeCharacters=function(e,t,n){var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var o=new RegExp(r,"g");return e=e.replace(o,c)},n.helper.unescapeHTMLEntities=function(e){return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var u=function(e,t,n,r){var o,i,a,s,l,c=r||"",u=c.indexOf("g")>-1,h=new RegExp(t+"|"+n,"g"+c.replace(/g/g,"")),d=new RegExp(t,c.replace(/g/g,"")),p=[];do{for(o=0;a=h.exec(e);)if(d.test(a[0]))o++||(s=(i=h.lastIndex)-a[0].length);else if(o&&!--o){l=a.index+a[0].length;var m={left:{start:s,end:i},match:{start:i,end:a.index},right:{start:a.index,end:l},wholeMatch:{start:s,end:l}};if(p.push(m),!u)return p}}while(o&&(h.lastIndex=i));return p};n.helper.matchRecursiveRegExp=function(e,t,n,r){for(var o=u(e,t,n,r),i=[],a=0;a<o.length;++a)i.push([e.slice(o[a].wholeMatch.start,o[a].wholeMatch.end),e.slice(o[a].match.start,o[a].match.end),e.slice(o[a].left.start,o[a].left.end),e.slice(o[a].right.start,o[a].right.end)]);return i},n.helper.replaceRecursiveRegExp=function(e,t,r,o,i){if(!n.helper.isFunction(t)){var a=t;t=function(){return a}}var s=u(e,r,o,i),l=e,c=s.length;if(c>0){var h=[];0!==s[0].wholeMatch.start&&h.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d<c;++d)h.push(t(e.slice(s[d].wholeMatch.start,s[d].wholeMatch.end),e.slice(s[d].match.start,s[d].match.end),e.slice(s[d].left.start,s[d].left.end),e.slice(s[d].right.start,s[d].right.end))),d<c-1&&h.push(e.slice(s[d].wholeMatch.end,s[d+1].wholeMatch.start));s[c-1].wholeMatch.end<e.length&&h.push(e.slice(s[c-1].wholeMatch.end)),l=h.join("")}return l},n.helper.regexIndexOf=function(e,t,r){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var o=e.substring(r||0).search(t);return o>=0?o+(r||0):o},n.helper.splitAtIndex=function(e,t){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},n.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e})),e},n.helper.padEnd=function(e,t,n){return t>>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},n.Converter=function(e){var t={},r=[],c=[],u={},h=a,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,n.helper.isString(e)){if(t=e=n.helper.stdExtName(e),n.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new n.Converter));n.helper.isArray(e)||(e=[e]);var o=l(e,t);if(!o.valid)throw Error(o.error);for(var i=0;i<e.length;++i)switch(e[i].type){case"lang":r.push(e[i]);break;case"output":c.push(e[i]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(n.extensions[e],e);if(n.helper.isUndefined(o[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=o[e]}"function"==typeof e&&(e=e()),n.helper.isArray(e)||(e=[e]);var i=l(e,t);if(!i.valid)throw Error(i.error);for(var a=0;a<e.length;++a){switch(e[a].type){case"lang":r.push(e[a]);break;case"output":c.push(e[a])}if(e[a].hasOwnProperty("listeners"))for(var s in e[a].listeners)e[a].listeners.hasOwnProperty(s)&&m(s,e[a].listeners[s])}}function m(e,t){if(!n.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");u.hasOwnProperty(e)||(u[e]=[]),u[e].push(t)}!function(){for(var r in e=e||{},i)i.hasOwnProperty(r)&&(t[r]=i[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.extensions&&n.helper.forEach(t.extensions,p)}(),this._dispatch=function(e,t,n,r){if(u.hasOwnProperty(e))for(var o=0;o<u[e].length;++o){var i=u[e][o](e,t,this,n,r);i&&void 0!==i&&(t=i)}return t},this.listen=function(e,t){return m(e,t),this},this.makeHtml=function(e){if(!e)return e;var o={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:c,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=n.subParser("detab")(e,t,o)).replace(/^[ \t]+$/gm,""),n.helper.forEach(r,(function(r){e=n.subParser("runExtension")(r,e,t,o)})),e=n.subParser("metadata")(e,t,o),e=n.subParser("hashPreCodeTags")(e,t,o),e=n.subParser("githubCodeBlocks")(e,t,o),e=n.subParser("hashHTMLBlocks")(e,t,o),e=n.subParser("hashCodeTags")(e,t,o),e=n.subParser("stripLinkDefinitions")(e,t,o),e=n.subParser("blockGamut")(e,t,o),e=n.subParser("unhashHTMLSpans")(e,t,o),e=(e=(e=n.subParser("unescapeSpecialChars")(e,t,o)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=n.subParser("completeHTMLDocument")(e,t,o),n.helper.forEach(c,(function(r){e=n.subParser("runExtension")(r,e,t,o)})),d=o.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var o={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],o=0;o<t.length;++o)if(1===t[o].childElementCount&&"code"===t[o].firstChild.tagName.toLowerCase()){var i=t[o].firstChild.innerHTML.trim(),a=t[o].firstChild.getAttribute("data-language")||"";if(""===a)for(var s=t[o].firstChild.className.split(" "),l=0;l<s.length;++l){var c=s[l].match(/^language-(.+)$/);if(null!==c){a=c[1];break}}i=n.helper.unescapeHTMLEntities(i),r.push(i),t[o].outerHTML='<precode language="'+a+'" precodenum="'+o.toString()+'"></precode>'}else r.push(t[o].innerHTML),t[o].innerHTML="",t[o].setAttribute("prenum",o.toString());return r}(r)};!function e(t){for(var n=0;n<t.childNodes.length;++n){var r=t.childNodes[n];3===r.nodeType?/\S/.test(r.nodeValue)?(r.nodeValue=r.nodeValue.split("\n").join(" "),r.nodeValue=r.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(r),--n):1===r.nodeType&&e(r)}}(r);for(var i=r.childNodes,a="",s=0;s<i.length;s++)a+=n.subParser("makeMarkdown.node")(i[s],o);return a},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){p(e,t=t||null)},this.useExtension=function(e){p(e)},this.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=s[e];for(var r in h=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return h},this.removeExtension=function(e){n.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var o=e[t],i=0;i<r.length;++i)r[i]===o&&r[i].splice(i,1);for(;0<c.length;++i)c[0]===o&&c[0].splice(i,1)}},this.getAllExtensions=function(){return{language:r,output:c}},this.getMetadata=function(e){return e?d.raw:d.parsed},this.getMetadataFormat=function(){return d.format},this._setMetadataPair=function(e,t){d.parsed[e]=t},this._setMetadataFormat=function(e){d.format=e},this._setMetadataRaw=function(e){d.raw=e}},n.subParser("anchors",(function(e,t,r){var o=function(e,o,i,a,s,l,c){if(n.helper.isUndefined(c)&&(c=""),i=i.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(i||(i=o.toLowerCase().replace(/ ?\n/g," ")),a="#"+i,n.helper.isUndefined(r.gUrls[i]))return e;a=r.gUrls[i],n.helper.isUndefined(r.gTitles[i])||(c=r.gTitles[i])}var u='<a href="'+(a=a.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"';return""!==c&&null!==c&&(u+=' title="'+(c=(c=c.replace(/"/g,"&quot;")).replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(a)&&(u+=' rel="noopener noreferrer" target="¨E95Eblank"'),u+=">"+o+"</a>"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,o)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o)).replace(/\[([^\[\]]+)]()()()()()/g,o),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,o,i,a){if("\\"===o)return r+i;if(!n.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,a),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'<a href="'+s+'"'+l+">"+i+"</a>"}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,p=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,f=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,g=function(e){return function(t,r,o,i,a,s,l){var c=o=o.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),u="",h="",d=r||"",p=l||"";return/^www\./i.test(o)&&(o=o.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(h=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'<a href="'+o+'"'+h+">"+c+"</a>"+u+p}},v=function(e,t){return function(r,o,i){var a="mailto:";return o=o||"",i=n.subParser("unescapeSpecialChars")(i,e,t),e.encodeEmails?(a=n.helper.encodeEmailAddress(a+i),i=n.helper.encodeEmailAddress(i)):a+=i,o+'<a href="'+a+'">'+i+"</a>"}};n.subParser("autoLinks",(function(e,t,n){return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(p,g(t))).replace(f,v(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)})),n.subParser("simplifiedAutoLinks",(function(e,t,n){return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(d,g(t)):e.replace(h,g(t))).replace(m,v(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e})),n.subParser("blockGamut",(function(e,t,r){return e=r.converter._dispatch("blockGamut.before",e,t,r),e=n.subParser("blockQuotes")(e,t,r),e=n.subParser("headers")(e,t,r),e=n.subParser("horizontalRule")(e,t,r),e=n.subParser("lists")(e,t,r),e=n.subParser("codeBlocks")(e,t,r),e=n.subParser("tables")(e,t,r),e=n.subParser("hashHTMLBlocks")(e,t,r),e=n.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),n.subParser("blockQuotes",(function(e,t,r){e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var o=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(o=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(o,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=n.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=n.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return n=(n=n.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),n.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),n.subParser("codeBlocks",(function(e,t,r){e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,o,i){var a=o,s=i,l="\n";return a=n.subParser("outdent")(a,t,r),a=n.subParser("encodeCode")(a,t,r),a=(a=(a=n.subParser("detab")(a,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),a="<pre><code>"+a+l+"</code></pre>",n.subParser("hashBlock")(a,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),n.subParser("codeSpans",(function(e,t,r){return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,o,i,a){var s=a;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=o+"<code>"+(s=n.subParser("encodeCode")(s,t,r))+"</code>",s=n.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),n.subParser("completeHTMLDocument",(function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",o="<!DOCTYPE HTML>\n",i="",a='<meta charset="utf-8">\n',s="",l="";for(var c in void 0!==n.metadata.parsed.doctype&&(o="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(r=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==r||(a='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":i="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":a="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[c]+'"',l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n';break;default:l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n'}return e=o+"<html"+s+">\n<head>\n"+i+a+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)})),n.subParser("detab",(function(e,t,n){return e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,r=4-n.length%4,o=0;o<r;o++)n+=" ";return n})),e=(e=e.replace(/¨A/g," ")).replace(/¨B/g,""),e=n.converter._dispatch("detab.after",e,t,n)})),n.subParser("ellipsis",(function(e,t,n){return e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"…"),e=n.converter._dispatch("ellipsis.after",e,t,n)})),n.subParser("emoji",(function(e,t,r){if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return n.helper.emojis.hasOwnProperty(t)?n.helper.emojis[t]:e})),e=r.converter._dispatch("emoji.after",e,t,r)})),n.subParser("encodeAmpsAndAngles",(function(e,t,n){return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)})),n.subParser("encodeBackslashEscapes",(function(e,t,r){return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,n.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),n.subParser("encodeCode",(function(e,t,r){return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),n.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),n.subParser("githubCodeBlocks",(function(e,t,r){return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,o,i,a){var s=t.omitExtraWLInCodeBlocks?"":"\n";return a=n.subParser("encodeCode")(a,t,r),a="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+">"+(a=(a=(a=n.subParser("detab")(a,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",a=n.subParser("hashBlock")(a,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),n.subParser("hashBlock",(function(e,t,n){return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)})),n.subParser("hashCodeTags",(function(e,t,r){e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,(function(e,o,i,a){var s=i+n.subParser("encodeCode")(o,t,r)+a;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),n.subParser("hashElement",(function(e,t,n){return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}})),n.subParser("hashHTMLBlocks",(function(e,t,r){e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var o=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],i=function(e,t,n,o){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+o),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"})));for(var a=0;a<o.length;++a)for(var s,l=new RegExp("^ {0,3}(<"+o[a]+"\\b[^>]*>)","im"),c="<"+o[a]+"\\b[^>]*>",u="</"+o[a]+">";-1!==(s=n.helper.regexIndexOf(e,l));){var h=n.helper.splitAtIndex(e,s),d=n.helper.replaceRecursiveRegExp(h[1],i,c,u,"im");if(d===h[1])break;e=h[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=(e=n.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),n.subParser("hashHTMLSpans",(function(e,t,n){function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,(function(e){return r(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<[^>]+?>/gi,(function(e){return r(e)})),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)})),n.subParser("unhashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r<n.gHtmlSpans.length;++r){for(var o=n.gHtmlSpans[r],i=0;/¨C(\d+)C/.test(o);){var a=RegExp.$1;if(o=o.replace("¨C"+a+"C",n.gHtmlSpans[a]),10===i){console.error("maximum nesting of 10 spans reached!!!");break}++i}e=e.replace("¨C"+r+"C",o)}return e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n)})),n.subParser("hashPreCodeTags",(function(e,t,r){e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,(function(e,o,i,a){var s=i+n.subParser("encodeCode")(o,t,r)+a;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),n.subParser("headers",(function(e,t,r){e=r.converter._dispatch("headers.before",e,t,r);var o=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),i=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,a=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(i,(function(e,i){var a=n.subParser("spanGamut")(i,t,r),s=t.noHeaderId?"":' id="'+l(i)+'"',c="<h"+o+s+">"+a+"</h"+o+">";return n.subParser("hashBlock")(c,t,r)}))).replace(a,(function(e,i){var a=n.subParser("spanGamut")(i,t,r),s=t.noHeaderId?"":' id="'+l(i)+'"',c=o+1,u="<h"+c+s+">"+a+"</h"+c+">";return n.subParser("hashBlock")(u,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var o,i;if(t.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return o=e,i=n.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(o=i+o),o=t.ghCompatibleHeaderId?o.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?o.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():o.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(o=i+o),r.hashLinkCounts[o]?o=o+"-"+r.hashLinkCounts[o]++:r.hashLinkCounts[o]=1,o}return e=e.replace(s,(function(e,i,a){var s=a;t.customizedHeaderId&&(s=a.replace(/\s?\{([^{]+?)}\s*$/,""));var c=n.subParser("spanGamut")(s,t,r),u=t.noHeaderId?"":' id="'+l(a)+'"',h=o-1+i.length,d="<h"+h+u+">"+c+"</h"+h+">";return n.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),n.subParser("horizontalRule",(function(e,t,r){e=r.converter._dispatch("horizontalRule.before",e,t,r);var o=n.subParser("hashBlock")("<hr />",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,o)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,o)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,o),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),n.subParser("images",(function(e,t,r){function o(e,t,o,i,a,s,l,c){var u=r.gUrls,h=r.gTitles,d=r.gDimensions;if(o=o.toLowerCase(),c||(c=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(""===i||null===i){if(""!==o&&null!==o||(o=t.toLowerCase().replace(/ ?\n/g," ")),i="#"+o,n.helper.isUndefined(u[o]))return e;i=u[o],n.helper.isUndefined(h[o])||(c=h[o]),n.helper.isUndefined(d[o])||(a=d[o].width,s=d[o].height)}t=t.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var p='<img src="'+(i=i.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'" alt="'+t+'"';return c&&n.helper.isString(c)&&(p+=' title="'+(c=c.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),a&&s&&(p+=' width="'+(a="*"===a?"auto":a)+'"',p+=' height="'+(s="*"===s?"auto":s)+'"'),p+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,o)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,n,r,i,a,s,l){return o(e,t,n,r=r.replace(/\s/g,""),i,a,s,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,o)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,o)).replace(/!\[([^\[\]]+)]()()()()()/g,o),e=r.converter._dispatch("images.after",e,t,r)})),n.subParser("italicsAndBold",(function(e,t,n){function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),t.literalMidWordUnderscores?e=(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return r(t,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"<em>","</em>")})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})),e=e.replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}))),t.literalMidWordAsterisks?e=(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<em>","</em>")})):(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})),e=e.replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})),e=e.replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}))),e=n.converter._dispatch("italicsAndBold.after",e,t,n)})),n.subParser("lists",(function(e,t,r){function o(e,o){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(i,(function(e,o,i,s,l,c,u){u=u&&""!==u.trim();var h=n.subParser("outdent")(l,t,r),d="";return c&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',h=h.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return u&&(e+=" checked"),e+=">"}))),h=h.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),o||h.search(/\n{2,}/)>-1?(h=n.subParser("githubCodeBlocks")(h,t,r),h=n.subParser("blockGamut")(h,t,r)):(h=(h=n.subParser("lists")(h,t,r)).replace(/\n$/,""),h=(h=n.subParser("hashHTMLBlocks")(h,t,r)).replace(/\n\n+/g,"\n\n"),h=a?n.subParser("paragraphs")(h,t,r):n.subParser("spanGamut")(h,t,r)),h="<li"+d+">"+(h=h.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),r.gListLevel--,o&&(e=e.replace(/\s+$/,"")),e}function i(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(e,n,r){var a=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?a:s,c="";if(-1!==e.search(l))!function t(u){var h=u.search(l),d=i(e,n);-1!==h?(c+="\n\n<"+n+d+">\n"+o(u.slice(0,h),!!r)+"</"+n+">\n",l="ul"===(n="ul"===n?"ol":"ul")?a:s,t(u.slice(h))):c+="\n\n<"+n+d+">\n"+o(u,!!r)+"</"+n+">\n"}(e);else{var u=i(e,n);c="\n\n<"+n+u+">\n"+o(e,!!r)+"</"+n+">\n"}return c}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){return a(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){return a(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),n.subParser("metadata",(function(e,t,n){if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return r(n),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,o){return t&&(n.metadata.format=t),r(o),"¨M"})),e=e.replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n)})),n.subParser("outdent",(function(e,t,n){return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n)})),n.subParser("paragraphs",(function(e,t,r){for(var o=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),i=[],a=o.length,s=0;s<a;s++){var l=o[s];l.search(/¨(K|G)(\d+)\1/g)>=0?i.push(l):l.search(/\S/)>=0&&(l=(l=n.subParser("spanGamut")(l,t,r)).replace(/^([ \t]*)/g,"<p>"),l+="</p>",i.push(l))}for(a=i.length,s=0;s<a;s++){for(var c="",u=i[s],h=!1;/¨(K|G)(\d+)\1/.test(u);){var d=RegExp.$1,p=RegExp.$2;c=(c="K"===d?r.gHtmlBlocks[p]:h?n.subParser("encodeCode")(r.ghCodeBlocks[p].text,t,r):r.ghCodeBlocks[p].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,c),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)&&(h=!0)}i[s]=u}return e=(e=(e=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),n.subParser("runExtension",(function(e,t,n,r){if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var o=e.regex;o instanceof RegExp||(o=new RegExp(o,"g")),t=t.replace(o,e.replace)}return t})),n.subParser("spanGamut",(function(e,t,r){return e=r.converter._dispatch("spanGamut.before",e,t,r),e=n.subParser("codeSpans")(e,t,r),e=n.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=n.subParser("encodeBackslashEscapes")(e,t,r),e=n.subParser("images")(e,t,r),e=n.subParser("anchors")(e,t,r),e=n.subParser("autoLinks")(e,t,r),e=n.subParser("simplifiedAutoLinks")(e,t,r),e=n.subParser("emoji")(e,t,r),e=n.subParser("underline")(e,t,r),e=n.subParser("italicsAndBold")(e,t,r),e=n.subParser("strikethrough")(e,t,r),e=n.subParser("ellipsis")(e,t,r),e=n.subParser("hashHTMLSpans")(e,t,r),e=n.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),n.subParser("strikethrough",(function(e,t,r){return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,o){return function(e){return t.simplifiedAutoLink&&(e=n.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(o)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),n.subParser("stripLinkDefinitions",(function(e,t,r){var o=function(e,o,i,a,s,l,c){return o=o.toLowerCase(),i.match(/^data:.+?\/.+?;base64,/)?r.gUrls[o]=i.replace(/\s/g,""):r.gUrls[o]=n.subParser("encodeAmpsAndAngles")(i,t,r),l?l+c:(c&&(r.gTitles[o]=c.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&a&&s&&(r.gDimensions[o]={width:a,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,o)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,o)).replace(/¨0/,"")})),n.subParser("tables",(function(e,t,r){if(!t.tables)return e;function o(e,o){return"<td"+o+">"+n.subParser("spanGamut")(e,t,r)+"</td>\n"}function i(e){var i,a=e.split("\n");for(i=0;i<a.length;++i)/^ {0,3}\|/.test(a[i])&&(a[i]=a[i].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(a[i])&&(a[i]=a[i].replace(/\|[ \t]*$/,"")),a[i]=n.subParser("codeSpans")(a[i],t,r);var s,l,c,u,h=a[0].split("|").map((function(e){return e.trim()})),d=a[1].split("|").map((function(e){return e.trim()})),p=[],m=[],f=[],g=[];for(a.shift(),a.shift(),i=0;i<a.length;++i)""!==a[i].trim()&&p.push(a[i].split("|").map((function(e){return e.trim()})));if(h.length<d.length)return e;for(i=0;i<d.length;++i)f.push((s=d[i],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(i=0;i<h.length;++i)n.helper.isUndefined(f[i])&&(f[i]=""),m.push((l=h[i],c=f[i],u=void 0,u="",l=l.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(u=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+u+c+">"+(l=n.subParser("spanGamut")(l,t,r))+"</th>\n"));for(i=0;i<p.length;++i){for(var v=[],y=0;y<m.length;++y)n.helper.isUndefined(p[i][y]),v.push(o(p[i][y],f[y]));g.push(v)}return function(e,t){for(var n="<table>\n<thead>\n<tr>\n",r=e.length,o=0;o<r;++o)n+=e[o];for(n+="</tr>\n</thead>\n<tbody>\n",o=0;o<t.length;++o){n+="<tr>\n";for(var i=0;i<r;++i)n+=t[o][i];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(m,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,n.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,i)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,i),e=r.converter._dispatch("tables.after",e,t,r)})),n.subParser("underline",(function(e,t,r){return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),t.literalMidWordUnderscores?e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))),e=e.replace(/(_)/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),n.subParser("unescapeSpecialChars",(function(e,t,n){return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)})),n.subParser("makeMarkdown.blockquote",(function(e,t){var r="";if(e.hasChildNodes())for(var o=e.childNodes,i=o.length,a=0;a<i;++a){var s=n.subParser("makeMarkdown.node")(o[a],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")})),n.subParser("makeMarkdown.codeBlock",(function(e,t){var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),n.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"})),n.subParser("makeMarkdown.emphasis",(function(e,t){var r="";if(e.hasChildNodes()){r+="*";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="*"}return r})),n.subParser("makeMarkdown.header",(function(e,t,r){var o=new Array(r+1).join("#"),i="";if(e.hasChildNodes()){i=o+" ";for(var a=e.childNodes,s=a.length,l=0;l<s;++l)i+=n.subParser("makeMarkdown.node")(a[l],t)}return i})),n.subParser("makeMarkdown.hr",(function(){return"---"})),n.subParser("makeMarkdown.image",(function(e){var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),n.subParser("makeMarkdown.links",(function(e,t){var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var o=e.childNodes,i=o.length;r="[";for(var a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),n.subParser("makeMarkdown.list",(function(e,t,r){var o="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,a=i.length,s=e.getAttribute("start")||1,l=0;l<a;++l)if(void 0!==i[l].tagName&&"li"===i[l].tagName.toLowerCase()){o+=("ol"===r?s.toString()+". ":"- ")+n.subParser("makeMarkdown.listItem")(i[l],t),++s}return(o+="\n\x3c!-- --\x3e\n").trim()})),n.subParser("makeMarkdown.listItem",(function(e,t){for(var r="",o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),n.subParser("makeMarkdown.node",(function(e,t,r){r=r||!1;var o="";if(3===e.nodeType)return n.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(o=n.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(o=n.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(o=n.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(o=n.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(o=n.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(o=n.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(o=n.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(o=n.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(o=n.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(o=n.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(o=n.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(o=n.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(o=n.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(o=n.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":o=n.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":o=n.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":o=n.subParser("makeMarkdown.strong")(e,t);break;case"del":o=n.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":o=n.subParser("makeMarkdown.links")(e,t);break;case"img":o=n.subParser("makeMarkdown.image")(e,t);break;default:o=e.outerHTML+"\n\n"}return o})),n.subParser("makeMarkdown.paragraph",(function(e,t){var r="";if(e.hasChildNodes())for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);return r=r.trim()})),n.subParser("makeMarkdown.pre",(function(e,t){var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"})),n.subParser("makeMarkdown.strikethrough",(function(e,t){var r="";if(e.hasChildNodes()){r+="~~";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="~~"}return r})),n.subParser("makeMarkdown.strong",(function(e,t){var r="";if(e.hasChildNodes()){r+="**";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="**"}return r})),n.subParser("makeMarkdown.table",(function(e,t){var r,o,i="",a=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(r=0;r<s.length;++r){var c=n.subParser("makeMarkdown.tableCell")(s[r],t),u="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:"}a[0][r]=c.trim(),a[1][r]=u}for(r=0;r<l.length;++r){var h=a.push([])-1,d=l[r].getElementsByTagName("td");for(o=0;o<s.length;++o){var p=" ";void 0!==d[o]&&(p=n.subParser("makeMarkdown.tableCell")(d[o],t)),a[h].push(p)}}var m=3;for(r=0;r<a.length;++r)for(o=0;o<a[r].length;++o){var f=a[r][o].length;f>m&&(m=f)}for(r=0;r<a.length;++r){for(o=0;o<a[r].length;++o)1===r?":"===a[r][o].slice(-1)?a[r][o]=n.helper.padEnd(a[r][o].slice(-1),m-1,"-")+":":a[r][o]=n.helper.padEnd(a[r][o],m,"-"):a[r][o]=n.helper.padEnd(a[r][o],m);i+="| "+a[r].join(" | ")+" |\n"}return i.trim()})),n.subParser("makeMarkdown.tableCell",(function(e,t){var r="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t,!0);return r.trim()})),n.subParser("makeMarkdown.txt",(function(e){var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=n.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));e.exports?e.exports=n:this.showdown=n}).call(jn)}(Ya);var Ka=Ya.exports;const Xa=qa(window);function Ja(){return[{type:"output",filter:function(e){return e.replace(/<a href=/g,'<a target="_blank" href=')}}]}let Za;function Qa(e){return"{math:"+e.toString()+"}"}function es(e){const t=function(e){const t=[];let n=0,r=e;for(;;){const e=r.indexOf("$$",n),o=r.indexOf("\\(",n);if(-1===e&&-1===o)break;let i,a;if(-1!==e&&(-1===o||e<o)?(i=e,a=r.indexOf("$$",i+2)):(i=o,a=r.indexOf("\\)",i+2)),-1===a)break;a+=2;const s=t.length+1,l=Qa(s);let c;t.push({id:s,expression:r.slice(i+2,a-2),inline:-1!==o}),c=-1!==o?l:"\n\n"+l+"\n\n",r=r.slice(0,i)+c+r.slice(a),n=i+c.length}return{mathBlocks:t,content:r}}(e),n=Xa.sanitize(function(e){return Za||(Za=new Ka.Converter({extensions:[Ja],simplifiedAutoLink:!0,literalMidWordUnderscores:!0,strikethrough:!0})),Za.makeHtml(e)}(t.content)),r=function(e,t){return t.reduce(((e,t)=>{let n;try{n=t.inline?Wa.exports.renderToString(t.expression):Wa.exports.renderToString(t.expression,{displayMode:!0})}catch(e){n=Ga(t.expression)}return e.replace(Qa(t.id),n)}),e)}(n,t.mathBlocks);return r}function ts({markdown:e="",textClass:t={},textStyle:n={}}){const r=vr((()=>e?es(e):""),[e]),o=gr(null);mr((()=>{!function(e,{className:t}={}){const n=Array.from(e.getElementsByTagName("a"));for(let e of n){const n=Yi(e);n&&(t?n.className=t:n.style.width="350px")}}(o.current,{className:"MarkdownView__embed"})}),[e]);return Er("div",{className:rr("MarkdownView",t),dir:"auto",lang:"",ref:o,dangerouslySetInnerHTML:{__html:r},style:n})}function ns({annotation:e,tags:t}){const n=mo(),r=n.defaultAuthority(),o=vr((()=>!vo(e.user,r)),[e,r]),i=e=>n.getLink("search.tag",{tag:e});return Er("ul",{className:"TagList","aria-label":"Annotation tags",children:t.map((e=>Er("li",{className:"TagList__item",children:[o&&Er("a",{className:"TagList__link",href:i(e),lang:"",target:"_blank",rel:"noopener noreferrer","aria-label":`Tag: ${e}`,title:`View annotations with tag: ${e}`,children:e}),!o&&Er("span",{className:"TagList__text","aria-label":`Tag: ${e}`,lang:"",children:e})]},e)))})}Xa.addHook("afterSanitizeAttributes",(e=>{"target"in e&&e.setAttribute("target","_blank")}));var rs=ho((function({annotation:e,settings:t}){var n,r;const[o,i]=dr(!0),[a,s]=dr(!1),l=mo().getDraft(e),c=o?"More":"Less",u=null!==(n=null==l?void 0:l.tags)&&void 0!==n?n:e.tags,h=null!==(r=null==l?void 0:l.text)&&void 0!==r?r:e.text,d=h.length>0,p=u.length>0,m=_o(["annotationFontFamily"],t);return Er("div",{className:"AnnotationBody",children:[d&&Er(Ui,{collapse:o,collapsedHeight:400,inlineControls:!1,onCollapsibleChanged:s,onToggleCollapsed:i,overflowThreshold:20,children:Er(ts,{textStyle:m,markdown:h,textClass:{AnnotationBody__text:!0,"is-hidden":Uo(e)}})}),a&&Er("div",{className:"AnnotationBody__collapse-toggle",children:Er(zr,{expanded:!o,onClick:()=>i(!o),title:`Toggle visibility of full annotation text: Show ${c}`,children:c})}),p&&Er(ns,{annotation:e,tags:u})]})}),["settings"]);const os=0,is=1;function as(e,t,n,r){let o=e.selectionStart,i=e.selectionEnd;return o>=t+n?(o+=r.length-n,i+=r.length-n):i<=t||(o<=t&&i>=t+n?i+=r.length-n:o<t&&i<t+n?o=t:o<t+n&&i>t+n?i+=r.length-n:t<o&&t+n>i&&(o=t,i=t+n)),{text:e.text.slice(0,t)+r+e.text.slice(t+n),selectionStart:o,selectionEnd:i}}function ss(e,t=os){const n=e.text.slice(e.selectionStart,e.selectionEnd);let r,o="";if(t===is&&(o="!"),n.match(/[a-z]+:\/\/.*/)){const t="Description";return r=as(e,e.selectionStart,n.length,o+"["+t+"]("+n+")"),r.selectionStart=e.selectionStart+o.length+1,r.selectionEnd=r.selectionStart+t.length,r}{const t=o+"["+n+"](",i="http://insert-your-link-here.com";return r=as(e,e.selectionStart,n.length,t+i+")"),r.selectionStart=e.selectionStart+t.length,r.selectionEnd=r.selectionStart+i.length,r}}function ls(e,t,n,r){void 0===n&&(n=t);const o=e.text.slice(e.selectionStart-t.length,e.selectionStart),i=e.text.slice(e.selectionEnd,e.selectionEnd+t.length);let a=e;return e.selectionStart===e.selectionEnd&&r&&(a=as(e,e.selectionStart,0,r),a.selectionStart=a.selectionEnd-r.length),o===t&&i===n?(a=as(a,a.selectionStart-t.length,t.length,""),a=as(a,a.selectionEnd,n.length,"")):(a=as(a,a.selectionStart,0,t),a=as(a,a.selectionEnd,0,n)),a}function cs(e,t){const n=e.indexOf("\n",t);return n<0?e.length:n}function us(e,t,n,r){let o=function(e,t){const n=e.lastIndexOf("\n",t);return n<0?0:n+1}(e.text,t),i=cs(e.text,t);for(;i<=cs(e.text,n);){const t=i===e.text.length,a=i-o,s=cs((e=r(e,o,i)).text,o)-o;if(n+=s-a,t)break;o=o+s+1,i=cs(e.text,o)}return e}function hs(e,t){const n=e.selectionStart,r=e.selectionEnd;let o=!0;return us(e,n,r,((e,n)=>(e.text.slice(n,n+t.length)!==t&&(o=!1),e))),us(e,n,r,o?(e,n)=>as(e,n,t.length,""):(e,n)=>e.text.slice(n,n+t.length)===t?e:as(e,n,0,t))}const ds={bold:"b",italic:"i",link:"l",quote:"q",image:"g",numlist:"o",list:"u"};function ps({buttonRef:e,disabled:t=!1,iconName:n,label:r,onClick:o,shortcutKey:i,tabIndex:a,title:s=""}){const l=vr((()=>((e=window.navigator.userAgent)=>e.indexOf("Mac OS")>=0)()?"Cmd":"Ctrl"),[]);let c=s;return i&&(c+=` (${l}-${i.toUpperCase()})`),Er("button",{className:rr("MarkdownEditor__toolbar-button",r&&"is-text"),disabled:t,onClick:o,"aria-label":c,title:c,tabIndex:a,ref:e,children:[n&&Er(Cr,{name:n,className:"MarkdownEditor__toolbar-button-icon"}),r]})}function ms({isPreviewing:e,onCommand:t,onTogglePreview:n}){const r=0,o=1,i=2,a=3,s=4,l=5,c=6,u=7,h=8,d=9,p=10,[m,f]=dr(0),g=gr([]).current;if(0===g.length)for(let e=0;e<=p;e++)g.push({current:null});const v=e=>m===e?0:-1;return Er("div",{className:"MarkdownEditor__toolbar",role:"toolbar","aria-label":"Markdown editor toolbar",onKeyDown:t=>{let n=0;const r=p-1;e&&(n=h);let o=null;switch(Hr(t.key)){case"ArrowLeft":o=m<=n?r:m-1;break;case"ArrowRight":o=m>=r?n:m+1;break;case"Home":o=n;break;case"End":o=r}var i;null!==o&&(f(i=o),g[i].current.focus(),t.preventDefault())},children:[Er(ps,{disabled:e,iconName:"format-bold",onClick:()=>t("bold"),shortcutKey:ds.bold,buttonRef:g[r],tabIndex:v(r),title:"Bold"}),Er(ps,{disabled:e,iconName:"format-italic",onClick:()=>t("italic"),shortcutKey:ds.italic,buttonRef:g[o],tabIndex:v(o),title:"Italic"}),Er(ps,{disabled:e,iconName:"format-quote",onClick:()=>t("quote"),shortcutKey:ds.quote,buttonRef:g[i],tabIndex:v(i),title:"Quote"}),Er(ps,{disabled:e,iconName:"link",onClick:()=>t("link"),shortcutKey:ds.link,buttonRef:g[a],tabIndex:v(a),title:"Insert link"}),Er(ps,{disabled:e,iconName:"image",onClick:()=>t("image"),shortcutKey:ds.image,buttonRef:g[s],tabIndex:v(s),title:"Insert image"}),Er(ps,{disabled:e,iconName:"format-functions",onClick:()=>t("math"),buttonRef:g[l],tabIndex:v(l),title:"Insert math (LaTeX is supported)"}),Er(ps,{disabled:e,iconName:"format-list-numbered",onClick:()=>t("numlist"),shortcutKey:ds.numlist,buttonRef:g[c],tabIndex:v(c),title:"Numbered list"}),Er(ps,{disabled:e,iconName:"format-list-unordered",onClick:()=>t("list"),shortcutKey:ds.list,buttonRef:g[u],tabIndex:v(u),title:"Bulleted list"}),Er("span",{className:"hyp-u-stretch"}),Er("div",{className:"MarkdownEditor__toolbar-help-link",children:Er("a",{href:"https://web.hypothes.is/help/formatting-annotations-with-markdown/",target:"_blank",rel:"noopener noreferrer",className:"MarkdownEditor__toolbar-button",ref:g[h],tabIndex:v(h),title:"Formatting help","aria-label":"Formatting help",children:Er(Cr,{name:"help",className:"MarkdownEditor__toolbar-button-icon"})})}),Er(ps,{label:e?"Write":"Preview",onClick:n,buttonRef:g[d],tabIndex:v(d)})]})}function fs({label:e="",onEditText:t=(()=>{}),text:n="",textStyle:r={}}){const[o,i]=dr(!1),a=gr(null);mr((()=>{o||a.current.focus()}),[o]);const s=e=>{const n=a.current;!function(e,t){const n=e=>{const n=e({text:t.value,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd});t.value=n.text,t.selectionStart=n.selectionStart,t.selectionEnd=n.selectionEnd,t.focus()},r=e=>{const t=e.text.slice(0,e.selectionStart);return 0===t.length||"\n"===t.slice(-1)||"$$"===t.slice(-2)?ls(e,"$$","$$","Insert LaTeX"):ls(e,"\\(","\\)","Insert LaTeX")};switch(e){case"bold":n((e=>ls(e,"**","**","Bold")));break;case"italic":n((e=>ls(e,"*","*","Italic")));break;case"quote":n((e=>hs(e,"> ")));break;case"link":n((e=>ss(e)));break;case"image":n((e=>ss(e,is)));break;case"math":n(r);break;case"numlist":n((e=>hs(e,"1. ")));break;case"list":n((e=>hs(e,"* ")));break;default:throw new Error(`Unknown toolbar command "${e}"`)}}(e,n),t({text:n.value})};return Er("div",{className:"MarkdownEditor",children:[Er(ms,{onCommand:s,isPreviewing:o,onTogglePreview:()=>i(!o)}),o?Er(ts,{markdown:n,textClass:{MarkdownEditor__preview:!0},textStyle:r}):Er("textarea",{"aria-label":e,className:"MarkdownEditor__input",dir:"auto",ref:a,onClick:e=>e.stopPropagation(),onKeyDown:e=>{if(e.ctrlKey||e.metaKey)for(let[t,n]of Object.entries(ds))n===Hr(e.key)&&(e.stopPropagation(),e.preventDefault(),s(t))},onInput:e=>{t({text:e.target.value})},value:n,style:r})]})}const gs=e=>e;function vs({activeItem:e=-1,id:t,itemPrefixId:n,list:r,listFormatter:o=gs,onSelectItem:i,open:a=!1}){const s=vr((()=>r.map(((t,r)=>{const a=n?{id:`${n}${r}`}:{};return Er("li",{role:"option","aria-selected":(e===r).toString(),className:rr({"is-selected":e===r},"AutocompleteList__li"),onClick:()=>{i(t)},...a,children:o(t,r)},`AutocompleteList-${r}`)}))),[e,n,r,o,i]),l=t?{id:t}:{},c=0===r.length||!a;return Er("div",{className:rr({"is-hidden":c},"AutocompleteList"),children:Er("ul",{className:"AutocompleteList__items",tabIndex:-1,"aria-label":"Suggestions",role:"listbox",...l,children:s})})}let ys=0;var _s=ho((function({onAddTag:e,onRemoveTag:t,onTagInput:n,tagList:r,tags:o}){const i=gr(null),[a,s]=dr([]),[l,c]=dr(-1),[u,h]=dr(!1),[d]=dr((()=>(++ys,`TagEditor-${ys}`))),p=gr(null);qr(p,u,(()=>{h(!1)}));const m=()=>i.current.value.trim(),f=()=>m()&&m().length>0,g=()=>{i.current.value="",null==n||n("")},v=t=>{e(t)&&(h(!1),c(-1),g(),i.current.focus())},y=e=>{let t=l+e;t<-1?t=a.length-1:t>=a.length&&(t=-1),c(t)},_=l>=0?`${d}-AutocompleteList-item-${l}`:"";return Er("div",{className:"TagEditor",children:[Er("ul",{className:"TagEditor__tags","aria-label":"Suggested tags for annotation",children:r.map((e=>Er("li",{className:"TagEditor__item","aria-label":`Tag: ${e}`,children:[Er("span",{lang:"",className:"TagEditor__edit",children:e}),Er("button",{onClick:()=>{t(e)},"aria-label":`Remove Tag: ${e}`,title:`Remove Tag: ${e}`,className:"TagEditor__delete",children:Er(Cr,{name:"cancel"})})]},`${e}`)))}),Er("span",{id:d,className:"TagEditor__combobox-wrapper",ref:p,role:"combobox","aria-expanded":u.toString(),"aria-owns":`${d}-AutocompleteList`,"aria-haspopup":"listbox",children:[Er("input",{onInput:()=>{null==n||n(m()),(()=>{if(f()){const e=o.filter(m());s(((e,t)=>{const n=[];return e.forEach((e=>{t.indexOf(e)<0&&n.push(e)})),n.sort()})(e,r)),h(e.length>0)}else h(!1);c(-1)})()},onKeyDown:e=>{switch(Hr(e.key)){case"ArrowUp":y(-1),e.preventDefault();break;case"ArrowDown":y(1),e.preventDefault();break;case"Escape":g(),e.preventDefault();break;case"Enter":case",":v(-1===l?m():a[l]),e.preventDefault();break;case"Tab":if(!f())break;-1!==l?v(a[l]):1===a.length?v(a[0]):v(m()),e.preventDefault()}},onFocus:()=>{f()&&h(!0)},ref:i,placeholder:"Add new tags",className:"TagEditor__input",type:"text",autoComplete:"off","aria-autocomplete":"list","aria-activedescendant":_,"aria-controls":`${d}-AutocompleteList`,dir:"auto"}),Er(vs,{id:`${d}-AutocompleteList`,list:a,listFormatter:e=>{const t=m().toLowerCase(),n=e.toLowerCase().indexOf(t);if(-1===n)return Er("span",{children:e});const r=e.slice(0,n),o=e.slice(n,n+t.length),i=e.slice(n+t.length);return Er("span",{children:[Er("strong",{children:r}),o,Er("strong",{children:i})]})},open:u,onSelectItem:e=>{e&&v(e)},itemPrefixId:`${d}-AutocompleteList-item-`,activeItem:l})]})]})}),["tags"]);function bs(){return Er("div",{className:"AnnotationLicense",children:Er("a",{className:"hyp-u-layout-row u-color-text--muted",href:"http://creativecommons.org/publicdomain/zero/1.0/",title:"View more information about the Creative Commons Public Domain dedication",target:"_blank",rel:"noopener noreferrer",children:[Er("div",{className:"AnnotationLicense__icons",children:[Er(Cr,{name:"cc-std",inline:!0,className:"u-icon--xsmall"}),Er(Cr,{name:"cc-zero",inline:!0,className:"u-icon--xsmall"})]}),"Annotations can be freely reused by anyone for any purpose."]})})}function ws(e){return null!==e.offsetParent}function xs({className:e,closeMenu:t,children:n,visible:r}){const o=gr(null);mr((()=>{let e=null;return r&&(e=setTimeout((()=>{const e=o.current.querySelector('[role^="menuitem"]');e&&e.focus()}))),()=>{clearTimeout(e)}}),[r]);return Er("div",{role:"menu",className:e,ref:o,onKeyDown:e=>{const n=Array.from(o.current.querySelectorAll('[role^="menuitem"]')).filter(ws);let r=n.findIndex((e=>e.contains(document.activeElement))),i=!1;switch(Hr(e.key)){case"ArrowLeft":case"Escape":t&&(t(e),i=!0);break;case"ArrowUp":r-=1,r<0&&(r=n.length-1),i=!0;break;case"ArrowDown":r+=1,r===n.length&&(r=0),i=!0;break;case"Home":r=0,i=!0;break;case"End":r=n.length-1,i=!0}i&&r>=0&&(e.stopPropagation(),e.preventDefault(),n[r].focus())},children:n})}function ks({className:e}){return Er("svg",{className:rr("Menu__arrow",e),width:15,height:8,children:Er("path",{d:"M0 8 L7 0 L15 8",stroke:"currentColor",strokeWidth:"2"})})}let Ss=!1;const As=()=>{};function Es({align:e="left",arrowClass:t="",children:n,containerPositioned:r=!0,contentClass:o,defaultOpen:i=!1,label:a,open:s,onOpenChanged:l,menuIndicator:c=!0,title:u}){let[h,p]=dr(i);"boolean"==typeof s&&(h=s,p=l||As);const m=gr(h);mr((()=>{"function"==typeof l&&m.current!==h&&(m.current=h,l(h))}),[h,l]);const f=e=>{if("mousedown"===e.type)Ss=!0;else if("click"===e.type&&Ss)return Ss=!1,e.stopPropagation(),void e.preventDefault();p(!h)},g=yr((()=>p(!1)),[p]),v=gr(null);qr(v,h,g);const y=e=>e.stopPropagation();return Er("div",{className:"Menu",ref:v,style:{position:r?"relative":"static"},onClick:y,onMouseDown:y,children:[Er("button",{"aria-expanded":h?"true":"false","aria-haspopup":!0,className:"Menu__toggle",onMouseDown:f,onClick:f,"aria-label":u,title:u,children:Er("span",{className:"Menu__toggle-wrapper",children:[a,c&&Er("span",{className:rr("Menu__toggle-arrow",h&&"is-open"),children:Er(Cr,{name:"expand-menu",className:"Menu__toggle-icon"})})]})}),h&&Er(d,{children:[Er(ks,{className:t}),Er("div",{className:rr("Menu__content",`Menu__content--align-${e}`,o),role:"menu",tabIndex:-1,onClick:g,onKeyDown:e=>{const t=Hr(e.key);"Enter"!==t&&" "!==t||setTimeout((()=>{g()}))},children:Er(xs,{visible:!0,children:n})})]})]})}function Ts({children:e,visible:t}){const n=gr(null),[r,o]=dr(t?"auto":0),[i,a]=dr(t);mr((()=>{if(t===(0!==r))return;const e=n.current;t?(e.style.display="",a(!0),o(e.scrollHeight)):(e.style.height=`${e.scrollHeight}px`,e.getBoundingClientRect(),o(0))}),[r,t]);return Er("div",{ontransitionend:yr((()=>{t?o("auto"):a(!1)}),[o,t]),ref:n,style:{display:i?"":"none",height:r,overflow:"auto"===r?"visible":"hidden",transition:"height 0.15s ease-in"},children:e})}function Cs({href:e,icon:t,iconAlt:n,isDisabled:r,isExpanded:o,isSelected:i,isSubmenuItem:a,isSubmenuVisible:s,label:l,onClick:c,onToggleSubmenu:u,submenu:h}){const p=t&&-1!==t.indexOf("/"),m=t||a,f=t&&a,g=gr(null);let v=null,y=null;t&&"blank"!==t&&(y=p?Er("img",{className:"MenuItem__icon",alt:n,src:t}):Er(Cr,{name:t,className:"MenuItem__icon"}));const _=a?null:y,b=a?y:null;let w;const x="boolean"==typeof s,k="boolean"==typeof i;mr((()=>()=>{clearTimeout(v)}),[]);const S=e=>{switch(Hr(e.key)){case"ArrowRight":u&&(e.stopPropagation(),e.preventDefault(),u(e));break;case"Enter":case" ":c&&c(e)}};return w=e?Er("a",{ref:g,className:rr("MenuItem",{"is-submenu":a,"is-disabled":r}),href:e,target:"_blank",tabIndex:-1,rel:"noopener noreferrer",role:"menuitem",onKeyDown:S,children:[m&&Er("div",{className:"MenuItem__icon-container",children:_}),Er("span",{className:"MenuItem__label",children:l}),f&&Er("div",{className:"MenuItem__icon-container",children:b})]}):Er("div",{ref:g,className:rr("MenuItem",{"is-submenu":a,"is-disabled":r,"is-expanded":o,"is-selected":i}),tabIndex:-1,onKeyDown:S,onClick:c,role:k?"menuitemradio":"menuitem","aria-checked":k?i:void 0,"aria-haspopup":x,"aria-expanded":x?s:void 0,children:[m&&Er("div",{className:"MenuItem__icon-container",children:_}),Er("span",{className:"MenuItem__label",children:l}),f&&Er("div",{className:"MenuItem__icon-container",children:b}),x&&Er("div",{role:"none",icon:s?"collapse-menu":"expand-menu",className:"MenuItem__toggle",onClick:u,title:`Show actions for ${l}`,children:Er(Cr,{name:s?"collapse-menu":"expand-menu",className:"MenuItem__toggle-icon"})})]}),Er(d,{children:[w,x&&Er(Ts,{visible:s,children:Er(xs,{closeMenu:e=>{u&&u(e),v=setTimeout((()=>{g.current.focus()}))},visible:s,className:"MenuItem__submenu",children:h})})]})}var Ns=ho((function({annotation:e,isDisabled:t,onSave:n,settings:r}){const o=mo(),i=o.getDraft(e),a=o.getGroup(e.group);if(!a)return null;const s=i?i.isPrivate:!Ii(e.permissions),l=s?"Only Me":a.name,c=t=>{o.createDraft(e,{...i,isPrivate:"private"===t}),Do(e)||o.setDefault("annotationPrivacy",t)},u=_o(["ctaTextColor","ctaBackgroundColor"],r),h=Er("div",{className:"annotation-publish-button__menu-label",style:u,children:Er(Cr,{name:"expand-menu",className:"u-icon--small"})});return Er("div",{className:"AnnotationPublishControl",children:[Er("div",{className:"annotation-publish-button",children:[Er(zr,{classes:"PublishControlButton","data-testid":"publish-control-button",style:u,onClick:n,disabled:t,size:"large",variant:"primary",children:["Post to ",l]}),Er("div",{className:"annotation-publish-button__menu-wrapper",style:u,children:Er(Es,{arrowClass:"annotation-publish-button__menu-arrow",containerPositioned:!1,contentClass:"annotation-publish-button__menu-content",label:h,menuIndicator:!1,title:"Change annotation sharing setting",align:"left",children:[Er(Cs,{icon:"open"===a.type?"public":"groups",label:a.name,isSelected:!s,onClick:()=>c("shared")}),Er(Cs,{icon:"lock",label:"Only Me",isSelected:s,onClick:()=>c("private")})]})})]}),Er("div",{children:Er(zr,{icon:"cancel",onClick:()=>{o.removeDraft(e),Bo(e)&&o.removeAnnotations([e])},size:"large",children:"Cancel"})})]})}),["settings"]);var Ms=ho((function({annotation:e,annotationsService:t,settings:n,tags:r,toastMessenger:o}){const[i,a]=dr(null),s=mo(),l=s.getDraft(e),c=s.getGroup(e.group);if(!l)return null;const u=!l.isPrivate&&c&&"private"!==c.type,h=l.tags,d=l.text,p=!d&&!h.length,m=({tags:e})=>{s.createDraft(l.annotation,{...l,tags:e})},f=e=>{if(!e||h.indexOf(e)>=0)return!1;const t=[...h,e];return r.store(t),m({tags:t}),!0},g=async()=>{i&&f(i);try{await t.save(e)}catch(e){o.error("Saving annotation failed")}};return Er("div",{className:"hyp-u-vertical-spacing AnnotationEditor",onKeyDown:e=>{const t=Hr(e.key);p||(e.metaKey||e.ctrlKey)&&"Enter"===t&&(e.stopPropagation(),e.preventDefault(),g())},children:[Er(fs,{textStyle:_o(["annotationFontFamily"],n),label:"Annotation body",text:d,onEditText:({text:e})=>{s.createDraft(l.annotation,{...l,text:e})}}),Er(_s,{onAddTag:f,onRemoveTag:e=>{const t=[...h],n=t.indexOf(e);return n>=0&&(t.splice(n,1),m({tags:t}),!0)},onTagInput:a,tagList:h}),Er("div",{className:"hyp-u-layout-row annotation__form-actions",children:Er(Ns,{annotation:e,isDisabled:p,onSave:g})}),u&&Er(bs,{})]})}),["annotationsService","settings","tags","toastMessenger"]);function Ls(e,t,n){var r;return(n||t)&&null!==(r=e.user_info)&&void 0!==r&&r.display_name?e.user_info.display_name:go(e.user)}function Is({domain:e,link:t,title:n}){return Er("div",{className:"hyp-u-layout-row hyp-u-horizontal-spacing--2",children:[Er("div",{className:"u-color-text--muted",children:['on "',t?Er("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:n}):Er("span",{children:n}),'"']}),e&&Er("span",{className:"u-color-text--muted",children:["(",e,")"]})]})}function zs({annotation:e}){const t=mo().getGroup(e.group),n=null==t?void 0:t.links.html,r=zi(e.permissions);return Er("div",{className:"AnnotationShareInfo hyp-u-layout-row--align-baseline",children:[t&&n&&Er("a",{className:"hyp-u-layout-row--align-baseline u-color-text--muted",href:t.links.html,target:"_blank",rel:"noopener noreferrer",children:["open"===t.type?Er(Cr,{className:"AnnotationShareInfo__icon",name:"public"}):Er(Cr,{className:"AnnotationShareInfo__icon",name:"groups"}),Er("span",{className:"AnnotationShareInfo__group-info",children:t.name})]}),r&&!n&&Er("span",{className:"hyp-u-layout-row--align-baseline u-color-text--muted",children:Er("span",{className:"AnnotationShareInfo__private-info",children:"Only me"})})]})}let Os={};function Ps(e,t){return t-e}function Rs(e,t,n=window.Intl){const r=JSON.stringify(t);let o=Os[r];return o||(o=Os[r]=new n.DateTimeFormat(void 0,t)),o.format(e)}const Ds=[{test:(e,t)=>Ps(e,t)<3e4,formatter:()=>"Just now",nextUpdate:1e3},{test:(e,t)=>Ps(e,t)<6e4,formatter:function(e,t){return`${Math.floor(Ps(e,t)/1e3)} secs ago`},nextUpdate:1e3},{test:(e,t)=>Ps(e,t)<36e5,formatter:function(e,t){const n=Math.floor(Ps(e,t)/6e4);return`${n} min${n>1?"s":""} ago`},nextUpdate:6e4},{test:(e,t)=>Ps(e,t)<864e5,formatter:function(e,t){const n=Math.floor(Ps(e,t)/36e5);return`${n} hr${n>1?"s":""} ago`},nextUpdate:36e5},{test:(e,t)=>e.getFullYear()===t.getFullYear(),formatter:function(e,t,n){return Rs(e,{month:"short",day:"numeric"},n)},nextUpdate:null}],Bs={test:()=>!0,formatter:function(e,t,n){return Rs(e,{day:"numeric",month:"short",year:"numeric"},n)},nextUpdate:null};function Fs(e,t){for(let n of Ds)if(n.test(e,t))return n;return Bs}function js(e){return!isNaN(e.valueOf())}function Hs(e,t){let n;const r=new Date(e),o=()=>{const e=function(e,t){if(!e||!js(e)||!js(t))return null;let n=Fs(e,t).nextUpdate;return null===n?null:(n=Math.max(n,5e3),n=Math.min(n,20736e5),n)}(r,new Date);if(null===e)return;n=setTimeout((()=>{t(),o()}),e+500)};return o(),()=>clearTimeout(n)}function Us(e,t,n){return e?Fs(e,t).formatter(e,t,n):""}function qs(e,t){return Rs(e,{year:"numeric",month:"short",day:"2-digit",weekday:"long",hour:"2-digit",minute:"2-digit"},t)}function $s({annotationCreated:e,annotationUpdated:t,annotationUrl:n,withEditedTimestamp:r}){const[o,i]=dr((()=>new Date)),a=vr((()=>new Date(e)),[e]),s=vr((()=>r&&new Date(t)),[t,r]),l=vr((()=>({absolute:qs(a),relative:Us(a,o)})),[a,o]),c=vr((()=>s?{absolute:qs(s),relative:Us(s,o)}:{}),[s,o]);mr((()=>Hs(s?t:e,(()=>i(new Date)))),[e,t,a,s,o]);const u=c&&c.relative!==l.relative?`edited ${c.relative}`:"edited";return Er("div",{className:"AnnotationTimestamps",children:[r&&Er("span",{className:"AnnotationTimestamps__timestamp AnnotationTimestamps__edited",title:c.absolute,children:["(",u,")"," "]}),n?Er("a",{className:"AnnotationTimestamps__timestamp AnnotationTimestamps__timestamp--linked",target:"_blank",rel:"noopener noreferrer",title:l.absolute,href:n,children:l.relative}):Er("span",{className:"AnnotationTimestamps__timestamp AnnotationTimestamps__created",title:l.absolute,children:l.relative})]})}function Gs({authorLink:e,displayName:t}){return Er("div",e?{className:"AnnotationUser",children:Er("a",{className:"AnnotationUser__link",href:e,target:"_blank",rel:"noopener noreferrer",children:Er("h3",{className:"AnnotationUser__user-name",children:t})})}:{className:"AnnotationUser",children:Er("h3",{className:"AnnotationUser__user-name",children:t})})}var Vs=ho((function({annotation:e,isEditing:t,replyCount:n,threadIsCollapsed:r,settings:o}){var i;const a=mo(),s=a.defaultAuthority(),l=a.isFeatureEnabled("client_display_names"),c=vo(e.user,s),u=Ls(e,c,l),h=(()=>{var t;return c?null!==(t=o.usernameUrl&&`${o.usernameUrl}${go(e.user)}`)&&void 0!==t?t:void 0:a.getLink("user",{user:e.user})})(),d=Do(e)&&r,p=zi(e.permissions),m=(null===(i=e.links)||void 0===i?void 0:i.html)||"",f=!t&&e.created,g=vr((()=>function(e){if(!e.updated||!e.created||e.updated===e.created)return!1;const t=new Date(e.created).getTime(),n=new Date(e.updated).getTime();return!isNaN(t)&&!isNaN(n)&&n-t>2e3}(e)&&!d),[e,d]),v=`${n} ${n>1?"replies":"reply"}`,y=n>0&&d,_=!Do(e),b=function(e){return{domain:Po(e),titleText:Ro(e),titleLink:Oo(e)}}(e),w=m&&b.titleLink?b.titleLink:"",x="sidebar"!==a.route()&&b.titleText;return Er("header",{className:"AnnotationHeader",children:[Er("div",{className:"AnnotationHeader__row hyp-u-horizontal-spacing--2",children:[p&&!t&&Er(Cr,{className:"AnnotationHeader__icon",name:"lock",title:"This annotation is visible only to you"}),Er(Gs,{authorLink:h,displayName:u}),y&&Er(Or,{onClick:()=>a.setExpanded(e.id,!0),title:"Expand replies",children:v}),f&&Er("div",{className:"hyp-u-layout-row--justify-right hyp-u-stretch",children:Er($s,{annotationCreated:e.created,annotationUpdated:e.updated,annotationUrl:m,withEditedTimestamp:g})})]}),_&&Er("div",{className:"AnnotationHeader__row hyp-u-horizontal-spacing--2",children:[Er(zs,{annotation:e}),!t&&qo(e)&&Er("div",{className:"AnnotationHeader__highlight",children:Er(Cr,{name:"highlight",title:"This is a highlight. Click 'edit' to add a note or tag.",inline:!0,className:"AnnotationHeader__highlight-icon"})}),x&&Er(Is,{domain:b.domain,link:w,title:b.titleText})]})]})}),["settings"]);var Ws=ho((function({annotation:e,isFocused:t,settings:n={}}){return Er("div",{className:rr("AnnotationQuote",{"is-orphan":$o(e)}),children:Er(Ui,{collapsedHeight:35,inlineControls:!0,overflowThreshold:20,children:Er("blockquote",{className:rr("AnnotationQuote__quote",{"is-focused":t}),dir:"auto",lang:"",style:_o(["selectionFontFamily"],n),children:Yo(e)})})})}),["settings"]);function Ys({onToggleReplies:e,replyCount:t,threadIsCollapsed:n}){const r=`${n?"Show replies":"Hide replies"} (${t})`;return Er(Or,{onClick:e,title:r,children:r})}var Ks=ho((function({annotation:e,hasAppliedFilter:t,isReply:n,onToggleReplies:r,replyCount:o,threadIsCollapsed:i,annotationsService:a}){const s=n&&i,l=mo(),c=e&&!!Yo(e),u=e&&l.isAnnotationFocused(e.$tag),h=e&&l.isSavingAnnotation(e),p=e&&!!l.getDraft(e)&&!h,m=l.profile().userid,f=!h&&!p,g=!n&&!t&&o>0;return Er("article",{className:rr("Annotation",{"Annotation--missing":!e,"Annotation--reply":n,"is-collapsed":i,"is-focused":u}),children:[e&&Er(d,{children:[Er(Vs,{annotation:e,isEditing:p,replyCount:o,threadIsCollapsed:i}),c&&Er(Ws,{annotation:e,isFocused:u}),!s&&!p&&Er(rs,{annotation:e}),p&&Er(Ms,{annotation:e})]}),!e&&!s&&Er("div",{children:Er("em",{children:"Message not available."})}),!s&&Er("footer",{className:"Annotation__footer",children:Er("div",{className:"hyp-u-layout-row Annotation__controls",children:[g&&Er(Ys,{onToggleReplies:r,replyCount:o,threadIsCollapsed:i}),h&&Er("div",{className:"Annotation__actions",children:"Saving..."}),e&&f&&Er("div",{className:"hyp-u-layout-row--justify-right hyp-u-stretch",children:Er(Fi,{annotation:e,onReply:()=>a.reply(e,m)})})]})})]})}),["annotationsService"]);var Xs=ho((function({annotation:e,api:t,toastMessenger:n}){const r=mo(),o=function(e){return e.moderation?e.moderation.flagCount:null}(e),i=null!==o&&(o>0||e.hidden),a=()=>{const o=e.id;t.annotation.hide({id:o}).then((()=>{r.hideAnnotation(o)})).catch((()=>{n.error("Failed to hide annotation")}))},s=()=>{const o=e.id;t.annotation.unhide({id:o}).then((()=>{r.unhideAnnotation(o)})).catch((()=>{n.error("Failed to unhide annotation")}))},l=(()=>{const t={};return e.hidden?(t.onClick=s,t.title="Make this annotation visible to everyone"):(t.onClick=a,t.title="Hide this annotation from non-moderators"),t["aria-label"]=t.title,t})(),c=rr("ModerationBanner",{"is-flagged":null!==o&&o>0,"is-hidden":e.hidden,"is-reply":Do(e)});return i?Er("div",{className:c,children:[!!o&&!e.hidden&&Er("span",{children:["Flagged for review x",o]}),e.hidden&&Er("span",{children:["Hidden from users. Flagged x",o]}),Er("span",{className:"hyp-u-stretch"}),Er("button",{...l,children:e.hidden?"Unhide":"Hide"})]}):null}),["api","toastMessenger"]);function Js({annotation:e,...t}){const n=mo(),r=e&&n.isSavingAnnotation(e),o=e&&!!n.getDraft(e)&&!r;return e?Er("div",{className:"Thread__top-annotation-header",children:Er(Vs,{annotation:e,isEditing:o,...t})}):null}var Zs=ho((function e({thread:t,threadsService:n}){const r=!t.collapsed,o=ni(t)>0,i=!!t.parent,a=t.collapsed?"collapsed":"expand-menu",s=t.collapsed?"Expand replies":"Collapse replies",l=t.children.filter((e=>ri(e)>0)),c=mo(),u=c.hasAppliedFilter(),h=yr((()=>c.setExpanded(t.id,!!t.collapsed)),[c,t.id,t.collapsed]),p=vr((()=>t.visible&&Er(d,{children:[t.annotation&&Er(Xs,{annotation:t.annotation}),Er(Ks,{annotation:t.annotation,hasAppliedFilter:u,isReply:!!t.parent,onToggleReplies:h,replyCount:t.replyCount,threadIsCollapsed:t.collapsed})]})),[u,h,t.annotation,t.parent,t.replyCount,t.collapsed,t.visible]);return Er("section",{className:rr("Thread",{"Thread--reply":t.depth>0,"is-collapsed":t.collapsed}),children:[i&&Er("div",{className:"Thread__collapse",children:Er("div",{className:"Thread__collapse-button-container",children:Er(Ir,{classes:"NonResponsiveIconButton",expanded:!t.collapsed,icon:a,title:s,onClick:h,size:"medium",variant:"light"})})}),Er("div",{className:"Thread__content",children:[p,o&&Er(d,{children:[!t.parent&&Er(Js,{annotation:t.annotation,replyCount:t.replyCount,threadIsCollapsed:t.collapsed}),Er("div",{className:"Thread__hidden-toggle-button-container",children:Er(zr,{onClick:()=>n.forceVisible(t),children:["Show ",ni(t)," more in conversation"]})})]}),r&&Er("ul",{className:"Thread__children",children:l.map((t=>Er("li",{children:Er(e,{thread:t,threadsService:n})},t.id)))})]})]})}),["threadsService"]);var Qs=ho((function({frameSync:e,thread:t}){const n=mo(),r=t.annotation&&t.annotation.$tag,o=r&&n.isAnnotationFocused(r),i=vr((()=>Si((t=>{const n=t?[t]:[];e.focusAnnotations(n)}),10)),[e]),a=yr((t=>{e.scrollToAnnotation(t)}),[e]),s=vr((()=>Er(Zs,{thread:t})),[t]);return Er("div",{onClick:e=>{var t;(t=e.target).closest("button")||t.closest("a")||a(r)},onMouseEnter:()=>i(r),onMouseLeave:()=>i(null),className:rr("ThreadCard",{"is-focused":o}),children:s},t.id)}),["frameSync"]);function el(){const e=document.querySelector(".js-thread-list-scroll-root");if(!e)throw new Error("Scroll container is missing");return e}function tl(e){return Math.max(e-e%50,0)}function nl({threads:e}){const[t,n]=dr(window.innerHeight),[r,o]=dr(0);fr((()=>{const e=el();n(e.clientHeight),o(tl(e.scrollTop))}),[]);const[i,a]=dr({}),[s,l]=dr(null),c=e,{offscreenLowerHeight:u,offscreenUpperHeight:h,visibleThreads:d}=vr((()=>function(e,t,n,r,o=Ei){const{defaultHeight:i,marginAbove:a,marginBelow:s}=o,l=[];let c=0,u=0,h=0;return e.forEach((e=>{const o=t[e.id]||i;c+o<n-a?u+=o:c<n+r+s?l.push(e):h+=o,c+=o})),{visibleThreads:l,offscreenUpperHeight:u,offscreenLowerHeight:h}}(c,i,r,t)),[c,i,r,t]),p=mo(),m=(()=>{const e=p.unsavedAnnotations().filter((e=>!e.id&&!qo(e)));return e.length?e[e.length-1].$tag:null})();return mr((()=>{m&&(p.setForcedVisible(m,!0),l(m))}),[p,m]),mr((()=>{if(!s)return;const e=c.findIndex((e=>e.id===s));if(-1===e)return;l(null);const t=c.slice(0,e).reduce(((e,t)=>e+(e=>i[e.id]||Ei.defaultHeight)(t)),0);el().scrollTop=t}),[s,c,i]),mr((()=>{const e=new Ai,t=el(),r=Si((()=>{n(t.clientHeight),o(tl(t.scrollTop))}),10,{maxWait:100});return e.add(t,"scroll",r),e.add(window,"resize",r),()=>{e.removeAll(),r.cancel()}}),[]),mr((()=>{a((e=>{const t={};for(let{id:n}of d){const r=document.getElementById(n);if(!r)return console.warn("ThreadList could not measure thread. Element not found."),e;const o=Ti(r);o!==e[n]&&(t[n]=o)}return 0===Object.keys(t).length?e:{...e,...t}}))}),[d]),Er("div",{children:[Er("div",{style:{height:h}}),d.map((e=>Er("div",{className:"ThreadList__card",id:e.id,children:Er(Qs,{thread:e})},e.id))),Er("div",{style:{height:u}})]})}function rl({errorType:e,onLoginRequest:t,showClearSelection:n=!1}){const r=mo(),o=r.isLoggedIn();return Er("div",{className:"u-sidebar-container",children:Er(Yr,{icon:"restricted",title:"annotation"===e?"Annotation unavailable":"Group unavailable",children:[Er("p",{children:o?"group"===e?"The current URL links to a group, but that group cannot be found,\n or you do not have permission to view the annotations in that group.":"The current URL links to an annotation, but that annotation\n cannot be found, or you do not have permission to view it.":`The ${e} associated with the current URL is unavailable.\n You may need to log in to see it.`}),Er("div",{className:"hyp-u-layout-row--justify-right hyp-u-horizontal-spacing",children:[n&&Er(zr,{variant:o?"primary":void 0,onClick:()=>r.clearSelection(),children:"Show all annotations"}),!o&&Er(zr,{variant:"primary",onClick:t,children:"Log in"})]})]})})}var ol=ho((function({loadAnnotationsService:e,onLogin:t}){const n=mo(),r=n.routeParams().id,o=ci(),i=n.profile().userid,[a,s]=dr(!1);return mr((()=>{s(!1),n.clearAnnotations(),e.loadThread(r).then((e=>{const t=e.filter((e=>0===(e.references||[]).length))[0];t&&(e.forEach((e=>n.setExpanded(e.id,!0))),t.id!==r&&n.highlightAnnotations([r]))})).catch((()=>{s(!0)}))}),[r,i,e,n]),Er(d,{children:[a&&Er(rl,{errorType:"annotation",onLoginRequest:t}),Er(nl,{threads:o.children})]})}),["loadAnnotationsService"]);function il({actionButton:e,additionalCount:t=0,entitySingular:n="annotation",entityPlural:r="annotations",filterQuery:o,focusDisplayName:i,resultCount:a}){return Er("div",{className:"FilterStatus",children:Er("div",{className:"hyp-u-layout-row--align-center",children:[Er("div",{className:"FilterStatus__text",children:[a>0&&Er("span",{children:"Showing "}),Er("span",{className:"filter-facet",children:[a>0?a:"No"," ",1===a?n:r]}),o&&Er("span",{children:[" ","for"," ",Er("span",{className:"filter-facet--pre",children:["'",o,"'"]})]}),i&&Er("span",{children:[" ","by ",Er("span",{className:"filter-facet",children:i})]}),t>0&&Er("span",{className:"filter-facet--muted",children:[" ","(and ",t," more)"]})]}),Er("div",{children:e})]})})}function al({filterState:e,rootThread:t}){const n=mo(),r=n.directLinkedAnnotationId(),o=n.annotationCount(),i=(t.children||[]).filter((e=>e.annotation&&e.visible)).length-e.selectedCount,a=!e.focusConfigured&&!r?`Show all (${o})`:"Show all",s=Er(zr,{title:a,variant:"primary",onClick:()=>n.clearSelection(),icon:"cancel",children:a});return Er(il,{resultCount:e.selectedCount,additionalCount:i,actionButton:s})}function sl({filterState:e,rootThread:t}){const n=mo(),r=ri(t)-e.forcedVisibleCount,o=Er(zr,{icon:"cancel",variant:"primary",title:"Clear search",onClick:()=>n.clearSelection(),children:"Clear search"});return Er(il,{actionButton:o,additionalCount:e.forcedVisibleCount,entitySingular:"result",entityPlural:"results",filterQuery:e.filterQuery,focusDisplayName:e.focusDisplayName,resultCount:r})}function ll({filterState:e,rootThread:t}){const n=mo(),r=ri(t)-e.forcedVisibleCount,o={};e.forcedVisibleCount>0?(o.onClick=()=>n.clearSelection(),o.title="Reset filters"):(o.onClick=()=>n.toggleFocusMode(),o.title=e.focusActive?"Show all":`Show only ${e.focusDisplayName}`);const i=e.focusActive?e.focusDisplayName:"",a=Er(zr,{variant:"primary",...o,children:o.title});return Er(il,{resultCount:r,actionButton:a,additionalCount:e.forcedVisibleCount,filterQuery:e.filterQuery,focusDisplayName:i})}function cl(){const e=ci(),t=mo(),n=t.focusState(),r=t.forcedVisibleThreads().length,o=t.filterQuery(),i=t.selectedAnnotations().length,a=vr((()=>({filterQuery:o,focusActive:n.active,focusConfigured:n.configured,focusDisplayName:n.displayName,forcedVisibleCount:r,selectedCount:i})),[n,r,o,i]);return a.selectedCount>0?Er(al,{filterState:a,rootThread:e}):a.filterQuery?Er(sl,{filterState:a,rootThread:e}):a.focusConfigured?Er(ll,{filterState:a,rootThread:e}):null}function ul({onLogin:e}){const t=mo();return Er("div",{className:"LoggedOutMessage",children:[Er("span",{children:["This is a public annotation created with Hypothesis. ",Er("br",{}),"To reply or make your own annotations on this document,"," ",Er("a",{className:"LoggedOutMessage__link",href:t.getLink("signup"),target:"_blank",rel:"noopener noreferrer",children:"create a free account"})," ","or"," ",Er(Or,{classes:"InlineLinkButton InlineLinkButton--underlined",onClick:e,variant:"dark",children:"log in"}),"."]}),Er("div",{className:"LoggedOutMessage__logo",children:Er("a",{href:"https://hypothes.is","aria-label":"Hypothesis homepage",title:"Hypothesis homepage",children:Er(Cr,{name:"logo",className:"LoggedOutMessage__logo-icon"})})})]})}function hl(e,t,n){e.self===e?e.scrollTo(t,n):(e.scrollLeft=t,e.scrollTop=n)}function dl(e){var t=e._scrollSettings;if(t){var n=t.maxSynchronousAlignments,r=function(e,t){var n,r,o,i,a,s,l,c=e.align,u=e.target.getBoundingClientRect(),h=c&&null!=c.left?c.left:.5,d=c&&null!=c.top?c.top:.5,p=c&&null!=c.leftOffset?c.leftOffset:0,m=c&&null!=c.topOffset?c.topOffset:0,f=h,g=d;if(e.isWindow(t))s=Math.min(u.width,t.innerWidth),l=Math.min(u.height,t.innerHeight),r=u.left+t.pageXOffset-t.innerWidth*f+s*f,o=u.top+t.pageYOffset-t.innerHeight*g+l*g,r-=p,o-=m,r=e.align.lockX?t.pageXOffset:r,o=e.align.lockY?t.pageYOffset:o,i=r-t.pageXOffset,a=o-t.pageYOffset;else{s=u.width,l=u.height,n=t.getBoundingClientRect();var v=u.left-(n.left-t.scrollLeft),y=u.top-(n.top-t.scrollTop);r=v+s*f-t.clientWidth*f,o=y+l*g-t.clientHeight*g,r-=p,o-=m,r=Math.max(Math.min(r,t.scrollWidth-t.clientWidth),0),o=Math.max(Math.min(o,t.scrollHeight-t.clientHeight),0),r=e.align.lockX?t.scrollLeft:r,o=e.align.lockY?t.scrollTop:o,i=r-t.scrollLeft,a=o-t.scrollTop}return{x:r,y:o,differenceX:i,differenceY:a}}(t,e),o=Date.now()-t.startTime,i=Math.min(1/t.time*o,1);if(t.endIterations>=n)return hl(e,r.x,r.y),e._scrollSettings=null,t.end("complete");var a=1-t.ease(i);if(hl(e,r.x-r.differenceX*a,r.y-r.differenceY*a),o>=t.time)return t.endIterations++,t.scrollAncestor&&dl(t.scrollAncestor),void dl(e);!function(e){if("requestAnimationFrame"in window)return window.requestAnimationFrame(e);setTimeout(e,16)}(dl.bind(null,e))}}function pl(e){return e.self===e}function ml(e){return"pageXOffset"in e||(e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth)&&"hidden"!==getComputedStyle(e).overflow}function fl(){return!0}function gl(e){if(e.assignedSlot)return gl(e.assignedSlot);if(e.parentElement)return"BODY"===e.parentElement.tagName?e.parentElement.ownerDocument.defaultView||e.parentElement.ownerDocument.ownerWindow:e.parentElement;if(e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t.host}}var vl=function(e,t,n){if(e){"function"==typeof t&&(n=t,t=null),t||(t={}),t.time=isNaN(t.time)?1e3:t.time,t.ease=t.ease||function(e){return 1-Math.pow(1-e,e/2)},t.align=t.align||{};var r=gl(e),o=1,i=t.validTarget||fl,a=t.isScrollable;t.debug&&(console.log("About to scroll to",e),r||console.error("Target did not have a parent, is it mounted in the DOM?"));for(var s=[];r;)if(t.debug&&console.log("Scrolling parent node",r),i(r,o)&&(a?a(r,ml):ml(r))&&(o++,s.push(r)),!(r=gl(r))){l("complete");break}return s.reduce(((n,r,o)=>function(e,t,n,r,o){var i,a=!t._scrollSettings,s=t._scrollSettings,l=Date.now(),c={passive:!0};function u(e){t._scrollSettings=null,t.parentElement&&t.parentElement._scrollSettings&&t.parentElement._scrollSettings.end(e),n.debug&&console.log("Scrolling ended with type",e,"for",t),o(e),i&&(t.removeEventListener("touchstart",i,c),t.removeEventListener("wheel",i,c))}s&&s.end("canceled");var h=n.maxSynchronousAlignments;return null==h&&(h=3),t._scrollSettings={startTime:l,endIterations:0,target:e,time:n.time,ease:n.ease,align:n.align,isWindow:n.isWindow||pl,maxSynchronousAlignments:h,end:u,scrollAncestor:r},"cancellable"in n&&!n.cancellable||(i=u.bind(null,"canceled"),t.addEventListener("touchstart",i,c),t.addEventListener("wheel",i,c)),a&&dl(t),i}(e,r,t,s[o+1],l)),null)}function l(e){--o||n&&n(e)}};function yl({children:e,icon:t="",panelName:n,title:r,onActiveChanged:o}){const i=mo(),a=i.isSidebarPanelOpen(n),s=gr(null),l=gr(a);mr((()=>{l.current!==a&&(l.current=a,a&&vl(s.current),"function"==typeof o&&o(a))}),[a,o]);const c=yr((()=>{i.toggleSidebarPanel(n,!1)}),[i,n]);return Er(Ts,{visible:a,children:Er("div",{ref:s,className:"u-sidebar-container",children:Er(Yr,{title:r,icon:t,onClose:c,children:e})})})}function _l({onLogin:e,onSignUp:t}){return mo().isLoggedIn()?null:Er(yl,{icon:"restricted",title:"Login needed",panelName:"loginPrompt",children:[Er("p",{children:"Please log in to create annotations or highlights."}),Er(Pr,{children:[Er(zr,{title:"Sign up",onClick:t,children:"Sign up"}),Er(zr,{title:"Log in",variant:"primary",onClick:e,children:"Log in"})]})]})}function bl({children:e,count:t,isWaitingToAnchor:n,isSelected:r,label:o,onSelect:i}){const a=()=>{r||i()},s=t>0?`${o} (${t} available)`:o;return Er("div",{children:Er("button",{className:rr("SelectionTabs__type",{"is-selected":r}),onClick:a,onMouseDown:a,role:"tab",tabIndex:0,title:s,"aria-label":s,"aria-selected":r.toString(),children:[e,t>0&&!n&&Er("span",{className:"SelectionTabs__count",children:[" ",t]})]})})}var wl=ho((function({annotationsService:e,isLoading:t,settings:n}){const r=mo(),o=r.selectedTab(),i=r.noteCount(),a=r.annotationCount(),s=r.orphanCount(),l=r.isWaitingToAnchorAnnotations(),c=e=>{r.clearSelection(),r.selectTab(e)},u="annotation"===o&&0===a&&!l,h="note"===o&&0===i;return Er("div",{className:"SelectionTabs-container",children:[Er("div",{className:"SelectionTabs",role:"tablist",children:[Er(bl,{count:a,isWaitingToAnchor:l,isSelected:"annotation"===o,label:"Annotations",onSelect:()=>c("annotation"),children:"Annotations"}),Er(bl,{count:i,isWaitingToAnchor:l,isSelected:"note"===o,label:"Page notes",onSelect:()=>c("note"),children:"Page Notes"}),s>0&&Er(bl,{count:s,isWaitingToAnchor:l,isSelected:"orphan"===o,label:"Orphans",onSelect:()=>c("orphan"),children:"Orphans"})]}),"note"===o&&n.enableExperimentalNewNoteButton&&Er("div",{className:"hyp-u-layout-row--justify-right",children:Er(zr,{icon:"add",onClick:()=>e.createPageNote(),variant:"primary",style:_o(["ctaBackgroundColor"],n),children:"New note"})}),!t&&h&&Er("div",{className:"SelectionTabs__message",children:"There are no page notes in this group."}),!t&&u&&Er("div",{className:"SelectionTabs__message",children:["There are no annotations in this group.",Er("br",{}),"Create one by selecting some text and clicking the"," ",Er(Cr,{name:"annotate",inline:!0,className:"SelectionTabs__icon"})," ","button."]})]})}),["annotationsService","settings"]);var xl=ho((function({frameSync:e,onLogin:t,onSignUp:n,loadAnnotationsService:r,streamer:o}){const i=ci(),a=mo(),s=a.focusedGroupId(),l=a.hasAppliedFilter()||a.hasSelectedAnnotations(),c=a.isLoading(),u=a.isLoggedIn(),h=a.directLinkedAnnotationId(),d=h?a.findAnnotationByID(h):void 0,p=d?ei(d):"annotation",m=a.searchUris(),f=a.hasSidebarOpened(),g=a.profile().userid,v=d&&!1===d.$orphan?d.$tag:null,y=!(c||!h)&&!d,_=a.directLinkedGroupFetchFailed(),b=y||_,w=!b,x=!b&&!l,k=h&&!u&&!y&&!c,S=gr(s);mr((()=>{S.current&&S.current===s||(S.current&&a.clearSelection(),S.current=s),s&&m.length&&r.load({groupId:s,uris:m})}),[a,r,s,g,m]),mr((()=>{v?(e.focusAnnotations([v]),e.scrollToAnnotation(v),a.selectTab(p)):d&&a.selectTab(p)}),[p,e,d,v,a]);const A=a.hasFetchedProfile();return mr((()=>{A&&(f||u)&&o.connect({applyUpdatesImmediately:!1})}),[A,u,f,o]),Er("div",{children:[Er("h2",{className:"u-screen-reader-only",children:"Annotations"}),w&&Er(cl,{}),Er(_l,{onLogin:t,onSignUp:n}),y&&Er(rl,{errorType:"annotation",onLoginRequest:t,showClearSelection:!0}),_&&Er(rl,{errorType:"group",onLoginRequest:t}),x&&Er(wl,{isLoading:c}),Er(nl,{threads:i.children}),k&&Er(ul,{onLogin:t})]})}),["frameSync","loadAnnotationsService","streamer"]);var kl=ho((function({api:e,toastMessenger:t}){const n=mo(),r=n.routeParams().q,o=yr((async t=>{const r={_separate_replies:!0,offset:0,limit:20,...Io(t)};try{n.annotationFetchStarted();const t=await e.search(r);n.addAnnotations([...t.rows,...t.replies])}finally{n.annotationFetchFinished()}}),[e,n]);return mr((()=>{n.setSortKey("Newest"),n.clearAnnotations(),o(r).catch((e=>{t.error(`Unable to fetch annotations: ${e.message}`)}))}),[r,o,n,t]),Er(nl,{threads:ci().children})}),["api","toastMessenger"]);class Sl{constructor(e,t,n=window){var r,o,i;const a="N/A";let s=a;e.userid&&(s=e.userid,e.displayName&&(s=`${e.displayName} (${s})`)),this.version="1.892.0",this.userAgent=n.navigator.userAgent,this.urls=t.map((e=>e.uri)).join(", ")||a,this.fingerprint=null!==(r=null===(o=t[0])||void 0===o||null===(i=o.metadata)||void 0===i?void 0:i.documentFingerprint)&&void 0!==r?r:a,this.account=s,this.timestamp=(new Date).toString()}asFormattedString(){return`Version: ${this.version}\nUser Agent: ${this.userAgent}\nURL: ${this.urls}\nFingerprint: ${this.fingerprint}\nAccount: ${this.account}\nDate: ${this.timestamp}\n`}asEncodedURLString(){return encodeURIComponent(this.asFormattedString())}}function Al(e){const t=D(e);return!(null==t||!t.authority)&&t.authority!==e.authDomain}function El({commandName:e,iconName:t}){return Er("span",{className:"Tutorial__instruction",children:[Er(Cr,{name:t,inline:!0,className:"Tutorial__icon"}),Er("em",{children:e})]})}var Tl=ho((function({settings:e}){const t=!Al(e);return Er("ol",{className:"Tutorial__list",children:[Er("li",{className:"Tutorial__item",children:["To create an annotation, select text and then select the"," ",Er(El,{iconName:"annotate",commandName:"Annotate"})," ","button."]}),Er("li",{className:"Tutorial__item",children:["To create a highlight (",Er("a",{href:"https://web.hypothes.is/help/why-are-highlights-private-by-default/",target:"_blank",rel:"noopener noreferrer",children:"visible only to you"}),"), select text and then select the"," ",Er(El,{iconName:"highlight",commandName:"Highlight"})," ","button."]}),t&&Er("li",{className:"Tutorial__item",children:["To annotate in a private group, select the group from the groups dropdown. Don't see your group? Ask the group creator to send a"," ",Er("a",{href:"https://web.hypothes.is/help/how-to-join-a-private-group/",target:"_blank",rel:"noopener noreferrer",children:"join link"}),")."]}),Er("li",{className:"Tutorial__item",children:["To reply to an annotation, select the"," ",Er(El,{iconName:"reply",commandName:"Reply"})," button."]})]})}),["settings"]);var Cl=ho((function({toastMessenger:e,versionData:t}){return Er("div",{className:"hyp-u-vertical-spacing",children:[Er("dl",{className:"VersionInfo",children:[Er("dt",{className:"VersionInfo__key",children:"Version"}),Er("dd",{className:"VersionInfo__value",children:t.version}),Er("dt",{className:"VersionInfo__key",children:"User Agent"}),Er("dd",{className:"VersionInfo__value",children:t.userAgent}),Er("dt",{className:"VersionInfo__key",children:"URL"}),Er("dd",{className:"VersionInfo__value",children:t.urls}),Er("dt",{className:"VersionInfo__key",children:"Fingerprint"}),Er("dd",{className:"VersionInfo__value",children:t.fingerprint}),Er("dt",{className:"VersionInfo__key",children:"Account"}),Er("dd",{className:"VersionInfo__value",children:t.account}),Er("dt",{className:"VersionInfo__key",children:"Date"}),Er("dd",{className:"VersionInfo__value",children:t.timestamp})]}),Er("div",{className:"hyp-u-layout-row--justify-center",children:Er(zr,{onClick:()=>{try{Oi(t.asFormattedString()),e.success("Copied version info to clipboard")}catch(t){e.error("Unable to copy version info")}},icon:"copy",children:"Copy version details"})})]})}),["toastMessenger"]);function Nl({linkText:e,url:t}){return Er("div",{className:"HelpPanel-tabs__tab",children:Er("a",{href:t,className:"HelpPanel-tabs__link",target:"_blank",rel:"noopener noreferrer",children:[e," ",Er(Cr,{name:"external",className:"HelpPanel-tabs__icon",inline:!0})]})})}var Ml=ho((function({auth:e,session:t}){const n=mo(),r=n.frames(),o=n.mainFrame(),i=!!n.profile().preferences.show_sidebar_tutorial,[a,s]=dr("tutorial"),l=vr((()=>{const t=e||{status:"logged-out"},n=[...r].sort(((e,t)=>e===o?-1:t===o?1:0));return new Sl(t,n)}),[e,r,o]),c=`https://web.hypothes.is/get-help/?sys_info=${l.asEncodedURLString()}`,u=(e,t)=>{e.preventDefault(),s(t)};return Er(yl,{title:"Help",panelName:"help",onActiveChanged:yr((e=>{!e&&i&&t.dismissSidebarTutorial()}),[t,i]),children:Er("div",{className:"hyp-u-vertical-spacing HelpPanel__content",children:[Er("div",{className:"hyp-u-layout-row--align-center",children:[Er("h3",{className:"HelpPanel__sub-panel-title",children:{tutorial:"Getting started",versionInfo:"About this version"}[a]}),Er("div",{children:["versionInfo"===a&&Er("button",{className:"HelpPanel__sub-panel-navigation-button",onClick:e=>u(e,"tutorial"),"aria-label":"Show tutorial panel",children:["Getting started",Er(Cr,{name:"arrow-right",className:"HelpPanel__sub-panel-link-icon"})]}),"tutorial"===a&&Er("button",{className:"HelpPanel__sub-panel-navigation-button",onClick:e=>u(e,"versionInfo"),"aria-label":"Show version information panel",children:["About this version",Er(Cr,{name:"arrow-right"})]})]})]}),Er("div",{className:"HelpPanel__subcontent",children:["tutorial"===a&&Er(Tl,{}),"versionInfo"===a&&Er(Cl,{versionData:l})]}),Er("div",{className:"HelpPanel-tabs",children:[Er(Nl,{linkText:"Help topics",url:"https://web.hypothes.is/help/"}),Er(Nl,{linkText:"New support ticket",url:c})]})]})})}),["session"]),Ll={exports:{}};function Il(){}Il.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},Ll.exports=Il;var zl=Ll.exports.TinyEmitter=Il;class Ol extends Error{constructor(e){super(`Results size exceeds ${e}`)}}function Pl(e){return 0===e?50:200}class Rl extends zl{constructor(e,{getPageSize:t=Pl,separateReplies:n=!0,incremental:r=!0,maxResults:o=null,sortBy:i="created",sortOrder:a="asc"}={}){super(),this._searchFn=e,this._getPageSize=t,this._separateReplies=n,this._incremental=r,this._maxResults=o,this._sortBy=i,this._sortOrder=a,this._canceled=!1,this._results=[],this._resultCount=null}async _getPage(e,t,n=0){const r=this._getPageSize(n),o={limit:r,sort:this._sortBy,order:this._sortOrder,_separate_replies:this._separateReplies,...e};t&&(o.search_after=t);try{const t=await this._searchFn(o);if(this._canceled)return;if(null===this._resultCount&&(this._resultCount=t.total,this.emit("resultCount",this._resultCount)),this._maxResults&&t.total>this._maxResults)return this.emit("error",new Ol(this._maxResults)),void this.emit("end");const i=t.rows.concat(t.replies||[]);this._incremental?this.emit("results",i):this._results=this._results.concat(i);const a=i.length===r,s=i.length>0?i[i.length-1][this._sortBy]:null;a&&s?this._getPage(e,s,n+1):(this._incremental||this.emit("results",this._results),this.emit("end"))}catch(e){if(this._canceled)return;this.emit("error",e),this.emit("end")}}get(e){this._results=[],this._resultCount=null,this._getPage(e)}cancel(){this._canceled=!0,this.emit("end")}}function Dl({defaultOption:e,icon:t,onSelect:n,options:r,selectedOption:o,title:i}){const a=[e,...r],s=null!=o?o:e,l=Er("span",{className:"FilterSelect__menu-label",children:[t&&Er(Cr,{name:t,className:"FilterSelect__menu-icon"}),s.display]});return Er(Es,{label:l,title:i,contentClass:"FilterSelect__menu",children:a.map((e=>Er(Cs,{onClick:()=>n(e),isSelected:e.value===s.value,label:e.display},e.value)))})}function Bl(){const e=mo(),t=e.getFilter("user"),n=function(){const e=mo(),t=e.allAnnotations(),n=e.defaultAuthority(),r=e.isFeatureEnabled("client_display_names"),o=e.getFocusFilters(),i=go(e.profile().userid);return vr((()=>{const e={};if(t.forEach((t=>{const o=go(t.user);e[o]=Ls(t,vo(t.user,n),r)})),o.user){const t=go(o.user.value)||o.user.value;e[t]=o.user.display}const a=Object.keys(e).map((t=>({display:t===i?`${e[t]} (Me)`:e[t],value:t})));return a.sort(((e,t)=>i===e.value?-1:i===t.value?1:e.display.localeCompare(t.display))),a}),[t,i,n,r,o.user])}();return Er(Dl,{defaultOption:{value:"",display:"Everybody"},icon:"profile",onSelect:t=>e.setFilter("user",t),options:n,selectedOption:t,title:"Filter by user"})}function Fl({forcedVisibleCount:e,isFiltered:t,isLoading:n,resultCount:r}){const o=ci(),i=n?r:ri(o),a=o.children.length>0,s=t&&e>0,l=i-e,c=o.children.length;return Er("div",{className:"hyp-u-layout-row NotebookResultCount",children:[n&&Er(Kr,{size:"small"}),!n&&Er("h2",{children:[!a&&Er("strong",{children:"No results"}),a&&t&&Er("strong",{children:[l," ",1===l?"result":"results"]}),a&&!t&&Er("strong",{children:[c," ",1===c?"thread":"threads"]})]}),s&&Er("h3",{children:["(and ",e," more)"]}),!t&&a&&Er("h3",{children:["(",i," ",1===i?"annotation":"annotations",")"]})]})}function jl({currentPage:e,onChangePage:t,totalPages:n}){const r=e<n,o=e>1,i=function(e,t,n=5){if(t<=1)return[];const r=new Set([1,e,t]);let o=1;for(;r.size<Math.min(t,n);)e+o<=t&&r.add(e+o),e-o>=1&&r.add(e-o),++o;const i=[];return[...r].sort(((e,t)=>e-t)).forEach(((e,t,n)=>{t>0&&e-n[t-1]>1&&i.push(null),i.push(e)})),i}(e,n),a=(e,n)=>{t(e),null==n||n.blur()};return Er("div",{className:"PaginationNavigation",children:[Er("div",{className:"PaginationNavigation__relative PaginationNavigation__prev",children:o&&Er(zr,{classes:"PaginationPageButton",icon:"arrow-left",title:"Go to previous page",onClick:t=>a(e-1,t.target),variant:"dark",children:"prev"})}),Er("ul",{className:"PaginationNavigation__pages",children:i.map(((t,n)=>Er("li",{children:null===t?Er("div",{className:"PaginationNavigation__gap",children:"..."}):Er(zr,{classes:"PaginationPageButton",title:`Go to page ${t}`,pressed:t===e,onClick:e=>a(t,e.target),variant:"dark",children:t.toString()},`page-${n}`)},n)))}),Er("div",{className:"PaginationNavigation__relative PaginationNavigation__next",children:r&&Er(zr,{classes:"PaginationPageButton",icon:"arrow-right",iconPosition:"right",title:"Go to next page",onClick:t=>a(e+1,t.target),variant:"dark",children:"next"})})]})}function Hl({currentPage:e,isLoading:t,onChangePage:n,threads:r,pageSize:o=25}){const{paginatedThreads:i,totalPages:a}=vr((()=>{const t=r.filter((e=>ri(e)>0)),n=(e-1)*o,i=n+o,a=Math.ceil(t.length/o);return{paginatedThreads:t.slice(n,i),totalPages:a}}),[r,e,o]);return Er(d,{children:[Er(nl,{threads:i}),!t&&Er(jl,{currentPage:e,onChangePage:n,totalPages:a})]})}var Ul=ho((function({loadAnnotationsService:e,streamer:t}){var n;const r=mo(),o=r.getFilterValues(),i=r.focusedGroup(),a=r.forcedVisibleThreads().length,s=r.hasAppliedFilter(),l=r.isLoading(),c=r.annotationResultCount(),u=r.pendingUpdateCount(),h=ci(),d=null!==(n=null==i?void 0:i.name)&&void 0!==n?n:"…",p=(null==i?void 0:i.id)||r.directLinkedGroupId(),m=gr(1),[f,g]=dr(1),[v,y]=dr(!1),_=e=>{e instanceof Ol&&y(!0)},b=r.hasFetchedProfile();mr((()=>{b&&t.connect({applyUpdatesImmediately:!1})}),[b,t]),mr((()=>{r.setSortKey("Newest"),p&&e.load({groupId:p,sortBy:"updated",sortOrder:"desc",maxResults:5e3,onError:_,streamFilterBy:"group"})}),[e,p,r]);const w=e=>{g(e)};mr((()=>{w(1)}),[o,i]);const x=gr(null);fr((()=>{f!==m.current&&(vl(x.current),m.current=f)}),[f]);const k=`Show ${u} new or updated ${u>1?"annotations":"annotation"}`;return Er("div",{className:"NotebookView",children:[Er("header",{className:"NotebookView__heading",ref:x,children:Er("h1",{className:"NotebookView__group-name",children:d})}),Er("div",{className:"NotebookView__filters",children:Er(Bl,{})}),Er("div",{className:"NotebookView__results hyp-u-layout-row--align-center u-font--large",children:[u>0&&!s&&Er(Ir,{icon:"refresh",onClick:()=>t.applyPendingUpdates(),variant:"primary",title:k}),Er(Fl,{forcedVisibleCount:a,isFiltered:s,isLoading:l,resultCount:c})]}),Er("div",{className:"NotebookView__items",children:[v&&Er("div",{className:"NotebookView__messages",children:Er(Yr,{title:"Too many results to show",children:["This preview of the Notebook can show"," ",Er("strong",{children:["up to ",5e3," results"]})," at a time (there are"," ",c," to show here)."," ",Er("a",{href:"mailto:support@hypothes.is?subject=Hypothesis%20Notebook&body=Please%20notify%20me%20when%20the%20Hypothesis%20Notebook%20is%20updated%20to%20support%20more%20than%205000%20annotations",children:"Contact us"})," ","if you would like to be notified when support for more annotations is available."]})}),Er(Hl,{currentPage:f,isLoading:l,onChangePage:w,threads:h.children})]})]})}),["loadAnnotationsService","streamer"]);var ql=ho((function({toastMessenger:e}){const t=mo(),n=t.mainFrame(),r=t.focusedGroup(),o=`Share Annotations in ${r&&r.name||"..."}`,i=r&&n,a=i&&(s=n.uri,l=r.id,Ci(s)?`https://hyp.is/go?url=${encodeURIComponent(s)}&group=${l}`:null);var s,l;return Er(yl,{title:o,panelName:"shareGroupAnnotations",children:[!i&&Er("div",{className:"hyp-u-layout-row--center",children:Er(Kr,{})}),i&&Er("div",{className:"ShareAnnotationsPanel",children:a?Er(d,{children:[Er("div",{className:"ShareAnnotationsPanel__intro",children:"private"===r.type?Er("p",{children:"Use this link to share these annotations with other group members:"}):Er("p",{children:"Use this link to share these annotations with anyone:"})}),Er("div",{className:"hyp-u-layout-row",children:Er(Zr,{children:[Er(Jr,{"aria-label":"Use this URL to share these annotations",type:"text",value:a,readOnly:!0}),Er(Ir,{icon:"copy",onClick:()=>{try{Oi(a),e.success("Copied share link to clipboard")}catch(t){e.error("Unable to copy link")}},title:"Copy share link",variant:"dark"})]})}),Er("p",{children:["private"===r.type?Er("span",{children:["Annotations in the private group"," ",Er("em",{children:r.name})," are only visible to group members."]}):Er("span",{children:["Anyone using this link may view the annotations in the group"," ",Er("em",{children:r.name}),"."]})," ",Er("span",{children:["Private (",Er(Cr,{name:"lock",inline:!0,className:"u-icon--inline"})," ",Er("em",{children:"Only Me"}),") annotations are only visible to you."]})]}),Er(Ri,{shareURI:a})]}):Er("p",{children:"These annotations cannot be shared because this document is not available on the web."})})]})}),["toastMessenger"]);function $l({message:e,onDismiss:t}){const n=e.type.charAt(0).toUpperCase()+e.type.slice(1),r="notice"===e.type?"cancel":e.type;return Er("li",{className:rr("toast-message-container",{"is-dismissed":e.isDismissed}),onClick:()=>t(e.id),children:Er("div",{className:rr("toast-message",`toast-message--${e.type}`),children:[Er("div",{className:"toast-message__type",children:Er(Cr,{name:r,className:"toast-message__icon"})}),Er("div",{className:"toast-message__message",children:[Er("strong",{children:[n,": "]}),e.message,e.moreInfoURL&&Er("div",{className:"toast-message__link",children:Er("a",{href:e.moreInfoURL,onClick:e=>e.stopPropagation(),target:"_new",children:"More info"})})]})]})})}var Gl=ho((function({toastMessenger:e}){return Er("div",{children:Er("ul",{"aria-live":"polite","aria-relevant":"additions",className:"ToastMessages",children:mo().getToastMessages().map((t=>Er($l,{message:t,onDismiss:t=>e.dismiss(t)},t.id)))})})}),["toastMessenger"]);function Vl(e){return e.organization&&e.organization.name}function Wl(e){const t={};return e.forEach((e=>{if("object"!=typeof e.organization)return;const n="__default__"===(r=e.organization).id?"__default__":`${r.name.toLowerCase()}${r.id}`;var r;void 0===t[n]&&(t[n]=Object.assign({},e.organization),t[n].groups=[]),function(e,t){const n=Object.assign({},e),r=t.groups;!r.length&&e.organization.logo&&(n.logo=e.organization.logo),r.push(n)}(e,t[n])})),t}function Yl(e){const t=Wl(e),n=[],r=[];return Object.keys(t).sort().forEach((e=>{"__default__"===e?n.push(...t[e].groups):r.push(...t[e].groups)})),n.length&&r.push(...n),r}function Kl({heading:e,children:t}){return Er(d,{children:[e&&Er("h2",{className:"MenuSection__heading",children:e}),Er("ul",{className:"MenuSection__content",children:b(t).map((e=>Er("li",{children:e},e.key)))})]})}var Xl=ho((function({isExpanded:e,group:t,groups:n,onExpand:r,toastMessenger:o}){const i=t.links.html,a=i||t.canLeave,s=t.scopes&&!t.scopes.enforced||t.isScopedToUri,l=mo(),c=l.focusedGroupId(),u=t.id===c,h=t=>{t.stopPropagation(),t.preventDefault(),r(!e)},p="private"===t.type?"Copy invite link":"Copy activity link";return Er(Cs,{icon:t.logo||"blank",iconAlt:Vl(t),isDisabled:!s,isExpanded:!!a&&e,isSelected:u,isSubmenuVisible:a?e:void 0,label:t.name,onClick:s?()=>{l.clearDirectLinkedGroupFetchFailed(),l.clearDirectLinkedIds(),n.focus(t.id)}:h,onToggleSubmenu:h,submenu:Er(d,{children:[Er("ul",{children:[i&&Er("li",{children:Er(Cs,{href:i,icon:"external",isSubmenuItem:!0,label:"View group activity"})}),i&&Er("li",{children:Er(Cs,{onClick:()=>(e=>{try{Oi(e),o.success(`Copied link for "${t.name}"`)}catch(e){o.error("Unable to copy link")}})(i),icon:"copy",isSubmenuItem:!0,label:p})}),t.canLeave&&Er("li",{children:Er(Cs,{icon:"leave",isSubmenuItem:!0,label:"Leave group",onClick:async()=>{const e=`Are you sure you want to leave the group "${t.name}"?`;await co({title:"Leave group?",message:e,confirmAction:"Leave"})&&n.leave(t.id)}})})]}),!s&&Er("p",{className:"GroupListItem__footer",children:"This group is restricted to specific URLs."})]})})}),["groups","toastMessenger"]);function Jl({expandedGroup:e,onExpandGroup:t,groups:n,heading:r}){return Er(Kl,{heading:r,children:n.map((n=>Er(Xl,{isExpanded:n===e,onExpand:e=>t(e?n:null),group:n},n.id)))})}var Zl=ho((function({settings:e}){const t=mo(),n=t.getCurrentlyViewingGroups(),r=t.getFeaturedGroups(),o=t.getMyGroups(),i=t.focusedGroup(),a=t.profile().userid,s=vr((()=>Yl(o)),[o]),l=vr((()=>Yl(r)),[r]),c=vr((()=>Yl(n)),[n]),u=t.defaultAuthority(),h=a&&!vo(a,u),d=t.getLink("groups.new"),[p,m]=dr(null);let f;if(i){const t=i.organization.logo||function(e){const t=D(e);return t&&t.icon?t.icon:null}(e)||"",n=Vl(i)?Vl(i):"";f=Er("span",{className:"GroupList__menu-label",children:[t&&Er("img",{className:"GroupList__menu-icon",src:t,alt:n}),i.name]})}else f=Er("span",{children:"…"});return!!Al(e)&&n.length+r.length+o.length<2?f:Er(Es,{align:"left",contentClass:"GroupList__content",label:f,onOpenChanged:()=>m(null),title:i?`Select group (now viewing: ${i.name})`:"Select group",children:[c.length>0&&Er(Jl,{expandedGroup:p,onExpandGroup:m,heading:"Currently Viewing",groups:c}),l.length>0&&Er(Jl,{expandedGroup:p,onExpandGroup:m,heading:"Featured Groups",groups:l}),s.length>0&&Er(Jl,{expandedGroup:p,onExpandGroup:m,heading:"My Groups",groups:s}),h&&Er(Cs,{icon:"add",href:d,label:"New private group"})]})}),["settings"]);function Ql({alwaysExpanded:e,query:t,onSearch:n}){const r=mo().isLoading(),o=gr(null),[i,a]=dr(t),[s,l]=dr(t);return t!==i&&(l(t),a(t)),Er("form",{action:"#",className:"SearchInput__form",name:"searchForm",onSubmit:e=>{e.preventDefault(),(o.current.value||i)&&n(o.current.value)},children:[Er("input",{"aria-label":"Search",className:rr("SearchInput__input",{"is-expanded":e||t}),dir:"auto",type:"text",name:"query",placeholder:r?"Loading…":"Search…",disabled:r,ref:o,value:s||"",onInput:e=>l(e.target.value)}),!r&&Er("div",{className:"SearchInput__button-container",children:Er(Ir,{icon:"search",onClick:()=>o.current.focus(),size:"small",title:"Search annotations"})}),r&&Er("div",{style:"margin:0.5em 0",children:Er(Kr,{size:"small"})})]})}function ec(){const e=mo(),t=e.sortKey(),n=e.sortKeys().map((n=>Er(Cs,{label:n,onClick:()=>e.setSortKey(n),isSelected:n===t},n))),r=Er("span",{className:"TopBar__menu-label",children:Er(Cr,{name:"sort",className:"TopBar__menu-icon"})});return Er("div",{className:"SortMenu",children:Er(Es,{label:r,title:`Sort by ${t}`,align:"right",menuIndicator:!1,children:n})})}var tc=ho((function({router:e}){return Er(Ql,{query:mo().routeParams().q,onSearch:t=>{e.navigate("stream",{q:t})},alwaysExpanded:!0})}),["router"]);var nc=ho((function({auth:e,frameSync:t,onLogout:n,settings:r}){const o=mo(),i=o.defaultAuthority(),a=vo(e.userid,i),s=D(r),l=o.isFeatureEnabled("notebook_launch"),[c,u]=dr(!1),h=e=>s&&!!s[e],d=!a||h("onProfileRequestProvided"),p=!a||h("onLogoutRequestProvided"),m=()=>{t.notifyHost("openNotebook",o.focusedGroupId())},f=()=>a&&t.notifyHost(ao),g=(()=>{const t={};return d&&(a||(t.href=o.getLink("user",{user:e.username})),t.onClick=f),t})(),v=Er("span",{className:"TopBar__menu-label",children:Er(Cr,{name:"profile",className:"TopBar__menu-icon"})});return Er("div",{className:"UserMenu",onKeyDown:e=>{"n"===e.key&&(m(),u(!1))},children:Er(Es,{label:v,title:e.displayName,align:"right",open:c,onOpenChanged:u,children:[Er(Kl,{children:[Er(Cs,{label:e.displayName,isDisabled:!d,...g}),!a&&Er(Cs,{label:"Account settings",href:o.getLink("account.settings")}),l&&Er(Cs,{label:"Open notebook",onClick:()=>m()})]}),p&&Er(Kl,{children:Er(Cs,{label:"Log out",onClick:n})})]})})}),["frameSync","settings"]);var rc=ho((function({auth:e,frameSync:t,isSidebar:n,onLogin:r,onLogout:o,onSignUp:i,settings:a,streamer:s}){const l=!Al(a),c=_o(["accentColor"],a),u=mo(),h=u.filterQuery(),p=u.pendingUpdateCount(),m=u.isSidebarPanelOpen("help"),f=u.isSidebarPanelOpen("shareGroupAnnotations"),g=()=>{const e=D(a);e&&e.onHelpRequestProvided?t.notifyHost(ro):u.toggleSidebarPanel("help")},v=Er(d,{children:["unknown"===e.status&&Er("span",{className:"TopBar__login-links",children:"⋯"}),"logged-out"===e.status&&Er("span",{className:"TopBar__login-links u-font--large hyp-u-horizontal-spacing--2",children:[Er(Or,{classes:"InlineLinkButton",onClick:i,style:c,variant:"primary",children:"Sign up"}),Er("div",{children:"/"}),Er(Or,{classes:"InlineLinkButton",onClick:r,style:c,variant:"primary",children:"Log in"})]}),"logged-in"===e.status&&Er(nc,{auth:e,onLogout:o})]});return Er("div",{className:"TopBar",children:[!n&&Er("div",{className:"TopBar__inner content",children:[Er(tc,{}),Er("div",{className:"hyp-u-stretch"}),Er(Ir,{icon:"help",expanded:m,onClick:g,size:"small",title:"Help"}),v]}),n&&Er("div",{className:"TopBar__inner content",children:[Er(Zl,{}),Er("div",{className:"hyp-u-stretch"}),p>0&&Er(Ir,{icon:"refresh",onClick:()=>s.applyPendingUpdates(),size:"small",variant:"primary",title:`Show ${p} new/updated ${1===p?"annotation":"annotations"}`}),Er(Ql,{query:h||null,onSearch:u.setFilterQuery}),Er(ec,{}),l&&Er(Ir,{icon:"share",expanded:f,onClick:()=>{u.toggleSidebarPanel("shareGroupAnnotations")},size:"small",title:"Share annotations on this page"}),Er(Ir,{icon:"help",expanded:m,onClick:g,size:"small",title:"Help"}),v]})]})}),["frameSync","settings","streamer"]);var oc=ho((function({auth:e,frameSync:t,settings:n,session:r,toastMessenger:o}){const i=mo(),a=i.hasFetchedProfile(),s=i.profile(),l=i.route(),c=vr((()=>a?function(e){const t=fo(e.userid);if(t&&e.userid){let n=t.username;return e.user_info&&e.user_info.display_name&&(n=e.user_info.display_name),{status:"logged-in",displayName:n,userid:e.userid,username:t.username}}return{status:"logged-out"}}(s):{status:"unknown"}),[a,s]),u=vr((()=>_o(["appBackgroundColor"],n)),[n]),h="clean"===n.theme,d="sidebar"===l;mr((()=>{(function(e,t,n){const r="object"==typeof t.preferences&&!!t.preferences.show_sidebar_tutorial,o=D(n)||{onHelpRequestProvided:!1};return e&&!o.onHelpRequestProvided&&r})(d,s,n)&&i.openSidebarPanel("help")}),[d,s,n,i]);const p=async()=>{if(D(n))t.notifyHost(oo);else try{await e.login(),i.closeSidebarPanel("loginPrompt"),i.clearGroups(),r.reload()}catch(e){o.error(e.message)}},m=()=>{D(n)?t.notifyHost(lo):window.open(i.getLink("signup"))};return Er("div",{className:rr("HypothesisApp","js-thread-list-scroll-root",{"theme-clean":h,"HypothesisApp--notebook":"notebook"===l}),style:u,children:["notebook"!==l&&Er(rc,{auth:c,onLogin:p,onSignUp:m,onLogout:async()=>{await(async()=>{const e=i.countDrafts();if(0===e)return!0;let t="";return 1===e?t="You have an unsaved annotation.\nDo you really want to discard this draft?":e>1&&(t="You have "+e+" unsaved annotations.\nDo you really want to discard these drafts?"),co({title:"Discard drafts?",message:t,confirmAction:"Discard"})})()&&(i.clearGroups(),i.removeAnnotations(i.unsavedAnnotations()),i.discardAllDrafts(),D(n)?t.notifyHost(io):r.logout())},isSidebar:d}),Er("div",{className:"HypothesisApp__content",children:[Er(Gl,{}),Er(Ml,{auth:"logged-in"===c.status?c:{}}),Er(ql,{}),l&&Er("main",{children:["annotation"===l&&Er(ol,{onLogin:p}),"notebook"===l&&Er(Ul,{}),"stream"===l&&Er(kl,{}),"sidebar"===l&&Er(xl,{onLogin:p,onSignUp:m})]})]})]})}),["auth","frameSync","session","settings","toastMessenger"]);function ic({error:e}){return Er("div",{className:"LaunchErrorPanel",children:Er(Yr,{title:"Unable to start Hypothesis",children:e.message})})}class ac{constructor(e,t){this._api=e,this._store=t}_applyDraftChanges(e){const t={},n=this._store.getDraft(e);return n&&(t.tags=n.tags,t.text=n.text,t.permissions=n.isPrivate?Ni(e.user):Mi(e.user,e.group)),{...e,...t}}_initialize(e,t=new Date){const n=this._store.getDefault("annotationPrivacy"),r=this._store.focusedGroupId(),o=this._store.profile();if(!r)throw new Error("Cannot create annotation without a group");const i=o.userid,a=o.user_info,s=$(8),l=Object.assign({created:t.toISOString(),group:r,permissions:Li(i,r,n),tags:[],text:"",updated:t.toISOString(),user:i,user_info:a,$tag:s,hidden:!1,links:{}},e);return qo(l)&&(l.permissions=Ni(i)),l}create(e,t=new Date){const n=this._initialize(e,t);this._store.addAnnotations([n]),this._store.deleteNewAndEmptyDrafts(),qo(n)||this._store.createDraft(n,{tags:n.tags,text:n.text,isPrivate:!Fo(n)}),Go(n)?this._store.selectTab("note"):Vo(n)&&this._store.selectTab("annotation"),(n.references||[]).forEach((e=>{this._store.setExpanded(e,!0)}))}createPageNote(){const e=this._store.mainFrame();if(!this._store.isLoggedIn())return void this._store.openSidebarPanel("loginPrompt");if(!e)return;const t={target:[],uri:e.uri};this.create(t)}async delete(e){await this._api.annotation.delete({id:e.id}),this._store.removeAnnotations([e])}async flag(e){await this._api.annotation.flag({id:e.id}),this._store.updateFlagStatus(e.id,!0)}reply(e,t){const n={group:e.group,permissions:Fo(e)?Mi(t,e.group):Ni(t),references:(e.references||[]).concat(e.id),target:[{source:e.target[0].source}],uri:e.uri};this.create(n)}async save(e){let t;const n=this._applyDraftChanges(e);let r;t=Bo(e)?this._api.annotation.create({},n):this._api.annotation.update({id:e.id},n),this._store.annotationSaveStarted(e);try{r=await t}finally{this._store.annotationSaveFinished(e)}return Object.keys(e).forEach((t=>{"$"===t[0]&&(r[t]=e[t])})),this._store.removeDraft(e),this._store.addAnnotations([r]),r}}ac.$inject=["api","store"];class sc extends Error{constructor(e,t,n=""){let r="Network request failed";t&&(r+=` (${t.status})`),n&&(r+=`: ${n}`),super(r),this.url=e,this.response=t,this.reason=n}}async function lc(e,t){let n,r;try{n=await fetch(e,t)}catch(t){throw new sc(e,null,t.message)}if(204===n.status)return null;try{r=await n.json()}catch(t){throw new sc(e,n,"Failed to parse response")}var o;if(!n.ok)throw new sc(e,n,null===(o=r)||void 0===o?void 0:o.reason);return r}function cc(e,t){const n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r],i=":"+r;-1!==e.indexOf(i)?e=e.replace(i,encodeURIComponent(String(o))):n[r]=o}return{url:e,unusedParams:n}}function uc(e){const t={};for(const n in e)e.hasOwnProperty(n)&&"$"!==n[0]&&(t[n]=e[n]);return t}class hc{constructor(e,t,n){const r=e.routes();this._clientId=null;const o=()=>this._clientId,i=e=>function(e,t,{getAccessToken:n,getClientId:r,onRequestStarted:o,onRequestFinished:i}){return async(a,s)=>{o();try{const[o,l]=await Promise.all([e,n()]),c=function(e,t){let n=e;return t.split(".").forEach((e=>{n=n[e]})),n}(o,t),u={"Content-Type":"application/json","Hypothesis-Client-Version":"1.892.0"};l&&(u.Authorization="Bearer "+l);const h=r();h&&(u["X-Client-Id"]=h);const{url:d,unusedParams:p}=cc(c.url,a),m=new URL(d);for(let[e,t]of Object.entries(p)){Array.isArray(t)||(t=[t]);for(let n of t)null!=n&&m.searchParams.append(e,n.toString())}return await lc(m.toString(),{body:s?JSON.stringify(uc(s)):null,headers:u,method:c.method})}finally{i()}}}(r,e,{getAccessToken:t.getAccessToken,getClientId:o,onRequestStarted:n.apiRequestStarted,onRequestFinished:n.apiRequestFinished});this.search=i("search"),this.annotation={create:i("annotation.create"),delete:i("annotation.delete"),get:i("annotation.read"),update:i("annotation.update"),flag:i("annotation.flag"),hide:i("annotation.hide"),unhide:i("annotation.unhide")},this.group={member:{delete:i("group.member.delete")},read:i("group.read")},this.groups={list:i("groups.read")},this.profile={groups:{read:i("profile.groups.read")},read:i("profile.read"),update:i("profile.update")}}setClientId(e){this._clientId=e}}hc.$inject=["apiRoutes","auth","store"];var dc={};function pc(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var mc=pc;pc.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},pc.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},pc.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1)}var r=this;return this._timer=setTimeout((function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout((function(){r._operationTimeoutCb(r._attempts)}),r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)}),n),this._options.unref&&this._timer.unref(),!0},pc.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},pc.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},pc.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},pc.prototype.start=pc.prototype.try,pc.prototype.errors=function(){return this._errors},pc.prototype.attempts=function(){return this._attempts},pc.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var o=this._errors[r],i=o.message,a=(e[i]||0)+1;e[i]=a,a>=n&&(t=o,n=a)}return t},function(e){var t=mc;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],o=0;o<t.retries;o++)r.push(this.createTimeout(o,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(o,t)),r.sort((function(e,t){return e-t})),r},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return r=Math.min(r,t.maxTimeout)},e.wrap=function(t,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var o in r=[],t)"function"==typeof t[o]&&r.push(o);for(var i=0;i<r.length;i++){var a=r[i],s=t[a];t[a]=function(r){var o=e.operation(n),i=Array.prototype.slice.call(arguments,1),a=i.pop();i.push((function(e){o.retry(e)||(e&&(arguments[0]=o.mainError()),a.apply(this,arguments))})),o.attempt((function(){r.apply(t,i)}))}.bind(t,s),t[a].options=n}}}(dc);var fc=dc;function gc(e,t){return new Promise(((n,r)=>{const o=fc.operation(t);o.attempt((async()=>{try{const t=await e();o.retry(),n(t)}catch(e){o.retry(e)||r(e)}}))}))}function vc(e){return gc((()=>lc(e)))}class yc{constructor(e){this._apiUrl=e.apiUrl,this._routeCache=null,this._linkCache=null}routes(){return this._routeCache||(this._routeCache=vc(this._apiUrl).then((e=>e.links))),this._routeCache}links(){return this._linkCache||(this._linkCache=this.routes().then((e=>vc(e.links.url)))),this._linkCache}}yc.$inject=["settings"];class _c extends Error{constructor(e,t){super(e),this.cause=t}}class bc{constructor(e){this.clientId=e.clientId,this.tokenEndpoint=e.tokenEndpoint,this.authorizationEndpoint=e.authorizationEndpoint,this.revokeEndpoint=e.revokeEndpoint}exchangeAuthCode(e){return this._getAccessToken({client_id:this.clientId,grant_type:"authorization_code",code:e})}exchangeGrantToken(e){return this._getAccessToken({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:e})}refreshToken(e){return this._getAccessToken({grant_type:"refresh_token",refresh_token:e})}async revokeToken(e){try{await this._formPost(this.revokeEndpoint,{token:e})}catch(e){throw new _c("Failed to revoke access token",e)}}authorize(e,t){const n=$(16),r=new Promise(((t,r)=>{e.addEventListener("message",(function o(i){"object"==typeof i.data&&i.data.state===n&&("authorization_response"===i.data.type&&t(i.data),"authorization_canceled"===i.data.type&&r(new Error("Authorization window was closed")),e.removeEventListener("message",o))}))})),o=new URL(this.authorizationEndpoint);return o.searchParams.set("client_id",this.clientId),o.searchParams.set("origin",e.location.origin),o.searchParams.set("response_mode","web_message"),o.searchParams.set("response_type","code"),o.searchParams.set("state",n),t.location=o.toString(),r.then((e=>e.code))}async _formPost(e,t){const n=new URLSearchParams;for(let[e,r]of Object.entries(t))n.set(e,r);n.sort();return lc(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString()})}async _getAccessToken(e){let t;try{t=await this._formPost(this.tokenEndpoint,e)}catch(e){throw new _c("Failed to fetch access token",e)}return{accessToken:t.access_token,expiresAt:Date.now()+1e3*(t.expires_in-10),refreshToken:t.refresh_token}}static openAuthPopupWindow(e){const t=`left=${e.screen.width/2-237.5},top=${e.screen.height/2-215},width=475,height=430`,n=e.open("about:blank","Log in to Hypothesis",t);if(!n)throw new Error("Failed to open login window");return n}}class wc extends zl{constructor(e,t,n,r,o){let i,a,s;super();const l=(c="token",u=r.apiUrl,new URL(c,u).href);var c,u;function h(){let e=new URL(r.apiUrl).hostname;return e=e.replace(/\./g,"%2E"),`hypothesis.oauth.${e}.token`}function d(e){n.setObject(h(),e)}const p=async()=>{if(s)return s;const e=await t.links();return s=new bc({clientId:r.oauthClientId,authorizationEndpoint:e["oauth.authorize"],revokeEndpoint:e["oauth.revoke"],tokenEndpoint:l}),s},m=()=>{var e;return null===(e=D(r))||void 0===e?void 0:e.grantToken},f=async()=>{if(!a){const e=m();void 0!==e?a=e?p().then((t=>t.exchangeGrantToken(e))).catch((e=>{var t;throw t="You must reload the page to annotate.",o.error(`Hypothesis login lost: ${t}`,{autoDismiss:!1}),e})):Promise.resolve(null):i?(a=(async e=>{const t=await p(),n=await t.exchangeAuthCode(e);return d(n),n})(i),i=null):a=Promise.resolve(function(){const e=n.getObject(h());return e&&"string"==typeof e.accessToken&&"string"==typeof e.refreshToken&&"number"==typeof e.expiresAt?{accessToken:e.accessToken,refreshToken:e.refreshToken,expiresAt:e.expiresAt}:null}())}const e=a,t=await a;if(!t)return null;if(e!==a)return f();if(Date.now()>t.expiresAt){const e=m();return a=(async(e,t)=>{const n=await p();let r;try{if(r=await n.refreshToken(e),Date.now()>r.expiresAt)throw new Error("Refreshed token expired in the past")}catch{return null}return t.persist&&d(r),r})(t.refreshToken,{persist:void 0===e}),f()}return t.accessToken};(()=>{e.addEventListener("storage",(({key:e})=>{e===h()&&(a=null,this.emit("oauthTokensChanged"))}))})(),this.login=async function(){const t=bc.openAuthPopupWindow(e),n=await p(),r=await n.authorize(e,t);i=r,a=null},this.logout=async function(){const[e,t]=await Promise.all([a,p()]);e&&await t.revokeToken(e.accessToken),a=Promise.resolve(null),n.removeItem(h())},this.getAccessToken=f}}wc.$inject=["$window","apiRoutes","localStorage","settings","toastMessenger"];class xc{constructor(e,t){this._annotationsService=e,this._store=t,this._saving=new Set,this._failed=new Set}init(){const e=e=>!this._saving.has(e)&&!this._failed.has(e);this._store.subscribe((()=>{this._store.newHighlights().forEach((t=>{const n=t.$tag;e(n)&&(this._saving.add(n),gc((()=>this._annotationsService.save(t))).catch((()=>{this._failed.add(n)})).finally((()=>{this._saving.delete(n)})))}))}))}isSaving(){return this._saving.size>0}}xc.$inject=["annotationsService","store"];var kc=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],h=t[c];if(!1===(o=n?n.call(r,u,h,c):void 0)||void 0===o&&u!==h)return!1}return!0};function Sc(e,t,n){const r=Array.isArray(t),o=()=>r?t.map((e=>e())):t();let i=o();return e((()=>{const e=o();if(r?kc(e,i):e===i)return;const t=i;i=e,n(e,t)}))}class Ac{constructor(e,t){this._frameSync=e,this._store=t}init(){const e=()=>this._store.profile().features;Sc(this._store.subscribe,[e,()=>this._store.frames()],(()=>{this._frameSync.notifyHost(no,e()||{})}))}}Ac.$inject=["frameSync","store"];class Ec{constructor(e,t){this._port=e,this._methods=t,this._sequence=0,this._callbacks={},this._destroyed=!1,this._listeners=new Ai,this._listeners.add(this._port,"message",(e=>this._handle(e))),this._port.start()}destroy(){this._destroyed=!0,this._listeners.removeAll(),this._port.close()}call(e,...t){if(this._destroyed)return;const n=this._sequence++,r=t[t.length-1];"function"==typeof r&&(this._callbacks[n]=r,t=t.slice(0,-1));const o={arguments:t,method:e,protocol:"frame-rpc",sequence:n,version:"1.0.0"};this._port.postMessage(o)}_parseMessage({data:e}){return e&&"object"==typeof e?"frame-rpc"!==e.protocol||"1.0.0"!==e.version?null:Array.isArray(e.arguments)?e:null:null}_handle(e){const t=this._parseMessage(e);if(null!==t)if("method"in t){if(!this._methods.hasOwnProperty(t.method))return;const e=(...e)=>{const n={arguments:e,protocol:"frame-rpc",response:t.sequence,version:"1.0.0"};this._port.postMessage(n)};this._methods[t.method](...t.arguments,e)}else if("response"in t){const e=this._callbacks[t.response];delete this._callbacks[t.response],e&&e(...t.arguments)}}}class Tc{constructor(){this.links=[],this.channelListeners={},this.onConnectListeners=[],this.on("connect",(e=>e()))}destroy(){this.links.forEach((e=>e.destroy())),this.links=[]}createChannel(e){const t=new Ec(e,this.channelListeners);let n=!1;return t.call("connect",(()=>{n||(n=!0,this.onConnectListeners.forEach((e=>e(t))))})),this.links.push(t),t}call(e,...t){let n;const r=t[t.length-1];"function"==typeof r&&(n=r,t=t.slice(0,-1));const o=e=>t=>{throw e.destroy(),this.links=this.links.filter((t=>t!==e)),t},i=this.links.map((n=>{const r=new Promise(((r,o)=>{const i=setTimeout((()=>r(null)),1e3);try{n.call(e,...t,((e,t)=>{clearTimeout(i),e?o(e):r(t)}))}catch(e){o(e)}}));return r.catch(o(n))}));let a=Promise.all(i);return n&&(a=a.then((e=>n(null,e))).catch((e=>n(e)))),a}on(e,t){if(this.links.length>0)throw new Error(`Listener '${e}' can't be registered because a channel has already been created`);if(this.channelListeners[e])throw new Error(`Listener '${e}' already bound in Bridge`);return this.channelListeners[e]=t,this}onConnect(e){return this.onConnectListeners.push(e),this}}function Cc(e){return{tag:e.$tag,msg:{document:e.document,target:e.target,uri:e.uri}}}class Nc{constructor(e,t,n){this._hostRPC=new Tc,this._guestRPC=new Tc,this._store=n,this._window=e;const r=new Set;this._setupSyncToGuests=()=>{let e=0;Sc(n.subscribe,[()=>n.allAnnotations(),()=>n.frames()],(([t,n],[o])=>{let i=0;const a=new Set,s=[];t.forEach((e=>{Do(e)||(Fo(e)&&++i,a.add(e.$tag),r.has(e.$tag)||s.push(e))}));const l=o.filter((e=>!a.has(e.$tag)));s.length>0&&(this._guestRPC.call("loadAnnotations",s.map(Cc)),s.forEach((e=>{r.add(e.$tag)}))),l.forEach((e=>{this._guestRPC.call("deleteAnnotation",Cc(e)),r.delete(e.$tag)})),n.length>0&&n.every((e=>e.isAnnotationFetchComplete))&&(0!==i&&i===e||(this._hostRPC.call(so,i),e=i))}))},this._setupSyncFromGuests=()=>{this._guestRPC.on("beforeCreateAnnotation",(e=>{const o=Object.assign({},e.msg,{$tag:e.tag});if(!n.isLoggedIn())return this._hostRPC.call("openSidebar"),n.openSidebarPanel("loginPrompt"),void this._guestRPC.call("deleteAnnotation",Cc(o));r.add(e.tag),o.$highlight||this._hostRPC.call("openSidebar"),t.create(o)}));let e={};const o=Si((()=>{n.updateAnchorStatus(e),e={}}),10);this._guestRPC.on("sync",(t=>{t.forEach((t=>{r.add(t.tag),e[t.tag]=t.msg.$orphan?"orphan":"anchored",o()}))})),this._guestRPC.on("showAnnotations",(e=>{n.selectAnnotations(n.findIDsForTags(e)),n.selectTab("annotation")})),this._guestRPC.on("focusAnnotations",(e=>{n.focusAnnotations(e||[])})),this._guestRPC.on("toggleAnnotationSelection",(e=>{n.toggleSelectedAnnotations(n.findIDsForTags(e))})),this._guestRPC.on("openSidebar",(()=>{this._hostRPC.call("openSidebar")})),this._guestRPC.on("closeSidebar",(()=>{this._hostRPC.call("closeSidebar")}))}}connect(){this._guestRPC.onConnect((e=>{e.call("getDocumentInfo",((t,n)=>{t?e.destroy():this._store.connectFrame({id:n.frameIdentifier,metadata:n.metadata,uri:n.uri})}))})),this._window.addEventListener("message",(e=>{var t;if("hypothesisGuestReady"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;if(0===e.ports.length)return void console.warn("Ignoring `hypothesisGuestReady` message without a MessagePort");const n=e.ports[0];this._guestRPC.createChannel(n)})),this._setupSyncToGuests(),this._setupSyncFromGuests(),this._hostRPC.on("sidebarOpened",(()=>{this._store.setSidebarOpened(!0)})),this._hostRPC.on("destroyFrame",(e=>{const t=this._store.frames().find((t=>t.id===e));t&&this._store.destroyFrame(t)})),this._hostRPC.on("setVisibleHighlights",(e=>{this._guestRPC.call("setVisibleHighlights",e)}));const e=new MessageChannel;this._hostRPC.createChannel(e.port1),this._window.parent.postMessage({type:"hypothesisSidebarReady"},"*",[e.port2])}notifyHost(e,...t){this._hostRPC.call(e,...t)}focusAnnotations(e){this._store.focusAnnotations(e),this._guestRPC.call("focusAnnotations",e)}scrollToAnnotation(e){this._guestRPC.call("scrollToAnnotation",e)}}Nc.$inject=["$window","annotationsService","store"];var Mc=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Lc(e,t,n,r){const o=t.find((e=>"__world__"===e.id));o&&e.unshift(o);const i=e.map((e=>e.id));t=t.filter((e=>!i.includes(e.id))),t.forEach((e=>e.isMember=!1)),e.forEach((e=>e.isMember=!0));const a=e.concat(t);return a.forEach((e=>{e.canLeave=!!function(e){const t=D(e);return!t||!!t.allowLeavingGroups}(r)&&"private"===e.type})),a.forEach((e=>e.isScopedToUri=function(e,t){if(e.scopes&&e.scopes.uri_patterns.length>0&&t)return function(e,t){return void 0!==t.find((t=>e.match(t.split("*").map(Mc).join(".*"))))}(t,e.scopes.uri_patterns);return!0}(e,n))),a}function Ic(e){return Object.keys(e).reduce(((e,t)=>(e[t]=t,e)),{})}const zc={id:"__default__",name:"__DEFAULT__",logo:"data:image/svg+xml;utf8,"+encodeURIComponent(eo)};const Oc=["organization","scopes"];class Pc{constructor(e,t,n,r,o,i){this._store=e,this._api=t,this._auth=n,this._settings=o,this._toastMessenger=i,this._serviceConfig=D(o),this._reloadSetUp=!1}_mainURI(){var e,t;return null!==(e=null===(t=this._store.mainFrame())||void 0===t?void 0:t.uri)&&void 0!==e?e:null}async _filterGroups(e,t,n,r){if(r){const t=e.find((e=>e.id===r));t&&!t.isScopedToUri&&t.scopes&&t.scopes.enforced&&(e=e.filter((e=>e.id!==r)),this._store.setDirectLinkedGroupFetchFailed(),r=null)}if(t)return e;const o=e.some((e=>"__world__"!==e.id&&e.isScopedToUri));return o?"__world__"===r||"__world__"===n?e:e.filter((e=>"__world__"!==e.id)):e}_setupAutoReload(){this._reloadSetUp||(this._reloadSetUp=!0,Sc(this._store.subscribe,(()=>this._mainURI()),(()=>{this.load()})),Sc(this._store.subscribe,[()=>this._store.hasFetchedProfile(),()=>this._store.profile().userid],((e,[t])=>{t&&this.load()})))}_addGroupsToStore(e,t){!function(e){e.forEach((e=>{e.organization&&"object"==typeof e.organization||(e.organization=zc)}))}(e);const n=0===this._store.allGroups().length,r=this._store.getDefault("focusedGroup");this._store.loadGroups(e),n&&(t&&e.some((e=>e.id===t))?this.focus(t):r&&e.some((e=>e.id===r))&&this.focus(r))}_fetchGroup(e){return this._api.group.read({id:e,expand:Oc})}async _loadGroupsForUserAndDocument(){var e;const t=()=>function(e,t){const n=t(e);return null!==n?Promise.resolve(n):new Promise((n=>{const r=e.subscribe((()=>{const o=t(e);null!==o&&(r(),n(o))}))}))}(this._store,(()=>this._mainURI()));let n=null;"sidebar"===this._store.route()&&(n=await t()),this._setupAutoReload();const r=this._store.directLinkedAnnotationId();let o=null;r&&(o=this._api.annotation.get({id:r}).catch((()=>null)));const i=this._store.directLinkedGroupId();let a=null;i&&(a=this._fetchGroup(i).then((e=>(this._store.clearDirectLinkedGroupFetchFailed(),e))).catch((()=>(this._store.setDirectLinkedGroupFetchFailed(),null))));const s={expand:Oc},l=null===(e=this._serviceConfig)||void 0===e?void 0:e.authority;l&&(s.authority=l),n&&(s.document_uri=n);const[c,u,h,d,p]=await Promise.all([this._api.profile.groups.read({expand:Oc}),this._api.groups.list(s),this._auth.getAccessToken(),o,a]);p&&!u.some((e=>e.id===p.id))&&u.push(p);let m=null;if(d){m=d.group;const e=c.concat(u).find((e=>e.id===d.group));if(!e)try{const e=await this._fetchGroup(d.group);u.push(e)}catch(e){this._toastMessenger.error("Unable to fetch group for linked annotation")}}const f=null!==h,g=await this._filterGroups(Lc(c,u,n,this._settings),f,m,i),v=m||i||null;return this._addGroupsToStore(g,v),g}async _loadServiceSpecifiedGroups(e){const t=await this._api.profile.groups.read({expand:Oc});let n;const r=async e=>{try{return await this._fetchGroup(e)}catch(e){return n=e,null}},o=await Promise.all(e.map((e=>t.find((t=>t.id===e||t.groupid===e))||r(e)))),i=o.filter((e=>null!==e)),a=this._store.directLinkedGroupId();return this._addGroupsToStore(i,a),n&&this._toastMessenger.error(`Unable to fetch groups: ${n.message}`,{autoDismiss:!1}),i}async load(){var e;if(null!==(e=this._serviceConfig)&&void 0!==e&&e.groups){let e=[];try{e=await this._serviceConfig.groups}catch(e){this._toastMessenger.error(`Unable to fetch group configuration: ${e.message}`)}return this._loadServiceSpecifiedGroups(e)}return this._loadGroupsForUserAndDocument()}focus(e){const t=this._store.focusedGroupId();this._store.focusGroup(e);const n=this._store.focusedGroupId();if(t!==n&&null!==t&&n){const e=this._store.newAnnotations().filter((e=>!Do(e))).map((e=>({...e,group:n})));e.length&&this._store.addAnnotations(e),this._store.setDefault("focusedGroup",n)}}leave(e){return this._api.group.member.delete({pubid:e,userid:"me"})}}Pc.$inject=["store","api","auth","session","settings","toastMessenger"];class Rc{constructor(e,t,n,r){this._api=e,this._store=t,this._streamer=n,this._streamFilter=r,this._searchClient=null}load({groupId:e,uris:t,onError:n,maxResults:r,sortBy:o,sortOrder:i,streamFilterBy:a="uri"}){if(this._store.removeAnnotations(this._store.savedAnnotations()),this._searchClient&&this._searchClient.cancel(),"group"===a)this._streamFilter.resetFilter().addClause("/group","equals",e,!0),this._streamer.setConfig("filter",{filter:this._streamFilter.getFilter()});else t&&t.length>0&&(this._streamFilter.resetFilter().addClause("/uri","one_of",t),this._streamer.setConfig("filter",{filter:this._streamFilter.getFilter()}));const s={incremental:!0,separateReplies:!1,maxResults:r,sortBy:o,sortOrder:i};this._searchClient=new Rl(this._api.search,s),this._searchClient.on("resultCount",(e=>{this._store.setAnnotationResultCount(e)})),this._searchClient.on("results",(e=>{e.length&&this._store.addAnnotations(e)})),this._searchClient.on("error",(e=>{"function"==typeof n?n(e):console.error(e)})),this._searchClient.on("end",(()=>{this._searchClient=null,t&&t.length>0&&this._store.frames().forEach((e=>{t.indexOf(e.uri)>=0&&this._store.updateFrameAnnotationFetchStatus(e.uri,!0)})),this._store.annotationFetchFinished()})),this._store.annotationFetchStarted(),this._searchClient.get({group:e,uri:t})}async loadThread(e){let t,n;this._store.clearAnnotations();try{this._store.annotationFetchStarted(),t=await this._api.annotation.get({id:e}),Do(t)&&(t=await this._api.annotation.get({id:t.references[0]})),n=await this._api.search({references:t.id})}finally{this._store.annotationFetchFinished()}const r=[t,...n.rows];if(this._store.addAnnotations(r),!Do(t)){const e=t.id;this._streamFilter.addClause("/references","one_of",e,!0).addClause("/id","equals",e,!0),this._streamer.setConfig("filter",{filter:this._streamFilter.getFilter()}),this._streamer.connect()}return r}}Rc.$inject=["api","store","streamer","streamFilter"];class Dc{constructor(){this._store={}}getItem(e){return e in this._store?this._store[e]:null}setItem(e,t){this._store[e]=t}removeItem(e){delete this._store[e]}}class Bc{constructor(e){let t="hypothesis.testKey";try{this._storage=e.localStorage,e.localStorage.setItem(t,t),e.localStorage.getItem(t),e.localStorage.removeItem(t)}catch(e){this._storage=new Dc}}getItem(e){return this._storage.getItem(e)}getObject(e){const t=this._storage.getItem(e);return t?JSON.parse(t):null}setItem(e,t){this._storage.setItem(e,t)}setObject(e,t){const n=JSON.stringify(t);this._storage.setItem(e,n)}removeItem(e){this._storage.removeItem(e)}}Bc.$inject=["$window"];const Fc={annotationPrivacy:"hypothesis.privacy",focusedGroup:"hypothesis.groups.focus"};class jc{constructor(e,t){this._storage=e,this._store=t}init(){Object.keys(Fc).forEach((e=>{const t=this._storage.getItem(Fc[e]);this._store.setDefault(e,t)})),Sc(this._store.subscribe,(()=>this._store.getDefaults()),((e,t)=>{for(let n in e)t[n]!==e[n]&&n in Fc&&this._storage.setItem(Fc[n],e[n])}))}}jc.$inject=["localStorage","store"];class Hc{constructor(e,t){this._window=e,this._store=t,this._didRegisterPopstateListener=!1}currentRoute(){const e=this._window.location.pathname.slice(1).split("/"),t=new URLSearchParams(this._window.location.search),n={};for(let[e,r]of t)n[e]=r;"client"===e[0]&&e.shift();let r;switch(e[0].replace(/\.html$/,"")){case"a":r="annotation",n.id=e[1]||"";break;case"notebook":r="notebook";break;case"stream":r="stream";break;default:r="sidebar"}return{route:r,params:n}}routeUrl(e,t={}){let n;const r={...t};switch(e){case"annotation":{const e=t.id;delete r.id,n=`/a/${e}`}break;case"notebook":n="/notebook";break;case"stream":n="/stream";break;default:throw new Error(`Cannot generate URL for route "${e}"`)}let o=!1;const i=new URLSearchParams;for(let[e,t]of Object.entries(r))o=!0,i.set(e,t);return o&&(n+="?"+i.toString()),n}sync(){const{route:e,params:t}=this.currentRoute();this._store.changeRoute(e,t),this._didRegisterPopstateListener||(this._window.addEventListener("popstate",(()=>{this.sync()})),this._didRegisterPopstateListener=!0)}navigate(e,t){this._window.history.pushState({},"",this.routeUrl(e,t)),this.sync()}}Hc.$inject=["$window","store"];class Uc{constructor(e,t){this._apiRoutes=e,this._store=t}async init(){try{const e=await this._apiRoutes.links();this._store.updateLinks(e)}catch(e){console.warn(`Failed to fetch Hypothesis links: ${e.message}`)}}}Uc.$inject=["apiRoutes","store"];class qc{constructor(e,t,n,r,o){var i,a;this._api=t,this._auth=n,this._store=e,this._toastMessenger=o,this._authority=null!==(i=null===(a=D(r))||void 0===a?void 0:a.authority)&&void 0!==i?i:null,this._lastLoad=null,this._lastLoadTime=null,n.on("oauthTokensChanged",(()=>this.reload()))}load(){return(!this._lastLoad||!this._lastLoadTime||Date.now()-this._lastLoadTime>3e5)&&(this._lastLoadTime=Date.now(),this._lastLoad=gc((()=>{const e=this._authority?{authority:this._authority}:{};return this._api.profile.read(e)})).then((e=>(this.update(e),this._lastLoadTime=Date.now(),e))).catch((e=>{throw this._lastLoadTime=null,e}))),this._lastLoad}async dismissSidebarTutorial(){const e=await this._api.profile.update({},{preferences:{show_sidebar_tutorial:!1}});this.update(e)}update(e){const t=this._store.profile(),n=e.userid!==t.userid;return this._store.updateProfile(e),this._lastLoad=Promise.resolve(e),this._lastLoadTime=Date.now(),n&&(e.userid?Fn({id:e.userid}):Fn(null)),e}async logout(){try{return await this._auth.logout(),this.reload()}catch(e){throw this._toastMessenger.error("Log out failed"),new Error(e)}}reload(){return this._lastLoad=null,this._lastLoadTime=null,this.load()}}qc.$inject=["store","api","auth","settings","toastMessenger"];class $c{constructor(){this._filter={match_policy:"include_any",clauses:[],actions:{create:!0,update:!0,delete:!0}}}addClause(e,t,n,r=!1){return this._filter.clauses.push({field:e,operator:t,value:n,case_sensitive:r}),this}getFilter(){return this._filter}resetFilter(){return this._filter={match_policy:"include_any",clauses:[],actions:{create:!0,update:!0,delete:!0}},this}}class Gc extends zl{constructor(e){super();const t=[];let n,r=null;const o=()=>{for(;t.length>0;){const e=JSON.stringify(t.shift());n.send(e)}},i=()=>{r=fc.operation({minTimeout:2e3,retries:10,randomize:!0}),r.attempt((()=>{n=new WebSocket(e),n.onopen=e=>{r=null,o(),this.emit("open",e)},n.onclose=e=>{if(1e3===e.code||1001===e.code)return void this.emit("close",e);const t=new Error(`WebSocket closed abnormally, code: ${e.code}`);console.warn(t),((e,t)=>{if(r)return void(r.retry(e)||console.error("Reached max retries attempting to reconnect WebSocket"));let n=1e3;n+=Math.floor(Math.random()*n),setTimeout(t,n)})(t,i)},n.onerror=e=>{this.emit("error",e)},n.onmessage=e=>{this.emit("message",e)}}))};this.close=()=>{n.close(1e3)},this.send=e=>{t.push(e),this.isConnected()&&o()},this.isConnected=()=>n.readyState===WebSocket.OPEN,i()}}class Vc{constructor(e,t,n,r,o){this._auth=t,this._groups=n,this._session=r,this._store=e,this._websocketURL=o.websocketUrl,this.clientId=$(32),this._socket=null,this._updateImmediately=!0,this._configMessages={},this._reconnectSetUp=!1}applyPendingUpdates(){const e=Object.values(this._store.pendingUpdates());e.length&&this._store.addAnnotations(e);const t=Object.keys(this._store.pendingDeletions()).map((e=>({id:e})));t.length&&this._store.removeAnnotations(t),this._store.clearPendingUpdates()}_handleSocketError(e){z("Error connecting to H push notification service:",e);const t=new URL(this._websocketURL).hostname;-1!==["localhost","127.0.0.1"].indexOf(t)&&z("Check that your H service is configured to allow WebSocket connections from "+window.location.origin)}_handleSocketMessage(e){const t=JSON.parse(e.data);if(t)if("annotation-notification"===t.type){const e=t.payload;switch(t.options.action){case"create":case"update":case"past":this._store.receiveRealTimeUpdates({updatedAnnotations:e});break;case"delete":this._store.receiveRealTimeUpdates({deletedAnnotations:e})}this._updateImmediately&&this.applyPendingUpdates()}else if("session-change"===t.type)this._session.update(t.model),this._groups.load();else if("whoyouare"===t.type){const e=this._store.profile().userid;t.userid!==e&&console.warn('WebSocket user ID "%s" does not match logged-in ID "%s"',t.userid,e)}else z("Received unsupported notification",t.type)}_sendClientConfig(e){Object.keys(this._configMessages).forEach((t=>{this._configMessages[t]&&e.send(this._configMessages[t])}))}setConfig(e,t){var n;this._configMessages[e]=t,null!==(n=this._socket)&&void 0!==n&&n.isConnected()&&this._socket.send(t)}async _reconnect(){var e;if(!this._websocketURL)return;let t,n;null===(e=this._socket)||void 0===e||e.close();try{t=await this._auth.getAccessToken()}catch(e){throw console.error("Failed to fetch token for WebSocket authentication",e),e}if(t){const e=new URL(this._websocketURL);e.searchParams.set("access_token",t),n=e.toString()}else n=this._websocketURL;const r=new Gc(n);r.on("open",(()=>this._sendClientConfig(r))),r.on("error",(e=>this._handleSocketError(e))),r.on("message",(e=>this._handleSocketMessage(e))),this._socket=r,this.setConfig("client-id",{messageType:"client_id",value:this.clientId}),this.setConfig("auth-check",{type:"whoami",id:1})}async connect(e={}){var t;this._updateImmediately=null===(t=e.applyUpdatesImmediately)||void 0===t||t,this._reconnectSetUp||(this._reconnectSetUp=!0,Sc(this._store.subscribe,(()=>this._store.profile().userid),(()=>{this._reconnect()}))),this._socket||await this._reconnect()}}Vc.$inject=["store","auth","groups","session","settings"];class Wc{constructor(e){this._storage=e}filter(e,t=null){const n=this._storage.getObject("hypothesis.user.tags.list")||[];let r=0;return n.filter((n=>{if(null!==t&&r>=t)return!1;const o=n.split(/\W+/),i=new RegExp(`^${Mc(e)}`,"i");return!(!o.some((e=>e.match(i)))&&!n.match(i))&&(++r,!0)}))}store(e){const t=this._storage.getObject("hypothesis.user.tags.map")||{};e.forEach((e=>{t[e]?(t[e].count+=1,t[e].updated=Date.now()):t[e]={text:e,count:1,updated:Date.now()}})),this._storage.setObject("hypothesis.user.tags.map",t);const n=Object.keys(t).sort(((e,n)=>t[e].count!==t[n].count?t[n].count-t[e].count:e.localeCompare(n)));this._storage.setObject("hypothesis.user.tags.list",n)}}Wc.$inject=["localStorage"];class Yc{constructor(e){this._store=e}forceVisible(e){e.children.forEach((e=>{this.forceVisible(e)})),e.visible||this._store.setForcedVisible(e.id,!0)}}Yc.$inject=["store"];class Kc{constructor(e){this._store=e}dismiss(e){const t=this._store.getToastMessage(e);t&&!t.isDismissed&&(this._store.updateToastMessage({...t,isDismissed:!0}),setTimeout((()=>{this._store.removeToastMessage(e)}),500))}_addMessage(e,t,{autoDismiss:n=!0,moreInfoURL:r=""}={}){if(this._store.hasToastMessage(e,t))return;const o=$(10),i={type:e,id:o,message:t,moreInfoURL:r};this._store.addToastMessage({isDismissed:!1,...i}),n&&setTimeout((()=>{this.dismiss(o)}),5e3)}error(e,t){this._addMessage("error",e,t)}success(e,t){this._addMessage("success",e,t)}notice(e,t){this._addMessage("notice",e,t)}}function Xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jc(Object(n),!0).forEach((function(t){Xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qc(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}Kc.$inject=["store"];var eu="function"==typeof Symbol&&Symbol.observable||"@@observable",tu=function(){return Math.random().toString(36).substring(7).split("").join(".")},nu={INIT:"@@redux/INIT"+tu(),REPLACE:"@@redux/REPLACE"+tu(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+tu()}};function ru(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function ou(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Qc(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Qc(1));return n(ou)(e,t)}if("function"!=typeof e)throw new Error(Qc(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(Qc(3));return i}function h(e){if("function"!=typeof e)throw new Error(Qc(4));if(l)throw new Error(Qc(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(Qc(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!ru(e))throw new Error(Qc(7));if(void 0===e.type)throw new Error(Qc(8));if(l)throw new Error(Qc(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error(Qc(10));o=e,d({type:nu.REPLACE})}function m(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Qc(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[eu]=function(){return this},e}return d({type:nu.INIT}),(r={dispatch:d,subscribe:h,getState:u,replaceReducer:p})[eu]=m,r}function iu(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:nu.INIT}))throw new Error(Qc(12));if(void 0===n(void 0,{type:nu.PROBE_UNKNOWN_ACTION()}))throw new Error(Qc(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],h=c(u,t);if(void 0===h)throw t&&t.type,new Error(Qc(14));o[l]=h,r=r||h!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}function au(e,t){return function(){return t(e.apply(this,arguments))}}function su(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function lu(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var cu=lu();function uu(e,t=[],n=[]){const r={},o={},i={};e.forEach((e=>{e.namespace?(r[e.namespace]=e.initialState(...t),o[e.namespace]=function(e){return(t={},n)=>{const r=e[n.type];if(!r)return t;const o=r(t,n);return Array.isArray(o)?o:{...t,...o}}}(e.reducers),i[e.namespace]={selectors:e.selectors,rootSelectors:e.rootSelectors||{}}):console.warn("Store module does not specify a namespace",e)}));const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Qc(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=su.apply(void 0,i)(n.dispatch),Zc(Zc({},n),{},{dispatch:r})}}}(...[cu],...n);const s=ou(iu(o),r,a),l=Object.assign({},...e.map((e=>e.actionCreators))),c=function(e,t){if("function"==typeof e)return au(e,t);if("object"!=typeof e||null===e)throw new Error(Qc(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=au(o,t))}return n}(l,s.dispatch),u=function(e,t){const n={};return Object.keys(e).forEach((r=>{const{selectors:o,rootSelectors:i={}}=e[r];Object.keys(o).forEach((e=>{if(n[e])throw new Error(`Duplicate selector "${e}"`);n[e]=(...n)=>o[e](t()[r],...n)})),Object.keys(i).forEach((e=>{if(n[e])throw new Error(`Duplicate selector "${e}"`);n[e]=(...n)=>i[e](t(),...n)}))})),n}(i,s.getState);return Object.assign(s,c,u),s}function hu(e,t){if(!(e instanceof Function)){const t=e;e=()=>t}return{initialState:e,...t}}function du(e){let t=0;return function(n){return function(r){if(!window.debug)return void n(r);++t;const o=r.type+" ("+t.toString()+")";console.group(o),console.log("Prev State:",e.getState()),console.log("Action:",r),n(r),console.log("Next State:",e.getState()),console.groupEnd()}}}cu.withExtraArgument=lu;const pu={API_REQUEST_STARTED:e=>({...e,activeApiRequests:e.activeApiRequests+1}),API_REQUEST_FINISHED(e){if(0===e.activeApiRequests)throw new Error("API_REQUEST_FINISHED action when no requests were active");return{...e,activeApiRequests:e.activeApiRequests-1}},ANNOTATION_SAVE_STARTED(e,t){let n=[];t.annotation.$tag&&!e.activeAnnotationSaveRequests.includes(t.annotation.$tag)&&n.push(t.annotation.$tag);const r=e.activeAnnotationSaveRequests.concat(n);return{...e,activeAnnotationSaveRequests:r}},ANNOTATION_SAVE_FINISHED(e,t){const n=e.activeAnnotationSaveRequests.filter((e=>e!==t.annotation.$tag));return{...e,activeAnnotationSaveRequests:n}},ANNOTATION_FETCH_STARTED:e=>({...e,activeAnnotationFetches:e.activeAnnotationFetches+1}),ANNOTATION_FETCH_FINISHED(e){if(0===e.activeAnnotationFetches)throw new Error("ANNOTATION_FETCH_FINISHED action when no annotation fetches were active");return{...e,hasFetchedAnnotations:!0,activeAnnotationFetches:e.activeAnnotationFetches-1}},SET_ANNOTATION_RESULT_COUNT:(e,t)=>({annotationResultCount:t.resultCount})},mu=Ic(pu);var fu=hu({activeAnnotationSaveRequests:[],activeApiRequests:0,activeAnnotationFetches:0,hasFetchedAnnotations:!1,annotationResultCount:null},{reducers:pu,namespace:"activity",actionCreators:{annotationFetchStarted:function(){return{type:mu.ANNOTATION_FETCH_STARTED}},annotationFetchFinished:function(){return{type:mu.ANNOTATION_FETCH_FINISHED}},annotationSaveStarted:function(e){return{type:mu.ANNOTATION_SAVE_STARTED,annotation:e}},annotationSaveFinished:function(e){return{type:mu.ANNOTATION_SAVE_FINISHED,annotation:e}},apiRequestStarted:function(){return{type:mu.API_REQUEST_STARTED}},apiRequestFinished:function(){return{type:mu.API_REQUEST_FINISHED}},setAnnotationResultCount:function(e){return{type:mu.SET_ANNOTATION_RESULT_COUNT,resultCount:e}}},selectors:{hasFetchedAnnotations:function(e){return e.hasFetchedAnnotations},isLoading:function(e){return e.activeApiRequests>0||!e.hasFetchedAnnotations},isFetchingAnnotations:function(e){return e.activeAnnotationFetches>0},isSavingAnnotation:function(e,t){return!!t.$tag&&e.activeAnnotationSaveRequests.includes(t.$tag)},annotationResultCount:function(e){return e.annotationResultCount}}});function gu(e,t){return e===t}function vu(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function yu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:gu,n=null,r=null;return function(){return vu(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function _u(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function bu(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),s=_u(r),l=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),c=e((function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return l.apply(null,e)}));return c.resultFunc=a,c.dependencies=s,c.recomputations=function(){return i},c.resetRecomputations=function(){return i=0},c}}var wu=bu(yu);function xu(e,t){return e.reduce(((e,n)=>t(n)?e+1:e),0)}function ku(e){const t={};return e.forEach((e=>t[e]=!0)),t}function Su(e){return Object.keys(e).filter((t=>!0===e[t]))}const Au={CHANGE_ROUTE:(e,{name:t,params:n})=>({name:t,params:n})},Eu=Ic(Au);var Tu=hu({name:null,params:{}},{namespace:"route",reducers:Au,actionCreators:{changeRoute:function(e,t={}){return{type:Eu.CHANGE_ROUTE,name:e,params:t}}},selectors:{route:function(e){return e.name},routeParams:function(e){return e.params}}});function Cu(e,t){return e.find((e=>e.id===t))}function Nu(e,t){return e.find((e=>e.$tag===t))}const Mu={ADD_ANNOTATIONS:function(e,t){const n={},r={},o=[],i=[],a=[];let s=e.nextTag;return t.annotations.forEach((t=>{let i;t.id&&(i=Cu(e.annotations,t.id)),!i&&t.$tag&&(i=Nu(e.annotations,t.$tag)),i?(a.push(Object.assign({},i,t)),t.id&&(n[t.id]=!0),i.$tag&&(r[i.$tag]=!0)):(o.push(function(e,t){let n=e.$orphan;return e.id||(n=!1),Object.assign({},e,{$anchorTimeout:!1,$tag:e.$tag||t,$orphan:n})}(t,"t"+s)),++s)})),e.annotations.forEach((e=>{n[e.id]||r[e.$tag]||i.push(e)})),{annotations:o.concat(a).concat(i),nextTag:s}},CLEAR_ANNOTATIONS:function(){return{annotations:[],focused:{},highlighted:{}}},FOCUS_ANNOTATIONS:function(e,t){return{focused:ku(t.focusedTags)}},HIDE_ANNOTATION:function(e,t){return{annotations:e.annotations.map((e=>e.id!==t.id?e:{...e,hidden:!0}))}},HIGHLIGHT_ANNOTATIONS:function(e,t){return{highlighted:t.highlighted}},REMOVE_ANNOTATIONS:function(e,t){return{annotations:[...t.remainingAnnotations]}},UNHIDE_ANNOTATION:function(e,t){return{annotations:e.annotations.map((e=>e.id!==t.id?e:Object.assign({},e,{hidden:!1})))}},UPDATE_ANCHOR_STATUS:function(e,t){return{annotations:e.annotations.map((e=>{if(!t.statusUpdates.hasOwnProperty(e.$tag))return e;const n=t.statusUpdates[e.$tag];return"timeout"===n?Object.assign({},e,{$anchorTimeout:!0}):Object.assign({},e,{$orphan:"orphan"===n})}))}},UPDATE_FLAG_STATUS:function(e,t){return{annotations:e.annotations.map((e=>{if(e.id&&e.id===t.id){if(e.flagged===t.isFlagged)return e;const n=Object.assign({},e,{flagged:t.isFlagged});if(n.moderation){const r=t.isFlagged?1:-1;n.moderation=Object.assign({},e.moderation,{flagCount:e.moderation.flagCount+r})}return n}return e}))}}},Lu=Ic(Mu);function Iu(e){return(t,n)=>{const r=function(e,t){const n={},r={};return t.forEach((e=>{e.id&&(n[e.id]=!0),e.$tag&&(r[e.$tag]=!0)})),e.filter((e=>!(e.id&&e.id in n||e.$tag&&e.$tag in r)))}(n().annotations.annotations,e);t({type:Lu.REMOVE_ANNOTATIONS,annotationsToRemove:e,remainingAnnotations:r})}}function zu(e){return{type:Lu.UPDATE_ANCHOR_STATUS,statusUpdates:e}}const Ou=wu((e=>e.annotations),(e=>xu(e,Vo)));const Pu=wu((e=>e.focused),(e=>Su(e))),Ru=wu((e=>e.highlighted),(e=>Su(e)));const Du=wu((e=>e.annotations),(e=>e.some(Ho))),Bu=wu((e=>e.annotations),(e=>e.filter((e=>Bo(e)&&!qo(e))))),Fu=wu((e=>e.annotations),(e=>e.filter((e=>Bo(e)&&qo(e))))),ju=wu((e=>e.annotations),(e=>xu(e,Go))),Hu=wu((e=>e.annotations),(e=>xu(e,$o)));var Uu=hu({annotations:[],focused:{},highlighted:{},nextTag:1},{namespace:"annotations",reducers:Mu,actionCreators:{addAnnotations:function(e){return function(t,n){const r=e.filter((e=>!Cu(n().annotations.annotations,e.id)));if(t({type:Lu.ADD_ANNOTATIONS,annotations:e,currentAnnotationCount:n().annotations.annotations.length}),"sidebar"!==Tu.selectors.route(n().route))return;const o=r.filter(Ho).map((e=>e.id));o.length>0&&setTimeout((()=>{const e=n().annotations.annotations,r=o.map((t=>Cu(e,t))).filter((e=>e&&Ho(e))).reduce(((e,t)=>(e[t.$tag]="timeout",e)),{});t(zu(r))}),500)}},clearAnnotations:function(){return{type:Lu.CLEAR_ANNOTATIONS}},focusAnnotations:function(e){return{type:Lu.FOCUS_ANNOTATIONS,focusedTags:e}},hideAnnotation:function(e){return{type:Lu.HIDE_ANNOTATION,id:e}},highlightAnnotations:function(e){return{type:Lu.HIGHLIGHT_ANNOTATIONS,highlighted:ku(e)}},removeAnnotations:Iu,unhideAnnotation:function(e){return{type:Lu.UNHIDE_ANNOTATION,id:e}},updateAnchorStatus:zu,updateFlagStatus:function(e,t){return{type:Lu.UPDATE_FLAG_STATUS,id:e,isFlagged:t}}},selectors:{allAnnotations:function(e){return e.annotations},annotationCount:Ou,annotationExists:function(e,t){return e.annotations.some((e=>e.id===t))},findAnnotationByID:function(e,t){return Cu(e.annotations,t)},findIDsForTags:function(e,t){const n=[];return t.forEach((t=>{const r=Nu(e.annotations,t);r&&r.id&&n.push(r.id)})),n},focusedAnnotations:Pu,highlightedAnnotations:Ru,isAnnotationFocused:function(e,t){return!0===e.focused[t]},isWaitingToAnchorAnnotations:Du,newAnnotations:Bu,newHighlights:Fu,noteCount:ju,orphanCount:Hu,savedAnnotations:function(e){return e.annotations.filter((e=>!Bo(e)))}}});const qu={SET_DEFAULT:function(e,t){return{[t.defaultKey]:t.value}}},$u=Ic(qu);var Gu=hu({annotationPrivacy:null,focusedGroup:null},{namespace:"defaults",reducers:qu,actionCreators:{setDefault:function(e,t){return{type:$u.SET_DEFAULT,defaultKey:e,value:t}}},selectors:{getDefault:function(e,t){return e[t]},getDefaults:function(e){return e}}});const Vu={UPDATE_DIRECT_LINKED_GROUP_FETCH_FAILED:(e,t)=>({directLinkedGroupFetchFailed:t.directLinkedGroupFetchFailed}),UPDATE_DIRECT_LINKED_GROUP_ID:(e,t)=>({directLinkedGroupId:t.directLinkedGroupId}),UPDATE_DIRECT_LINKED_ANNOTATION_ID:(e,t)=>({directLinkedAnnotationId:t.directLinkedAnnotationId}),CLEAR_DIRECT_LINKED_IDS:()=>({directLinkedAnnotationId:null,directLinkedGroupId:null}),CLEAR_SELECTION:function(){return{directLinkedAnnotationId:null,directLinkedGroupId:null,directLinkedGroupFetchFailed:!1}}},Wu=Ic(Vu);var Yu=hu((function(e){return{directLinkedGroupId:e.group||null,directLinkedAnnotationId:e.annotations||null,directLinkedGroupFetchFailed:!1}}),{namespace:"directLinked",reducers:Vu,actionCreators:{setDirectLinkedGroupFetchFailed:function(){return{type:Wu.UPDATE_DIRECT_LINKED_GROUP_FETCH_FAILED,directLinkedGroupFetchFailed:!0}},setDirectLinkedGroupId:function(e){return{type:Wu.UPDATE_DIRECT_LINKED_GROUP_ID,directLinkedGroupId:e}},setDirectLinkedAnnotationId:function(e){return{type:Wu.UPDATE_DIRECT_LINKED_ANNOTATION_ID,directLinkedAnnotationId:e}},clearDirectLinkedGroupFetchFailed:function(){return{type:Wu.UPDATE_DIRECT_LINKED_GROUP_FETCH_FAILED,directLinkedGroupFetchFailed:!1}},clearDirectLinkedIds:function(){return{type:Wu.CLEAR_DIRECT_LINKED_IDS}}},selectors:{directLinkedAnnotationId:function(e){return e.directLinkedAnnotationId},directLinkedGroupFetchFailed:function(e){return e.directLinkedGroupFetchFailed},directLinkedGroupId:function(e){return e.directLinkedGroupId}}});class Ku{constructor(e,t){this.annotation={id:e.id,$tag:e.$tag},this.isPrivate=t.isPrivate,this.tags=t.tags,this.text=t.text}match(e){return this.annotation.$tag&&e.$tag===this.annotation.$tag||this.annotation.id&&e.id===this.annotation.id}isEmpty(){return!this.text&&0===this.tags.length}}const Xu={DISCARD_ALL_DRAFTS:function(){return[]},REMOVE_DRAFT:function(e,t){return e.filter((e=>!e.match(t.annotation)))},UPDATE_DRAFT:function(e,t){const n=e.filter((e=>!e.match(t.draft.annotation)));return n.push(t.draft),n}},Ju=Ic(Xu);function Zu(e){return{type:Ju.REMOVE_DRAFT,annotation:e}}function Qu(e,t){const n=e;for(let e=0;e<n.length;e++){const r=n[e];if(r.match(t))return r}return null}function eh(e,t){const n=Qu(e,t);return n?n.isEmpty()?null:n:null}const th=wu((e=>e),(e=>e.filter((e=>!e.annotation.id)).map((e=>e.annotation))));var nh=hu([],{namespace:"drafts",reducers:Xu,actionCreators:{createDraft:function(e,t){return{type:Ju.UPDATE_DRAFT,draft:new Ku(e,t)}},deleteNewAndEmptyDrafts:function(){return(e,t)=>{const n=t().drafts.filter((e=>Bo(e.annotation)&&!eh(t().drafts,e.annotation))).map((t=>(e(Zu(t.annotation)),t.annotation)));e(Iu(n))}},discardAllDrafts:function(){return{type:Ju.DISCARD_ALL_DRAFTS}},removeDraft:Zu},selectors:{countDrafts:function(e){return e.length},getDraft:Qu,getDraftIfNotEmpty:eh,unsavedAnnotations:th}});function rh(e){var t,n;return!!(null!==(t=e.user)&&void 0!==t&&t.username||null!==(n=e.user)&&void 0!==n&&n.userid)}function oh(e){if(!rh(e))return{};const t=e.user.username||e.user.userid||"";return{user:{value:t,display:e.user.displayName||t}}}const ih={CHANGE_FOCUS_MODE_USER:function(e,t){return rh({user:t.user})?{focusActive:!0,focusFilters:oh({user:t.user})}:{focusActive:!1}},SET_FILTER:function(e,t){var n;const r={...e.filters,[t.filterName]:t.filterOption};return""===(null===(n=t.filterOption)||void 0===n?void 0:n.value)&&delete r[t.filterName],{filters:r}},SET_FILTER_QUERY:function(e,t){return{query:t.query}},SET_FOCUS_MODE:function(e,t){var n;return{focusActive:null!==(n=t.active)&&void 0!==n?n:!e.focusActive}},CLEAR_SELECTION:function(){return{filters:{},focusActive:!1,query:null}}},ah=Ic(ih);const sh=wu((e=>e.focusActive),(e=>e.focusFilters),((e,t)=>{var n;return{active:e,configured:!(null==t||!t.user),displayName:(null==t||null===(n=t.user)||void 0===n?void 0:n.display)||""}})),lh=wu((e=>e.filters),(e=>e.focusActive),(e=>e.focusFilters),((e,t,n)=>t?{...n,...e}:{...e}));const ch=wu((e=>lh(e)),(e=>{const t={};return Object.keys(e).forEach((n=>t[n]=e[n].value)),t}));var uh=hu((function(e){const t=e.focus||{};return{filters:{},focusActive:rh(t),focusFilters:oh(t),query:e.query||null}}),{namespace:"filters",reducers:ih,actionCreators:{changeFocusModeUser:function(e){return{type:ah.CHANGE_FOCUS_MODE_USER,user:e}},setFilter:function(e,t){return(n,r)=>{var o;null!==(o=r().filters.focusFilters)&&void 0!==o&&o[e]&&n({type:ah.SET_FOCUS_MODE,active:!1}),n({type:ah.SET_FILTER,filterName:e,filterOption:t})}},setFilterQuery:function(e){return{type:ah.SET_FILTER_QUERY,query:e}},toggleFocusMode:function(e){return{type:ah.SET_FOCUS_MODE,active:e}}},selectors:{filterQuery:function(e){return e.query},focusState:sh,getFilter:function(e,t){return lh(e)[t]},getFilters:lh,getFilterValues:ch,getFocusFilters:function(e){return e.focusFilters},hasAppliedFilter:function(e){return!(!e.query&&!Object.keys(lh(e)).length)}}});const hh={CONNECT_FRAME:function(e,t){return[...e,t.frame]},DESTROY_FRAME:function(e,t){return e.filter((e=>e!==t.frame))},UPDATE_FRAME_ANNOTATION_FETCH_STATUS:function(e,t){return e.map((e=>e.uri&&e.uri===t.uri?Object.assign({},e,{isAnnotationFetchComplete:t.isAnnotationFetchComplete}):e))}},dh=Ic(hh);const ph=wu((e=>e),(e=>e.find((e=>!e.id))||null));const mh=bu(yu,kc)((e=>e.reduce(((e,t)=>e.concat(function(e){let t=[e.uri];return e.metadata&&e.metadata.documentFingerprint&&(t=e.metadata.link.map((e=>e.href))),e.metadata&&e.metadata.link&&e.metadata.link.forEach((e=>{e.href.startsWith("doi:")&&t.push(e.href)})),t}(t))),[])),(e=>e));var fh=hu([],{namespace:"frames",reducers:hh,actionCreators:{connectFrame:function(e){return{type:dh.CONNECT_FRAME,frame:e}},destroyFrame:function(e){return{type:dh.DESTROY_FRAME,frame:e}},updateFrameAnnotationFetchStatus:function(e,t){return{type:dh.UPDATE_FRAME_ANNOTATION_FETCH_STATUS,isAnnotationFetchComplete:t,uri:e}}},selectors:{frames:function(e){return e},mainFrame:ph,searchUris:mh}});const gh={features:{},preferences:{},userid:null};const vh={UPDATE_PROFILE:function(e,t){return{profile:{...t.profile}}}},yh=Ic(vh);var _h=hu((function(e){var t;return{defaultAuthority:null!==(t=null==e?void 0:e.authDomain)&&void 0!==t?t:"",profile:gh}}),{namespace:"session",reducers:vh,actionCreators:{updateProfile:function(e){return{type:yh.UPDATE_PROFILE,profile:e}}},selectors:{defaultAuthority:function(e){return e.defaultAuthority},hasFetchedProfile:function(e){return e.profile!==gh},isFeatureEnabled:function(e,t){return!!e.profile.features[t]},isLoggedIn:function(e){return null!==e.profile.userid},profile:function(e){return e.profile}}});const bh={FOCUS_GROUP(e,t){const n=e.groups.find((e=>e.id===t.id));return n?{focusedGroupId:t.id}:(console.error(`Attempted to focus group ${t.id} which is not loaded`),{})},LOAD_GROUPS(e,t){const n=t.groups;let r=e.focusedGroupId;return null!==e.focusedGroupId&&n.find((t=>t.id===e.focusedGroupId))||(r=n.length>0?n[0].id:null),{focusedGroupId:r,groups:t.groups}},CLEAR_GROUPS:()=>({focusedGroupId:null,groups:[]})},wh=Ic(bh);function xh(e){return e.groups}function kh(e,t){return e.groups.find((e=>e.id===t))}const Sh=wu((e=>e.groups),(e=>e.filter((e=>!e.isMember&&e.isScopedToUri)))),Ah=wu((e=>e.groups),(e=>e.filter((e=>e.isScopedToUri)))),Eh=wu((e=>e.groups.groups),(e=>_h.selectors.isLoggedIn(e.session)),((e,t)=>t?e.filter((e=>e.isMember)):[])),Th=wu((e=>xh(e.groups)),(e=>Eh(e)),(e=>Sh(e.groups)),((e,t,n)=>e.filter((e=>!t.includes(e)&&!n.includes(e)))));var Ch=hu({groups:[],focusedGroupId:null},{namespace:"groups",reducers:bh,actionCreators:{focusGroup:function(e){return{type:wh.FOCUS_GROUP,id:e}},loadGroups:function(e){return{type:wh.LOAD_GROUPS,groups:e}},clearGroups:function(){return{type:wh.CLEAR_GROUPS}}},selectors:{allGroups:xh,focusedGroup:function(e){return e.focusedGroupId?kh(e,e.focusedGroupId):null},focusedGroupId:function(e){return e.focusedGroupId},getFeaturedGroups:Sh,getGroup:kh,getInScopeGroups:Ah},rootSelectors:{getCurrentlyViewingGroups:Th,getMyGroups:Eh}});const Nh={UPDATE_LINKS:(e,t)=>({...t.links})},Mh=Ic(Nh);var Lh=hu(null,{namespace:"links",reducers:Nh,actionCreators:{updateLinks:function(e){return{type:Mh.UPDATE_LINKS,links:e}}},selectors:{getLink:function(e,t,n={}){if(!e)return"";const r=e[t];if(!r)throw new Error(`Unknown link "${t}"`);const{url:o,unusedParams:i}=cc(r,n),a=Object.keys(i);if(a.length>0)throw new Error(`Unused parameters: ${a.join(", ")}`);return o}}});const Ih={RECEIVE_REAL_TIME_UPDATES:(e,t)=>({pendingUpdates:{...t.pendingUpdates},pendingDeletions:{...t.pendingDeletions}}),CLEAR_PENDING_UPDATES:()=>({pendingUpdates:{},pendingDeletions:{}}),ADD_ANNOTATIONS(e,{annotations:t}){const n={...e.pendingUpdates};return t.forEach((e=>delete n[e.id])),{pendingUpdates:n}},REMOVE_ANNOTATIONS(e,{annotationsToRemove:t}){const n={...e.pendingUpdates},r={...e.pendingDeletions};return t.forEach((e=>{delete n[e.id],delete r[e.id]})),{pendingUpdates:n,pendingDeletions:r}},FOCUS_GROUP:()=>({pendingUpdates:{},pendingDeletions:{}})},zh=Ic(Ih);const Oh=wu((e=>[e.pendingUpdates,e.pendingDeletions]),(([e,t])=>Object.keys(e).length+Object.keys(t).length));var Ph=hu({pendingUpdates:{},pendingDeletions:{}},{namespace:"realTimeUpdates",reducers:Ih,actionCreators:{receiveRealTimeUpdates:function({updatedAnnotations:e=[],deletedAnnotations:t=[]}){return(n,r)=>{const o={...r().realTimeUpdates.pendingUpdates},i={...r().realTimeUpdates.pendingDeletions};e.forEach((e=>{const t=r().groups,n=r().route;e.group!==Ch.selectors.focusedGroupId(t)&&"sidebar"===Tu.selectors.route(n)||(o[e.id]=e)})),t.forEach((e=>{const t=e.id;delete o[t];const n=r().annotations;Uu.selectors.annotationExists(n,t)&&(i[t]=!0)})),n({type:zh.RECEIVE_REAL_TIME_UPDATES,pendingUpdates:o,pendingDeletions:i})}},clearPendingUpdates:function(){return{type:zh.CLEAR_PENDING_UPDATES}}},selectors:{hasPendingDeletion:function(e,t){return e.pendingDeletions.hasOwnProperty(t)},pendingDeletions:function(e){return e.pendingDeletions},pendingUpdates:function(e){return e.pendingUpdates},pendingUpdateCount:Oh}});const Rh={annotation:"Location",note:"Oldest",orphan:"Location"};function Dh(e){const t={};return e.annotations&&!e.query&&(t[e.annotations]=!0),t}const Bh=(e,t)=>t===e?{}:{selectedTab:e,sortKey:Rh[e]},Fh={CLEAR_SELECTION:function(){return{forcedVisible:{},selected:{}}},SELECT_ANNOTATIONS:function(e,t){return{selected:t.selection}},SELECT_TAB:function(e,t){return Bh(t.tab,e.selectedTab)},SET_EXPANDED:function(e,t){const n={...e.expanded};return n[t.id]=t.expanded,{expanded:n}},SET_FORCED_VISIBLE:function(e,t){return{forcedVisible:{...e.forcedVisible,[t.id]:t.visible}}},SET_SORT_KEY:function(e,t){return{sortKey:t.key}},TOGGLE_SELECTED_ANNOTATIONS:function(e,t){const n={...e.selected};return t.toggleIds.forEach((e=>{n[e]=!n[e]})),{selected:n}},ADD_ANNOTATIONS(e,t){const n=t.annotations.filter((e=>!Do(e))),r=xu(t.annotations,Go)===n.length;return 0===t.currentAnnotationCount&&r?Bh("note",e.selectedTab):{}},CHANGE_FOCUS_MODE_USER:function(){return{forcedVisible:{},selected:{}}},SET_FILTER:function(){return{forcedVisible:{},selected:{},expanded:{}}},SET_FILTER_QUERY:function(){return{forcedVisible:{},selected:{},expanded:{}}},SET_FOCUS_MODE:function(){return{forcedVisible:{},selected:{}}},REMOVE_ANNOTATIONS:function(e,t){let n=e.selectedTab;"orphan"===n&&0===xu(t.remainingAnnotations,$o)&&(n="annotation");const r=e=>(t.annotationsToRemove.forEach((t=>{t.id&&delete e[t.id],t.$tag&&delete e[t.$tag]})),e);return{...Bh(n,e.selectedTab),expanded:r({...e.expanded}),forcedVisible:r({...e.forcedVisible}),selected:r({...e.selected})}}},jh=Ic(Fh);function Hh(e){return e.expanded}const Uh=wu((e=>e.forcedVisible),(e=>Su(e))),qh=wu((e=>e.selected),(e=>Su(e).length>0)),$h=wu((e=>e.selected),(e=>Su(e)));function Gh(e){return e.selectedTab}const Vh=wu((e=>e),(e=>({expanded:Hh(e),forcedVisible:Uh(e),selected:$h(e),sortKey:Wh(e),selectedTab:Gh(e)})));function Wh(e){return e.sortKey}const Yh=wu((e=>e.selectedTab),(e=>{const t=["Newest","Oldest"];return"note"!==e&&t.push("Location"),t}));var Kh=hu((function(e){return{selected:Dh(e),expanded:Dh(e)||{},forcedVisible:{},selectedTab:"annotation",sortKey:Rh.annotation}}),{namespace:"selection",reducers:Fh,actionCreators:{clearSelection:function(){return{type:jh.CLEAR_SELECTION}},selectAnnotations:function(e){return t=>{t({type:jh.CLEAR_SELECTION}),t({type:jh.SELECT_ANNOTATIONS,selection:ku(e)})}},selectTab:function(e){return{type:jh.SELECT_TAB,tab:e}},setExpanded:function(e,t){return{type:jh.SET_EXPANDED,id:e,expanded:t}},setForcedVisible:function(e,t){return{type:jh.SET_FORCED_VISIBLE,id:e,visible:t}},setSortKey:function(e){return{type:jh.SET_SORT_KEY,key:e}},toggleSelectedAnnotations:function(e){return{type:jh.TOGGLE_SELECTED_ANNOTATIONS,toggleIds:e}}},selectors:{expandedMap:Hh,forcedVisibleThreads:Uh,hasSelectedAnnotations:qh,selectedAnnotations:$h,selectedTab:Gh,selectionState:Vh,sortKey:Wh,sortKeys:Yh}});const Xh={OPEN_SIDEBAR_PANEL:function(e,t){return{activePanelName:t.panelName}},CLOSE_SIDEBAR_PANEL:function(e,t){let n=e.activePanelName;return t.panelName===n&&(n=null),{activePanelName:n}},TOGGLE_SIDEBAR_PANEL:function(e,t){let n;const r=e.activePanelName===t.panelName,o=void 0!==t.panelState?t.panelState:!r;return n=o?t.panelName:r&&!o?null:e.activePanelName,{activePanelName:n}}},Jh=Ic(Xh);var Zh=hu({activePanelName:null},{namespace:"sidebarPanels",reducers:Xh,actionCreators:{openSidebarPanel:function(e){return{type:Jh.OPEN_SIDEBAR_PANEL,panelName:e}},closeSidebarPanel:function(e){return{type:Jh.CLOSE_SIDEBAR_PANEL,panelName:e}},toggleSidebarPanel:function(e,t){return{type:Jh.TOGGLE_SIDEBAR_PANEL,panelName:e,panelState:t}}},selectors:{isSidebarPanelOpen:function(e,t){return e.activePanelName===t}}});const Qh={ADD_MESSAGE:function(e,t){return{messages:e.messages.concat({...t.message})}},REMOVE_MESSAGE:function(e,t){return{messages:e.messages.filter((e=>e.id!==t.id))}},UPDATE_MESSAGE:function(e,t){return{messages:e.messages.map((e=>e.id&&e.id===t.message.id?{...t.message}:e))}}},ed=Ic(Qh);var td=hu({messages:[]},{namespace:"toastMessages",reducers:Qh,actionCreators:{addToastMessage:function(e){return{type:ed.ADD_MESSAGE,message:e}},removeToastMessage:function(e){return{type:ed.REMOVE_MESSAGE,id:e}},updateToastMessage:function(e){return{type:ed.UPDATE_MESSAGE,message:e}}},selectors:{getToastMessage:function(e,t){return e.messages.find((e=>e.id===t))},getToastMessages:function(e){return e.messages},hasToastMessage:function(e,t,n){return e.messages.some((e=>e.type===t&&e.message===n))}}});const nd={SET_HIGHLIGHTS_VISIBLE:function(e,t){return{visibleHighlights:t.visible}},SET_SIDEBAR_OPENED:(e,t)=>!0===t.opened?{sidebarHasOpened:!0}:{}},rd=Ic(nd);var od=hu({sidebarHasOpened:!1,visibleHighlights:!1},{namespace:"viewer",reducers:nd,actionCreators:{setShowHighlights:function(e){return{type:rd.SET_HIGHLIGHTS_VISIBLE,visible:e}},setSidebarOpened:function(e){return{type:rd.SET_SIDEBAR_OPENED,opened:e}}},selectors:{hasSidebarOpened:function(e){return e.sidebarHasOpened}}});function id(e){return uu([fu,Uu,Gu,Yu,nh,uh,fh,Lh,Ch,Ph,Tu,Kh,_h,Zh,td,od],[e],[du])}id.$inject=["settings"];class ad{constructor(){this._providers=new Map,this._instances=new Map,this._constructing=new Set}get(e){if(this._instances.has(e))return this._instances.get(e);const t=this._providers.get(e);if(!t)throw new Error(`"${e}" is not registered`);if("value"in t)return this._instances.set(e,t.value),t.value;if(this._constructing.has(e))throw new Error(`Encountered a circular dependency when constructing "${e}"`);this._constructing.add(e);try{const n=[],r="class"in t&&t.class.$inject||"factory"in t&&t.factory.$inject||[];for(const t of r)try{n.push(this.get(t))}catch(n){const r=new Error(`Failed to construct dependency "${t}" of "${e}": ${n.message}`);throw r.cause=n,r}let o;if(t.class)o=new t.class(...n);else{o=(0,t.factory)(...n)}return this._instances.set(e,o),o}finally{this._constructing.delete(e)}}register(e,t){if("function"==typeof t)t={class:t};else if(!function(e){return"object"==typeof e&&null!==e&&("value"in e||"function"==typeof e.class||"function"==typeof e.factory)}(t))throw new Error(`Invalid provider for "${e}"`);return this._providers.set(e,t),this}run(e){const t="Injector.run";this.register(t,{factory:e});try{return this.get(t)}finally{this._instances.delete(t),this._providers.delete(t)}}}const sd=function(t){for(var n={},r=t.querySelectorAll("script.js-hypothesis-config"),o=0;o<r.length;o++){var i=void 0;try{i=JSON.parse(r[o].textContent||"")}catch(e){console.warn("Could not parse settings from js-hypothesis-config tags",e),i={}}e(n,i)}return n}(document);function ld(e,t){e.setClientId(t.clientId)}function cd(e,t,n){e.load(),t.load(),n.sync()}function ud(e,t,n,r){e.init(),t.init(),n.init(),r.init()}function hd(e,t){"sidebar"===t.route()&&e.connect()}sd.sentry&&function(e){const t=function(){try{const e=document.currentScript;return new URL(e.src).origin}catch(e){return null}}(),n=t?[t]:void 0;Dn({dsn:e.dsn,environment:e.environment,allowUrls:n,ignoreErrors:["Network request failed","Object Not Found Matching Id"],release:"1.892.0",beforeSend:(e,t)=>{if(Bn>=5)return z("Client-side Sentry quota reached. No further Sentry events will be sent"),null;++Bn;try{const n=t&&t.originalException;n instanceof Event&&Object.assign(e.extra,{type:n.type,detail:n.detail,isTrusted:n.isTrusted})}catch(e){}return e}}),zt("document_url",document.referrer),zt("loaded_scripts",Array.from(document.querySelectorAll("script")).filter((e=>!e.type||e.type.match(/javascript|module/))).map((e=>e.src||"<inline>")))}(sd.sentry),function(e){e.addEventListener("click",(e=>{const t=e.target;if("A"===t.tagName){const e=t;"_blank"===e.target&&(e.rel="noopener")}}))}(document.body),function(e=t){let n=!1;try{document.createElement("div").dir="auto"}catch(e){n=!0}if(n){const t=e.vnode;e.vnode=e=>{"string"==typeof e.type&&"dir"in e.props&&"auto"===e.props.dir&&(e.props.dir=""),t&&t(e)}}}(),ld.$inject=["api","streamer"],cd.$inject=["groups","session","router"],ud.$inject=["autosaveService","features","persistedDefaults","serviceURL"],hd.$inject=["frameSync","store"],Nr(to);const dd=document.querySelector("hypothesis-app");!function(e=window){e.addEventListener("message",R)}(),async function(e,t=window){const n=U(window),r=n.requestConfigFromFrame;if(!r)return W(e,n);if("string"==typeof r)return await V(e,t);if("number"==typeof r.ancestorLevel&&"string"==typeof r.origin){const o=function(e,t=window){let n=t;for(let t=0;t<e;t++){if(n===n.top)throw new Error("The target parent frame has exceeded the ancestor tree. Try reducing the `requestConfigFromFrame.ancestorLevel` value in the `hypothesisConfig`");n=n.parent}return n}(r.ancestorLevel,t);return{...await Y(e,o,r.origin),...n.group?{group:n.group}:{}}}throw new Error("Improper `requestConfigFromFrame` object. Both `ancestorLevel` and `origin` need to be specified")}(sd).then((e=>{!function(e,t){const n=new ad;n.register("annotationsService",ac).register("api",hc).register("apiRoutes",yc).register("auth",wc).register("autosaveService",xc).register("features",Ac).register("frameSync",Nc).register("groups",Pc).register("loadAnnotationsService",Rc).register("localStorage",Bc).register("persistedDefaults",jc).register("router",Hc).register("serviceURL",Uc).register("session",qc).register("streamer",Vc).register("streamFilter",$c).register("tags",Wc).register("threadsService",Yc).register("toastMessenger",Kc).register("store",{factory:id}),n.register("$window",{value:window}).register("settings",{value:e}),n.run(ud),n.run(ld),n.run(cd),n.run(P),n.run(hd),L(Er(uo.Provider,{value:n,children:Er(oc,{})}),t)}(e,dd)})).catch((e=>function(e,t){console.error("Failed to start Hypothesis client: ",e),L(Er(ic,{error:e}),t)}(e,dd)));
30
+ */var Fa,ja={exports:{}};"undefined"!=typeof self&&self,Fa=function(){return function(){var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};e.d(t,{default:function(){return Kr}});var n=function e(t,n){this.position=void 0;var r,o="KaTeX parse error: "+t,i=n&&n.loc;if(i&&i.start<=i.end){var a=i.lexer.input;r=i.start;var s=i.end;r===a.length?o+=" at end of input: ":o+=" at position "+(r+1)+": ";var l=a.slice(r,s).replace(/[^]/g,"$&̲");o+=(r>15?"…"+a.slice(r-15,r):a.slice(0,r))+l+(s+15<a.length?a.slice(s,s+15)+"…":a.slice(s))}var c=new Error(o);return c.name="ParseError",c.__proto__=e.prototype,c.position=r,c};n.prototype.__proto__=Error.prototype;var r=n,o=/([A-Z])/g,i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g,s=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},l={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(a,(function(e){return i[e]}))},hyphenate:function(e){return e.replace(o,"-$1").toLowerCase()},getBaseElem:s,isCharacterBox:function(e){var t=s(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},c=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},this.displayMode=l.deflt(e.displayMode,!1),this.output=l.deflt(e.output,"htmlAndMathml"),this.leqno=l.deflt(e.leqno,!1),this.fleqn=l.deflt(e.fleqn,!1),this.throwOnError=l.deflt(e.throwOnError,!0),this.errorColor=l.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,l.deflt(e.minRuleThickness,0)),this.colorIsTextColor=l.deflt(e.colorIsTextColor,!1),this.strict=l.deflt(e.strict,"warn"),this.trust=l.deflt(e.trust,!1),this.maxSize=Math.max(0,l.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,l.deflt(e.maxExpand,1e3)),this.globalGroup=l.deflt(e.globalGroup,!1)}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var o=this.strict;if("function"==typeof o&&(o=o(e,t,n)),o&&"ignore"!==o){if(!0===o||"error"===o)throw new r("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===o?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+o+"': "+t+" ["+e+"]")}},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!(!r||"ignore"===r||!0!==r&&"error"!==r&&("warn"===r?("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"),1):("undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+r+"': "+t+" ["+e+"]"),1)))},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=l.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),u=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return h[d[this.id]]},t.sub=function(){return h[p[this.id]]},t.fracNum=function(){return h[m[this.id]]},t.fracDen=function(){return h[f[this.id]]},t.cramp=function(){return h[g[this.id]]},t.text=function(){return h[v[this.id]]},t.isTight=function(){return this.size>=2},e}(),h=[new u(0,0,!1),new u(1,0,!0),new u(2,1,!1),new u(3,1,!0),new u(4,2,!1),new u(5,2,!0),new u(6,3,!1),new u(7,3,!0)],d=[4,5,4,5,6,7,6,7],p=[5,5,5,5,7,7,7,7],m=[2,3,4,5,6,7,6,7],f=[3,3,5,5,7,7,7,7],g=[1,1,3,3,5,5,7,7],v=[0,1,2,3,2,3,2,3],y={DISPLAY:h[0],TEXT:h[2],SCRIPT:h[4],SCRIPTSCRIPT:h[6]},_=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],b=[];function w(e){for(var t=0;t<b.length;t+=2)if(e>=b[t]&&e<=b[t+1])return!0;return!1}_.forEach((function(e){return e.blocks.forEach((function(e){return b.push.apply(b,e)}))}));var x=80,k={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},S=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){var e=function(e){return e.toText()};return this.children.map(e).join("")},e}(),A=function(e){return e.filter((function(e){return e})).join(" ")},E=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},T=function(e){var t=document.createElement(e);for(var n in t.className=A(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t},C=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+l.escape(A(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=l.hyphenate(r)+":"+this.style[r]+";");for(var o in n&&(t+=' style="'+l.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(o)&&(t+=" "+o+'="'+l.escape(this.attributes[o])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+e+">"},N=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"span")},t.toMarkup=function(){return C.call(this,"span")},e}(),M=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,E.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){return T.call(this,"a")},t.toMarkup=function(){return C.call(this,"a")},e}(),L=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=l.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+l.escape(t)+'"'),e+="'/>"},e}(),I={"î":"ı̂","ï":"ı̈","í":"ı́","ì":"ı̀"},z=function(){function e(e,t,n,r,o,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<_.length;t++)for(var n=_[t],r=0;r<n.blocks.length;r++){var o=n.blocks[r];if(e>=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=I[this.text])}var t=e.prototype;return t.hasClass=function(e){return l.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),this.classes.length>0&&((t=t||document.createElement("span")).className=A(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=l.escape(A(this.classes)),t+='"');var n="";for(var r in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=l.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+l.escape(n)+'"');var o=l.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o},e}(),O=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</svg>"},e}(),P=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",k[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+k[this.pathName]+"'/>"},e}(),R=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+="/>"},e}();function D(e){if(e instanceof z)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var B={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},F={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},j={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function H(e,t,n){if(!B[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),o=B[t][r];if(!o&&e[0]in j&&(r=j[e[0]].charCodeAt(0),o=B[t][r]),o||"text"!==n||w(r)&&(o=B[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var U={},q={bin:1,close:1,inner:1,open:1,punct:1,rel:1},$={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},G={math:{},text:{}},V=G;function W(e,t,n,r,o,i){G[e][o]={font:t,group:n,replace:r},i&&r&&(G[e][r]=G[e][o])}var Y="math",K="text",X="main",J="ams",Z="accent-token",Q="bin",ee="close",te="inner",ne="mathord",re="op-token",oe="open",ie="punct",ae="rel",se="spacing",le="textord";W(Y,X,ae,"≡","\\equiv",!0),W(Y,X,ae,"≺","\\prec",!0),W(Y,X,ae,"≻","\\succ",!0),W(Y,X,ae,"∼","\\sim",!0),W(Y,X,ae,"⊥","\\perp"),W(Y,X,ae,"⪯","\\preceq",!0),W(Y,X,ae,"⪰","\\succeq",!0),W(Y,X,ae,"≃","\\simeq",!0),W(Y,X,ae,"∣","\\mid",!0),W(Y,X,ae,"≪","\\ll",!0),W(Y,X,ae,"≫","\\gg",!0),W(Y,X,ae,"≍","\\asymp",!0),W(Y,X,ae,"∥","\\parallel"),W(Y,X,ae,"⋈","\\bowtie",!0),W(Y,X,ae,"⌣","\\smile",!0),W(Y,X,ae,"⊑","\\sqsubseteq",!0),W(Y,X,ae,"⊒","\\sqsupseteq",!0),W(Y,X,ae,"≐","\\doteq",!0),W(Y,X,ae,"⌢","\\frown",!0),W(Y,X,ae,"∋","\\ni",!0),W(Y,X,ae,"∝","\\propto",!0),W(Y,X,ae,"⊢","\\vdash",!0),W(Y,X,ae,"⊣","\\dashv",!0),W(Y,X,ae,"∋","\\owns"),W(Y,X,ie,".","\\ldotp"),W(Y,X,ie,"⋅","\\cdotp"),W(Y,X,le,"#","\\#"),W(K,X,le,"#","\\#"),W(Y,X,le,"&","\\&"),W(K,X,le,"&","\\&"),W(Y,X,le,"ℵ","\\aleph",!0),W(Y,X,le,"∀","\\forall",!0),W(Y,X,le,"ℏ","\\hbar",!0),W(Y,X,le,"∃","\\exists",!0),W(Y,X,le,"∇","\\nabla",!0),W(Y,X,le,"♭","\\flat",!0),W(Y,X,le,"ℓ","\\ell",!0),W(Y,X,le,"♮","\\natural",!0),W(Y,X,le,"♣","\\clubsuit",!0),W(Y,X,le,"℘","\\wp",!0),W(Y,X,le,"♯","\\sharp",!0),W(Y,X,le,"♢","\\diamondsuit",!0),W(Y,X,le,"ℜ","\\Re",!0),W(Y,X,le,"♡","\\heartsuit",!0),W(Y,X,le,"ℑ","\\Im",!0),W(Y,X,le,"♠","\\spadesuit",!0),W(Y,X,le,"§","\\S",!0),W(K,X,le,"§","\\S"),W(Y,X,le,"¶","\\P",!0),W(K,X,le,"¶","\\P"),W(Y,X,le,"†","\\dag"),W(K,X,le,"†","\\dag"),W(K,X,le,"†","\\textdagger"),W(Y,X,le,"‡","\\ddag"),W(K,X,le,"‡","\\ddag"),W(K,X,le,"‡","\\textdaggerdbl"),W(Y,X,ee,"⎱","\\rmoustache",!0),W(Y,X,oe,"⎰","\\lmoustache",!0),W(Y,X,ee,"⟯","\\rgroup",!0),W(Y,X,oe,"⟮","\\lgroup",!0),W(Y,X,Q,"∓","\\mp",!0),W(Y,X,Q,"⊖","\\ominus",!0),W(Y,X,Q,"⊎","\\uplus",!0),W(Y,X,Q,"⊓","\\sqcap",!0),W(Y,X,Q,"∗","\\ast"),W(Y,X,Q,"⊔","\\sqcup",!0),W(Y,X,Q,"◯","\\bigcirc",!0),W(Y,X,Q,"∙","\\bullet"),W(Y,X,Q,"‡","\\ddagger"),W(Y,X,Q,"≀","\\wr",!0),W(Y,X,Q,"⨿","\\amalg"),W(Y,X,Q,"&","\\And"),W(Y,X,ae,"⟵","\\longleftarrow",!0),W(Y,X,ae,"⇐","\\Leftarrow",!0),W(Y,X,ae,"⟸","\\Longleftarrow",!0),W(Y,X,ae,"⟶","\\longrightarrow",!0),W(Y,X,ae,"⇒","\\Rightarrow",!0),W(Y,X,ae,"⟹","\\Longrightarrow",!0),W(Y,X,ae,"↔","\\leftrightarrow",!0),W(Y,X,ae,"⟷","\\longleftrightarrow",!0),W(Y,X,ae,"⇔","\\Leftrightarrow",!0),W(Y,X,ae,"⟺","\\Longleftrightarrow",!0),W(Y,X,ae,"↦","\\mapsto",!0),W(Y,X,ae,"⟼","\\longmapsto",!0),W(Y,X,ae,"↗","\\nearrow",!0),W(Y,X,ae,"↩","\\hookleftarrow",!0),W(Y,X,ae,"↪","\\hookrightarrow",!0),W(Y,X,ae,"↘","\\searrow",!0),W(Y,X,ae,"↼","\\leftharpoonup",!0),W(Y,X,ae,"⇀","\\rightharpoonup",!0),W(Y,X,ae,"↙","\\swarrow",!0),W(Y,X,ae,"↽","\\leftharpoondown",!0),W(Y,X,ae,"⇁","\\rightharpoondown",!0),W(Y,X,ae,"↖","\\nwarrow",!0),W(Y,X,ae,"⇌","\\rightleftharpoons",!0),W(Y,J,ae,"≮","\\nless",!0),W(Y,J,ae,"","\\@nleqslant"),W(Y,J,ae,"","\\@nleqq"),W(Y,J,ae,"⪇","\\lneq",!0),W(Y,J,ae,"≨","\\lneqq",!0),W(Y,J,ae,"","\\@lvertneqq"),W(Y,J,ae,"⋦","\\lnsim",!0),W(Y,J,ae,"⪉","\\lnapprox",!0),W(Y,J,ae,"⊀","\\nprec",!0),W(Y,J,ae,"⋠","\\npreceq",!0),W(Y,J,ae,"⋨","\\precnsim",!0),W(Y,J,ae,"⪹","\\precnapprox",!0),W(Y,J,ae,"≁","\\nsim",!0),W(Y,J,ae,"","\\@nshortmid"),W(Y,J,ae,"∤","\\nmid",!0),W(Y,J,ae,"⊬","\\nvdash",!0),W(Y,J,ae,"⊭","\\nvDash",!0),W(Y,J,ae,"⋪","\\ntriangleleft"),W(Y,J,ae,"⋬","\\ntrianglelefteq",!0),W(Y,J,ae,"⊊","\\subsetneq",!0),W(Y,J,ae,"","\\@varsubsetneq"),W(Y,J,ae,"⫋","\\subsetneqq",!0),W(Y,J,ae,"","\\@varsubsetneqq"),W(Y,J,ae,"≯","\\ngtr",!0),W(Y,J,ae,"","\\@ngeqslant"),W(Y,J,ae,"","\\@ngeqq"),W(Y,J,ae,"⪈","\\gneq",!0),W(Y,J,ae,"≩","\\gneqq",!0),W(Y,J,ae,"","\\@gvertneqq"),W(Y,J,ae,"⋧","\\gnsim",!0),W(Y,J,ae,"⪊","\\gnapprox",!0),W(Y,J,ae,"⊁","\\nsucc",!0),W(Y,J,ae,"⋡","\\nsucceq",!0),W(Y,J,ae,"⋩","\\succnsim",!0),W(Y,J,ae,"⪺","\\succnapprox",!0),W(Y,J,ae,"≆","\\ncong",!0),W(Y,J,ae,"","\\@nshortparallel"),W(Y,J,ae,"∦","\\nparallel",!0),W(Y,J,ae,"⊯","\\nVDash",!0),W(Y,J,ae,"⋫","\\ntriangleright"),W(Y,J,ae,"⋭","\\ntrianglerighteq",!0),W(Y,J,ae,"","\\@nsupseteqq"),W(Y,J,ae,"⊋","\\supsetneq",!0),W(Y,J,ae,"","\\@varsupsetneq"),W(Y,J,ae,"⫌","\\supsetneqq",!0),W(Y,J,ae,"","\\@varsupsetneqq"),W(Y,J,ae,"⊮","\\nVdash",!0),W(Y,J,ae,"⪵","\\precneqq",!0),W(Y,J,ae,"⪶","\\succneqq",!0),W(Y,J,ae,"","\\@nsubseteqq"),W(Y,J,Q,"⊴","\\unlhd"),W(Y,J,Q,"⊵","\\unrhd"),W(Y,J,ae,"↚","\\nleftarrow",!0),W(Y,J,ae,"↛","\\nrightarrow",!0),W(Y,J,ae,"⇍","\\nLeftarrow",!0),W(Y,J,ae,"⇏","\\nRightarrow",!0),W(Y,J,ae,"↮","\\nleftrightarrow",!0),W(Y,J,ae,"⇎","\\nLeftrightarrow",!0),W(Y,J,ae,"△","\\vartriangle"),W(Y,J,le,"ℏ","\\hslash"),W(Y,J,le,"▽","\\triangledown"),W(Y,J,le,"◊","\\lozenge"),W(Y,J,le,"Ⓢ","\\circledS"),W(Y,J,le,"®","\\circledR"),W(K,J,le,"®","\\circledR"),W(Y,J,le,"∡","\\measuredangle",!0),W(Y,J,le,"∄","\\nexists"),W(Y,J,le,"℧","\\mho"),W(Y,J,le,"Ⅎ","\\Finv",!0),W(Y,J,le,"⅁","\\Game",!0),W(Y,J,le,"‵","\\backprime"),W(Y,J,le,"▲","\\blacktriangle"),W(Y,J,le,"▼","\\blacktriangledown"),W(Y,J,le,"■","\\blacksquare"),W(Y,J,le,"⧫","\\blacklozenge"),W(Y,J,le,"★","\\bigstar"),W(Y,J,le,"∢","\\sphericalangle",!0),W(Y,J,le,"∁","\\complement",!0),W(Y,J,le,"ð","\\eth",!0),W(K,X,le,"ð","ð"),W(Y,J,le,"╱","\\diagup"),W(Y,J,le,"╲","\\diagdown"),W(Y,J,le,"□","\\square"),W(Y,J,le,"□","\\Box"),W(Y,J,le,"◊","\\Diamond"),W(Y,J,le,"¥","\\yen",!0),W(K,J,le,"¥","\\yen",!0),W(Y,J,le,"✓","\\checkmark",!0),W(K,J,le,"✓","\\checkmark"),W(Y,J,le,"ℶ","\\beth",!0),W(Y,J,le,"ℸ","\\daleth",!0),W(Y,J,le,"ℷ","\\gimel",!0),W(Y,J,le,"ϝ","\\digamma",!0),W(Y,J,le,"ϰ","\\varkappa"),W(Y,J,oe,"┌","\\@ulcorner",!0),W(Y,J,ee,"┐","\\@urcorner",!0),W(Y,J,oe,"└","\\@llcorner",!0),W(Y,J,ee,"┘","\\@lrcorner",!0),W(Y,J,ae,"≦","\\leqq",!0),W(Y,J,ae,"⩽","\\leqslant",!0),W(Y,J,ae,"⪕","\\eqslantless",!0),W(Y,J,ae,"≲","\\lesssim",!0),W(Y,J,ae,"⪅","\\lessapprox",!0),W(Y,J,ae,"≊","\\approxeq",!0),W(Y,J,Q,"⋖","\\lessdot"),W(Y,J,ae,"⋘","\\lll",!0),W(Y,J,ae,"≶","\\lessgtr",!0),W(Y,J,ae,"⋚","\\lesseqgtr",!0),W(Y,J,ae,"⪋","\\lesseqqgtr",!0),W(Y,J,ae,"≑","\\doteqdot"),W(Y,J,ae,"≓","\\risingdotseq",!0),W(Y,J,ae,"≒","\\fallingdotseq",!0),W(Y,J,ae,"∽","\\backsim",!0),W(Y,J,ae,"⋍","\\backsimeq",!0),W(Y,J,ae,"⫅","\\subseteqq",!0),W(Y,J,ae,"⋐","\\Subset",!0),W(Y,J,ae,"⊏","\\sqsubset",!0),W(Y,J,ae,"≼","\\preccurlyeq",!0),W(Y,J,ae,"⋞","\\curlyeqprec",!0),W(Y,J,ae,"≾","\\precsim",!0),W(Y,J,ae,"⪷","\\precapprox",!0),W(Y,J,ae,"⊲","\\vartriangleleft"),W(Y,J,ae,"⊴","\\trianglelefteq"),W(Y,J,ae,"⊨","\\vDash",!0),W(Y,J,ae,"⊪","\\Vvdash",!0),W(Y,J,ae,"⌣","\\smallsmile"),W(Y,J,ae,"⌢","\\smallfrown"),W(Y,J,ae,"≏","\\bumpeq",!0),W(Y,J,ae,"≎","\\Bumpeq",!0),W(Y,J,ae,"≧","\\geqq",!0),W(Y,J,ae,"⩾","\\geqslant",!0),W(Y,J,ae,"⪖","\\eqslantgtr",!0),W(Y,J,ae,"≳","\\gtrsim",!0),W(Y,J,ae,"⪆","\\gtrapprox",!0),W(Y,J,Q,"⋗","\\gtrdot"),W(Y,J,ae,"⋙","\\ggg",!0),W(Y,J,ae,"≷","\\gtrless",!0),W(Y,J,ae,"⋛","\\gtreqless",!0),W(Y,J,ae,"⪌","\\gtreqqless",!0),W(Y,J,ae,"≖","\\eqcirc",!0),W(Y,J,ae,"≗","\\circeq",!0),W(Y,J,ae,"≜","\\triangleq",!0),W(Y,J,ae,"∼","\\thicksim"),W(Y,J,ae,"≈","\\thickapprox"),W(Y,J,ae,"⫆","\\supseteqq",!0),W(Y,J,ae,"⋑","\\Supset",!0),W(Y,J,ae,"⊐","\\sqsupset",!0),W(Y,J,ae,"≽","\\succcurlyeq",!0),W(Y,J,ae,"⋟","\\curlyeqsucc",!0),W(Y,J,ae,"≿","\\succsim",!0),W(Y,J,ae,"⪸","\\succapprox",!0),W(Y,J,ae,"⊳","\\vartriangleright"),W(Y,J,ae,"⊵","\\trianglerighteq"),W(Y,J,ae,"⊩","\\Vdash",!0),W(Y,J,ae,"∣","\\shortmid"),W(Y,J,ae,"∥","\\shortparallel"),W(Y,J,ae,"≬","\\between",!0),W(Y,J,ae,"⋔","\\pitchfork",!0),W(Y,J,ae,"∝","\\varpropto"),W(Y,J,ae,"◀","\\blacktriangleleft"),W(Y,J,ae,"∴","\\therefore",!0),W(Y,J,ae,"∍","\\backepsilon"),W(Y,J,ae,"▶","\\blacktriangleright"),W(Y,J,ae,"∵","\\because",!0),W(Y,J,ae,"⋘","\\llless"),W(Y,J,ae,"⋙","\\gggtr"),W(Y,J,Q,"⊲","\\lhd"),W(Y,J,Q,"⊳","\\rhd"),W(Y,J,ae,"≂","\\eqsim",!0),W(Y,X,ae,"⋈","\\Join"),W(Y,J,ae,"≑","\\Doteq",!0),W(Y,J,Q,"∔","\\dotplus",!0),W(Y,J,Q,"∖","\\smallsetminus"),W(Y,J,Q,"⋒","\\Cap",!0),W(Y,J,Q,"⋓","\\Cup",!0),W(Y,J,Q,"⩞","\\doublebarwedge",!0),W(Y,J,Q,"⊟","\\boxminus",!0),W(Y,J,Q,"⊞","\\boxplus",!0),W(Y,J,Q,"⋇","\\divideontimes",!0),W(Y,J,Q,"⋉","\\ltimes",!0),W(Y,J,Q,"⋊","\\rtimes",!0),W(Y,J,Q,"⋋","\\leftthreetimes",!0),W(Y,J,Q,"⋌","\\rightthreetimes",!0),W(Y,J,Q,"⋏","\\curlywedge",!0),W(Y,J,Q,"⋎","\\curlyvee",!0),W(Y,J,Q,"⊝","\\circleddash",!0),W(Y,J,Q,"⊛","\\circledast",!0),W(Y,J,Q,"⋅","\\centerdot"),W(Y,J,Q,"⊺","\\intercal",!0),W(Y,J,Q,"⋒","\\doublecap"),W(Y,J,Q,"⋓","\\doublecup"),W(Y,J,Q,"⊠","\\boxtimes",!0),W(Y,J,ae,"⇢","\\dashrightarrow",!0),W(Y,J,ae,"⇠","\\dashleftarrow",!0),W(Y,J,ae,"⇇","\\leftleftarrows",!0),W(Y,J,ae,"⇆","\\leftrightarrows",!0),W(Y,J,ae,"⇚","\\Lleftarrow",!0),W(Y,J,ae,"↞","\\twoheadleftarrow",!0),W(Y,J,ae,"↢","\\leftarrowtail",!0),W(Y,J,ae,"↫","\\looparrowleft",!0),W(Y,J,ae,"⇋","\\leftrightharpoons",!0),W(Y,J,ae,"↶","\\curvearrowleft",!0),W(Y,J,ae,"↺","\\circlearrowleft",!0),W(Y,J,ae,"↰","\\Lsh",!0),W(Y,J,ae,"⇈","\\upuparrows",!0),W(Y,J,ae,"↿","\\upharpoonleft",!0),W(Y,J,ae,"⇃","\\downharpoonleft",!0),W(Y,X,ae,"⊶","\\origof",!0),W(Y,X,ae,"⊷","\\imageof",!0),W(Y,J,ae,"⊸","\\multimap",!0),W(Y,J,ae,"↭","\\leftrightsquigarrow",!0),W(Y,J,ae,"⇉","\\rightrightarrows",!0),W(Y,J,ae,"⇄","\\rightleftarrows",!0),W(Y,J,ae,"↠","\\twoheadrightarrow",!0),W(Y,J,ae,"↣","\\rightarrowtail",!0),W(Y,J,ae,"↬","\\looparrowright",!0),W(Y,J,ae,"↷","\\curvearrowright",!0),W(Y,J,ae,"↻","\\circlearrowright",!0),W(Y,J,ae,"↱","\\Rsh",!0),W(Y,J,ae,"⇊","\\downdownarrows",!0),W(Y,J,ae,"↾","\\upharpoonright",!0),W(Y,J,ae,"⇂","\\downharpoonright",!0),W(Y,J,ae,"⇝","\\rightsquigarrow",!0),W(Y,J,ae,"⇝","\\leadsto"),W(Y,J,ae,"⇛","\\Rrightarrow",!0),W(Y,J,ae,"↾","\\restriction"),W(Y,X,le,"‘","`"),W(Y,X,le,"$","\\$"),W(K,X,le,"$","\\$"),W(K,X,le,"$","\\textdollar"),W(Y,X,le,"%","\\%"),W(K,X,le,"%","\\%"),W(Y,X,le,"_","\\_"),W(K,X,le,"_","\\_"),W(K,X,le,"_","\\textunderscore"),W(Y,X,le,"∠","\\angle",!0),W(Y,X,le,"∞","\\infty",!0),W(Y,X,le,"′","\\prime"),W(Y,X,le,"△","\\triangle"),W(Y,X,le,"Γ","\\Gamma",!0),W(Y,X,le,"Δ","\\Delta",!0),W(Y,X,le,"Θ","\\Theta",!0),W(Y,X,le,"Λ","\\Lambda",!0),W(Y,X,le,"Ξ","\\Xi",!0),W(Y,X,le,"Π","\\Pi",!0),W(Y,X,le,"Σ","\\Sigma",!0),W(Y,X,le,"Υ","\\Upsilon",!0),W(Y,X,le,"Φ","\\Phi",!0),W(Y,X,le,"Ψ","\\Psi",!0),W(Y,X,le,"Ω","\\Omega",!0),W(Y,X,le,"A","Α"),W(Y,X,le,"B","Β"),W(Y,X,le,"E","Ε"),W(Y,X,le,"Z","Ζ"),W(Y,X,le,"H","Η"),W(Y,X,le,"I","Ι"),W(Y,X,le,"K","Κ"),W(Y,X,le,"M","Μ"),W(Y,X,le,"N","Ν"),W(Y,X,le,"O","Ο"),W(Y,X,le,"P","Ρ"),W(Y,X,le,"T","Τ"),W(Y,X,le,"X","Χ"),W(Y,X,le,"¬","\\neg",!0),W(Y,X,le,"¬","\\lnot"),W(Y,X,le,"⊤","\\top"),W(Y,X,le,"⊥","\\bot"),W(Y,X,le,"∅","\\emptyset"),W(Y,J,le,"∅","\\varnothing"),W(Y,X,ne,"α","\\alpha",!0),W(Y,X,ne,"β","\\beta",!0),W(Y,X,ne,"γ","\\gamma",!0),W(Y,X,ne,"δ","\\delta",!0),W(Y,X,ne,"ϵ","\\epsilon",!0),W(Y,X,ne,"ζ","\\zeta",!0),W(Y,X,ne,"η","\\eta",!0),W(Y,X,ne,"θ","\\theta",!0),W(Y,X,ne,"ι","\\iota",!0),W(Y,X,ne,"κ","\\kappa",!0),W(Y,X,ne,"λ","\\lambda",!0),W(Y,X,ne,"μ","\\mu",!0),W(Y,X,ne,"ν","\\nu",!0),W(Y,X,ne,"ξ","\\xi",!0),W(Y,X,ne,"ο","\\omicron",!0),W(Y,X,ne,"π","\\pi",!0),W(Y,X,ne,"ρ","\\rho",!0),W(Y,X,ne,"σ","\\sigma",!0),W(Y,X,ne,"τ","\\tau",!0),W(Y,X,ne,"υ","\\upsilon",!0),W(Y,X,ne,"ϕ","\\phi",!0),W(Y,X,ne,"χ","\\chi",!0),W(Y,X,ne,"ψ","\\psi",!0),W(Y,X,ne,"ω","\\omega",!0),W(Y,X,ne,"ε","\\varepsilon",!0),W(Y,X,ne,"ϑ","\\vartheta",!0),W(Y,X,ne,"ϖ","\\varpi",!0),W(Y,X,ne,"ϱ","\\varrho",!0),W(Y,X,ne,"ς","\\varsigma",!0),W(Y,X,ne,"φ","\\varphi",!0),W(Y,X,Q,"∗","*",!0),W(Y,X,Q,"+","+"),W(Y,X,Q,"−","-",!0),W(Y,X,Q,"⋅","\\cdot",!0),W(Y,X,Q,"∘","\\circ"),W(Y,X,Q,"÷","\\div",!0),W(Y,X,Q,"±","\\pm",!0),W(Y,X,Q,"×","\\times",!0),W(Y,X,Q,"∩","\\cap",!0),W(Y,X,Q,"∪","\\cup",!0),W(Y,X,Q,"∖","\\setminus"),W(Y,X,Q,"∧","\\land"),W(Y,X,Q,"∨","\\lor"),W(Y,X,Q,"∧","\\wedge",!0),W(Y,X,Q,"∨","\\vee",!0),W(Y,X,le,"√","\\surd"),W(Y,X,oe,"⟨","\\langle",!0),W(Y,X,oe,"∣","\\lvert"),W(Y,X,oe,"∥","\\lVert"),W(Y,X,ee,"?","?"),W(Y,X,ee,"!","!"),W(Y,X,ee,"⟩","\\rangle",!0),W(Y,X,ee,"∣","\\rvert"),W(Y,X,ee,"∥","\\rVert"),W(Y,X,ae,"=","="),W(Y,X,ae,":",":"),W(Y,X,ae,"≈","\\approx",!0),W(Y,X,ae,"≅","\\cong",!0),W(Y,X,ae,"≥","\\ge"),W(Y,X,ae,"≥","\\geq",!0),W(Y,X,ae,"←","\\gets"),W(Y,X,ae,">","\\gt",!0),W(Y,X,ae,"∈","\\in",!0),W(Y,X,ae,"","\\@not"),W(Y,X,ae,"⊂","\\subset",!0),W(Y,X,ae,"⊃","\\supset",!0),W(Y,X,ae,"⊆","\\subseteq",!0),W(Y,X,ae,"⊇","\\supseteq",!0),W(Y,J,ae,"⊈","\\nsubseteq",!0),W(Y,J,ae,"⊉","\\nsupseteq",!0),W(Y,X,ae,"⊨","\\models"),W(Y,X,ae,"←","\\leftarrow",!0),W(Y,X,ae,"≤","\\le"),W(Y,X,ae,"≤","\\leq",!0),W(Y,X,ae,"<","\\lt",!0),W(Y,X,ae,"→","\\rightarrow",!0),W(Y,X,ae,"→","\\to"),W(Y,J,ae,"≱","\\ngeq",!0),W(Y,J,ae,"≰","\\nleq",!0),W(Y,X,se," ","\\ "),W(Y,X,se," ","\\space"),W(Y,X,se," ","\\nobreakspace"),W(K,X,se," ","\\ "),W(K,X,se," "," "),W(K,X,se," ","\\space"),W(K,X,se," ","\\nobreakspace"),W(Y,X,se,null,"\\nobreak"),W(Y,X,se,null,"\\allowbreak"),W(Y,X,ie,",",","),W(Y,X,ie,";",";"),W(Y,J,Q,"⊼","\\barwedge",!0),W(Y,J,Q,"⊻","\\veebar",!0),W(Y,X,Q,"⊙","\\odot",!0),W(Y,X,Q,"⊕","\\oplus",!0),W(Y,X,Q,"⊗","\\otimes",!0),W(Y,X,le,"∂","\\partial",!0),W(Y,X,Q,"⊘","\\oslash",!0),W(Y,J,Q,"⊚","\\circledcirc",!0),W(Y,J,Q,"⊡","\\boxdot",!0),W(Y,X,Q,"△","\\bigtriangleup"),W(Y,X,Q,"▽","\\bigtriangledown"),W(Y,X,Q,"†","\\dagger"),W(Y,X,Q,"⋄","\\diamond"),W(Y,X,Q,"⋆","\\star"),W(Y,X,Q,"◃","\\triangleleft"),W(Y,X,Q,"▹","\\triangleright"),W(Y,X,oe,"{","\\{"),W(K,X,le,"{","\\{"),W(K,X,le,"{","\\textbraceleft"),W(Y,X,ee,"}","\\}"),W(K,X,le,"}","\\}"),W(K,X,le,"}","\\textbraceright"),W(Y,X,oe,"{","\\lbrace"),W(Y,X,ee,"}","\\rbrace"),W(Y,X,oe,"[","\\lbrack",!0),W(K,X,le,"[","\\lbrack",!0),W(Y,X,ee,"]","\\rbrack",!0),W(K,X,le,"]","\\rbrack",!0),W(Y,X,oe,"(","\\lparen",!0),W(Y,X,ee,")","\\rparen",!0),W(K,X,le,"<","\\textless",!0),W(K,X,le,">","\\textgreater",!0),W(Y,X,oe,"⌊","\\lfloor",!0),W(Y,X,ee,"⌋","\\rfloor",!0),W(Y,X,oe,"⌈","\\lceil",!0),W(Y,X,ee,"⌉","\\rceil",!0),W(Y,X,le,"\\","\\backslash"),W(Y,X,le,"∣","|"),W(Y,X,le,"∣","\\vert"),W(K,X,le,"|","\\textbar",!0),W(Y,X,le,"∥","\\|"),W(Y,X,le,"∥","\\Vert"),W(K,X,le,"∥","\\textbardbl"),W(K,X,le,"~","\\textasciitilde"),W(K,X,le,"\\","\\textbackslash"),W(K,X,le,"^","\\textasciicircum"),W(Y,X,ae,"↑","\\uparrow",!0),W(Y,X,ae,"⇑","\\Uparrow",!0),W(Y,X,ae,"↓","\\downarrow",!0),W(Y,X,ae,"⇓","\\Downarrow",!0),W(Y,X,ae,"↕","\\updownarrow",!0),W(Y,X,ae,"⇕","\\Updownarrow",!0),W(Y,X,re,"∐","\\coprod"),W(Y,X,re,"⋁","\\bigvee"),W(Y,X,re,"⋀","\\bigwedge"),W(Y,X,re,"⨄","\\biguplus"),W(Y,X,re,"⋂","\\bigcap"),W(Y,X,re,"⋃","\\bigcup"),W(Y,X,re,"∫","\\int"),W(Y,X,re,"∫","\\intop"),W(Y,X,re,"∬","\\iint"),W(Y,X,re,"∭","\\iiint"),W(Y,X,re,"∏","\\prod"),W(Y,X,re,"∑","\\sum"),W(Y,X,re,"⨂","\\bigotimes"),W(Y,X,re,"⨁","\\bigoplus"),W(Y,X,re,"⨀","\\bigodot"),W(Y,X,re,"∮","\\oint"),W(Y,X,re,"∯","\\oiint"),W(Y,X,re,"∰","\\oiiint"),W(Y,X,re,"⨆","\\bigsqcup"),W(Y,X,re,"∫","\\smallint"),W(K,X,te,"…","\\textellipsis"),W(Y,X,te,"…","\\mathellipsis"),W(K,X,te,"…","\\ldots",!0),W(Y,X,te,"…","\\ldots",!0),W(Y,X,te,"⋯","\\@cdots",!0),W(Y,X,te,"⋱","\\ddots",!0),W(Y,X,le,"⋮","\\varvdots"),W(Y,X,Z,"ˊ","\\acute"),W(Y,X,Z,"ˋ","\\grave"),W(Y,X,Z,"¨","\\ddot"),W(Y,X,Z,"~","\\tilde"),W(Y,X,Z,"ˉ","\\bar"),W(Y,X,Z,"˘","\\breve"),W(Y,X,Z,"ˇ","\\check"),W(Y,X,Z,"^","\\hat"),W(Y,X,Z,"⃗","\\vec"),W(Y,X,Z,"˙","\\dot"),W(Y,X,Z,"˚","\\mathring"),W(Y,X,ne,"","\\@imath"),W(Y,X,ne,"","\\@jmath"),W(Y,X,le,"ı","ı"),W(Y,X,le,"ȷ","ȷ"),W(K,X,le,"ı","\\i",!0),W(K,X,le,"ȷ","\\j",!0),W(K,X,le,"ß","\\ss",!0),W(K,X,le,"æ","\\ae",!0),W(K,X,le,"œ","\\oe",!0),W(K,X,le,"ø","\\o",!0),W(K,X,le,"Æ","\\AE",!0),W(K,X,le,"Œ","\\OE",!0),W(K,X,le,"Ø","\\O",!0),W(K,X,Z,"ˊ","\\'"),W(K,X,Z,"ˋ","\\`"),W(K,X,Z,"ˆ","\\^"),W(K,X,Z,"˜","\\~"),W(K,X,Z,"ˉ","\\="),W(K,X,Z,"˘","\\u"),W(K,X,Z,"˙","\\."),W(K,X,Z,"¸","\\c"),W(K,X,Z,"˚","\\r"),W(K,X,Z,"ˇ","\\v"),W(K,X,Z,"¨",'\\"'),W(K,X,Z,"˝","\\H"),W(K,X,Z,"◯","\\textcircled");var ce={"--":!0,"---":!0,"``":!0,"''":!0};W(K,X,le,"–","--",!0),W(K,X,le,"–","\\textendash"),W(K,X,le,"—","---",!0),W(K,X,le,"—","\\textemdash"),W(K,X,le,"‘","`",!0),W(K,X,le,"‘","\\textquoteleft"),W(K,X,le,"’","'",!0),W(K,X,le,"’","\\textquoteright"),W(K,X,le,"“","``",!0),W(K,X,le,"“","\\textquotedblleft"),W(K,X,le,"”","''",!0),W(K,X,le,"”","\\textquotedblright"),W(Y,X,le,"°","\\degree",!0),W(K,X,le,"°","\\degree"),W(K,X,le,"°","\\textdegree",!0),W(Y,X,le,"£","\\pounds"),W(Y,X,le,"£","\\mathsterling",!0),W(K,X,le,"£","\\pounds"),W(K,X,le,"£","\\textsterling",!0),W(Y,J,le,"✠","\\maltese"),W(K,J,le,"✠","\\maltese");for(var ue='0123456789/@."',he=0;he<ue.length;he++){var de=ue.charAt(he);W(Y,X,le,de,de)}for(var pe='0123456789!@*()-=+";:?/.,',me=0;me<pe.length;me++){var fe=pe.charAt(me);W(K,X,le,fe,fe)}for(var ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ve=0;ve<ge.length;ve++){var ye=ge.charAt(ve);W(Y,X,ne,ye,ye),W(K,X,le,ye,ye)}W(Y,J,le,"C","ℂ"),W(K,J,le,"C","ℂ"),W(Y,J,le,"H","ℍ"),W(K,J,le,"H","ℍ"),W(Y,J,le,"N","ℕ"),W(K,J,le,"N","ℕ"),W(Y,J,le,"P","ℙ"),W(K,J,le,"P","ℙ"),W(Y,J,le,"Q","ℚ"),W(K,J,le,"Q","ℚ"),W(Y,J,le,"R","ℝ"),W(K,J,le,"R","ℝ"),W(Y,J,le,"Z","ℤ"),W(K,J,le,"Z","ℤ"),W(Y,X,ne,"h","ℎ"),W(K,X,ne,"h","ℎ");for(var _e="",be=0;be<ge.length;be++){var we=ge.charAt(be);W(Y,X,ne,we,_e=String.fromCharCode(55349,56320+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56372+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56424+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56580+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56736+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56788+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56840+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56944+be)),W(K,X,le,we,_e),be<26&&(W(Y,X,ne,we,_e=String.fromCharCode(55349,56632+be)),W(K,X,le,we,_e),W(Y,X,ne,we,_e=String.fromCharCode(55349,56476+be)),W(K,X,le,we,_e))}W(Y,X,ne,"k",_e=String.fromCharCode(55349,56668)),W(K,X,le,"k",_e);for(var xe=0;xe<10;xe++){var ke=xe.toString();W(Y,X,ne,ke,_e=String.fromCharCode(55349,57294+xe)),W(K,X,le,ke,_e),W(Y,X,ne,ke,_e=String.fromCharCode(55349,57314+xe)),W(K,X,le,ke,_e),W(Y,X,ne,ke,_e=String.fromCharCode(55349,57324+xe)),W(K,X,le,ke,_e),W(Y,X,ne,ke,_e=String.fromCharCode(55349,57334+xe)),W(K,X,le,ke,_e)}for(var Se="ÐÞþ",Ae=0;Ae<Se.length;Ae++){var Ee=Se.charAt(Ae);W(Y,X,ne,Ee,Ee),W(K,X,le,Ee,Ee)}var Te=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ce=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ne=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Me=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Le=function(e,t){return t.size<2?e:Ne[e-1][t.size-1]},Ie=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Me[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:Le(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Me[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=Le(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!U[t=e>=5?0:e>=3?1:2]){var n=U[t]={cssEmPerMu:F.quad[t]/18};for(var r in F)F.hasOwnProperty(r)&&(n[r]=F[r][t])}return U[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();Ie.BASESIZE=6;var ze=Ie,Oe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Pe={ex:!0,em:!0,mu:!0},Re=function(e){return"string"!=typeof e&&(e=e.unit),e in Oe||e in Pe||"ex"===e},De=function(e,t){var n;if(e.unit in Oe)n=Oe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var o;if(o=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=o.fontMetrics().xHeight;else{if("em"!==e.unit)throw new r("Invalid unit: '"+e.unit+"'");n=o.fontMetrics().quad}o!==t&&(n*=o.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},Be=function(e,t,n){return V[n][e]&&V[n][e].replace&&(e=V[n][e].replace),{value:e,metrics:H(e,t,n)}},Fe=function(e,t,n,r,o){var i,a=Be(e,t,n),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),i=new z(e,s.height,s.depth,l,s.skew,s.width,o)}else"undefined"!=typeof console&&console.warn("No character metrics for '"+e+"' in style '"+t+"' and mode '"+n+"'"),i=new z(e,0,0,0,0,0,o);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var c=r.getColor();c&&(i.style.color=c)}return i},je=function(e,t){if(A(e.classes)!==A(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},He=function(e){for(var t=0,n=0,r=0,o=0;o<e.children.length;o++){var i=e.children[o];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},Ue=function(e,t,n,r){var o=new N(e,t,n,r);return He(o),o},qe=function(e,t,n,r){return new N(e,t,n,r)},$e=function(e){var t=new S(e);return He(t),t},Ge=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},Ve={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},We={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ye={fontMap:Ve,makeSymbol:Fe,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&Be(e,"Main-Bold",t).metrics?Fe(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===V[t][e].font?Fe(e,"Main-Regular",t,n,r):Fe(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:Ue,makeSvgSpan:qe,makeLineSpan:function(e,t,n){var r=Ue([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var o=new M(e,t,n,r);return He(o),o},makeFragment:$e,wrapFragment:function(e,t){return e instanceof S?Ue([],[e],t):e},makeVList:function(e,t){for(var n=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,i=1;i<t.length;i++){var a=-t[i].shift-o-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);o+=a,n.push({type:"kern",size:s}),n.push(t[i])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var c=e.positionData,u=0;u<e.children.length;u++){var h=e.children[u];c-="kern"===h.type?h.size:h.elem.height+h.elem.depth}l=c}else if("bottom"===e.positionType)l=-e.positionData;else{var d=e.children[0];if("elem"!==d.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-d.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-d.elem.depth}}return{children:e.children,depth:l}}(e),r=n.children,o=n.depth,i=0,a=0;a<r.length;a++){var s=r[a];if("elem"===s.type){var l=s.elem;i=Math.max(i,l.maxFontSize,l.height)}}i+=2;var c=Ue(["pstrut"],[]);c.style.height=i+"em";for(var u=[],h=o,d=o,p=o,m=0;m<r.length;m++){var f=r[m];if("kern"===f.type)p+=f.size;else{var g=f.elem,v=f.wrapperClasses||[],y=f.wrapperStyle||{},_=Ue(v,[c,g],void 0,y);_.style.top=-i-p-g.depth+"em",f.marginLeft&&(_.style.marginLeft=f.marginLeft),f.marginRight&&(_.style.marginRight=f.marginRight),u.push(_),p+=g.height+g.depth}h=Math.min(h,p),d=Math.max(d,p)}var b,w=Ue(["vlist"],u);if(w.style.height=d+"em",h<0){var x=Ue([],[]),k=Ue(["vlist"],[x]);k.style.height=-h+"em";var S=Ue(["vlist-s"],[new z("​")]);b=[Ue(["vlist-r"],[w,S]),Ue(["vlist-r"],[k])]}else b=[Ue(["vlist-r"],[w])];var A=Ue(["vlist-t"],b);return 2===b.length&&A.classes.push("vlist-t2"),A.height=d,A.depth=-h,A},makeOrd:function(e,t,n){var o=e.mode,i=e.text,a=["mord"],s="math"===o||"text"===o&&t.font,l=s?t.font:t.fontFamily;if(55349===i.charCodeAt(0)){var c=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,o="math"===t?0:1;if(119808<=n&&n<120484){var i=Math.floor((n-119808)/26);return[Te[i][2],Te[i][o]]}if(120782<=n&&n<=120831){var a=Math.floor((n-120782)/10);return[Ce[a][2],Ce[a][o]]}if(120485===n||120486===n)return[Te[0][2],Te[0][o]];if(120486<n&&n<120782)return["",""];throw new r("Unsupported character: "+e)}(i,o),u=c[0],h=c[1];return Fe(i,u,o,t,a.concat(h))}if(l){var d,p;if("boldsymbol"===l){var m=function(e,t,n,r,o){return"textord"!==o&&Be(e,"Math-BoldItalic",t).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}}(i,o,0,0,n);d=m.fontName,p=[m.fontClass]}else s?(d=Ve[l].fontName,p=[l]):(d=Ge(l,t.fontWeight,t.fontShape),p=[l,t.fontWeight,t.fontShape]);if(Be(i,d,o).metrics)return Fe(i,d,o,t,a.concat(p));if(ce.hasOwnProperty(i)&&"Typewriter"===d.substr(0,10)){for(var f=[],g=0;g<i.length;g++)f.push(Fe(i[g],d,o,t,a.concat(p)));return $e(f)}}if("mathord"===n)return Fe(i,"Math-Italic",o,t,a.concat(["mathnormal"]));if("textord"===n){var v=V[o][i]&&V[o][i].font;if("ams"===v){var y=Ge("amsrm",t.fontWeight,t.fontShape);return Fe(i,y,o,t,a.concat("amsrm",t.fontWeight,t.fontShape))}if("main"!==v&&v){var _=Ge(v,t.fontWeight,t.fontShape);return Fe(i,_,o,t,a.concat(_,t.fontWeight,t.fontShape))}var b=Ge("textrm",t.fontWeight,t.fontShape);return Fe(i,b,o,t,a.concat(t.fontWeight,t.fontShape))}throw new Error("unexpected type: "+n+" in makeOrd")},makeGlue:function(e,t){var n=Ue(["mspace"],[],t),r=De(e,t);return n.style.marginRight=r+"em",n},staticSvg:function(e,t){var n=We[e],r=n[0],o=n[1],i=n[2],a=new P(r),s=new O([a],{width:o+"em",height:i+"em",style:"width:"+o+"em",viewBox:"0 0 "+1e3*o+" "+1e3*i,preserveAspectRatio:"xMinYMin"}),l=qe(["overlay"],[s],t);return l.height=i,l.style.height=i+"em",l.style.width=o+"em",l},svgData:We,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof z&&r instanceof z&&je(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e}},Ke={number:3,unit:"mu"},Xe={number:4,unit:"mu"},Je={number:5,unit:"mu"},Ze={mord:{mop:Ke,mbin:Xe,mrel:Je,minner:Ke},mop:{mord:Ke,mop:Ke,mrel:Je,minner:Ke},mbin:{mord:Xe,mop:Xe,mopen:Xe,minner:Xe},mrel:{mord:Je,mop:Je,mopen:Je,minner:Je},mopen:{},mclose:{mop:Ke,mbin:Xe,mrel:Je,minner:Ke},mpunct:{mord:Ke,mop:Ke,mrel:Je,mopen:Ke,mclose:Ke,mpunct:Ke,minner:Ke},minner:{mord:Ke,mop:Ke,mbin:Xe,mrel:Je,mopen:Ke,mpunct:Ke,minner:Ke}},Qe={mord:{mop:Ke},mop:{mord:Ke,mop:Ke},mbin:{},mrel:{},mopen:{},mclose:{mop:Ke},mpunct:{},minner:{mop:Ke}},et={},tt={},nt={};function rt(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:o},l=0;l<n.length;++l)et[n[l]]=s;t&&(i&&(tt[t]=i),a&&(nt[t]=a))}function ot(e){rt({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}var it=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},at=function(e){return"ordgroup"===e.type?e.body:[e]},st=Ye.makeSpan,lt=["leftmost","mbin","mopen","mrel","mop","mpunct"],ct=["rightmost","mrel","mclose","mpunct"],ut={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT},ht={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},dt=function(e,t,n,r){void 0===r&&(r=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=yt(e[i],t);if(a instanceof S){var s=a.children;o.push.apply(o,s)}else o.push(a)}if(Ye.tryCombineChars(o),!n)return o;var c=t;if(1===e.length){var u=e[0];"sizing"===u.type?c=t.havingSize(u.size):"styling"===u.type&&(c=t.havingStyle(ut[u.style]))}var h=st([r[0]||"leftmost"],[],t),d=st([r[1]||"rightmost"],[],t),p="root"===n;return pt(o,(function(e,t){var n=t.classes[0],r=e.classes[0];"mbin"===n&&l.contains(ct,r)?t.classes[0]="mord":"mbin"===r&&l.contains(lt,n)&&(e.classes[0]="mord")}),{node:h},d,p),pt(o,(function(e,t){var n=gt(t),r=gt(e),o=n&&r?e.hasClass("mtight")?Qe[n][r]:Ze[n][r]:null;if(o)return Ye.makeGlue(o,c)}),{node:h},d,p),o},pt=function e(t,n,r,o,i){o&&t.push(o);for(var a=0;a<t.length;a++){var s=t[a],l=mt(s);if(l)e(l.children,n,r,null,i);else{var c=!s.hasClass("mspace");if(c){var u=n(s,r.node);u&&(r.insertAfter?r.insertAfter(u):(t.unshift(u),a++))}c?r.node=s:i&&s.hasClass("newline")&&(r.node=st(["leftmost"])),r.insertAfter=function(e){return function(n){t.splice(e+1,0,n),a++}}(a)}}o&&t.pop()},mt=function(e){return e instanceof S||e instanceof M||e instanceof N&&e.hasClass("enclosing")?e:null},ft=function e(t,n){var r=mt(t);if(r){var o=r.children;if(o.length){if("right"===n)return e(o[o.length-1],"right");if("left"===n)return e(o[0],"left")}}return t},gt=function(e,t){return e?(t&&(e=ft(e,t)),ht[e.classes[0]]||null):null},vt=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return st(t.concat(n))},yt=function(e,t,n){if(!e)return st();if(tt[e.type]){var o=tt[e.type](e,t);if(n&&t.size!==n.size){o=st(t.sizingClasses(n),[o],t);var i=t.sizeMultiplier/n.sizeMultiplier;o.height*=i,o.depth*=i}return o}throw new r("Got group of unknown type: '"+e.type+"'")};function _t(e,t){var n=st(["base"],e,t),r=st(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function bt(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);var r,o=dt(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(r=o.pop());for(var i,a=[],s=[],l=0;l<o.length;l++)if(s.push(o[l]),o[l].hasClass("mbin")||o[l].hasClass("mrel")||o[l].hasClass("allowbreak")){for(var c=!1;l<o.length-1&&o[l+1].hasClass("mspace")&&!o[l+1].hasClass("newline");)l++,s.push(o[l]),o[l].hasClass("nobreak")&&(c=!0);c||(a.push(_t(s,t)),s=[])}else o[l].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(_t(s,t)),s=[]),a.push(o[l]));s.length>0&&a.push(_t(s,t)),n?((i=_t(dt(n,t,!0))).classes=["tag"],a.push(i)):r&&a.push(r);var u=st(["katex-html"],a);if(u.setAttribute("aria-hidden","true"),i){var h=i.children[0];h.style.height=u.height+u.depth+"em",h.style.verticalAlign=-u.depth+"em"}return u}function wt(e){return new S(e)}var xt=function(){function e(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=A(this.classes));for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=l.escape(this.attributes[t]),e+='"');this.classes.length>0&&(e+=' class ="'+l.escape(A(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+="</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),kt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return l.escape(this.toText())},t.toText=function(){return this.text},e}(),St={MathNode:xt,TextNode:kt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=e>=.05555&&e<=.05556?" ":e>=.1666&&e<=.1667?" ":e>=.2222&&e<=.2223?" ":e>=.2777&&e<=.2778?"  ":e>=-.05556&&e<=-.05555?" ⁣":e>=-.1667&&e<=-.1666?" ⁣":e>=-.2223&&e<=-.2222?" ⁣":e>=-.2778&&e<=-.2777?" ⁣":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:wt},At=function(e,t,n){return!V[t][e]||!V[t][e].replace||55349===e.charCodeAt(0)||ce.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=V[t][e].replace),new St.TextNode(e)},Et=function(e){return 1===e.length?e[0]:new St.MathNode("mrow",e)},Tt=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return l.contains(["\\imath","\\jmath"],o)?null:(V[r][o]&&V[r][o].replace&&(o=V[r][o].replace),H(o,Ye.fontMap[n].fontName,r)?Ye.fontMap[n].variant:null)},Ct=function(e,t,n){if(1===e.length){var r=Mt(e[0],t);return n&&r instanceof xt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o,i=[],a=0;a<e.length;a++){var s=Mt(e[a],t);if(s instanceof xt&&o instanceof xt){if("mtext"===s.type&&"mtext"===o.type&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){var l;(l=o.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===o.type){var c;(c=o.children).push.apply(c,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===o.type){var u=s.children[0];if(u instanceof kt&&"."===u.text){var h;(h=o.children).push.apply(h,s.children);continue}}else if("mi"===o.type&&1===o.children.length){var d=o.children[0];if(d instanceof kt&&"̸"===d.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof kt&&p.text.length>0&&(p.text=p.text.slice(0,1)+"̸"+p.text.slice(1),i.pop())}}}i.push(s),o=s}return i},Nt=function(e,t,n){return Et(Ct(e,t,n))},Mt=function(e,t){if(!e)return new St.MathNode("mrow");if(nt[e.type])return nt[e.type](e,t);throw new r("Got group of unknown type: '"+e.type+"'")};function Lt(e,t,n,r,o){var i,a=Ct(e,n);i=1===a.length&&a[0]instanceof xt&&l.contains(["mrow","mtable"],a[0].type)?a[0]:new St.MathNode("mrow",a);var s=new St.MathNode("annotation",[new St.TextNode(t)]);s.setAttribute("encoding","application/x-tex");var c=new St.MathNode("semantics",[i,s]),u=new St.MathNode("math",[c]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var h=o?"katex":"katex-mathml";return Ye.makeSpan([h],[u])}var It=function(e){return new ze({style:e.displayMode?y.DISPLAY:y.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},zt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Ye.makeSpan(n,[e])}return e},Ot={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Pt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Rt=function(e,t,n,r,o){var i,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(i=Ye.makeSpan(["stretchy",t],[],o),"fbox"===t){var s=o.color&&o.getColor();s&&(i.style.borderColor=s)}}else{var l=[];/^[bx]cancel$/.test(t)&&l.push(new R({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&l.push(new R({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new O(l,{width:"100%",height:a+"em"});i=Ye.makeSvgSpan([],[c],o)}return i.height=a,i.style.height=a+"em",i},Dt=function(e){var t=new St.MathNode("mo",[new St.TextNode(Ot[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Bt=function(e,t){var n=function(){var n=4e5,r=e.label.substr(1);if(l.contains(["widehat","widecheck","widetilde","utilde"],r)){var o,i,a,s="ordgroup"===(m=e.base).type?m.body.length:1;if(s>5)"widehat"===r||"widecheck"===r?(o=420,n=2364,a=.42,i=r+"4"):(o=312,n=2340,a=.34,i="tilde4");else{var c=[1,1,2,2,3,3][s];"widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][c],o=[0,239,300,360,420][c],a=[0,.24,.3,.3,.36,.42][c],i=r+c):(n=[0,600,1033,2339,2340][c],o=[0,260,286,306,312][c],a=[0,.26,.286,.3,.306,.34][c],i="tilde"+c)}var u=new P(i),h=new O([u],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:Ye.makeSvgSpan([],[h],t),minWidth:0,height:a}}var d,p,m,f=[],g=Pt[r],v=g[0],y=g[1],_=g[2],b=_/1e3,w=v.length;if(1===w)d=["hide-tail"],p=[g[3]];else if(2===w)d=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==w)throw new Error("Correct katexImagesData or update code here to support\n "+w+" children.");d=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var x=0;x<w;x++){var k=new P(v[x]),S=new O([k],{width:"400em",height:b+"em",viewBox:"0 0 "+n+" "+_,preserveAspectRatio:p[x]+" slice"}),A=Ye.makeSvgSpan([d[x]],[S],t);if(1===w)return{span:A,minWidth:y,height:b};A.style.height=b+"em",f.push(A)}return{span:Ye.makeSpan(["stretchy"],f,t),minWidth:y,height:b}}(),r=n.span,o=n.minWidth,i=n.height;return r.height=i,r.style.height=i+"em",o>0&&(r.style.minWidth=o+"em"),r};function Ft(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function jt(e){var t=Ht(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function Ht(e){return e&&("atom"===e.type||$.hasOwnProperty(e.type))?e:null}var Ut=function(e,t){var n,r,o;e&&"supsub"===e.type?(n=(r=Ft(e.base,"accent")).base,e.base=n,o=function(e){if(e instanceof N)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(yt(e,t)),e.base=r):n=(r=Ft(e,"accent")).base;var i=yt(n,t.havingCrampedStyle()),a=0;if(r.isShifty&&l.isCharacterBox(n)){var s=l.getBaseElem(n);a=D(yt(s,t.havingCrampedStyle())).skew}var c,u="\\c"===r.label,h=u?i.height+i.depth:Math.min(i.height,t.fontMetrics().xHeight);if(r.isStretchy)c=Bt(r,t),c=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"elem",elem:c,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+2*a+"em)",marginLeft:2*a+"em"}:void 0}]},t);else{var d,p;"\\vec"===r.label?(d=Ye.staticSvg("vec",t),p=Ye.svgData.vec[1]):((d=D(d=Ye.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,p=d.width,u&&(h+=d.depth)),c=Ye.makeSpan(["accent-body"],[d]);var m="\\textcircled"===r.label;m&&(c.classes.push("accent-full"),h=i.height);var f=a;m||(f-=p/2),c.style.left=f+"em","\\textcircled"===r.label&&(c.style.top=".2em"),c=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:-h},{type:"elem",elem:c}]},t)}var g=Ye.makeSpan(["mord","accent"],[c],t);return o?(o.children[0]=g,o.height=Math.max(g.height,o.height),o.classes[0]="mord",o):g},qt=function(e,t){var n=e.isStretchy?Dt(e.label):new St.MathNode("mo",[At(e.label,e.mode)]),r=new St.MathNode("mover",[Mt(e.base,t),n]);return r.setAttribute("accent","true"),r},$t=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));rt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=it(t[0]),r=!$t.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:Ut,mathmlBuilder:qt}),rt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(e,t){var n=t[0],r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Ut,mathmlBuilder:qt}),rt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:function(e,t){var n=yt(e.base,t),r=Bt(e,t),o="\\utilde"===e.label?.12:0,i=Ye.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Ye.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var n=Dt(e.label),r=new St.MathNode("munder",[Mt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var Gt=function(e){var t=new St.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};rt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=e.funcName;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,o=t.havingStyle(r.sup()),i=Ye.wrapFragment(yt(e.body,o,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";i.classes.push(a+"-arrow-pad"),e.below&&(o=t.havingStyle(r.sub()),(n=Ye.wrapFragment(yt(e.below,o,t),t)).classes.push(a+"-arrow-pad"));var s,l=Bt(e,t),c=-t.fontMetrics().axisHeight+.5*l.height,u=-t.fontMetrics().axisHeight-.5*l.height-.111;if((i.depth>.25||"\\xleftequilibrium"===e.label)&&(u-=i.depth),n){var h=-t.fontMetrics().axisHeight+n.height+.5*l.height+.111;s=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c},{type:"elem",elem:n,shift:h}]},t)}else s=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:l,shift:c}]},t);return s.children[0].children[0].children[1].classes.push("svg-align"),Ye.makeSpan(["mrel","x-arrow"],[s],t)},mathmlBuilder:function(e,t){var n,r=Dt(e.label);if(r.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var o=Gt(Mt(e.body,t));if(e.below){var i=Gt(Mt(e.below,t));n=new St.MathNode("munderover",[r,i,o])}else n=new St.MathNode("mover",[r,o])}else if(e.below){var a=Gt(Mt(e.below,t));n=new St.MathNode("munder",[r,a])}else n=Gt(),n=new St.MathNode("mover",[r,n]);return n}});var Vt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Wt=function(e){return"textord"===e.type&&"@"===e.text};function Yt(e,t,n){var r=Vt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var o={type:"atom",text:r,mode:"math",family:"rel"},i={type:"ordgroup",mode:"math",body:[n.callFunction("\\\\cdleft",[t[0]],[]),n.callFunction("\\Big",[o],[]),n.callFunction("\\\\cdright",[t[1]],[])]};return n.callFunction("\\\\cdparent",[i],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}rt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder:function(e,t){var n=t.havingStyle(t.style.sup()),r=Ye.wrapFragment(yt(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=.8-r.depth+"em",r.height=0,r.depth=0,r},mathmlBuilder:function(e,t){var n=new St.MathNode("mrow",[Mt(e.label,t)]);return(n=new St.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new St.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),rt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(e,t){return{type:"cdlabelparent",mode:e.parser.mode,fragment:t[0]}},htmlBuilder:function(e,t){var n=Ye.wrapFragment(yt(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:function(e,t){return new St.MathNode("mrow",[Mt(e.fragment,t)])}}),rt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,o=Ft(t[0],"ordgroup").body,i="",a=0;a<o.length;a++)i+=Ft(o[a],"textord").text;var s,l=parseInt(i);if(isNaN(l))throw new r("\\@char has non-numeric argument "+i);if(l<0||l>=1114111)throw new r("\\@char with invalid code point "+i);return l<=65535?s=String.fromCharCode(l):(l-=65536,s=String.fromCharCode(55296+(l>>10),56320+(1023&l))),{type:"textord",mode:n.mode,text:s}}});var Kt=function(e,t){var n=dt(e.body,t.withColor(e.color),!1);return Ye.makeFragment(n)},Xt=function(e,t){var n=Ct(e.body,t.withColor(e.color)),r=new St.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};rt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,r=Ft(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:at(o)}},htmlBuilder:Kt,mathmlBuilder:Xt}),rt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,o=Ft(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:Kt,mathmlBuilder:Xt}),rt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=n[0],i=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:i,size:o&&Ft(o,"size").value}},htmlBuilder:function(e,t){var n=Ye.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=De(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new St.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",De(e.size,t)+"em")),n}});var Jt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Zt=function(e){var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new r("Expected a control sequence",e);return t},Qt=function(e,t,n,r){var o=e.gullet.macros.get(n.text);null==o&&(n.noexpand=!0,o={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,o,r)};rt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName;t.consumeSpaces();var o=t.fetch();if(Jt[o.text])return"\\global"!==n&&"\\\\globallong"!==n||(o.text=Jt[o.text]),Ft(t.parseFunction(),"internal");throw new r("Invalid token after macro prefix",o)}}),rt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,o=t.gullet.popToken(),i=o.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new r("Expected a control sequence",o);for(var a,s=0,l=[[]];"{"!==t.gullet.future().text;)if("#"===(o=t.gullet.popToken()).text){if("{"===t.gullet.future().text){a=t.gullet.future(),l[s].push("{");break}if(o=t.gullet.popToken(),!/^[1-9]$/.test(o.text))throw new r('Invalid argument number "'+o.text+'"');if(parseInt(o.text)!==s+1)throw new r('Argument number "'+o.text+'" out of order');s++,l.push([])}else{if("EOF"===o.text)throw new r("Expected a macro definition");l[s].push(o.text)}var c=t.gullet.consumeArg().tokens;return a&&c.unshift(a),"\\edef"!==n&&"\\xdef"!==n||(c=t.gullet.expandTokens(c)).reverse(),t.gullet.macros.set(i,{tokens:c,numArgs:s,delimiters:l},n===Jt[n]),{type:"internal",mode:t.mode}}}),rt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Zt(t.gullet.popToken());t.gullet.consumeSpaces();var o=function(e){var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t}(t);return Qt(t,r,o,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),rt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e){var t=e.parser,n=e.funcName,r=Zt(t.gullet.popToken()),o=t.gullet.popToken(),i=t.gullet.popToken();return Qt(t,r,i,"\\\\globalfuture"===n),t.gullet.pushToken(i),t.gullet.pushToken(o),{type:"internal",mode:t.mode}}});var en=function(e,t,n){var r=H(V.math[e]&&V.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r},tn=function(e,t,n,r){var o=n.havingBaseStyle(t),i=Ye.makeSpan(r.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i},nn=function(e,t,n){var r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=o+"em",e.height-=o,e.depth+=o},rn=function(e,t,n,r,o,i){var a=function(e,t,n,r){return Ye.makeSymbol(e,"Size"+t+"-Regular",n,r)}(e,t,o,r),s=tn(Ye.makeSpan(["delimsizing","size"+t],[a],r),y.TEXT,r,i);return n&&nn(s,r,y.TEXT),s},on=function(e,t,n){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Ye.makeSpan(["delimsizinginner",r],[Ye.makeSpan([],[Ye.makeSymbol(e,t,n)])])}},an=function(e,t,n){var r=B["Size4-Regular"][e.charCodeAt(0)]?B["Size4-Regular"][e.charCodeAt(0)][4].toFixed(3):B["Size1-Regular"][e.charCodeAt(0)][4].toFixed(3),o=new P("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),i=new O([o],{width:r+"em",height:t+"em",style:"width:"+r+"em",viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=Ye.makeSvgSpan([],[i],n);return a.height=t,a.style.height=t+"em",a.style.width=r+"em",{type:"elem",elem:a}},sn={type:"kern",size:-.008},ln=["|","\\lvert","\\rvert","\\vert"],cn=["\\|","\\lVert","\\rVert","\\Vert"],un=function(e,t,n,r,o,i){var a,s,c,u;a=c=u=e,s=null;var h="Size1-Regular";"\\uparrow"===e?c=u="⏐":"\\Uparrow"===e?c=u="‖":"\\downarrow"===e?a=c="⏐":"\\Downarrow"===e?a=c="‖":"\\updownarrow"===e?(a="\\uparrow",c="⏐",u="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",c="‖",u="\\Downarrow"):l.contains(ln,e)?c="∣":l.contains(cn,e)?c="∥":"["===e||"\\lbrack"===e?(a="⎡",c="⎢",u="⎣",h="Size4-Regular"):"]"===e||"\\rbrack"===e?(a="⎤",c="⎥",u="⎦",h="Size4-Regular"):"\\lfloor"===e||"⌊"===e?(c=a="⎢",u="⎣",h="Size4-Regular"):"\\lceil"===e||"⌈"===e?(a="⎡",c=u="⎢",h="Size4-Regular"):"\\rfloor"===e||"⌋"===e?(c=a="⎥",u="⎦",h="Size4-Regular"):"\\rceil"===e||"⌉"===e?(a="⎤",c=u="⎥",h="Size4-Regular"):"("===e||"\\lparen"===e?(a="⎛",c="⎜",u="⎝",h="Size4-Regular"):")"===e||"\\rparen"===e?(a="⎞",c="⎟",u="⎠",h="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a="⎧",s="⎨",u="⎩",c="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="⎫",s="⎬",u="⎭",c="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(a="⎧",u="⎩",c="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(a="⎫",u="⎭",c="⎪",h="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(a="⎧",u="⎭",c="⎪",h="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(a="⎫",u="⎩",c="⎪",h="Size4-Regular");var d=en(a,h,o),p=d.height+d.depth,m=en(c,h,o),f=m.height+m.depth,g=en(u,h,o),v=g.height+g.depth,_=0,b=1;if(null!==s){var w=en(s,h,o);_=w.height+w.depth,b=2}var x=p+v+_,k=x+Math.max(0,Math.ceil((t-x)/(b*f)))*b*f,S=r.fontMetrics().axisHeight;n&&(S*=r.sizeMultiplier);var A=k/2-S,E=[];if(E.push(on(u,h,o)),E.push(sn),null===s){var T=k-p-v+.016;E.push(an(c,T,r))}else{var C=(k-p-v-_)/2+.016;E.push(an(c,C,r)),E.push(sn),E.push(on(s,h,o)),E.push(sn),E.push(an(c,C,r))}E.push(sn),E.push(on(a,h,o));var N=r.havingBaseStyle(y.TEXT),M=Ye.makeVList({positionType:"bottom",positionData:A,children:E},N);return tn(Ye.makeSpan(["delimsizing","mult"],[M],N),y.TEXT,r,i)},hn=.08,dn=function(e,t,n,r,o){var i=function(e,t,n){t*=1e3;var r="";switch(e){case"sqrtMain":r=function(e,t){return"M95,"+(622+e+t)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+e/2.075+" -"+e+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+e)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize1":r=function(e,t){return"M263,"+(601+e+t)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+e/2.084+" -"+e+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+e)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize2":r=function(e,t){return"M983 "+(10+e+t)+"\nl"+e/3.13+" -"+e+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+e)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize3":r=function(e,t){return"M424,"+(2398+e+t)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+e/4.223+" -"+e+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+e)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+e)+" "+t+"\nh400000v"+(40+e)+"h-400000z"}(t,x);break;case"sqrtSize4":r=function(e,t){return"M473,"+(2713+e+t)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+e/5.298+" -"+e+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+e)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"}(t,x);break;case"sqrtTall":r=function(e,t,n){return"M702 "+(e+t)+"H400000"+(40+e)+"\nH742v"+(n-54-t-e)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 "+t+"H400000v"+(40+e)+"H742z"}(t,x,n)}return r}(e,r,n),a=new P(e,i),s=new O([a],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Ye.makeSvgSpan(["hide-tail"],[s],o)},pn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],mn=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],fn=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],gn=[0,1.2,1.8,2.4,3],vn=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],yn=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"stack"}],_n=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],bn=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},wn=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size);o<n.length&&"stack"!==n[o].type;o++){var i=en(e,bn(n[o]),"math"),a=i.height+i.depth;if("small"===n[o].type&&(a*=r.havingBaseStyle(n[o].style).sizeMultiplier),a>t)return n[o]}return n[n.length-1]},xn=function(e,t,n,r,o,i){var a;"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),a=l.contains(fn,e)?vn:l.contains(pn,e)?_n:yn;var s=wn(e,t,a,r);return"small"===s.type?function(e,t,n,r,o,i){var a=Ye.makeSymbol(e,"Main-Regular",o,r),s=tn(a,t,r,i);return n&&nn(s,r,t),s}(e,s.style,n,r,o,i):"large"===s.type?rn(e,s.size,n,r,o,i):un(e,t,n,r,o,i)},kn=function(e,t){var n,r,o=t.havingBaseSizing(),i=wn("\\surd",e*o.sizeMultiplier,_n,o),a=o.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,c=0,u=0;return"small"===i.type?(e<1?a=1:e<1.4&&(a=.7),c=(1+s)/a,(n=dn("sqrtMain",l=(1+s+hn)/a,u=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",r=.833/a):"large"===i.type?(u=1080*gn[i.size],c=(gn[i.size]+s)/a,l=(gn[i.size]+s+hn)/a,(n=dn("sqrtSize"+i.size,l,u,s,t)).style.minWidth="1.02em",r=1/a):(l=e+s+hn,c=e+s,u=Math.floor(1e3*e+s)+80,(n=dn("sqrtTall",l,u,s,t)).style.minWidth="0.742em",r=1.056),n.height=c,n.style.height=l+"em",{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}},Sn=function(e,t,n,o,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),l.contains(pn,e)||l.contains(fn,e))return rn(e,t,!1,n,o,i);if(l.contains(mn,e))return un(e,gn[t],!1,n,o,i);throw new r("Illegal delimiter: '"+e+"'")},An=gn,En=xn,Tn=function(e,t,n,r,o,i){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-a,n+a),c=Math.max(l/500*901,2*l-s);return xn(e,c,!0,r,o,i)},Cn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Nn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Mn(e,t){var n=Ht(e);if(n&&l.contains(Nn,n.text))return n;throw new r(n?"Invalid delimiter '"+n.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function Ln(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}rt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(e,t){var n=Mn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Cn[e.funcName].size,mclass:Cn[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Ye.makeSpan([e.mclass]):Sn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(At(e.delim,e.mode));var n=new St.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true"),n.setAttribute("minsize",An[e.size]+"em"),n.setAttribute("maxsize",An[e.size]+"em"),n}}),rt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new r("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:Mn(t[0],e).text,color:n}}}),rt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=Mn(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=Ft(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){Ln(e);for(var n,r,o=dt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,l=0;l<o.length;l++)o[l].isMiddle?s=!0:(i=Math.max(o[l].height,i),a=Math.max(o[l].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?vt(t,["mopen"]):Tn(e.left,i,a,t,e.mode,["mopen"]),o.unshift(n),s)for(var c=1;c<o.length;c++){var u=o[c].isMiddle;u&&(o[c]=Tn(u.delim,i,a,u.options,e.mode,[]))}if("."===e.right)r=vt(t,["mclose"]);else{var h=e.rightColor?t.withColor(e.rightColor):t;r=Tn(e.right,i,a,h,e.mode,["mclose"])}return o.push(r),Ye.makeSpan(["minner"],o,t)},mathmlBuilder:function(e,t){Ln(e);var n=Ct(e.body,t);if("."!==e.left){var r=new St.MathNode("mo",[At(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var o=new St.MathNode("mo",[At(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return Et(n)}}),rt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=Mn(t[0],e);if(!e.parser.leftrightDepth)throw new r("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=vt(t,[]);else{n=Sn(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:function(e,t){var n="\\vert"===e.delim||"|"===e.delim?At("|","text"):At(e.delim,e.mode),r=new St.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var In=function(e,t){var n,r,o=Ye.wrapFragment(yt(e.body,t),t),i=e.label.substr(1),a=t.sizeMultiplier,s=0,c=l.isCharacterBox(e.body);if("sout"===i)(n=Ye.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else if("phase"===i){var u=De({number:.6,unit:"pt"},t),h=De({number:.35,unit:"ex"},t);a/=t.havingBaseSizing().sizeMultiplier;var d=o.height+o.depth+u+h;o.style.paddingLeft=d/2+u+"em";var p=Math.floor(1e3*d*a),m=function(e){return"M400000 "+e+" H0 L"+e/2+" 0 l65 45 L145 "+(e-80)+" H400000z"}(p),f=new O([new P("phase",m)],{width:"400em",height:p/1e3+"em",viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});(n=Ye.makeSvgSpan(["hide-tail"],[f],t)).style.height=d+"em",s=o.depth+u+h}else{/cancel/.test(i)?c||o.classes.push("cancel-pad"):"angl"===i?o.classes.push("anglpad"):o.classes.push("boxpad");var g=0,v=0,y=0;/box/.test(i)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),v=g=t.fontMetrics().fboxsep+("colorbox"===i?0:y)):"angl"===i?(g=4*(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),v=Math.max(0,.25-o.depth)):v=g=c?.2:0,n=Rt(o,i,g,v,t),/fbox|boxed|fcolorbox/.test(i)?(n.style.borderStyle="solid",n.style.borderWidth=y+"em"):"angl"===i&&.049!==y&&(n.style.borderTopWidth=y+"em",n.style.borderRightWidth=y+"em"),s=o.depth+v,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}if(e.backgroundColor)r=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:o,shift:0}]},t);else{var _=/cancel|phase/.test(i)?["svg-align"]:[];r=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:_}]},t)}return/cancel/.test(i)&&(r.height=o.height,r.depth=o.depth),/cancel/.test(i)&&!c?Ye.makeSpan(["mord","cancel-lap"],[r],t):Ye.makeSpan(["mord"],[r],t)},zn=function(e,t){var n=0,r=new St.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Mt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};rt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=Ft(t[0],"color-token").color,a=t[1];return{type:"enclose",mode:r.mode,label:o,backgroundColor:i,body:a}},htmlBuilder:In,mathmlBuilder:zn}),rt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=Ft(t[0],"color-token").color,a=Ft(t[1],"color-token").color,s=t[2];return{type:"enclose",mode:r.mode,label:o,backgroundColor:a,borderColor:i,body:s}},htmlBuilder:In,mathmlBuilder:zn}),rt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),rt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:In,mathmlBuilder:zn}),rt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\angl",body:t[0]}}});var On={};function Pn(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<n.length;++l)On[n[l]]=s;i&&(tt[t]=i),a&&(nt[t]=a)}function Rn(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var Dn=function(e){if(!e.parser.settings.displayMode)throw new r("{"+e.envName+"} can be used only in display mode.")};function Bn(e,t,n){var o=t.hskipBeforeAndAfter,i=t.addJot,a=t.cols,s=t.arraystretch,l=t.colSeparationType,c=t.addEqnNum,u=t.singleRow,h=t.emptySingleRow,d=t.maxNumCols,p=t.leqno;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var m=e.gullet.expandMacroAsText("\\arraystretch");if(null==m)s=1;else if(!(s=parseFloat(m))||s<0)throw new r("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var f=[],g=[f],v=[],y=[];for(y.push(Rn(e));;){var _=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),_={type:"ordgroup",mode:e.mode,body:_},n&&(_={type:"styling",mode:e.mode,style:n,body:[_]}),f.push(_);var b=e.fetch().text;if("&"===b){if(d&&f.length===d){if(u||l)throw new r("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else{if("\\end"===b){1===f.length&&"styling"===_.type&&0===_.body[0].body.length&&(g.length>1||!h)&&g.pop(),y.length<g.length+1&&y.push([]);break}if("\\\\"!==b)throw new r("Expected & or \\\\ or \\cr or \\end",e.nextToken);e.consume();var w=void 0;" "!==e.gullet.future().text&&(w=e.parseSizeGroup(!0)),v.push(w?w.value:null),y.push(Rn(e)),f=[],g.push(f)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:i,arraystretch:s,body:g,cols:a,rowGaps:v,hskipBeforeAndAfter:o,hLinesBeforeRow:y,colSeparationType:l,addEqnNum:c,leqno:p}}function Fn(e){return"d"===e.substr(0,1)?"display":"text"}var jn=function(e,t){var n,o,i=e.body.length,a=e.hLinesBeforeRow,s=0,c=new Array(i),u=[],h=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,p=5*d;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(y.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var m="CD"===e.colSeparationType?De({number:3,unit:"ex"},t):12*d,f=3*d,g=e.arraystretch*m,v=.7*g,_=.3*g,b=0;function w(e){for(var t=0;t<e.length;++t)t>0&&(b+=.25),u.push({pos:b,isDashed:e[t]})}for(w(a[0]),n=0;n<e.body.length;++n){var x=e.body[n],k=v,S=_;s<x.length&&(s=x.length);var A=new Array(x.length);for(o=0;o<x.length;++o){var E=yt(x[o],t);S<E.depth&&(S=E.depth),k<E.height&&(k=E.height),A[o]=E}var T=e.rowGaps[n],C=0;T&&(C=De(T,t))>0&&(S<(C+=_)&&(S=C),C=0),e.addJot&&(S+=f),A.height=k,A.depth=S,b+=k,A.pos=b,b+=S+C,c[n]=A,w(a[n+1])}var N,M,L=b/2+t.fontMetrics().axisHeight,I=e.cols||[],z=[],O=[];if(e.addEqnNum)for(n=0;n<i;++n){var P=c[n],R=P.pos-L,D=Ye.makeSpan(["eqn-num"],[],t);D.depth=P.depth,D.height=P.height,O.push({type:"elem",elem:D,shift:R})}for(o=0,M=0;o<s||M<I.length;++o,++M){for(var B=I[M]||{},F=!0;"separator"===B.type;){if(F||((N=Ye.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",z.push(N)),"|"!==B.separator&&":"!==B.separator)throw new r("Invalid separator type: "+B.separator);var j="|"===B.separator?"solid":"dashed",H=Ye.makeSpan(["vertical-separator"],[],t);H.style.height=b+"em",H.style.borderRightWidth=h+"em",H.style.borderRightStyle=j,H.style.margin="0 -"+h/2+"em",H.style.verticalAlign=-(b-L)+"em",z.push(H),B=I[++M]||{},F=!1}if(!(o>=s)){var U=void 0;(o>0||e.hskipBeforeAndAfter)&&0!==(U=l.deflt(B.pregap,p))&&((N=Ye.makeSpan(["arraycolsep"],[])).style.width=U+"em",z.push(N));var q=[];for(n=0;n<i;++n){var $=c[n],G=$[o];if(G){var V=$.pos-L;G.depth=$.depth,G.height=$.height,q.push({type:"elem",elem:G,shift:V})}}q=Ye.makeVList({positionType:"individualShift",children:q},t),q=Ye.makeSpan(["col-align-"+(B.align||"c")],[q]),z.push(q),(o<s-1||e.hskipBeforeAndAfter)&&0!==(U=l.deflt(B.postgap,p))&&((N=Ye.makeSpan(["arraycolsep"],[])).style.width=U+"em",z.push(N))}}if(c=Ye.makeSpan(["mtable"],z),u.length>0){for(var W=Ye.makeLineSpan("hline",t,h),Y=Ye.makeLineSpan("hdashline",t,h),K=[{type:"elem",elem:c,shift:0}];u.length>0;){var X=u.pop(),J=X.pos-L;X.isDashed?K.push({type:"elem",elem:Y,shift:J}):K.push({type:"elem",elem:W,shift:J})}c=Ye.makeVList({positionType:"individualShift",children:K},t)}if(e.addEqnNum){var Z=Ye.makeVList({positionType:"individualShift",children:O},t);return Z=Ye.makeSpan(["tag"],[Z],t),Ye.makeFragment([c,Z])}return Ye.makeSpan(["mord"],[c],t)},Hn={c:"center ",l:"left ",r:"right "},Un=function(e,t){for(var n=[],r=new St.MathNode("mtd",[],["mtr-glue"]),o=new St.MathNode("mtd",[],["mml-eqn-num"]),i=0;i<e.body.length;i++){for(var a=e.body[i],s=[],l=0;l<a.length;l++)s.push(new St.MathNode("mtd",[Mt(a[l],t)]));e.addEqnNum&&(s.unshift(r),s.push(r),e.leqno?s.unshift(o):s.push(o)),n.push(new St.MathNode("mtr",s))}var c=new St.MathNode("mtable",n),u=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",u.toFixed(4)+"em");var h="",d="";if(e.cols&&e.cols.length>0){var p=e.cols,m="",f=!1,g=0,v=p.length;"separator"===p[0].type&&(h+="top ",g=1),"separator"===p[p.length-1].type&&(h+="bottom ",v-=1);for(var y=g;y<v;y++)"align"===p[y].type?(d+=Hn[p[y].align],f&&(m+="none "),f=!0):"separator"===p[y].type&&f&&(m+="|"===p[y].separator?"solid ":"dashed ",f=!1);c.setAttribute("columnalign",d.trim()),/[sd]/.test(m)&&c.setAttribute("columnlines",m.trim())}if("align"===e.colSeparationType){for(var _=e.cols||[],b="",w=1;w<_.length;w++)b+=w%2?"0em ":"1em ";c.setAttribute("columnspacing",b.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var x="",k=e.hLinesBeforeRow;h+=k[0].length>0?"left ":"",h+=k[k.length-1].length>0?"right ":"";for(var S=1;S<k.length-1;S++)x+=0===k[S].length?"none ":k[S][0]?"dashed ":"solid ";return/[sd]/.test(x)&&c.setAttribute("rowlines",x.trim()),""!==h&&(c=new St.MathNode("menclose",[c])).setAttribute("notation",h.trim()),e.arraystretch&&e.arraystretch<1&&(c=new St.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},qn=function(e,t){-1===e.envName.indexOf("ed")&&Dn(e);var n,o=[],i=e.envName.indexOf("at")>-1?"alignat":"align",a=Bn(e.parser,{cols:o,addJot:!0,addEqnNum:"align"===e.envName||"alignat"===e.envName,emptySingleRow:!0,colSeparationType:i,maxNumCols:"split"===e.envName?2:void 0,leqno:e.parser.settings.leqno},"display"),s=0,l={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",u=0;u<t[0].body.length;u++)c+=Ft(t[0].body[u],"textord").text;n=Number(c),s=2*n}var h=!s;a.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var o=Ft(e[t],"styling");Ft(o.body[0],"ordgroup").body.unshift(l)}if(h)s<e.length&&(s=e.length);else{var i=e.length/2;if(n<i)throw new r("Too many math in a row: expected "+n+", but got "+i,e[0])}}));for(var d=0;d<s;++d){var p="r",m=0;d%2==1?p="l":d>0&&h&&(m=1),o[d]={type:"align",align:p,pregap:m,postgap:0}}return a.colSeparationType=h?"align":"alignat",a};Pn({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n=(Ht(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=jt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new r("Unknown column alignment: "+t,e)})),o={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return Bn(e.parser,o,Fn(e.envName))},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",o={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var i=e.parser;if(i.consumeSpaces(),"["===i.fetch().text){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,-1==="lcr".indexOf(n))throw new r("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),o.cols=[{type:"align",align:n}]}}var a=Bn(e.parser,o,Fn(e.envName)),s=Math.max.apply(Math,[0].concat(a.body.map((function(e){return e.length}))));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Bn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(Ht(t[0])?[t[0]]:Ft(t[0],"ordgroup").body).map((function(e){var t=jt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new r("Unknown column alignment: "+t,e)}));if(n.length>1)throw new r("{subarray} can contain only one column");var o={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((o=Bn(e.parser,o,"script")).body.length>0&&o.body[0].length>1)throw new r("{subarray} can contain only one column");return o},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(e){var t=Bn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Fn(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:qn,htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(e){l.contains(["gather","gather*"],e.envName)&&Dn(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",addEqnNum:"gather"===e.envName,emptySingleRow:!0,leqno:e.parser.settings.leqno};return Bn(e.parser,t,"display")},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:qn,htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(e){Dn(e);var t={addEqnNum:"equation"===e.envName,emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return Bn(e.parser,t,"display")},htmlBuilder:jn,mathmlBuilder:Un}),Pn({type:"array",names:["CD"],props:{numArgs:0},handler:function(e){return Dn(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"!==n&&"\\\\"!==n){if("\\end"===n){0===t[t.length-1].length&&t.pop();break}throw new r("Expected \\\\ or \\cr or \\end",e.nextToken)}e.consume()}for(var o,i,a=[],s=[a],l=0;l<t.length;l++){for(var c=t[l],u={type:"styling",body:[],mode:"math",style:"display"},h=0;h<c.length;h++)if(Wt(c[h])){a.push(u);var d=jt(c[h+=1]).text,p=new Array(2);if(p[0]={type:"ordgroup",mode:"math",body:[]},p[1]={type:"ordgroup",mode:"math",body:[]},"=|.".indexOf(d)>-1);else{if(!("<>AV".indexOf(d)>-1))throw new r('Expected one of "<>AV=|." after @',c[h]);for(var m=0;m<2;m++){for(var f=!0,g=h+1;g<c.length;g++){if(i=d,("mathord"===(o=c[g]).type||"atom"===o.type)&&o.text===i){f=!1,h=g;break}if(Wt(c[g]))throw new r("Missing a "+d+" character to complete a CD arrow.",c[g]);p[m].body.push(c[g])}if(f)throw new r("Missing a "+d+" character to complete a CD arrow.",c[h])}}var v={type:"styling",body:[Yt(d,p,e)],mode:"math",style:"display"};a.push(v),u={type:"styling",body:[],mode:"math",style:"display"}}else u.body.push(c[h]);l%2==0?a.push(u):a.shift(),a=[],s.push(a)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:"math",body:s,arraystretch:1,addJot:!0,rowGaps:[null],cols:new Array(s[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25}),colSeparationType:"CD",hLinesBeforeRow:new Array(s.length+1).fill([])}}(e.parser)},htmlBuilder:jn,mathmlBuilder:Un}),rt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e,t){throw new r(e.funcName+" valid only within array environment")}});var $n=On;rt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,o=e.funcName,i=t[0];if("ordgroup"!==i.type)throw new r("Invalid environment name",i);for(var a="",s=0;s<i.body.length;++s)a+=Ft(i.body[s],"textord").text;if("\\begin"===o){if(!$n.hasOwnProperty(a))throw new r("No such environment: "+a,i);var l=$n[a],c=n.parseArguments("\\begin{"+a+"}",l),u=c.args,h=c.optArgs,d={mode:n.mode,envName:a,parser:n},p=l.handler(d,u,h);n.expect("\\end",!1);var m=n.nextToken,f=Ft(n.parseFunction(),"environment");if(f.name!==a)throw new r("Mismatch: \\begin{"+a+"} matched by \\end{"+f.name+"}",m);return p}return{type:"environment",mode:n.mode,name:a,nameGroup:i}}});var Gn=Ye.makeSpan;function Vn(e,t){var n=dt(e.body,t,!0);return Gn([e.mclass],n,t)}function Wn(e,t){var n,r=Ct(e.body,t);return"minner"===e.mclass?St.newDocumentFragment(r):("mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new St.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new St.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}rt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.substr(5),body:at(o),isCharacterBox:l.isCharacterBox(o)}},htmlBuilder:Vn,mathmlBuilder:Wn});var Yn=function(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family};rt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:Yn(t[0]),body:at(t[1]),isCharacterBox:l.isCharacterBox(t[1])}}}),rt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,r=e.parser,o=e.funcName,i=t[1],a=t[0];n="\\stackrel"!==o?Yn(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:at(i)},c={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[c],isCharacterBox:l.isCharacterBox(c)}},htmlBuilder:Vn,mathmlBuilder:Wn});var Kn=function(e,t){var n=e.font,r=t.withFont(n);return yt(e.body,r)},Xn=function(e,t){var n=e.font,r=t.withFont(n);return Mt(e.body,r)},Jn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};rt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=it(t[0]),i=r;return i in Jn&&(i=Jn[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:Kn,mathmlBuilder:Xn}),rt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0],o=l.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Yn(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),rt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=e.breakOnTokenText,i=n.mode,a=n.parseExpression(!0,o);return{type:"font",mode:i,font:"math"+r.slice(1),body:{type:"ordgroup",mode:n.mode,body:a}}},htmlBuilder:Kn,mathmlBuilder:Xn});var Zn=function(e,t){var n=t;return"display"===e?n=n.id>=y.SCRIPT.id?n.text():y.DISPLAY:"text"===e&&n.size===y.DISPLAY.size?n=y.TEXT:"script"===e?n=y.SCRIPT:"scriptscript"===e&&(n=y.SCRIPTSCRIPT),n},Qn=function(e,t){var n,r=Zn(e.size,t.style),o=r.fracNum(),i=r.fracDen();n=t.havingStyle(o);var a=yt(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}n=t.havingStyle(i);var c,u,h,d,p,m,f,g,v,_,b=yt(e.denom,n,t);if(e.hasBarLine?(e.barSize?(u=De(e.barSize,t),c=Ye.makeLineSpan("frac-line",t,u)):c=Ye.makeLineSpan("frac-line",t),u=c.height,h=c.height):(c=null,u=0,h=t.fontMetrics().defaultRuleThickness),r.size===y.DISPLAY.size||"display"===e.size?(d=t.fontMetrics().num1,p=u>0?3*h:7*h,m=t.fontMetrics().denom1):(u>0?(d=t.fontMetrics().num2,p=h):(d=t.fontMetrics().num3,p=3*h),m=t.fontMetrics().denom2),c){var w=t.fontMetrics().axisHeight;d-a.depth-(w+.5*u)<p&&(d+=p-(d-a.depth-(w+.5*u))),w-.5*u-(b.height-m)<p&&(m+=p-(w-.5*u-(b.height-m)));var x=-(w-.5*u);f=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:m},{type:"elem",elem:c,shift:x},{type:"elem",elem:a,shift:-d}]},t)}else{var k=d-a.depth-(b.height-m);k<p&&(d+=.5*(p-k),m+=.5*(p-k)),f=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:m},{type:"elem",elem:a,shift:-d}]},t)}return n=t.havingStyle(r),f.height*=n.sizeMultiplier/t.sizeMultiplier,f.depth*=n.sizeMultiplier/t.sizeMultiplier,g=r.size===y.DISPLAY.size?t.fontMetrics().delim1:r.size===y.SCRIPTSCRIPT.size?t.havingStyle(y.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,v=null==e.leftDelim?vt(t,["mopen"]):En(e.leftDelim,g,!0,t.havingStyle(r),e.mode,["mopen"]),_=e.continued?Ye.makeSpan([]):null==e.rightDelim?vt(t,["mclose"]):En(e.rightDelim,g,!0,t.havingStyle(r),e.mode,["mclose"]),Ye.makeSpan(["mord"].concat(n.sizingClasses(t)),[v,Ye.makeSpan(["mfrac"],[f]),_],t)},er=function(e,t){var n=new St.MathNode("mfrac",[Mt(e.numer,t),Mt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=De(e.barSize,t);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");var o=Zn(e.size,t.style);if(o.size!==t.style.size){n=new St.MathNode("mstyle",[n]);var i=o.size===y.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var a=[];if(null!=e.leftDelim){var s=new St.MathNode("mo",[new St.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),null!=e.rightDelim){var l=new St.MathNode("mo",[new St.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return Et(a)}return n};rt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:function(e,t){var n,r=e.parser,o=e.funcName,i=t[0],a=t[1],s=null,l=null,c="auto";switch(o){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:r.mode,continued:!1,numer:i,denom:a,hasBarLine:n,leftDelim:s,rightDelim:l,size:c,barSize:null}},htmlBuilder:Qn,mathmlBuilder:er}),rt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:function(e,t){var n=e.parser;e.funcName;var r=t[0],o=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:r,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),rt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,r=e.funcName,o=e.token;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});var tr=["display","text","script","scriptscript"],nr=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};rt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,r=e.parser,o=t[4],i=t[5],a=it(t[0]),s="atom"===a.type&&"open"===a.family?nr(a.text):null,l=it(t[1]),c="atom"===l.type&&"close"===l.family?nr(l.text):null,u=Ft(t[2],"size"),h=null;n=!!u.isBlank||(h=u.value).number>0;var d="auto",p=t[3];if("ordgroup"===p.type){if(p.body.length>0){var m=Ft(p.body[0],"textord");d=tr[Number(m.text)]}}else p=Ft(p,"textord"),d=tr[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:o,denom:i,continued:!1,hasBarLine:n,barSize:h,leftDelim:s,rightDelim:c,size:d}},htmlBuilder:Qn,mathmlBuilder:er}),rt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser;e.funcName;var r=e.token;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Ft(t[0],"size").value,token:r}}}),rt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser;e.funcName;var r=t[0],o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Ft(t[1],"infix").size),i=t[2],a=o.number>0;return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Qn,mathmlBuilder:er});var rr=function(e,t){var n,r,o=t.style;"supsub"===e.type?(n=e.sup?yt(e.sup,t.havingStyle(o.sup()),t):yt(e.sub,t.havingStyle(o.sub()),t),r=Ft(e.base,"horizBrace")):r=Ft(e,"horizBrace");var i,a=yt(r.base,t.havingBaseStyle(y.DISPLAY)),s=Bt(r,t);if(r.isOver?(i=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(i=Ye.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var l=Ye.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t);i=r.isOver?Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Ye.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Ye.makeSpan(["mord",r.isOver?"mover":"munder"],[i],t)};rt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:rr,mathmlBuilder:function(e,t){var n=Dt(e.label);return new St.MathNode(e.isOver?"mover":"munder",[Mt(e.base,t),n])}}),rt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],o=Ft(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:at(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=dt(e.body,t,!1);return Ye.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=Nt(e.body,t);return n instanceof xt||(n=new xt("mrow",[n])),n.setAttribute("href",e.href),n}}),rt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ft(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:r,body:at(s)}}}),rt({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler:function(e,t){return{type:"hbox",mode:e.parser.mode,body:at(t[0])}},htmlBuilder:function(e,t){var n=dt(e.body,t,!1);return Ye.makeFragment(n)},mathmlBuilder:function(e,t){return new St.MathNode("mrow",Ct(e.body,t))}}),rt({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,o=e.funcName;e.token;var i,a=Ft(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l={};switch(o){case"\\htmlClass":l.class=a,i={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,i={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,i={command:"\\htmlStyle",style:a};break;case"\\htmlData":for(var c=a.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(2!==h.length)throw new r("Error parsing key-value for \\htmlData");l["data-"+h[0].trim()]=h[1].trim()}i={command:"\\htmlData",attributes:l};break;default:throw new Error("Unrecognized html command")}return n.settings.isTrusted(i)?{type:"html",mode:n.mode,attributes:l,body:at(s)}:n.formatUnsupportedCmd(o)},htmlBuilder:function(e,t){var n=dt(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push.apply(r,e.attributes.class.trim().split(/\s+/));var o=Ye.makeSpan(r,n,t);for(var i in e.attributes)"class"!==i&&e.attributes.hasOwnProperty(i)&&o.setAttribute(i,e.attributes[i]);return o},mathmlBuilder:function(e,t){return Nt(e.body,t)}}),rt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:at(t[0]),mathml:at(t[1])}},htmlBuilder:function(e,t){var n=dt(e.html,t,!1);return Ye.makeFragment(n)},mathmlBuilder:function(e,t){return Nt(e.mathml,t)}});var or=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new r("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Re(n))throw new r("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};rt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var o=e.parser,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var c=Ft(n[0],"raw").string.split(","),u=0;u<c.length;u++){var h=c[u].split("=");if(2===h.length){var d=h[1].trim();switch(h[0].trim()){case"alt":l=d;break;case"width":i=or(d);break;case"height":a=or(d);break;case"totalheight":s=or(d);break;default:throw new r("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var p=Ft(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),o.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:o.mode,alt:l,width:i,height:a,totalheight:s,src:p}:o.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=De(e.height,t),r=0;e.totalheight.number>0&&(r=De(e.totalheight,t)-n,r=Number(r.toFixed(2)));var o=0;e.width.number>0&&(o=De(e.width,t));var i={height:n+r+"em"};o>0&&(i.width=o+"em"),r>0&&(i.verticalAlign=-r+"em");var a=new L(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new St.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=De(e.height,t),o=0;if(e.totalheight.number>0&&(o=(o=De(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),e.width.number>0){var i=De(e.width,t);n.setAttribute("width",i+"em")}return n.setAttribute("src",e.src),n}}),rt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=Ft(t[0],"size");if(n.settings.strict){var i="m"===r[1],a="mu"===o.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:function(e,t){return Ye.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=De(e.dimension,t);return new St.SpaceNode(n)}}),rt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:function(e,t){var n;"clap"===e.alignment?(n=Ye.makeSpan([],[yt(e.body,t)]),n=Ye.makeSpan(["inner"],[n],t)):n=Ye.makeSpan(["inner"],[yt(e.body,t)]);var r=Ye.makeSpan(["fix"],[]),o=Ye.makeSpan([e.alignment],[n,r],t),i=Ye.makeSpan(["strut"]);return i.style.height=o.height+o.depth+"em",i.style.verticalAlign=-o.depth+"em",o.children.unshift(i),o=Ye.makeSpan(["thinbox"],[o],t),Ye.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mpadded",[Mt(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),rt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=e.funcName,r=e.parser,o=r.mode;r.switchMode("math");var i="\\("===n?"\\)":"$",a=r.parseExpression(!1,i);return r.expect(i),r.switchMode(o),{type:"styling",mode:r.mode,style:"text",body:a}}}),rt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e,t){throw new r("Mismatched "+e.funcName)}});var ir=function(e,t){switch(t.style.size){case y.DISPLAY.size:return e.display;case y.TEXT.size:return e.text;case y.SCRIPT.size:return e.script;case y.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};rt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:at(t[0]),text:at(t[1]),script:at(t[2]),scriptscript:at(t[3])}},htmlBuilder:function(e,t){var n=ir(e,t),r=dt(n,t,!1);return Ye.makeFragment(r)},mathmlBuilder:function(e,t){var n=ir(e,t);return Nt(n,t)}});var ar=function(e,t,n,r,o,i,a){e=Ye.makeSpan([],[e]);var s,c,u,h=n&&l.isCharacterBox(n);if(t){var d=yt(t,r.havingStyle(o.sup()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var p=yt(n,r.havingStyle(o.sub()),r);s={elem:p,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-p.height)}}if(c&&s){var m=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;u=Ye.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var f=e.height-a;u=Ye.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!c)return e;var g=e.depth+a;u=Ye.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}var v=[u];if(s&&0!==i&&!h){var y=Ye.makeSpan(["mspace"],[],r);y.style.marginRight=i+"em",v.unshift(y)}return Ye.makeSpan(["mop","op-limits"],v,r)},sr=["\\smallint"],lr=function(e,t){var n,r,o,i=!1;"supsub"===e.type?(n=e.sup,r=e.sub,o=Ft(e.base,"op"),i=!0):o=Ft(e,"op");var a,s=t.style,c=!1;if(s.size===y.DISPLAY.size&&o.symbol&&!l.contains(sr,o.name)&&(c=!0),o.symbol){var u=c?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(h=o.name.substr(1),o.name="oiint"===h?"\\iint":"\\iiint"),a=Ye.makeSymbol(o.name,u,"math",t,["mop","op-symbol",c?"large-op":"small-op"]),h.length>0){var d=a.italic,p=Ye.staticSvg(h+"Size"+(c?"2":"1"),t);a=Ye.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:p,shift:c?.08:0}]},t),o.name="\\"+h,a.classes.unshift("mop"),a.italic=d}}else if(o.body){var m=dt(o.body,t,!0);1===m.length&&m[0]instanceof z?(a=m[0]).classes[0]="mop":a=Ye.makeSpan(["mop"],m,t)}else{for(var f=[],g=1;g<o.name.length;g++)f.push(Ye.mathsym(o.name[g],o.mode,t));a=Ye.makeSpan(["mop"],f,t)}var v=0,_=0;return(a instanceof z||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(v=(a.height-a.depth)/2-t.fontMetrics().axisHeight,_=a.italic),i?ar(a,n,r,t,s,_,v):(v&&(a.style.position="relative",a.style.top=v+"em"),a)},cr=function(e,t){var n;if(e.symbol)n=new xt("mo",[At(e.name,e.mode)]),l.contains(sr,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new xt("mo",Ct(e.body,t));else{n=new xt("mi",[new kt(e.name.slice(1))]);var r=new xt("mo",[At("⁡","text")]);n=e.parentIsSupSub?new xt("mrow",[n,r]):wt([n,r])}return n},ur={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};rt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(e,t){var n=e.parser,r=e.funcName;return 1===r.length&&(r=ur[r]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:lr,mathmlBuilder:cr}),rt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:at(r)}},htmlBuilder:lr,mathmlBuilder:cr});var hr={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};rt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:lr,mathmlBuilder:cr}),rt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:lr,mathmlBuilder:cr}),rt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=hr[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:lr,mathmlBuilder:cr});var dr={};function pr(e,t){dr[e]=t}var mr=function(e,t){var n,r,o,i,a=!1;if("supsub"===e.type?(n=e.sup,r=e.sub,o=Ft(e.base,"operatorname"),a=!0):o=Ft(e,"operatorname"),o.body.length>0){for(var s=o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),l=dt(s,t.withFont("mathrm"),!0),c=0;c<l.length;c++){var u=l[c];u instanceof z&&(u.text=u.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Ye.makeSpan(["mop"],l,t)}else i=Ye.makeSpan(["mop"],[],t);return a?ar(i,n,r,t,t.style,0,0):i};function fr(e,t,n){for(var r=dt(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var a=r[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[a+1]==="reset-size"+t.size&&(r[i].classes[a+1]="reset-size"+n.size),r[i].height*=o,r[i].depth*=o}return Ye.makeFragment(r)}rt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"operatorname",mode:n.mode,body:at(o),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:mr,mathmlBuilder:function(e,t){for(var n=Ct(e.body,t.withFont("mathrm")),r=!0,o=0;o<n.length;o++){var i=n[o];if(i instanceof St.SpaceNode);else if(i instanceof St.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof St.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map((function(e){return e.toText()})).join("");n=[new St.TextNode(s)]}var l=new St.MathNode("mi",n);l.setAttribute("mathvariant","normal");var c=new St.MathNode("mo",[At("⁡","text")]);return e.parentIsSupSub?new St.MathNode("mrow",[l,c]):St.newDocumentFragment([l,c])}}),pr("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ot({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?Ye.makeFragment(dt(e.body,t,!1)):Ye.makeSpan(["mord"],dt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return Nt(e.body,t,!0)}}),rt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=yt(e.body,t.havingCrampedStyle()),r=Ye.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return Ye.makeSpan(["mord","overline"],[i],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[new St.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new St.MathNode("mover",[Mt(e.body,t),n]);return r.setAttribute("accent","true"),r}}),rt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"phantom",mode:n.mode,body:at(r)}},htmlBuilder:function(e,t){var n=dt(e.body,t.withPhantom(),!1);return Ye.makeFragment(n)},mathmlBuilder:function(e,t){var n=Ct(e.body,t);return new St.MathNode("mphantom",n)}}),rt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=Ye.makeSpan([],[yt(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Ye.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=Ct(at(e.body),t),r=new St.MathNode("mphantom",n),o=new St.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),rt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=Ye.makeSpan(["inner"],[yt(e.body,t.withPhantom())]),r=Ye.makeSpan(["fix"],[]);return Ye.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:function(e,t){var n=Ct(at(e.body),t),r=new St.MathNode("mphantom",n),o=new St.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),rt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Ft(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder:function(e,t){var n=yt(e.body,t),r=De(e.dy,t);return Ye.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mpadded",[Mt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),rt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var r=e.parser,o=n[0],i=Ft(t[0],"size"),a=Ft(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&Ft(o,"size").value,width:i.value,height:a.value}},htmlBuilder:function(e,t){var n=Ye.makeSpan(["mord","rule"],[],t),r=De(e.width,t),o=De(e.height,t),i=e.shift?De(e.shift,t):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=o+"em",n.style.bottom=i+"em",n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=De(e.width,t),r=De(e.height,t),o=e.shift?De(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new St.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",n+"em"),a.setAttribute("height",r+"em");var s=new St.MathNode("mpadded",[a]);return o>=0?s.setAttribute("height","+"+o+"em"):(s.setAttribute("height",o+"em"),s.setAttribute("depth","+"+-o+"em")),s.setAttribute("voffset",o+"em"),s}});var gr=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];rt({type:"sizing",names:gr,props:{numArgs:0,allowedInText:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!1,n);return{type:"sizing",mode:o.mode,size:gr.indexOf(r)+1,body:i}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return fr(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=Ct(e.body,n),o=new St.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),rt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=!1,i=!1,a=n[0]&&Ft(n[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l)if("t"===(s=a.body[l].text))o=!0;else{if("b"!==s){o=!1,i=!1;break}i=!0}else o=!0,i=!0;var c=t[0];return{type:"smash",mode:r.mode,body:c,smashHeight:o,smashDepth:i}},htmlBuilder:function(e,t){var n=Ye.makeSpan([],[yt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var i=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Ye.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mpadded",[Mt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),rt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder:function(e,t){var n=yt(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Ye.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,o=r;t.style.id<y.TEXT.id&&(o=t.fontMetrics().xHeight);var i=r+o/4,a=n.height+n.depth+i+r,s=kn(a,t),l=s.span,c=s.ruleWidth,u=s.advanceWidth,h=l.height-c;h>n.height+n.depth+i&&(i=(i+h-n.height-n.depth)/2);var d=l.height-n.height-i-c;n.style.paddingLeft=u+"em";var p=Ye.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+d)},{type:"elem",elem:l},{type:"kern",size:c}]},t);if(e.index){var m=t.havingStyle(y.SCRIPTSCRIPT),f=yt(e.index,m,t),g=.6*(p.height-p.depth),v=Ye.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},t),_=Ye.makeSpan(["root"],[v]);return Ye.makeSpan(["mord","sqrt"],[_,p],t)}return Ye.makeSpan(["mord","sqrt"],[p],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new St.MathNode("mroot",[Mt(n,t),Mt(r,t)]):new St.MathNode("msqrt",[Mt(n,t)])}});var vr={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT};rt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(e,t){var n=e.breakOnTokenText,r=e.funcName,o=e.parser,i=o.parseExpression(!0,n),a=r.slice(1,r.length-5);return{type:"styling",mode:o.mode,style:a,body:i}},htmlBuilder:function(e,t){var n=vr[e.style],r=t.havingStyle(n).withFont("");return fr(e.body,r,t)},mathmlBuilder:function(e,t){var n=vr[e.style],r=t.havingStyle(n),o=Ct(e.body,r),i=new St.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}});var yr=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===y.DISPLAY.size||n.alwaysHandleSupSub)?lr:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===y.DISPLAY.size||n.limits)?mr:null:"accent"===n.type?l.isCharacterBox(n.base)?Ut:null:"horizBrace"===n.type&&!e.sub===n.isOver?rr:null:null};ot({type:"supsub",htmlBuilder:function(e,t){var n=yr(e,t);if(n)return n(e,t);var r,o,i,a=e.base,s=e.sup,c=e.sub,u=yt(a,t),h=t.fontMetrics(),d=0,p=0,m=a&&l.isCharacterBox(a);if(s){var f=t.havingStyle(t.style.sup());r=yt(s,f,t),m||(d=u.height-f.fontMetrics().supDrop*f.sizeMultiplier/t.sizeMultiplier)}if(c){var g=t.havingStyle(t.style.sub());o=yt(c,g,t),m||(p=u.depth+g.fontMetrics().subDrop*g.sizeMultiplier/t.sizeMultiplier)}i=t.style===y.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2;var v,_=t.sizeMultiplier,b=.5/h.ptPerEm/_+"em",w=null;if(o){var x=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(u instanceof z||x)&&(w=-u.italic+"em")}if(r&&o){d=Math.max(d,i,r.depth+.25*h.xHeight),p=Math.max(p,h.sub2);var k=4*h.defaultRuleThickness;if(d-r.depth-(o.height-p)<k){p=k-(d-r.depth)+o.height;var S=.8*h.xHeight-(d-r.depth);S>0&&(d+=S,p-=S)}var A=[{type:"elem",elem:o,shift:p,marginRight:b,marginLeft:w},{type:"elem",elem:r,shift:-d,marginRight:b}];v=Ye.makeVList({positionType:"individualShift",children:A},t)}else if(o){p=Math.max(p,h.sub1,o.height-.8*h.xHeight);var E=[{type:"elem",elem:o,marginLeft:w,marginRight:b}];v=Ye.makeVList({positionType:"shift",positionData:p,children:E},t)}else{if(!r)throw new Error("supsub must have either sup or sub.");d=Math.max(d,i,r.depth+.25*h.xHeight),v=Ye.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:r,marginRight:b}]},t)}var T=gt(u,"right")||"mord";return Ye.makeSpan([T],[u,Ye.makeSpan(["msupsub"],[v])],t)},mathmlBuilder:function(e,t){var n,r=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(r=!0,n=e.base.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var o,i=[Mt(e.base,t)];if(e.sub&&i.push(Mt(e.sub,t)),e.sup&&i.push(Mt(e.sup,t)),r)o=n?"mover":"munder";else if(e.sub)if(e.sup){var a=e.base;o=a&&"op"===a.type&&a.limits&&t.style===y.DISPLAY||a&&"operatorname"===a.type&&a.alwaysHandleSupSub&&(t.style===y.DISPLAY||a.limits)?"munderover":"msubsup"}else{var s=e.base;o=s&&"op"===s.type&&s.limits&&(t.style===y.DISPLAY||s.alwaysHandleSupSub)||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(s.limits||t.style===y.DISPLAY)?"munder":"msub"}else{var l=e.base;o=l&&"op"===l.type&&l.limits&&(t.style===y.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===y.DISPLAY)?"mover":"msup"}return new St.MathNode(o,i)}}),ot({type:"atom",htmlBuilder:function(e,t){return Ye.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[At(e.text,e.mode)]);if("bin"===e.family){var r=Tt(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var _r={mi:"italic",mn:"normal",mtext:"normal"};ot({type:"mathord",htmlBuilder:function(e,t){return Ye.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new St.MathNode("mi",[At(e.text,e.mode,t)]),r=Tt(e,t)||"italic";return r!==_r[n.type]&&n.setAttribute("mathvariant",r),n}}),ot({type:"textord",htmlBuilder:function(e,t){return Ye.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=At(e.text,e.mode,t),o=Tt(e,t)||"normal";return n="text"===e.mode?new St.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new St.MathNode("mn",[r]):"\\prime"===e.text?new St.MathNode("mo",[r]):new St.MathNode("mi",[r]),o!==_r[n.type]&&n.setAttribute("mathvariant",o),n}});var br={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},wr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ot({type:"spacing",htmlBuilder:function(e,t){if(wr.hasOwnProperty(e.text)){var n=wr[e.text].className||"";if("text"===e.mode){var o=Ye.makeOrd(e,t,"textord");return o.classes.push(n),o}return Ye.makeSpan(["mspace",n],[Ye.mathsym(e.text,e.mode,t)],t)}if(br.hasOwnProperty(e.text))return Ye.makeSpan(["mspace",br[e.text]],[],t);throw new r('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e,t){if(!wr.hasOwnProperty(e.text)){if(br.hasOwnProperty(e.text))return new St.MathNode("mspace");throw new r('Unknown type of space "'+e.text+'"')}return new St.MathNode("mtext",[new St.TextNode(" ")])}});var xr=function(){var e=new St.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};ot({type:"tag",mathmlBuilder:function(e,t){var n=new St.MathNode("mtable",[new St.MathNode("mtr",[xr(),new St.MathNode("mtd",[Nt(e.body,t)]),xr(),new St.MathNode("mtd",[Nt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var kr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Sr={"\\textbf":"textbf","\\textmd":"textmd"},Ar={"\\textit":"textit","\\textup":"textup"},Er=function(e,t){var n=e.font;return n?kr[n]?t.withTextFontFamily(kr[n]):Sr[n]?t.withTextFontWeight(Sr[n]):t.withTextFontShape(Ar[n]):t};rt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"text",mode:n.mode,body:at(o),font:r}},htmlBuilder:function(e,t){var n=Er(e,t),r=dt(e.body,n,!0);return Ye.makeSpan(["mord","text"],r,n)},mathmlBuilder:function(e,t){var n=Er(e,t);return Nt(e.body,n)}}),rt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=yt(e.body,t),r=Ye.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Ye.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Ye.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var n=new St.MathNode("mo",[new St.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new St.MathNode("munder",[Mt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),rt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(e,t){return{type:"vcenter",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=yt(e.body,t),r=t.fontMetrics().axisHeight,o=.5*(n.height-r-(n.depth+r));return Ye.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){return new St.MathNode("mpadded",[Mt(e.body,t)],["vcenter"])}}),rt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(e,t,n){throw new r("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=Tr(e),r=[],o=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),r.push(Ye.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return Ye.makeSpan(["mord","text"].concat(o.sizingClasses(t)),Ye.tryCombineChars(r),o)},mathmlBuilder:function(e,t){var n=new St.TextNode(Tr(e)),r=new St.MathNode("mtext",[n]);return r.setAttribute("mathvariant","monospace"),r}});var Tr=function(e){return e.body.replace(/ /g,e.star?"␣":" ")},Cr=et,Nr=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),Mr=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,Nr.range(this,t))},e}(),Lr=new RegExp("[̀-ͯ]+$"),Ir=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Mr("EOF",new Nr(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new r("Unexpected character: '"+e[t]+"'",new Mr(e[t],new Nr(this,t,t+1)));var o=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[o]){var i=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===i?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=i+1,this.lex()}return new Mr(o,new Nr(this,t,this.tokenRegex.lastIndex))},e}(),zr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new r("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}this.current[e]=t},e}(),Or=dr;pr("\\noexpand",(function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}})),pr("\\expandafter",(function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}})),pr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),pr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),pr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),pr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),pr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var Pr={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};pr("\\char",(function(e){var t,n=e.popToken(),o="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])o=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new r("\\char` missing argument");o=n.text.charCodeAt(0)}else t=10;if(t){if(null==(o=Pr[n.text])||o>=t)throw new r("Invalid base-"+t+" digit "+n.text);for(var i;null!=(i=Pr[e.future().text])&&i<t;)o*=t,o+=i,e.popToken()}return"\\@char{"+o+"}"}));var Rr=function(e,t,n){var o=e.consumeArg().tokens;if(1!==o.length)throw new r("\\newcommand's first argument must be a macro name");var i=o[0].text,a=e.isDefined(i);if(a&&!t)throw new r("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!n)throw new r("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(1===(o=e.consumeArg().tokens).length&&"["===o[0].text){for(var l="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)l+=c.text,c=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new r("Invalid number of arguments: "+l);s=parseInt(l),o=e.consumeArg().tokens}return e.macros.set(i,{tokens:o,numArgs:s}),""};pr("\\newcommand",(function(e){return Rr(e,!1,!0)})),pr("\\renewcommand",(function(e){return Rr(e,!0,!1)})),pr("\\providecommand",(function(e){return Rr(e,!0,!0)})),pr("\\message",(function(e){var t=e.consumeArgs(1)[0];return console.log(t.reverse().map((function(e){return e.text})).join("")),""})),pr("\\errmessage",(function(e){var t=e.consumeArgs(1)[0];return console.error(t.reverse().map((function(e){return e.text})).join("")),""})),pr("\\show",(function(e){var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Cr[n],V.math[n],V.text[n]),""})),pr("\\bgroup","{"),pr("\\egroup","}"),pr("~","\\nobreakspace"),pr("\\lq","`"),pr("\\rq","'"),pr("\\aa","\\r a"),pr("\\AA","\\r A"),pr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),pr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),pr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),pr("ℬ","\\mathscr{B}"),pr("ℰ","\\mathscr{E}"),pr("ℱ","\\mathscr{F}"),pr("ℋ","\\mathscr{H}"),pr("ℐ","\\mathscr{I}"),pr("ℒ","\\mathscr{L}"),pr("ℳ","\\mathscr{M}"),pr("ℛ","\\mathscr{R}"),pr("ℭ","\\mathfrak{C}"),pr("ℌ","\\mathfrak{H}"),pr("ℨ","\\mathfrak{Z}"),pr("\\Bbbk","\\Bbb{k}"),pr("·","\\cdotp"),pr("\\llap","\\mathllap{\\textrm{#1}}"),pr("\\rlap","\\mathrlap{\\textrm{#1}}"),pr("\\clap","\\mathclap{\\textrm{#1}}"),pr("\\mathstrut","\\vphantom{(}"),pr("\\underbar","\\underline{\\text{#1}}"),pr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),pr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),pr("\\ne","\\neq"),pr("≠","\\neq"),pr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),pr("∉","\\notin"),pr("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),pr("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),pr("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),pr("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),pr("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),pr("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),pr("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),pr("⟂","\\perp"),pr("‼","\\mathclose{!\\mkern-0.8mu!}"),pr("∌","\\notni"),pr("⌜","\\ulcorner"),pr("⌝","\\urcorner"),pr("⌞","\\llcorner"),pr("⌟","\\lrcorner"),pr("©","\\copyright"),pr("®","\\textregistered"),pr("️","\\textregistered"),pr("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),pr("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),pr("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),pr("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),pr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),pr("⋮","\\vdots"),pr("\\varGamma","\\mathit{\\Gamma}"),pr("\\varDelta","\\mathit{\\Delta}"),pr("\\varTheta","\\mathit{\\Theta}"),pr("\\varLambda","\\mathit{\\Lambda}"),pr("\\varXi","\\mathit{\\Xi}"),pr("\\varPi","\\mathit{\\Pi}"),pr("\\varSigma","\\mathit{\\Sigma}"),pr("\\varUpsilon","\\mathit{\\Upsilon}"),pr("\\varPhi","\\mathit{\\Phi}"),pr("\\varPsi","\\mathit{\\Psi}"),pr("\\varOmega","\\mathit{\\Omega}"),pr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),pr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),pr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),pr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),pr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),pr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Dr={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};pr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Dr?t=Dr[n]:("\\not"===n.substr(0,4)||n in V.math&&l.contains(["bin","rel"],V.math[n].group))&&(t="\\dotsb"),t}));var Br={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};pr("\\dotso",(function(e){return e.future().text in Br?"\\ldots\\,":"\\ldots"})),pr("\\dotsc",(function(e){var t=e.future().text;return t in Br&&","!==t?"\\ldots\\,":"\\ldots"})),pr("\\cdots",(function(e){return e.future().text in Br?"\\@cdots\\,":"\\@cdots"})),pr("\\dotsb","\\cdots"),pr("\\dotsm","\\cdots"),pr("\\dotsi","\\!\\cdots"),pr("\\dotsx","\\ldots\\,"),pr("\\DOTSI","\\relax"),pr("\\DOTSB","\\relax"),pr("\\DOTSX","\\relax"),pr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),pr("\\,","\\tmspace+{3mu}{.1667em}"),pr("\\thinspace","\\,"),pr("\\>","\\mskip{4mu}"),pr("\\:","\\tmspace+{4mu}{.2222em}"),pr("\\medspace","\\:"),pr("\\;","\\tmspace+{5mu}{.2777em}"),pr("\\thickspace","\\;"),pr("\\!","\\tmspace-{3mu}{.1667em}"),pr("\\negthinspace","\\!"),pr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),pr("\\negthickspace","\\tmspace-{5mu}{.277em}"),pr("\\enspace","\\kern.5em "),pr("\\enskip","\\hskip.5em\\relax"),pr("\\quad","\\hskip1em\\relax"),pr("\\qquad","\\hskip2em\\relax"),pr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),pr("\\tag@paren","\\tag@literal{({#1})}"),pr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new r("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),pr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),pr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),pr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),pr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),pr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),pr("\\newline","\\\\\\relax"),pr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Fr=B["Main-Regular"]["T".charCodeAt(0)][1]-.7*B["Main-Regular"]["A".charCodeAt(0)][1]+"em";pr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Fr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),pr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Fr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),pr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),pr("\\@hspace","\\hskip #1\\relax"),pr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),pr("\\ordinarycolon",":"),pr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),pr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),pr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),pr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),pr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),pr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),pr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),pr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),pr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),pr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),pr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),pr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),pr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),pr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),pr("∷","\\dblcolon"),pr("∹","\\eqcolon"),pr("≔","\\coloneqq"),pr("≕","\\eqqcolon"),pr("⩴","\\Coloneqq"),pr("\\ratio","\\vcentcolon"),pr("\\coloncolon","\\dblcolon"),pr("\\colonequals","\\coloneqq"),pr("\\coloncolonequals","\\Coloneqq"),pr("\\equalscolon","\\eqqcolon"),pr("\\equalscoloncolon","\\Eqqcolon"),pr("\\colonminus","\\coloneq"),pr("\\coloncolonminus","\\Coloneq"),pr("\\minuscolon","\\eqcolon"),pr("\\minuscoloncolon","\\Eqcolon"),pr("\\coloncolonapprox","\\Colonapprox"),pr("\\coloncolonsim","\\Colonsim"),pr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),pr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),pr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),pr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),pr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),pr("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),pr("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),pr("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),pr("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),pr("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),pr("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),pr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),pr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),pr("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),pr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),pr("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),pr("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),pr("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),pr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),pr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),pr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),pr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),pr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),pr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),pr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),pr("\\imath","\\html@mathml{\\@imath}{ı}"),pr("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),pr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),pr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),pr("⟦","\\llbracket"),pr("⟧","\\rrbracket"),pr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),pr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),pr("⦃","\\lBrace"),pr("⦄","\\rBrace"),pr("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),pr("⦵","\\minuso"),pr("\\darr","\\downarrow"),pr("\\dArr","\\Downarrow"),pr("\\Darr","\\Downarrow"),pr("\\lang","\\langle"),pr("\\rang","\\rangle"),pr("\\uarr","\\uparrow"),pr("\\uArr","\\Uparrow"),pr("\\Uarr","\\Uparrow"),pr("\\N","\\mathbb{N}"),pr("\\R","\\mathbb{R}"),pr("\\Z","\\mathbb{Z}"),pr("\\alef","\\aleph"),pr("\\alefsym","\\aleph"),pr("\\Alpha","\\mathrm{A}"),pr("\\Beta","\\mathrm{B}"),pr("\\bull","\\bullet"),pr("\\Chi","\\mathrm{X}"),pr("\\clubs","\\clubsuit"),pr("\\cnums","\\mathbb{C}"),pr("\\Complex","\\mathbb{C}"),pr("\\Dagger","\\ddagger"),pr("\\diamonds","\\diamondsuit"),pr("\\empty","\\emptyset"),pr("\\Epsilon","\\mathrm{E}"),pr("\\Eta","\\mathrm{H}"),pr("\\exist","\\exists"),pr("\\harr","\\leftrightarrow"),pr("\\hArr","\\Leftrightarrow"),pr("\\Harr","\\Leftrightarrow"),pr("\\hearts","\\heartsuit"),pr("\\image","\\Im"),pr("\\infin","\\infty"),pr("\\Iota","\\mathrm{I}"),pr("\\isin","\\in"),pr("\\Kappa","\\mathrm{K}"),pr("\\larr","\\leftarrow"),pr("\\lArr","\\Leftarrow"),pr("\\Larr","\\Leftarrow"),pr("\\lrarr","\\leftrightarrow"),pr("\\lrArr","\\Leftrightarrow"),pr("\\Lrarr","\\Leftrightarrow"),pr("\\Mu","\\mathrm{M}"),pr("\\natnums","\\mathbb{N}"),pr("\\Nu","\\mathrm{N}"),pr("\\Omicron","\\mathrm{O}"),pr("\\plusmn","\\pm"),pr("\\rarr","\\rightarrow"),pr("\\rArr","\\Rightarrow"),pr("\\Rarr","\\Rightarrow"),pr("\\real","\\Re"),pr("\\reals","\\mathbb{R}"),pr("\\Reals","\\mathbb{R}"),pr("\\Rho","\\mathrm{P}"),pr("\\sdot","\\cdot"),pr("\\sect","\\S"),pr("\\spades","\\spadesuit"),pr("\\sub","\\subset"),pr("\\sube","\\subseteq"),pr("\\supe","\\supseteq"),pr("\\Tau","\\mathrm{T}"),pr("\\thetasym","\\vartheta"),pr("\\weierp","\\wp"),pr("\\Zeta","\\mathrm{Z}"),pr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),pr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),pr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),pr("\\bra","\\mathinner{\\langle{#1}|}"),pr("\\ket","\\mathinner{|{#1}\\rangle}"),pr("\\braket","\\mathinner{\\langle{#1}\\rangle}"),pr("\\Bra","\\left\\langle#1\\right|"),pr("\\Ket","\\left|#1\\right\\rangle"),pr("\\angln","{\\angl n}"),pr("\\blue","\\textcolor{##6495ed}{#1}"),pr("\\orange","\\textcolor{##ffa500}{#1}"),pr("\\pink","\\textcolor{##ff00af}{#1}"),pr("\\red","\\textcolor{##df0030}{#1}"),pr("\\green","\\textcolor{##28ae7b}{#1}"),pr("\\gray","\\textcolor{gray}{#1}"),pr("\\purple","\\textcolor{##9d38bd}{#1}"),pr("\\blueA","\\textcolor{##ccfaff}{#1}"),pr("\\blueB","\\textcolor{##80f6ff}{#1}"),pr("\\blueC","\\textcolor{##63d9ea}{#1}"),pr("\\blueD","\\textcolor{##11accd}{#1}"),pr("\\blueE","\\textcolor{##0c7f99}{#1}"),pr("\\tealA","\\textcolor{##94fff5}{#1}"),pr("\\tealB","\\textcolor{##26edd5}{#1}"),pr("\\tealC","\\textcolor{##01d1c1}{#1}"),pr("\\tealD","\\textcolor{##01a995}{#1}"),pr("\\tealE","\\textcolor{##208170}{#1}"),pr("\\greenA","\\textcolor{##b6ffb0}{#1}"),pr("\\greenB","\\textcolor{##8af281}{#1}"),pr("\\greenC","\\textcolor{##74cf70}{#1}"),pr("\\greenD","\\textcolor{##1fab54}{#1}"),pr("\\greenE","\\textcolor{##0d923f}{#1}"),pr("\\goldA","\\textcolor{##ffd0a9}{#1}"),pr("\\goldB","\\textcolor{##ffbb71}{#1}"),pr("\\goldC","\\textcolor{##ff9c39}{#1}"),pr("\\goldD","\\textcolor{##e07d10}{#1}"),pr("\\goldE","\\textcolor{##a75a05}{#1}"),pr("\\redA","\\textcolor{##fca9a9}{#1}"),pr("\\redB","\\textcolor{##ff8482}{#1}"),pr("\\redC","\\textcolor{##f9685d}{#1}"),pr("\\redD","\\textcolor{##e84d39}{#1}"),pr("\\redE","\\textcolor{##bc2612}{#1}"),pr("\\maroonA","\\textcolor{##ffbde0}{#1}"),pr("\\maroonB","\\textcolor{##ff92c6}{#1}"),pr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),pr("\\maroonD","\\textcolor{##ca337c}{#1}"),pr("\\maroonE","\\textcolor{##9e034e}{#1}"),pr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),pr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),pr("\\purpleC","\\textcolor{##aa87ff}{#1}"),pr("\\purpleD","\\textcolor{##7854ab}{#1}"),pr("\\purpleE","\\textcolor{##543b78}{#1}"),pr("\\mintA","\\textcolor{##f5f9e8}{#1}"),pr("\\mintB","\\textcolor{##edf2df}{#1}"),pr("\\mintC","\\textcolor{##e0e5cc}{#1}"),pr("\\grayA","\\textcolor{##f6f7f7}{#1}"),pr("\\grayB","\\textcolor{##f0f1f2}{#1}"),pr("\\grayC","\\textcolor{##e3e5e6}{#1}"),pr("\\grayD","\\textcolor{##d6d8da}{#1}"),pr("\\grayE","\\textcolor{##babec2}{#1}"),pr("\\grayF","\\textcolor{##888d93}{#1}"),pr("\\grayG","\\textcolor{##626569}{#1}"),pr("\\grayH","\\textcolor{##3b3e40}{#1}"),pr("\\grayI","\\textcolor{##21242c}{#1}"),pr("\\kaBlue","\\textcolor{##314453}{#1}"),pr("\\kaGreen","\\textcolor{##71B307}{#1}");var jr={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Hr=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new zr(Or,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new Ir(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.endGroups=function(){this.macros.endGroups()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.scanArgument=function(e){var t,n,r;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken();var o=this.consumeArg(["]"]);r=o.tokens,n=o.end}else{var i=this.consumeArg();r=i.tokens,t=i.start,n=i.end}return this.pushToken(new Mr("EOF",n.loc)),this.pushTokens(r),t.range(n,"")},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArg=function(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var o,i=this.future(),a=0,s=0;do{if(o=this.popToken(),t.push(o),"{"===o.text)++a;else if("}"===o.text){if(-1==--a)throw new r("Extra }",o)}else if("EOF"===o.text)throw new r("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",o);if(e&&n)if((0===a||1===a&&"{"===e[s])&&o.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}while(0!==a||n);return"{"===i.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:i,end:o}},t.consumeArgs=function(e,t){if(t){if(t.length!==e+1)throw new r("The length of delimiters doesn't match the number of args!");for(var n=t[0],o=0;o<n.length;o++){var i=this.popToken();if(n[o]!==i.text)throw new r("Use of the macro doesn't match its definition",i)}}for(var a=[],s=0;s<e;s++)a.push(this.consumeArg(t&&t[s+1]).tokens);return a},t.expandOnce=function(e){var t=this.popToken(),n=t.text,o=t.noexpand?null:this._getExpansion(n);if(null==o||e&&o.unexpandable){if(e&&null==o&&"\\"===n[0]&&!this.isDefined(n))throw new r("Undefined control sequence: "+n);return this.pushToken(t),t}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new r("Too many expansions: infinite loop or need to increase maxExpand setting");var i=o.tokens,a=this.consumeArgs(o.numArgs,o.delimiters);if(o.numArgs)for(var s=(i=i.slice()).length-1;s>=0;--s){var l=i[s];if("#"===l.text){if(0===s)throw new r("Incomplete placeholder at end of macro body",l);if("#"===(l=i[--s]).text)i.splice(s+1,1);else{if(!/^[1-9]$/.test(l.text))throw new r("Not a valid argument number",l);var c;(c=i).splice.apply(c,[s,2].concat(a[+l.text-1]))}}}return this.pushTokens(i),i},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof Mr){if("\\relax"!==e.text&&!e.treatAsRelax)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){return this.macros.has(e)?this.expandTokens([new Mr(e)]):void 0},t.expandTokens=function(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;){var r=this.expandOnce(!0);r instanceof Mr&&(r.treatAsRelax&&(r.noexpand=!1,r.treatAsRelax=!1),t.push(this.stack.pop()))}return t},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var r="function"==typeof t?t(this):t;if("string"==typeof r){var o=0;if(-1!==r.indexOf("#"))for(var i=r.replace(/##/g,"");-1!==i.indexOf("#"+(o+1));)++o;for(var a=new Ir(r,this.settings),s=[],l=a.lex();"EOF"!==l.text;)s.push(l),l=a.lex();return s.reverse(),{tokens:s,numArgs:o}}return r},t.isDefined=function(e){return this.macros.has(e)||Cr.hasOwnProperty(e)||V.math.hasOwnProperty(e)||V.text.hasOwnProperty(e)||jr.hasOwnProperty(e)},t.isExpandable=function(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:Cr.hasOwnProperty(e)&&!Cr[e].primitive},e}(),Ur={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},qr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"},$r=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Hr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new r("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&Cr[o.text]&&Cr[o.text].infix)break;var i=this.parseAtom(n);if(!i)break;"internal"!==i.type&&r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,o=0;o<e.length;o++)if("infix"===e[o].type){if(-1!==n)throw new r("only one infix operator per group",e[o].token);n=o,t=e[o].replaceWith}if(-1!==n&&t){var i,a,s=e.slice(0,n),l=e.slice(n+1);return i=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},a=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[i,e[n],a],[]):this.callFunction(t,[i,a],[])]}return e},t.handleSupSubscript=function(e){var t=this.fetch(),n=t.text;this.consume(),this.consumeSpaces();var o=this.parseGroup(e);if(!o)throw new r("Expected group after '"+n+"'",t);return o},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}},t.parseAtom=function(e){var t,n,o=this.parseGroup("atom",e);if("text"===this.mode)return o;for(;;){this.consumeSpaces();var i=this.fetch();if("\\limits"===i.text||"\\nolimits"===i.text){if(o&&"op"===o.type){var a="\\limits"===i.text;o.limits=a,o.alwaysHandleSupSub=!0}else{if(!o||"operatorname"!==o.type)throw new r("Limit controls must follow a math operator",i);o.alwaysHandleSupSub&&(o.limits="\\limits"===i.text)}this.consume()}else if("^"===i.text){if(t)throw new r("Double superscript",i);t=this.handleSupSubscript("superscript")}else if("_"===i.text){if(n)throw new r("Double subscript",i);n=this.handleSupSubscript("subscript")}else{if("'"!==i.text)break;if(t)throw new r("Double superscript",i);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();"'"===this.fetch().text;)l.push(s),this.consume();"^"===this.fetch().text&&l.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:l}}}return t||n?{type:"supsub",mode:this.mode,base:o,sup:t,sub:n}:o},t.parseFunction=function(e,t){var n=this.fetch(),o=n.text,i=Cr[o];if(!i)return null;if(this.consume(),t&&"atom"!==t&&!i.allowedInArgument)throw new r("Got function '"+o+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!i.allowedInText)throw new r("Can't use function '"+o+"' in text mode",n);if("math"===this.mode&&!1===i.allowedInMath)throw new r("Can't use function '"+o+"' in math mode",n);var a=this.parseArguments(o,i),s=a.args,l=a.optArgs;return this.callFunction(o,s,l,n,e)},t.callFunction=function(e,t,n,o,i){var a={funcName:e,parser:this,token:o,breakOnTokenText:i},s=Cr[e];if(s&&s.handler)return s.handler(a,t,n);throw new r("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var o=[],i=[],a=0;a<n;a++){var s=t.argTypes&&t.argTypes[a],l=a<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===a&&null==i[0])&&(s="primitive");var c=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)i.push(c);else{if(null==c)throw new r("Null argument, please report this as a bug");o.push(c)}}return{args:o,optArgs:i}},t.parseGroupOfType=function(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var o=this.parseArgumentGroup(n,"text");return null!=o?{type:"styling",mode:o.mode,body:[o],style:"text"}:null;case"raw":var i=this.parseStringGroup("raw",n);return null!=i?{type:"raw",mode:"text",string:i.text}:null;case"primitive":if(n)throw new r("A primitive argument cannot be optional");var a=this.parseGroup(e);if(null==a)throw new r("Expected group as "+e,this.fetch());return a;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new r("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var r,o="";"EOF"!==(r=this.fetch()).text;)o+=r.text,this.consume();return this.consume(),n.text=o,n},t.parseRegexGroup=function(e,t){for(var n,o=this.fetch(),i=o,a="";"EOF"!==(n=this.fetch()).text&&e.test(a+n.text);)a+=(i=n).text,this.consume();if(""===a)throw new r("Invalid "+t+": '"+o.text+"'",o);return o.range(i,a)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new r("Invalid color: '"+t.text+"'",t);var o=n[0];return/^[0-9a-f]{6}$/i.test(o)&&(o="#"+o),{type:"color-token",mode:this.mode,color:o}},t.parseSizeGroup=function(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var o=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!o)throw new r("Invalid size: '"+t.text+"'",t);var i={number:+(o[1]+o[2]),unit:o[3]};if(!Re(i))throw new r("Invalid unit: '"+i.unit+"'",t);return{type:"size",mode:this.mode,value:i,isBlank:n}},t.parseUrlGroup=function(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}},t.parseArgumentGroup=function(e,t){var n=this.gullet.scanArgument(e);if(null==n)return null;var r=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var o=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var i={type:"ordgroup",mode:this.mode,loc:n.loc,body:o};return t&&this.switchMode(r),i},t.parseGroup=function(e,t){var n,o=this.fetch(),i=o.text;if("{"===i||"\\begingroup"===i){this.consume();var a="{"===i?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,a),l=this.fetch();this.expect(a),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:Nr.range(o,l),body:s,semisimple:"\\begingroup"===i||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===i[0]&&!jr.hasOwnProperty(i)){if(this.settings.throwOnError)throw new r("Undefined control sequence: "+i,o);n=this.formatUnsupportedCmd(i),this.consume()}return n},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],o=r.text;"-"===o&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:Nr.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:Nr.range(r,e[n+1]),text:"--"}),t-=1)),"'"!==o&&"`"!==o||e[n+1].text!==o||(e.splice(n,2,{type:"textord",mode:"text",loc:Nr.range(r,e[n+1]),text:o+o}),t-=1)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),o="*"===n.charAt(0);if(o&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new r("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:o}}qr.hasOwnProperty(t[0])&&!V[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=qr[t[0]]+t.substr(1));var i,a=Lr.exec(t);if(a&&("i"===(t=t.substring(0,a.index))?t="ı":"j"===t&&(t="ȷ")),V[this.mode][t]){this.settings.strict&&"math"===this.mode&&Se.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var s,l=V[this.mode][t].group,c=Nr.range(e);if(q.hasOwnProperty(l)){var u=l;s={type:"atom",mode:this.mode,family:u,loc:c,text:t}}else s={type:l,mode:this.mode,loc:c,text:t};i=s}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(w(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:Nr.range(e),text:t}}if(this.consume(),a)for(var h=0;h<a[0].length;h++){var d=a[0][h];if(!Ur[d])throw new r("Unknown accent ' "+d+"'",e);var p=Ur[d][this.mode]||Ur[d].text;if(!p)throw new r("Accent "+d+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:Nr.range(e),label:p,isStretchy:!1,isShifty:!0,base:i}}return i},e}();$r.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Gr=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new $r(e,t);delete n.gullet.macros.current["\\df@tag"];var o=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new r("\\tag works only in display equations");n.gullet.feed("\\df@tag"),o=[{type:"tag",mode:"text",body:o,tag:n.parse()}]}return o},Vr=function(e,t,n){t.textContent="";var r=Yr(e,n).toNode();t.appendChild(r)};"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&("undefined"!=typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Vr=function(){throw new r("KaTeX doesn't work in quirks mode.")});var Wr=function(e,t,n){if(n.throwOnError||!(e instanceof r))throw e;var o=Ye.makeSpan(["katex-error"],[new z(t)]);return o.setAttribute("title",e.toString()),o.setAttribute("style","color:"+n.errorColor),o},Yr=function(e,t){var n=new c(t);try{return function(e,t,n){var r,o=It(n);if("mathml"===n.output)return Lt(e,t,o,n.displayMode,!0);if("html"===n.output){var i=bt(e,o);r=Ye.makeSpan(["katex"],[i])}else{var a=Lt(e,t,o,n.displayMode,!1),s=bt(e,o);r=Ye.makeSpan(["katex"],[a,s])}return zt(r,n)}(Gr(e,n),e,n)}catch(t){return Wr(t,e,n)}},Kr={version:"0.13.18",render:Vr,renderToString:function(e,t){return Yr(e,t).toMarkup()},ParseError:r,__parse:function(e,t){var n=new c(t);return Gr(e,n)},__renderToDomTree:Yr,__renderToHTMLTree:function(e,t){var n=new c(t);try{return function(e,t,n){var r=bt(e,It(n)),o=Ye.makeSpan(["katex"],[r]);return zt(o,n)}(Gr(e,n),0,n)}catch(t){return Wr(t,e,n)}},__setFontMetrics:function(e,t){B[e]=t},__defineSymbol:W,__defineMacro:pr,__domTree:{Span:N,Anchor:M,SymbolNode:z,SvgNode:O,PathNode:P,LineNode:R}};return t=t.default}()},ja.exports=Fa();var Ha={exports:{}};!function(e){(function(){function t(e){var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r].defaultValue);return n}var n={},r={},o={},i=t(!0),a="vanilla",s={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:t(!0),allOn:function(){var e=t(!0),n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}()};function l(e,t){var r=t?"Error in "+t+" extension->":"Error in unnamed extension",o={valid:!0,error:""};n.helper.isArray(e)||(e=[e]);for(var i=0;i<e.length;++i){var a=r+" sub-extension "+i+": ",s=e[i];if("object"!=typeof s)return o.valid=!1,o.error=a+"must be an object, but "+typeof s+" given",o;if(!n.helper.isString(s.type))return o.valid=!1,o.error=a+'property "type" must be a string, but '+typeof s.type+" given",o;var l=s.type=s.type.toLowerCase();if("language"===l&&(l=s.type="lang"),"html"===l&&(l=s.type="output"),"lang"!==l&&"output"!==l&&"listener"!==l)return o.valid=!1,o.error=a+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',o;if("listener"===l){if(n.helper.isUndefined(s.listeners))return o.valid=!1,o.error=a+'. Extensions of type "listener" must have a property called "listeners"',o}else if(n.helper.isUndefined(s.filter)&&n.helper.isUndefined(s.regex))return o.valid=!1,o.error=a+l+' extensions must define either a "regex" property or a "filter" method',o;if(s.listeners){if("object"!=typeof s.listeners)return o.valid=!1,o.error=a+'"listeners" property must be an object but '+typeof s.listeners+" given",o;for(var c in s.listeners)if(s.listeners.hasOwnProperty(c)&&"function"!=typeof s.listeners[c])return o.valid=!1,o.error=a+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+c+" must be a function but "+typeof s.listeners[c]+" given",o}if(s.filter){if("function"!=typeof s.filter)return o.valid=!1,o.error=a+'"filter" must be a function, but '+typeof s.filter+" given",o}else if(s.regex){if(n.helper.isString(s.regex)&&(s.regex=new RegExp(s.regex,"g")),!(s.regex instanceof RegExp))return o.valid=!1,o.error=a+'"regex" property must either be a string or a RegExp object, but '+typeof s.regex+" given",o;if(n.helper.isUndefined(s.replace))return o.valid=!1,o.error=a+'"regex" extensions must implement a replace string or function',o}}return o}function c(e,t){return"¨E"+t.charCodeAt(0)+"E"}n.helper={},n.extensions={},n.setOption=function(e,t){return i[e]=t,this},n.getOption=function(e){return i[e]},n.getOptions=function(){return i},n.resetOptions=function(){i=t(!0)},n.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");n.resetOptions();var t=s[e];for(var r in a=e,t)t.hasOwnProperty(r)&&(i[r]=t[r])},n.getFlavor=function(){return a},n.getFlavorOptions=function(e){if(s.hasOwnProperty(e))return s[e]},n.getDefaultOptions=function(e){return t(e)},n.subParser=function(e,t){if(n.helper.isString(e)){if(void 0===t){if(r.hasOwnProperty(e))return r[e];throw Error("SubParser named "+e+" not registered!")}r[e]=t}},n.extension=function(e,t){if(!n.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=n.helper.stdExtName(e),n.helper.isUndefined(t)){if(!o.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return o[e]}"function"==typeof t&&(t=t()),n.helper.isArray(t)||(t=[t]);var r=l(t,e);if(!r.valid)throw Error(r.error);o[e]=t},n.getAllExtensions=function(){return o},n.removeExtension=function(e){delete o[e]},n.resetExtensions=function(){o={}},n.validateExtension=function(e){var t=l(e,null);return!!t.valid||(console.warn(t.error),!1)},n.hasOwnProperty("helper")||(n.helper={}),n.helper.isString=function(e){return"string"==typeof e||e instanceof String},n.helper.isFunction=function(e){return e&&"[object Function]"==={}.toString.call(e)},n.helper.isArray=function(e){return Array.isArray(e)},n.helper.isUndefined=function(e){return void 0===e},n.helper.forEach=function(e,t){if(n.helper.isUndefined(e))throw new Error("obj param is required");if(n.helper.isUndefined(t))throw new Error("callback param is required");if(!n.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(n.helper.isArray(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var o in e)e.hasOwnProperty(o)&&t(e[o],o,e)}},n.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},n.helper.escapeCharactersCallback=c,n.helper.escapeCharacters=function(e,t,n){var r="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";n&&(r="\\\\"+r);var o=new RegExp(r,"g");return e=e.replace(o,c)},n.helper.unescapeHTMLEntities=function(e){return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var u=function(e,t,n,r){var o,i,a,s,l,c=r||"",u=c.indexOf("g")>-1,h=new RegExp(t+"|"+n,"g"+c.replace(/g/g,"")),d=new RegExp(t,c.replace(/g/g,"")),p=[];do{for(o=0;a=h.exec(e);)if(d.test(a[0]))o++||(s=(i=h.lastIndex)-a[0].length);else if(o&&!--o){l=a.index+a[0].length;var m={left:{start:s,end:i},match:{start:i,end:a.index},right:{start:a.index,end:l},wholeMatch:{start:s,end:l}};if(p.push(m),!u)return p}}while(o&&(h.lastIndex=i));return p};n.helper.matchRecursiveRegExp=function(e,t,n,r){for(var o=u(e,t,n,r),i=[],a=0;a<o.length;++a)i.push([e.slice(o[a].wholeMatch.start,o[a].wholeMatch.end),e.slice(o[a].match.start,o[a].match.end),e.slice(o[a].left.start,o[a].left.end),e.slice(o[a].right.start,o[a].right.end)]);return i},n.helper.replaceRecursiveRegExp=function(e,t,r,o,i){if(!n.helper.isFunction(t)){var a=t;t=function(){return a}}var s=u(e,r,o,i),l=e,c=s.length;if(c>0){var h=[];0!==s[0].wholeMatch.start&&h.push(e.slice(0,s[0].wholeMatch.start));for(var d=0;d<c;++d)h.push(t(e.slice(s[d].wholeMatch.start,s[d].wholeMatch.end),e.slice(s[d].match.start,s[d].match.end),e.slice(s[d].left.start,s[d].left.end),e.slice(s[d].right.start,s[d].right.end))),d<c-1&&h.push(e.slice(s[d].wholeMatch.end,s[d+1].wholeMatch.start));s[c-1].wholeMatch.end<e.length&&h.push(e.slice(s[c-1].wholeMatch.end)),l=h.join("")}return l},n.helper.regexIndexOf=function(e,t,r){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==!1)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var o=e.substring(r||0).search(t);return o>=0?o+(r||0):o},n.helper.splitAtIndex=function(e,t){if(!n.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},n.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,(function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e})),e},n.helper.padEnd=function(e,t,n){return t>>=0,n=String(n||" "),e.length>t?String(e):((t-=e.length)>n.length&&(n+=n.repeat(t/n.length)),String(e)+n.slice(0,t))},"undefined"==typeof console&&(console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}),n.helper.regexes={asteriskDashAndColon:/([*_:~])/g},n.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"},n.Converter=function(e){var t={},r=[],c=[],u={},h=a,d={parsed:{},raw:"",format:""};function p(e,t){if(t=t||null,n.helper.isString(e)){if(t=e=n.helper.stdExtName(e),n.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new n.Converter));n.helper.isArray(e)||(e=[e]);var o=l(e,t);if(!o.valid)throw Error(o.error);for(var i=0;i<e.length;++i)switch(e[i].type){case"lang":r.push(e[i]);break;case"output":c.push(e[i]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(n.extensions[e],e);if(n.helper.isUndefined(o[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=o[e]}"function"==typeof e&&(e=e()),n.helper.isArray(e)||(e=[e]);var i=l(e,t);if(!i.valid)throw Error(i.error);for(var a=0;a<e.length;++a){switch(e[a].type){case"lang":r.push(e[a]);break;case"output":c.push(e[a])}if(e[a].hasOwnProperty("listeners"))for(var s in e[a].listeners)e[a].listeners.hasOwnProperty(s)&&m(s,e[a].listeners[s])}}function m(e,t){if(!n.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");u.hasOwnProperty(e)||(u[e]=[]),u[e].push(t)}!function(){for(var r in e=e||{},i)i.hasOwnProperty(r)&&(t[r]=i[r]);if("object"!=typeof e)throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.");for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.extensions&&n.helper.forEach(t.extensions,p)}(),this._dispatch=function(e,t,n,r){if(u.hasOwnProperty(e))for(var o=0;o<u[e].length;++o){var i=u[e][o](e,t,this,n,r);i&&void 0!==i&&(t=i)}return t},this.listen=function(e,t){return m(e,t),this},this.makeHtml=function(e){if(!e)return e;var o={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:r,outputModifiers:c,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return e=(e=(e=(e=(e=e.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g,"&nbsp;"),t.smartIndentationFix&&(e=function(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}(e)),e="\n\n"+e+"\n\n",e=(e=n.subParser("detab")(e,t,o)).replace(/^[ \t]+$/gm,""),n.helper.forEach(r,(function(r){e=n.subParser("runExtension")(r,e,t,o)})),e=n.subParser("metadata")(e,t,o),e=n.subParser("hashPreCodeTags")(e,t,o),e=n.subParser("githubCodeBlocks")(e,t,o),e=n.subParser("hashHTMLBlocks")(e,t,o),e=n.subParser("hashCodeTags")(e,t,o),e=n.subParser("stripLinkDefinitions")(e,t,o),e=n.subParser("blockGamut")(e,t,o),e=n.subParser("unhashHTMLSpans")(e,t,o),e=(e=(e=n.subParser("unescapeSpecialChars")(e,t,o)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),e=n.subParser("completeHTMLDocument")(e,t,o),n.helper.forEach(c,(function(r){e=n.subParser("runExtension")(r,e,t,o)})),d=o.metadata,e},this.makeMarkdown=this.makeMd=function(e,t){if(e=(e=(e=e.replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/>[ \t]+</,">¨NBSP;<"),!t){if(!window||!window.document)throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM");t=window.document}var r=t.createElement("div");r.innerHTML=e;var o={preList:function(e){for(var t=e.querySelectorAll("pre"),r=[],o=0;o<t.length;++o)if(1===t[o].childElementCount&&"code"===t[o].firstChild.tagName.toLowerCase()){var i=t[o].firstChild.innerHTML.trim(),a=t[o].firstChild.getAttribute("data-language")||"";if(""===a)for(var s=t[o].firstChild.className.split(" "),l=0;l<s.length;++l){var c=s[l].match(/^language-(.+)$/);if(null!==c){a=c[1];break}}i=n.helper.unescapeHTMLEntities(i),r.push(i),t[o].outerHTML='<precode language="'+a+'" precodenum="'+o.toString()+'"></precode>'}else r.push(t[o].innerHTML),t[o].innerHTML="",t[o].setAttribute("prenum",o.toString());return r}(r)};!function e(t){for(var n=0;n<t.childNodes.length;++n){var r=t.childNodes[n];3===r.nodeType?/\S/.test(r.nodeValue)?(r.nodeValue=r.nodeValue.split("\n").join(" "),r.nodeValue=r.nodeValue.replace(/(\s)+/g,"$1")):(t.removeChild(r),--n):1===r.nodeType&&e(r)}}(r);for(var i=r.childNodes,a="",s=0;s<i.length;s++)a+=n.subParser("makeMarkdown.node")(i[s],o);return a},this.setOption=function(e,n){t[e]=n},this.getOption=function(e){return t[e]},this.getOptions=function(){return t},this.addExtension=function(e,t){p(e,t=t||null)},this.useExtension=function(e){p(e)},this.setFlavor=function(e){if(!s.hasOwnProperty(e))throw Error(e+" flavor was not found");var n=s[e];for(var r in h=e,n)n.hasOwnProperty(r)&&(t[r]=n[r])},this.getFlavor=function(){return h},this.removeExtension=function(e){n.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var o=e[t],i=0;i<r.length;++i)r[i]===o&&r[i].splice(i,1);for(;0<c.length;++i)c[0]===o&&c[0].splice(i,1)}},this.getAllExtensions=function(){return{language:r,output:c}},this.getMetadata=function(e){return e?d.raw:d.parsed},this.getMetadataFormat=function(){return d.format},this._setMetadataPair=function(e,t){d.parsed[e]=t},this._setMetadataFormat=function(e){d.format=e},this._setMetadataRaw=function(e){d.raw=e}},n.subParser("anchors",(function(e,t,r){var o=function(e,o,i,a,s,l,c){if(n.helper.isUndefined(c)&&(c=""),i=i.toLowerCase(),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)a="";else if(!a){if(i||(i=o.toLowerCase().replace(/ ?\n/g," ")),a="#"+i,n.helper.isUndefined(r.gUrls[i]))return e;a=r.gUrls[i],n.helper.isUndefined(r.gTitles[i])||(c=r.gTitles[i])}var u='<a href="'+(a=a.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"';return""!==c&&null!==c&&(u+=' title="'+(c=(c=c.replace(/"/g,"&quot;")).replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),t.openLinksInNewWindow&&!/^#/.test(a)&&(u+=' rel="noopener noreferrer" target="¨E95Eblank"'),u+=">"+o+"</a>"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,o)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,o)).replace(/\[([^\[\]]+)]()()()()()/g,o),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,r,o,i,a){if("\\"===o)return r+i;if(!n.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var s=t.ghMentionsLink.replace(/\{u}/g,a),l="";return t.openLinksInNewWindow&&(l=' rel="noopener noreferrer" target="¨E95Eblank"'),r+'<a href="'+s+'"'+l+">"+i+"</a>"}))),e=r.converter._dispatch("anchors.after",e,t,r)}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,p=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,f=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,g=function(e){return function(t,r,o,i,a,s,l){var c=o=o.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback),u="",h="",d=r||"",p=l||"";return/^www\./i.test(o)&&(o=o.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&s&&(u=s),e.openLinksInNewWindow&&(h=' rel="noopener noreferrer" target="¨E95Eblank"'),d+'<a href="'+o+'"'+h+">"+c+"</a>"+u+p}},v=function(e,t){return function(r,o,i){var a="mailto:";return o=o||"",i=n.subParser("unescapeSpecialChars")(i,e,t),e.encodeEmails?(a=n.helper.encodeEmailAddress(a+i),i=n.helper.encodeEmailAddress(i)):a+=i,o+'<a href="'+a+'">'+i+"</a>"}};n.subParser("autoLinks",(function(e,t,n){return e=(e=(e=n.converter._dispatch("autoLinks.before",e,t,n)).replace(p,g(t))).replace(f,v(t,n)),e=n.converter._dispatch("autoLinks.after",e,t,n)})),n.subParser("simplifiedAutoLinks",(function(e,t,n){return t.simplifiedAutoLink?(e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(d,g(t)):e.replace(h,g(t))).replace(m,v(t,n)),e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n)):e})),n.subParser("blockGamut",(function(e,t,r){return e=r.converter._dispatch("blockGamut.before",e,t,r),e=n.subParser("blockQuotes")(e,t,r),e=n.subParser("headers")(e,t,r),e=n.subParser("horizontalRule")(e,t,r),e=n.subParser("lists")(e,t,r),e=n.subParser("codeBlocks")(e,t,r),e=n.subParser("tables")(e,t,r),e=n.subParser("hashHTMLBlocks")(e,t,r),e=n.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)})),n.subParser("blockQuotes",(function(e,t,r){e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var o=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(o=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(o,(function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=n.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=n.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;return n=(n=n.replace(/^ /gm,"¨0")).replace(/¨0/g,"")})),n.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,r)})),e=r.converter._dispatch("blockQuotes.after",e,t,r)})),n.subParser("codeBlocks",(function(e,t,r){e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,(function(e,o,i){var a=o,s=i,l="\n";return a=n.subParser("outdent")(a,t,r),a=n.subParser("encodeCode")(a,t,r),a=(a=(a=n.subParser("detab")(a,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(l=""),a="<pre><code>"+a+l+"</code></pre>",n.subParser("hashBlock")(a,t,r)+s}))).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)})),n.subParser("codeSpans",(function(e,t,r){return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,o,i,a){var s=a;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=o+"<code>"+(s=n.subParser("encodeCode")(s,t,r))+"</code>",s=n.subParser("hashHTMLSpans")(s,t,r)})),e=r.converter._dispatch("codeSpans.after",e,t,r)})),n.subParser("completeHTMLDocument",(function(e,t,n){if(!t.completeHTMLDocument)return e;e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var r="html",o="<!DOCTYPE HTML>\n",i="",a='<meta charset="utf-8">\n',s="",l="";for(var c in void 0!==n.metadata.parsed.doctype&&(o="<!DOCTYPE "+n.metadata.parsed.doctype+">\n","html"!==(r=n.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==r||(a='<meta charset="utf-8">')),n.metadata.parsed)if(n.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":i="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":a="html"===r||"html5"===r?'<meta charset="'+n.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+n.metadata.parsed.charset+'">\n';break;case"language":case"lang":s=' lang="'+n.metadata.parsed[c]+'"',l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n';break;default:l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n'}return e=o+"<html"+s+">\n<head>\n"+i+a+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",e=n.converter._dispatch("completeHTMLDocument.after",e,t,n)})),n.subParser("detab",(function(e,t,n){return e=(e=(e=(e=n.converter._dispatch("detab.before",e,t,n)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,(function(e,t){for(var n=t,r=4-n.length%4,o=0;o<r;o++)n+=" ";return n})),e=(e=e.replace(/¨A/g," ")).replace(/¨B/g,""),e=n.converter._dispatch("detab.after",e,t,n)})),n.subParser("ellipsis",(function(e,t,n){return e=(e=n.converter._dispatch("ellipsis.before",e,t,n)).replace(/\.\.\./g,"…"),e=n.converter._dispatch("ellipsis.after",e,t,n)})),n.subParser("emoji",(function(e,t,r){if(!t.emoji)return e;return e=(e=r.converter._dispatch("emoji.before",e,t,r)).replace(/:([\S]+?):/g,(function(e,t){return n.helper.emojis.hasOwnProperty(t)?n.helper.emojis[t]:e})),e=r.converter._dispatch("emoji.after",e,t,r)})),n.subParser("encodeAmpsAndAngles",(function(e,t,n){return e=(e=(e=(e=(e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n)})),n.subParser("encodeBackslashEscapes",(function(e,t,r){return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,n.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)})),n.subParser("encodeCode",(function(e,t,r){return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)})),n.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,r){return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)}))).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,(function(e){return e.replace(/([\\`*_~=|])/g,n.helper.escapeCharactersCallback)})),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)})),n.subParser("githubCodeBlocks",(function(e,t,r){return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,o,i,a){var s=t.omitExtraWLInCodeBlocks?"":"\n";return a=n.subParser("encodeCode")(a,t,r),a="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+">"+(a=(a=(a=n.subParser("detab")(a,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",a=n.subParser("hashBlock")(a,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"}))).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e})),n.subParser("hashBlock",(function(e,t,n){return e=(e=n.converter._dispatch("hashBlock.before",e,t,n)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n",e=n.converter._dispatch("hashBlock.after",e,t,n)})),n.subParser("hashCodeTags",(function(e,t,r){e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,(function(e,o,i,a){var s=i+n.subParser("encodeCode")(o,t,r)+a;return"¨C"+(r.gHtmlSpans.push(s)-1)+"C"}),"<code\\b[^>]*>","</code>","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)})),n.subParser("hashElement",(function(e,t,n){return function(e,t){var r=t;return r=(r=(r=r.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),r="\n\n¨K"+(n.gHtmlBlocks.push(r)-1)+"K\n\n"}})),n.subParser("hashHTMLBlocks",(function(e,t,r){e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var o=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],i=function(e,t,n,o){var i=e;return-1!==n.search(/\bmarkdown\b/)&&(i=n+r.converter.makeHtml(t)+o),"\n\n¨K"+(r.gHtmlBlocks.push(i)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"})));for(var a=0;a<o.length;++a)for(var s,l=new RegExp("^ {0,3}(<"+o[a]+"\\b[^>]*>)","im"),c="<"+o[a]+"\\b[^>]*>",u="</"+o[a]+">";-1!==(s=n.helper.regexIndexOf(e,l));){var h=n.helper.splitAtIndex(e,s),d=n.helper.replaceRecursiveRegExp(h[1],i,c,u,"im");if(d===h[1])break;e=h[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=(e=n.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,n.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)})),n.subParser("hashHTMLSpans",(function(e,t,n){function r(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=n.converter._dispatch("hashHTMLSpans.before",e,t,n)).replace(/<[^>]+?\/>/gi,(function(e){return r(e)}))).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return r(e)}))).replace(/<[^>]+?>/gi,(function(e){return r(e)})),e=n.converter._dispatch("hashHTMLSpans.after",e,t,n)})),n.subParser("unhashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var r=0;r<n.gHtmlSpans.length;++r){for(var o=n.gHtmlSpans[r],i=0;/¨C(\d+)C/.test(o);){var a=RegExp.$1;if(o=o.replace("¨C"+a+"C",n.gHtmlSpans[a]),10===i){console.error("maximum nesting of 10 spans reached!!!");break}++i}e=e.replace("¨C"+r+"C",o)}return e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n)})),n.subParser("hashPreCodeTags",(function(e,t,r){e=r.converter._dispatch("hashPreCodeTags.before",e,t,r);return e=n.helper.replaceRecursiveRegExp(e,(function(e,o,i,a){var s=i+n.subParser("encodeCode")(o,t,r)+a;return"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"}),"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)})),n.subParser("headers",(function(e,t,r){e=r.converter._dispatch("headers.before",e,t,r);var o=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),i=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,a=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(i,(function(e,i){var a=n.subParser("spanGamut")(i,t,r),s=t.noHeaderId?"":' id="'+l(i)+'"',c="<h"+o+s+">"+a+"</h"+o+">";return n.subParser("hashBlock")(c,t,r)}))).replace(a,(function(e,i){var a=n.subParser("spanGamut")(i,t,r),s=t.noHeaderId?"":' id="'+l(i)+'"',c=o+1,u="<h"+c+s+">"+a+"</h"+c+">";return n.subParser("hashBlock")(u,t,r)}));var s=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function l(e){var o,i;if(t.customizedHeaderId){var a=e.match(/\{([^{]+?)}\s*$/);a&&a[1]&&(e=a[1])}return o=e,i=n.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(o=i+o),o=t.ghCompatibleHeaderId?o.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?o.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():o.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(o=i+o),r.hashLinkCounts[o]?o=o+"-"+r.hashLinkCounts[o]++:r.hashLinkCounts[o]=1,o}return e=e.replace(s,(function(e,i,a){var s=a;t.customizedHeaderId&&(s=a.replace(/\s?\{([^{]+?)}\s*$/,""));var c=n.subParser("spanGamut")(s,t,r),u=t.noHeaderId?"":' id="'+l(a)+'"',h=o-1+i.length,d="<h"+h+u+">"+c+"</h"+h+">";return n.subParser("hashBlock")(d,t,r)})),e=r.converter._dispatch("headers.after",e,t,r)})),n.subParser("horizontalRule",(function(e,t,r){e=r.converter._dispatch("horizontalRule.before",e,t,r);var o=n.subParser("hashBlock")("<hr />",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,o)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,o)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,o),e=r.converter._dispatch("horizontalRule.after",e,t,r)})),n.subParser("images",(function(e,t,r){function o(e,t,o,i,a,s,l,c){var u=r.gUrls,h=r.gTitles,d=r.gDimensions;if(o=o.toLowerCase(),c||(c=""),e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1)i="";else if(""===i||null===i){if(""!==o&&null!==o||(o=t.toLowerCase().replace(/ ?\n/g," ")),i="#"+o,n.helper.isUndefined(u[o]))return e;i=u[o],n.helper.isUndefined(h[o])||(c=h[o]),n.helper.isUndefined(d[o])||(a=d[o].width,s=d[o].height)}t=t.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback);var p='<img src="'+(i=i.replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'" alt="'+t+'"';return c&&n.helper.isString(c)&&(p+=' title="'+(c=c.replace(/"/g,"&quot;").replace(n.helper.regexes.asteriskDashAndColon,n.helper.escapeCharactersCallback))+'"'),a&&s&&(p+=' width="'+(a="*"===a?"auto":a)+'"',p+=' height="'+(s="*"===s?"auto":s)+'"'),p+=" />"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,o)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,(function(e,t,n,r,i,a,s,l){return o(e,t,n,r=r.replace(/\s/g,""),i,a,s,l)}))).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,o)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,o)).replace(/!\[([^\[\]]+)]()()()()()/g,o),e=r.converter._dispatch("images.after",e,t,r)})),n.subParser("italicsAndBold",(function(e,t,n){function r(e,t,n){return t+e+n}return e=n.converter._dispatch("italicsAndBold.before",e,t,n),t.literalMidWordUnderscores?e=(e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return r(t,"<strong><em>","</em></strong>")}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return r(t,"<strong>","</strong>")}))).replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return r(t,"<em>","</em>")})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})),e=e.replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}))),t.literalMidWordAsterisks?e=(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong><em>","</em></strong>")}))).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<strong>","</strong>")}))).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return r(n,t+"<em>","</em>")})):(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong><em>","</em></strong>"):e})),e=e.replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<strong>","</strong>"):e})),e=e.replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?r(t,"<em>","</em>"):e}))),e=n.converter._dispatch("italicsAndBold.after",e,t,n)})),n.subParser("lists",(function(e,t,r){function o(e,o){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,a=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(i,(function(e,o,i,s,l,c,u){u=u&&""!==u.trim();var h=n.subParser("outdent")(l,t,r),d="";return c&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',h=h.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return u&&(e+=" checked"),e+=">"}))),h=h.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e})),o||h.search(/\n{2,}/)>-1?(h=n.subParser("githubCodeBlocks")(h,t,r),h=n.subParser("blockGamut")(h,t,r)):(h=(h=n.subParser("lists")(h,t,r)).replace(/\n$/,""),h=(h=n.subParser("hashHTMLBlocks")(h,t,r)).replace(/\n\n+/g,"\n\n"),h=a?n.subParser("paragraphs")(h,t,r):n.subParser("spanGamut")(h,t,r)),h="<li"+d+">"+(h=h.replace("¨A",""))+"</li>\n"}))).replace(/¨0/g,""),r.gListLevel--,o&&(e=e.replace(/\s+$/,"")),e}function i(e,t){if("ol"===t){var n=e.match(/^ *(\d+)\./);if(n&&"1"!==n[1])return' start="'+n[1]+'"'}return""}function a(e,n,r){var a=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,s=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l="ul"===n?a:s,c="";if(-1!==e.search(l))!function t(u){var h=u.search(l),d=i(e,n);-1!==h?(c+="\n\n<"+n+d+">\n"+o(u.slice(0,h),!!r)+"</"+n+">\n",l="ul"===(n="ul"===n?"ol":"ul")?a:s,t(u.slice(h))):c+="\n\n<"+n+d+">\n"+o(u,!!r)+"</"+n+">\n"}(e);else{var u=i(e,n);c="\n\n<"+n+u+">\n"+o(e,!!r)+"</"+n+">\n"}return c}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){return a(t,n.search(/[*+-]/g)>-1?"ul":"ol",!0)})):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,r){return a(n,r.search(/[*+-]/g)>-1?"ul":"ol",!1)}))).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)})),n.subParser("metadata",(function(e,t,n){if(!t.metadata)return e;function r(e){n.metadata.raw=e,(e=(e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,r){return n.metadata.parsed[t]=r,""}))}return e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){return r(n),"¨M"}))).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,o){return t&&(n.metadata.format=t),r(o),"¨M"})),e=e.replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n)})),n.subParser("outdent",(function(e,t,n){return e=(e=(e=n.converter._dispatch("outdent.before",e,t,n)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=n.converter._dispatch("outdent.after",e,t,n)})),n.subParser("paragraphs",(function(e,t,r){for(var o=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),i=[],a=o.length,s=0;s<a;s++){var l=o[s];l.search(/¨(K|G)(\d+)\1/g)>=0?i.push(l):l.search(/\S/)>=0&&(l=(l=n.subParser("spanGamut")(l,t,r)).replace(/^([ \t]*)/g,"<p>"),l+="</p>",i.push(l))}for(a=i.length,s=0;s<a;s++){for(var c="",u=i[s],h=!1;/¨(K|G)(\d+)\1/.test(u);){var d=RegExp.$1,p=RegExp.$2;c=(c="K"===d?r.gHtmlBlocks[p]:h?n.subParser("encodeCode")(r.ghCodeBlocks[p].text,t,r):r.ghCodeBlocks[p].codeblock).replace(/\$/g,"$$$$"),u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,c),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)&&(h=!0)}i[s]=u}return e=(e=(e=i.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)})),n.subParser("runExtension",(function(e,t,n,r){if(e.filter)t=e.filter(t,r.converter,n);else if(e.regex){var o=e.regex;o instanceof RegExp||(o=new RegExp(o,"g")),t=t.replace(o,e.replace)}return t})),n.subParser("spanGamut",(function(e,t,r){return e=r.converter._dispatch("spanGamut.before",e,t,r),e=n.subParser("codeSpans")(e,t,r),e=n.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=n.subParser("encodeBackslashEscapes")(e,t,r),e=n.subParser("images")(e,t,r),e=n.subParser("anchors")(e,t,r),e=n.subParser("autoLinks")(e,t,r),e=n.subParser("simplifiedAutoLinks")(e,t,r),e=n.subParser("emoji")(e,t,r),e=n.subParser("underline")(e,t,r),e=n.subParser("italicsAndBold")(e,t,r),e=n.subParser("strikethrough")(e,t,r),e=n.subParser("ellipsis")(e,t,r),e=n.subParser("hashHTMLSpans")(e,t,r),e=n.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)})),n.subParser("strikethrough",(function(e,t,r){return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,o){return function(e){return t.simplifiedAutoLink&&(e=n.subParser("simplifiedAutoLinks")(e,t,r)),"<del>"+e+"</del>"}(o)})),e=r.converter._dispatch("strikethrough.after",e,t,r)),e})),n.subParser("stripLinkDefinitions",(function(e,t,r){var o=function(e,o,i,a,s,l,c){return o=o.toLowerCase(),i.match(/^data:.+?\/.+?;base64,/)?r.gUrls[o]=i.replace(/\s/g,""):r.gUrls[o]=n.subParser("encodeAmpsAndAngles")(i,t,r),l?l+c:(c&&(r.gTitles[o]=c.replace(/"|'/g,"&quot;")),t.parseImgDimensions&&a&&s&&(r.gDimensions[o]={width:a,height:s}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,o)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,o)).replace(/¨0/,"")})),n.subParser("tables",(function(e,t,r){if(!t.tables)return e;function o(e,o){return"<td"+o+">"+n.subParser("spanGamut")(e,t,r)+"</td>\n"}function i(e){var i,a=e.split("\n");for(i=0;i<a.length;++i)/^ {0,3}\|/.test(a[i])&&(a[i]=a[i].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(a[i])&&(a[i]=a[i].replace(/\|[ \t]*$/,"")),a[i]=n.subParser("codeSpans")(a[i],t,r);var s,l,c,u,h=a[0].split("|").map((function(e){return e.trim()})),d=a[1].split("|").map((function(e){return e.trim()})),p=[],m=[],f=[],g=[];for(a.shift(),a.shift(),i=0;i<a.length;++i)""!==a[i].trim()&&p.push(a[i].split("|").map((function(e){return e.trim()})));if(h.length<d.length)return e;for(i=0;i<d.length;++i)f.push((s=d[i],/^:[ \t]*--*$/.test(s)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(s)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(s)?' style="text-align:center;"':""));for(i=0;i<h.length;++i)n.helper.isUndefined(f[i])&&(f[i]=""),m.push((l=h[i],c=f[i],u=void 0,u="",l=l.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(u=' id="'+l.replace(/ /g,"_").toLowerCase()+'"'),"<th"+u+c+">"+(l=n.subParser("spanGamut")(l,t,r))+"</th>\n"));for(i=0;i<p.length;++i){for(var v=[],y=0;y<m.length;++y)n.helper.isUndefined(p[i][y]),v.push(o(p[i][y],f[y]));g.push(v)}return function(e,t){for(var n="<table>\n<thead>\n<tr>\n",r=e.length,o=0;o<r;++o)n+=e[o];for(n+="</tr>\n</thead>\n<tbody>\n",o=0;o<t.length;++o){n+="<tr>\n";for(var i=0;i<r;++i)n+=t[o][i];n+="</tr>\n"}return n+"</tbody>\n</table>\n"}(m,g)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,n.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,i)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,i),e=r.converter._dispatch("tables.after",e,t,r)})),n.subParser("underline",(function(e,t,r){return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),t.literalMidWordUnderscores?e=(e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}))).replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"})):(e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})),e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))),e=e.replace(/(_)/g,n.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e})),n.subParser("unescapeSpecialChars",(function(e,t,n){return e=(e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n)).replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)})),e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n)})),n.subParser("makeMarkdown.blockquote",(function(e,t){var r="";if(e.hasChildNodes())for(var o=e.childNodes,i=o.length,a=0;a<i;++a){var s=n.subParser("makeMarkdown.node")(o[a],t);""!==s&&(r+=s)}return r="> "+(r=r.trim()).split("\n").join("\n> ")})),n.subParser("makeMarkdown.codeBlock",(function(e,t){var n=e.getAttribute("language"),r=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[r]+"\n```"})),n.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"})),n.subParser("makeMarkdown.emphasis",(function(e,t){var r="";if(e.hasChildNodes()){r+="*";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="*"}return r})),n.subParser("makeMarkdown.header",(function(e,t,r){var o=new Array(r+1).join("#"),i="";if(e.hasChildNodes()){i=o+" ";for(var a=e.childNodes,s=a.length,l=0;l<s;++l)i+=n.subParser("makeMarkdown.node")(a[l],t)}return i})),n.subParser("makeMarkdown.hr",(function(){return"---"})),n.subParser("makeMarkdown.image",(function(e){var t="";return e.hasAttribute("src")&&(t+="!["+e.getAttribute("alt")+"](",t+="<"+e.getAttribute("src")+">",e.hasAttribute("width")&&e.hasAttribute("height")&&(t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")),e.hasAttribute("title")&&(t+=' "'+e.getAttribute("title")+'"'),t+=")"),t})),n.subParser("makeMarkdown.links",(function(e,t){var r="";if(e.hasChildNodes()&&e.hasAttribute("href")){var o=e.childNodes,i=o.length;r="[";for(var a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="](",r+="<"+e.getAttribute("href")+">",e.hasAttribute("title")&&(r+=' "'+e.getAttribute("title")+'"'),r+=")"}return r})),n.subParser("makeMarkdown.list",(function(e,t,r){var o="";if(!e.hasChildNodes())return"";for(var i=e.childNodes,a=i.length,s=e.getAttribute("start")||1,l=0;l<a;++l)if(void 0!==i[l].tagName&&"li"===i[l].tagName.toLowerCase()){o+=("ol"===r?s.toString()+". ":"- ")+n.subParser("makeMarkdown.listItem")(i[l],t),++s}return(o+="\n\x3c!-- --\x3e\n").trim()})),n.subParser("makeMarkdown.listItem",(function(e,t){for(var r="",o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);return/\n$/.test(r)?r=r.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n"):r+="\n",r})),n.subParser("makeMarkdown.node",(function(e,t,r){r=r||!1;var o="";if(3===e.nodeType)return n.subParser("makeMarkdown.txt")(e,t);if(8===e.nodeType)return"\x3c!--"+e.data+"--\x3e\n\n";if(1!==e.nodeType)return"";switch(e.tagName.toLowerCase()){case"h1":r||(o=n.subParser("makeMarkdown.header")(e,t,1)+"\n\n");break;case"h2":r||(o=n.subParser("makeMarkdown.header")(e,t,2)+"\n\n");break;case"h3":r||(o=n.subParser("makeMarkdown.header")(e,t,3)+"\n\n");break;case"h4":r||(o=n.subParser("makeMarkdown.header")(e,t,4)+"\n\n");break;case"h5":r||(o=n.subParser("makeMarkdown.header")(e,t,5)+"\n\n");break;case"h6":r||(o=n.subParser("makeMarkdown.header")(e,t,6)+"\n\n");break;case"p":r||(o=n.subParser("makeMarkdown.paragraph")(e,t)+"\n\n");break;case"blockquote":r||(o=n.subParser("makeMarkdown.blockquote")(e,t)+"\n\n");break;case"hr":r||(o=n.subParser("makeMarkdown.hr")(e,t)+"\n\n");break;case"ol":r||(o=n.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n");break;case"ul":r||(o=n.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n");break;case"precode":r||(o=n.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n");break;case"pre":r||(o=n.subParser("makeMarkdown.pre")(e,t)+"\n\n");break;case"table":r||(o=n.subParser("makeMarkdown.table")(e,t)+"\n\n");break;case"code":o=n.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":o=n.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":o=n.subParser("makeMarkdown.strong")(e,t);break;case"del":o=n.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":o=n.subParser("makeMarkdown.links")(e,t);break;case"img":o=n.subParser("makeMarkdown.image")(e,t);break;default:o=e.outerHTML+"\n\n"}return o})),n.subParser("makeMarkdown.paragraph",(function(e,t){var r="";if(e.hasChildNodes())for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);return r=r.trim()})),n.subParser("makeMarkdown.pre",(function(e,t){var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"})),n.subParser("makeMarkdown.strikethrough",(function(e,t){var r="";if(e.hasChildNodes()){r+="~~";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="~~"}return r})),n.subParser("makeMarkdown.strong",(function(e,t){var r="";if(e.hasChildNodes()){r+="**";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t);r+="**"}return r})),n.subParser("makeMarkdown.table",(function(e,t){var r,o,i="",a=[[],[]],s=e.querySelectorAll("thead>tr>th"),l=e.querySelectorAll("tbody>tr");for(r=0;r<s.length;++r){var c=n.subParser("makeMarkdown.tableCell")(s[r],t),u="---";if(s[r].hasAttribute("style"))switch(s[r].getAttribute("style").toLowerCase().replace(/\s/g,"")){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:"}a[0][r]=c.trim(),a[1][r]=u}for(r=0;r<l.length;++r){var h=a.push([])-1,d=l[r].getElementsByTagName("td");for(o=0;o<s.length;++o){var p=" ";void 0!==d[o]&&(p=n.subParser("makeMarkdown.tableCell")(d[o],t)),a[h].push(p)}}var m=3;for(r=0;r<a.length;++r)for(o=0;o<a[r].length;++o){var f=a[r][o].length;f>m&&(m=f)}for(r=0;r<a.length;++r){for(o=0;o<a[r].length;++o)1===r?":"===a[r][o].slice(-1)?a[r][o]=n.helper.padEnd(a[r][o].slice(-1),m-1,"-")+":":a[r][o]=n.helper.padEnd(a[r][o],m,"-"):a[r][o]=n.helper.padEnd(a[r][o],m);i+="| "+a[r].join(" | ")+" |\n"}return i.trim()})),n.subParser("makeMarkdown.tableCell",(function(e,t){var r="";if(!e.hasChildNodes())return"";for(var o=e.childNodes,i=o.length,a=0;a<i;++a)r+=n.subParser("makeMarkdown.node")(o[a],t,!0);return r.trim()})),n.subParser("makeMarkdown.txt",(function(e){var t=e.nodeValue;return t=(t=t.replace(/ +/g," ")).replace(/¨NBSP;/g," "),t=(t=(t=(t=(t=(t=(t=(t=(t=n.helper.unescapeHTMLEntities(t)).replace(/([*_~|`])/g,"\\$1")).replace(/^(\s*)>/g,"\\$1>")).replace(/^#/gm,"\\#")).replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3")).replace(/^( {0,3}\d+)\./gm,"$1\\.")).replace(/^( {0,3})([+-])/gm,"$1\\$2")).replace(/]([\s]*)\(/g,"\\]$1\\(")).replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:")}));e.exports?e.exports=n:this.showdown=n}).call(jn)}(Ha);var Ua=Ha.exports;const qa=Ra(window);function $a(){return[{type:"output",filter:function(e){return e.replace(/<a href=/g,'<a target="_blank" href=')}}]}let Ga;function Va(e){return"{math:"+e.toString()+"}"}function Wa(e){const t=function(e){const t=[];let n=0,r=e;for(;;){const e=r.indexOf("$$",n),o=r.indexOf("\\(",n);if(-1===e&&-1===o)break;let i,a;if(-1!==e&&(-1===o||e<o)?(i=e,a=r.indexOf("$$",i+2)):(i=o,a=r.indexOf("\\)",i+2)),-1===a)break;a+=2;const s=t.length+1,l=Va(s);let c;t.push({id:s,expression:r.slice(i+2,a-2),inline:-1!==o}),c=-1!==o?l:"\n\n"+l+"\n\n",r=r.slice(0,i)+c+r.slice(a),n=i+c.length}return{mathBlocks:t,content:r}}(e),n=qa.sanitize(function(e){return Ga||(Ga=new Ua.Converter({extensions:[$a],simplifiedAutoLink:!0,literalMidWordUnderscores:!0,strikethrough:!0})),Ga.makeHtml(e)}(t.content)),r=function(e,t){return t.reduce(((e,t)=>{let n;try{n=t.inline?ja.exports.renderToString(t.expression):ja.exports.renderToString(t.expression,{displayMode:!0})}catch(e){n=Ba(t.expression)}return e.replace(Va(t.id),n)}),e)}(n,t.mathBlocks);return r}function Ya({markdown:e="",textClass:t={},textStyle:n={}}){const r=vr((()=>e?Wa(e):""),[e]),o=gr(null);mr((()=>{!function(e,{className:t}={}){const n=Array.from(e.getElementsByTagName("a"));for(let e of n){const n=Hi(e);n&&(t?n.className=t:n.style.width="350px")}}(o.current,{className:"MarkdownView__embed"})}),[e]);return Er("div",{className:rr("MarkdownView",t),dir:"auto",lang:"",ref:o,dangerouslySetInnerHTML:{__html:r},style:n})}function Ka({annotation:e,tags:t}){const n=ho(),r=n.defaultAuthority(),o=vr((()=>!io(e.user,r)),[e,r]),i=e=>n.getLink("search.tag",{tag:e});return Er("ul",{className:"TagList","aria-label":"Annotation tags",children:t.map((e=>Er("li",{className:"TagList__item",children:[o&&Er("a",{className:"TagList__link",href:i(e),lang:"",target:"_blank",rel:"noopener noreferrer","aria-label":`Tag: ${e}`,title:`View annotations with tag: ${e}`,children:e}),!o&&Er("span",{className:"TagList__text","aria-label":`Tag: ${e}`,lang:"",children:e})]},e)))})}qa.addHook("afterSanitizeAttributes",(e=>{"target"in e&&e.setAttribute("target","_blank")}));var Xa=co((function({annotation:e,settings:t}){var n,r;const[o,i]=dr(!0),[a,s]=dr(!1),l=ho().getDraft(e),c=o?"More":"Less",u=null!==(n=null==l?void 0:l.tags)&&void 0!==n?n:e.tags,h=null!==(r=null==l?void 0:l.text)&&void 0!==r?r:e.text,d=h.length>0,p=u.length>0,m=so(["annotationFontFamily"],t);return Er("div",{className:"AnnotationBody",children:[d&&Er(Pi,{collapse:o,collapsedHeight:400,inlineControls:!1,onCollapsibleChanged:s,onToggleCollapsed:i,overflowThreshold:20,children:Er(Ya,{textStyle:m,markdown:h,textClass:{AnnotationBody__text:!0,"is-hidden":Po(e)}})}),a&&Er("div",{className:"AnnotationBody__collapse-toggle",children:Er(zr,{expanded:!o,onClick:()=>i(!o),title:`Toggle visibility of full annotation text: Show ${c}`,children:c})}),p&&Er(Ka,{annotation:e,tags:u})]})}),["settings"]);const Ja=0,Za=1;function Qa(e,t,n,r){let o=e.selectionStart,i=e.selectionEnd;return o>=t+n?(o+=r.length-n,i+=r.length-n):i<=t||(o<=t&&i>=t+n?i+=r.length-n:o<t&&i<t+n?o=t:o<t+n&&i>t+n?i+=r.length-n:t<o&&t+n>i&&(o=t,i=t+n)),{text:e.text.slice(0,t)+r+e.text.slice(t+n),selectionStart:o,selectionEnd:i}}function es(e,t=Ja){const n=e.text.slice(e.selectionStart,e.selectionEnd);let r,o="";if(t===Za&&(o="!"),n.match(/[a-z]+:\/\/.*/)){const t="Description";return r=Qa(e,e.selectionStart,n.length,o+"["+t+"]("+n+")"),r.selectionStart=e.selectionStart+o.length+1,r.selectionEnd=r.selectionStart+t.length,r}{const t=o+"["+n+"](",i="http://insert-your-link-here.com";return r=Qa(e,e.selectionStart,n.length,t+i+")"),r.selectionStart=e.selectionStart+t.length,r.selectionEnd=r.selectionStart+i.length,r}}function ts(e,t,n,r){void 0===n&&(n=t);const o=e.text.slice(e.selectionStart-t.length,e.selectionStart),i=e.text.slice(e.selectionEnd,e.selectionEnd+t.length);let a=e;return e.selectionStart===e.selectionEnd&&r&&(a=Qa(e,e.selectionStart,0,r),a.selectionStart=a.selectionEnd-r.length),o===t&&i===n?(a=Qa(a,a.selectionStart-t.length,t.length,""),a=Qa(a,a.selectionEnd,n.length,"")):(a=Qa(a,a.selectionStart,0,t),a=Qa(a,a.selectionEnd,0,n)),a}function ns(e,t){const n=e.indexOf("\n",t);return n<0?e.length:n}function rs(e,t,n,r){let o=function(e,t){const n=e.lastIndexOf("\n",t);return n<0?0:n+1}(e.text,t),i=ns(e.text,t);for(;i<=ns(e.text,n);){const t=i===e.text.length,a=i-o,s=ns((e=r(e,o,i)).text,o)-o;if(n+=s-a,t)break;o=o+s+1,i=ns(e.text,o)}return e}function os(e,t){const n=e.selectionStart,r=e.selectionEnd;let o=!0;return rs(e,n,r,((e,n)=>(e.text.slice(n,n+t.length)!==t&&(o=!1),e))),rs(e,n,r,o?(e,n)=>Qa(e,n,t.length,""):(e,n)=>e.text.slice(n,n+t.length)===t?e:Qa(e,n,0,t))}const is={bold:"b",italic:"i",link:"l",quote:"q",image:"g",numlist:"o",list:"u"};function as({buttonRef:e,disabled:t=!1,iconName:n,label:r,onClick:o,shortcutKey:i,tabIndex:a,title:s=""}){const l=vr((()=>((e=window.navigator.userAgent)=>e.indexOf("Mac OS")>=0)()?"Cmd":"Ctrl"),[]);let c=s;return i&&(c+=` (${l}-${i.toUpperCase()})`),Er("button",{className:rr("MarkdownEditor__toolbar-button",r&&"is-text"),disabled:t,onClick:o,"aria-label":c,title:c,tabIndex:a,ref:e,children:[n&&Er(Cr,{name:n,className:"MarkdownEditor__toolbar-button-icon"}),r]})}function ss({isPreviewing:e,onCommand:t,onTogglePreview:n}){const r=0,o=1,i=2,a=3,s=4,l=5,c=6,u=7,h=8,d=9,p=10,[m,f]=dr(0),g=gr([]).current;if(0===g.length)for(let e=0;e<=p;e++)g.push({current:null});const v=e=>m===e?0:-1;return Er("div",{className:"MarkdownEditor__toolbar",role:"toolbar","aria-label":"Markdown editor toolbar",onKeyDown:t=>{let n=0;const r=p-1;e&&(n=h);let o=null;switch(Hr(t.key)){case"ArrowLeft":o=m<=n?r:m-1;break;case"ArrowRight":o=m>=r?n:m+1;break;case"Home":o=n;break;case"End":o=r}var i;null!==o&&(f(i=o),g[i].current.focus(),t.preventDefault())},children:[Er(as,{disabled:e,iconName:"format-bold",onClick:()=>t("bold"),shortcutKey:is.bold,buttonRef:g[r],tabIndex:v(r),title:"Bold"}),Er(as,{disabled:e,iconName:"format-italic",onClick:()=>t("italic"),shortcutKey:is.italic,buttonRef:g[o],tabIndex:v(o),title:"Italic"}),Er(as,{disabled:e,iconName:"format-quote",onClick:()=>t("quote"),shortcutKey:is.quote,buttonRef:g[i],tabIndex:v(i),title:"Quote"}),Er(as,{disabled:e,iconName:"link",onClick:()=>t("link"),shortcutKey:is.link,buttonRef:g[a],tabIndex:v(a),title:"Insert link"}),Er(as,{disabled:e,iconName:"image",onClick:()=>t("image"),shortcutKey:is.image,buttonRef:g[s],tabIndex:v(s),title:"Insert image"}),Er(as,{disabled:e,iconName:"format-functions",onClick:()=>t("math"),buttonRef:g[l],tabIndex:v(l),title:"Insert math (LaTeX is supported)"}),Er(as,{disabled:e,iconName:"format-list-numbered",onClick:()=>t("numlist"),shortcutKey:is.numlist,buttonRef:g[c],tabIndex:v(c),title:"Numbered list"}),Er(as,{disabled:e,iconName:"format-list-unordered",onClick:()=>t("list"),shortcutKey:is.list,buttonRef:g[u],tabIndex:v(u),title:"Bulleted list"}),Er("span",{className:"hyp-u-stretch"}),Er("div",{className:"MarkdownEditor__toolbar-help-link",children:Er("a",{href:"https://web.hypothes.is/help/formatting-annotations-with-markdown/",target:"_blank",rel:"noopener noreferrer",className:"MarkdownEditor__toolbar-button",ref:g[h],tabIndex:v(h),title:"Formatting help","aria-label":"Formatting help",children:Er(Cr,{name:"help",className:"MarkdownEditor__toolbar-button-icon"})})}),Er(as,{label:e?"Write":"Preview",onClick:n,buttonRef:g[d],tabIndex:v(d)})]})}function ls({label:e="",onEditText:t=(()=>{}),text:n="",textStyle:r={}}){const[o,i]=dr(!1),a=gr(null);mr((()=>{o||a.current.focus()}),[o]);const s=e=>{const n=a.current;!function(e,t){const n=e=>{const n=e({text:t.value,selectionStart:t.selectionStart,selectionEnd:t.selectionEnd});t.value=n.text,t.selectionStart=n.selectionStart,t.selectionEnd=n.selectionEnd,t.focus()},r=e=>{const t=e.text.slice(0,e.selectionStart);return 0===t.length||"\n"===t.slice(-1)||"$$"===t.slice(-2)?ts(e,"$$","$$","Insert LaTeX"):ts(e,"\\(","\\)","Insert LaTeX")};switch(e){case"bold":n((e=>ts(e,"**","**","Bold")));break;case"italic":n((e=>ts(e,"*","*","Italic")));break;case"quote":n((e=>os(e,"> ")));break;case"link":n((e=>es(e)));break;case"image":n((e=>es(e,Za)));break;case"math":n(r);break;case"numlist":n((e=>os(e,"1. ")));break;case"list":n((e=>os(e,"* ")));break;default:throw new Error(`Unknown toolbar command "${e}"`)}}(e,n),t({text:n.value})};return Er("div",{className:"MarkdownEditor",children:[Er(ss,{onCommand:s,isPreviewing:o,onTogglePreview:()=>i(!o)}),o?Er(Ya,{markdown:n,textClass:{MarkdownEditor__preview:!0},textStyle:r}):Er("textarea",{"aria-label":e,className:"MarkdownEditor__input",dir:"auto",ref:a,onClick:e=>e.stopPropagation(),onKeyDown:e=>{if(e.ctrlKey||e.metaKey)for(let[t,n]of Object.entries(is))n===Hr(e.key)&&(e.stopPropagation(),e.preventDefault(),s(t))},onInput:e=>{t({text:e.target.value})},value:n,style:r})]})}const cs=e=>e;function us({activeItem:e=-1,id:t,itemPrefixId:n,list:r,listFormatter:o=cs,onSelectItem:i,open:a=!1}){const s=vr((()=>r.map(((t,r)=>{const a=n?{id:`${n}${r}`}:{};return Er("li",{role:"option","aria-selected":(e===r).toString(),className:rr({"is-selected":e===r},"AutocompleteList__li"),onClick:()=>{i(t)},...a,children:o(t,r)},`AutocompleteList-${r}`)}))),[e,n,r,o,i]),l=t?{id:t}:{},c=0===r.length||!a;return Er("div",{className:rr({"is-hidden":c},"AutocompleteList"),children:Er("ul",{className:"AutocompleteList__items",tabIndex:-1,"aria-label":"Suggestions",role:"listbox",...l,children:s})})}let hs=0;var ds=co((function({onAddTag:e,onRemoveTag:t,onTagInput:n,tagList:r,tags:o}){const i=gr(null),[a,s]=dr([]),[l,c]=dr(-1),[u,h]=dr(!1),[d]=dr((()=>(++hs,`TagEditor-${hs}`))),p=gr(null);qr(p,u,(()=>{h(!1)}));const m=()=>i.current.value.trim(),f=()=>m()&&m().length>0,g=()=>{i.current.value="",null==n||n("")},v=t=>{e(t)&&(h(!1),c(-1),g(),i.current.focus())},y=e=>{let t=l+e;t<-1?t=a.length-1:t>=a.length&&(t=-1),c(t)},_=l>=0?`${d}-AutocompleteList-item-${l}`:"";return Er("div",{className:"TagEditor",children:[Er("ul",{className:"TagEditor__tags","aria-label":"Suggested tags for annotation",children:r.map((e=>Er("li",{className:"TagEditor__item","aria-label":`Tag: ${e}`,children:[Er("span",{lang:"",className:"TagEditor__edit",children:e}),Er("button",{onClick:()=>{t(e)},"aria-label":`Remove Tag: ${e}`,title:`Remove Tag: ${e}`,className:"TagEditor__delete",children:Er(Cr,{name:"cancel"})})]},`${e}`)))}),Er("span",{id:d,className:"TagEditor__combobox-wrapper",ref:p,role:"combobox","aria-expanded":u.toString(),"aria-owns":`${d}-AutocompleteList`,"aria-haspopup":"listbox",children:[Er("input",{onInput:()=>{null==n||n(m()),(()=>{if(f()){const e=o.filter(m());s(((e,t)=>{const n=[];return e.forEach((e=>{t.indexOf(e)<0&&n.push(e)})),n.sort()})(e,r)),h(e.length>0)}else h(!1);c(-1)})()},onKeyDown:e=>{switch(Hr(e.key)){case"ArrowUp":y(-1),e.preventDefault();break;case"ArrowDown":y(1),e.preventDefault();break;case"Escape":g(),e.preventDefault();break;case"Enter":case",":v(-1===l?m():a[l]),e.preventDefault();break;case"Tab":if(!f())break;-1!==l?v(a[l]):1===a.length?v(a[0]):v(m()),e.preventDefault()}},onFocus:()=>{f()&&h(!0)},ref:i,placeholder:"Add new tags",className:"TagEditor__input",type:"text",autoComplete:"off","aria-autocomplete":"list","aria-activedescendant":_,"aria-controls":`${d}-AutocompleteList`,dir:"auto"}),Er(us,{id:`${d}-AutocompleteList`,list:a,listFormatter:e=>{const t=m().toLowerCase(),n=e.toLowerCase().indexOf(t);if(-1===n)return Er("span",{children:e});const r=e.slice(0,n),o=e.slice(n,n+t.length),i=e.slice(n+t.length);return Er("span",{children:[Er("strong",{children:r}),o,Er("strong",{children:i})]})},open:u,onSelectItem:e=>{e&&v(e)},itemPrefixId:`${d}-AutocompleteList-item-`,activeItem:l})]})]})}),["tags"]);function ps(){return Er("div",{className:"AnnotationLicense",children:Er("a",{className:"hyp-u-layout-row u-color-text--muted",href:"http://creativecommons.org/publicdomain/zero/1.0/",title:"View more information about the Creative Commons Public Domain dedication",target:"_blank",rel:"noopener noreferrer",children:[Er("div",{className:"AnnotationLicense__icons",children:[Er(Cr,{name:"cc-std",inline:!0,className:"u-icon--xsmall"}),Er(Cr,{name:"cc-zero",inline:!0,className:"u-icon--xsmall"})]}),"Annotations can be freely reused by anyone for any purpose."]})})}function ms(e){return null!==e.offsetParent}function fs({className:e,closeMenu:t,children:n,visible:r}){const o=gr(null);mr((()=>{let e=null;return r&&(e=setTimeout((()=>{const e=o.current.querySelector('[role^="menuitem"]');e&&e.focus()}))),()=>{clearTimeout(e)}}),[r]);return Er("div",{role:"menu",className:e,ref:o,onKeyDown:e=>{const n=Array.from(o.current.querySelectorAll('[role^="menuitem"]')).filter(ms);let r=n.findIndex((e=>e.contains(document.activeElement))),i=!1;switch(Hr(e.key)){case"ArrowLeft":case"Escape":t&&(t(e),i=!0);break;case"ArrowUp":r-=1,r<0&&(r=n.length-1),i=!0;break;case"ArrowDown":r+=1,r===n.length&&(r=0),i=!0;break;case"Home":r=0,i=!0;break;case"End":r=n.length-1,i=!0}i&&r>=0&&(e.stopPropagation(),e.preventDefault(),n[r].focus())},children:n})}function gs({className:e}){return Er("svg",{className:rr("Menu__arrow",e),width:15,height:8,children:Er("path",{d:"M0 8 L7 0 L15 8",stroke:"currentColor",strokeWidth:"2"})})}let vs=!1;const ys=()=>{};function _s({align:e="left",arrowClass:t="",children:n,containerPositioned:r=!0,contentClass:o,defaultOpen:i=!1,label:a,open:s,onOpenChanged:l,menuIndicator:c=!0,title:u}){let[h,p]=dr(i);"boolean"==typeof s&&(h=s,p=l||ys);const m=gr(h);mr((()=>{"function"==typeof l&&m.current!==h&&(m.current=h,l(h))}),[h,l]);const f=e=>{if("mousedown"===e.type)vs=!0;else if("click"===e.type&&vs)return vs=!1,e.stopPropagation(),void e.preventDefault();p(!h)},g=yr((()=>p(!1)),[p]),v=gr(null);qr(v,h,g);const y=e=>e.stopPropagation();return Er("div",{className:"Menu",ref:v,style:{position:r?"relative":"static"},onClick:y,onMouseDown:y,children:[Er("button",{"aria-expanded":h?"true":"false","aria-haspopup":!0,className:"Menu__toggle",onMouseDown:f,onClick:f,"aria-label":u,title:u,children:Er("span",{className:"Menu__toggle-wrapper",children:[a,c&&Er("span",{className:rr("Menu__toggle-arrow",h&&"is-open"),children:Er(Cr,{name:"expand-menu",className:"Menu__toggle-icon"})})]})}),h&&Er(d,{children:[Er(gs,{className:t}),Er("div",{className:rr("Menu__content",`Menu__content--align-${e}`,o),role:"menu",tabIndex:-1,onClick:g,onKeyDown:e=>{const t=Hr(e.key);"Enter"!==t&&" "!==t||setTimeout((()=>{g()}))},children:Er(fs,{visible:!0,children:n})})]})]})}function bs({children:e,visible:t}){const n=gr(null),[r,o]=dr(t?"auto":0),[i,a]=dr(t);mr((()=>{if(t===(0!==r))return;const e=n.current;t?(e.style.display="",a(!0),o(e.scrollHeight)):(e.style.height=`${e.scrollHeight}px`,e.getBoundingClientRect(),o(0))}),[r,t]);return Er("div",{ontransitionend:yr((()=>{t?o("auto"):a(!1)}),[o,t]),ref:n,style:{display:i?"":"none",height:r,overflow:"auto"===r?"visible":"hidden",transition:"height 0.15s ease-in"},children:e})}function ws({href:e,icon:t,iconAlt:n,isDisabled:r,isExpanded:o,isSelected:i,isSubmenuItem:a,isSubmenuVisible:s,label:l,onClick:c,onToggleSubmenu:u,submenu:h}){const p=t&&-1!==t.indexOf("/"),m=t||a,f=t&&a,g=gr(null);let v=null,y=null;t&&"blank"!==t&&(y=p?Er("img",{className:"MenuItem__icon",alt:n,src:t}):Er(Cr,{name:t,className:"MenuItem__icon"}));const _=a?null:y,b=a?y:null;let w;const x="boolean"==typeof s,k="boolean"==typeof i;mr((()=>()=>{clearTimeout(v)}),[]);const S=e=>{switch(Hr(e.key)){case"ArrowRight":u&&(e.stopPropagation(),e.preventDefault(),u(e));break;case"Enter":case" ":c&&c(e)}};return w=e?Er("a",{ref:g,className:rr("MenuItem",{"is-submenu":a,"is-disabled":r}),href:e,target:"_blank",tabIndex:-1,rel:"noopener noreferrer",role:"menuitem",onKeyDown:S,children:[m&&Er("div",{className:"MenuItem__icon-container",children:_}),Er("span",{className:"MenuItem__label",children:l}),f&&Er("div",{className:"MenuItem__icon-container",children:b})]}):Er("div",{ref:g,className:rr("MenuItem",{"is-submenu":a,"is-disabled":r,"is-expanded":o,"is-selected":i}),tabIndex:-1,onKeyDown:S,onClick:c,role:k?"menuitemradio":"menuitem","aria-checked":k?i:void 0,"aria-haspopup":x,"aria-expanded":x?s:void 0,children:[m&&Er("div",{className:"MenuItem__icon-container",children:_}),Er("span",{className:"MenuItem__label",children:l}),f&&Er("div",{className:"MenuItem__icon-container",children:b}),x&&Er("div",{role:"none",icon:s?"collapse-menu":"expand-menu",className:"MenuItem__toggle",onClick:u,title:`Show actions for ${l}`,children:Er(Cr,{name:s?"collapse-menu":"expand-menu",className:"MenuItem__toggle-icon"})})]}),Er(d,{children:[w,x&&Er(bs,{visible:s,children:Er(fs,{closeMenu:e=>{u&&u(e),v=setTimeout((()=>{g.current.focus()}))},visible:s,className:"MenuItem__submenu",children:h})})]})}var xs=co((function({annotation:e,isDisabled:t,onSave:n,settings:r}){const o=ho(),i=o.getDraft(e),a=o.getGroup(e.group);if(!a)return null;const s=i?i.isPrivate:!Ai(e.permissions),l=s?"Only Me":a.name,c=t=>{o.createDraft(e,{...i,isPrivate:"private"===t}),Mo(e)||o.setDefault("annotationPrivacy",t)},u=so(["ctaTextColor","ctaBackgroundColor"],r),h=Er("div",{className:"annotation-publish-button__menu-label",style:u,children:Er(Cr,{name:"expand-menu",className:"u-icon--small"})});return Er("div",{className:"AnnotationPublishControl",children:[Er("div",{className:"annotation-publish-button",children:[Er(zr,{classes:"PublishControlButton","data-testid":"publish-control-button",style:u,onClick:n,disabled:t,size:"large",variant:"primary",children:["Post to ",l]}),Er("div",{className:"annotation-publish-button__menu-wrapper",style:u,children:Er(_s,{arrowClass:"annotation-publish-button__menu-arrow",containerPositioned:!1,contentClass:"annotation-publish-button__menu-content",label:h,menuIndicator:!1,title:"Change annotation sharing setting",align:"left",children:[Er(ws,{icon:"open"===a.type?"public":"groups",label:a.name,isSelected:!s,onClick:()=>c("shared")}),Er(ws,{icon:"lock",label:"Only Me",isSelected:s,onClick:()=>c("private")})]})})]}),Er("div",{children:Er(zr,{icon:"cancel",onClick:()=>{o.removeDraft(e),Lo(e)&&o.removeAnnotations([e])},size:"large",children:"Cancel"})})]})}),["settings"]);var ks=co((function({annotation:e,annotationsService:t,settings:n,tags:r,toastMessenger:o}){const[i,a]=dr(null),s=ho(),l=s.getDraft(e),c=s.getGroup(e.group);if(!l)return null;const u=!l.isPrivate&&c&&"private"!==c.type,h=l.tags,d=l.text,p=!d&&!h.length,m=({tags:e})=>{s.createDraft(l.annotation,{...l,tags:e})},f=e=>{if(!e||h.indexOf(e)>=0)return!1;const t=[...h,e];return r.store(t),m({tags:t}),!0},g=async()=>{i&&f(i);try{await t.save(e)}catch(e){o.error("Saving annotation failed")}};return Er("div",{className:"hyp-u-vertical-spacing AnnotationEditor",onKeyDown:e=>{const t=Hr(e.key);p||(e.metaKey||e.ctrlKey)&&"Enter"===t&&(e.stopPropagation(),e.preventDefault(),g())},children:[Er(ls,{textStyle:so(["annotationFontFamily"],n),label:"Annotation body",text:d,onEditText:({text:e})=>{s.createDraft(l.annotation,{...l,text:e})}}),Er(ds,{onAddTag:f,onRemoveTag:e=>{const t=[...h],n=t.indexOf(e);return n>=0&&(t.splice(n,1),m({tags:t}),!0)},onTagInput:a,tagList:h}),Er("div",{className:"hyp-u-layout-row annotation__form-actions",children:Er(xs,{annotation:e,isDisabled:p,onSave:g})}),u&&Er(ps,{})]})}),["annotationsService","settings","tags","toastMessenger"]);function Ss(e,t,n){var r;return(n||t)&&null!==(r=e.user_info)&&void 0!==r&&r.display_name?e.user_info.display_name:oo(e.user)}function As({domain:e,link:t,title:n}){return Er("div",{className:"hyp-u-layout-row hyp-u-horizontal-spacing--2",children:[Er("div",{className:"u-color-text--muted",children:['on "',t?Er("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:n}):Er("span",{children:n}),'"']}),e&&Er("span",{className:"u-color-text--muted",children:["(",e,")"]})]})}function Es({annotation:e}){const t=ho().getGroup(e.group),n=null==t?void 0:t.links.html,r=Ei(e.permissions);return Er("div",{className:"AnnotationShareInfo hyp-u-layout-row--align-baseline",children:[t&&n&&Er("a",{className:"hyp-u-layout-row--align-baseline u-color-text--muted",href:t.links.html,target:"_blank",rel:"noopener noreferrer",children:["open"===t.type?Er(Cr,{className:"AnnotationShareInfo__icon",name:"public"}):Er(Cr,{className:"AnnotationShareInfo__icon",name:"groups"}),Er("span",{className:"AnnotationShareInfo__group-info",children:t.name})]}),r&&!n&&Er("span",{className:"hyp-u-layout-row--align-baseline u-color-text--muted",children:Er("span",{className:"AnnotationShareInfo__private-info",children:"Only me"})})]})}let Ts={};function Cs(e,t){return t-e}function Ns(e,t,n=window.Intl){const r=JSON.stringify(t);let o=Ts[r];return o||(o=Ts[r]=new n.DateTimeFormat(void 0,t)),o.format(e)}const Ms=[{test:(e,t)=>Cs(e,t)<3e4,formatter:()=>"Just now",nextUpdate:1e3},{test:(e,t)=>Cs(e,t)<6e4,formatter:function(e,t){return`${Math.floor(Cs(e,t)/1e3)} secs ago`},nextUpdate:1e3},{test:(e,t)=>Cs(e,t)<36e5,formatter:function(e,t){const n=Math.floor(Cs(e,t)/6e4);return`${n} min${n>1?"s":""} ago`},nextUpdate:6e4},{test:(e,t)=>Cs(e,t)<864e5,formatter:function(e,t){const n=Math.floor(Cs(e,t)/36e5);return`${n} hr${n>1?"s":""} ago`},nextUpdate:36e5},{test:(e,t)=>e.getFullYear()===t.getFullYear(),formatter:function(e,t,n){return Ns(e,{month:"short",day:"numeric"},n)},nextUpdate:null}],Ls={test:()=>!0,formatter:function(e,t,n){return Ns(e,{day:"numeric",month:"short",year:"numeric"},n)},nextUpdate:null};function Is(e,t){for(let n of Ms)if(n.test(e,t))return n;return Ls}function zs(e){return!isNaN(e.valueOf())}function Os(e,t){let n;const r=new Date(e),o=()=>{const e=function(e,t){if(!e||!zs(e)||!zs(t))return null;let n=Is(e,t).nextUpdate;return null===n?null:(n=Math.max(n,5e3),n=Math.min(n,20736e5),n)}(r,new Date);if(null===e)return;n=setTimeout((()=>{t(),o()}),e+500)};return o(),()=>clearTimeout(n)}function Ps(e,t,n){return e?Is(e,t).formatter(e,t,n):""}function Rs(e,t){return Ns(e,{year:"numeric",month:"short",day:"2-digit",weekday:"long",hour:"2-digit",minute:"2-digit"},t)}function Ds({annotationCreated:e,annotationUpdated:t,annotationUrl:n,withEditedTimestamp:r}){const[o,i]=dr((()=>new Date)),a=vr((()=>new Date(e)),[e]),s=vr((()=>r&&new Date(t)),[t,r]),l=vr((()=>({absolute:Rs(a),relative:Ps(a,o)})),[a,o]),c=vr((()=>s?{absolute:Rs(s),relative:Ps(s,o)}:{}),[s,o]);mr((()=>Os(s?t:e,(()=>i(new Date)))),[e,t,a,s,o]);const u=c&&c.relative!==l.relative?`edited ${c.relative}`:"edited";return Er("div",{className:"AnnotationTimestamps",children:[r&&Er("span",{className:"AnnotationTimestamps__timestamp AnnotationTimestamps__edited",title:c.absolute,children:["(",u,")"," "]}),n?Er("a",{className:"AnnotationTimestamps__timestamp AnnotationTimestamps__timestamp--linked",target:"_blank",rel:"noopener noreferrer",title:l.absolute,href:n,children:l.relative}):Er("span",{className:"AnnotationTimestamps__timestamp AnnotationTimestamps__created",title:l.absolute,children:l.relative})]})}function Bs({authorLink:e,displayName:t}){return Er("div",e?{className:"AnnotationUser",children:Er("a",{className:"AnnotationUser__link",href:e,target:"_blank",rel:"noopener noreferrer",children:Er("h3",{className:"AnnotationUser__user-name",children:t})})}:{className:"AnnotationUser",children:Er("h3",{className:"AnnotationUser__user-name",children:t})})}var Fs=co((function({annotation:e,isEditing:t,replyCount:n,threadIsCollapsed:r,settings:o}){var i;const a=ho(),s=a.defaultAuthority(),l=a.isFeatureEnabled("client_display_names"),c=io(e.user,s),u=Ss(e,c,l),h=(()=>{var t;return c?null!==(t=o.usernameUrl&&`${o.usernameUrl}${oo(e.user)}`)&&void 0!==t?t:void 0:a.getLink("user",{user:e.user})})(),d=Mo(e)&&r,p=Ei(e.permissions),m=(null===(i=e.links)||void 0===i?void 0:i.html)||"",f=!t&&e.created,g=vr((()=>function(e){if(!e.updated||!e.created||e.updated===e.created)return!1;const t=new Date(e.created).getTime(),n=new Date(e.updated).getTime();return!isNaN(t)&&!isNaN(n)&&n-t>2e3}(e)&&!d),[e,d]),v=`${n} ${n>1?"replies":"reply"}`,y=n>0&&d,_=!Mo(e),b=function(e){return{domain:Co(e),titleText:No(e),titleLink:To(e)}}(e),w=m&&b.titleLink?b.titleLink:"",x="sidebar"!==a.route()&&b.titleText;return Er("header",{className:"AnnotationHeader",children:[Er("div",{className:"AnnotationHeader__row hyp-u-horizontal-spacing--2",children:[p&&!t&&Er(Cr,{className:"AnnotationHeader__icon",name:"lock",title:"This annotation is visible only to you"}),Er(Bs,{authorLink:h,displayName:u}),y&&Er(Or,{onClick:()=>a.setExpanded(e.id,!0),title:"Expand replies",children:v}),f&&Er("div",{className:"hyp-u-layout-row--justify-right hyp-u-stretch",children:Er(Ds,{annotationCreated:e.created,annotationUpdated:e.updated,annotationUrl:m,withEditedTimestamp:g})})]}),_&&Er("div",{className:"AnnotationHeader__row hyp-u-horizontal-spacing--2",children:[Er(Es,{annotation:e}),!t&&Ro(e)&&Er("div",{className:"AnnotationHeader__highlight",children:Er(Cr,{name:"highlight",title:"This is a highlight. Click 'edit' to add a note or tag.",inline:!0,className:"AnnotationHeader__highlight-icon"})}),x&&Er(As,{domain:b.domain,link:w,title:b.titleText})]})]})}),["settings"]);var js=co((function({annotation:e,isFocused:t,settings:n={}}){return Er("div",{className:rr("AnnotationQuote",{"is-orphan":Do(e)}),children:Er(Pi,{collapsedHeight:35,inlineControls:!0,overflowThreshold:20,children:Er("blockquote",{className:rr("AnnotationQuote__quote",{"is-focused":t}),dir:"auto",lang:"",style:so(["selectionFontFamily"],n),children:Ho(e)})})})}),["settings"]);function Hs({onToggleReplies:e,replyCount:t,threadIsCollapsed:n}){const r=`${n?"Show replies":"Hide replies"} (${t})`;return Er(Or,{onClick:e,title:r,children:r})}var Us=co((function({annotation:e,hasAppliedFilter:t,isReply:n,onToggleReplies:r,replyCount:o,threadIsCollapsed:i,annotationsService:a}){const s=n&&i,l=ho(),c=e&&!!Ho(e),u=e&&l.isAnnotationFocused(e.$tag),h=e&&l.isSavingAnnotation(e),p=e&&!!l.getDraft(e)&&!h,m=l.profile().userid,f=!h&&!p,g=!n&&!t&&o>0;return Er("article",{className:rr("Annotation",{"Annotation--missing":!e,"Annotation--reply":n,"is-collapsed":i,"is-focused":u}),children:[e&&Er(d,{children:[Er(Fs,{annotation:e,isEditing:p,replyCount:o,threadIsCollapsed:i}),c&&Er(js,{annotation:e,isFocused:u}),!s&&!p&&Er(Xa,{annotation:e}),p&&Er(ks,{annotation:e})]}),!e&&!s&&Er("div",{children:Er("em",{children:"Message not available."})}),!s&&Er("footer",{className:"Annotation__footer",children:Er("div",{className:"hyp-u-layout-row Annotation__controls",children:[g&&Er(Hs,{onToggleReplies:r,replyCount:o,threadIsCollapsed:i}),h&&Er("div",{className:"Annotation__actions",children:"Saving..."}),e&&f&&Er("div",{className:"hyp-u-layout-row--justify-right hyp-u-stretch",children:Er(Ii,{annotation:e,onReply:()=>a.reply(e,m)})})]})})]})}),["annotationsService"]);var qs=co((function({annotation:e,api:t,toastMessenger:n}){const r=ho(),o=function(e){return e.moderation?e.moderation.flagCount:null}(e),i=null!==o&&(o>0||e.hidden),a=()=>{const o=e.id;t.annotation.hide({id:o}).then((()=>{r.hideAnnotation(o)})).catch((()=>{n.error("Failed to hide annotation")}))},s=()=>{const o=e.id;t.annotation.unhide({id:o}).then((()=>{r.unhideAnnotation(o)})).catch((()=>{n.error("Failed to unhide annotation")}))},l=(()=>{const t={};return e.hidden?(t.onClick=s,t.title="Make this annotation visible to everyone"):(t.onClick=a,t.title="Hide this annotation from non-moderators"),t["aria-label"]=t.title,t})(),c=rr("ModerationBanner",{"is-flagged":null!==o&&o>0,"is-hidden":e.hidden,"is-reply":Mo(e)});return i?Er("div",{className:c,children:[!!o&&!e.hidden&&Er("span",{children:["Flagged for review x",o]}),e.hidden&&Er("span",{children:["Hidden from users. Flagged x",o]}),Er("span",{className:"hyp-u-stretch"}),Er("button",{...l,children:e.hidden?"Unhide":"Hide"})]}):null}),["api","toastMessenger"]);function $s({annotation:e,...t}){const n=ho(),r=e&&n.isSavingAnnotation(e),o=e&&!!n.getDraft(e)&&!r;return e?Er("div",{className:"Thread__top-annotation-header",children:Er(Fs,{annotation:e,isEditing:o,...t})}):null}var Gs=co((function e({thread:t,threadsService:n}){const r=!t.collapsed,o=Ko(t)>0,i=!!t.parent,a=t.collapsed?"collapsed":"expand-menu",s=t.collapsed?"Expand replies":"Collapse replies",l=t.children.filter((e=>Xo(e)>0)),c=ho(),u=c.hasAppliedFilter(),h=yr((()=>c.setExpanded(t.id,!!t.collapsed)),[c,t.id,t.collapsed]),p=vr((()=>t.visible&&Er(d,{children:[t.annotation&&Er(qs,{annotation:t.annotation}),Er(Us,{annotation:t.annotation,hasAppliedFilter:u,isReply:!!t.parent,onToggleReplies:h,replyCount:t.replyCount,threadIsCollapsed:t.collapsed})]})),[u,h,t.annotation,t.parent,t.replyCount,t.collapsed,t.visible]);return Er("section",{className:rr("Thread",{"Thread--reply":t.depth>0,"is-collapsed":t.collapsed}),children:[i&&Er("div",{className:"Thread__collapse",children:Er("div",{className:"Thread__collapse-button-container",children:Er(Ir,{classes:"NonResponsiveIconButton",expanded:!t.collapsed,icon:a,title:s,onClick:h,size:"medium",variant:"light"})})}),Er("div",{className:"Thread__content",children:[p,o&&Er(d,{children:[!t.parent&&Er($s,{annotation:t.annotation,replyCount:t.replyCount,threadIsCollapsed:t.collapsed}),Er("div",{className:"Thread__hidden-toggle-button-container",children:Er(zr,{onClick:()=>n.forceVisible(t),children:["Show ",Ko(t)," more in conversation"]})})]}),r&&Er("ul",{className:"Thread__children",children:l.map((t=>Er("li",{children:Er(e,{thread:t,threadsService:n})},t.id)))})]})]})}),["threadsService"]);var Vs=co((function({frameSync:e,thread:t}){const n=ho(),r=t.annotation&&t.annotation.$tag,o=r&&n.isAnnotationFocused(r),i=vr((()=>vi((t=>{const n=t?[t]:[];e.focusAnnotations(n)}),10)),[e]),a=yr((t=>{e.scrollToAnnotation(t)}),[e]),s=vr((()=>Er(Gs,{thread:t})),[t]);return Er("div",{onClick:e=>{var t;(t=e.target).closest("button")||t.closest("a")||a(r)},onMouseEnter:()=>i(r),onMouseLeave:()=>i(null),className:rr("ThreadCard",{"is-focused":o}),children:s},t.id)}),["frameSync"]);function Ws(){const e=document.querySelector(".js-thread-list-scroll-root");if(!e)throw new Error("Scroll container is missing");return e}function Ys(e){return Math.max(e-e%50,0)}function Ks({threads:e}){const[t,n]=dr(window.innerHeight),[r,o]=dr(0);fr((()=>{const e=Ws();n(e.clientHeight),o(Ys(e.scrollTop))}),[]);const[i,a]=dr({}),[s,l]=dr(null),c=e,{offscreenLowerHeight:u,offscreenUpperHeight:h,visibleThreads:d}=vr((()=>function(e,t,n,r,o=_i){const{defaultHeight:i,marginAbove:a,marginBelow:s}=o,l=[];let c=0,u=0,h=0;return e.forEach((e=>{const o=t[e.id]||i;c+o<n-a?u+=o:c<n+r+s?l.push(e):h+=o,c+=o})),{visibleThreads:l,offscreenUpperHeight:u,offscreenLowerHeight:h}}(c,i,r,t)),[c,i,r,t]),p=ho(),m=(()=>{const e=p.unsavedAnnotations().filter((e=>!e.id&&!Ro(e)));return e.length?e[e.length-1].$tag:null})();return mr((()=>{m&&(p.setForcedVisible(m,!0),l(m))}),[p,m]),mr((()=>{if(!s)return;const e=c.findIndex((e=>e.id===s));if(-1===e)return;l(null);const t=c.slice(0,e).reduce(((e,t)=>e+(e=>i[e.id]||_i.defaultHeight)(t)),0);Ws().scrollTop=t}),[s,c,i]),mr((()=>{const e=new yi,t=Ws(),r=vi((()=>{n(t.clientHeight),o(Ys(t.scrollTop))}),10,{maxWait:100});return e.add(t,"scroll",r),e.add(window,"resize",r),()=>{e.removeAll(),r.cancel()}}),[]),mr((()=>{a((e=>{const t={};for(let{id:n}of d){const r=document.getElementById(n);if(!r)return console.warn("ThreadList could not measure thread. Element not found."),e;const o=bi(r);o!==e[n]&&(t[n]=o)}return 0===Object.keys(t).length?e:{...e,...t}}))}),[d]),Er("div",{children:[Er("div",{style:{height:h}}),d.map((e=>Er("div",{className:"ThreadList__card",id:e.id,children:Er(Vs,{thread:e})},e.id))),Er("div",{style:{height:u}})]})}function Xs({errorType:e,onLoginRequest:t,showClearSelection:n=!1}){const r=ho(),o=r.isLoggedIn();return Er("div",{className:"u-sidebar-container",children:Er(Yr,{icon:"restricted",title:"annotation"===e?"Annotation unavailable":"Group unavailable",children:[Er("p",{children:o?"group"===e?"The current URL links to a group, but that group cannot be found,\n or you do not have permission to view the annotations in that group.":"The current URL links to an annotation, but that annotation\n cannot be found, or you do not have permission to view it.":`The ${e} associated with the current URL is unavailable.\n You may need to log in to see it.`}),Er("div",{className:"hyp-u-layout-row--justify-right hyp-u-horizontal-spacing",children:[n&&Er(zr,{variant:o?"primary":void 0,onClick:()=>r.clearSelection(),children:"Show all annotations"}),!o&&Er(zr,{variant:"primary",onClick:t,children:"Log in"})]})]})})}var Js=co((function({loadAnnotationsService:e,onLogin:t}){const n=ho(),r=n.routeParams().id,o=ni(),i=n.profile().userid,[a,s]=dr(!1);return mr((()=>{s(!1),n.clearAnnotations(),e.loadThread(r).then((e=>{const t=e.filter((e=>0===(e.references||[]).length))[0];t&&(e.forEach((e=>n.setExpanded(e.id,!0))),t.id!==r&&n.highlightAnnotations([r]))})).catch((()=>{s(!0)}))}),[r,i,e,n]),Er(d,{children:[a&&Er(Xs,{errorType:"annotation",onLoginRequest:t}),Er(Ks,{threads:o.children})]})}),["loadAnnotationsService"]);function Zs({actionButton:e,additionalCount:t=0,entitySingular:n="annotation",entityPlural:r="annotations",filterQuery:o,focusDisplayName:i,resultCount:a}){return Er("div",{className:"FilterStatus",children:Er("div",{className:"hyp-u-layout-row--align-center",children:[Er("div",{className:"FilterStatus__text",children:[a>0&&Er("span",{children:"Showing "}),Er("span",{className:"filter-facet",children:[a>0?a:"No"," ",1===a?n:r]}),o&&Er("span",{children:[" ","for"," ",Er("span",{className:"filter-facet--pre",children:["'",o,"'"]})]}),i&&Er("span",{children:[" ","by ",Er("span",{className:"filter-facet",children:i})]}),t>0&&Er("span",{className:"filter-facet--muted",children:[" ","(and ",t," more)"]})]}),Er("div",{children:e})]})})}function Qs({filterState:e,rootThread:t}){const n=ho(),r=n.directLinkedAnnotationId(),o=n.annotationCount(),i=(t.children||[]).filter((e=>e.annotation&&e.visible)).length-e.selectedCount,a=!e.focusConfigured&&!r?`Show all (${o})`:"Show all",s=Er(zr,{title:a,variant:"primary",onClick:()=>n.clearSelection(),icon:"cancel",children:a});return Er(Zs,{resultCount:e.selectedCount,additionalCount:i,actionButton:s})}function el({filterState:e,rootThread:t}){const n=ho(),r=Xo(t)-e.forcedVisibleCount,o=Er(zr,{icon:"cancel",variant:"primary",title:"Clear search",onClick:()=>n.clearSelection(),children:"Clear search"});return Er(Zs,{actionButton:o,additionalCount:e.forcedVisibleCount,entitySingular:"result",entityPlural:"results",filterQuery:e.filterQuery,focusDisplayName:e.focusDisplayName,resultCount:r})}function tl({filterState:e,rootThread:t}){const n=ho(),r=Xo(t)-e.forcedVisibleCount,o={};e.forcedVisibleCount>0?(o.onClick=()=>n.clearSelection(),o.title="Reset filters"):(o.onClick=()=>n.toggleFocusMode(),o.title=e.focusActive?"Show all":`Show only ${e.focusDisplayName}`);const i=e.focusActive?e.focusDisplayName:"",a=Er(zr,{variant:"primary",...o,children:o.title});return Er(Zs,{resultCount:r,actionButton:a,additionalCount:e.forcedVisibleCount,filterQuery:e.filterQuery,focusDisplayName:i})}function nl(){const e=ni(),t=ho(),n=t.focusState(),r=t.forcedVisibleThreads().length,o=t.filterQuery(),i=t.selectedAnnotations().length,a=vr((()=>({filterQuery:o,focusActive:n.active,focusConfigured:n.configured,focusDisplayName:n.displayName,forcedVisibleCount:r,selectedCount:i})),[n,r,o,i]);return a.selectedCount>0?Er(Qs,{filterState:a,rootThread:e}):a.filterQuery?Er(el,{filterState:a,rootThread:e}):a.focusConfigured?Er(tl,{filterState:a,rootThread:e}):null}function rl({onLogin:e}){const t=ho();return Er("div",{className:"LoggedOutMessage",children:[Er("span",{children:["This is a public annotation created with Hypothesis. ",Er("br",{}),"To reply or make your own annotations on this document,"," ",Er("a",{className:"LoggedOutMessage__link",href:t.getLink("signup"),target:"_blank",rel:"noopener noreferrer",children:"create a free account"})," ","or"," ",Er(Or,{classes:"InlineLinkButton InlineLinkButton--underlined",onClick:e,variant:"dark",children:"log in"}),"."]}),Er("div",{className:"LoggedOutMessage__logo",children:Er("a",{href:"https://hypothes.is","aria-label":"Hypothesis homepage",title:"Hypothesis homepage",children:Er(Cr,{name:"logo",className:"LoggedOutMessage__logo-icon"})})})]})}function ol(e,t,n){e.self===e?e.scrollTo(t,n):(e.scrollLeft=t,e.scrollTop=n)}function il(e){var t=e._scrollSettings;if(t){var n=t.maxSynchronousAlignments,r=function(e,t){var n,r,o,i,a,s,l,c=e.align,u=e.target.getBoundingClientRect(),h=c&&null!=c.left?c.left:.5,d=c&&null!=c.top?c.top:.5,p=c&&null!=c.leftOffset?c.leftOffset:0,m=c&&null!=c.topOffset?c.topOffset:0,f=h,g=d;if(e.isWindow(t))s=Math.min(u.width,t.innerWidth),l=Math.min(u.height,t.innerHeight),r=u.left+t.pageXOffset-t.innerWidth*f+s*f,o=u.top+t.pageYOffset-t.innerHeight*g+l*g,r-=p,o-=m,r=e.align.lockX?t.pageXOffset:r,o=e.align.lockY?t.pageYOffset:o,i=r-t.pageXOffset,a=o-t.pageYOffset;else{s=u.width,l=u.height,n=t.getBoundingClientRect();var v=u.left-(n.left-t.scrollLeft),y=u.top-(n.top-t.scrollTop);r=v+s*f-t.clientWidth*f,o=y+l*g-t.clientHeight*g,r-=p,o-=m,r=Math.max(Math.min(r,t.scrollWidth-t.clientWidth),0),o=Math.max(Math.min(o,t.scrollHeight-t.clientHeight),0),r=e.align.lockX?t.scrollLeft:r,o=e.align.lockY?t.scrollTop:o,i=r-t.scrollLeft,a=o-t.scrollTop}return{x:r,y:o,differenceX:i,differenceY:a}}(t,e),o=Date.now()-t.startTime,i=Math.min(1/t.time*o,1);if(t.endIterations>=n)return ol(e,r.x,r.y),e._scrollSettings=null,t.end("complete");var a=1-t.ease(i);if(ol(e,r.x-r.differenceX*a,r.y-r.differenceY*a),o>=t.time)return t.endIterations++,t.scrollAncestor&&il(t.scrollAncestor),void il(e);!function(e){if("requestAnimationFrame"in window)return window.requestAnimationFrame(e);setTimeout(e,16)}(il.bind(null,e))}}function al(e){return e.self===e}function sl(e){return"pageXOffset"in e||(e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth)&&"hidden"!==getComputedStyle(e).overflow}function ll(){return!0}function cl(e){if(e.assignedSlot)return cl(e.assignedSlot);if(e.parentElement)return"BODY"===e.parentElement.tagName?e.parentElement.ownerDocument.defaultView||e.parentElement.ownerDocument.ownerWindow:e.parentElement;if(e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t.host}}var ul=function(e,t,n){if(e){"function"==typeof t&&(n=t,t=null),t||(t={}),t.time=isNaN(t.time)?1e3:t.time,t.ease=t.ease||function(e){return 1-Math.pow(1-e,e/2)},t.align=t.align||{};var r=cl(e),o=1,i=t.validTarget||ll,a=t.isScrollable;t.debug&&(console.log("About to scroll to",e),r||console.error("Target did not have a parent, is it mounted in the DOM?"));for(var s=[];r;)if(t.debug&&console.log("Scrolling parent node",r),i(r,o)&&(a?a(r,sl):sl(r))&&(o++,s.push(r)),!(r=cl(r))){l("complete");break}return s.reduce(((n,r,o)=>function(e,t,n,r,o){var i,a=!t._scrollSettings,s=t._scrollSettings,l=Date.now(),c={passive:!0};function u(e){t._scrollSettings=null,t.parentElement&&t.parentElement._scrollSettings&&t.parentElement._scrollSettings.end(e),n.debug&&console.log("Scrolling ended with type",e,"for",t),o(e),i&&(t.removeEventListener("touchstart",i,c),t.removeEventListener("wheel",i,c))}s&&s.end("canceled");var h=n.maxSynchronousAlignments;return null==h&&(h=3),t._scrollSettings={startTime:l,endIterations:0,target:e,time:n.time,ease:n.ease,align:n.align,isWindow:n.isWindow||al,maxSynchronousAlignments:h,end:u,scrollAncestor:r},"cancellable"in n&&!n.cancellable||(i=u.bind(null,"canceled"),t.addEventListener("touchstart",i,c),t.addEventListener("wheel",i,c)),a&&il(t),i}(e,r,t,s[o+1],l)),null)}function l(e){--o||n&&n(e)}};function hl({children:e,icon:t="",panelName:n,title:r,onActiveChanged:o}){const i=ho(),a=i.isSidebarPanelOpen(n),s=gr(null),l=gr(a);mr((()=>{l.current!==a&&(l.current=a,a&&ul(s.current),"function"==typeof o&&o(a))}),[a,o]);const c=yr((()=>{i.toggleSidebarPanel(n,!1)}),[i,n]);return Er(bs,{visible:a,children:Er("div",{ref:s,className:"u-sidebar-container",children:Er(Yr,{title:r,icon:t,onClose:c,children:e})})})}function dl({onLogin:e,onSignUp:t}){return ho().isLoggedIn()?null:Er(hl,{icon:"restricted",title:"Login needed",panelName:"loginPrompt",children:[Er("p",{children:"Please log in to create annotations or highlights."}),Er(Pr,{children:[Er(zr,{title:"Sign up",onClick:t,children:"Sign up"}),Er(zr,{title:"Log in",variant:"primary",onClick:e,children:"Log in"})]})]})}function pl({children:e,count:t,isWaitingToAnchor:n,isSelected:r,label:o,onSelect:i}){const a=()=>{r||i()},s=t>0?`${o} (${t} available)`:o;return Er("div",{children:Er("button",{className:rr("SelectionTabs__type",{"is-selected":r}),onClick:a,onMouseDown:a,role:"tab",tabIndex:0,title:s,"aria-label":s,"aria-selected":r.toString(),children:[e,t>0&&!n&&Er("span",{className:"SelectionTabs__count",children:[" ",t]})]})})}var ml=co((function({annotationsService:e,isLoading:t,settings:n}){const r=ho(),o=r.selectedTab(),i=r.noteCount(),a=r.annotationCount(),s=r.orphanCount(),l=r.isWaitingToAnchorAnnotations(),c=e=>{r.clearSelection(),r.selectTab(e)},u="annotation"===o&&0===a&&!l,h="note"===o&&0===i;return Er("div",{className:"SelectionTabs-container",children:[Er("div",{className:"SelectionTabs",role:"tablist",children:[Er(pl,{count:a,isWaitingToAnchor:l,isSelected:"annotation"===o,label:"Annotations",onSelect:()=>c("annotation"),children:"Annotations"}),Er(pl,{count:i,isWaitingToAnchor:l,isSelected:"note"===o,label:"Page notes",onSelect:()=>c("note"),children:"Page Notes"}),s>0&&Er(pl,{count:s,isWaitingToAnchor:l,isSelected:"orphan"===o,label:"Orphans",onSelect:()=>c("orphan"),children:"Orphans"})]}),"note"===o&&n.enableExperimentalNewNoteButton&&Er("div",{className:"hyp-u-layout-row--justify-right",children:Er(zr,{icon:"add",onClick:()=>e.createPageNote(),variant:"primary",style:so(["ctaBackgroundColor"],n),children:"New note"})}),!t&&h&&Er("div",{className:"SelectionTabs__message",children:"There are no page notes in this group."}),!t&&u&&Er("div",{className:"SelectionTabs__message",children:["There are no annotations in this group.",Er("br",{}),"Create one by selecting some text and clicking the"," ",Er(Cr,{name:"annotate",inline:!0,className:"SelectionTabs__icon"})," ","button."]})]})}),["annotationsService","settings"]);var fl=co((function({frameSync:e,onLogin:t,onSignUp:n,loadAnnotationsService:r,streamer:o}){const i=ni(),a=ho(),s=a.focusedGroupId(),l=a.hasAppliedFilter()||a.hasSelectedAnnotations(),c=a.isLoading(),u=a.isLoggedIn(),h=a.directLinkedAnnotationId(),d=h?a.findAnnotationByID(h):void 0,p=d?Wo(d):"annotation",m=a.searchUris(),f=a.hasSidebarOpened(),g=a.profile().userid,v=d&&!1===d.$orphan?d.$tag:null,y=!(c||!h)&&!d,_=a.directLinkedGroupFetchFailed(),b=y||_,w=!b,x=!b&&!l,k=h&&!u&&!y&&!c,S=gr(s);mr((()=>{S.current&&S.current===s||(S.current&&a.clearSelection(),S.current=s),s&&m.length&&r.load({groupId:s,uris:m})}),[a,r,s,g,m]),mr((()=>{v?(e.focusAnnotations([v]),e.scrollToAnnotation(v),a.selectTab(p)):d&&a.selectTab(p)}),[p,e,d,v,a]);const A=a.hasFetchedProfile();return mr((()=>{A&&(f||u)&&o.connect({applyUpdatesImmediately:!1})}),[A,u,f,o]),Er("div",{children:[Er("h2",{className:"u-screen-reader-only",children:"Annotations"}),w&&Er(nl,{}),Er(dl,{onLogin:t,onSignUp:n}),y&&Er(Xs,{errorType:"annotation",onLoginRequest:t,showClearSelection:!0}),_&&Er(Xs,{errorType:"group",onLoginRequest:t}),x&&Er(ml,{isLoading:c}),Er(Ks,{threads:i.children}),k&&Er(rl,{onLogin:t})]})}),["frameSync","loadAnnotationsService","streamer"]);var gl=co((function({api:e,toastMessenger:t}){const n=ho(),r=n.routeParams().q,o=yr((async t=>{const r={_separate_replies:!0,offset:0,limit:20,...Ao(t)};try{n.annotationFetchStarted();const t=await e.search(r);n.addAnnotations([...t.rows,...t.replies])}finally{n.annotationFetchFinished()}}),[e,n]);return mr((()=>{n.setSortKey("Newest"),n.clearAnnotations(),o(r).catch((e=>{t.error(`Unable to fetch annotations: ${e.message}`)}))}),[r,o,n,t]),Er(Ks,{threads:ni().children})}),["api","toastMessenger"]);class vl{constructor(e,t,n=window){var r,o,i;const a="N/A";let s=a;e.userid&&(s=e.userid,e.displayName&&(s=`${e.displayName} (${s})`)),this.version="1.896.0",this.userAgent=n.navigator.userAgent,this.urls=t.map((e=>e.uri)).join(", ")||a,this.fingerprint=null!==(r=null===(o=t[0])||void 0===o||null===(i=o.metadata)||void 0===i?void 0:i.documentFingerprint)&&void 0!==r?r:a,this.account=s,this.timestamp=(new Date).toString()}asFormattedString(){return`Version: ${this.version}\nUser Agent: ${this.userAgent}\nURL: ${this.urls}\nFingerprint: ${this.fingerprint}\nAccount: ${this.account}\nDate: ${this.timestamp}\n`}asEncodedURLString(){return encodeURIComponent(this.asFormattedString())}}function yl(e){const t=D(e);return!(null==t||!t.authority)&&t.authority!==e.authDomain}function _l({commandName:e,iconName:t}){return Er("span",{className:"Tutorial__instruction",children:[Er(Cr,{name:t,inline:!0,className:"Tutorial__icon"}),Er("em",{children:e})]})}var bl=co((function({settings:e}){const t=!yl(e);return Er("ol",{className:"Tutorial__list",children:[Er("li",{className:"Tutorial__item",children:["To create an annotation, select text and then select the"," ",Er(_l,{iconName:"annotate",commandName:"Annotate"})," ","button."]}),Er("li",{className:"Tutorial__item",children:["To create a highlight (",Er("a",{href:"https://web.hypothes.is/help/why-are-highlights-private-by-default/",target:"_blank",rel:"noopener noreferrer",children:"visible only to you"}),"), select text and then select the"," ",Er(_l,{iconName:"highlight",commandName:"Highlight"})," ","button."]}),t&&Er("li",{className:"Tutorial__item",children:["To annotate in a private group, select the group from the groups dropdown. Don't see your group? Ask the group creator to send a"," ",Er("a",{href:"https://web.hypothes.is/help/how-to-join-a-private-group/",target:"_blank",rel:"noopener noreferrer",children:"join link"}),")."]}),Er("li",{className:"Tutorial__item",children:["To reply to an annotation, select the"," ",Er(_l,{iconName:"reply",commandName:"Reply"})," button."]})]})}),["settings"]);var wl=co((function({toastMessenger:e,versionData:t}){return Er("div",{className:"hyp-u-vertical-spacing",children:[Er("dl",{className:"VersionInfo",children:[Er("dt",{className:"VersionInfo__key",children:"Version"}),Er("dd",{className:"VersionInfo__value",children:t.version}),Er("dt",{className:"VersionInfo__key",children:"User Agent"}),Er("dd",{className:"VersionInfo__value",children:t.userAgent}),Er("dt",{className:"VersionInfo__key",children:"URL"}),Er("dd",{className:"VersionInfo__value",children:t.urls}),Er("dt",{className:"VersionInfo__key",children:"Fingerprint"}),Er("dd",{className:"VersionInfo__value",children:t.fingerprint}),Er("dt",{className:"VersionInfo__key",children:"Account"}),Er("dd",{className:"VersionInfo__value",children:t.account}),Er("dt",{className:"VersionInfo__key",children:"Date"}),Er("dd",{className:"VersionInfo__value",children:t.timestamp})]}),Er("div",{className:"hyp-u-layout-row--justify-center",children:Er(zr,{onClick:()=>{try{Ti(t.asFormattedString()),e.success("Copied version info to clipboard")}catch(t){e.error("Unable to copy version info")}},icon:"copy",children:"Copy version details"})})]})}),["toastMessenger"]);function xl({linkText:e,url:t}){return Er("div",{className:"HelpPanel-tabs__tab",children:Er("a",{href:t,className:"HelpPanel-tabs__link",target:"_blank",rel:"noopener noreferrer",children:[e," ",Er(Cr,{name:"external",className:"HelpPanel-tabs__icon",inline:!0})]})})}var kl=co((function({auth:e,session:t}){const n=ho(),r=n.frames(),o=n.mainFrame(),i=!!n.profile().preferences.show_sidebar_tutorial,[a,s]=dr("tutorial"),l=vr((()=>{const t=e||{status:"logged-out"},n=[...r].sort(((e,t)=>e===o?-1:t===o?1:0));return new vl(t,n)}),[e,r,o]),c=`https://web.hypothes.is/get-help/?sys_info=${l.asEncodedURLString()}`,u=(e,t)=>{e.preventDefault(),s(t)};return Er(hl,{title:"Help",panelName:"help",onActiveChanged:yr((e=>{!e&&i&&t.dismissSidebarTutorial()}),[t,i]),children:Er("div",{className:"hyp-u-vertical-spacing HelpPanel__content",children:[Er("div",{className:"hyp-u-layout-row--align-center",children:[Er("h3",{className:"HelpPanel__sub-panel-title",children:{tutorial:"Getting started",versionInfo:"About this version"}[a]}),Er("div",{children:["versionInfo"===a&&Er("button",{className:"HelpPanel__sub-panel-navigation-button",onClick:e=>u(e,"tutorial"),"aria-label":"Show tutorial panel",children:["Getting started",Er(Cr,{name:"arrow-right",className:"HelpPanel__sub-panel-link-icon"})]}),"tutorial"===a&&Er("button",{className:"HelpPanel__sub-panel-navigation-button",onClick:e=>u(e,"versionInfo"),"aria-label":"Show version information panel",children:["About this version",Er(Cr,{name:"arrow-right"})]})]})]}),Er("div",{className:"HelpPanel__subcontent",children:["tutorial"===a&&Er(bl,{}),"versionInfo"===a&&Er(wl,{versionData:l})]}),Er("div",{className:"HelpPanel-tabs",children:[Er(xl,{linkText:"Help topics",url:"https://web.hypothes.is/help/"}),Er(xl,{linkText:"New support ticket",url:c})]})]})})}),["session"]),Sl={exports:{}};function Al(){}Al.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},Sl.exports=Al;var El=Sl.exports.TinyEmitter=Al;class Tl extends Error{constructor(e){super(`Results size exceeds ${e}`)}}function Cl(e){return 0===e?50:200}class Nl extends El{constructor(e,{getPageSize:t=Cl,separateReplies:n=!0,incremental:r=!0,maxResults:o=null,sortBy:i="created",sortOrder:a="asc"}={}){super(),this._searchFn=e,this._getPageSize=t,this._separateReplies=n,this._incremental=r,this._maxResults=o,this._sortBy=i,this._sortOrder=a,this._canceled=!1,this._results=[],this._resultCount=null}async _getPage(e,t,n=0){const r=this._getPageSize(n),o={limit:r,sort:this._sortBy,order:this._sortOrder,_separate_replies:this._separateReplies,...e};t&&(o.search_after=t);try{const t=await this._searchFn(o);if(this._canceled)return;if(null===this._resultCount&&(this._resultCount=t.total,this.emit("resultCount",this._resultCount)),this._maxResults&&t.total>this._maxResults)return this.emit("error",new Tl(this._maxResults)),void this.emit("end");const i=t.rows.concat(t.replies||[]);this._incremental?this.emit("results",i):this._results=this._results.concat(i);const a=i.length===r,s=i.length>0?i[i.length-1][this._sortBy]:null;a&&s?this._getPage(e,s,n+1):(this._incremental||this.emit("results",this._results),this.emit("end"))}catch(e){if(this._canceled)return;this.emit("error",e),this.emit("end")}}get(e){this._results=[],this._resultCount=null,this._getPage(e)}cancel(){this._canceled=!0,this.emit("end")}}function Ml({defaultOption:e,icon:t,onSelect:n,options:r,selectedOption:o,title:i}){const a=[e,...r],s=null!=o?o:e,l=Er("span",{className:"FilterSelect__menu-label",children:[t&&Er(Cr,{name:t,className:"FilterSelect__menu-icon"}),s.display]});return Er(_s,{label:l,title:i,contentClass:"FilterSelect__menu",children:a.map((e=>Er(ws,{onClick:()=>n(e),isSelected:e.value===s.value,label:e.display},e.value)))})}function Ll(){const e=ho(),t=e.getFilter("user"),n=function(){const e=ho(),t=e.allAnnotations(),n=e.defaultAuthority(),r=e.isFeatureEnabled("client_display_names"),o=e.getFocusFilters(),i=oo(e.profile().userid);return vr((()=>{const e={};if(t.forEach((t=>{const o=oo(t.user);e[o]=Ss(t,io(t.user,n),r)})),o.user){const t=oo(o.user.value)||o.user.value;e[t]=o.user.display}const a=Object.keys(e).map((t=>({display:t===i?`${e[t]} (Me)`:e[t],value:t})));return a.sort(((e,t)=>i===e.value?-1:i===t.value?1:e.display.localeCompare(t.display))),a}),[t,i,n,r,o.user])}();return Er(Ml,{defaultOption:{value:"",display:"Everybody"},icon:"profile",onSelect:t=>e.setFilter("user",t),options:n,selectedOption:t,title:"Filter by user"})}function Il({forcedVisibleCount:e,isFiltered:t,isLoading:n,resultCount:r}){const o=ni(),i=n?r:Xo(o),a=o.children.length>0,s=t&&e>0,l=i-e,c=o.children.length;return Er("div",{className:"hyp-u-layout-row NotebookResultCount",children:[n&&Er(Kr,{size:"small"}),!n&&Er("h2",{children:[!a&&Er("strong",{children:"No results"}),a&&t&&Er("strong",{children:[l," ",1===l?"result":"results"]}),a&&!t&&Er("strong",{children:[c," ",1===c?"thread":"threads"]})]}),s&&Er("h3",{children:["(and ",e," more)"]}),!t&&a&&Er("h3",{children:["(",i," ",1===i?"annotation":"annotations",")"]})]})}function zl({currentPage:e,onChangePage:t,totalPages:n}){const r=e<n,o=e>1,i=function(e,t,n=5){if(t<=1)return[];const r=new Set([1,e,t]);let o=1;for(;r.size<Math.min(t,n);)e+o<=t&&r.add(e+o),e-o>=1&&r.add(e-o),++o;const i=[];return[...r].sort(((e,t)=>e-t)).forEach(((e,t,n)=>{t>0&&e-n[t-1]>1&&i.push(null),i.push(e)})),i}(e,n),a=(e,n)=>{t(e),null==n||n.blur()};return Er("div",{className:"PaginationNavigation",children:[Er("div",{className:"PaginationNavigation__relative PaginationNavigation__prev",children:o&&Er(zr,{classes:"PaginationPageButton",icon:"arrow-left",title:"Go to previous page",onClick:t=>a(e-1,t.target),variant:"dark",children:"prev"})}),Er("ul",{className:"PaginationNavigation__pages",children:i.map(((t,n)=>Er("li",{children:null===t?Er("div",{className:"PaginationNavigation__gap",children:"..."}):Er(zr,{classes:"PaginationPageButton",title:`Go to page ${t}`,pressed:t===e,onClick:e=>a(t,e.target),variant:"dark",children:t.toString()},`page-${n}`)},n)))}),Er("div",{className:"PaginationNavigation__relative PaginationNavigation__next",children:r&&Er(zr,{classes:"PaginationPageButton",icon:"arrow-right",iconPosition:"right",title:"Go to next page",onClick:t=>a(e+1,t.target),variant:"dark",children:"next"})})]})}function Ol({currentPage:e,isLoading:t,onChangePage:n,threads:r,pageSize:o=25}){const{paginatedThreads:i,totalPages:a}=vr((()=>{const t=r.filter((e=>Xo(e)>0)),n=(e-1)*o,i=n+o,a=Math.ceil(t.length/o);return{paginatedThreads:t.slice(n,i),totalPages:a}}),[r,e,o]);return Er(d,{children:[Er(Ks,{threads:i}),!t&&Er(zl,{currentPage:e,onChangePage:n,totalPages:a})]})}var Pl=co((function({loadAnnotationsService:e,streamer:t}){var n;const r=ho(),o=r.getFilterValues(),i=r.focusedGroup(),a=r.forcedVisibleThreads().length,s=r.hasAppliedFilter(),l=r.isLoading(),c=r.annotationResultCount(),u=r.pendingUpdateCount(),h=ni(),d=null!==(n=null==i?void 0:i.name)&&void 0!==n?n:"…",p=(null==i?void 0:i.id)||r.directLinkedGroupId(),m=gr(1),[f,g]=dr(1),[v,y]=dr(!1),_=e=>{e instanceof Tl&&y(!0)},b=r.hasFetchedProfile();mr((()=>{b&&t.connect({applyUpdatesImmediately:!1})}),[b,t]),mr((()=>{r.setSortKey("Newest"),p&&e.load({groupId:p,sortBy:"updated",sortOrder:"desc",maxResults:5e3,onError:_,streamFilterBy:"group"})}),[e,p,r]);const w=e=>{g(e)};mr((()=>{w(1)}),[o,i]);const x=gr(null);fr((()=>{f!==m.current&&(ul(x.current),m.current=f)}),[f]);const k=`Show ${u} new or updated ${u>1?"annotations":"annotation"}`;return Er("div",{className:"NotebookView",children:[Er("header",{className:"NotebookView__heading",ref:x,children:Er("h1",{className:"NotebookView__group-name",children:d})}),Er("div",{className:"NotebookView__filters",children:Er(Ll,{})}),Er("div",{className:"NotebookView__results hyp-u-layout-row--align-center u-font--large",children:[u>0&&!s&&Er(Ir,{icon:"refresh",onClick:()=>t.applyPendingUpdates(),variant:"primary",title:k}),Er(Il,{forcedVisibleCount:a,isFiltered:s,isLoading:l,resultCount:c})]}),Er("div",{className:"NotebookView__items",children:[v&&Er("div",{className:"NotebookView__messages",children:Er(Yr,{title:"Too many results to show",children:["This preview of the Notebook can show"," ",Er("strong",{children:["up to ",5e3," results"]})," at a time (there are"," ",c," to show here)."," ",Er("a",{href:"mailto:support@hypothes.is?subject=Hypothesis%20Notebook&body=Please%20notify%20me%20when%20the%20Hypothesis%20Notebook%20is%20updated%20to%20support%20more%20than%205000%20annotations",children:"Contact us"})," ","if you would like to be notified when support for more annotations is available."]})}),Er(Ol,{currentPage:f,isLoading:l,onChangePage:w,threads:h.children})]})]})}),["loadAnnotationsService","streamer"]);var Rl=co((function({toastMessenger:e}){const t=ho(),n=t.mainFrame(),r=t.focusedGroup(),o=`Share Annotations in ${r&&r.name||"..."}`,i=r&&n,a=i&&(s=n.uri,l=r.id,wi(s)?`https://hyp.is/go?url=${encodeURIComponent(s)}&group=${l}`:null);var s,l;return Er(hl,{title:o,panelName:"shareGroupAnnotations",children:[!i&&Er("div",{className:"hyp-u-layout-row--center",children:Er(Kr,{})}),i&&Er("div",{className:"ShareAnnotationsPanel",children:a?Er(d,{children:[Er("div",{className:"ShareAnnotationsPanel__intro",children:"private"===r.type?Er("p",{children:"Use this link to share these annotations with other group members:"}):Er("p",{children:"Use this link to share these annotations with anyone:"})}),Er("div",{className:"hyp-u-layout-row",children:Er(Zr,{children:[Er(Jr,{"aria-label":"Use this URL to share these annotations",type:"text",value:a,readOnly:!0}),Er(Ir,{icon:"copy",onClick:()=>{try{Ti(a),e.success("Copied share link to clipboard")}catch(t){e.error("Unable to copy link")}},title:"Copy share link",variant:"dark"})]})}),Er("p",{children:["private"===r.type?Er("span",{children:["Annotations in the private group"," ",Er("em",{children:r.name})," are only visible to group members."]}):Er("span",{children:["Anyone using this link may view the annotations in the group"," ",Er("em",{children:r.name}),"."]})," ",Er("span",{children:["Private (",Er(Cr,{name:"lock",inline:!0,className:"u-icon--inline"})," ",Er("em",{children:"Only Me"}),") annotations are only visible to you."]})]}),Er(Ni,{shareURI:a})]}):Er("p",{children:"These annotations cannot be shared because this document is not available on the web."})})]})}),["toastMessenger"]);function Dl({message:e,onDismiss:t}){const n=e.type.charAt(0).toUpperCase()+e.type.slice(1),r="notice"===e.type?"cancel":e.type;return Er("li",{className:rr("toast-message-container",{"is-dismissed":e.isDismissed}),onClick:()=>t(e.id),children:Er("div",{className:rr("toast-message",`toast-message--${e.type}`),children:[Er("div",{className:"toast-message__type",children:Er(Cr,{name:r,className:"toast-message__icon"})}),Er("div",{className:"toast-message__message",children:[Er("strong",{children:[n,": "]}),e.message,e.moreInfoURL&&Er("div",{className:"toast-message__link",children:Er("a",{href:e.moreInfoURL,onClick:e=>e.stopPropagation(),target:"_new",children:"More info"})})]})]})})}var Bl=co((function({toastMessenger:e}){return Er("div",{children:Er("ul",{"aria-live":"polite","aria-relevant":"additions",className:"ToastMessages",children:ho().getToastMessages().map((t=>Er(Dl,{message:t,onDismiss:t=>e.dismiss(t)},t.id)))})})}),["toastMessenger"]);function Fl(e){return e.organization&&e.organization.name}function jl(e){const t={};return e.forEach((e=>{if("object"!=typeof e.organization)return;const n="__default__"===(r=e.organization).id?"__default__":`${r.name.toLowerCase()}${r.id}`;var r;void 0===t[n]&&(t[n]=Object.assign({},e.organization),t[n].groups=[]),function(e,t){const n=Object.assign({},e),r=t.groups;!r.length&&e.organization.logo&&(n.logo=e.organization.logo),r.push(n)}(e,t[n])})),t}function Hl(e){const t=jl(e),n=[],r=[];return Object.keys(t).sort().forEach((e=>{"__default__"===e?n.push(...t[e].groups):r.push(...t[e].groups)})),n.length&&r.push(...n),r}function Ul({heading:e,children:t}){return Er(d,{children:[e&&Er("h2",{className:"MenuSection__heading",children:e}),Er("ul",{className:"MenuSection__content",children:b(t).map((e=>Er("li",{children:e},e.key)))})]})}var ql=co((function({isExpanded:e,group:t,groups:n,onExpand:r,toastMessenger:o}){const i=t.links.html,a=i||t.canLeave,s=t.scopes&&!t.scopes.enforced||t.isScopedToUri,l=ho(),c=l.focusedGroupId(),u=t.id===c,h=t=>{t.stopPropagation(),t.preventDefault(),r(!e)},p="private"===t.type?"Copy invite link":"Copy activity link";return Er(ws,{icon:t.logo||"blank",iconAlt:Fl(t),isDisabled:!s,isExpanded:!!a&&e,isSelected:u,isSubmenuVisible:a?e:void 0,label:t.name,onClick:s?()=>{l.clearDirectLinkedGroupFetchFailed(),l.clearDirectLinkedIds(),n.focus(t.id)}:h,onToggleSubmenu:h,submenu:Er(d,{children:[Er("ul",{children:[i&&Er("li",{children:Er(ws,{href:i,icon:"external",isSubmenuItem:!0,label:"View group activity"})}),i&&Er("li",{children:Er(ws,{onClick:()=>(e=>{try{Ti(e),o.success(`Copied link for "${t.name}"`)}catch(e){o.error("Unable to copy link")}})(i),icon:"copy",isSubmenuItem:!0,label:p})}),t.canLeave&&Er("li",{children:Er(ws,{icon:"leave",isSubmenuItem:!0,label:"Leave group",onClick:async()=>{const e=`Are you sure you want to leave the group "${t.name}"?`;await no({title:"Leave group?",message:e,confirmAction:"Leave"})&&n.leave(t.id)}})})]}),!s&&Er("p",{className:"GroupListItem__footer",children:"This group is restricted to specific URLs."})]})})}),["groups","toastMessenger"]);function $l({expandedGroup:e,onExpandGroup:t,groups:n,heading:r}){return Er(Ul,{heading:r,children:n.map((n=>Er(ql,{isExpanded:n===e,onExpand:e=>t(e?n:null),group:n},n.id)))})}var Gl=co((function({settings:e}){const t=ho(),n=t.getCurrentlyViewingGroups(),r=t.getFeaturedGroups(),o=t.getMyGroups(),i=t.focusedGroup(),a=t.profile().userid,s=vr((()=>Hl(o)),[o]),l=vr((()=>Hl(r)),[r]),c=vr((()=>Hl(n)),[n]),u=t.defaultAuthority(),h=a&&!io(a,u),d=t.getLink("groups.new"),[p,m]=dr(null);let f;if(i){const t=i.organization.logo||function(e){const t=D(e);return t&&t.icon?t.icon:null}(e)||"",n=Fl(i)?Fl(i):"";f=Er("span",{className:"GroupList__menu-label",children:[t&&Er("img",{className:"GroupList__menu-icon",src:t,alt:n}),i.name]})}else f=Er("span",{children:"…"});return!!yl(e)&&n.length+r.length+o.length<2?f:Er(_s,{align:"left",contentClass:"GroupList__content",label:f,onOpenChanged:()=>m(null),title:i?`Select group (now viewing: ${i.name})`:"Select group",children:[c.length>0&&Er($l,{expandedGroup:p,onExpandGroup:m,heading:"Currently Viewing",groups:c}),l.length>0&&Er($l,{expandedGroup:p,onExpandGroup:m,heading:"Featured Groups",groups:l}),s.length>0&&Er($l,{expandedGroup:p,onExpandGroup:m,heading:"My Groups",groups:s}),h&&Er(ws,{icon:"add",href:d,label:"New private group"})]})}),["settings"]);function Vl({alwaysExpanded:e,query:t,onSearch:n}){const r=ho().isLoading(),o=gr(null),[i,a]=dr(t),[s,l]=dr(t);return t!==i&&(l(t),a(t)),Er("form",{action:"#",className:"SearchInput__form",name:"searchForm",onSubmit:e=>{e.preventDefault(),(o.current.value||i)&&n(o.current.value)},children:[Er("input",{"aria-label":"Search",className:rr("SearchInput__input",{"is-expanded":e||t}),dir:"auto",type:"text",name:"query",placeholder:r?"Loading…":"Search…",disabled:r,ref:o,value:s||"",onInput:e=>l(e.target.value)}),!r&&Er("div",{className:"SearchInput__button-container",children:Er(Ir,{icon:"search",onClick:()=>o.current.focus(),size:"small",title:"Search annotations"})}),r&&Er("div",{style:"margin:0.5em 0",children:Er(Kr,{size:"small"})})]})}function Wl(){const e=ho(),t=e.sortKey(),n=e.sortKeys().map((n=>Er(ws,{label:n,onClick:()=>e.setSortKey(n),isSelected:n===t},n))),r=Er("span",{className:"TopBar__menu-label",children:Er(Cr,{name:"sort",className:"TopBar__menu-icon"})});return Er("div",{className:"SortMenu",children:Er(_s,{label:r,title:`Sort by ${t}`,align:"right",menuIndicator:!1,children:n})})}var Yl=co((function({router:e}){return Er(Vl,{query:ho().routeParams().q,onSearch:t=>{e.navigate("stream",{q:t})},alwaysExpanded:!0})}),["router"]);var Kl=co((function({auth:e,frameSync:t,onLogout:n,settings:r}){const o=ho(),i=o.defaultAuthority(),a=io(e.userid,i),s=D(r),l=o.isFeatureEnabled("notebook_launch"),[c,u]=dr(!1),h=e=>s&&!!s[e],d=!a||h("onProfileRequestProvided"),p=!a||h("onLogoutRequestProvided"),m=()=>{t.notifyHost("openNotebook",o.focusedGroupId())},f=()=>a&&t.notifyHost("profileRequested"),g=(()=>{const t={};return d&&(a||(t.href=o.getLink("user",{user:e.username})),t.onClick=f),t})(),v=Er("span",{className:"TopBar__menu-label",children:Er(Cr,{name:"profile",className:"TopBar__menu-icon"})});return Er("div",{className:"UserMenu",onKeyDown:e=>{"n"===e.key&&(m(),u(!1))},children:Er(_s,{label:v,title:e.displayName,align:"right",open:c,onOpenChanged:u,children:[Er(Ul,{children:[Er(ws,{label:e.displayName,isDisabled:!d,...g}),!a&&Er(ws,{label:"Account settings",href:o.getLink("account.settings")}),l&&Er(ws,{label:"Open notebook",onClick:()=>m()})]}),p&&Er(Ul,{children:Er(ws,{label:"Log out",onClick:n})})]})})}),["frameSync","settings"]);var Xl=co((function({auth:e,frameSync:t,isSidebar:n,onLogin:r,onLogout:o,onSignUp:i,settings:a,streamer:s}){const l=!yl(a),c=so(["accentColor"],a),u=ho(),h=u.filterQuery(),p=u.pendingUpdateCount(),m=u.isSidebarPanelOpen("help"),f=u.isSidebarPanelOpen("shareGroupAnnotations"),g=()=>{const e=D(a);e&&e.onHelpRequestProvided?t.notifyHost("helpRequested"):u.toggleSidebarPanel("help")},v=Er(d,{children:["unknown"===e.status&&Er("span",{className:"TopBar__login-links",children:"⋯"}),"logged-out"===e.status&&Er("span",{className:"TopBar__login-links u-font--large hyp-u-horizontal-spacing--2",children:[Er(Or,{classes:"InlineLinkButton",onClick:i,style:c,variant:"primary",children:"Sign up"}),Er("div",{children:"/"}),Er(Or,{classes:"InlineLinkButton",onClick:r,style:c,variant:"primary",children:"Log in"})]}),"logged-in"===e.status&&Er(Kl,{auth:e,onLogout:o})]});return Er("div",{className:"TopBar",children:[!n&&Er("div",{className:"TopBar__inner content",children:[Er(Yl,{}),Er("div",{className:"hyp-u-stretch"}),Er(Ir,{icon:"help",expanded:m,onClick:g,size:"small",title:"Help"}),v]}),n&&Er("div",{className:"TopBar__inner content",children:[Er(Gl,{}),Er("div",{className:"hyp-u-stretch"}),p>0&&Er(Ir,{icon:"refresh",onClick:()=>s.applyPendingUpdates(),size:"small",variant:"primary",title:`Show ${p} new/updated ${1===p?"annotation":"annotations"}`}),Er(Vl,{query:h||null,onSearch:u.setFilterQuery}),Er(Wl,{}),l&&Er(Ir,{icon:"share",expanded:f,onClick:()=>{u.toggleSidebarPanel("shareGroupAnnotations")},size:"small",title:"Share annotations on this page"}),Er(Ir,{icon:"help",expanded:m,onClick:g,size:"small",title:"Help"}),v]})]})}),["frameSync","settings","streamer"]);var Jl=co((function({auth:e,frameSync:t,settings:n,session:r,toastMessenger:o}){const i=ho(),a=i.hasFetchedProfile(),s=i.profile(),l=i.route(),c=vr((()=>a?function(e){const t=ro(e.userid);if(t&&e.userid){let n=t.username;return e.user_info&&e.user_info.display_name&&(n=e.user_info.display_name),{status:"logged-in",displayName:n,userid:e.userid,username:t.username}}return{status:"logged-out"}}(s):{status:"unknown"}),[a,s]),u=vr((()=>so(["appBackgroundColor"],n)),[n]),h="clean"===n.theme,d="sidebar"===l;mr((()=>{(function(e,t,n){const r="object"==typeof t.preferences&&!!t.preferences.show_sidebar_tutorial,o=D(n)||{onHelpRequestProvided:!1};return e&&!o.onHelpRequestProvided&&r})(d,s,n)&&i.openSidebarPanel("help")}),[d,s,n,i]);const p=async()=>{if(D(n))t.notifyHost("loginRequested");else try{await e.login(),i.closeSidebarPanel("loginPrompt"),i.clearGroups(),r.reload()}catch(e){o.error(e.message)}},m=()=>{D(n)?t.notifyHost("signupRequested"):window.open(i.getLink("signup"))};return Er("div",{className:rr("HypothesisApp","js-thread-list-scroll-root",{"theme-clean":h,"HypothesisApp--notebook":"notebook"===l}),style:u,children:["notebook"!==l&&Er(Xl,{auth:c,onLogin:p,onSignUp:m,onLogout:async()=>{await(async()=>{const e=i.countDrafts();if(0===e)return!0;let t="";return 1===e?t="You have an unsaved annotation.\nDo you really want to discard this draft?":e>1&&(t="You have "+e+" unsaved annotations.\nDo you really want to discard these drafts?"),no({title:"Discard drafts?",message:t,confirmAction:"Discard"})})()&&(i.clearGroups(),i.removeAnnotations(i.unsavedAnnotations()),i.discardAllDrafts(),D(n)?t.notifyHost("logoutRequested"):r.logout())},isSidebar:d}),Er("div",{className:"HypothesisApp__content",children:[Er(Bl,{}),Er(kl,{auth:"logged-in"===c.status?c:{}}),Er(Rl,{}),l&&Er("main",{children:["annotation"===l&&Er(Js,{onLogin:p}),"notebook"===l&&Er(Pl,{}),"stream"===l&&Er(gl,{}),"sidebar"===l&&Er(fl,{onLogin:p,onSignUp:m})]})]})]})}),["auth","frameSync","session","settings","toastMessenger"]);function Zl({error:e}){return Er("div",{className:"LaunchErrorPanel",children:Er(Yr,{title:"Unable to start Hypothesis",children:e.message})})}class Ql{constructor(e,t){this._api=e,this._store=t}_applyDraftChanges(e){const t={},n=this._store.getDraft(e);return n&&(t.tags=n.tags,t.text=n.text,t.permissions=n.isPrivate?xi(e.user):ki(e.user,e.group)),{...e,...t}}_initialize(e,t=new Date){const n=this._store.getDefault("annotationPrivacy"),r=this._store.focusedGroupId(),o=this._store.profile();if(!r)throw new Error("Cannot create annotation without a group");const i=o.userid,a=o.user_info,s=$(8),l=Object.assign({created:t.toISOString(),group:r,permissions:Si(i,r,n),tags:[],text:"",updated:t.toISOString(),user:i,user_info:a,$tag:s,hidden:!1,links:{}},e);return Ro(l)&&(l.permissions=xi(i)),l}create(e,t=new Date){const n=this._initialize(e,t);this._store.addAnnotations([n]),this._store.deleteNewAndEmptyDrafts(),Ro(n)||this._store.createDraft(n,{tags:n.tags,text:n.text,isPrivate:!Io(n)}),Bo(n)?this._store.selectTab("note"):Fo(n)&&this._store.selectTab("annotation"),(n.references||[]).forEach((e=>{this._store.setExpanded(e,!0)}))}createPageNote(){const e=this._store.mainFrame();if(!this._store.isLoggedIn())return void this._store.openSidebarPanel("loginPrompt");if(!e)return;const t={target:[],uri:e.uri};this.create(t)}async delete(e){await this._api.annotation.delete({id:e.id}),this._store.removeAnnotations([e])}async flag(e){await this._api.annotation.flag({id:e.id}),this._store.updateFlagStatus(e.id,!0)}reply(e,t){const n={group:e.group,permissions:Io(e)?ki(t,e.group):xi(t),references:(e.references||[]).concat(e.id),target:[{source:e.target[0].source}],uri:e.uri};this.create(n)}async save(e){let t;const n=this._applyDraftChanges(e);let r;t=Lo(e)?this._api.annotation.create({},n):this._api.annotation.update({id:e.id},n),this._store.annotationSaveStarted(e);try{r=await t}finally{this._store.annotationSaveFinished(e)}return Object.keys(e).forEach((t=>{"$"===t[0]&&(r[t]=e[t])})),this._store.removeDraft(e),this._store.addAnnotations([r]),r}}Ql.$inject=["api","store"];class ec extends Error{constructor(e,t,n=""){let r="Network request failed";t&&(r+=` (${t.status})`),n&&(r+=`: ${n}`),super(r),this.url=e,this.response=t,this.reason=n}}async function tc(e,t){let n,r;try{n=await fetch(e,t)}catch(t){throw new ec(e,null,t.message)}if(204===n.status)return null;try{r=await n.json()}catch(t){throw new ec(e,n,"Failed to parse response")}var o;if(!n.ok)throw new ec(e,n,null===(o=r)||void 0===o?void 0:o.reason);return r}function nc(e,t){const n={};for(const r in t)if(t.hasOwnProperty(r)){const o=t[r],i=":"+r;-1!==e.indexOf(i)?e=e.replace(i,encodeURIComponent(String(o))):n[r]=o}return{url:e,unusedParams:n}}function rc(e){const t={};for(const n in e)e.hasOwnProperty(n)&&"$"!==n[0]&&(t[n]=e[n]);return t}class oc{constructor(e,t,n){const r=e.routes();this._clientId=null;const o=()=>this._clientId,i=e=>function(e,t,{getAccessToken:n,getClientId:r,onRequestStarted:o,onRequestFinished:i}){return async(a,s)=>{o();try{const[o,l]=await Promise.all([e,n()]),c=function(e,t){let n=e;return t.split(".").forEach((e=>{n=n[e]})),n}(o,t),u={"Content-Type":"application/json","Hypothesis-Client-Version":"1.896.0"};l&&(u.Authorization="Bearer "+l);const h=r();h&&(u["X-Client-Id"]=h);const{url:d,unusedParams:p}=nc(c.url,a),m=new URL(d);for(let[e,t]of Object.entries(p)){Array.isArray(t)||(t=[t]);for(let n of t)null!=n&&m.searchParams.append(e,n.toString())}return await tc(m.toString(),{body:s?JSON.stringify(rc(s)):null,headers:u,method:c.method})}finally{i()}}}(r,e,{getAccessToken:t.getAccessToken,getClientId:o,onRequestStarted:n.apiRequestStarted,onRequestFinished:n.apiRequestFinished});this.search=i("search"),this.annotation={create:i("annotation.create"),delete:i("annotation.delete"),get:i("annotation.read"),update:i("annotation.update"),flag:i("annotation.flag"),hide:i("annotation.hide"),unhide:i("annotation.unhide")},this.group={member:{delete:i("group.member.delete")},read:i("group.read")},this.groups={list:i("groups.read")},this.profile={groups:{read:i("profile.groups.read")},read:i("profile.read"),update:i("profile.update")}}setClientId(e){this._clientId=e}}oc.$inject=["apiRoutes","auth","store"];var ic={};function ac(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var sc=ac;ac.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},ac.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},ac.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1)}var r=this;return this._timer=setTimeout((function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout((function(){r._operationTimeoutCb(r._attempts)}),r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)}),n),this._options.unref&&this._timer.unref(),!0},ac.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout((function(){n._operationTimeoutCb()}),n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},ac.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},ac.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},ac.prototype.start=ac.prototype.try,ac.prototype.errors=function(){return this._errors},ac.prototype.attempts=function(){return this._attempts},ac.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,r=0;r<this._errors.length;r++){var o=this._errors[r],i=o.message,a=(e[i]||0)+1;e[i]=a,a>=n&&(t=o,n=a)}return t},function(e){var t=sc;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var r=[],o=0;o<t.retries;o++)r.push(this.createTimeout(o,t));return e&&e.forever&&!r.length&&r.push(this.createTimeout(o,t)),r.sort((function(e,t){return e-t})),r},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,r=Math.round(n*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return r=Math.min(r,t.maxTimeout)},e.wrap=function(t,n,r){if(n instanceof Array&&(r=n,n=null),!r)for(var o in r=[],t)"function"==typeof t[o]&&r.push(o);for(var i=0;i<r.length;i++){var a=r[i],s=t[a];t[a]=function(r){var o=e.operation(n),i=Array.prototype.slice.call(arguments,1),a=i.pop();i.push((function(e){o.retry(e)||(e&&(arguments[0]=o.mainError()),a.apply(this,arguments))})),o.attempt((function(){r.apply(t,i)}))}.bind(t,s),t[a].options=n}}}(ic);var lc=ic;function cc(e,t){return new Promise(((n,r)=>{const o=lc.operation(t);o.attempt((async()=>{try{const t=await e();o.retry(),n(t)}catch(e){o.retry(e)||r(e)}}))}))}function uc(e){return cc((()=>tc(e)))}class hc{constructor(e){this._apiUrl=e.apiUrl,this._routeCache=null,this._linkCache=null}routes(){return this._routeCache||(this._routeCache=uc(this._apiUrl).then((e=>e.links))),this._routeCache}links(){return this._linkCache||(this._linkCache=this.routes().then((e=>uc(e.links.url)))),this._linkCache}}hc.$inject=["settings"];class dc extends Error{constructor(e,t){super(e),this.cause=t}}class pc{constructor(e){this.clientId=e.clientId,this.tokenEndpoint=e.tokenEndpoint,this.authorizationEndpoint=e.authorizationEndpoint,this.revokeEndpoint=e.revokeEndpoint}exchangeAuthCode(e){return this._getAccessToken({client_id:this.clientId,grant_type:"authorization_code",code:e})}exchangeGrantToken(e){return this._getAccessToken({grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:e})}refreshToken(e){return this._getAccessToken({grant_type:"refresh_token",refresh_token:e})}async revokeToken(e){try{await this._formPost(this.revokeEndpoint,{token:e})}catch(e){throw new dc("Failed to revoke access token",e)}}authorize(e,t){const n=$(16),r=new Promise(((t,r)=>{e.addEventListener("message",(function o(i){"object"==typeof i.data&&i.data.state===n&&("authorization_response"===i.data.type&&t(i.data),"authorization_canceled"===i.data.type&&r(new Error("Authorization window was closed")),e.removeEventListener("message",o))}))})),o=new URL(this.authorizationEndpoint);return o.searchParams.set("client_id",this.clientId),o.searchParams.set("origin",e.location.origin),o.searchParams.set("response_mode","web_message"),o.searchParams.set("response_type","code"),o.searchParams.set("state",n),t.location=o.toString(),r.then((e=>e.code))}async _formPost(e,t){const n=new URLSearchParams;for(let[e,r]of Object.entries(t))n.set(e,r);n.sort();return tc(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.toString()})}async _getAccessToken(e){let t;try{t=await this._formPost(this.tokenEndpoint,e)}catch(e){throw new dc("Failed to fetch access token",e)}return{accessToken:t.access_token,expiresAt:Date.now()+1e3*(t.expires_in-10),refreshToken:t.refresh_token}}static openAuthPopupWindow(e){const t=`left=${e.screen.width/2-237.5},top=${e.screen.height/2-215},width=475,height=430`,n=e.open("about:blank","Log in to Hypothesis",t);if(!n)throw new Error("Failed to open login window");return n}}class mc extends El{constructor(e,t,n,r,o){let i,a,s;super();const l=(c="token",u=r.apiUrl,new URL(c,u).href);var c,u;function h(){let e=new URL(r.apiUrl).hostname;return e=e.replace(/\./g,"%2E"),`hypothesis.oauth.${e}.token`}function d(e){n.setObject(h(),e)}const p=async()=>{if(s)return s;const e=await t.links();return s=new pc({clientId:r.oauthClientId,authorizationEndpoint:e["oauth.authorize"],revokeEndpoint:e["oauth.revoke"],tokenEndpoint:l}),s},m=()=>{var e;return null===(e=D(r))||void 0===e?void 0:e.grantToken},f=async()=>{if(!a){const e=m();void 0!==e?a=e?p().then((t=>t.exchangeGrantToken(e))).catch((e=>{var t;throw t="You must reload the page to annotate.",o.error(`Hypothesis login lost: ${t}`,{autoDismiss:!1}),e})):Promise.resolve(null):i?(a=(async e=>{const t=await p(),n=await t.exchangeAuthCode(e);return d(n),n})(i),i=null):a=Promise.resolve(function(){const e=n.getObject(h());return e&&"string"==typeof e.accessToken&&"string"==typeof e.refreshToken&&"number"==typeof e.expiresAt?{accessToken:e.accessToken,refreshToken:e.refreshToken,expiresAt:e.expiresAt}:null}())}const e=a,t=await a;if(!t)return null;if(e!==a)return f();if(Date.now()>t.expiresAt){const e=m();return a=(async(e,t)=>{const n=await p();let r;try{if(r=await n.refreshToken(e),Date.now()>r.expiresAt)throw new Error("Refreshed token expired in the past")}catch{return null}return t.persist&&d(r),r})(t.refreshToken,{persist:void 0===e}),f()}return t.accessToken};(()=>{e.addEventListener("storage",(({key:e})=>{e===h()&&(a=null,this.emit("oauthTokensChanged"))}))})(),this.login=async function(){const t=pc.openAuthPopupWindow(e),n=await p(),r=await n.authorize(e,t);i=r,a=null},this.logout=async function(){const[e,t]=await Promise.all([a,p()]);e&&await t.revokeToken(e.accessToken),a=Promise.resolve(null),n.removeItem(h())},this.getAccessToken=f}}mc.$inject=["$window","apiRoutes","localStorage","settings","toastMessenger"];class fc{constructor(e,t){this._annotationsService=e,this._store=t,this._saving=new Set,this._failed=new Set}init(){const e=e=>!this._saving.has(e)&&!this._failed.has(e);this._store.subscribe((()=>{this._store.newHighlights().forEach((t=>{const n=t.$tag;e(n)&&(this._saving.add(n),cc((()=>this._annotationsService.save(t))).catch((()=>{this._failed.add(n)})).finally((()=>{this._saving.delete(n)})))}))}))}isSaving(){return this._saving.size>0}}fc.$inject=["annotationsService","store"];var gc=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var c=i[l];if(!s(c))return!1;var u=e[c],h=t[c];if(!1===(o=n?n.call(r,u,h,c):void 0)||void 0===o&&u!==h)return!1}return!0};function vc(e,t,n){const r=Array.isArray(t),o=()=>r?t.map((e=>e())):t();let i=o();return e((()=>{const e=o();if(r?gc(e,i):e===i)return;const t=i;i=e,n(e,t)}))}class yc{constructor(e,t){this._frameSync=e,this._store=t}init(){const e=()=>this._store.profile().features;vc(this._store.subscribe,[e,()=>this._store.frames()],(()=>{this._frameSync.notifyHost("featureFlagsUpdated",e()||{})}))}}yc.$inject=["frameSync","store"];class _c{constructor(e,t){this._port=e,this._methods=t,this._sequence=0,this._callbacks={},this._destroyed=!1,this._listeners=new yi,this._listeners.add(this._port,"message",(e=>this._handle(e))),this._port.start()}destroy(){this._destroyed=!0,this._listeners.removeAll(),this._port.close()}call(e,...t){if(this._destroyed)return;const n=this._sequence++,r=t[t.length-1];"function"==typeof r&&(this._callbacks[n]=r,t=t.slice(0,-1));const o={arguments:t,method:e,protocol:"frame-rpc",sequence:n,version:"1.0.0"};this._port.postMessage(o)}_parseMessage({data:e}){return e&&"object"==typeof e?"frame-rpc"!==e.protocol||"1.0.0"!==e.version?null:Array.isArray(e.arguments)?e:null:null}_handle(e){const t=this._parseMessage(e);if(null!==t)if("method"in t){if(!this._methods.hasOwnProperty(t.method))return;const e=(...e)=>{const n={arguments:e,protocol:"frame-rpc",response:t.sequence,version:"1.0.0"};this._port.postMessage(n)};this._methods[t.method](...t.arguments,e)}else if("response"in t){const e=this._callbacks[t.response];delete this._callbacks[t.response],e&&e(...t.arguments)}}}class bc{constructor(){this.links=[],this.channelListeners={},this.onConnectListeners=[],this.on("connect",(e=>e()))}destroy(){this.links.forEach((e=>e.destroy())),this.links=[]}createChannel(e){const t=new _c(e,this.channelListeners);let n=!1;return t.call("connect",(()=>{n||(n=!0,this.onConnectListeners.forEach((e=>e(t))))})),this.links.push(t),t}call(e,...t){let n;const r=t[t.length-1];"function"==typeof r&&(n=r,t=t.slice(0,-1));const o=e=>t=>{throw e.destroy(),this.links=this.links.filter((t=>t!==e)),t},i=this.links.map((n=>{const r=new Promise(((r,o)=>{const i=setTimeout((()=>r(null)),1e3);try{n.call(e,...t,((e,t)=>{clearTimeout(i),e?o(e):r(t)}))}catch(e){o(e)}}));return r.catch(o(n))}));let a=Promise.all(i);return n&&(a=a.then((e=>n(null,e))).catch((e=>n(e)))),a}on(e,t){if(this.links.length>0)throw new Error(`Listener '${e}' can't be registered because a channel has already been created`);if(this.channelListeners[e])throw new Error(`Listener '${e}' already bound in Bridge`);return this.channelListeners[e]=t,this}onConnect(e){return this.onConnectListeners.push(e),this}}function wc(e){return{tag:e.$tag,msg:{document:e.document,target:e.target,uri:e.uri}}}class xc{constructor(e,t,n){this._hostRPC=new bc,this._guestRPC=new bc,this._store=n,this._window=e;const r=new Set;this._highlightsVisible=!1,this._setupSyncToGuests=()=>{let e=0;vc(n.subscribe,[()=>n.allAnnotations(),()=>n.frames()],(([t,n],[o])=>{let i=0;const a=new Set,s=[];t.forEach((e=>{Mo(e)||(Io(e)&&++i,a.add(e.$tag),r.has(e.$tag)||s.push(e))}));const l=o.filter((e=>!a.has(e.$tag)));s.length>0&&(this._guestRPC.call("loadAnnotations",s.map(wc)),s.forEach((e=>{r.add(e.$tag)}))),l.forEach((e=>{this._guestRPC.call("deleteAnnotation",wc(e)),r.delete(e.$tag)})),n.length>0&&n.every((e=>e.isAnnotationFetchComplete))&&(0!==i&&i===e||(this._hostRPC.call("publicAnnotationCountChanged",i),e=i))}))},this._setupSyncFromGuests=()=>{this._guestRPC.on("createAnnotation",(e=>{const o=Object.assign({},e.msg,{$tag:e.tag});if(!n.isLoggedIn())return this._hostRPC.call("openSidebar"),n.openSidebarPanel("loginPrompt"),void this._guestRPC.call("deleteAnnotation",wc(o));r.add(e.tag),o.$highlight||this._hostRPC.call("openSidebar"),this._hostRPC.call("showHighlights"),t.create(o)}));let e={};const o=vi((()=>{n.updateAnchorStatus(e),e={}}),10);this._guestRPC.on("syncAnchoringStatus",(t=>{t.forEach((t=>{r.add(t.tag),e[t.tag]=t.msg.$orphan?"orphan":"anchored",o()}))})),this._guestRPC.on("showAnnotations",(e=>{n.selectAnnotations(n.findIDsForTags(e)),n.selectTab("annotation")})),this._guestRPC.on("focusAnnotations",(e=>{n.focusAnnotations(e||[])})),this._guestRPC.on("toggleAnnotationSelection",(e=>{n.toggleSelectedAnnotations(n.findIDsForTags(e))})),this._guestRPC.on("openSidebar",(()=>{this._hostRPC.call("openSidebar")})),this._guestRPC.on("closeSidebar",(()=>{this._hostRPC.call("closeSidebar")}))}}connect(){this._guestRPC.onConnect((e=>{e.call("setHighlightsVisible",this._highlightsVisible),e.call("getDocumentInfo",((t,n)=>{t?e.destroy():this._store.connectFrame({id:n.frameIdentifier,metadata:n.metadata,uri:n.uri})}))})),this._window.addEventListener("message",(e=>{var t;if("hypothesisGuestReady"!==(null===(t=e.data)||void 0===t?void 0:t.type))return;if(0===e.ports.length)return void console.warn("Ignoring `hypothesisGuestReady` message without a MessagePort");const n=e.ports[0];this._guestRPC.createChannel(n)})),this._setupSyncToGuests(),this._setupSyncFromGuests(),this._hostRPC.on("sidebarOpened",(()=>{this._store.setSidebarOpened(!0)})),this._hostRPC.on("frameDestroyed",(e=>{const t=this._store.frames().find((t=>t.id===e));t&&this._store.destroyFrame(t)})),this._hostRPC.on("setHighlightsVisible",(e=>{this._highlightsVisible=e,this._guestRPC.call("setHighlightsVisible",e)}));const e=new MessageChannel;this._hostRPC.createChannel(e.port1),this._window.parent.postMessage({type:"hypothesisSidebarReady"},"*",[e.port2])}notifyHost(e,...t){this._hostRPC.call(e,...t)}focusAnnotations(e){this._store.focusAnnotations(e),this._guestRPC.call("focusAnnotations",e)}scrollToAnnotation(e){this._guestRPC.call("scrollToAnnotation",e)}}xc.$inject=["$window","annotationsService","store"];var kc=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")};function Sc(e,t,n,r){const o=t.find((e=>"__world__"===e.id));o&&e.unshift(o);const i=e.map((e=>e.id));t=t.filter((e=>!i.includes(e.id))),t.forEach((e=>e.isMember=!1)),e.forEach((e=>e.isMember=!0));const a=e.concat(t);return a.forEach((e=>{e.canLeave=!!function(e){const t=D(e);return!t||!!t.allowLeavingGroups}(r)&&"private"===e.type})),a.forEach((e=>e.isScopedToUri=function(e,t){if(e.scopes&&e.scopes.uri_patterns.length>0&&t)return function(e,t){return void 0!==t.find((t=>e.match(t.split("*").map(kc).join(".*"))))}(t,e.scopes.uri_patterns);return!0}(e,n))),a}function Ac(e){return Object.keys(e).reduce(((e,t)=>(e[t]=t,e)),{})}const Ec={id:"__default__",name:"__DEFAULT__",logo:"data:image/svg+xml;utf8,"+encodeURIComponent(eo)};const Tc=["organization","scopes"];class Cc{constructor(e,t,n,r,o,i){this._store=e,this._api=t,this._auth=n,this._settings=o,this._toastMessenger=i,this._serviceConfig=D(o),this._reloadSetUp=!1}_mainURI(){var e,t;return null!==(e=null===(t=this._store.mainFrame())||void 0===t?void 0:t.uri)&&void 0!==e?e:null}async _filterGroups(e,t,n,r){if(r){const t=e.find((e=>e.id===r));t&&!t.isScopedToUri&&t.scopes&&t.scopes.enforced&&(e=e.filter((e=>e.id!==r)),this._store.setDirectLinkedGroupFetchFailed(),r=null)}if(t)return e;const o=e.some((e=>"__world__"!==e.id&&e.isScopedToUri));return o?"__world__"===r||"__world__"===n?e:e.filter((e=>"__world__"!==e.id)):e}_setupAutoReload(){this._reloadSetUp||(this._reloadSetUp=!0,vc(this._store.subscribe,(()=>this._mainURI()),(()=>{this.load()})),vc(this._store.subscribe,[()=>this._store.hasFetchedProfile(),()=>this._store.profile().userid],((e,[t])=>{t&&this.load()})))}_addGroupsToStore(e,t){!function(e){e.forEach((e=>{e.organization&&"object"==typeof e.organization||(e.organization=Ec)}))}(e);const n=0===this._store.allGroups().length,r=this._store.getDefault("focusedGroup");this._store.loadGroups(e),n&&(t&&e.some((e=>e.id===t))?this.focus(t):r&&e.some((e=>e.id===r))&&this.focus(r))}_fetchGroup(e){return this._api.group.read({id:e,expand:Tc})}async _loadGroupsForUserAndDocument(){var e;const t=()=>function(e,t){const n=t(e);return null!==n?Promise.resolve(n):new Promise((n=>{const r=e.subscribe((()=>{const o=t(e);null!==o&&(r(),n(o))}))}))}(this._store,(()=>this._mainURI()));let n=null;"sidebar"===this._store.route()&&(n=await t()),this._setupAutoReload();const r=this._store.directLinkedAnnotationId();let o=null;r&&(o=this._api.annotation.get({id:r}).catch((()=>null)));const i=this._store.directLinkedGroupId();let a=null;i&&(a=this._fetchGroup(i).then((e=>(this._store.clearDirectLinkedGroupFetchFailed(),e))).catch((()=>(this._store.setDirectLinkedGroupFetchFailed(),null))));const s={expand:Tc},l=null===(e=this._serviceConfig)||void 0===e?void 0:e.authority;l&&(s.authority=l),n&&(s.document_uri=n);const[c,u,h,d,p]=await Promise.all([this._api.profile.groups.read({expand:Tc}),this._api.groups.list(s),this._auth.getAccessToken(),o,a]);p&&!u.some((e=>e.id===p.id))&&u.push(p);let m=null;if(d){m=d.group;const e=c.concat(u).find((e=>e.id===d.group));if(!e)try{const e=await this._fetchGroup(d.group);u.push(e)}catch(e){this._toastMessenger.error("Unable to fetch group for linked annotation")}}const f=null!==h,g=await this._filterGroups(Sc(c,u,n,this._settings),f,m,i),v=m||i||null;return this._addGroupsToStore(g,v),g}async _loadServiceSpecifiedGroups(e){const t=await this._api.profile.groups.read({expand:Tc});let n;const r=async e=>{try{return await this._fetchGroup(e)}catch(e){return n=e,null}},o=await Promise.all(e.map((e=>t.find((t=>t.id===e||t.groupid===e))||r(e)))),i=o.filter((e=>null!==e)),a=this._store.directLinkedGroupId();return this._addGroupsToStore(i,a),n&&this._toastMessenger.error(`Unable to fetch groups: ${n.message}`,{autoDismiss:!1}),i}async load(){var e;if(null!==(e=this._serviceConfig)&&void 0!==e&&e.groups){let e=[];try{e=await this._serviceConfig.groups}catch(e){this._toastMessenger.error(`Unable to fetch group configuration: ${e.message}`)}return this._loadServiceSpecifiedGroups(e)}return this._loadGroupsForUserAndDocument()}focus(e){const t=this._store.focusedGroupId();this._store.focusGroup(e);const n=this._store.focusedGroupId();if(t!==n&&null!==t&&n){const e=this._store.newAnnotations().filter((e=>!Mo(e))).map((e=>({...e,group:n})));e.length&&this._store.addAnnotations(e),this._store.setDefault("focusedGroup",n)}}leave(e){return this._api.group.member.delete({pubid:e,userid:"me"})}}Cc.$inject=["store","api","auth","session","settings","toastMessenger"];class Nc{constructor(e,t,n,r){this._api=e,this._store=t,this._streamer=n,this._streamFilter=r,this._searchClient=null}load({groupId:e,uris:t,onError:n,maxResults:r,sortBy:o,sortOrder:i,streamFilterBy:a="uri"}){if(this._store.removeAnnotations(this._store.savedAnnotations()),this._searchClient&&this._searchClient.cancel(),"group"===a)this._streamFilter.resetFilter().addClause("/group","equals",e,!0),this._streamer.setConfig("filter",{filter:this._streamFilter.getFilter()});else t&&t.length>0&&(this._streamFilter.resetFilter().addClause("/uri","one_of",t),this._streamer.setConfig("filter",{filter:this._streamFilter.getFilter()}));const s={incremental:!0,separateReplies:!1,maxResults:r,sortBy:o,sortOrder:i};this._searchClient=new Nl(this._api.search,s),this._searchClient.on("resultCount",(e=>{this._store.setAnnotationResultCount(e)})),this._searchClient.on("results",(e=>{e.length&&this._store.addAnnotations(e)})),this._searchClient.on("error",(e=>{"function"==typeof n?n(e):console.error(e)})),this._searchClient.on("end",(()=>{this._searchClient=null,t&&t.length>0&&this._store.frames().forEach((e=>{t.indexOf(e.uri)>=0&&this._store.updateFrameAnnotationFetchStatus(e.uri,!0)})),this._store.annotationFetchFinished()})),this._store.annotationFetchStarted(),this._searchClient.get({group:e,uri:t})}async loadThread(e){let t,n;this._store.clearAnnotations();try{this._store.annotationFetchStarted(),t=await this._api.annotation.get({id:e}),Mo(t)&&(t=await this._api.annotation.get({id:t.references[0]})),n=await this._api.search({references:t.id})}finally{this._store.annotationFetchFinished()}const r=[t,...n.rows];if(this._store.addAnnotations(r),!Mo(t)){const e=t.id;this._streamFilter.addClause("/references","one_of",e,!0).addClause("/id","equals",e,!0),this._streamer.setConfig("filter",{filter:this._streamFilter.getFilter()}),this._streamer.connect()}return r}}Nc.$inject=["api","store","streamer","streamFilter"];class Mc{constructor(){this._store={}}getItem(e){return e in this._store?this._store[e]:null}setItem(e,t){this._store[e]=t}removeItem(e){delete this._store[e]}}class Lc{constructor(e){let t="hypothesis.testKey";try{this._storage=e.localStorage,e.localStorage.setItem(t,t),e.localStorage.getItem(t),e.localStorage.removeItem(t)}catch(e){this._storage=new Mc}}getItem(e){return this._storage.getItem(e)}getObject(e){const t=this._storage.getItem(e);return t?JSON.parse(t):null}setItem(e,t){this._storage.setItem(e,t)}setObject(e,t){const n=JSON.stringify(t);this._storage.setItem(e,n)}removeItem(e){this._storage.removeItem(e)}}Lc.$inject=["$window"];const Ic={annotationPrivacy:"hypothesis.privacy",focusedGroup:"hypothesis.groups.focus"};class zc{constructor(e,t){this._storage=e,this._store=t}init(){Object.keys(Ic).forEach((e=>{const t=this._storage.getItem(Ic[e]);this._store.setDefault(e,t)})),vc(this._store.subscribe,(()=>this._store.getDefaults()),((e,t)=>{for(let n in e)t[n]!==e[n]&&n in Ic&&this._storage.setItem(Ic[n],e[n])}))}}zc.$inject=["localStorage","store"];class Oc{constructor(e,t){this._window=e,this._store=t,this._didRegisterPopstateListener=!1}currentRoute(){const e=this._window.location.pathname.slice(1).split("/"),t=new URLSearchParams(this._window.location.search),n={};for(let[e,r]of t)n[e]=r;"client"===e[0]&&e.shift();let r;switch(e[0].replace(/\.html$/,"")){case"a":r="annotation",n.id=e[1]||"";break;case"notebook":r="notebook";break;case"stream":r="stream";break;default:r="sidebar"}return{route:r,params:n}}routeUrl(e,t={}){let n;const r={...t};switch(e){case"annotation":{const e=t.id;delete r.id,n=`/a/${e}`}break;case"notebook":n="/notebook";break;case"stream":n="/stream";break;default:throw new Error(`Cannot generate URL for route "${e}"`)}let o=!1;const i=new URLSearchParams;for(let[e,t]of Object.entries(r))o=!0,i.set(e,t);return o&&(n+="?"+i.toString()),n}sync(){const{route:e,params:t}=this.currentRoute();this._store.changeRoute(e,t),this._didRegisterPopstateListener||(this._window.addEventListener("popstate",(()=>{this.sync()})),this._didRegisterPopstateListener=!0)}navigate(e,t){this._window.history.pushState({},"",this.routeUrl(e,t)),this.sync()}}Oc.$inject=["$window","store"];class Pc{constructor(e,t){this._apiRoutes=e,this._store=t}async init(){try{const e=await this._apiRoutes.links();this._store.updateLinks(e)}catch(e){console.warn(`Failed to fetch Hypothesis links: ${e.message}`)}}}Pc.$inject=["apiRoutes","store"];class Rc{constructor(e,t,n,r,o){var i,a;this._api=t,this._auth=n,this._store=e,this._toastMessenger=o,this._authority=null!==(i=null===(a=D(r))||void 0===a?void 0:a.authority)&&void 0!==i?i:null,this._lastLoad=null,this._lastLoadTime=null,n.on("oauthTokensChanged",(()=>this.reload()))}load(){return(!this._lastLoad||!this._lastLoadTime||Date.now()-this._lastLoadTime>3e5)&&(this._lastLoadTime=Date.now(),this._lastLoad=cc((()=>{const e=this._authority?{authority:this._authority}:{};return this._api.profile.read(e)})).then((e=>(this.update(e),this._lastLoadTime=Date.now(),e))).catch((e=>{throw this._lastLoadTime=null,e}))),this._lastLoad}async dismissSidebarTutorial(){const e=await this._api.profile.update({},{preferences:{show_sidebar_tutorial:!1}});this.update(e)}update(e){const t=this._store.profile(),n=e.userid!==t.userid;return this._store.updateProfile(e),this._lastLoad=Promise.resolve(e),this._lastLoadTime=Date.now(),n&&(e.userid?Fn({id:e.userid}):Fn(null)),e}async logout(){try{return await this._auth.logout(),this.reload()}catch(e){throw this._toastMessenger.error("Log out failed"),new Error(e)}}reload(){return this._lastLoad=null,this._lastLoadTime=null,this.load()}}Rc.$inject=["store","api","auth","settings","toastMessenger"];class Dc{constructor(){this._filter={match_policy:"include_any",clauses:[],actions:{create:!0,update:!0,delete:!0}}}addClause(e,t,n,r=!1){return this._filter.clauses.push({field:e,operator:t,value:n,case_sensitive:r}),this}getFilter(){return this._filter}resetFilter(){return this._filter={match_policy:"include_any",clauses:[],actions:{create:!0,update:!0,delete:!0}},this}}class Bc extends El{constructor(e){super();const t=[];let n,r=null;const o=()=>{for(;t.length>0;){const e=JSON.stringify(t.shift());n.send(e)}},i=()=>{r=lc.operation({minTimeout:2e3,retries:10,randomize:!0}),r.attempt((()=>{n=new WebSocket(e),n.onopen=e=>{r=null,o(),this.emit("open",e)},n.onclose=e=>{if(1e3===e.code||1001===e.code)return void this.emit("close",e);const t=new Error(`WebSocket closed abnormally, code: ${e.code}`);console.warn(t),((e,t)=>{if(r)return void(r.retry(e)||console.error("Reached max retries attempting to reconnect WebSocket"));let n=1e3;n+=Math.floor(Math.random()*n),setTimeout(t,n)})(t,i)},n.onerror=e=>{this.emit("error",e)},n.onmessage=e=>{this.emit("message",e)}}))};this.close=()=>{n.close(1e3)},this.send=e=>{t.push(e),this.isConnected()&&o()},this.isConnected=()=>n.readyState===WebSocket.OPEN,i()}}class Fc{constructor(e,t,n,r,o){this._auth=t,this._groups=n,this._session=r,this._store=e,this._websocketURL=o.websocketUrl,this.clientId=$(32),this._socket=null,this._updateImmediately=!0,this._configMessages={},this._reconnectSetUp=!1}applyPendingUpdates(){const e=Object.values(this._store.pendingUpdates());e.length&&this._store.addAnnotations(e);const t=Object.keys(this._store.pendingDeletions()).map((e=>({id:e})));t.length&&this._store.removeAnnotations(t),this._store.clearPendingUpdates()}_handleSocketError(e){z("Error connecting to H push notification service:",e);const t=new URL(this._websocketURL).hostname;-1!==["localhost","127.0.0.1"].indexOf(t)&&z("Check that your H service is configured to allow WebSocket connections from "+window.location.origin)}_handleSocketMessage(e){const t=JSON.parse(e.data);if(t)if("annotation-notification"===t.type){const e=t.payload;switch(t.options.action){case"create":case"update":case"past":this._store.receiveRealTimeUpdates({updatedAnnotations:e});break;case"delete":this._store.receiveRealTimeUpdates({deletedAnnotations:e})}this._updateImmediately&&this.applyPendingUpdates()}else if("session-change"===t.type)this._session.update(t.model),this._groups.load();else if("whoyouare"===t.type){const e=this._store.profile().userid;t.userid!==e&&console.warn('WebSocket user ID "%s" does not match logged-in ID "%s"',t.userid,e)}else z("Received unsupported notification",t.type)}_sendClientConfig(e){Object.keys(this._configMessages).forEach((t=>{this._configMessages[t]&&e.send(this._configMessages[t])}))}setConfig(e,t){var n;this._configMessages[e]=t,null!==(n=this._socket)&&void 0!==n&&n.isConnected()&&this._socket.send(t)}async _reconnect(){var e;if(!this._websocketURL)return;let t,n;null===(e=this._socket)||void 0===e||e.close();try{t=await this._auth.getAccessToken()}catch(e){throw console.error("Failed to fetch token for WebSocket authentication",e),e}if(t){const e=new URL(this._websocketURL);e.searchParams.set("access_token",t),n=e.toString()}else n=this._websocketURL;const r=new Bc(n);r.on("open",(()=>this._sendClientConfig(r))),r.on("error",(e=>this._handleSocketError(e))),r.on("message",(e=>this._handleSocketMessage(e))),this._socket=r,this.setConfig("client-id",{messageType:"client_id",value:this.clientId}),this.setConfig("auth-check",{type:"whoami",id:1})}async connect(e={}){var t;this._updateImmediately=null===(t=e.applyUpdatesImmediately)||void 0===t||t,this._reconnectSetUp||(this._reconnectSetUp=!0,vc(this._store.subscribe,(()=>this._store.profile().userid),(()=>{this._reconnect()}))),this._socket||await this._reconnect()}}Fc.$inject=["store","auth","groups","session","settings"];class jc{constructor(e){this._storage=e}filter(e,t=null){const n=this._storage.getObject("hypothesis.user.tags.list")||[];let r=0;return n.filter((n=>{if(null!==t&&r>=t)return!1;const o=n.split(/\W+/),i=new RegExp(`^${kc(e)}`,"i");return!(!o.some((e=>e.match(i)))&&!n.match(i))&&(++r,!0)}))}store(e){const t=this._storage.getObject("hypothesis.user.tags.map")||{};e.forEach((e=>{t[e]?(t[e].count+=1,t[e].updated=Date.now()):t[e]={text:e,count:1,updated:Date.now()}})),this._storage.setObject("hypothesis.user.tags.map",t);const n=Object.keys(t).sort(((e,n)=>t[e].count!==t[n].count?t[n].count-t[e].count:e.localeCompare(n)));this._storage.setObject("hypothesis.user.tags.list",n)}}jc.$inject=["localStorage"];class Hc{constructor(e){this._store=e}forceVisible(e){e.children.forEach((e=>{this.forceVisible(e)})),e.visible||this._store.setForcedVisible(e.id,!0)}}Hc.$inject=["store"];class Uc{constructor(e){this._store=e}dismiss(e){const t=this._store.getToastMessage(e);t&&!t.isDismissed&&(this._store.updateToastMessage({...t,isDismissed:!0}),setTimeout((()=>{this._store.removeToastMessage(e)}),500))}_addMessage(e,t,{autoDismiss:n=!0,moreInfoURL:r=""}={}){if(this._store.hasToastMessage(e,t))return;const o=$(10),i={type:e,id:o,message:t,moreInfoURL:r};this._store.addToastMessage({isDismissed:!1,...i}),n&&setTimeout((()=>{this.dismiss(o)}),5e3)}error(e,t){this._addMessage("error",e,t)}success(e,t){this._addMessage("success",e,t)}notice(e,t){this._addMessage("notice",e,t)}}function qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$c(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vc(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}Uc.$inject=["store"];var Wc="function"==typeof Symbol&&Symbol.observable||"@@observable",Yc=function(){return Math.random().toString(36).substring(7).split("").join(".")},Kc={INIT:"@@redux/INIT"+Yc(),REPLACE:"@@redux/REPLACE"+Yc(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Yc()}};function Xc(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Jc(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Vc(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Vc(1));return n(Jc)(e,t)}if("function"!=typeof e)throw new Error(Vc(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(Vc(3));return i}function h(e){if("function"!=typeof e)throw new Error(Vc(4));if(l)throw new Error(Vc(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(Vc(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function d(e){if(!Xc(e))throw new Error(Vc(7));if(void 0===e.type)throw new Error(Vc(8));if(l)throw new Error(Vc(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function p(e){if("function"!=typeof e)throw new Error(Vc(10));o=e,d({type:Kc.REPLACE})}function m(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Vc(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[Wc]=function(){return this},e}return d({type:Kc.INIT}),(r={dispatch:d,subscribe:h,getState:u,replaceReducer:p})[Wc]=m,r}function Zc(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:Kc.INIT}))throw new Error(Vc(12));if(void 0===n(void 0,{type:Kc.PROBE_UNKNOWN_ACTION()}))throw new Error(Vc(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],h=c(u,t);if(void 0===h)throw t&&t.type,new Error(Vc(14));o[l]=h,r=r||h!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}function Qc(e,t){return function(){return t(e.apply(this,arguments))}}function eu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function tu(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var nu=tu();function ru(e,t=[],n=[]){const r={},o={},i={};e.forEach((e=>{e.namespace?(r[e.namespace]=e.initialState(...t),o[e.namespace]=function(e){return(t={},n)=>{const r=e[n.type];if(!r)return t;const o=r(t,n);return Array.isArray(o)?o:{...t,...o}}}(e.reducers),i[e.namespace]={selectors:e.selectors,rootSelectors:e.rootSelectors||{}}):console.warn("Store module does not specify a namespace",e)}));const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(Vc(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=eu.apply(void 0,i)(n.dispatch),Gc(Gc({},n),{},{dispatch:r})}}}(...[nu],...n);const s=Jc(Zc(o),r,a),l=Object.assign({},...e.map((e=>e.actionCreators))),c=function(e,t){if("function"==typeof e)return Qc(e,t);if("object"!=typeof e||null===e)throw new Error(Vc(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=Qc(o,t))}return n}(l,s.dispatch),u=function(e,t){const n={};return Object.keys(e).forEach((r=>{const{selectors:o,rootSelectors:i={}}=e[r];Object.keys(o).forEach((e=>{if(n[e])throw new Error(`Duplicate selector "${e}"`);n[e]=(...n)=>o[e](t()[r],...n)})),Object.keys(i).forEach((e=>{if(n[e])throw new Error(`Duplicate selector "${e}"`);n[e]=(...n)=>i[e](t(),...n)}))})),n}(i,s.getState);return Object.assign(s,c,u),s}function ou(e,t){if(!(e instanceof Function)){const t=e;e=()=>t}return{initialState:e,...t}}function iu(e){let t=0;return function(n){return function(r){if(!window.debug)return void n(r);++t;const o=r.type+" ("+t.toString()+")";console.group(o),console.log("Prev State:",e.getState()),console.log("Action:",r),n(r),console.log("Next State:",e.getState()),console.groupEnd()}}}nu.withExtraArgument=tu;const au={API_REQUEST_STARTED:e=>({...e,activeApiRequests:e.activeApiRequests+1}),API_REQUEST_FINISHED(e){if(0===e.activeApiRequests)throw new Error("API_REQUEST_FINISHED action when no requests were active");return{...e,activeApiRequests:e.activeApiRequests-1}},ANNOTATION_SAVE_STARTED(e,t){let n=[];t.annotation.$tag&&!e.activeAnnotationSaveRequests.includes(t.annotation.$tag)&&n.push(t.annotation.$tag);const r=e.activeAnnotationSaveRequests.concat(n);return{...e,activeAnnotationSaveRequests:r}},ANNOTATION_SAVE_FINISHED(e,t){const n=e.activeAnnotationSaveRequests.filter((e=>e!==t.annotation.$tag));return{...e,activeAnnotationSaveRequests:n}},ANNOTATION_FETCH_STARTED:e=>({...e,activeAnnotationFetches:e.activeAnnotationFetches+1}),ANNOTATION_FETCH_FINISHED(e){if(0===e.activeAnnotationFetches)throw new Error("ANNOTATION_FETCH_FINISHED action when no annotation fetches were active");return{...e,hasFetchedAnnotations:!0,activeAnnotationFetches:e.activeAnnotationFetches-1}},SET_ANNOTATION_RESULT_COUNT:(e,t)=>({annotationResultCount:t.resultCount})},su=Ac(au);var lu=ou({activeAnnotationSaveRequests:[],activeApiRequests:0,activeAnnotationFetches:0,hasFetchedAnnotations:!1,annotationResultCount:null},{reducers:au,namespace:"activity",actionCreators:{annotationFetchStarted:function(){return{type:su.ANNOTATION_FETCH_STARTED}},annotationFetchFinished:function(){return{type:su.ANNOTATION_FETCH_FINISHED}},annotationSaveStarted:function(e){return{type:su.ANNOTATION_SAVE_STARTED,annotation:e}},annotationSaveFinished:function(e){return{type:su.ANNOTATION_SAVE_FINISHED,annotation:e}},apiRequestStarted:function(){return{type:su.API_REQUEST_STARTED}},apiRequestFinished:function(){return{type:su.API_REQUEST_FINISHED}},setAnnotationResultCount:function(e){return{type:su.SET_ANNOTATION_RESULT_COUNT,resultCount:e}}},selectors:{hasFetchedAnnotations:function(e){return e.hasFetchedAnnotations},isLoading:function(e){return e.activeApiRequests>0||!e.hasFetchedAnnotations},isFetchingAnnotations:function(e){return e.activeAnnotationFetches>0},isSavingAnnotation:function(e,t){return!!t.$tag&&e.activeAnnotationSaveRequests.includes(t.$tag)},annotationResultCount:function(e){return e.annotationResultCount}}});function cu(e,t){return e===t}function uu(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function hu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cu,n=null,r=null;return function(){return uu(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function du(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function pu(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),s=du(r),l=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),c=e((function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return l.apply(null,e)}));return c.resultFunc=a,c.dependencies=s,c.recomputations=function(){return i},c.resetRecomputations=function(){return i=0},c}}var mu=pu(hu);function fu(e,t){return e.reduce(((e,n)=>t(n)?e+1:e),0)}function gu(e){const t={};return e.forEach((e=>t[e]=!0)),t}function vu(e){return Object.keys(e).filter((t=>!0===e[t]))}const yu={CHANGE_ROUTE:(e,{name:t,params:n})=>({name:t,params:n})},_u=Ac(yu);var bu=ou({name:null,params:{}},{namespace:"route",reducers:yu,actionCreators:{changeRoute:function(e,t={}){return{type:_u.CHANGE_ROUTE,name:e,params:t}}},selectors:{route:function(e){return e.name},routeParams:function(e){return e.params}}});function wu(e,t){return e.find((e=>e.id===t))}function xu(e,t){return e.find((e=>e.$tag===t))}const ku={ADD_ANNOTATIONS:function(e,t){const n={},r={},o=[],i=[],a=[];let s=e.nextTag;return t.annotations.forEach((t=>{let i;t.id&&(i=wu(e.annotations,t.id)),!i&&t.$tag&&(i=xu(e.annotations,t.$tag)),i?(a.push(Object.assign({},i,t)),t.id&&(n[t.id]=!0),i.$tag&&(r[i.$tag]=!0)):(o.push(function(e,t){let n=e.$orphan;return e.id||(n=!1),Object.assign({},e,{$anchorTimeout:!1,$tag:e.$tag||t,$orphan:n})}(t,"t"+s)),++s)})),e.annotations.forEach((e=>{n[e.id]||r[e.$tag]||i.push(e)})),{annotations:o.concat(a).concat(i),nextTag:s}},CLEAR_ANNOTATIONS:function(){return{annotations:[],focused:{},highlighted:{}}},FOCUS_ANNOTATIONS:function(e,t){return{focused:gu(t.focusedTags)}},HIDE_ANNOTATION:function(e,t){return{annotations:e.annotations.map((e=>e.id!==t.id?e:{...e,hidden:!0}))}},HIGHLIGHT_ANNOTATIONS:function(e,t){return{highlighted:t.highlighted}},REMOVE_ANNOTATIONS:function(e,t){return{annotations:[...t.remainingAnnotations]}},UNHIDE_ANNOTATION:function(e,t){return{annotations:e.annotations.map((e=>e.id!==t.id?e:Object.assign({},e,{hidden:!1})))}},UPDATE_ANCHOR_STATUS:function(e,t){return{annotations:e.annotations.map((e=>{if(!t.statusUpdates.hasOwnProperty(e.$tag))return e;const n=t.statusUpdates[e.$tag];return"timeout"===n?Object.assign({},e,{$anchorTimeout:!0}):Object.assign({},e,{$orphan:"orphan"===n})}))}},UPDATE_FLAG_STATUS:function(e,t){return{annotations:e.annotations.map((e=>{if(e.id&&e.id===t.id){if(e.flagged===t.isFlagged)return e;const n=Object.assign({},e,{flagged:t.isFlagged});if(n.moderation){const r=t.isFlagged?1:-1;n.moderation=Object.assign({},e.moderation,{flagCount:e.moderation.flagCount+r})}return n}return e}))}}},Su=Ac(ku);function Au(e){return(t,n)=>{const r=function(e,t){const n={},r={};return t.forEach((e=>{e.id&&(n[e.id]=!0),e.$tag&&(r[e.$tag]=!0)})),e.filter((e=>!(e.id&&e.id in n||e.$tag&&e.$tag in r)))}(n().annotations.annotations,e);t({type:Su.REMOVE_ANNOTATIONS,annotationsToRemove:e,remainingAnnotations:r})}}function Eu(e){return{type:Su.UPDATE_ANCHOR_STATUS,statusUpdates:e}}const Tu=mu((e=>e.annotations),(e=>fu(e,Fo)));const Cu=mu((e=>e.focused),(e=>vu(e))),Nu=mu((e=>e.highlighted),(e=>vu(e)));const Mu=mu((e=>e.annotations),(e=>e.some(Oo))),Lu=mu((e=>e.annotations),(e=>e.filter((e=>Lo(e)&&!Ro(e))))),Iu=mu((e=>e.annotations),(e=>e.filter((e=>Lo(e)&&Ro(e))))),zu=mu((e=>e.annotations),(e=>fu(e,Bo))),Ou=mu((e=>e.annotations),(e=>fu(e,Do)));var Pu=ou({annotations:[],focused:{},highlighted:{},nextTag:1},{namespace:"annotations",reducers:ku,actionCreators:{addAnnotations:function(e){return function(t,n){const r=e.filter((e=>!wu(n().annotations.annotations,e.id)));if(t({type:Su.ADD_ANNOTATIONS,annotations:e,currentAnnotationCount:n().annotations.annotations.length}),"sidebar"!==bu.selectors.route(n().route))return;const o=r.filter(Oo).map((e=>e.id));o.length>0&&setTimeout((()=>{const e=n().annotations.annotations,r=o.map((t=>wu(e,t))).filter((e=>e&&Oo(e))).reduce(((e,t)=>(e[t.$tag]="timeout",e)),{});t(Eu(r))}),500)}},clearAnnotations:function(){return{type:Su.CLEAR_ANNOTATIONS}},focusAnnotations:function(e){return{type:Su.FOCUS_ANNOTATIONS,focusedTags:e}},hideAnnotation:function(e){return{type:Su.HIDE_ANNOTATION,id:e}},highlightAnnotations:function(e){return{type:Su.HIGHLIGHT_ANNOTATIONS,highlighted:gu(e)}},removeAnnotations:Au,unhideAnnotation:function(e){return{type:Su.UNHIDE_ANNOTATION,id:e}},updateAnchorStatus:Eu,updateFlagStatus:function(e,t){return{type:Su.UPDATE_FLAG_STATUS,id:e,isFlagged:t}}},selectors:{allAnnotations:function(e){return e.annotations},annotationCount:Tu,annotationExists:function(e,t){return e.annotations.some((e=>e.id===t))},findAnnotationByID:function(e,t){return wu(e.annotations,t)},findIDsForTags:function(e,t){const n=[];return t.forEach((t=>{const r=xu(e.annotations,t);r&&r.id&&n.push(r.id)})),n},focusedAnnotations:Cu,highlightedAnnotations:Nu,isAnnotationFocused:function(e,t){return!0===e.focused[t]},isWaitingToAnchorAnnotations:Mu,newAnnotations:Lu,newHighlights:Iu,noteCount:zu,orphanCount:Ou,savedAnnotations:function(e){return e.annotations.filter((e=>!Lo(e)))}}});const Ru={SET_DEFAULT:function(e,t){return{[t.defaultKey]:t.value}}},Du=Ac(Ru);var Bu=ou({annotationPrivacy:null,focusedGroup:null},{namespace:"defaults",reducers:Ru,actionCreators:{setDefault:function(e,t){return{type:Du.SET_DEFAULT,defaultKey:e,value:t}}},selectors:{getDefault:function(e,t){return e[t]},getDefaults:function(e){return e}}});const Fu={UPDATE_DIRECT_LINKED_GROUP_FETCH_FAILED:(e,t)=>({directLinkedGroupFetchFailed:t.directLinkedGroupFetchFailed}),UPDATE_DIRECT_LINKED_GROUP_ID:(e,t)=>({directLinkedGroupId:t.directLinkedGroupId}),UPDATE_DIRECT_LINKED_ANNOTATION_ID:(e,t)=>({directLinkedAnnotationId:t.directLinkedAnnotationId}),CLEAR_DIRECT_LINKED_IDS:()=>({directLinkedAnnotationId:null,directLinkedGroupId:null}),CLEAR_SELECTION:function(){return{directLinkedAnnotationId:null,directLinkedGroupId:null,directLinkedGroupFetchFailed:!1}}},ju=Ac(Fu);var Hu=ou((function(e){return{directLinkedGroupId:e.group||null,directLinkedAnnotationId:e.annotations||null,directLinkedGroupFetchFailed:!1}}),{namespace:"directLinked",reducers:Fu,actionCreators:{setDirectLinkedGroupFetchFailed:function(){return{type:ju.UPDATE_DIRECT_LINKED_GROUP_FETCH_FAILED,directLinkedGroupFetchFailed:!0}},setDirectLinkedGroupId:function(e){return{type:ju.UPDATE_DIRECT_LINKED_GROUP_ID,directLinkedGroupId:e}},setDirectLinkedAnnotationId:function(e){return{type:ju.UPDATE_DIRECT_LINKED_ANNOTATION_ID,directLinkedAnnotationId:e}},clearDirectLinkedGroupFetchFailed:function(){return{type:ju.UPDATE_DIRECT_LINKED_GROUP_FETCH_FAILED,directLinkedGroupFetchFailed:!1}},clearDirectLinkedIds:function(){return{type:ju.CLEAR_DIRECT_LINKED_IDS}}},selectors:{directLinkedAnnotationId:function(e){return e.directLinkedAnnotationId},directLinkedGroupFetchFailed:function(e){return e.directLinkedGroupFetchFailed},directLinkedGroupId:function(e){return e.directLinkedGroupId}}});class Uu{constructor(e,t){this.annotation={id:e.id,$tag:e.$tag},this.isPrivate=t.isPrivate,this.tags=t.tags,this.text=t.text}match(e){return this.annotation.$tag&&e.$tag===this.annotation.$tag||this.annotation.id&&e.id===this.annotation.id}isEmpty(){return!this.text&&0===this.tags.length}}const qu={DISCARD_ALL_DRAFTS:function(){return[]},REMOVE_DRAFT:function(e,t){return e.filter((e=>!e.match(t.annotation)))},UPDATE_DRAFT:function(e,t){const n=e.filter((e=>!e.match(t.draft.annotation)));return n.push(t.draft),n}},$u=Ac(qu);function Gu(e){return{type:$u.REMOVE_DRAFT,annotation:e}}function Vu(e,t){const n=e;for(let e=0;e<n.length;e++){const r=n[e];if(r.match(t))return r}return null}function Wu(e,t){const n=Vu(e,t);return n?n.isEmpty()?null:n:null}const Yu=mu((e=>e),(e=>e.filter((e=>!e.annotation.id)).map((e=>e.annotation))));var Ku=ou([],{namespace:"drafts",reducers:qu,actionCreators:{createDraft:function(e,t){return{type:$u.UPDATE_DRAFT,draft:new Uu(e,t)}},deleteNewAndEmptyDrafts:function(){return(e,t)=>{const n=t().drafts.filter((e=>Lo(e.annotation)&&!Wu(t().drafts,e.annotation))).map((t=>(e(Gu(t.annotation)),t.annotation)));e(Au(n))}},discardAllDrafts:function(){return{type:$u.DISCARD_ALL_DRAFTS}},removeDraft:Gu},selectors:{countDrafts:function(e){return e.length},getDraft:Vu,getDraftIfNotEmpty:Wu,unsavedAnnotations:Yu}});function Xu(e){var t,n;return!!(null!==(t=e.user)&&void 0!==t&&t.username||null!==(n=e.user)&&void 0!==n&&n.userid)}function Ju(e){if(!Xu(e))return{};const t=e.user.username||e.user.userid||"";return{user:{value:t,display:e.user.displayName||t}}}const Zu={CHANGE_FOCUS_MODE_USER:function(e,t){return Xu({user:t.user})?{focusActive:!0,focusFilters:Ju({user:t.user})}:{focusActive:!1}},SET_FILTER:function(e,t){var n;const r={...e.filters,[t.filterName]:t.filterOption};return""===(null===(n=t.filterOption)||void 0===n?void 0:n.value)&&delete r[t.filterName],{filters:r}},SET_FILTER_QUERY:function(e,t){return{query:t.query}},SET_FOCUS_MODE:function(e,t){var n;return{focusActive:null!==(n=t.active)&&void 0!==n?n:!e.focusActive}},CLEAR_SELECTION:function(){return{filters:{},focusActive:!1,query:null}}},Qu=Ac(Zu);const eh=mu((e=>e.focusActive),(e=>e.focusFilters),((e,t)=>{var n;return{active:e,configured:!(null==t||!t.user),displayName:(null==t||null===(n=t.user)||void 0===n?void 0:n.display)||""}})),th=mu((e=>e.filters),(e=>e.focusActive),(e=>e.focusFilters),((e,t,n)=>t?{...n,...e}:{...e}));const nh=mu((e=>th(e)),(e=>{const t={};return Object.keys(e).forEach((n=>t[n]=e[n].value)),t}));var rh=ou((function(e){const t=e.focus||{};return{filters:{},focusActive:Xu(t),focusFilters:Ju(t),query:e.query||null}}),{namespace:"filters",reducers:Zu,actionCreators:{changeFocusModeUser:function(e){return{type:Qu.CHANGE_FOCUS_MODE_USER,user:e}},setFilter:function(e,t){return(n,r)=>{var o;null!==(o=r().filters.focusFilters)&&void 0!==o&&o[e]&&n({type:Qu.SET_FOCUS_MODE,active:!1}),n({type:Qu.SET_FILTER,filterName:e,filterOption:t})}},setFilterQuery:function(e){return{type:Qu.SET_FILTER_QUERY,query:e}},toggleFocusMode:function(e){return{type:Qu.SET_FOCUS_MODE,active:e}}},selectors:{filterQuery:function(e){return e.query},focusState:eh,getFilter:function(e,t){return th(e)[t]},getFilters:th,getFilterValues:nh,getFocusFilters:function(e){return e.focusFilters},hasAppliedFilter:function(e){return!(!e.query&&!Object.keys(th(e)).length)}}});const oh={CONNECT_FRAME:function(e,t){return[...e,t.frame]},DESTROY_FRAME:function(e,t){return e.filter((e=>e!==t.frame))},UPDATE_FRAME_ANNOTATION_FETCH_STATUS:function(e,t){return e.map((e=>e.uri&&e.uri===t.uri?Object.assign({},e,{isAnnotationFetchComplete:t.isAnnotationFetchComplete}):e))}},ih=Ac(oh);const ah=mu((e=>e),(e=>e.find((e=>!e.id))||null));const sh=pu(hu,gc)((e=>e.reduce(((e,t)=>e.concat(function(e){let t=[e.uri];return e.metadata&&e.metadata.documentFingerprint&&(t=e.metadata.link.map((e=>e.href))),e.metadata&&e.metadata.link&&e.metadata.link.forEach((e=>{e.href.startsWith("doi:")&&t.push(e.href)})),t}(t))),[])),(e=>e));var lh=ou([],{namespace:"frames",reducers:oh,actionCreators:{connectFrame:function(e){return{type:ih.CONNECT_FRAME,frame:e}},destroyFrame:function(e){return{type:ih.DESTROY_FRAME,frame:e}},updateFrameAnnotationFetchStatus:function(e,t){return{type:ih.UPDATE_FRAME_ANNOTATION_FETCH_STATUS,isAnnotationFetchComplete:t,uri:e}}},selectors:{frames:function(e){return e},mainFrame:ah,searchUris:sh}});const ch={features:{},preferences:{},userid:null};const uh={UPDATE_PROFILE:function(e,t){return{profile:{...t.profile}}}},hh=Ac(uh);var dh=ou((function(e){var t;return{defaultAuthority:null!==(t=null==e?void 0:e.authDomain)&&void 0!==t?t:"",profile:ch}}),{namespace:"session",reducers:uh,actionCreators:{updateProfile:function(e){return{type:hh.UPDATE_PROFILE,profile:e}}},selectors:{defaultAuthority:function(e){return e.defaultAuthority},hasFetchedProfile:function(e){return e.profile!==ch},isFeatureEnabled:function(e,t){return!!e.profile.features[t]},isLoggedIn:function(e){return null!==e.profile.userid},profile:function(e){return e.profile}}});const ph={FOCUS_GROUP(e,t){const n=e.groups.find((e=>e.id===t.id));return n?{focusedGroupId:t.id}:(console.error(`Attempted to focus group ${t.id} which is not loaded`),{})},LOAD_GROUPS(e,t){const n=t.groups;let r=e.focusedGroupId;return null!==e.focusedGroupId&&n.find((t=>t.id===e.focusedGroupId))||(r=n.length>0?n[0].id:null),{focusedGroupId:r,groups:t.groups}},CLEAR_GROUPS:()=>({focusedGroupId:null,groups:[]})},mh=Ac(ph);function fh(e){return e.groups}function gh(e,t){return e.groups.find((e=>e.id===t))}const vh=mu((e=>e.groups),(e=>e.filter((e=>!e.isMember&&e.isScopedToUri)))),yh=mu((e=>e.groups),(e=>e.filter((e=>e.isScopedToUri)))),_h=mu((e=>e.groups.groups),(e=>dh.selectors.isLoggedIn(e.session)),((e,t)=>t?e.filter((e=>e.isMember)):[])),bh=mu((e=>fh(e.groups)),(e=>_h(e)),(e=>vh(e.groups)),((e,t,n)=>e.filter((e=>!t.includes(e)&&!n.includes(e)))));var wh=ou({groups:[],focusedGroupId:null},{namespace:"groups",reducers:ph,actionCreators:{focusGroup:function(e){return{type:mh.FOCUS_GROUP,id:e}},loadGroups:function(e){return{type:mh.LOAD_GROUPS,groups:e}},clearGroups:function(){return{type:mh.CLEAR_GROUPS}}},selectors:{allGroups:fh,focusedGroup:function(e){return e.focusedGroupId?gh(e,e.focusedGroupId):null},focusedGroupId:function(e){return e.focusedGroupId},getFeaturedGroups:vh,getGroup:gh,getInScopeGroups:yh},rootSelectors:{getCurrentlyViewingGroups:bh,getMyGroups:_h}});const xh={UPDATE_LINKS:(e,t)=>({...t.links})},kh=Ac(xh);var Sh=ou(null,{namespace:"links",reducers:xh,actionCreators:{updateLinks:function(e){return{type:kh.UPDATE_LINKS,links:e}}},selectors:{getLink:function(e,t,n={}){if(!e)return"";const r=e[t];if(!r)throw new Error(`Unknown link "${t}"`);const{url:o,unusedParams:i}=nc(r,n),a=Object.keys(i);if(a.length>0)throw new Error(`Unused parameters: ${a.join(", ")}`);return o}}});const Ah={RECEIVE_REAL_TIME_UPDATES:(e,t)=>({pendingUpdates:{...t.pendingUpdates},pendingDeletions:{...t.pendingDeletions}}),CLEAR_PENDING_UPDATES:()=>({pendingUpdates:{},pendingDeletions:{}}),ADD_ANNOTATIONS(e,{annotations:t}){const n={...e.pendingUpdates};return t.forEach((e=>delete n[e.id])),{pendingUpdates:n}},REMOVE_ANNOTATIONS(e,{annotationsToRemove:t}){const n={...e.pendingUpdates},r={...e.pendingDeletions};return t.forEach((e=>{delete n[e.id],delete r[e.id]})),{pendingUpdates:n,pendingDeletions:r}},FOCUS_GROUP:()=>({pendingUpdates:{},pendingDeletions:{}})},Eh=Ac(Ah);const Th=mu((e=>[e.pendingUpdates,e.pendingDeletions]),(([e,t])=>Object.keys(e).length+Object.keys(t).length));var Ch=ou({pendingUpdates:{},pendingDeletions:{}},{namespace:"realTimeUpdates",reducers:Ah,actionCreators:{receiveRealTimeUpdates:function({updatedAnnotations:e=[],deletedAnnotations:t=[]}){return(n,r)=>{const o={...r().realTimeUpdates.pendingUpdates},i={...r().realTimeUpdates.pendingDeletions};e.forEach((e=>{const t=r().groups,n=r().route;e.group!==wh.selectors.focusedGroupId(t)&&"sidebar"===bu.selectors.route(n)||(o[e.id]=e)})),t.forEach((e=>{const t=e.id;delete o[t];const n=r().annotations;Pu.selectors.annotationExists(n,t)&&(i[t]=!0)})),n({type:Eh.RECEIVE_REAL_TIME_UPDATES,pendingUpdates:o,pendingDeletions:i})}},clearPendingUpdates:function(){return{type:Eh.CLEAR_PENDING_UPDATES}}},selectors:{hasPendingDeletion:function(e,t){return e.pendingDeletions.hasOwnProperty(t)},pendingDeletions:function(e){return e.pendingDeletions},pendingUpdates:function(e){return e.pendingUpdates},pendingUpdateCount:Th}});const Nh={annotation:"Location",note:"Oldest",orphan:"Location"};function Mh(e){const t={};return e.annotations&&!e.query&&(t[e.annotations]=!0),t}const Lh=(e,t)=>t===e?{}:{selectedTab:e,sortKey:Nh[e]},Ih={CLEAR_SELECTION:function(){return{forcedVisible:{},selected:{}}},SELECT_ANNOTATIONS:function(e,t){return{selected:t.selection}},SELECT_TAB:function(e,t){return Lh(t.tab,e.selectedTab)},SET_EXPANDED:function(e,t){const n={...e.expanded};return n[t.id]=t.expanded,{expanded:n}},SET_FORCED_VISIBLE:function(e,t){return{forcedVisible:{...e.forcedVisible,[t.id]:t.visible}}},SET_SORT_KEY:function(e,t){return{sortKey:t.key}},TOGGLE_SELECTED_ANNOTATIONS:function(e,t){const n={...e.selected};return t.toggleIds.forEach((e=>{n[e]=!n[e]})),{selected:n}},ADD_ANNOTATIONS(e,t){const n=t.annotations.filter((e=>!Mo(e))),r=fu(t.annotations,Bo)===n.length;return 0===t.currentAnnotationCount&&r?Lh("note",e.selectedTab):{}},CHANGE_FOCUS_MODE_USER:function(){return{forcedVisible:{},selected:{}}},SET_FILTER:function(){return{forcedVisible:{},selected:{},expanded:{}}},SET_FILTER_QUERY:function(){return{forcedVisible:{},selected:{},expanded:{}}},SET_FOCUS_MODE:function(){return{forcedVisible:{},selected:{}}},REMOVE_ANNOTATIONS:function(e,t){let n=e.selectedTab;"orphan"===n&&0===fu(t.remainingAnnotations,Do)&&(n="annotation");const r=e=>(t.annotationsToRemove.forEach((t=>{t.id&&delete e[t.id],t.$tag&&delete e[t.$tag]})),e);return{...Lh(n,e.selectedTab),expanded:r({...e.expanded}),forcedVisible:r({...e.forcedVisible}),selected:r({...e.selected})}}},zh=Ac(Ih);function Oh(e){return e.expanded}const Ph=mu((e=>e.forcedVisible),(e=>vu(e))),Rh=mu((e=>e.selected),(e=>vu(e).length>0)),Dh=mu((e=>e.selected),(e=>vu(e)));function Bh(e){return e.selectedTab}const Fh=mu((e=>e),(e=>({expanded:Oh(e),forcedVisible:Ph(e),selected:Dh(e),sortKey:jh(e),selectedTab:Bh(e)})));function jh(e){return e.sortKey}const Hh=mu((e=>e.selectedTab),(e=>{const t=["Newest","Oldest"];return"note"!==e&&t.push("Location"),t}));var Uh=ou((function(e){return{selected:Mh(e),expanded:Mh(e)||{},forcedVisible:{},selectedTab:"annotation",sortKey:Nh.annotation}}),{namespace:"selection",reducers:Ih,actionCreators:{clearSelection:function(){return{type:zh.CLEAR_SELECTION}},selectAnnotations:function(e){return t=>{t({type:zh.CLEAR_SELECTION}),t({type:zh.SELECT_ANNOTATIONS,selection:gu(e)})}},selectTab:function(e){return{type:zh.SELECT_TAB,tab:e}},setExpanded:function(e,t){return{type:zh.SET_EXPANDED,id:e,expanded:t}},setForcedVisible:function(e,t){return{type:zh.SET_FORCED_VISIBLE,id:e,visible:t}},setSortKey:function(e){return{type:zh.SET_SORT_KEY,key:e}},toggleSelectedAnnotations:function(e){return{type:zh.TOGGLE_SELECTED_ANNOTATIONS,toggleIds:e}}},selectors:{expandedMap:Oh,forcedVisibleThreads:Ph,hasSelectedAnnotations:Rh,selectedAnnotations:Dh,selectedTab:Bh,selectionState:Fh,sortKey:jh,sortKeys:Hh}});const qh={OPEN_SIDEBAR_PANEL:function(e,t){return{activePanelName:t.panelName}},CLOSE_SIDEBAR_PANEL:function(e,t){let n=e.activePanelName;return t.panelName===n&&(n=null),{activePanelName:n}},TOGGLE_SIDEBAR_PANEL:function(e,t){let n;const r=e.activePanelName===t.panelName,o=void 0!==t.panelState?t.panelState:!r;return n=o?t.panelName:r&&!o?null:e.activePanelName,{activePanelName:n}}},$h=Ac(qh);var Gh=ou({activePanelName:null},{namespace:"sidebarPanels",reducers:qh,actionCreators:{openSidebarPanel:function(e){return{type:$h.OPEN_SIDEBAR_PANEL,panelName:e}},closeSidebarPanel:function(e){return{type:$h.CLOSE_SIDEBAR_PANEL,panelName:e}},toggleSidebarPanel:function(e,t){return{type:$h.TOGGLE_SIDEBAR_PANEL,panelName:e,panelState:t}}},selectors:{isSidebarPanelOpen:function(e,t){return e.activePanelName===t}}});const Vh={ADD_MESSAGE:function(e,t){return{messages:e.messages.concat({...t.message})}},REMOVE_MESSAGE:function(e,t){return{messages:e.messages.filter((e=>e.id!==t.id))}},UPDATE_MESSAGE:function(e,t){return{messages:e.messages.map((e=>e.id&&e.id===t.message.id?{...t.message}:e))}}},Wh=Ac(Vh);var Yh=ou({messages:[]},{namespace:"toastMessages",reducers:Vh,actionCreators:{addToastMessage:function(e){return{type:Wh.ADD_MESSAGE,message:e}},removeToastMessage:function(e){return{type:Wh.REMOVE_MESSAGE,id:e}},updateToastMessage:function(e){return{type:Wh.UPDATE_MESSAGE,message:e}}},selectors:{getToastMessage:function(e,t){return e.messages.find((e=>e.id===t))},getToastMessages:function(e){return e.messages},hasToastMessage:function(e,t,n){return e.messages.some((e=>e.type===t&&e.message===n))}}});const Kh={SET_SIDEBAR_OPENED:(e,t)=>!0===t.opened?{sidebarHasOpened:!0}:{}},Xh=Ac(Kh);var Jh=ou({sidebarHasOpened:!1},{namespace:"viewer",reducers:Kh,actionCreators:{setSidebarOpened:function(e){return{type:Xh.SET_SIDEBAR_OPENED,opened:e}}},selectors:{hasSidebarOpened:function(e){return e.sidebarHasOpened}}});function Zh(e){return ru([lu,Pu,Bu,Hu,Ku,rh,lh,Sh,wh,Ch,bu,Uh,dh,Gh,Yh,Jh],[e],[iu])}Zh.$inject=["settings"];class Qh{constructor(){this._providers=new Map,this._instances=new Map,this._constructing=new Set}get(e){if(this._instances.has(e))return this._instances.get(e);const t=this._providers.get(e);if(!t)throw new Error(`"${e}" is not registered`);if("value"in t)return this._instances.set(e,t.value),t.value;if(this._constructing.has(e))throw new Error(`Encountered a circular dependency when constructing "${e}"`);this._constructing.add(e);try{const n=[],r="class"in t&&t.class.$inject||"factory"in t&&t.factory.$inject||[];for(const t of r)try{n.push(this.get(t))}catch(n){const r=new Error(`Failed to construct dependency "${t}" of "${e}": ${n.message}`);throw r.cause=n,r}let o;if(t.class)o=new t.class(...n);else{o=(0,t.factory)(...n)}return this._instances.set(e,o),o}finally{this._constructing.delete(e)}}register(e,t){if("function"==typeof t)t={class:t};else if(!function(e){return"object"==typeof e&&null!==e&&("value"in e||"function"==typeof e.class||"function"==typeof e.factory)}(t))throw new Error(`Invalid provider for "${e}"`);return this._providers.set(e,t),this}run(e){const t="Injector.run";this.register(t,{factory:e});try{return this.get(t)}finally{this._instances.delete(t),this._providers.delete(t)}}}const ed=function(t){for(var n={},r=t.querySelectorAll("script.js-hypothesis-config"),o=0;o<r.length;o++){var i=void 0;try{i=JSON.parse(r[o].textContent||"")}catch(e){console.warn("Could not parse settings from js-hypothesis-config tags",e),i={}}e(n,i)}return n}(document);function td(e,t){e.setClientId(t.clientId)}function nd(e,t,n){e.load(),t.load(),n.sync()}function rd(e,t,n,r){e.init(),t.init(),n.init(),r.init()}function od(e,t){"sidebar"===t.route()&&e.connect()}ed.sentry&&function(e){const t=function(){try{const e=document.currentScript;return new URL(e.src).origin}catch(e){return null}}(),n=t?[t]:void 0;Dn({dsn:e.dsn,environment:e.environment,allowUrls:n,ignoreErrors:["Network request failed","Object Not Found Matching Id"],release:"1.896.0",beforeSend:(e,t)=>{if(Bn>=5)return z("Client-side Sentry quota reached. No further Sentry events will be sent"),null;++Bn;try{const n=t&&t.originalException;n instanceof Event&&Object.assign(e.extra,{type:n.type,detail:n.detail,isTrusted:n.isTrusted})}catch(e){}return e}}),zt("document_url",document.referrer),zt("loaded_scripts",Array.from(document.querySelectorAll("script")).filter((e=>!e.type||e.type.match(/javascript|module/))).map((e=>e.src||"<inline>")))}(ed.sentry),function(e){e.addEventListener("click",(e=>{const t=e.target;if("A"===t.tagName){const e=t;"_blank"===e.target&&(e.rel="noopener")}}))}(document.body),function(e=t){let n=!1;try{document.createElement("div").dir="auto"}catch(e){n=!0}if(n){const t=e.vnode;e.vnode=e=>{"string"==typeof e.type&&"dir"in e.props&&"auto"===e.props.dir&&(e.props.dir=""),t&&t(e)}}}(),td.$inject=["api","streamer"],nd.$inject=["groups","session","router"],rd.$inject=["autosaveService","features","persistedDefaults","serviceURL"],od.$inject=["frameSync","store"],Nr(to);const id=document.querySelector("hypothesis-app");!function(e=window){e.addEventListener("message",R)}(),async function(e,t=window){const n=U(window),r=n.requestConfigFromFrame;if(!r)return W(e,n);if("string"==typeof r)return await V(e,t);if("number"==typeof r.ancestorLevel&&"string"==typeof r.origin){const o=function(e,t=window){let n=t;for(let t=0;t<e;t++){if(n===n.top)throw new Error("The target parent frame has exceeded the ancestor tree. Try reducing the `requestConfigFromFrame.ancestorLevel` value in the `hypothesisConfig`");n=n.parent}return n}(r.ancestorLevel,t);return{...await Y(e,o,r.origin),...n.group?{group:n.group}:{}}}throw new Error("Improper `requestConfigFromFrame` object. Both `ancestorLevel` and `origin` need to be specified")}(ed).then((e=>{!function(e,t){const n=new Qh;n.register("annotationsService",Ql).register("api",oc).register("apiRoutes",hc).register("auth",mc).register("autosaveService",fc).register("features",yc).register("frameSync",xc).register("groups",Cc).register("loadAnnotationsService",Nc).register("localStorage",Lc).register("persistedDefaults",zc).register("router",Oc).register("serviceURL",Pc).register("session",Rc).register("streamer",Fc).register("streamFilter",Dc).register("tags",jc).register("threadsService",Hc).register("toastMessenger",Uc).register("store",{factory:Zh}),n.register("$window",{value:window}).register("settings",{value:e}),n.run(rd),n.run(td),n.run(nd),n.run(P),n.run(od),L(Er(lo.Provider,{value:n,children:Er(Jl,{})}),t)}(e,id)})).catch((e=>function(e,t){console.error("Failed to start Hypothesis client: ",e),L(Er(Zl,{error:e}),t)}(e,id)));
31
31
  //# sourceMappingURL=sidebar.bundle.js.map