whoami7 - Manager
:
/
home
/
rattkxnv
/
fitwithiit.com
/
wp-content
/
plugins
/
table-of-contents-block
/
dist
/
Upload File:
files >> //home/rattkxnv/fitwithiit.com/wp-content/plugins/table-of-contents-block/dist/modules.js
(()=>{var e,t={174:(e,t,a)=>{"use strict";function i(e){return i="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},i(e)}function r(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var r=a.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:String(t)}function n(e,t,a){return(t=r(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}a.r(t),a.d(t,{AdvancedControls:()=>fw,BorderShadowControl:()=>ee,ColorControl:()=>g,DynamicInputControl:()=>mr,DynamicInputValueHandler:()=>pr,EBDisplayIcon:()=>Br,EBIconPicker:()=>Dr,ResetControl:()=>p,ResponsiveDimensionsControl:()=>J,ResponsiveRangeController:()=>ae,StyleComponent:()=>q,TypographyDropdown:()=>hr,UnitControl:()=>Y,duplicateBlockIdFix:()=>H,ebConditionalRegisterBlockType:()=>$,generateBorderShadowAttributes:()=>P,generateBorderShadowStyles:()=>N,generateDimensionsAttributes:()=>C,generateDimensionsControlStyles:()=>M,generateResponsiveRangeAttributes:()=>D,generateResponsiveRangeStyles:()=>B,generateTypographyAttributes:()=>S,generateTypographyStyles:()=>k,softMinifyCssStrings:()=>L});var s=a(609);const o=window.wp.i18n,l=window.wp.components;function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function f(e,t){if(e){if("string"==typeof e)return c(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?c(e,t):void 0}}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,s,o=[],l=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(i=n.call(a)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const h=window.wp.element,d=window.wp.data,g=function(e){var t=e.label,a=e.color,i=e.onChange,r=e.defaultColor,n=e.isGradient,o=void 0!==n&&n,c=u((0,h.useState)(null),2),f=c[0],g=c[1];(0,h.useEffect)((function(){i(f)}),[f]),(0,h.useEffect)((function(){g(a||r)}),[]);var p=(0,d.select)("core/block-editor").getSettings().colors||!1,m=[],y=function(e){var t=[];return e&&0!==e.length?(e.map((function(e){t.push({color:"var(".concat(null==e?void 0:e.var,")"),name:null==e?void 0:e.name,slug:null==e?void 0:e.slug})})),t):t},v=u((0,h.useState)(!1),2),b=v[0],w=v[1];(0,h.useEffect)((function(){(0,d.select)("essential-blocks")&&w(!0)}),[]);var S=b?y((0,d.select)("essential-blocks").getGlobalColors()):void 0,k=b?y((0,d.select)("essential-blocks").getCustomColors()):void 0,O=b?y((0,d.select)("essential-blocks").getGradientColors()):void 0,x=b?y((0,d.select)("essential-blocks").getCustomGradientColors()):void 0;return(0,s.createElement)(l.BaseControl,{label:t||"",className:"eb-color-base"},(0,s.createElement)(l.Dropdown,{contentClassName:"eb-color-picker",renderToggle:function(e){e.isOpen;var t=e.onToggle;return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.ColorIndicator,{className:"eb-color-control-indecator",colorValue:f,onClick:t,"aria-label":f||"default"}))},renderContent:function(){return(0,s.createElement)("div",{className:"eb-color-picker-content ".concat(o?"":"eb-gradient-picker-disabled")},(0,s.createElement)(l.TabPanel,{className:"eb-colorpicker-tab-panel",activeClass:"active-tab",tabs:[{name:"solid",title:"Solid",className:"eb-tab solid"},{name:"gradient",title:"Gradient",className:"eb-tab gradient"}]},(function(e){return(0,s.createElement)("div",{className:"eb-tab-controls"+e.name},"solid"===e.name&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.ColorPicker,{color:f,onChangeComplete:function(e){var t=e.rgb;g("rgba(".concat(t.r,",").concat(t.g,",").concat(t.b,",").concat(t.a,")"))}}),S&&S.length>0&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.PanelRow,null,"GLOBAL"),(0,s.createElement)(l.ColorPalette,{colors:S,value:a,disableCustomColors:!0,clearable:!1,isGradientColor:!0,onChange:function(e){return g(e)}})),p&&p.length>0&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.PanelRow,null,"THEME"),(0,s.createElement)(l.ColorPalette,{colors:p,value:a,disableCustomColors:!0,clearable:!1,onChange:function(e){return g(e)}})),k&&k.length>0&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.PanelRow,null,"Custom Colors"),(0,s.createElement)(l.ColorPalette,{colors:k,value:a,disableCustomColors:!0,clearable:!1,isGradientColor:!0,onChange:function(e){return g(e)}}))),"gradient"===e.name&&o&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.PanelRow,null,"Gradient Colors"),(0,s.createElement)(l.GradientPicker,{__nextHasNoMargin:!0,value:a,onChange:function(e){g(e)},asButtons:!0,clearable:!0,gradients:m||[]}),O&&O.length>0&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.PanelRow,null,"Global Gradient Colors"),(0,s.createElement)("div",{className:"eb-colorpicker-gradient-color-list__global"},O.map((function(e,t){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.ColorIndicator,{className:"eb-colorpicker-gradient-color ".concat(a===e.color?"current":""),colorValue:null==e?void 0:e.color,onClick:function(){return g(e.color)}}))})))),x&&x.length>0&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.PanelRow,null,"Custom Gradient Colors"),(0,s.createElement)("div",{className:"eb-colorpicker-gradient-color-list__global"},x.map((function(e,t){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.ColorIndicator,{className:"eb-colorpicker-gradient-color ".concat(a===e.color?"current":""),colorValue:null==e?void 0:e.color,onClick:function(){return g(e.color)}}))}))))))})))}}),(0,s.createElement)(l.Button,{isSmall:!0,className:"eb-color-undo ".concat(!f&&"eb-disable-reset"),icon:"image-rotate",style:{transform:"scaleX(-1) rotate(90deg)"},onClick:function(){g(r)},disabled:!f}))},p=function(e){var t=e.onReset,a=e.children;return(0,s.createElement)("div",{className:"eb-range-controller-container"},a,(0,s.createElement)("button",{className:"eb-range-reset-button",onClick:t},(0,s.createElement)("span",{className:"dashicon dashicons dashicons-image-rotate"})))},m=window.wp.blocks;var y=function(e){return e||0===e},v={ABeeZee:{family:"ABeeZee",category:"sans-serif",variants:["regular","italic"]},"ADLaM-Display":{family:"ADLaM Display",category:"display",variants:["regular"]},"AR-One-Sans":{family:"AR One Sans",category:"sans-serif",variants:["regular","500","600","700"]},Abel:{family:"Abel",category:"sans-serif",variants:["regular"]},"Abhaya-Libre":{family:"Abhaya Libre",category:"serif",variants:["regular","500","600","700","800"]},Aboreto:{family:"Aboreto",category:"display",variants:["regular"]},"Abril-Fatface":{family:"Abril Fatface",category:"display",variants:["regular"]},"Abyssinica-SIL":{family:"Abyssinica SIL",category:"serif",variants:["regular"]},Aclonica:{family:"Aclonica",category:"sans-serif",variants:["regular"]},Acme:{family:"Acme",category:"sans-serif",variants:["regular"]},Actor:{family:"Actor",category:"sans-serif",variants:["regular"]},Adamina:{family:"Adamina",category:"serif",variants:["regular"]},"Advent-Pro":{family:"Advent Pro",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Afacad:{family:"Afacad",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},Agbalumo:{family:"Agbalumo",category:"display",variants:["regular"]},Agdasima:{family:"Agdasima",category:"sans-serif",variants:["regular","700"]},"Aguafina-Script":{family:"Aguafina Script",category:"handwriting",variants:["regular"]},Akatab:{family:"Akatab",category:"sans-serif",variants:["regular","500","600","700","800","900"]},"Akaya-Kanadaka":{family:"Akaya Kanadaka",category:"display",variants:["regular"]},"Akaya-Telivigala":{family:"Akaya Telivigala",category:"display",variants:["regular"]},Akronim:{family:"Akronim",category:"display",variants:["regular"]},Akshar:{family:"Akshar",category:"sans-serif",variants:["300","regular","500","600","700"]},Aladin:{family:"Aladin",category:"display",variants:["regular"]},Alata:{family:"Alata",category:"sans-serif",variants:["regular"]},Alatsi:{family:"Alatsi",category:"sans-serif",variants:["regular"]},"Albert-Sans":{family:"Albert Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Aldrich:{family:"Aldrich",category:"sans-serif",variants:["regular"]},Alef:{family:"Alef",category:"sans-serif",variants:["regular","700"]},Alegreya:{family:"Alegreya",category:"serif",variants:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"]},"Alegreya-SC":{family:"Alegreya SC",category:"serif",variants:["regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},"Alegreya-Sans":{family:"Alegreya Sans",category:"sans-serif",variants:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},"Alegreya-Sans-SC":{family:"Alegreya Sans SC",category:"sans-serif",variants:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","800","800italic","900","900italic"]},Aleo:{family:"Aleo",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Alex-Brush":{family:"Alex Brush",category:"handwriting",variants:["regular"]},Alexandria:{family:"Alexandria",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Alfa-Slab-One":{family:"Alfa Slab One",category:"display",variants:["regular"]},Alice:{family:"Alice",category:"serif",variants:["regular"]},Alike:{family:"Alike",category:"serif",variants:["regular"]},"Alike-Angular":{family:"Alike Angular",category:"serif",variants:["regular"]},Alkalami:{family:"Alkalami",category:"serif",variants:["regular"]},Alkatra:{family:"Alkatra",category:"display",variants:["regular","500","600","700"]},Allan:{family:"Allan",category:"display",variants:["regular","700"]},Allerta:{family:"Allerta",category:"sans-serif",variants:["regular"]},"Allerta-Stencil":{family:"Allerta Stencil",category:"sans-serif",variants:["regular"]},Allison:{family:"Allison",category:"handwriting",variants:["regular"]},Allura:{family:"Allura",category:"handwriting",variants:["regular"]},Almarai:{family:"Almarai",category:"sans-serif",variants:["300","regular","700","800"]},Almendra:{family:"Almendra",category:"serif",variants:["regular","italic","700","700italic"]},"Almendra-Display":{family:"Almendra Display",category:"display",variants:["regular"]},"Almendra-SC":{family:"Almendra SC",category:"serif",variants:["regular"]},"Alumni-Sans":{family:"Alumni Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Alumni-Sans-Collegiate-One":{family:"Alumni Sans Collegiate One",category:"sans-serif",variants:["regular","italic"]},"Alumni-Sans-Inline-One":{family:"Alumni Sans Inline One",category:"display",variants:["regular","italic"]},"Alumni-Sans-Pinstripe":{family:"Alumni Sans Pinstripe",category:"sans-serif",variants:["regular","italic"]},Amarante:{family:"Amarante",category:"display",variants:["regular"]},Amaranth:{family:"Amaranth",category:"sans-serif",variants:["regular","italic","700","700italic"]},"Amatic-SC":{family:"Amatic SC",category:"handwriting",variants:["regular","700"]},Amethysta:{family:"Amethysta",category:"serif",variants:["regular"]},Amiko:{family:"Amiko",category:"sans-serif",variants:["regular","600","700"]},Amiri:{family:"Amiri",category:"serif",variants:["regular","italic","700","700italic"]},"Amiri-Quran":{family:"Amiri Quran",category:"serif",variants:["regular"]},Amita:{family:"Amita",category:"handwriting",variants:["regular","700"]},Anaheim:{family:"Anaheim",category:"sans-serif",variants:["regular"]},"Andada-Pro":{family:"Andada Pro",category:"serif",variants:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"]},Andika:{family:"Andika",category:"sans-serif",variants:["regular","italic","700","700italic"]},"Anek-Bangla":{family:"Anek Bangla",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Devanagari":{family:"Anek Devanagari",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Gujarati":{family:"Anek Gujarati",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Gurmukhi":{family:"Anek Gurmukhi",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Kannada":{family:"Anek Kannada",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Latin":{family:"Anek Latin",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Malayalam":{family:"Anek Malayalam",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Odia":{family:"Anek Odia",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Tamil":{family:"Anek Tamil",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Anek-Telugu":{family:"Anek Telugu",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},Angkor:{family:"Angkor",category:"display",variants:["regular"]},"Annapurna-SIL":{family:"Annapurna SIL",category:"serif",variants:["regular","700"]},"Annie-Use-Your-Telescope":{family:"Annie Use Your Telescope",category:"handwriting",variants:["regular"]},"Anonymous-Pro":{family:"Anonymous Pro",category:"monospace",variants:["regular","italic","700","700italic"]},Anta:{family:"Anta",category:"sans-serif",variants:["regular"]},Antic:{family:"Antic",category:"sans-serif",variants:["regular"]},"Antic-Didone":{family:"Antic Didone",category:"serif",variants:["regular"]},"Antic-Slab":{family:"Antic Slab",category:"serif",variants:["regular"]},Anton:{family:"Anton",category:"sans-serif",variants:["regular"]},Antonio:{family:"Antonio",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},Anuphan:{family:"Anuphan",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},Anybody:{family:"Anybody",category:"display",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Aoboshi-One":{family:"Aoboshi One",category:"serif",variants:["regular"]},Arapey:{family:"Arapey",category:"serif",variants:["regular","italic"]},Arbutus:{family:"Arbutus",category:"serif",variants:["regular"]},"Arbutus-Slab":{family:"Arbutus Slab",category:"serif",variants:["regular"]},"Architects-Daughter":{family:"Architects Daughter",category:"handwriting",variants:["regular"]},Archivo:{family:"Archivo",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Archivo-Black":{family:"Archivo Black",category:"sans-serif",variants:["regular"]},"Archivo-Narrow":{family:"Archivo Narrow",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Are-You-Serious":{family:"Are You Serious",category:"handwriting",variants:["regular"]},"Aref-Ruqaa":{family:"Aref Ruqaa",category:"serif",variants:["regular","700"]},"Aref-Ruqaa-Ink":{family:"Aref Ruqaa Ink",category:"serif",variants:["regular","700"]},Arima:{family:"Arima",category:"display",variants:["100","200","300","regular","500","600","700"]},Arimo:{family:"Arimo",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},Arizonia:{family:"Arizonia",category:"handwriting",variants:["regular"]},Armata:{family:"Armata",category:"sans-serif",variants:["regular"]},Arsenal:{family:"Arsenal",category:"sans-serif",variants:["regular","italic","700","700italic"]},Artifika:{family:"Artifika",category:"serif",variants:["regular"]},Arvo:{family:"Arvo",category:"serif",variants:["regular","italic","700","700italic"]},Arya:{family:"Arya",category:"sans-serif",variants:["regular","700"]},Asap:{family:"Asap",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Asap-Condensed":{family:"Asap Condensed",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},Asar:{family:"Asar",category:"serif",variants:["regular"]},Asset:{family:"Asset",category:"display",variants:["regular"]},Assistant:{family:"Assistant",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},Astloch:{family:"Astloch",category:"display",variants:["regular","700"]},Asul:{family:"Asul",category:"sans-serif",variants:["regular","700"]},Athiti:{family:"Athiti",category:"sans-serif",variants:["200","300","regular","500","600","700"]},"Atkinson-Hyperlegible":{family:"Atkinson Hyperlegible",category:"sans-serif",variants:["regular","italic","700","700italic"]},Atma:{family:"Atma",category:"display",variants:["300","regular","500","600","700"]},"Atomic-Age":{family:"Atomic Age",category:"display",variants:["regular"]},Aubrey:{family:"Aubrey",category:"display",variants:["regular"]},Audiowide:{family:"Audiowide",category:"display",variants:["regular"]},"Autour-One":{family:"Autour One",category:"display",variants:["regular"]},Average:{family:"Average",category:"serif",variants:["regular"]},"Average-Sans":{family:"Average Sans",category:"sans-serif",variants:["regular"]},"Averia-Gruesa-Libre":{family:"Averia Gruesa Libre",category:"display",variants:["regular"]},"Averia-Libre":{family:"Averia Libre",category:"display",variants:["300","300italic","regular","italic","700","700italic"]},"Averia-Sans-Libre":{family:"Averia Sans Libre",category:"display",variants:["300","300italic","regular","italic","700","700italic"]},"Averia-Serif-Libre":{family:"Averia Serif Libre",category:"display",variants:["300","300italic","regular","italic","700","700italic"]},"Azeret-Mono":{family:"Azeret Mono",category:"monospace",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},B612:{family:"B612",category:"sans-serif",variants:["regular","italic","700","700italic"]},"B612-Mono":{family:"B612 Mono",category:"monospace",variants:["regular","italic","700","700italic"]},"BIZ-UDGothic":{family:"BIZ UDGothic",category:"sans-serif",variants:["regular","700"]},"BIZ-UDMincho":{family:"BIZ UDMincho",category:"serif",variants:["regular","700"]},"BIZ-UDPGothic":{family:"BIZ UDPGothic",category:"sans-serif",variants:["regular","700"]},"BIZ-UDPMincho":{family:"BIZ UDPMincho",category:"serif",variants:["regular","700"]},Babylonica:{family:"Babylonica",category:"handwriting",variants:["regular"]},"Bacasime-Antique":{family:"Bacasime Antique",category:"serif",variants:["regular"]},"Bad-Script":{family:"Bad Script",category:"handwriting",variants:["regular"]},"Bagel-Fat-One":{family:"Bagel Fat One",category:"display",variants:["regular"]},Bahiana:{family:"Bahiana",category:"display",variants:["regular"]},Bahianita:{family:"Bahianita",category:"display",variants:["regular"]},"Bai-Jamjuree":{family:"Bai Jamjuree",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"Bakbak-One":{family:"Bakbak One",category:"display",variants:["regular"]},Ballet:{family:"Ballet",category:"handwriting",variants:["regular"]},"Baloo-2":{family:"Baloo 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Bhai-2":{family:"Baloo Bhai 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Bhaijaan-2":{family:"Baloo Bhaijaan 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Bhaina-2":{family:"Baloo Bhaina 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Chettan-2":{family:"Baloo Chettan 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Da-2":{family:"Baloo Da 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Paaji-2":{family:"Baloo Paaji 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Tamma-2":{family:"Baloo Tamma 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Tammudu-2":{family:"Baloo Tammudu 2",category:"display",variants:["regular","500","600","700","800"]},"Baloo-Thambi-2":{family:"Baloo Thambi 2",category:"display",variants:["regular","500","600","700","800"]},"Balsamiq-Sans":{family:"Balsamiq Sans",category:"display",variants:["regular","italic","700","700italic"]},Balthazar:{family:"Balthazar",category:"serif",variants:["regular"]},Bangers:{family:"Bangers",category:"display",variants:["regular"]},Barlow:{family:"Barlow",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Barlow-Condensed":{family:"Barlow Condensed",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Barlow-Semi-Condensed":{family:"Barlow Semi Condensed",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},Barriecito:{family:"Barriecito",category:"display",variants:["regular"]},Barrio:{family:"Barrio",category:"display",variants:["regular"]},Basic:{family:"Basic",category:"sans-serif",variants:["regular"]},Baskervville:{family:"Baskervville",category:"serif",variants:["regular","italic"]},Battambang:{family:"Battambang",category:"display",variants:["100","300","regular","700","900"]},Baumans:{family:"Baumans",category:"display",variants:["regular"]},Bayon:{family:"Bayon",category:"sans-serif",variants:["regular"]},"Be-Vietnam-Pro":{family:"Be Vietnam Pro",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Beau-Rivage":{family:"Beau Rivage",category:"handwriting",variants:["regular"]},"Bebas-Neue":{family:"Bebas Neue",category:"sans-serif",variants:["regular"]},Belanosima:{family:"Belanosima",category:"sans-serif",variants:["regular","600","700"]},Belgrano:{family:"Belgrano",category:"serif",variants:["regular"]},Bellefair:{family:"Bellefair",category:"serif",variants:["regular"]},Belleza:{family:"Belleza",category:"sans-serif",variants:["regular"]},Bellota:{family:"Bellota",category:"display",variants:["300","300italic","regular","italic","700","700italic"]},"Bellota-Text":{family:"Bellota Text",category:"display",variants:["300","300italic","regular","italic","700","700italic"]},BenchNine:{family:"BenchNine",category:"sans-serif",variants:["300","regular","700"]},Benne:{family:"Benne",category:"serif",variants:["regular"]},Bentham:{family:"Bentham",category:"serif",variants:["regular"]},"Berkshire-Swash":{family:"Berkshire Swash",category:"handwriting",variants:["regular"]},Besley:{family:"Besley",category:"serif",variants:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"]},"Beth-Ellen":{family:"Beth Ellen",category:"handwriting",variants:["regular"]},Bevan:{family:"Bevan",category:"serif",variants:["regular","italic"]},"BhuTuka-Expanded-One":{family:"BhuTuka Expanded One",category:"serif",variants:["regular"]},"Big-Shoulders-Display":{family:"Big Shoulders Display",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Big-Shoulders-Inline-Display":{family:"Big Shoulders Inline Display",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Big-Shoulders-Inline-Text":{family:"Big Shoulders Inline Text",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Big-Shoulders-Stencil-Display":{family:"Big Shoulders Stencil Display",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Big-Shoulders-Stencil-Text":{family:"Big Shoulders Stencil Text",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Big-Shoulders-Text":{family:"Big Shoulders Text",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Bigelow-Rules":{family:"Bigelow Rules",category:"display",variants:["regular"]},"Bigshot-One":{family:"Bigshot One",category:"display",variants:["regular"]},Bilbo:{family:"Bilbo",category:"handwriting",variants:["regular"]},"Bilbo-Swash-Caps":{family:"Bilbo Swash Caps",category:"handwriting",variants:["regular"]},BioRhyme:{family:"BioRhyme",category:"serif",variants:["200","300","regular","500","600","700","800"]},"BioRhyme-Expanded":{family:"BioRhyme Expanded",category:"serif",variants:["200","300","regular","700","800"]},Birthstone:{family:"Birthstone",category:"handwriting",variants:["regular"]},"Birthstone-Bounce":{family:"Birthstone Bounce",category:"handwriting",variants:["regular","500"]},Biryani:{family:"Biryani",category:"sans-serif",variants:["200","300","regular","600","700","800","900"]},Bitter:{family:"Bitter",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Black-And-White-Picture":{family:"Black And White Picture",category:"display",variants:["regular"]},"Black-Han-Sans":{family:"Black Han Sans",category:"sans-serif",variants:["regular"]},"Black-Ops-One":{family:"Black Ops One",category:"display",variants:["regular"]},Blaka:{family:"Blaka",category:"display",variants:["regular"]},"Blaka-Hollow":{family:"Blaka Hollow",category:"display",variants:["regular"]},"Blaka-Ink":{family:"Blaka Ink",category:"display",variants:["regular"]},Blinker:{family:"Blinker",category:"sans-serif",variants:["100","200","300","regular","600","700","800","900"]},"Bodoni-Moda":{family:"Bodoni Moda",category:"serif",variants:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"]},Bokor:{family:"Bokor",category:"display",variants:["regular"]},"Bona-Nova":{family:"Bona Nova",category:"serif",variants:["regular","italic","700"]},Bonbon:{family:"Bonbon",category:"handwriting",variants:["regular"]},"Bonheur-Royale":{family:"Bonheur Royale",category:"handwriting",variants:["regular"]},Boogaloo:{family:"Boogaloo",category:"display",variants:["regular"]},Borel:{family:"Borel",category:"handwriting",variants:["regular"]},"Bowlby-One":{family:"Bowlby One",category:"display",variants:["regular"]},"Bowlby-One-SC":{family:"Bowlby One SC",category:"display",variants:["regular"]},"Braah-One":{family:"Braah One",category:"sans-serif",variants:["regular"]},Brawler:{family:"Brawler",category:"serif",variants:["regular","700"]},"Bree-Serif":{family:"Bree Serif",category:"serif",variants:["regular"]},"Bricolage-Grotesque":{family:"Bricolage Grotesque",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},"Bruno-Ace":{family:"Bruno Ace",category:"display",variants:["regular"]},"Bruno-Ace-SC":{family:"Bruno Ace SC",category:"display",variants:["regular"]},"Brygada-1918":{family:"Brygada 1918",category:"serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Bubblegum-Sans":{family:"Bubblegum Sans",category:"display",variants:["regular"]},"Bubbler-One":{family:"Bubbler One",category:"sans-serif",variants:["regular"]},Buda:{family:"Buda",category:"display",variants:["300"]},Buenard:{family:"Buenard",category:"serif",variants:["regular","700"]},Bungee:{family:"Bungee",category:"display",variants:["regular"]},"Bungee-Hairline":{family:"Bungee Hairline",category:"display",variants:["regular"]},"Bungee-Inline":{family:"Bungee Inline",category:"display",variants:["regular"]},"Bungee-Outline":{family:"Bungee Outline",category:"display",variants:["regular"]},"Bungee-Shade":{family:"Bungee Shade",category:"display",variants:["regular"]},"Bungee-Spice":{family:"Bungee Spice",category:"display",variants:["regular"]},Butcherman:{family:"Butcherman",category:"display",variants:["regular"]},"Butterfly-Kids":{family:"Butterfly Kids",category:"handwriting",variants:["regular"]},Cabin:{family:"Cabin",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Cabin-Condensed":{family:"Cabin Condensed",category:"sans-serif",variants:["regular","500","600","700"]},"Cabin-Sketch":{family:"Cabin Sketch",category:"display",variants:["regular","700"]},"Caesar-Dressing":{family:"Caesar Dressing",category:"display",variants:["regular"]},Cagliostro:{family:"Cagliostro",category:"sans-serif",variants:["regular"]},Cairo:{family:"Cairo",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900"]},"Cairo-Play":{family:"Cairo Play",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900"]},Caladea:{family:"Caladea",category:"serif",variants:["regular","italic","700","700italic"]},Calistoga:{family:"Calistoga",category:"display",variants:["regular"]},Calligraffitti:{family:"Calligraffitti",category:"handwriting",variants:["regular"]},Cambay:{family:"Cambay",category:"sans-serif",variants:["regular","italic","700","700italic"]},Cambo:{family:"Cambo",category:"serif",variants:["regular"]},Candal:{family:"Candal",category:"sans-serif",variants:["regular"]},Cantarell:{family:"Cantarell",category:"sans-serif",variants:["regular","italic","700","700italic"]},"Cantata-One":{family:"Cantata One",category:"serif",variants:["regular"]},"Cantora-One":{family:"Cantora One",category:"sans-serif",variants:["regular"]},Caprasimo:{family:"Caprasimo",category:"display",variants:["regular"]},Capriola:{family:"Capriola",category:"sans-serif",variants:["regular"]},Caramel:{family:"Caramel",category:"handwriting",variants:["regular"]},Carattere:{family:"Carattere",category:"handwriting",variants:["regular"]},Cardo:{family:"Cardo",category:"serif",variants:["regular","italic","700"]},Carlito:{family:"Carlito",category:"sans-serif",variants:["regular","italic","700","700italic"]},Carme:{family:"Carme",category:"sans-serif",variants:["regular"]},"Carrois-Gothic":{family:"Carrois Gothic",category:"sans-serif",variants:["regular"]},"Carrois-Gothic-SC":{family:"Carrois Gothic SC",category:"sans-serif",variants:["regular"]},"Carter-One":{family:"Carter One",category:"display",variants:["regular"]},Castoro:{family:"Castoro",category:"serif",variants:["regular","italic"]},"Castoro-Titling":{family:"Castoro Titling",category:"display",variants:["regular"]},Catamaran:{family:"Catamaran",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Caudex:{family:"Caudex",category:"serif",variants:["regular","italic","700","700italic"]},Caveat:{family:"Caveat",category:"handwriting",variants:["regular","500","600","700"]},"Caveat-Brush":{family:"Caveat Brush",category:"handwriting",variants:["regular"]},"Cedarville-Cursive":{family:"Cedarville Cursive",category:"handwriting",variants:["regular"]},"Ceviche-One":{family:"Ceviche One",category:"display",variants:["regular"]},"Chakra-Petch":{family:"Chakra Petch",category:"sans-serif",variants:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},Changa:{family:"Changa",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},"Changa-One":{family:"Changa One",category:"display",variants:["regular","italic"]},Chango:{family:"Chango",category:"display",variants:["regular"]},"Charis-SIL":{family:"Charis SIL",category:"serif",variants:["regular","italic","700","700italic"]},Charm:{family:"Charm",category:"handwriting",variants:["regular","700"]},Charmonman:{family:"Charmonman",category:"handwriting",variants:["regular","700"]},Chathura:{family:"Chathura",category:"sans-serif",variants:["100","300","regular","700","800"]},"Chau-Philomene-One":{family:"Chau Philomene One",category:"sans-serif",variants:["regular","italic"]},"Chela-One":{family:"Chela One",category:"display",variants:["regular"]},"Chelsea-Market":{family:"Chelsea Market",category:"display",variants:["regular"]},Chenla:{family:"Chenla",category:"display",variants:["regular"]},Cherish:{family:"Cherish",category:"handwriting",variants:["regular"]},"Cherry-Bomb-One":{family:"Cherry Bomb One",category:"display",variants:["regular"]},"Cherry-Cream-Soda":{family:"Cherry Cream Soda",category:"display",variants:["regular"]},"Cherry-Swash":{family:"Cherry Swash",category:"display",variants:["regular","700"]},Chewy:{family:"Chewy",category:"display",variants:["regular"]},Chicle:{family:"Chicle",category:"display",variants:["regular"]},Chilanka:{family:"Chilanka",category:"handwriting",variants:["regular"]},Chivo:{family:"Chivo",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Chivo-Mono":{family:"Chivo Mono",category:"monospace",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Chokokutai:{family:"Chokokutai",category:"display",variants:["regular"]},Chonburi:{family:"Chonburi",category:"display",variants:["regular"]},Cinzel:{family:"Cinzel",category:"serif",variants:["regular","500","600","700","800","900"]},"Cinzel-Decorative":{family:"Cinzel Decorative",category:"display",variants:["regular","700","900"]},"Clicker-Script":{family:"Clicker Script",category:"handwriting",variants:["regular"]},"Climate-Crisis":{family:"Climate Crisis",category:"display",variants:["regular"]},Coda:{family:"Coda",category:"display",variants:["regular","800"]},Codystar:{family:"Codystar",category:"display",variants:["300","regular"]},Coiny:{family:"Coiny",category:"display",variants:["regular"]},Combo:{family:"Combo",category:"display",variants:["regular"]},Comfortaa:{family:"Comfortaa",category:"display",variants:["300","regular","500","600","700"]},Comforter:{family:"Comforter",category:"handwriting",variants:["regular"]},"Comforter-Brush":{family:"Comforter Brush",category:"handwriting",variants:["regular"]},"Comic-Neue":{family:"Comic Neue",category:"handwriting",variants:["300","300italic","regular","italic","700","700italic"]},"Coming-Soon":{family:"Coming Soon",category:"handwriting",variants:["regular"]},Comme:{family:"Comme",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Commissioner:{family:"Commissioner",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Concert-One":{family:"Concert One",category:"display",variants:["regular"]},Condiment:{family:"Condiment",category:"handwriting",variants:["regular"]},Content:{family:"Content",category:"display",variants:["regular","700"]},"Contrail-One":{family:"Contrail One",category:"display",variants:["regular"]},Convergence:{family:"Convergence",category:"sans-serif",variants:["regular"]},Cookie:{family:"Cookie",category:"handwriting",variants:["regular"]},Copse:{family:"Copse",category:"serif",variants:["regular"]},Corben:{family:"Corben",category:"display",variants:["regular","700"]},Corinthia:{family:"Corinthia",category:"handwriting",variants:["regular","700"]},Cormorant:{family:"Cormorant",category:"serif",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},"Cormorant-Garamond":{family:"Cormorant Garamond",category:"serif",variants:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"Cormorant-Infant":{family:"Cormorant Infant",category:"serif",variants:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"Cormorant-SC":{family:"Cormorant SC",category:"serif",variants:["300","regular","500","600","700"]},"Cormorant-Unicase":{family:"Cormorant Unicase",category:"serif",variants:["300","regular","500","600","700"]},"Cormorant-Upright":{family:"Cormorant Upright",category:"serif",variants:["300","regular","500","600","700"]},Courgette:{family:"Courgette",category:"handwriting",variants:["regular"]},"Courier-Prime":{family:"Courier Prime",category:"monospace",variants:["regular","italic","700","700italic"]},Cousine:{family:"Cousine",category:"monospace",variants:["regular","italic","700","700italic"]},Coustard:{family:"Coustard",category:"serif",variants:["regular","900"]},"Covered-By-Your-Grace":{family:"Covered By Your Grace",category:"handwriting",variants:["regular"]},"Crafty-Girls":{family:"Crafty Girls",category:"handwriting",variants:["regular"]},Creepster:{family:"Creepster",category:"display",variants:["regular"]},"Crete-Round":{family:"Crete Round",category:"serif",variants:["regular","italic"]},"Crimson-Pro":{family:"Crimson Pro",category:"serif",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Crimson-Text":{family:"Crimson Text",category:"serif",variants:["regular","italic","600","600italic","700","700italic"]},"Croissant-One":{family:"Croissant One",category:"display",variants:["regular"]},Crushed:{family:"Crushed",category:"display",variants:["regular"]},Cuprum:{family:"Cuprum",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Cute-Font":{family:"Cute Font",category:"display",variants:["regular"]},Cutive:{family:"Cutive",category:"serif",variants:["regular"]},"Cutive-Mono":{family:"Cutive Mono",category:"monospace",variants:["regular"]},"DM-Mono":{family:"DM Mono",category:"monospace",variants:["300","300italic","regular","italic","500","500italic"]},"DM-Sans":{family:"DM Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"DM-Serif-Display":{family:"DM Serif Display",category:"serif",variants:["regular","italic"]},"DM-Serif-Text":{family:"DM Serif Text",category:"serif",variants:["regular","italic"]},"Dai-Banna-SIL":{family:"Dai Banna SIL",category:"serif",variants:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},Damion:{family:"Damion",category:"handwriting",variants:["regular"]},"Dancing-Script":{family:"Dancing Script",category:"handwriting",variants:["regular","500","600","700"]},Dangrek:{family:"Dangrek",category:"display",variants:["regular"]},"Darker-Grotesque":{family:"Darker Grotesque",category:"sans-serif",variants:["300","regular","500","600","700","800","900"]},"Darumadrop-One":{family:"Darumadrop One",category:"display",variants:["regular"]},"David-Libre":{family:"David Libre",category:"serif",variants:["regular","500","700"]},"Dawning-of-a-New-Day":{family:"Dawning of a New Day",category:"handwriting",variants:["regular"]},"Days-One":{family:"Days One",category:"sans-serif",variants:["regular"]},Dekko:{family:"Dekko",category:"handwriting",variants:["regular"]},"Dela-Gothic-One":{family:"Dela Gothic One",category:"display",variants:["regular"]},"Delicious-Handrawn":{family:"Delicious Handrawn",category:"handwriting",variants:["regular"]},Delius:{family:"Delius",category:"handwriting",variants:["regular"]},"Delius-Swash-Caps":{family:"Delius Swash Caps",category:"handwriting",variants:["regular"]},"Delius-Unicase":{family:"Delius Unicase",category:"handwriting",variants:["regular","700"]},"Della-Respira":{family:"Della Respira",category:"serif",variants:["regular"]},"Denk-One":{family:"Denk One",category:"sans-serif",variants:["regular"]},Devonshire:{family:"Devonshire",category:"handwriting",variants:["regular"]},Dhurjati:{family:"Dhurjati",category:"sans-serif",variants:["regular"]},"Didact-Gothic":{family:"Didact Gothic",category:"sans-serif",variants:["regular"]},Diphylleia:{family:"Diphylleia",category:"serif",variants:["regular"]},Diplomata:{family:"Diplomata",category:"display",variants:["regular"]},"Diplomata-SC":{family:"Diplomata SC",category:"display",variants:["regular"]},"Do-Hyeon":{family:"Do Hyeon",category:"sans-serif",variants:["regular"]},Dokdo:{family:"Dokdo",category:"display",variants:["regular"]},Domine:{family:"Domine",category:"serif",variants:["regular","500","600","700"]},"Donegal-One":{family:"Donegal One",category:"serif",variants:["regular"]},Dongle:{family:"Dongle",category:"sans-serif",variants:["300","regular","700"]},"Doppio-One":{family:"Doppio One",category:"sans-serif",variants:["regular"]},Dorsa:{family:"Dorsa",category:"sans-serif",variants:["regular"]},Dosis:{family:"Dosis",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},DotGothic16:{family:"DotGothic16",category:"sans-serif",variants:["regular"]},"Dr-Sugiyama":{family:"Dr Sugiyama",category:"handwriting",variants:["regular"]},"Duru-Sans":{family:"Duru Sans",category:"sans-serif",variants:["regular"]},DynaPuff:{family:"DynaPuff",category:"display",variants:["regular","500","600","700"]},Dynalight:{family:"Dynalight",category:"display",variants:["regular"]},"EB-Garamond":{family:"EB Garamond",category:"serif",variants:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"]},"Eagle-Lake":{family:"Eagle Lake",category:"handwriting",variants:["regular"]},"East-Sea-Dokdo":{family:"East Sea Dokdo",category:"handwriting",variants:["regular"]},Eater:{family:"Eater",category:"display",variants:["regular"]},Economica:{family:"Economica",category:"sans-serif",variants:["regular","italic","700","700italic"]},Eczar:{family:"Eczar",category:"serif",variants:["regular","500","600","700","800"]},"Edu-NSW-ACT-Foundation":{family:"Edu NSW ACT Foundation",category:"handwriting",variants:["regular","500","600","700"]},"Edu-QLD-Beginner":{family:"Edu QLD Beginner",category:"handwriting",variants:["regular","500","600","700"]},"Edu-SA-Beginner":{family:"Edu SA Beginner",category:"handwriting",variants:["regular","500","600","700"]},"Edu-TAS-Beginner":{family:"Edu TAS Beginner",category:"handwriting",variants:["regular","500","600","700"]},"Edu-VIC-WA-NT-Beginner":{family:"Edu VIC WA NT Beginner",category:"handwriting",variants:["regular","500","600","700"]},"El-Messiri":{family:"El Messiri",category:"sans-serif",variants:["regular","500","600","700"]},Electrolize:{family:"Electrolize",category:"sans-serif",variants:["regular"]},Elsie:{family:"Elsie",category:"display",variants:["regular","900"]},"Elsie-Swash-Caps":{family:"Elsie Swash Caps",category:"display",variants:["regular","900"]},"Emblema-One":{family:"Emblema One",category:"display",variants:["regular"]},"Emilys-Candy":{family:"Emilys Candy",category:"display",variants:["regular"]},"Encode-Sans":{family:"Encode Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Encode-Sans-Condensed":{family:"Encode Sans Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Encode-Sans-Expanded":{family:"Encode Sans Expanded",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Encode-Sans-SC":{family:"Encode Sans SC",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Encode-Sans-Semi-Condensed":{family:"Encode Sans Semi Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Encode-Sans-Semi-Expanded":{family:"Encode Sans Semi Expanded",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Engagement:{family:"Engagement",category:"handwriting",variants:["regular"]},Englebert:{family:"Englebert",category:"sans-serif",variants:["regular"]},Enriqueta:{family:"Enriqueta",category:"serif",variants:["regular","500","600","700"]},Ephesis:{family:"Ephesis",category:"handwriting",variants:["regular"]},Epilogue:{family:"Epilogue",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Erica-One":{family:"Erica One",category:"display",variants:["regular"]},Esteban:{family:"Esteban",category:"serif",variants:["regular"]},Estonia:{family:"Estonia",category:"handwriting",variants:["regular"]},"Euphoria-Script":{family:"Euphoria Script",category:"handwriting",variants:["regular"]},Ewert:{family:"Ewert",category:"display",variants:["regular"]},Exo:{family:"Exo",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Exo-2":{family:"Exo 2",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Expletus-Sans":{family:"Expletus Sans",category:"display",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},Explora:{family:"Explora",category:"handwriting",variants:["regular"]},Fahkwang:{family:"Fahkwang",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"Familjen-Grotesk":{family:"Familjen Grotesk",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Fanwood-Text":{family:"Fanwood Text",category:"serif",variants:["regular","italic"]},Farro:{family:"Farro",category:"sans-serif",variants:["300","regular","500","700"]},Farsan:{family:"Farsan",category:"display",variants:["regular"]},Fascinate:{family:"Fascinate",category:"display",variants:["regular"]},"Fascinate-Inline":{family:"Fascinate Inline",category:"display",variants:["regular"]},"Faster-One":{family:"Faster One",category:"display",variants:["regular"]},Fasthand:{family:"Fasthand",category:"display",variants:["regular"]},"Fauna-One":{family:"Fauna One",category:"serif",variants:["regular"]},Faustina:{family:"Faustina",category:"serif",variants:["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"]},Federant:{family:"Federant",category:"display",variants:["regular"]},Federo:{family:"Federo",category:"sans-serif",variants:["regular"]},Felipa:{family:"Felipa",category:"handwriting",variants:["regular"]},Fenix:{family:"Fenix",category:"serif",variants:["regular"]},Festive:{family:"Festive",category:"handwriting",variants:["regular"]},Figtree:{family:"Figtree",category:"sans-serif",variants:["300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Finger-Paint":{family:"Finger Paint",category:"display",variants:["regular"]},Finlandica:{family:"Finlandica",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Fira-Code":{family:"Fira Code",category:"monospace",variants:["300","regular","500","600","700"]},"Fira-Mono":{family:"Fira Mono",category:"monospace",variants:["regular","500","700"]},"Fira-Sans":{family:"Fira Sans",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Fira-Sans-Condensed":{family:"Fira Sans Condensed",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Fira-Sans-Extra-Condensed":{family:"Fira Sans Extra Condensed",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Fjalla-One":{family:"Fjalla One",category:"sans-serif",variants:["regular"]},"Fjord-One":{family:"Fjord One",category:"serif",variants:["regular"]},Flamenco:{family:"Flamenco",category:"display",variants:["300","regular"]},Flavors:{family:"Flavors",category:"display",variants:["regular"]},"Fleur-De-Leah":{family:"Fleur De Leah",category:"handwriting",variants:["regular"]},"Flow-Block":{family:"Flow Block",category:"display",variants:["regular"]},"Flow-Circular":{family:"Flow Circular",category:"display",variants:["regular"]},"Flow-Rounded":{family:"Flow Rounded",category:"display",variants:["regular"]},Foldit:{family:"Foldit",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},Fondamento:{family:"Fondamento",category:"handwriting",variants:["regular","italic"]},"Fontdiner-Swanky":{family:"Fontdiner Swanky",category:"display",variants:["regular"]},Forum:{family:"Forum",category:"display",variants:["regular"]},"Fragment-Mono":{family:"Fragment Mono",category:"monospace",variants:["regular","italic"]},"Francois-One":{family:"Francois One",category:"sans-serif",variants:["regular"]},"Frank-Ruhl-Libre":{family:"Frank Ruhl Libre",category:"serif",variants:["300","regular","500","600","700","800","900"]},Fraunces:{family:"Fraunces",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Freckle-Face":{family:"Freckle Face",category:"display",variants:["regular"]},"Fredericka-the-Great":{family:"Fredericka the Great",category:"display",variants:["regular"]},Fredoka:{family:"Fredoka",category:"sans-serif",variants:["300","regular","500","600","700"]},Freehand:{family:"Freehand",category:"display",variants:["regular"]},Fresca:{family:"Fresca",category:"sans-serif",variants:["regular"]},Frijole:{family:"Frijole",category:"display",variants:["regular"]},Fruktur:{family:"Fruktur",category:"display",variants:["regular","italic"]},"Fugaz-One":{family:"Fugaz One",category:"display",variants:["regular"]},Fuggles:{family:"Fuggles",category:"handwriting",variants:["regular"]},"Fuzzy-Bubbles":{family:"Fuzzy Bubbles",category:"handwriting",variants:["regular","700"]},"GFS-Didot":{family:"GFS Didot",category:"serif",variants:["regular"]},"GFS-Neohellenic":{family:"GFS Neohellenic",category:"sans-serif",variants:["regular","italic","700","700italic"]},Gabarito:{family:"Gabarito",category:"display",variants:["regular","500","600","700","800","900"]},Gabriela:{family:"Gabriela",category:"serif",variants:["regular"]},Gaegu:{family:"Gaegu",category:"handwriting",variants:["300","regular","700"]},Gafata:{family:"Gafata",category:"sans-serif",variants:["regular"]},"Gajraj-One":{family:"Gajraj One",category:"display",variants:["regular"]},Galada:{family:"Galada",category:"display",variants:["regular"]},Galdeano:{family:"Galdeano",category:"sans-serif",variants:["regular"]},Galindo:{family:"Galindo",category:"display",variants:["regular"]},"Gamja-Flower":{family:"Gamja Flower",category:"handwriting",variants:["regular"]},Gantari:{family:"Gantari",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Gasoek-One":{family:"Gasoek One",category:"sans-serif",variants:["regular"]},Gayathri:{family:"Gayathri",category:"sans-serif",variants:["100","regular","700"]},Gelasio:{family:"Gelasio",category:"serif",variants:["regular","italic","500","500italic","600","600italic","700","700italic"]},"Gemunu-Libre":{family:"Gemunu Libre",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},Genos:{family:"Genos",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Gentium-Book-Plus":{family:"Gentium Book Plus",category:"serif",variants:["regular","italic","700","700italic"]},"Gentium-Plus":{family:"Gentium Plus",category:"serif",variants:["regular","italic","700","700italic"]},Geo:{family:"Geo",category:"sans-serif",variants:["regular","italic"]},Geologica:{family:"Geologica",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Georama:{family:"Georama",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Geostar:{family:"Geostar",category:"display",variants:["regular"]},"Geostar-Fill":{family:"Geostar Fill",category:"display",variants:["regular"]},"Germania-One":{family:"Germania One",category:"display",variants:["regular"]},"Gideon-Roman":{family:"Gideon Roman",category:"display",variants:["regular"]},Gidugu:{family:"Gidugu",category:"sans-serif",variants:["regular"]},"Gilda-Display":{family:"Gilda Display",category:"serif",variants:["regular"]},Girassol:{family:"Girassol",category:"display",variants:["regular"]},"Give-You-Glory":{family:"Give You Glory",category:"handwriting",variants:["regular"]},"Glass-Antiqua":{family:"Glass Antiqua",category:"display",variants:["regular"]},Glegoo:{family:"Glegoo",category:"serif",variants:["regular","700"]},Gloock:{family:"Gloock",category:"serif",variants:["regular"]},"Gloria-Hallelujah":{family:"Gloria Hallelujah",category:"handwriting",variants:["regular"]},Glory:{family:"Glory",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"]},Gluten:{family:"Gluten",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Goblin-One":{family:"Goblin One",category:"display",variants:["regular"]},"Gochi-Hand":{family:"Gochi Hand",category:"handwriting",variants:["regular"]},Goldman:{family:"Goldman",category:"display",variants:["regular","700"]},"Golos-Text":{family:"Golos Text",category:"sans-serif",variants:["regular","500","600","700","800","900"]},Gorditas:{family:"Gorditas",category:"display",variants:["regular","700"]},"Gothic-A1":{family:"Gothic A1",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Gotu:{family:"Gotu",category:"sans-serif",variants:["regular"]},"Goudy-Bookletter-1911":{family:"Goudy Bookletter 1911",category:"serif",variants:["regular"]},"Gowun-Batang":{family:"Gowun Batang",category:"serif",variants:["regular","700"]},"Gowun-Dodum":{family:"Gowun Dodum",category:"sans-serif",variants:["regular"]},Graduate:{family:"Graduate",category:"serif",variants:["regular"]},"Grand-Hotel":{family:"Grand Hotel",category:"handwriting",variants:["regular"]},"Grandiflora-One":{family:"Grandiflora One",category:"serif",variants:["regular"]},Grandstander:{family:"Grandstander",category:"display",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Grape-Nuts":{family:"Grape Nuts",category:"handwriting",variants:["regular"]},"Gravitas-One":{family:"Gravitas One",category:"display",variants:["regular"]},"Great-Vibes":{family:"Great Vibes",category:"handwriting",variants:["regular"]},"Grechen-Fuemen":{family:"Grechen Fuemen",category:"handwriting",variants:["regular"]},Grenze:{family:"Grenze",category:"serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Grenze-Gotisch":{family:"Grenze Gotisch",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Grey-Qo":{family:"Grey Qo",category:"handwriting",variants:["regular"]},Griffy:{family:"Griffy",category:"display",variants:["regular"]},Gruppo:{family:"Gruppo",category:"sans-serif",variants:["regular"]},Gudea:{family:"Gudea",category:"sans-serif",variants:["regular","italic","700"]},Gugi:{family:"Gugi",category:"display",variants:["regular"]},Gulzar:{family:"Gulzar",category:"serif",variants:["regular"]},Gupter:{family:"Gupter",category:"serif",variants:["regular","500","700"]},Gurajada:{family:"Gurajada",category:"serif",variants:["regular"]},Gwendolyn:{family:"Gwendolyn",category:"handwriting",variants:["regular","700"]},Habibi:{family:"Habibi",category:"serif",variants:["regular"]},"Hachi-Maru-Pop":{family:"Hachi Maru Pop",category:"handwriting",variants:["regular"]},Hahmlet:{family:"Hahmlet",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},Halant:{family:"Halant",category:"serif",variants:["300","regular","500","600","700"]},"Hammersmith-One":{family:"Hammersmith One",category:"sans-serif",variants:["regular"]},Hanalei:{family:"Hanalei",category:"display",variants:["regular"]},"Hanalei-Fill":{family:"Hanalei Fill",category:"display",variants:["regular"]},Handjet:{family:"Handjet",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},Handlee:{family:"Handlee",category:"handwriting",variants:["regular"]},"Hanken-Grotesk":{family:"Hanken Grotesk",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Hanuman:{family:"Hanuman",category:"serif",variants:["100","300","regular","700","900"]},"Happy-Monkey":{family:"Happy Monkey",category:"display",variants:["regular"]},Harmattan:{family:"Harmattan",category:"sans-serif",variants:["regular","500","600","700"]},"Headland-One":{family:"Headland One",category:"serif",variants:["regular"]},"Hedvig-Letters-Sans":{family:"Hedvig Letters Sans",category:"sans-serif",variants:["regular"]},"Hedvig-Letters-Serif":{family:"Hedvig Letters Serif",category:"serif",variants:["regular"]},Heebo:{family:"Heebo",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Henny-Penny":{family:"Henny Penny",category:"display",variants:["regular"]},"Hepta-Slab":{family:"Hepta Slab",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Herr-Von-Muellerhoff":{family:"Herr Von Muellerhoff",category:"handwriting",variants:["regular"]},"Hi-Melody":{family:"Hi Melody",category:"handwriting",variants:["regular"]},"Hina-Mincho":{family:"Hina Mincho",category:"serif",variants:["regular"]},Hind:{family:"Hind",category:"sans-serif",variants:["300","regular","500","600","700"]},"Hind-Guntur":{family:"Hind Guntur",category:"sans-serif",variants:["300","regular","500","600","700"]},"Hind-Madurai":{family:"Hind Madurai",category:"sans-serif",variants:["300","regular","500","600","700"]},"Hind-Siliguri":{family:"Hind Siliguri",category:"sans-serif",variants:["300","regular","500","600","700"]},"Hind-Vadodara":{family:"Hind Vadodara",category:"sans-serif",variants:["300","regular","500","600","700"]},"Holtwood-One-SC":{family:"Holtwood One SC",category:"serif",variants:["regular"]},"Homemade-Apple":{family:"Homemade Apple",category:"handwriting",variants:["regular"]},Homenaje:{family:"Homenaje",category:"sans-serif",variants:["regular"]},Honk:{family:"Honk",category:"display",variants:["regular"]},Hubballi:{family:"Hubballi",category:"sans-serif",variants:["regular"]},Hurricane:{family:"Hurricane",category:"handwriting",variants:["regular"]},"IBM-Plex-Mono":{family:"IBM Plex Mono",category:"monospace",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"IBM-Plex-Sans":{family:"IBM Plex Sans",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"IBM-Plex-Sans-Arabic":{family:"IBM Plex Sans Arabic",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"IBM-Plex-Sans-Condensed":{family:"IBM Plex Sans Condensed",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"IBM-Plex-Sans-Devanagari":{family:"IBM Plex Sans Devanagari",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"IBM-Plex-Sans-Hebrew":{family:"IBM Plex Sans Hebrew",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"IBM-Plex-Sans-JP":{family:"IBM Plex Sans JP",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"IBM-Plex-Sans-KR":{family:"IBM Plex Sans KR",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"IBM-Plex-Sans-Thai":{family:"IBM Plex Sans Thai",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"IBM-Plex-Sans-Thai-Looped":{family:"IBM Plex Sans Thai Looped",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"IBM-Plex-Serif":{family:"IBM Plex Serif",category:"serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"IM-Fell-DW-Pica":{family:"IM Fell DW Pica",category:"serif",variants:["regular","italic"]},"IM-Fell-DW-Pica-SC":{family:"IM Fell DW Pica SC",category:"serif",variants:["regular"]},"IM-Fell-Double-Pica":{family:"IM Fell Double Pica",category:"serif",variants:["regular","italic"]},"IM-Fell-Double-Pica-SC":{family:"IM Fell Double Pica SC",category:"serif",variants:["regular"]},"IM-Fell-English":{family:"IM Fell English",category:"serif",variants:["regular","italic"]},"IM-Fell-English-SC":{family:"IM Fell English SC",category:"serif",variants:["regular"]},"IM-Fell-French-Canon":{family:"IM Fell French Canon",category:"serif",variants:["regular","italic"]},"IM-Fell-French-Canon-SC":{family:"IM Fell French Canon SC",category:"serif",variants:["regular"]},"IM-Fell-Great-Primer":{family:"IM Fell Great Primer",category:"serif",variants:["regular","italic"]},"IM-Fell-Great-Primer-SC":{family:"IM Fell Great Primer SC",category:"serif",variants:["regular"]},"Ibarra-Real-Nova":{family:"Ibarra Real Nova",category:"serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},Iceberg:{family:"Iceberg",category:"display",variants:["regular"]},Iceland:{family:"Iceland",category:"display",variants:["regular"]},Imbue:{family:"Imbue",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Imperial-Script":{family:"Imperial Script",category:"handwriting",variants:["regular"]},Imprima:{family:"Imprima",category:"sans-serif",variants:["regular"]},"Inclusive-Sans":{family:"Inclusive Sans",category:"sans-serif",variants:["regular","italic"]},Inconsolata:{family:"Inconsolata",category:"monospace",variants:["200","300","regular","500","600","700","800","900"]},Inder:{family:"Inder",category:"sans-serif",variants:["regular"]},"Indie-Flower":{family:"Indie Flower",category:"handwriting",variants:["regular"]},"Ingrid-Darling":{family:"Ingrid Darling",category:"handwriting",variants:["regular"]},Inika:{family:"Inika",category:"serif",variants:["regular","700"]},"Inknut-Antiqua":{family:"Inknut Antiqua",category:"serif",variants:["300","regular","500","600","700","800","900"]},"Inria-Sans":{family:"Inria Sans",category:"sans-serif",variants:["300","300italic","regular","italic","700","700italic"]},"Inria-Serif":{family:"Inria Serif",category:"serif",variants:["300","300italic","regular","italic","700","700italic"]},Inspiration:{family:"Inspiration",category:"handwriting",variants:["regular"]},"Instrument-Sans":{family:"Instrument Sans",category:"sans-serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Instrument-Serif":{family:"Instrument Serif",category:"serif",variants:["regular","italic"]},Inter:{family:"Inter",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Inter-Tight":{family:"Inter Tight",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Irish-Grover":{family:"Irish Grover",category:"display",variants:["regular"]},"Island-Moments":{family:"Island Moments",category:"handwriting",variants:["regular"]},"Istok-Web":{family:"Istok Web",category:"sans-serif",variants:["regular","italic","700","700italic"]},Italiana:{family:"Italiana",category:"serif",variants:["regular"]},Italianno:{family:"Italianno",category:"handwriting",variants:["regular"]},Itim:{family:"Itim",category:"handwriting",variants:["regular"]},"Jacquarda-Bastarda-9":{family:"Jacquarda Bastarda 9",category:"display",variants:["regular"]},"Jacques-Francois":{family:"Jacques Francois",category:"serif",variants:["regular"]},"Jacques-Francois-Shadow":{family:"Jacques Francois Shadow",category:"display",variants:["regular"]},Jaldi:{family:"Jaldi",category:"sans-serif",variants:["regular","700"]},"JetBrains-Mono":{family:"JetBrains Mono",category:"monospace",variants:["100","200","300","regular","500","600","700","800","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic"]},"Jim-Nightshade":{family:"Jim Nightshade",category:"handwriting",variants:["regular"]},Joan:{family:"Joan",category:"serif",variants:["regular"]},"Jockey-One":{family:"Jockey One",category:"sans-serif",variants:["regular"]},"Jolly-Lodger":{family:"Jolly Lodger",category:"display",variants:["regular"]},Jomhuria:{family:"Jomhuria",category:"display",variants:["regular"]},Jomolhari:{family:"Jomolhari",category:"serif",variants:["regular"]},"Josefin-Sans":{family:"Josefin Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"]},"Josefin-Slab":{family:"Josefin Slab",category:"serif",variants:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"]},Jost:{family:"Jost",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Joti-One":{family:"Joti One",category:"display",variants:["regular"]},Jua:{family:"Jua",category:"sans-serif",variants:["regular"]},Judson:{family:"Judson",category:"serif",variants:["regular","italic","700"]},Julee:{family:"Julee",category:"handwriting",variants:["regular"]},"Julius-Sans-One":{family:"Julius Sans One",category:"sans-serif",variants:["regular"]},Junge:{family:"Junge",category:"serif",variants:["regular"]},Jura:{family:"Jura",category:"sans-serif",variants:["300","regular","500","600","700"]},"Just-Another-Hand":{family:"Just Another Hand",category:"handwriting",variants:["regular"]},"Just-Me-Again-Down-Here":{family:"Just Me Again Down Here",category:"handwriting",variants:["regular"]},K2D:{family:"K2D",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},Kablammo:{family:"Kablammo",category:"display",variants:["regular"]},Kadwa:{family:"Kadwa",category:"serif",variants:["regular","700"]},"Kaisei-Decol":{family:"Kaisei Decol",category:"serif",variants:["regular","500","700"]},"Kaisei-HarunoUmi":{family:"Kaisei HarunoUmi",category:"serif",variants:["regular","500","700"]},"Kaisei-Opti":{family:"Kaisei Opti",category:"serif",variants:["regular","500","700"]},"Kaisei-Tokumin":{family:"Kaisei Tokumin",category:"serif",variants:["regular","500","700","800"]},Kalam:{family:"Kalam",category:"handwriting",variants:["300","regular","700"]},Kalnia:{family:"Kalnia",category:"serif",variants:["100","200","300","regular","500","600","700"]},Kameron:{family:"Kameron",category:"serif",variants:["regular","500","600","700"]},Kanit:{family:"Kanit",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Kantumruy-Pro":{family:"Kantumruy Pro",category:"sans-serif",variants:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"]},Karantina:{family:"Karantina",category:"display",variants:["300","regular","700"]},Karla:{family:"Karla",category:"sans-serif",variants:["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"]},Karma:{family:"Karma",category:"serif",variants:["300","regular","500","600","700"]},Katibeh:{family:"Katibeh",category:"display",variants:["regular"]},"Kaushan-Script":{family:"Kaushan Script",category:"handwriting",variants:["regular"]},Kavivanar:{family:"Kavivanar",category:"handwriting",variants:["regular"]},Kavoon:{family:"Kavoon",category:"display",variants:["regular"]},"Kay-Pho-Du":{family:"Kay Pho Du",category:"serif",variants:["regular","500","600","700"]},"Kdam-Thmor-Pro":{family:"Kdam Thmor Pro",category:"sans-serif",variants:["regular"]},"Keania-One":{family:"Keania One",category:"display",variants:["regular"]},"Kelly-Slab":{family:"Kelly Slab",category:"display",variants:["regular"]},Kenia:{family:"Kenia",category:"display",variants:["regular"]},Khand:{family:"Khand",category:"sans-serif",variants:["300","regular","500","600","700"]},Khmer:{family:"Khmer",category:"sans-serif",variants:["regular"]},Khula:{family:"Khula",category:"sans-serif",variants:["300","regular","600","700","800"]},Kings:{family:"Kings",category:"handwriting",variants:["regular"]},"Kirang-Haerang":{family:"Kirang Haerang",category:"display",variants:["regular"]},"Kite-One":{family:"Kite One",category:"sans-serif",variants:["regular"]},"Kiwi-Maru":{family:"Kiwi Maru",category:"serif",variants:["300","regular","500"]},"Klee-One":{family:"Klee One",category:"handwriting",variants:["regular","600"]},Knewave:{family:"Knewave",category:"display",variants:["regular"]},KoHo:{family:"KoHo",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},Kodchasan:{family:"Kodchasan",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"Kode-Mono":{family:"Kode Mono",category:"monospace",variants:["regular","500","600","700"]},"Koh-Santepheap":{family:"Koh Santepheap",category:"serif",variants:["100","300","regular","700","900"]},"Kolker-Brush":{family:"Kolker Brush",category:"handwriting",variants:["regular"]},"Konkhmer-Sleokchher":{family:"Konkhmer Sleokchher",category:"display",variants:["regular"]},Kosugi:{family:"Kosugi",category:"sans-serif",variants:["regular"]},"Kosugi-Maru":{family:"Kosugi Maru",category:"sans-serif",variants:["regular"]},"Kotta-One":{family:"Kotta One",category:"serif",variants:["regular"]},Koulen:{family:"Koulen",category:"display",variants:["regular"]},Kranky:{family:"Kranky",category:"display",variants:["regular"]},Kreon:{family:"Kreon",category:"serif",variants:["300","regular","500","600","700"]},Kristi:{family:"Kristi",category:"handwriting",variants:["regular"]},"Krona-One":{family:"Krona One",category:"sans-serif",variants:["regular"]},Krub:{family:"Krub",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},Kufam:{family:"Kufam",category:"sans-serif",variants:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"]},"Kulim-Park":{family:"Kulim Park",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic"]},"Kumar-One":{family:"Kumar One",category:"display",variants:["regular"]},"Kumar-One-Outline":{family:"Kumar One Outline",category:"display",variants:["regular"]},"Kumbh-Sans":{family:"Kumbh Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Kurale:{family:"Kurale",category:"serif",variants:["regular"]},"La-Belle-Aurore":{family:"La Belle Aurore",category:"handwriting",variants:["regular"]},Labrada:{family:"Labrada",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Lacquer:{family:"Lacquer",category:"display",variants:["regular"]},Laila:{family:"Laila",category:"sans-serif",variants:["300","regular","500","600","700"]},"Lakki-Reddy":{family:"Lakki Reddy",category:"handwriting",variants:["regular"]},Lalezar:{family:"Lalezar",category:"display",variants:["regular"]},Lancelot:{family:"Lancelot",category:"display",variants:["regular"]},Langar:{family:"Langar",category:"display",variants:["regular"]},Lateef:{family:"Lateef",category:"serif",variants:["200","300","regular","500","600","700","800"]},Lato:{family:"Lato",category:"sans-serif",variants:["100","100italic","300","300italic","regular","italic","700","700italic","900","900italic"]},"Lavishly-Yours":{family:"Lavishly Yours",category:"handwriting",variants:["regular"]},"League-Gothic":{family:"League Gothic",category:"sans-serif",variants:["regular"]},"League-Script":{family:"League Script",category:"handwriting",variants:["regular"]},"League-Spartan":{family:"League Spartan",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Leckerli-One":{family:"Leckerli One",category:"handwriting",variants:["regular"]},Ledger:{family:"Ledger",category:"serif",variants:["regular"]},Lekton:{family:"Lekton",category:"sans-serif",variants:["regular","italic","700"]},Lemon:{family:"Lemon",category:"display",variants:["regular"]},Lemonada:{family:"Lemonada",category:"display",variants:["300","regular","500","600","700"]},Lexend:{family:"Lexend",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Lexend-Deca":{family:"Lexend Deca",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Lexend-Exa":{family:"Lexend Exa",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Lexend-Giga":{family:"Lexend Giga",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Lexend-Mega":{family:"Lexend Mega",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Lexend-Peta":{family:"Lexend Peta",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Lexend-Tera":{family:"Lexend Tera",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Lexend-Zetta":{family:"Lexend Zetta",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Libre-Barcode-128":{family:"Libre Barcode 128",category:"display",variants:["regular"]},"Libre-Barcode-128-Text":{family:"Libre Barcode 128 Text",category:"display",variants:["regular"]},"Libre-Barcode-39":{family:"Libre Barcode 39",category:"display",variants:["regular"]},"Libre-Barcode-39-Extended":{family:"Libre Barcode 39 Extended",category:"display",variants:["regular"]},"Libre-Barcode-39-Extended-Text":{family:"Libre Barcode 39 Extended Text",category:"display",variants:["regular"]},"Libre-Barcode-39-Text":{family:"Libre Barcode 39 Text",category:"display",variants:["regular"]},"Libre-Barcode-EAN13-Text":{family:"Libre Barcode EAN13 Text",category:"display",variants:["regular"]},"Libre-Baskerville":{family:"Libre Baskerville",category:"serif",variants:["regular","italic","700"]},"Libre-Bodoni":{family:"Libre Bodoni",category:"serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Libre-Caslon-Display":{family:"Libre Caslon Display",category:"serif",variants:["regular"]},"Libre-Caslon-Text":{family:"Libre Caslon Text",category:"serif",variants:["regular","italic","700"]},"Libre-Franklin":{family:"Libre Franklin",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Licorice:{family:"Licorice",category:"handwriting",variants:["regular"]},"Life-Savers":{family:"Life Savers",category:"display",variants:["regular","700","800"]},"Lilita-One":{family:"Lilita One",category:"display",variants:["regular"]},"Lily-Script-One":{family:"Lily Script One",category:"display",variants:["regular"]},Limelight:{family:"Limelight",category:"display",variants:["regular"]},"Linden-Hill":{family:"Linden Hill",category:"serif",variants:["regular","italic"]},Linefont:{family:"Linefont",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},"Lisu-Bosa":{family:"Lisu Bosa",category:"serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},Literata:{family:"Literata",category:"serif",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Liu-Jian-Mao-Cao":{family:"Liu Jian Mao Cao",category:"handwriting",variants:["regular"]},Livvic:{family:"Livvic",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","900","900italic"]},Lobster:{family:"Lobster",category:"display",variants:["regular"]},"Lobster-Two":{family:"Lobster Two",category:"display",variants:["regular","italic","700","700italic"]},"Londrina-Outline":{family:"Londrina Outline",category:"display",variants:["regular"]},"Londrina-Shadow":{family:"Londrina Shadow",category:"display",variants:["regular"]},"Londrina-Sketch":{family:"Londrina Sketch",category:"display",variants:["regular"]},"Londrina-Solid":{family:"Londrina Solid",category:"display",variants:["100","300","regular","900"]},"Long-Cang":{family:"Long Cang",category:"handwriting",variants:["regular"]},Lora:{family:"Lora",category:"serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Love-Light":{family:"Love Light",category:"handwriting",variants:["regular"]},"Love-Ya-Like-A-Sister":{family:"Love Ya Like A Sister",category:"display",variants:["regular"]},"Loved-by-the-King":{family:"Loved by the King",category:"handwriting",variants:["regular"]},"Lovers-Quarrel":{family:"Lovers Quarrel",category:"handwriting",variants:["regular"]},"Luckiest-Guy":{family:"Luckiest Guy",category:"display",variants:["regular"]},Lugrasimo:{family:"Lugrasimo",category:"handwriting",variants:["regular"]},Lumanosimo:{family:"Lumanosimo",category:"handwriting",variants:["regular"]},Lunasima:{family:"Lunasima",category:"sans-serif",variants:["regular","700"]},Lusitana:{family:"Lusitana",category:"serif",variants:["regular","700"]},Lustria:{family:"Lustria",category:"serif",variants:["regular"]},"Luxurious-Roman":{family:"Luxurious Roman",category:"display",variants:["regular"]},"Luxurious-Script":{family:"Luxurious Script",category:"handwriting",variants:["regular"]},"M-PLUS-1":{family:"M PLUS 1",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"M-PLUS-1-Code":{family:"M PLUS 1 Code",category:"monospace",variants:["100","200","300","regular","500","600","700"]},"M-PLUS-1p":{family:"M PLUS 1p",category:"sans-serif",variants:["100","300","regular","500","700","800","900"]},"M-PLUS-2":{family:"M PLUS 2",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"M-PLUS-Code-Latin":{family:"M PLUS Code Latin",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"M-PLUS-Rounded-1c":{family:"M PLUS Rounded 1c",category:"sans-serif",variants:["100","300","regular","500","700","800","900"]},"Ma-Shan-Zheng":{family:"Ma Shan Zheng",category:"handwriting",variants:["regular"]},Macondo:{family:"Macondo",category:"display",variants:["regular"]},"Macondo-Swash-Caps":{family:"Macondo Swash Caps",category:"display",variants:["regular"]},Mada:{family:"Mada",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900"]},Magra:{family:"Magra",category:"sans-serif",variants:["regular","700"]},"Maiden-Orange":{family:"Maiden Orange",category:"serif",variants:["regular"]},Maitree:{family:"Maitree",category:"serif",variants:["200","300","regular","500","600","700"]},"Major-Mono-Display":{family:"Major Mono Display",category:"monospace",variants:["regular"]},Mako:{family:"Mako",category:"sans-serif",variants:["regular"]},Mali:{family:"Mali",category:"handwriting",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},Mallanna:{family:"Mallanna",category:"sans-serif",variants:["regular"]},Mandali:{family:"Mandali",category:"sans-serif",variants:["regular"]},Manjari:{family:"Manjari",category:"sans-serif",variants:["100","regular","700"]},Manrope:{family:"Manrope",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},Mansalva:{family:"Mansalva",category:"handwriting",variants:["regular"]},Manuale:{family:"Manuale",category:"serif",variants:["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"]},Marcellus:{family:"Marcellus",category:"serif",variants:["regular"]},"Marcellus-SC":{family:"Marcellus SC",category:"serif",variants:["regular"]},"Marck-Script":{family:"Marck Script",category:"handwriting",variants:["regular"]},Margarine:{family:"Margarine",category:"display",variants:["regular"]},Marhey:{family:"Marhey",category:"display",variants:["300","regular","500","600","700"]},"Markazi-Text":{family:"Markazi Text",category:"serif",variants:["regular","500","600","700"]},"Marko-One":{family:"Marko One",category:"serif",variants:["regular"]},Marmelad:{family:"Marmelad",category:"sans-serif",variants:["regular"]},Martel:{family:"Martel",category:"serif",variants:["200","300","regular","600","700","800","900"]},"Martel-Sans":{family:"Martel Sans",category:"sans-serif",variants:["200","300","regular","600","700","800","900"]},"Martian-Mono":{family:"Martian Mono",category:"monospace",variants:["100","200","300","regular","500","600","700","800"]},Marvel:{family:"Marvel",category:"sans-serif",variants:["regular","italic","700","700italic"]},Mate:{family:"Mate",category:"serif",variants:["regular","italic"]},"Mate-SC":{family:"Mate SC",category:"serif",variants:["regular"]},"Material-Icons":{family:"Material Icons",category:"monospace",variants:["regular"]},"Material-Icons-Outlined":{family:"Material Icons Outlined",category:"monospace",variants:["regular"]},"Material-Icons-Round":{family:"Material Icons Round",category:"monospace",variants:["regular"]},"Material-Icons-Sharp":{family:"Material Icons Sharp",category:"monospace",variants:["regular"]},"Material-Icons-Two-Tone":{family:"Material Icons Two Tone",category:"monospace",variants:["regular"]},"Material-Symbols-Outlined":{family:"Material Symbols Outlined",category:"monospace",variants:["100","200","300","regular","500","600","700"]},"Material-Symbols-Rounded":{family:"Material Symbols Rounded",category:"monospace",variants:["100","200","300","regular","500","600","700"]},"Material-Symbols-Sharp":{family:"Material Symbols Sharp",category:"monospace",variants:["100","200","300","regular","500","600","700"]},"Maven-Pro":{family:"Maven Pro",category:"sans-serif",variants:["regular","500","600","700","800","900"]},McLaren:{family:"McLaren",category:"display",variants:["regular"]},"Mea-Culpa":{family:"Mea Culpa",category:"handwriting",variants:["regular"]},Meddon:{family:"Meddon",category:"handwriting",variants:["regular"]},MedievalSharp:{family:"MedievalSharp",category:"display",variants:["regular"]},"Medula-One":{family:"Medula One",category:"display",variants:["regular"]},"Meera-Inimai":{family:"Meera Inimai",category:"sans-serif",variants:["regular"]},Megrim:{family:"Megrim",category:"display",variants:["regular"]},"Meie-Script":{family:"Meie Script",category:"handwriting",variants:["regular"]},"Meow-Script":{family:"Meow Script",category:"handwriting",variants:["regular"]},Merienda:{family:"Merienda",category:"handwriting",variants:["300","regular","500","600","700","800","900"]},Merriweather:{family:"Merriweather",category:"serif",variants:["300","300italic","regular","italic","700","700italic","900","900italic"]},"Merriweather-Sans":{family:"Merriweather Sans",category:"sans-serif",variants:["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"]},Metal:{family:"Metal",category:"display",variants:["regular"]},"Metal-Mania":{family:"Metal Mania",category:"display",variants:["regular"]},Metamorphous:{family:"Metamorphous",category:"display",variants:["regular"]},Metrophobic:{family:"Metrophobic",category:"sans-serif",variants:["regular"]},Michroma:{family:"Michroma",category:"sans-serif",variants:["regular"]},"Micro-5":{family:"Micro 5",category:"display",variants:["regular"]},Milonga:{family:"Milonga",category:"display",variants:["regular"]},Miltonian:{family:"Miltonian",category:"display",variants:["regular"]},"Miltonian-Tattoo":{family:"Miltonian Tattoo",category:"display",variants:["regular"]},Mina:{family:"Mina",category:"sans-serif",variants:["regular","700"]},Mingzat:{family:"Mingzat",category:"sans-serif",variants:["regular"]},Miniver:{family:"Miniver",category:"display",variants:["regular"]},"Miriam-Libre":{family:"Miriam Libre",category:"sans-serif",variants:["regular","700"]},Mirza:{family:"Mirza",category:"serif",variants:["regular","500","600","700"]},"Miss-Fajardose":{family:"Miss Fajardose",category:"handwriting",variants:["regular"]},Mitr:{family:"Mitr",category:"sans-serif",variants:["200","300","regular","500","600","700"]},"Mochiy-Pop-One":{family:"Mochiy Pop One",category:"sans-serif",variants:["regular"]},"Mochiy-Pop-P-One":{family:"Mochiy Pop P One",category:"sans-serif",variants:["regular"]},Modak:{family:"Modak",category:"display",variants:["regular"]},"Modern-Antiqua":{family:"Modern Antiqua",category:"display",variants:["regular"]},Mogra:{family:"Mogra",category:"display",variants:["regular"]},Mohave:{family:"Mohave",category:"sans-serif",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},"Moirai-One":{family:"Moirai One",category:"display",variants:["regular"]},Molengo:{family:"Molengo",category:"sans-serif",variants:["regular"]},Molle:{family:"Molle",category:"handwriting",variants:["italic"]},Monda:{family:"Monda",category:"sans-serif",variants:["regular","700"]},Monofett:{family:"Monofett",category:"monospace",variants:["regular"]},"Monomaniac-One":{family:"Monomaniac One",category:"sans-serif",variants:["regular"]},Monoton:{family:"Monoton",category:"display",variants:["regular"]},"Monsieur-La-Doulaise":{family:"Monsieur La Doulaise",category:"handwriting",variants:["regular"]},Montaga:{family:"Montaga",category:"serif",variants:["regular"]},"Montagu-Slab":{family:"Montagu Slab",category:"serif",variants:["100","200","300","regular","500","600","700"]},MonteCarlo:{family:"MonteCarlo",category:"handwriting",variants:["regular"]},Montez:{family:"Montez",category:"handwriting",variants:["regular"]},Montserrat:{family:"Montserrat",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Montserrat-Alternates":{family:"Montserrat Alternates",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Montserrat-Subrayada":{family:"Montserrat Subrayada",category:"sans-serif",variants:["regular","700"]},"Moo-Lah-Lah":{family:"Moo Lah Lah",category:"display",variants:["regular"]},Mooli:{family:"Mooli",category:"sans-serif",variants:["regular"]},"Moon-Dance":{family:"Moon Dance",category:"handwriting",variants:["regular"]},Moul:{family:"Moul",category:"display",variants:["regular"]},Moulpali:{family:"Moulpali",category:"sans-serif",variants:["regular"]},"Mountains-of-Christmas":{family:"Mountains of Christmas",category:"display",variants:["regular","700"]},"Mouse-Memoirs":{family:"Mouse Memoirs",category:"sans-serif",variants:["regular"]},"Mr-Bedfort":{family:"Mr Bedfort",category:"handwriting",variants:["regular"]},"Mr-Dafoe":{family:"Mr Dafoe",category:"handwriting",variants:["regular"]},"Mr-De-Haviland":{family:"Mr De Haviland",category:"handwriting",variants:["regular"]},"Mrs-Saint-Delafield":{family:"Mrs Saint Delafield",category:"handwriting",variants:["regular"]},"Mrs-Sheppards":{family:"Mrs Sheppards",category:"handwriting",variants:["regular"]},"Ms-Madi":{family:"Ms Madi",category:"handwriting",variants:["regular"]},Mukta:{family:"Mukta",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},"Mukta-Mahee":{family:"Mukta Mahee",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},"Mukta-Malar":{family:"Mukta Malar",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},"Mukta-Vaani":{family:"Mukta Vaani",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},Mulish:{family:"Mulish",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Murecho:{family:"Murecho",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},MuseoModerno:{family:"MuseoModerno",category:"display",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"My-Soul":{family:"My Soul",category:"handwriting",variants:["regular"]},Mynerve:{family:"Mynerve",category:"handwriting",variants:["regular"]},"Mystery-Quest":{family:"Mystery Quest",category:"display",variants:["regular"]},NTR:{family:"NTR",category:"sans-serif",variants:["regular"]},Nabla:{family:"Nabla",category:"display",variants:["regular"]},Namdhinggo:{family:"Namdhinggo",category:"serif",variants:["regular","500","600","700","800"]},"Nanum-Brush-Script":{family:"Nanum Brush Script",category:"handwriting",variants:["regular"]},"Nanum-Gothic":{family:"Nanum Gothic",category:"sans-serif",variants:["regular","700","800"]},"Nanum-Gothic-Coding":{family:"Nanum Gothic Coding",category:"handwriting",variants:["regular","700"]},"Nanum-Myeongjo":{family:"Nanum Myeongjo",category:"serif",variants:["regular","700","800"]},"Nanum-Pen-Script":{family:"Nanum Pen Script",category:"handwriting",variants:["regular"]},Narnoor:{family:"Narnoor",category:"serif",variants:["regular","500","600","700","800"]},Neonderthaw:{family:"Neonderthaw",category:"handwriting",variants:["regular"]},"Nerko-One":{family:"Nerko One",category:"handwriting",variants:["regular"]},Neucha:{family:"Neucha",category:"handwriting",variants:["regular"]},Neuton:{family:"Neuton",category:"serif",variants:["200","300","regular","italic","700","800"]},"New-Rocker":{family:"New Rocker",category:"display",variants:["regular"]},"New-Tegomin":{family:"New Tegomin",category:"serif",variants:["regular"]},"News-Cycle":{family:"News Cycle",category:"sans-serif",variants:["regular","700"]},Newsreader:{family:"Newsreader",category:"serif",variants:["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"]},Niconne:{family:"Niconne",category:"handwriting",variants:["regular"]},Niramit:{family:"Niramit",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"Nixie-One":{family:"Nixie One",category:"display",variants:["regular"]},Nobile:{family:"Nobile",category:"sans-serif",variants:["regular","italic","500","500italic","700","700italic"]},Nokora:{family:"Nokora",category:"sans-serif",variants:["100","300","regular","700","900"]},Norican:{family:"Norican",category:"handwriting",variants:["regular"]},Nosifer:{family:"Nosifer",category:"display",variants:["regular"]},Notable:{family:"Notable",category:"sans-serif",variants:["regular"]},"Nothing-You-Could-Do":{family:"Nothing You Could Do",category:"handwriting",variants:["regular"]},"Noticia-Text":{family:"Noticia Text",category:"serif",variants:["regular","italic","700","700italic"]},"Noto-Color-Emoji":{family:"Noto Color Emoji",category:"sans-serif",variants:["regular"]},"Noto-Emoji":{family:"Noto Emoji",category:"sans-serif",variants:["300","regular","500","600","700"]},"Noto-Kufi-Arabic":{family:"Noto Kufi Arabic",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Music":{family:"Noto Music",category:"sans-serif",variants:["regular"]},"Noto-Naskh-Arabic":{family:"Noto Naskh Arabic",category:"serif",variants:["regular","500","600","700"]},"Noto-Nastaliq-Urdu":{family:"Noto Nastaliq Urdu",category:"serif",variants:["regular","500","600","700"]},"Noto-Rashi-Hebrew":{family:"Noto Rashi Hebrew",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans":{family:"Noto Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Noto-Sans-Adlam":{family:"Noto Sans Adlam",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Adlam-Unjoined":{family:"Noto Sans Adlam Unjoined",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Anatolian-Hieroglyphs":{family:"Noto Sans Anatolian Hieroglyphs",category:"sans-serif",variants:["regular"]},"Noto-Sans-Arabic":{family:"Noto Sans Arabic",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Armenian":{family:"Noto Sans Armenian",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Avestan":{family:"Noto Sans Avestan",category:"sans-serif",variants:["regular"]},"Noto-Sans-Balinese":{family:"Noto Sans Balinese",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Bamum":{family:"Noto Sans Bamum",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Bassa-Vah":{family:"Noto Sans Bassa Vah",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Batak":{family:"Noto Sans Batak",category:"sans-serif",variants:["regular"]},"Noto-Sans-Bengali":{family:"Noto Sans Bengali",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Bhaiksuki":{family:"Noto Sans Bhaiksuki",category:"sans-serif",variants:["regular"]},"Noto-Sans-Brahmi":{family:"Noto Sans Brahmi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Buginese":{family:"Noto Sans Buginese",category:"sans-serif",variants:["regular"]},"Noto-Sans-Buhid":{family:"Noto Sans Buhid",category:"sans-serif",variants:["regular"]},"Noto-Sans-Canadian-Aboriginal":{family:"Noto Sans Canadian Aboriginal",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Carian":{family:"Noto Sans Carian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Caucasian-Albanian":{family:"Noto Sans Caucasian Albanian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Chakma":{family:"Noto Sans Chakma",category:"sans-serif",variants:["regular"]},"Noto-Sans-Cham":{family:"Noto Sans Cham",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Cherokee":{family:"Noto Sans Cherokee",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Chorasmian":{family:"Noto Sans Chorasmian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Coptic":{family:"Noto Sans Coptic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Cuneiform":{family:"Noto Sans Cuneiform",category:"sans-serif",variants:["regular"]},"Noto-Sans-Cypriot":{family:"Noto Sans Cypriot",category:"sans-serif",variants:["regular"]},"Noto-Sans-Cypro-Minoan":{family:"Noto Sans Cypro Minoan",category:"sans-serif",variants:["regular"]},"Noto-Sans-Deseret":{family:"Noto Sans Deseret",category:"sans-serif",variants:["regular"]},"Noto-Sans-Devanagari":{family:"Noto Sans Devanagari",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Display":{family:"Noto Sans Display",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Noto-Sans-Duployan":{family:"Noto Sans Duployan",category:"sans-serif",variants:["regular","700"]},"Noto-Sans-Egyptian-Hieroglyphs":{family:"Noto Sans Egyptian Hieroglyphs",category:"sans-serif",variants:["regular"]},"Noto-Sans-Elbasan":{family:"Noto Sans Elbasan",category:"sans-serif",variants:["regular"]},"Noto-Sans-Elymaic":{family:"Noto Sans Elymaic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Ethiopic":{family:"Noto Sans Ethiopic",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Georgian":{family:"Noto Sans Georgian",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Glagolitic":{family:"Noto Sans Glagolitic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Gothic":{family:"Noto Sans Gothic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Grantha":{family:"Noto Sans Grantha",category:"sans-serif",variants:["regular"]},"Noto-Sans-Gujarati":{family:"Noto Sans Gujarati",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Gunjala-Gondi":{family:"Noto Sans Gunjala Gondi",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Gurmukhi":{family:"Noto Sans Gurmukhi",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-HK":{family:"Noto Sans HK",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Hanifi-Rohingya":{family:"Noto Sans Hanifi Rohingya",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Hanunoo":{family:"Noto Sans Hanunoo",category:"sans-serif",variants:["regular"]},"Noto-Sans-Hatran":{family:"Noto Sans Hatran",category:"sans-serif",variants:["regular"]},"Noto-Sans-Hebrew":{family:"Noto Sans Hebrew",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Imperial-Aramaic":{family:"Noto Sans Imperial Aramaic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Indic-Siyaq-Numbers":{family:"Noto Sans Indic Siyaq Numbers",category:"sans-serif",variants:["regular"]},"Noto-Sans-Inscriptional-Pahlavi":{family:"Noto Sans Inscriptional Pahlavi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Inscriptional-Parthian":{family:"Noto Sans Inscriptional Parthian",category:"sans-serif",variants:["regular"]},"Noto-Sans-JP":{family:"Noto Sans JP",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Javanese":{family:"Noto Sans Javanese",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-KR":{family:"Noto Sans KR",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Kaithi":{family:"Noto Sans Kaithi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Kannada":{family:"Noto Sans Kannada",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Kawi":{family:"Noto Sans Kawi",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Kayah-Li":{family:"Noto Sans Kayah Li",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Kharoshthi":{family:"Noto Sans Kharoshthi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Khmer":{family:"Noto Sans Khmer",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Khojki":{family:"Noto Sans Khojki",category:"sans-serif",variants:["regular"]},"Noto-Sans-Khudawadi":{family:"Noto Sans Khudawadi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Lao":{family:"Noto Sans Lao",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Lao-Looped":{family:"Noto Sans Lao Looped",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Lepcha":{family:"Noto Sans Lepcha",category:"sans-serif",variants:["regular"]},"Noto-Sans-Limbu":{family:"Noto Sans Limbu",category:"sans-serif",variants:["regular"]},"Noto-Sans-Linear-A":{family:"Noto Sans Linear A",category:"sans-serif",variants:["regular"]},"Noto-Sans-Linear-B":{family:"Noto Sans Linear B",category:"sans-serif",variants:["regular"]},"Noto-Sans-Lisu":{family:"Noto Sans Lisu",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Lycian":{family:"Noto Sans Lycian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Lydian":{family:"Noto Sans Lydian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Mahajani":{family:"Noto Sans Mahajani",category:"sans-serif",variants:["regular"]},"Noto-Sans-Malayalam":{family:"Noto Sans Malayalam",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Mandaic":{family:"Noto Sans Mandaic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Manichaean":{family:"Noto Sans Manichaean",category:"sans-serif",variants:["regular"]},"Noto-Sans-Marchen":{family:"Noto Sans Marchen",category:"sans-serif",variants:["regular"]},"Noto-Sans-Masaram-Gondi":{family:"Noto Sans Masaram Gondi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Math":{family:"Noto Sans Math",category:"sans-serif",variants:["regular"]},"Noto-Sans-Mayan-Numerals":{family:"Noto Sans Mayan Numerals",category:"sans-serif",variants:["regular"]},"Noto-Sans-Medefaidrin":{family:"Noto Sans Medefaidrin",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Meetei-Mayek":{family:"Noto Sans Meetei Mayek",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Mende-Kikakui":{family:"Noto Sans Mende Kikakui",category:"sans-serif",variants:["regular"]},"Noto-Sans-Meroitic":{family:"Noto Sans Meroitic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Miao":{family:"Noto Sans Miao",category:"sans-serif",variants:["regular"]},"Noto-Sans-Modi":{family:"Noto Sans Modi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Mongolian":{family:"Noto Sans Mongolian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Mono":{family:"Noto Sans Mono",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Mro":{family:"Noto Sans Mro",category:"sans-serif",variants:["regular"]},"Noto-Sans-Multani":{family:"Noto Sans Multani",category:"sans-serif",variants:["regular"]},"Noto-Sans-Myanmar":{family:"Noto Sans Myanmar",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-NKo":{family:"Noto Sans NKo",category:"sans-serif",variants:["regular"]},"Noto-Sans-NKo-Unjoined":{family:"Noto Sans NKo Unjoined",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Nabataean":{family:"Noto Sans Nabataean",category:"sans-serif",variants:["regular"]},"Noto-Sans-Nag-Mundari":{family:"Noto Sans Nag Mundari",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Nandinagari":{family:"Noto Sans Nandinagari",category:"sans-serif",variants:["regular"]},"Noto-Sans-New-Tai-Lue":{family:"Noto Sans New Tai Lue",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Newa":{family:"Noto Sans Newa",category:"sans-serif",variants:["regular"]},"Noto-Sans-Nushu":{family:"Noto Sans Nushu",category:"sans-serif",variants:["regular"]},"Noto-Sans-Ogham":{family:"Noto Sans Ogham",category:"sans-serif",variants:["regular"]},"Noto-Sans-Ol-Chiki":{family:"Noto Sans Ol Chiki",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Old-Hungarian":{family:"Noto Sans Old Hungarian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Old-Italic":{family:"Noto Sans Old Italic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Old-North-Arabian":{family:"Noto Sans Old North Arabian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Old-Permic":{family:"Noto Sans Old Permic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Old-Persian":{family:"Noto Sans Old Persian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Old-Sogdian":{family:"Noto Sans Old Sogdian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Old-South-Arabian":{family:"Noto Sans Old South Arabian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Old-Turkic":{family:"Noto Sans Old Turkic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Oriya":{family:"Noto Sans Oriya",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Osage":{family:"Noto Sans Osage",category:"sans-serif",variants:["regular"]},"Noto-Sans-Osmanya":{family:"Noto Sans Osmanya",category:"sans-serif",variants:["regular"]},"Noto-Sans-Pahawh-Hmong":{family:"Noto Sans Pahawh Hmong",category:"sans-serif",variants:["regular"]},"Noto-Sans-Palmyrene":{family:"Noto Sans Palmyrene",category:"sans-serif",variants:["regular"]},"Noto-Sans-Pau-Cin-Hau":{family:"Noto Sans Pau Cin Hau",category:"sans-serif",variants:["regular"]},"Noto-Sans-Phags-Pa":{family:"Noto Sans Phags Pa",category:"sans-serif",variants:["regular"]},"Noto-Sans-Phoenician":{family:"Noto Sans Phoenician",category:"sans-serif",variants:["regular"]},"Noto-Sans-Psalter-Pahlavi":{family:"Noto Sans Psalter Pahlavi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Rejang":{family:"Noto Sans Rejang",category:"sans-serif",variants:["regular"]},"Noto-Sans-Runic":{family:"Noto Sans Runic",category:"sans-serif",variants:["regular"]},"Noto-Sans-SC":{family:"Noto Sans SC",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Samaritan":{family:"Noto Sans Samaritan",category:"sans-serif",variants:["regular"]},"Noto-Sans-Saurashtra":{family:"Noto Sans Saurashtra",category:"sans-serif",variants:["regular"]},"Noto-Sans-Sharada":{family:"Noto Sans Sharada",category:"sans-serif",variants:["regular"]},"Noto-Sans-Shavian":{family:"Noto Sans Shavian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Siddham":{family:"Noto Sans Siddham",category:"sans-serif",variants:["regular"]},"Noto-Sans-SignWriting":{family:"Noto Sans SignWriting",category:"sans-serif",variants:["regular"]},"Noto-Sans-Sinhala":{family:"Noto Sans Sinhala",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Sogdian":{family:"Noto Sans Sogdian",category:"sans-serif",variants:["regular"]},"Noto-Sans-Sora-Sompeng":{family:"Noto Sans Sora Sompeng",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Soyombo":{family:"Noto Sans Soyombo",category:"sans-serif",variants:["regular"]},"Noto-Sans-Sundanese":{family:"Noto Sans Sundanese",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Syloti-Nagri":{family:"Noto Sans Syloti Nagri",category:"sans-serif",variants:["regular"]},"Noto-Sans-Symbols":{family:"Noto Sans Symbols",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Symbols-2":{family:"Noto Sans Symbols 2",category:"sans-serif",variants:["regular"]},"Noto-Sans-Syriac":{family:"Noto Sans Syriac",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Syriac-Eastern":{family:"Noto Sans Syriac Eastern",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-TC":{family:"Noto Sans TC",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Tagalog":{family:"Noto Sans Tagalog",category:"sans-serif",variants:["regular"]},"Noto-Sans-Tagbanwa":{family:"Noto Sans Tagbanwa",category:"sans-serif",variants:["regular"]},"Noto-Sans-Tai-Le":{family:"Noto Sans Tai Le",category:"sans-serif",variants:["regular"]},"Noto-Sans-Tai-Tham":{family:"Noto Sans Tai Tham",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Tai-Viet":{family:"Noto Sans Tai Viet",category:"sans-serif",variants:["regular"]},"Noto-Sans-Takri":{family:"Noto Sans Takri",category:"sans-serif",variants:["regular"]},"Noto-Sans-Tamil":{family:"Noto Sans Tamil",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Tamil-Supplement":{family:"Noto Sans Tamil Supplement",category:"sans-serif",variants:["regular"]},"Noto-Sans-Tangsa":{family:"Noto Sans Tangsa",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Telugu":{family:"Noto Sans Telugu",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Thaana":{family:"Noto Sans Thaana",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Thai":{family:"Noto Sans Thai",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Thai-Looped":{family:"Noto Sans Thai Looped",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Sans-Tifinagh":{family:"Noto Sans Tifinagh",category:"sans-serif",variants:["regular"]},"Noto-Sans-Tirhuta":{family:"Noto Sans Tirhuta",category:"sans-serif",variants:["regular"]},"Noto-Sans-Ugaritic":{family:"Noto Sans Ugaritic",category:"sans-serif",variants:["regular"]},"Noto-Sans-Vai":{family:"Noto Sans Vai",category:"sans-serif",variants:["regular"]},"Noto-Sans-Vithkuqi":{family:"Noto Sans Vithkuqi",category:"sans-serif",variants:["regular","500","600","700"]},"Noto-Sans-Wancho":{family:"Noto Sans Wancho",category:"sans-serif",variants:["regular"]},"Noto-Sans-Warang-Citi":{family:"Noto Sans Warang Citi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Yi":{family:"Noto Sans Yi",category:"sans-serif",variants:["regular"]},"Noto-Sans-Zanabazar-Square":{family:"Noto Sans Zanabazar Square",category:"sans-serif",variants:["regular"]},"Noto-Serif":{family:"Noto Serif",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Noto-Serif-Ahom":{family:"Noto Serif Ahom",category:"serif",variants:["regular"]},"Noto-Serif-Armenian":{family:"Noto Serif Armenian",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Balinese":{family:"Noto Serif Balinese",category:"serif",variants:["regular"]},"Noto-Serif-Bengali":{family:"Noto Serif Bengali",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Devanagari":{family:"Noto Serif Devanagari",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Display":{family:"Noto Serif Display",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Noto-Serif-Dogra":{family:"Noto Serif Dogra",category:"serif",variants:["regular"]},"Noto-Serif-Ethiopic":{family:"Noto Serif Ethiopic",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Georgian":{family:"Noto Serif Georgian",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Grantha":{family:"Noto Serif Grantha",category:"serif",variants:["regular"]},"Noto-Serif-Gujarati":{family:"Noto Serif Gujarati",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Gurmukhi":{family:"Noto Serif Gurmukhi",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-HK":{family:"Noto Serif HK",category:"serif",variants:["200","300","regular","500","600","700","800","900"]},"Noto-Serif-Hebrew":{family:"Noto Serif Hebrew",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-JP":{family:"Noto Serif JP",category:"serif",variants:["200","300","regular","500","600","700","900"]},"Noto-Serif-KR":{family:"Noto Serif KR",category:"serif",variants:["200","300","regular","500","600","700","900"]},"Noto-Serif-Kannada":{family:"Noto Serif Kannada",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Khitan-Small-Script":{family:"Noto Serif Khitan Small Script",category:"serif",variants:["regular"]},"Noto-Serif-Khmer":{family:"Noto Serif Khmer",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Khojki":{family:"Noto Serif Khojki",category:"serif",variants:["regular","500","600","700"]},"Noto-Serif-Lao":{family:"Noto Serif Lao",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Makasar":{family:"Noto Serif Makasar",category:"serif",variants:["regular"]},"Noto-Serif-Malayalam":{family:"Noto Serif Malayalam",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Myanmar":{family:"Noto Serif Myanmar",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-NP-Hmong":{family:"Noto Serif NP Hmong",category:"serif",variants:["regular","500","600","700"]},"Noto-Serif-Old-Uyghur":{family:"Noto Serif Old Uyghur",category:"serif",variants:["regular"]},"Noto-Serif-Oriya":{family:"Noto Serif Oriya",category:"serif",variants:["regular","500","600","700"]},"Noto-Serif-Ottoman-Siyaq":{family:"Noto Serif Ottoman Siyaq",category:"serif",variants:["regular"]},"Noto-Serif-SC":{family:"Noto Serif SC",category:"serif",variants:["200","300","regular","500","600","700","900"]},"Noto-Serif-Sinhala":{family:"Noto Serif Sinhala",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-TC":{family:"Noto Serif TC",category:"serif",variants:["200","300","regular","500","600","700","900"]},"Noto-Serif-Tamil":{family:"Noto Serif Tamil",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Noto-Serif-Tangut":{family:"Noto Serif Tangut",category:"serif",variants:["regular"]},"Noto-Serif-Telugu":{family:"Noto Serif Telugu",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Thai":{family:"Noto Serif Thai",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Tibetan":{family:"Noto Serif Tibetan",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Noto-Serif-Toto":{family:"Noto Serif Toto",category:"serif",variants:["regular","500","600","700"]},"Noto-Serif-Vithkuqi":{family:"Noto Serif Vithkuqi",category:"serif",variants:["regular","500","600","700"]},"Noto-Serif-Yezidi":{family:"Noto Serif Yezidi",category:"serif",variants:["regular","500","600","700"]},"Noto-Traditional-Nushu":{family:"Noto Traditional Nushu",category:"sans-serif",variants:["300","regular","500","600","700"]},"Nova-Cut":{family:"Nova Cut",category:"display",variants:["regular"]},"Nova-Flat":{family:"Nova Flat",category:"display",variants:["regular"]},"Nova-Mono":{family:"Nova Mono",category:"monospace",variants:["regular"]},"Nova-Oval":{family:"Nova Oval",category:"display",variants:["regular"]},"Nova-Round":{family:"Nova Round",category:"display",variants:["regular"]},"Nova-Script":{family:"Nova Script",category:"display",variants:["regular"]},"Nova-Slim":{family:"Nova Slim",category:"display",variants:["regular"]},"Nova-Square":{family:"Nova Square",category:"display",variants:["regular"]},Numans:{family:"Numans",category:"sans-serif",variants:["regular"]},Nunito:{family:"Nunito",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Nunito-Sans":{family:"Nunito Sans",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Nuosu-SIL":{family:"Nuosu SIL",category:"sans-serif",variants:["regular"]},"Odibee-Sans":{family:"Odibee Sans",category:"display",variants:["regular"]},"Odor-Mean-Chey":{family:"Odor Mean Chey",category:"serif",variants:["regular"]},Offside:{family:"Offside",category:"display",variants:["regular"]},Oi:{family:"Oi",category:"display",variants:["regular"]},"Old-Standard-TT":{family:"Old Standard TT",category:"serif",variants:["regular","italic","700"]},Oldenburg:{family:"Oldenburg",category:"display",variants:["regular"]},Ole:{family:"Ole",category:"handwriting",variants:["regular"]},"Oleo-Script":{family:"Oleo Script",category:"display",variants:["regular","700"]},"Oleo-Script-Swash-Caps":{family:"Oleo Script Swash Caps",category:"display",variants:["regular","700"]},Onest:{family:"Onest",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Oooh-Baby":{family:"Oooh Baby",category:"handwriting",variants:["regular"]},"Open-Sans":{family:"Open Sans",category:"sans-serif",variants:["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"]},Oranienbaum:{family:"Oranienbaum",category:"serif",variants:["regular"]},Orbit:{family:"Orbit",category:"sans-serif",variants:["regular"]},Orbitron:{family:"Orbitron",category:"sans-serif",variants:["regular","500","600","700","800","900"]},Oregano:{family:"Oregano",category:"display",variants:["regular","italic"]},"Orelega-One":{family:"Orelega One",category:"display",variants:["regular"]},Orienta:{family:"Orienta",category:"sans-serif",variants:["regular"]},"Original-Surfer":{family:"Original Surfer",category:"display",variants:["regular"]},Oswald:{family:"Oswald",category:"sans-serif",variants:["200","300","regular","500","600","700"]},Outfit:{family:"Outfit",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Over-the-Rainbow":{family:"Over the Rainbow",category:"handwriting",variants:["regular"]},Overlock:{family:"Overlock",category:"display",variants:["regular","italic","700","700italic","900","900italic"]},"Overlock-SC":{family:"Overlock SC",category:"display",variants:["regular"]},Overpass:{family:"Overpass",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Overpass-Mono":{family:"Overpass Mono",category:"monospace",variants:["300","regular","500","600","700"]},Ovo:{family:"Ovo",category:"serif",variants:["regular"]},Oxanium:{family:"Oxanium",category:"display",variants:["200","300","regular","500","600","700","800"]},Oxygen:{family:"Oxygen",category:"sans-serif",variants:["300","regular","700"]},"Oxygen-Mono":{family:"Oxygen Mono",category:"monospace",variants:["regular"]},"PT-Mono":{family:"PT Mono",category:"monospace",variants:["regular"]},"PT-Sans":{family:"PT Sans",category:"sans-serif",variants:["regular","italic","700","700italic"]},"PT-Sans-Caption":{family:"PT Sans Caption",category:"sans-serif",variants:["regular","700"]},"PT-Sans-Narrow":{family:"PT Sans Narrow",category:"sans-serif",variants:["regular","700"]},"PT-Serif":{family:"PT Serif",category:"serif",variants:["regular","italic","700","700italic"]},"PT-Serif-Caption":{family:"PT Serif Caption",category:"serif",variants:["regular","italic"]},Pacifico:{family:"Pacifico",category:"handwriting",variants:["regular"]},Padauk:{family:"Padauk",category:"sans-serif",variants:["regular","700"]},"Padyakke-Expanded-One":{family:"Padyakke Expanded One",category:"serif",variants:["regular"]},Palanquin:{family:"Palanquin",category:"sans-serif",variants:["100","200","300","regular","500","600","700"]},"Palanquin-Dark":{family:"Palanquin Dark",category:"sans-serif",variants:["regular","500","600","700"]},"Palette-Mosaic":{family:"Palette Mosaic",category:"display",variants:["regular"]},Pangolin:{family:"Pangolin",category:"handwriting",variants:["regular"]},Paprika:{family:"Paprika",category:"display",variants:["regular"]},Parisienne:{family:"Parisienne",category:"handwriting",variants:["regular"]},"Passero-One":{family:"Passero One",category:"display",variants:["regular"]},"Passion-One":{family:"Passion One",category:"display",variants:["regular","700","900"]},"Passions-Conflict":{family:"Passions Conflict",category:"handwriting",variants:["regular"]},"Pathway-Extreme":{family:"Pathway Extreme",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Pathway-Gothic-One":{family:"Pathway Gothic One",category:"sans-serif",variants:["regular"]},"Patrick-Hand":{family:"Patrick Hand",category:"handwriting",variants:["regular"]},"Patrick-Hand-SC":{family:"Patrick Hand SC",category:"handwriting",variants:["regular"]},Pattaya:{family:"Pattaya",category:"sans-serif",variants:["regular"]},"Patua-One":{family:"Patua One",category:"display",variants:["regular"]},Pavanam:{family:"Pavanam",category:"sans-serif",variants:["regular"]},"Paytone-One":{family:"Paytone One",category:"sans-serif",variants:["regular"]},Peddana:{family:"Peddana",category:"serif",variants:["regular"]},Peralta:{family:"Peralta",category:"serif",variants:["regular"]},"Permanent-Marker":{family:"Permanent Marker",category:"handwriting",variants:["regular"]},Petemoss:{family:"Petemoss",category:"handwriting",variants:["regular"]},"Petit-Formal-Script":{family:"Petit Formal Script",category:"handwriting",variants:["regular"]},Petrona:{family:"Petrona",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Philosopher:{family:"Philosopher",category:"sans-serif",variants:["regular","italic","700","700italic"]},Phudu:{family:"Phudu",category:"display",variants:["300","regular","500","600","700","800","900"]},Piazzolla:{family:"Piazzolla",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Piedra:{family:"Piedra",category:"display",variants:["regular"]},"Pinyon-Script":{family:"Pinyon Script",category:"handwriting",variants:["regular"]},"Pirata-One":{family:"Pirata One",category:"display",variants:["regular"]},"Pixelify-Sans":{family:"Pixelify Sans",category:"display",variants:["regular","500","600","700"]},Plaster:{family:"Plaster",category:"display",variants:["regular"]},Play:{family:"Play",category:"sans-serif",variants:["regular","700"]},Playball:{family:"Playball",category:"display",variants:["regular"]},Playfair:{family:"Playfair",category:"serif",variants:["300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Playfair-Display":{family:"Playfair Display",category:"serif",variants:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"]},"Playfair-Display-SC":{family:"Playfair Display SC",category:"serif",variants:["regular","italic","700","700italic","900","900italic"]},"Playpen-Sans":{family:"Playpen Sans",category:"handwriting",variants:["100","200","300","regular","500","600","700","800"]},"Plus-Jakarta-Sans":{family:"Plus Jakarta Sans",category:"sans-serif",variants:["200","300","regular","500","600","700","800","200italic","300italic","italic","500italic","600italic","700italic","800italic"]},Podkova:{family:"Podkova",category:"serif",variants:["regular","500","600","700","800"]},"Poiret-One":{family:"Poiret One",category:"display",variants:["regular"]},"Poller-One":{family:"Poller One",category:"display",variants:["regular"]},"Poltawski-Nowy":{family:"Poltawski Nowy",category:"serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},Poly:{family:"Poly",category:"serif",variants:["regular","italic"]},Pompiere:{family:"Pompiere",category:"display",variants:["regular"]},"Pontano-Sans":{family:"Pontano Sans",category:"sans-serif",variants:["300","regular","500","600","700"]},"Poor-Story":{family:"Poor Story",category:"display",variants:["regular"]},Poppins:{family:"Poppins",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Port-Lligat-Sans":{family:"Port Lligat Sans",category:"sans-serif",variants:["regular"]},"Port-Lligat-Slab":{family:"Port Lligat Slab",category:"serif",variants:["regular"]},"Potta-One":{family:"Potta One",category:"display",variants:["regular"]},"Pragati-Narrow":{family:"Pragati Narrow",category:"sans-serif",variants:["regular","700"]},Praise:{family:"Praise",category:"handwriting",variants:["regular"]},Prata:{family:"Prata",category:"serif",variants:["regular"]},Preahvihear:{family:"Preahvihear",category:"sans-serif",variants:["regular"]},"Press-Start-2P":{family:"Press Start 2P",category:"display",variants:["regular"]},Pridi:{family:"Pridi",category:"serif",variants:["200","300","regular","500","600","700"]},"Princess-Sofia":{family:"Princess Sofia",category:"handwriting",variants:["regular"]},Prociono:{family:"Prociono",category:"serif",variants:["regular"]},Prompt:{family:"Prompt",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},"Prosto-One":{family:"Prosto One",category:"display",variants:["regular"]},"Protest-Guerrilla":{family:"Protest Guerrilla",category:"display",variants:["regular"]},"Protest-Revolution":{family:"Protest Revolution",category:"display",variants:["regular"]},"Protest-Riot":{family:"Protest Riot",category:"display",variants:["regular"]},"Protest-Strike":{family:"Protest Strike",category:"display",variants:["regular"]},"Proza-Libre":{family:"Proza Libre",category:"sans-serif",variants:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},"Public-Sans":{family:"Public Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Puppies-Play":{family:"Puppies Play",category:"handwriting",variants:["regular"]},Puritan:{family:"Puritan",category:"sans-serif",variants:["regular","italic","700","700italic"]},"Purple-Purse":{family:"Purple Purse",category:"display",variants:["regular"]},Qahiri:{family:"Qahiri",category:"sans-serif",variants:["regular"]},Quando:{family:"Quando",category:"serif",variants:["regular"]},Quantico:{family:"Quantico",category:"sans-serif",variants:["regular","italic","700","700italic"]},Quattrocento:{family:"Quattrocento",category:"serif",variants:["regular","700"]},"Quattrocento-Sans":{family:"Quattrocento Sans",category:"sans-serif",variants:["regular","italic","700","700italic"]},Questrial:{family:"Questrial",category:"sans-serif",variants:["regular"]},Quicksand:{family:"Quicksand",category:"sans-serif",variants:["300","regular","500","600","700"]},Quintessential:{family:"Quintessential",category:"handwriting",variants:["regular"]},Qwigley:{family:"Qwigley",category:"handwriting",variants:["regular"]},"Qwitcher-Grypen":{family:"Qwitcher Grypen",category:"handwriting",variants:["regular","700"]},REM:{family:"REM",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Racing-Sans-One":{family:"Racing Sans One",category:"display",variants:["regular"]},"Radio-Canada":{family:"Radio Canada",category:"sans-serif",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},Radley:{family:"Radley",category:"serif",variants:["regular","italic"]},Rajdhani:{family:"Rajdhani",category:"sans-serif",variants:["300","regular","500","600","700"]},Rakkas:{family:"Rakkas",category:"display",variants:["regular"]},Raleway:{family:"Raleway",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Raleway-Dots":{family:"Raleway Dots",category:"display",variants:["regular"]},Ramabhadra:{family:"Ramabhadra",category:"sans-serif",variants:["regular"]},Ramaraja:{family:"Ramaraja",category:"serif",variants:["regular"]},Rambla:{family:"Rambla",category:"sans-serif",variants:["regular","italic","700","700italic"]},"Rammetto-One":{family:"Rammetto One",category:"display",variants:["regular"]},"Rampart-One":{family:"Rampart One",category:"display",variants:["regular"]},Ranchers:{family:"Ranchers",category:"display",variants:["regular"]},Rancho:{family:"Rancho",category:"handwriting",variants:["regular"]},Ranga:{family:"Ranga",category:"display",variants:["regular","700"]},Rasa:{family:"Rasa",category:"serif",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},Rationale:{family:"Rationale",category:"sans-serif",variants:["regular"]},"Ravi-Prakash":{family:"Ravi Prakash",category:"display",variants:["regular"]},"Readex-Pro":{family:"Readex Pro",category:"sans-serif",variants:["200","300","regular","500","600","700"]},Recursive:{family:"Recursive",category:"sans-serif",variants:["300","regular","500","600","700","800","900"]},"Red-Hat-Display":{family:"Red Hat Display",category:"sans-serif",variants:["300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Red-Hat-Mono":{family:"Red Hat Mono",category:"monospace",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},"Red-Hat-Text":{family:"Red Hat Text",category:"sans-serif",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},"Red-Rose":{family:"Red Rose",category:"display",variants:["300","regular","500","600","700"]},Redacted:{family:"Redacted",category:"display",variants:["regular"]},"Redacted-Script":{family:"Redacted Script",category:"display",variants:["300","regular","700"]},Redressed:{family:"Redressed",category:"handwriting",variants:["regular"]},"Reem-Kufi":{family:"Reem Kufi",category:"sans-serif",variants:["regular","500","600","700"]},"Reem-Kufi-Fun":{family:"Reem Kufi Fun",category:"sans-serif",variants:["regular","500","600","700"]},"Reem-Kufi-Ink":{family:"Reem Kufi Ink",category:"sans-serif",variants:["regular"]},"Reenie-Beanie":{family:"Reenie Beanie",category:"handwriting",variants:["regular"]},"Reggae-One":{family:"Reggae One",category:"display",variants:["regular"]},"Rethink-Sans":{family:"Rethink Sans",category:"sans-serif",variants:["regular","500","600","700","800","italic","500italic","600italic","700italic","800italic"]},Revalia:{family:"Revalia",category:"display",variants:["regular"]},"Rhodium-Libre":{family:"Rhodium Libre",category:"serif",variants:["regular"]},Ribeye:{family:"Ribeye",category:"display",variants:["regular"]},"Ribeye-Marrow":{family:"Ribeye Marrow",category:"display",variants:["regular"]},Righteous:{family:"Righteous",category:"display",variants:["regular"]},Risque:{family:"Risque",category:"display",variants:["regular"]},"Road-Rage":{family:"Road Rage",category:"display",variants:["regular"]},Roboto:{family:"Roboto",category:"sans-serif",variants:["100","100italic","300","300italic","regular","italic","500","500italic","700","700italic","900","900italic"]},"Roboto-Condensed":{family:"Roboto Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Roboto-Flex":{family:"Roboto Flex",category:"sans-serif",variants:["regular"]},"Roboto-Mono":{family:"Roboto Mono",category:"monospace",variants:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"]},"Roboto-Serif":{family:"Roboto Serif",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Roboto-Slab":{family:"Roboto Slab",category:"serif",variants:["100","200","300","regular","500","600","700","800","900"]},Rochester:{family:"Rochester",category:"handwriting",variants:["regular"]},"Rock-3D":{family:"Rock 3D",category:"display",variants:["regular"]},"Rock-Salt":{family:"Rock Salt",category:"handwriting",variants:["regular"]},"RocknRoll-One":{family:"RocknRoll One",category:"sans-serif",variants:["regular"]},Rokkitt:{family:"Rokkitt",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Romanesco:{family:"Romanesco",category:"handwriting",variants:["regular"]},"Ropa-Sans":{family:"Ropa Sans",category:"sans-serif",variants:["regular","italic"]},Rosario:{family:"Rosario",category:"sans-serif",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},Rosarivo:{family:"Rosarivo",category:"serif",variants:["regular","italic"]},"Rouge-Script":{family:"Rouge Script",category:"handwriting",variants:["regular"]},Rowdies:{family:"Rowdies",category:"display",variants:["300","regular","700"]},"Rozha-One":{family:"Rozha One",category:"serif",variants:["regular"]},Rubik:{family:"Rubik",category:"sans-serif",variants:["300","regular","500","600","700","800","900","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Rubik-80s-Fade":{family:"Rubik 80s Fade",category:"display",variants:["regular"]},"Rubik-Beastly":{family:"Rubik Beastly",category:"display",variants:["regular"]},"Rubik-Broken-Fax":{family:"Rubik Broken Fax",category:"display",variants:["regular"]},"Rubik-Bubbles":{family:"Rubik Bubbles",category:"display",variants:["regular"]},"Rubik-Burned":{family:"Rubik Burned",category:"display",variants:["regular"]},"Rubik-Dirt":{family:"Rubik Dirt",category:"display",variants:["regular"]},"Rubik-Distressed":{family:"Rubik Distressed",category:"display",variants:["regular"]},"Rubik-Doodle-Shadow":{family:"Rubik Doodle Shadow",category:"display",variants:["regular"]},"Rubik-Doodle-Triangles":{family:"Rubik Doodle Triangles",category:"display",variants:["regular"]},"Rubik-Gemstones":{family:"Rubik Gemstones",category:"display",variants:["regular"]},"Rubik-Glitch":{family:"Rubik Glitch",category:"display",variants:["regular"]},"Rubik-Glitch-Pop":{family:"Rubik Glitch Pop",category:"display",variants:["regular"]},"Rubik-Iso":{family:"Rubik Iso",category:"display",variants:["regular"]},"Rubik-Lines":{family:"Rubik Lines",category:"display",variants:["regular"]},"Rubik-Maps":{family:"Rubik Maps",category:"display",variants:["regular"]},"Rubik-Marker-Hatch":{family:"Rubik Marker Hatch",category:"display",variants:["regular"]},"Rubik-Maze":{family:"Rubik Maze",category:"display",variants:["regular"]},"Rubik-Microbe":{family:"Rubik Microbe",category:"display",variants:["regular"]},"Rubik-Mono-One":{family:"Rubik Mono One",category:"sans-serif",variants:["regular"]},"Rubik-Moonrocks":{family:"Rubik Moonrocks",category:"display",variants:["regular"]},"Rubik-Pixels":{family:"Rubik Pixels",category:"display",variants:["regular"]},"Rubik-Puddles":{family:"Rubik Puddles",category:"display",variants:["regular"]},"Rubik-Scribble":{family:"Rubik Scribble",category:"display",variants:["regular"]},"Rubik-Spray-Paint":{family:"Rubik Spray Paint",category:"display",variants:["regular"]},"Rubik-Storm":{family:"Rubik Storm",category:"display",variants:["regular"]},"Rubik-Vinyl":{family:"Rubik Vinyl",category:"display",variants:["regular"]},"Rubik-Wet-Paint":{family:"Rubik Wet Paint",category:"display",variants:["regular"]},Ruda:{family:"Ruda",category:"sans-serif",variants:["regular","500","600","700","800","900"]},Rufina:{family:"Rufina",category:"serif",variants:["regular","700"]},"Ruge-Boogie":{family:"Ruge Boogie",category:"handwriting",variants:["regular"]},Ruluko:{family:"Ruluko",category:"sans-serif",variants:["regular"]},"Rum-Raisin":{family:"Rum Raisin",category:"sans-serif",variants:["regular"]},"Ruslan-Display":{family:"Ruslan Display",category:"display",variants:["regular"]},"Russo-One":{family:"Russo One",category:"sans-serif",variants:["regular"]},Ruthie:{family:"Ruthie",category:"handwriting",variants:["regular"]},Ruwudu:{family:"Ruwudu",category:"serif",variants:["regular","500","600","700"]},Rye:{family:"Rye",category:"display",variants:["regular"]},"STIX-Two-Text":{family:"STIX Two Text",category:"serif",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},Sacramento:{family:"Sacramento",category:"handwriting",variants:["regular"]},Sahitya:{family:"Sahitya",category:"serif",variants:["regular","700"]},Sail:{family:"Sail",category:"display",variants:["regular"]},Saira:{family:"Saira",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Saira-Condensed":{family:"Saira Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Saira-Extra-Condensed":{family:"Saira Extra Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Saira-Semi-Condensed":{family:"Saira Semi Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Saira-Stencil-One":{family:"Saira Stencil One",category:"display",variants:["regular"]},Salsa:{family:"Salsa",category:"display",variants:["regular"]},Sanchez:{family:"Sanchez",category:"serif",variants:["regular","italic"]},Sancreek:{family:"Sancreek",category:"display",variants:["regular"]},Sansita:{family:"Sansita",category:"sans-serif",variants:["regular","italic","700","700italic","800","800italic","900","900italic"]},"Sansita-Swashed":{family:"Sansita Swashed",category:"display",variants:["300","regular","500","600","700","800","900"]},Sarabun:{family:"Sarabun",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},Sarala:{family:"Sarala",category:"sans-serif",variants:["regular","700"]},Sarina:{family:"Sarina",category:"display",variants:["regular"]},Sarpanch:{family:"Sarpanch",category:"sans-serif",variants:["regular","500","600","700","800","900"]},"Sassy-Frass":{family:"Sassy Frass",category:"handwriting",variants:["regular"]},Satisfy:{family:"Satisfy",category:"handwriting",variants:["regular"]},"Sawarabi-Gothic":{family:"Sawarabi Gothic",category:"sans-serif",variants:["regular"]},"Sawarabi-Mincho":{family:"Sawarabi Mincho",category:"serif",variants:["regular"]},Scada:{family:"Scada",category:"sans-serif",variants:["regular","italic","700","700italic"]},"Scheherazade-New":{family:"Scheherazade New",category:"serif",variants:["regular","500","600","700"]},"Schibsted-Grotesk":{family:"Schibsted Grotesk",category:"sans-serif",variants:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"]},Schoolbell:{family:"Schoolbell",category:"handwriting",variants:["regular"]},"Scope-One":{family:"Scope One",category:"serif",variants:["regular"]},"Seaweed-Script":{family:"Seaweed Script",category:"display",variants:["regular"]},"Secular-One":{family:"Secular One",category:"sans-serif",variants:["regular"]},"Sedgwick-Ave":{family:"Sedgwick Ave",category:"handwriting",variants:["regular"]},"Sedgwick-Ave-Display":{family:"Sedgwick Ave Display",category:"handwriting",variants:["regular"]},Sen:{family:"Sen",category:"sans-serif",variants:["regular","500","600","700","800"]},"Send-Flowers":{family:"Send Flowers",category:"handwriting",variants:["regular"]},Sevillana:{family:"Sevillana",category:"display",variants:["regular"]},"Seymour-One":{family:"Seymour One",category:"sans-serif",variants:["regular"]},"Shadows-Into-Light":{family:"Shadows Into Light",category:"handwriting",variants:["regular"]},"Shadows-Into-Light-Two":{family:"Shadows Into Light Two",category:"handwriting",variants:["regular"]},Shalimar:{family:"Shalimar",category:"handwriting",variants:["regular"]},"Shantell-Sans":{family:"Shantell Sans",category:"display",variants:["300","regular","500","600","700","800","300italic","italic","500italic","600italic","700italic","800italic"]},Shanti:{family:"Shanti",category:"sans-serif",variants:["regular"]},Share:{family:"Share",category:"sans-serif",variants:["regular","italic","700","700italic"]},"Share-Tech":{family:"Share Tech",category:"sans-serif",variants:["regular"]},"Share-Tech-Mono":{family:"Share Tech Mono",category:"monospace",variants:["regular"]},"Shippori-Antique":{family:"Shippori Antique",category:"sans-serif",variants:["regular"]},"Shippori-Antique-B1":{family:"Shippori Antique B1",category:"sans-serif",variants:["regular"]},"Shippori-Mincho":{family:"Shippori Mincho",category:"serif",variants:["regular","500","600","700","800"]},"Shippori-Mincho-B1":{family:"Shippori Mincho B1",category:"serif",variants:["regular","500","600","700","800"]},Shizuru:{family:"Shizuru",category:"display",variants:["regular"]},Shojumaru:{family:"Shojumaru",category:"display",variants:["regular"]},"Short-Stack":{family:"Short Stack",category:"handwriting",variants:["regular"]},Shrikhand:{family:"Shrikhand",category:"display",variants:["regular"]},Siemreap:{family:"Siemreap",category:"sans-serif",variants:["regular"]},Sigmar:{family:"Sigmar",category:"display",variants:["regular"]},"Sigmar-One":{family:"Sigmar One",category:"display",variants:["regular"]},Signika:{family:"Signika",category:"sans-serif",variants:["300","regular","500","600","700"]},"Signika-Negative":{family:"Signika Negative",category:"sans-serif",variants:["300","regular","500","600","700"]},Silkscreen:{family:"Silkscreen",category:"display",variants:["regular","700"]},Simonetta:{family:"Simonetta",category:"display",variants:["regular","italic","900","900italic"]},"Single-Day":{family:"Single Day",category:"display",variants:["regular"]},Sintony:{family:"Sintony",category:"sans-serif",variants:["regular","700"]},"Sirin-Stencil":{family:"Sirin Stencil",category:"display",variants:["regular"]},"Six-Caps":{family:"Six Caps",category:"sans-serif",variants:["regular"]},Sixtyfour:{family:"Sixtyfour",category:"monospace",variants:["regular"]},Skranji:{family:"Skranji",category:"display",variants:["regular","700"]},"Slabo-13px":{family:"Slabo 13px",category:"serif",variants:["regular"]},"Slabo-27px":{family:"Slabo 27px",category:"serif",variants:["regular"]},Slackey:{family:"Slackey",category:"display",variants:["regular"]},"Slackside-One":{family:"Slackside One",category:"handwriting",variants:["regular"]},Smokum:{family:"Smokum",category:"display",variants:["regular"]},Smooch:{family:"Smooch",category:"handwriting",variants:["regular"]},"Smooch-Sans":{family:"Smooch Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Smythe:{family:"Smythe",category:"display",variants:["regular"]},Sniglet:{family:"Sniglet",category:"display",variants:["regular","800"]},Snippet:{family:"Snippet",category:"sans-serif",variants:["regular"]},"Snowburst-One":{family:"Snowburst One",category:"display",variants:["regular"]},"Sofadi-One":{family:"Sofadi One",category:"display",variants:["regular"]},Sofia:{family:"Sofia",category:"handwriting",variants:["regular"]},"Sofia-Sans":{family:"Sofia Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Sofia-Sans-Condensed":{family:"Sofia Sans Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Sofia-Sans-Extra-Condensed":{family:"Sofia Sans Extra Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Sofia-Sans-Semi-Condensed":{family:"Sofia Sans Semi Condensed",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Solitreo:{family:"Solitreo",category:"handwriting",variants:["regular"]},Solway:{family:"Solway",category:"serif",variants:["300","regular","500","700","800"]},"Sometype-Mono":{family:"Sometype Mono",category:"monospace",variants:["regular","500","600","700","italic","500italic","600italic","700italic"]},"Song-Myung":{family:"Song Myung",category:"serif",variants:["regular"]},Sono:{family:"Sono",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},"Sonsie-One":{family:"Sonsie One",category:"display",variants:["regular"]},Sora:{family:"Sora",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},"Sorts-Mill-Goudy":{family:"Sorts Mill Goudy",category:"serif",variants:["regular","italic"]},"Source-Code-Pro":{family:"Source Code Pro",category:"monospace",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Source-Sans-3":{family:"Source Sans 3",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Source-Serif-4":{family:"Source Serif 4",category:"serif",variants:["200","300","regular","500","600","700","800","900","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Space-Grotesk":{family:"Space Grotesk",category:"sans-serif",variants:["300","regular","500","600","700"]},"Space-Mono":{family:"Space Mono",category:"monospace",variants:["regular","italic","700","700italic"]},"Special-Elite":{family:"Special Elite",category:"display",variants:["regular"]},Spectral:{family:"Spectral",category:"serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},"Spectral-SC":{family:"Spectral SC",category:"serif",variants:["200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},"Spicy-Rice":{family:"Spicy Rice",category:"display",variants:["regular"]},Spinnaker:{family:"Spinnaker",category:"sans-serif",variants:["regular"]},Spirax:{family:"Spirax",category:"display",variants:["regular"]},Splash:{family:"Splash",category:"handwriting",variants:["regular"]},"Spline-Sans":{family:"Spline Sans",category:"sans-serif",variants:["300","regular","500","600","700"]},"Spline-Sans-Mono":{family:"Spline Sans Mono",category:"monospace",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},"Squada-One":{family:"Squada One",category:"display",variants:["regular"]},"Square-Peg":{family:"Square Peg",category:"handwriting",variants:["regular"]},"Sree-Krushnadevaraya":{family:"Sree Krushnadevaraya",category:"serif",variants:["regular"]},Sriracha:{family:"Sriracha",category:"handwriting",variants:["regular"]},Srisakdi:{family:"Srisakdi",category:"display",variants:["regular","700"]},Staatliches:{family:"Staatliches",category:"display",variants:["regular"]},Stalemate:{family:"Stalemate",category:"handwriting",variants:["regular"]},"Stalinist-One":{family:"Stalinist One",category:"display",variants:["regular"]},"Stardos-Stencil":{family:"Stardos Stencil",category:"display",variants:["regular","700"]},Stick:{family:"Stick",category:"sans-serif",variants:["regular"]},"Stick-No-Bills":{family:"Stick No Bills",category:"sans-serif",variants:["200","300","regular","500","600","700","800"]},"Stint-Ultra-Condensed":{family:"Stint Ultra Condensed",category:"serif",variants:["regular"]},"Stint-Ultra-Expanded":{family:"Stint Ultra Expanded",category:"serif",variants:["regular"]},Stoke:{family:"Stoke",category:"serif",variants:["300","regular"]},Strait:{family:"Strait",category:"sans-serif",variants:["regular"]},"Style-Script":{family:"Style Script",category:"handwriting",variants:["regular"]},Stylish:{family:"Stylish",category:"sans-serif",variants:["regular"]},"Sue-Ellen-Francisco":{family:"Sue Ellen Francisco",category:"handwriting",variants:["regular"]},"Suez-One":{family:"Suez One",category:"serif",variants:["regular"]},"Sulphur-Point":{family:"Sulphur Point",category:"sans-serif",variants:["300","regular","700"]},Sumana:{family:"Sumana",category:"serif",variants:["regular","700"]},Sunflower:{family:"Sunflower",category:"sans-serif",variants:["300","500","700"]},Sunshiney:{family:"Sunshiney",category:"handwriting",variants:["regular"]},"Supermercado-One":{family:"Supermercado One",category:"display",variants:["regular"]},Sura:{family:"Sura",category:"serif",variants:["regular","700"]},Suranna:{family:"Suranna",category:"serif",variants:["regular"]},Suravaram:{family:"Suravaram",category:"serif",variants:["regular"]},Suwannaphum:{family:"Suwannaphum",category:"serif",variants:["100","300","regular","700","900"]},"Swanky-and-Moo-Moo":{family:"Swanky and Moo Moo",category:"handwriting",variants:["regular"]},Syncopate:{family:"Syncopate",category:"sans-serif",variants:["regular","700"]},Syne:{family:"Syne",category:"sans-serif",variants:["regular","500","600","700","800"]},"Syne-Mono":{family:"Syne Mono",category:"monospace",variants:["regular"]},"Syne-Tactile":{family:"Syne Tactile",category:"display",variants:["regular"]},"Tai-Heritage-Pro":{family:"Tai Heritage Pro",category:"serif",variants:["regular","700"]},Tajawal:{family:"Tajawal",category:"sans-serif",variants:["200","300","regular","500","700","800","900"]},Tangerine:{family:"Tangerine",category:"handwriting",variants:["regular","700"]},Tapestry:{family:"Tapestry",category:"handwriting",variants:["regular"]},Taprom:{family:"Taprom",category:"display",variants:["regular"]},Tauri:{family:"Tauri",category:"sans-serif",variants:["regular"]},Taviraj:{family:"Taviraj",category:"serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},Teko:{family:"Teko",category:"sans-serif",variants:["300","regular","500","600","700"]},Tektur:{family:"Tektur",category:"display",variants:["regular","500","600","700","800","900"]},Telex:{family:"Telex",category:"sans-serif",variants:["regular"]},"Tenali-Ramakrishna":{family:"Tenali Ramakrishna",category:"sans-serif",variants:["regular"]},"Tenor-Sans":{family:"Tenor Sans",category:"sans-serif",variants:["regular"]},"Text-Me-One":{family:"Text Me One",category:"sans-serif",variants:["regular"]},Texturina:{family:"Texturina",category:"serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Thasadith:{family:"Thasadith",category:"sans-serif",variants:["regular","italic","700","700italic"]},"The-Girl-Next-Door":{family:"The Girl Next Door",category:"handwriting",variants:["regular"]},"The-Nautigal":{family:"The Nautigal",category:"handwriting",variants:["regular","700"]},Tienne:{family:"Tienne",category:"serif",variants:["regular","700","900"]},Tillana:{family:"Tillana",category:"display",variants:["regular","500","600","700","800"]},"Tilt-Neon":{family:"Tilt Neon",category:"display",variants:["regular"]},"Tilt-Prism":{family:"Tilt Prism",category:"display",variants:["regular"]},"Tilt-Warp":{family:"Tilt Warp",category:"display",variants:["regular"]},Timmana:{family:"Timmana",category:"sans-serif",variants:["regular"]},Tinos:{family:"Tinos",category:"serif",variants:["regular","italic","700","700italic"]},"Tiro-Bangla":{family:"Tiro Bangla",category:"serif",variants:["regular","italic"]},"Tiro-Devanagari-Hindi":{family:"Tiro Devanagari Hindi",category:"serif",variants:["regular","italic"]},"Tiro-Devanagari-Marathi":{family:"Tiro Devanagari Marathi",category:"serif",variants:["regular","italic"]},"Tiro-Devanagari-Sanskrit":{family:"Tiro Devanagari Sanskrit",category:"serif",variants:["regular","italic"]},"Tiro-Gurmukhi":{family:"Tiro Gurmukhi",category:"serif",variants:["regular","italic"]},"Tiro-Kannada":{family:"Tiro Kannada",category:"serif",variants:["regular","italic"]},"Tiro-Tamil":{family:"Tiro Tamil",category:"serif",variants:["regular","italic"]},"Tiro-Telugu":{family:"Tiro Telugu",category:"serif",variants:["regular","italic"]},"Titan-One":{family:"Titan One",category:"display",variants:["regular"]},"Titillium-Web":{family:"Titillium Web",category:"sans-serif",variants:["200","200italic","300","300italic","regular","italic","600","600italic","700","700italic","900"]},Tomorrow:{family:"Tomorrow",category:"sans-serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},Tourney:{family:"Tourney",category:"display",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Trade-Winds":{family:"Trade Winds",category:"display",variants:["regular"]},"Train-One":{family:"Train One",category:"display",variants:["regular"]},Trirong:{family:"Trirong",category:"serif",variants:["100","100italic","200","200italic","300","300italic","regular","italic","500","500italic","600","600italic","700","700italic","800","800italic","900","900italic"]},Trispace:{family:"Trispace",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800"]},Trocchi:{family:"Trocchi",category:"serif",variants:["regular"]},Trochut:{family:"Trochut",category:"display",variants:["regular","italic","700"]},Truculenta:{family:"Truculenta",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},Trykker:{family:"Trykker",category:"serif",variants:["regular"]},"Tsukimi-Rounded":{family:"Tsukimi Rounded",category:"sans-serif",variants:["300","regular","500","600","700"]},"Tulpen-One":{family:"Tulpen One",category:"display",variants:["regular"]},"Turret-Road":{family:"Turret Road",category:"display",variants:["200","300","regular","500","700","800"]},"Twinkle-Star":{family:"Twinkle Star",category:"handwriting",variants:["regular"]},Ubuntu:{family:"Ubuntu",category:"sans-serif",variants:["300","300italic","regular","italic","500","500italic","700","700italic"]},"Ubuntu-Condensed":{family:"Ubuntu Condensed",category:"sans-serif",variants:["regular"]},"Ubuntu-Mono":{family:"Ubuntu Mono",category:"monospace",variants:["regular","italic","700","700italic"]},Uchen:{family:"Uchen",category:"serif",variants:["regular"]},Ultra:{family:"Ultra",category:"serif",variants:["regular"]},Unbounded:{family:"Unbounded",category:"sans-serif",variants:["200","300","regular","500","600","700","800","900"]},"Uncial-Antiqua":{family:"Uncial Antiqua",category:"display",variants:["regular"]},Underdog:{family:"Underdog",category:"display",variants:["regular"]},"Unica-One":{family:"Unica One",category:"display",variants:["regular"]},UnifrakturCook:{family:"UnifrakturCook",category:"display",variants:["700"]},UnifrakturMaguntia:{family:"UnifrakturMaguntia",category:"display",variants:["regular"]},Unkempt:{family:"Unkempt",category:"display",variants:["regular","700"]},Unlock:{family:"Unlock",category:"display",variants:["regular"]},Unna:{family:"Unna",category:"serif",variants:["regular","italic","700","700italic"]},Updock:{family:"Updock",category:"handwriting",variants:["regular"]},Urbanist:{family:"Urbanist",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},VT323:{family:"VT323",category:"monospace",variants:["regular"]},"Vampiro-One":{family:"Vampiro One",category:"display",variants:["regular"]},Varela:{family:"Varela",category:"sans-serif",variants:["regular"]},"Varela-Round":{family:"Varela Round",category:"sans-serif",variants:["regular"]},Varta:{family:"Varta",category:"sans-serif",variants:["300","regular","500","600","700"]},"Vast-Shadow":{family:"Vast Shadow",category:"serif",variants:["regular"]},Vazirmatn:{family:"Vazirmatn",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Vesper-Libre":{family:"Vesper Libre",category:"serif",variants:["regular","500","700","900"]},"Viaoda-Libre":{family:"Viaoda Libre",category:"display",variants:["regular"]},Vibes:{family:"Vibes",category:"display",variants:["regular"]},Vibur:{family:"Vibur",category:"handwriting",variants:["regular"]},"Victor-Mono":{family:"Victor Mono",category:"monospace",variants:["100","200","300","regular","500","600","700","100italic","200italic","300italic","italic","500italic","600italic","700italic"]},Vidaloka:{family:"Vidaloka",category:"serif",variants:["regular"]},Viga:{family:"Viga",category:"sans-serif",variants:["regular"]},"Vina-Sans":{family:"Vina Sans",category:"display",variants:["regular"]},Voces:{family:"Voces",category:"sans-serif",variants:["regular"]},Volkhov:{family:"Volkhov",category:"serif",variants:["regular","italic","700","700italic"]},Vollkorn:{family:"Vollkorn",category:"serif",variants:["regular","500","600","700","800","900","italic","500italic","600italic","700italic","800italic","900italic"]},"Vollkorn-SC":{family:"Vollkorn SC",category:"serif",variants:["regular","600","700","900"]},Voltaire:{family:"Voltaire",category:"sans-serif",variants:["regular"]},"Vujahday-Script":{family:"Vujahday Script",category:"handwriting",variants:["regular"]},"Waiting-for-the-Sunrise":{family:"Waiting for the Sunrise",category:"handwriting",variants:["regular"]},Wallpoet:{family:"Wallpoet",category:"display",variants:["regular"]},"Walter-Turncoat":{family:"Walter Turncoat",category:"handwriting",variants:["regular"]},Warnes:{family:"Warnes",category:"display",variants:["regular"]},"Water-Brush":{family:"Water Brush",category:"handwriting",variants:["regular"]},Waterfall:{family:"Waterfall",category:"handwriting",variants:["regular"]},Wavefont:{family:"Wavefont",category:"display",variants:["100","200","300","regular","500","600","700","800","900"]},Wellfleet:{family:"Wellfleet",category:"serif",variants:["regular"]},"Wendy-One":{family:"Wendy One",category:"sans-serif",variants:["regular"]},Whisper:{family:"Whisper",category:"handwriting",variants:["regular"]},WindSong:{family:"WindSong",category:"handwriting",variants:["regular","500"]},"Wire-One":{family:"Wire One",category:"sans-serif",variants:["regular"]},"Wix-Madefor-Display":{family:"Wix Madefor Display",category:"sans-serif",variants:["regular","500","600","700","800"]},"Wix-Madefor-Text":{family:"Wix Madefor Text",category:"sans-serif",variants:["regular","italic","500","500italic","600","600italic","700","700italic","800","800italic"]},"Work-Sans":{family:"Work Sans",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},Workbench:{family:"Workbench",category:"monospace",variants:["regular"]},"Xanh-Mono":{family:"Xanh Mono",category:"monospace",variants:["regular","italic"]},Yaldevi:{family:"Yaldevi",category:"sans-serif",variants:["200","300","regular","500","600","700"]},"Yanone-Kaffeesatz":{family:"Yanone Kaffeesatz",category:"sans-serif",variants:["200","300","regular","500","600","700"]},Yantramanav:{family:"Yantramanav",category:"sans-serif",variants:["100","300","regular","500","700","900"]},"Yatra-One":{family:"Yatra One",category:"display",variants:["regular"]},Yellowtail:{family:"Yellowtail",category:"handwriting",variants:["regular"]},"Yeon-Sung":{family:"Yeon Sung",category:"display",variants:["regular"]},"Yeseva-One":{family:"Yeseva One",category:"display",variants:["regular"]},Yesteryear:{family:"Yesteryear",category:"handwriting",variants:["regular"]},Yomogi:{family:"Yomogi",category:"handwriting",variants:["regular"]},"Young-Serif":{family:"Young Serif",category:"serif",variants:["regular"]},Yrsa:{family:"Yrsa",category:"serif",variants:["300","regular","500","600","700","300italic","italic","500italic","600italic","700italic"]},Ysabeau:{family:"Ysabeau",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Ysabeau-Infant":{family:"Ysabeau Infant",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Ysabeau-Office":{family:"Ysabeau Office",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900","100italic","200italic","300italic","italic","500italic","600italic","700italic","800italic","900italic"]},"Ysabeau-SC":{family:"Ysabeau SC",category:"sans-serif",variants:["100","200","300","regular","500","600","700","800","900"]},"Yuji-Boku":{family:"Yuji Boku",category:"serif",variants:["regular"]},"Yuji-Hentaigana-Akari":{family:"Yuji Hentaigana Akari",category:"handwriting",variants:["regular"]},"Yuji-Hentaigana-Akebono":{family:"Yuji Hentaigana Akebono",category:"handwriting",variants:["regular"]},"Yuji-Mai":{family:"Yuji Mai",category:"serif",variants:["regular"]},"Yuji-Syuku":{family:"Yuji Syuku",category:"serif",variants:["regular"]},"Yusei-Magic":{family:"Yusei Magic",category:"sans-serif",variants:["regular"]},"ZCOOL-KuaiLe":{family:"ZCOOL KuaiLe",category:"sans-serif",variants:["regular"]},"ZCOOL-QingKe-HuangYou":{family:"ZCOOL QingKe HuangYou",category:"sans-serif",variants:["regular"]},"ZCOOL-XiaoWei":{family:"ZCOOL XiaoWei",category:"sans-serif",variants:["regular"]},"Zen-Antique":{family:"Zen Antique",category:"serif",variants:["regular"]},"Zen-Antique-Soft":{family:"Zen Antique Soft",category:"serif",variants:["regular"]},"Zen-Dots":{family:"Zen Dots",category:"display",variants:["regular"]},"Zen-Kaku-Gothic-Antique":{family:"Zen Kaku Gothic Antique",category:"sans-serif",variants:["300","regular","500","700","900"]},"Zen-Kaku-Gothic-New":{family:"Zen Kaku Gothic New",category:"sans-serif",variants:["300","regular","500","700","900"]},"Zen-Kurenaido":{family:"Zen Kurenaido",category:"sans-serif",variants:["regular"]},"Zen-Loop":{family:"Zen Loop",category:"display",variants:["regular","italic"]},"Zen-Maru-Gothic":{family:"Zen Maru Gothic",category:"sans-serif",variants:["300","regular","500","700","900"]},"Zen-Old-Mincho":{family:"Zen Old Mincho",category:"serif",variants:["regular","500","600","700","900"]},"Zen-Tokyo-Zoo":{family:"Zen Tokyo Zoo",category:"display",variants:["regular"]},Zeyada:{family:"Zeyada",category:"handwriting",variants:["regular"]},"Zhi-Mang-Xing":{family:"Zhi Mang Xing",category:"handwriting",variants:["regular"]},"Zilla-Slab":{family:"Zilla Slab",category:"serif",variants:["300","300italic","regular","italic","500","500italic","600","600italic","700","700italic"]},"Zilla-Slab-Highlight":{family:"Zilla Slab Highlight",category:"serif",variants:["regular","700"]}};function b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function w(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?b(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var S=function(e){return e.reduce((function(e,t){var a,i=(n(n(n(n(n(n(n(n(n(n(a={},"".concat(t,"FontFamily"),{type:"string"}),"".concat(t,"SizeUnit"),{type:"string",default:"px"}),"".concat(t,"FontSize"),{type:"number"}),"".concat(t,"FontWeight"),{type:"string"}),"".concat(t,"FontStyle"),{type:"string"}),"".concat(t,"TextTransform"),{type:"string"}),"".concat(t,"TextDecoration"),{type:"string"}),"".concat(t,"LetterSpacingUnit"),{type:"string",default:"px"}),"".concat(t,"LetterSpacing"),{type:"number"}),"".concat(t,"LineHeightUnit"),{type:"string",default:"em"}),n(n(n(n(n(n(n(n(n(n(a,"".concat(t,"LineHeight"),{type:"number"}),"TAB".concat(t,"SizeUnit"),{type:"string",default:"px"}),"TAB".concat(t,"FontSize"),{type:"number"}),"TAB".concat(t,"LetterSpacingUnit"),{type:"string",default:"px"}),"TAB".concat(t,"LetterSpacing"),{type:"number"}),"TAB".concat(t,"LineHeightUnit"),{type:"string",default:"em"}),"TAB".concat(t,"LineHeight"),{type:"number"}),"MOB".concat(t,"SizeUnit"),{type:"string",default:"px"}),"MOB".concat(t,"FontSize"),{type:"number"}),"MOB".concat(t,"LetterSpacingUnit"),{type:"string",default:"px"}),n(n(n(a,"MOB".concat(t,"LetterSpacing"),{type:"number"}),"MOB".concat(t,"LineHeightUnit"),{type:"string",default:"em"}),"MOB".concat(t,"LineHeight"),{type:"number"}));return w(w({},e),i)}),{})},k=function(e){var t=e.prefixConstant,a=e.defaultFontSize,i=e.attributes,r=i["".concat(t,"FontFamily")],n=i["".concat(t,"FontWeight")],s=i["".concat(t,"FontStyle")],o=i["".concat(t,"TextTransform")],l=i["".concat(t,"TextDecoration")],c=i["".concat(t,"FontSize")],f=void 0===c?a:c,u=i["".concat(t,"SizeUnit")],h=i["".concat(t,"LetterSpacing")],d=i["".concat(t,"LetterSpacingUnit")],g=i["".concat(t,"LineHeight")],p=i["".concat(t,"LineHeightUnit")],m=i["TAB".concat(t,"SizeUnit")],b=i["TAB".concat(t,"LetterSpacingUnit")],w=i["TAB".concat(t,"LineHeightUnit")],S=i["TAB".concat(t,"FontSize")],k=i["TAB".concat(t,"LetterSpacing")],O=i["TAB".concat(t,"LineHeight")],x=i["MOB".concat(t,"SizeUnit")],C=i["MOB".concat(t,"LetterSpacingUnit")],M=i["MOB".concat(t,"LineHeightUnit")],A=i["MOB".concat(t,"FontSize")],T=i["MOB".concat(t,"LetterSpacing")],P=i["MOB".concat(t,"LineHeight")],N="\n ".concat(r?"font-family: ".concat(function(e){if(e){var t=(e||"").replace(/\s+/g,"-"),a=v[t]?v[t].category:[];return"handwriting"===a||"display"===a?'"'+e+'", cursive':'"'+e+'", '+a}return""}(r),";"):" ","\n ").concat(y(f)?"font-size: ".concat(f).concat(u,";"):" ","\n ").concat(y(g)?"line-height: ".concat(g).concat(p,";"):" ","\n ").concat(n?"font-weight: ".concat(n,";"):" ","\n ").concat(s?"font-style: ".concat(s,";"):" ","\n ").concat(l?"text-decoration: ".concat(l,";"):" ","\n ").concat(o?"text-transform: ".concat(o,";"):" ","\n ").concat(y(h)?"letter-spacing: ".concat(h).concat(d,";"):" ","\n ");return{typoStylesDesktop:N,typoStylesTab:"\n ".concat(y(S)?"font-size: ".concat(S).concat(m,";"):" ","\n ").concat(y(O)?"line-height: ".concat(O).concat(w,";"):" ","\n ").concat(y(k)?"letter-spacing: ".concat(k).concat(b,";"):" ","\n "),typoStylesMobile:"\n ".concat(y(A)?"font-size: ".concat(A).concat(x,";"):" ","\n ").concat(y(P)?"line-height: ".concat(P).concat(M,";"):" ","\n ").concat(y(T)?"letter-spacing: ".concat(T).concat(C,";"):" ","\n ")}};function O(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function x(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?O(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):O(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.top,i=t.right,r=t.bottom,s=t.left,o=t.isLinked,l=void 0===o||o,c=t.disableLeftRight,f=void 0!==c&&c,u=t.defaultUnit,h=void 0===u?"px":u,d=y(a)?n({},"".concat(e,"Top"),{type:"string",default:"".concat(a)}):n({},"".concat(e,"Top"),{type:"string"}),g=y(i)?n({},"".concat(e,"Right"),{type:"string",default:"".concat(i)}):n({},"".concat(e,"Right"),{type:"string"}),p=y(r)?n({},"".concat(e,"Bottom"),{type:"string",default:"".concat(r)}):n({},"".concat(e,"Bottom"),{type:"string"}),m=y(s)?n({},"".concat(e,"Left"),{type:"string",default:"".concat(s)}):n({},"".concat(e,"Left"),{type:"string"}),v=f?x(x(x({},d),p),{},n(n(n(n({},"TAB".concat(e,"Top"),{type:"string"}),"TAB".concat(e,"Bottom"),{type:"string"}),"MOB".concat(e,"Top"),{type:"string"}),"MOB".concat(e,"Bottom"),{type:"string"})):x(x(x(x(x({},d),g),p),m),{},n(n(n(n(n(n(n(n({},"TAB".concat(e,"Top"),{type:"string"}),"TAB".concat(e,"Right"),{type:"string"}),"TAB".concat(e,"Bottom"),{type:"string"}),"TAB".concat(e,"Left"),{type:"string"}),"MOB".concat(e,"Top"),{type:"string"}),"MOB".concat(e,"Right"),{type:"string"}),"MOB".concat(e,"Bottom"),{type:"string"}),"MOB".concat(e,"Left"),{type:"string"}));return x(n(n(n(n({},"".concat(e,"isLinked"),{type:"boolean",default:l}),"".concat(e,"Unit"),{type:"string",default:h}),"TAB".concat(e,"Unit"),{type:"string",default:h}),"MOB".concat(e,"Unit"),{type:"string",default:h}),v)},M=function(e){var t=e.controlName,a=e.styleFor,i=e.attributes,r=e.disableLeftRight,n=void 0!==r&&r,s=i["".concat(t,"isLinked")],o=i["".concat(t,"Unit")],l=i["".concat(t,"Top")],c=i["".concat(t,"Right")],f=i["".concat(t,"Bottom")],u=i["".concat(t,"Left")],h=i["TAB".concat(t,"Unit")],d=i["TAB".concat(t,"Top")],g=i["TAB".concat(t,"Right")],p=i["TAB".concat(t,"Bottom")],m=i["TAB".concat(t,"Left")],y=i["MOB".concat(t,"Unit")],v=i["MOB".concat(t,"Top")],b=i["MOB".concat(t,"Right")],w=i["MOB".concat(t,"Bottom")],S=i["MOB".concat(t,"Left")],k=" ",O=" ",x=" ";return!0===s&&!1===n?"border"===a?(k="\n ".concat(l?"border-width: ".concat(parseFloat(l)).concat(o,"; "):" ","\n \n "),O="\n ".concat(d?"border-width: ".concat(parseFloat(d)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-width: ".concat(parseFloat(v)).concat(y,";"):" ","\n \n ")):"border-radius"===a?(k="\n ".concat(l?"border-radius: ".concat(parseFloat(l)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"border-radius: ".concat(parseFloat(d)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-radius: ".concat(parseFloat(v)).concat(y,";"):" ","\n \n ")):(k="\n ".concat(l?"".concat(a,": ").concat(parseFloat(l)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"".concat(a,": ").concat(parseFloat(d)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"".concat(a,": ").concat(parseFloat(v)).concat(y,";"):" ","\n \n ")):!1===s&&!1===n?"border"===a?(k="\n ".concat(l?"border-top-width: ".concat(parseFloat(l)).concat(o,";"):" ","\n ").concat(c?"border-right-width: ".concat(parseFloat(c)).concat(o,";"):" ","\n ").concat(u?"border-left-width: ".concat(parseFloat(u)).concat(o,";"):" ","\n ").concat(f?"border-bottom-width: ".concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"border-top-width: ".concat(parseFloat(d)).concat(h,";"):" ","\n ").concat(g?"border-right-width: ".concat(parseFloat(g)).concat(h,";"):" ","\n ").concat(m?"border-left-width: ".concat(parseFloat(m)).concat(h,";"):" ","\n ").concat(p?"border-bottom-width: ".concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-top-width: ".concat(parseFloat(v)).concat(y,";"):" ","\n ").concat(b?"border-right-width: ".concat(parseFloat(b)).concat(y,";"):" ","\n ").concat(S?"border-left-width: ".concat(parseFloat(S)).concat(y,";"):" ","\n ").concat(w?"border-bottom-width: ".concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):"border-radius"===a?(k="\n ".concat(l?"border-top-left-radius: ".concat(parseFloat(l)).concat(o,";"):" ","\n ").concat(c?"border-top-right-radius: ".concat(parseFloat(c)).concat(o,";"):" ","\n ").concat(u?"border-bottom-left-radius: ".concat(parseFloat(u)).concat(o,";"):" ","\n ").concat(f?"border-bottom-right-radius: ".concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"border-top-left-radius: ".concat(parseFloat(d)).concat(h,";"):" ","\n ").concat(g?"border-top-right-radius: ".concat(parseFloat(g)).concat(h,";"):" ","\n ").concat(m?"border-bottom-left-radius: ".concat(parseFloat(m)).concat(h,";"):" ","\n ").concat(p?"border-bottom-right-radius: ".concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-top-left-radius: ".concat(parseFloat(v)).concat(y,";"):" ","\n ").concat(b?"border-top-right-radius: ".concat(parseFloat(b)).concat(y,";"):" ","\n ").concat(S?"border-bottom-left-radius: ".concat(parseFloat(S)).concat(y,";"):" ","\n ").concat(w?"border-bottom-right-radius: ".concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):(k="\n ".concat(l?"".concat(a,"-top: ").concat(parseFloat(l)).concat(o,";"):" ","\n ").concat(c?"".concat(a,"-right: ").concat(parseFloat(c)).concat(o,";"):" ","\n ").concat(u?"".concat(a,"-left: ").concat(parseFloat(u)).concat(o,";"):" ","\n ").concat(f?"".concat(a,"-bottom: ").concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"".concat(a,"-top: ").concat(parseFloat(d)).concat(h,";"):" ","\n ").concat(g?"".concat(a,"-right: ").concat(parseFloat(g)).concat(h,";"):" ","\n ").concat(m?"".concat(a,"-left: ").concat(parseFloat(m)).concat(h,";"):" ","\n ").concat(p?"".concat(a,"-bottom: ").concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"".concat(a,"-top: ").concat(parseFloat(v)).concat(y,";"):" ","\n ").concat(b?"".concat(a,"-right: ").concat(parseFloat(b)).concat(y,";"):" ","\n ").concat(S?"".concat(a,"-left: ").concat(parseFloat(S)).concat(y,";"):" ","\n ").concat(w?"".concat(a,"-bottom: ").concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):!0===s&&!0===n?"border"===a?(k="\n ".concat(l?"border-top-width: ".concat(parseFloat(l)).concat(o,"; "):" ","\n ").concat(f?"border-bottom-width: ".concat(parseFloat(f)).concat(o,"; "):" ","\n \n "),O="\n ".concat(d?"border-top-width: ".concat(parseFloat(d)).concat(h,";"):" ","\n ").concat(p?"border-bottom-width: ".concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-top-width: ".concat(parseFloat(v)).concat(y,";"):" ","\n ").concat(w?"border-bottom-width: ".concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):"border-radius"===a?(k="\n ".concat(l?"border-top-left-radius: ".concat(parseFloat(l)).concat(o,";"):" ","\n \n ").concat(f?"border-bottom-right-radius: ".concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"border-top-left-radius: ".concat(parseFloat(d)).concat(h,";"):" ","\n \n ").concat(p?"border-bottom-right-radius: ".concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-top-left-radius: ".concat(parseFloat(v)).concat(y,";"):" ","\n \n ").concat(w?"border-bottom-right-radius: ".concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):(k="\n ".concat(l?"".concat(a,"-top: ").concat(parseFloat(l)).concat(o,";"):" ","\n \n ").concat(f?"".concat(a,"-bottom: ").concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"".concat(a,"-top: ").concat(parseFloat(d)).concat(h,";"):" ","\n \n ").concat(p?"".concat(a,"-bottom: ").concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"".concat(a,"-top: ").concat(parseFloat(v)).concat(y,";"):" ","\n \n ").concat(w?"".concat(a,"-bottom: ").concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):!1===s&&!0===n&&("border"===a?(k="\n ".concat(l?"border-top-width: ".concat(parseFloat(l)).concat(o,";"):" ","\n ").concat(f?"border-bottom-width: ".concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"border-top-width: ".concat(parseFloat(d)).concat(h,";"):" ","\n ").concat(p?"border-bottom-width: ".concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-top-width: ".concat(parseFloat(v)).concat(y,";"):" ","\n ").concat(w?"border-bottom-width: ".concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):"border-radius"===a?(k="\n ".concat(l?"border-top-left-radius: ".concat(parseFloat(l)).concat(o,";"):" ","\n ").concat(f?"border-bottom-right-radius: ".concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"border-top-left-radius: ".concat(parseFloat(d)).concat(h,";"):" ","\n ").concat(p?"border-bottom-right-radius: ".concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"border-top-left-radius: ".concat(parseFloat(v)).concat(y,";"):" ","\n ").concat(w?"border-bottom-right-radius: ".concat(parseFloat(w)).concat(y,";"):" ","\n \n ")):(k="\n ".concat(l?"".concat(a,"-top: ").concat(parseFloat(l)).concat(o,";"):" ","\n ").concat(f?"".concat(a,"-bottom: ").concat(parseFloat(f)).concat(o,";"):" ","\n \n "),O="\n ".concat(d?"".concat(a,"-top: ").concat(parseFloat(d)).concat(h,";"):" ","\n ").concat(p?"".concat(a,"-bottom: ").concat(parseFloat(p)).concat(h,";"):" ","\n \n "),x="\n ".concat(v?"".concat(a,"-top: ").concat(parseFloat(v)).concat(y,";"):" ","\n ").concat(w?"".concat(a,"-bottom: ").concat(parseFloat(w)).concat(y,";"):" ","\n \n "))),{dimensionStylesDesktop:k,dimensionStylesTab:O,dimensionStylesMobile:x}};function A(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function T(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?A(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):A(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.bdrDefaults,i=void 0===a?{top:1,right:1,bottom:1,left:1}:a,r=t.rdsDefaults,s=void 0===r?{}:r,o=t.noBorder,l=void 0!==o&&o,c=t.noShadow,f=void 0!==c&&c,u=t.defaultBdrColor,h=void 0!==u&&u,d=t.defaultBdrStyle,g=void 0!==d&&d,p=t.noBdrHover,m=void 0!==p&&p,y=t.noShdowHover,v=void 0!==y&&y,b=t.noBorderRadius,w=void 0!==b&&b,S=n({},"".concat(e,"borderColor"),h?{type:"string",default:h}:{type:"string"}),k=n({},"".concat(e,"borderStyle"),g?{type:"string",default:g}:{type:"string",default:"none"}),O=T(T(T({},S),k),C("".concat(e,"Bdr_"),i)),x=T(T({},C("".concat(e,"Rds_"),s)),C("".concat(e,"HRds_"))),M=T(n(n(n({},"".concat(e,"BorderType"),{type:"string",default:"normal"}),"".concat(e,"HborderColor"),{type:"string"}),"".concat(e,"HborderStyle"),{type:"string",default:"none"}),C("".concat(e,"HBdr_"))),A=n(n(n(n(n(n({},"".concat(e,"hOffset"),{type:"number"}),"".concat(e,"vOffset"),{type:"number"}),"".concat(e,"blur"),{type:"number"}),"".concat(e,"spread"),{type:"number"}),"".concat(e,"shadowColor"),{type:"string"}),"".concat(e,"inset"),{type:"boolean",default:!1}),P=n(n(n(n(n(n(n({},"".concat(e,"shadowType"),{type:"string",default:"normal"}),"".concat(e,"hoverHOffset"),{type:"number"}),"".concat(e,"hoverVOffset"),{type:"number"}),"".concat(e,"hoverBlur"),{type:"number"}),"".concat(e,"hoverSpread"),{type:"number"}),"".concat(e,"hoverShadowColor"),{type:"string"}),"".concat(e,"hoverInset"),{type:"boolean",default:!1}),N=n(n(n({},"".concat(e,"borderTransition"),{type:"number",default:.5}),"".concat(e,"radiusTransition"),{type:"number",default:.5}),"".concat(e,"shadowTransition"),{type:"number",default:.5}),E={};return!0===l?E=v?T({},A):T(T(T({},A),P),N):!0===f?E=m?T({},O):T(T(T({},O),M),N):v&&m?E=T(T({},O),A):v&&!m?E=T(T(T(T({},O),M),N),A):!v&&m?E=T(T(T(T({},A),P),N),O):v||m||(E=T(T(T(T(T({},O),A),P),M),N)),w||(E=T(T({},E),x)),E},N=function(e){var t=e.controlName,a=e.attributes,i=e.noBorder,r=e.noShadow,n=e.noBorderRadius,s=e.noBorderRadiusHover,o="",l="",c="",f="",u="",h="",d="",g="",p="",m="",y="",v="";if(!0!==i){var b=M({controlName:"".concat(t,"Bdr_"),styleFor:"border",attributes:a}),w=b.dimensionStylesDesktop,S=b.dimensionStylesTab,k=b.dimensionStylesMobile,O=M({controlName:"".concat(t,"Rds_"),styleFor:"border-radius",attributes:a}),x=O.dimensionStylesDesktop,C=O.dimensionStylesTab,A=O.dimensionStylesMobile,T=M({controlName:"".concat(t,"HBdr_"),styleFor:"border",attributes:a}),P=T.dimensionStylesDesktop,N=T.dimensionStylesTab,E=T.dimensionStylesMobile,R=M({controlName:"".concat(t,"HRds_"),styleFor:"border-radius",attributes:a});o=w,l=S,c=k,f=x,u=C,h=A,d=P,g=N,p=E,m=R.dimensionStylesDesktop,y=R.dimensionStylesTab,v=R.dimensionStylesMobile}var D=a["".concat(t,"borderStyle")],B=a["".concat(t,"borderColor")],L=a["".concat(t,"HborderStyle")],I=a["".concat(t,"HborderColor")],F=a["".concat(t,"shadowColor")],_=a["".concat(t,"hOffset")],z=void 0===_?0:_,j=a["".concat(t,"vOffset")],H=void 0===j?0:j,V=a["".concat(t,"blur")],q=void 0===V?0:V,W=a["".concat(t,"spread")],G=void 0===W?0:W,U=a["".concat(t,"inset")],$=a["".concat(t,"hoverShadowColor")],Q=void 0===$?F:$,K=a["".concat(t,"hoverHOffset")],X=void 0===K?z:K,Y=a["".concat(t,"hoverVOffset")],J=void 0===Y?H:Y,Z=a["".concat(t,"hoverBlur")],ee=void 0===Z?q:Z,te=a["".concat(t,"hoverSpread")],ae=void 0===te?G:te,ie=a["".concat(t,"borderTransition")],re=a["".concat(t,"radiusTransition")],ne=a["".concat(t,"shadowTransition")];return{styesDesktop:"\n ".concat(!0!==i?"\n ".concat("none"!==D&&B?"\n ".concat(o,"\n border-color: ").concat(B,";\n border-style: ").concat(D,";\n "):" ","\n "):" ","\n\n ").concat(!0!==n?"\n ".concat(f,"\n "):" ","\n\n ").concat(!0!==r&&F?"box-shadow: ".concat(F," ").concat(z,"px ").concat(H,"px ").concat(q,"px ").concat(G,"px ").concat(U?"inset":"",";"):" ","\n\n\n "),styesTab:"\n ".concat(!0!==i?"\n ".concat(B?l:" ","\n\n "):" ","\n\n ").concat(!0!==n?"\n ".concat(u,"\n "):" ","\n\n "),styesMobile:"\n ".concat(!0!==i?"\n ".concat(B?c:" ","\n\n "):" ","\n\n ").concat(!0!==n?"\n ".concat(h,"\n "):" ","\n "),stylesHoverDesktop:"\n ".concat(!0!==i?"\n ".concat("none"!==L?"\n ".concat(I!==B?"border-color: ".concat(I,";"):" ","\n ").concat(L!==D?"border-style: ".concat(L,";"):" ","\n ").concat(d,"\n "):" ","\n\n\n "):" ","\n\n ").concat(!0!==s?"\n ".concat(m,"\n "):" ","\n\n ").concat(!0!==r&&Q?"box-shadow: ".concat(Q," ").concat(X,"px ").concat(J,"px ").concat(ee,"px ").concat(ae,"px ").concat(U?"inset":" ",";"):" ","\n\n "),stylesHoverTab:"\n ".concat(!0!==i?"\n ".concat("none"!==L?g:" ","\n "):" ","\n ").concat(!0!==s?"\n ".concat(y,"\n "):" ","\n "),stylesHoverMobile:"\n ".concat(!0!==i?"\n ".concat("none"!==L?p:" ","\n\n "):" ","\n ").concat(!0!==s?"\n ".concat(v,"\n "):" ","\n\n "),transitionStyle:"\n border ".concat(ie||0,"s, border-radius ").concat(re||0,"s, box-shadow ").concat(ne||0,"s\n ")}};function E(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function R(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?E(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):E(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=t.defaultRange,i=t.noUnits,r=t.defaultUnit,s=void 0===r?"px":r,o=n({},"".concat(e,"Range"),a?{type:"number",default:a}:{type:"number"}),l=!0===i?{}:n(n(n({},"".concat(e,"Unit"),{type:"string",default:s}),"TAB".concat(e,"Unit"),{type:"string",default:"px"}),"MOB".concat(e,"Unit"),{type:"string",default:"px"});return R(R({},o),{},n(n({},"TAB".concat(e,"Range"),{type:"number"}),"MOB".concat(e,"Range"),{type:"number"}),l)},B=function(e){var t,a,i,r=e.controlName,n=e.property,s=e.attributes,o=e.customUnit;e.noUnits?t=a=i="":o?t=a=i=o:(t=s["".concat(r,"Unit")],a=s["TAB".concat(r,"Unit")],i=s["MOB".concat(r,"Unit")]);var l=s["".concat(r,"Range")],c=s["TAB".concat(r,"Range")],f=s["MOB".concat(r,"Range")],u=null===n?"":n+":",h=null===n?"":";";return{rangeStylesDesktop:l||0===l?u+("px"!==t&&l>100?100:l)+(o||t)+h:"",rangeStylesTab:c||0===c?u+("px"!==a&&c>100?100:c)+(o||a)+h:"",rangeStylesMobile:f||0===f?u+("px"!==i&&f>100?100:f)+(o||i)+h:""}},L=function(e){if(!e||"string"!=typeof e)return"";var t=e.replace(/[^{}]+{\s*}/g,"").replace(/\n\s+/g,"").replace(/\s+{/g,"{").replace(/\s+}/g,"}").replace(/:\s+/g,":").replace(/;\s+/g,";");return I(t)},I=function(e){var t=e.split("}").map((function(e){var t=u(e.split("{"),2),a=t[0],i=t[1];if(i){var r=i.split(";").filter((function(e){var t=u(e.split(":"),2),a=(t[0],t[1]);return a&&""!==a.trim()&&"undefined"!==a.trim()&&"undefinedpx"!==a.trim()}));return r.length>0?"".concat(a," { ").concat(r.join("; ")," }"):null}return null})).filter(Boolean);return t.join("")},F=function(e){var t=e.setPreviewDeviceType;(0,e.setAttributes)({resOption:"Desktop"}),t("Desktop")},_=function(e){var t=e.setPreviewDeviceType;(0,e.setAttributes)({resOption:"Tablet"}),t("Tablet")},z=function(e){var t=e.setPreviewDeviceType;(0,e.setAttributes)({resOption:"Mobile"}),t("Mobile")};function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}var H=function(e){var t=e.BLOCK_PREFIX,a=e.blockId,i=e.setAttributes,r=e.select,n=e.clientId,s=t+"-"+Math.random().toString(36).substring(2,7);a||i({blockId:s});var o=r("core/block-editor").getBlocks(),l=!1;!function e(t){if(!l){var r,o=function(e,t){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=function(e,t){if(e){if("string"==typeof e)return j(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?j(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){a&&(e=a);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,s=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return s=e.done,e},e:function(e){o=!0,n=e},f:function(){try{s||null==a.return||a.return()}finally{if(o)throw n}}}}(t);try{for(o.s();!(r=o.n()).done;){var c=r.value,f=c.innerBlocks;if(c.attributes.blockId===a){if(c.clientId!==n)return i({blockId:s}),void(l=!0);f.length>0&&e(f)}else f.length>0&&e(f)}}catch(e){o.e(e)}finally{o.f()}}}(o)};const V=window.wp.hooks;var q=function(e){var t,a,i=e.attributes,r=e.setAttributes,n=e.desktopAllStyles,o=e.tabAllStyles,l=e.mobileAllStyles,c=e.editorDesktopStyles,f=e.editorTabStyles,d=e.editorMobileStyles,g=e.blockName,p=i.blockMeta,m=(i.resOption,u((0,h.useState)(),2)),y=m[0],v=m[1],b=u((0,h.useState)(!1),2),w=b[0],S=b[1];return(0,h.useEffect)((function(){var e={desktop:n,tab:o,mobile:l,editorDesktop:c,editorTab:f,editorMobile:d};v((0,V.applyFilters)("eb-style-object_".concat(g.replace(/\//g,"_")),e,i,r)),S(!0)}),[i]),(0,h.useEffect)((function(){JSON.stringify(p)!=JSON.stringify(y)&&r({blockMeta:y})}),[y]),(0,s.createElement)("style",null,w&&"\n\t\t\t\t".concat(L(y.editorDesktop?y.editorDesktop:y.desktop),"\n\n\t\t\t\t@media all and (max-width: ").concat(null===(t=EssentialBlocksLocalize.responsiveBreakpoints)||void 0===t?void 0:t.tablet,"px) {\n\t\t\t\t\t/* tabcssStart */\n\t\t\t\t\t").concat(L(y.editorTab?y.editorTab:y.tab),"\n\t\t\t\t\t/* tabcssEnd */\n\n\t\t\t\t}\n\n\t\t\t\t@media all and (max-width: ").concat(null===(a=EssentialBlocksLocalize.responsiveBreakpoints)||void 0===a?void 0:a.mobile,"px) {\n\t\t\t\t\t/* mobcssStart */\n\t\t\t\t\t").concat(L(y.editorMobile?y.editorMobile:y.mobile),"\n\t\t\t\t\t/* mobcssEnd */\n\t\t\t\t}\n\t\t\t"))};function W(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function G(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?W(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):W(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var U=lodash.omit,$=function(e,t){var a=e.name,i=EssentialBlocksLocalize,r=i.eb_wp_version,n=i.all_blocks;if(/^essential-blocks\//.test(a)){var s,o=a.replace(/essential-blocks\/pro-|essential-blocks\/|-/g,"_");if("_"===o.charAt(0)&&(o=o.substring(1)),n[o]&&"false"===(null===(s=n[o])||void 0===s?void 0:s.visibility))return!1}r>=5.8?(0,m.registerBlockType)(G({name:a},e),t):(0,m.registerBlockType)("".concat(a),G(G({},U(e,["name"])),t))};function Q(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function K(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Q(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function X(e){var t=e.top,a=e.right,i=e.bottom,r=e.left,o=e.onChange,l=e.neededProps,c=e.disableLeftRight,f=u((0,h.useState)({top:t,right:a,bottom:i,left:r}),2),g=f[0],p=f[1],m=l.baseLabel,y=l.resOption,v=l.forBorderRadius,b=l.setAttributes,w=l.dimensionIsLinked,S=l.controlName,k=u((0,h.useState)(w),2),O=k[0],x=k[1],C=function(e){var t=e.target,a=t.name,i=t.value;p(O?{top:i,right:i,bottom:i,left:i}:function(e){return K(K({},e),{},n({},a,i))})};(0,h.useEffect)((function(){o(g)}),[g]),(0,h.useEffect)((function(){b(n({},"".concat(S,"isLinked"),O));var e=g.top;O&&p({top:e,right:e,bottom:e,left:e})}),[O]);var M=function(){var e=(eb_conditional_localize||{}).editor_type;return"edit-site"===e?(0,d.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,d.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,s.createElement)("div",{className:"dimention-container"},(0,s.createElement)("div",{className:"withResWrapperInDimension"},(0,s.createElement)("div",{className:"dimention-label"},m),(0,s.createElement)("span",{onClick:function(){return F({setAttributes:b,setPreviewDeviceType:M()})},className:"typoResButton dashicons dashicons-desktop ".concat("Desktop"===y?"active":" ")}),(0,s.createElement)("span",{onClick:function(){return _({setAttributes:b,setPreviewDeviceType:M()})},className:"typoResButton dashicons dashicons-tablet ".concat("Tablet"===y?"active":" ")}),(0,s.createElement)("span",{onClick:function(){return z({setAttributes:b,setPreviewDeviceType:M()})},className:"typoResButton dashicons dashicons-smartphone ".concat("Mobile"===y?"active":" ")})),(0,s.createElement)("div",{className:"input-container ".concat(c?"left-right-disabled":"")},(0,s.createElement)("div",{className:"input-wrapper"},(0,s.createElement)("input",{type:"number",name:"top",value:g.top,onChange:C}),(0,s.createElement)("label",{className:"dimentions-input-label"},v?" ":"Top")),(0,s.createElement)("div",{className:"input-wrapper"},(0,s.createElement)("input",{type:c?"text":"number",name:"right",value:c?void 0:g.right,disabled:!!c,onChange:C}),(0,s.createElement)("label",{className:"dimentions-input-label"},v?" ":"Right")),(0,s.createElement)("div",{className:"input-wrapper"},(0,s.createElement)("input",{type:"number",name:"bottom",value:g.bottom,onChange:C}),(0,s.createElement)("label",{className:"dimentions-input-label"},v?" ":"Bottom")),(0,s.createElement)("div",{className:"input-wrapper"},(0,s.createElement)("input",{type:c?"text":"number",name:"left",value:c?void 0:g.left,disabled:!!c,onChange:C}),(0,s.createElement)("label",{className:"dimentions-input-label"},v?" ":"Left")),(0,s.createElement)("button",{className:"linked-btn components-button is-button dashicons dashicons-".concat(O?"admin-links is-primary":"editor-unlink is-default"),onClick:function(){return x(!O)}})))}const Y=function(e){var t=e.selectedUnit,a=e.unitTypes,i=e.onClick;return(0,s.createElement)(l.ButtonGroup,{className:"eb-unit-control-btn-group"},a.map((function(e,a){return(0,s.createElement)(l.Button,{key:a,className:"eb-unit-control-btn ".concat(e.value===t&&"eb-unit-active"),isSmall:!0,isPrimary:e.value===t,onClick:function(){return i(e.value)}},e.label)})))};function J(e){var t=e.resRequiredProps,a=e.controlName,i=e.baseLabel,r=e.forBorderRadius,o=e.disableLeftRight,l=void 0!==o&&o,c=t.attributes,f=t.setAttributes,u=t.resOption,h=c["".concat(a,"isLinked")],d=c["".concat(a,"Unit")],g=c["".concat(a,"Top")],p=c["".concat(a,"Right")],m=c["".concat(a,"Bottom")],y=c["".concat(a,"Left")],v=c["TAB".concat(a,"Unit")],b=c["TAB".concat(a,"Top")],w=c["TAB".concat(a,"Right")],S=c["TAB".concat(a,"Bottom")],k=c["TAB".concat(a,"Left")],O=c["MOB".concat(a,"Unit")],x=c["MOB".concat(a,"Top")],C=c["MOB".concat(a,"Right")],M=c["MOB".concat(a,"Bottom")],A=c["MOB".concat(a,"Left")],T=[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}],P={resOption:u,baseLabel:i,forBorderRadius:r,setAttributes:f,dimensionIsLinked:h,controlName:a};return(0,s.createElement)(s.Fragment,null,"Desktop"==u&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:d,unitTypes:T,onClick:function(e){return f(n({},"".concat(a,"Unit"),e))}}),(0,s.createElement)(X,{top:g,right:p,bottom:m,left:y,neededProps:P,disableLeftRight:l,onChange:function(e){var t=e.top,i=e.right,r=e.bottom,s=e.left;return f(n(n(n(n({},"".concat(a,"Top"),t),"".concat(a,"Right"),i),"".concat(a,"Bottom"),r),"".concat(a,"Left"),s))}})),"Tablet"==u&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:v,unitTypes:T,onClick:function(e){return f(n({},"TAB".concat(a,"Unit"),e))}}),(0,s.createElement)(X,{top:b,right:w,bottom:S,left:k,neededProps:P,disableLeftRight:l,onChange:function(e){var t=e.top,i=e.right,r=e.bottom,s=e.left;return f(n(n(n(n({},"TAB".concat(a,"Top"),t),"TAB".concat(a,"Right"),i),"TAB".concat(a,"Bottom"),r),"TAB".concat(a,"Left"),s))}})),"Mobile"==u&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:O,unitTypes:T,onClick:function(e){return f(n({},"MOB".concat(a,"Unit"),e))}}),(0,s.createElement)(X,{top:x,right:C,bottom:M,left:A,neededProps:P,disableLeftRight:l,onChange:function(e){var t=e.top,i=e.right,r=e.bottom,s=e.left;return f(n(n(n(n({},"MOB".concat(a,"Top"),t),"MOB".concat(a,"Right"),i),"MOB".concat(a,"Bottom"),r),"MOB".concat(a,"Left"),s))}})))}var Z=function(){return(0,s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0",y:"0",enableBackground:"new 0 0 512 512",version:"1.1",viewBox:"0 0 512 512",xmlSpace:"preserve",style:{width:14}},(0,s.createElement)("path",{d:"M92.6 431.3c5.1 0 6.1-.5 10.7-1.5l91.9-18.4c9.7-2.5 19.4-7.1 27.1-14.8L444.9 174c34.2-34.2 34.2-92.9 0-127.1L426 27c-34.2-34.2-93.4-34.2-127.6 0L75.8 250.1c-7.2 7.1-12.3 17.4-14.8 27.1l-19.4 92.9c-2.5 17.4 2.6 34.2 14.8 46.5 9.7 9.6 24 14.7 36.2 14.7zM110 286.9L332.6 63.8c14.8-14.8 41.9-14.8 56.2 0l19.4 19.4c17.4 17.4 17.4 41.9 0 58.7L186.1 365l-94.4 15.8 18.3-93.9zm0 0M442.8 463H66.1c-14.8 0-24.5 9.7-24.5 24.5S53.9 512 66.1 512h374.7c14.8 0 27.1-9.7 27.1-24.5-.6-14.8-12.8-24.5-25.1-24.5zm0 0",className:"eb-typography-icon"}))};function ee(e){var t=e.resRequiredProps,a=e.controlName,i=e.noBorder,r=e.noShadow,c=e.noBdrHover,f=e.noShdowHover,u=e.noBorderRadius,h=e.noBorderRadiusHover,d=t.setAttributes,m=t.attributes,y=t.objAttributes,v=m["".concat(a,"borderStyle")],b=m["".concat(a,"borderColor")],w=m["".concat(a,"shadowType")],S=m["".concat(a,"shadowColor")],k=m["".concat(a,"hOffset")],O=m["".concat(a,"vOffset")],x=m["".concat(a,"blur")],C=m["".concat(a,"spread")],M=m["".concat(a,"hoverShadowColor")],A=m["".concat(a,"hoverHOffset")],T=m["".concat(a,"hoverVOffset")],P=m["".concat(a,"hoverBlur")],N=m["".concat(a,"hoverSpread")],E=m["".concat(a,"inset")],R=m["".concat(a,"BorderType")],D=m["".concat(a,"HborderStyle")],B=m["".concat(a,"HborderColor")],L=m["".concat(a,"borderTransition")],I=m["".concat(a,"radiusTransition")],F=m["".concat(a,"shadowTransition")];return(0,s.createElement)(s.Fragment,null,!0!==i&&(0,s.createElement)(s.Fragment,null,!c&&(0,s.createElement)(l.BaseControl,{id:"eb-infobox-border-hover-ptions"},(0,s.createElement)(l.ButtonGroup,{id:"eb-infobox-border-hover-ptions"},[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}].map((function(e,t){var i=e.value,r=e.label;return(0,s.createElement)(l.Button,{key:t,isSecondary:R!==i,isPrimary:R===i,onClick:function(){return d(n({},"".concat(a,"BorderType"),i))}},r)})))),("normal"===R||c)&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.SelectControl,{label:(0,o.__)("Border Style","essential-blocks"),value:v,options:[{label:(0,o.__)("None","essential-blocks"),value:"none"},{label:(0,o.__)("Dashed","essential-blocks"),value:"dashed"},{label:(0,o.__)("Solid","essential-blocks"),value:"solid"},{label:(0,o.__)("Dotted","essential-blocks"),value:"dotted"},{label:(0,o.__)("Double","essential-blocks"),value:"double"},{label:(0,o.__)("Groove","essential-blocks"),value:"groove"},{label:(0,o.__)("Inset","essential-blocks"),value:"inset"},{label:(0,o.__)("Outset","essential-blocks"),value:"outset"},{label:(0,o.__)("Ridge","essential-blocks"),value:"ridge"}],onChange:function(e){return d(n({},"".concat(a,"borderStyle"),e))}}),"none"!==v&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(g,{defaultColor:(y["".concat(a,"borderColor")]||{}).default,label:(0,o.__)("Border Color","essential-blocks"),color:b,onChange:function(e){return d(n({},"".concat(a,"borderColor"),e))}}),(0,s.createElement)(J,{resRequiredProps:t,controlName:"".concat(a,"Bdr_"),baseLabel:"Border Width"})),!0!==u&&(0,s.createElement)(J,{forBorderRadius:!0,resRequiredProps:t,controlName:"".concat(a,"Rds_"),baseLabel:"Border Radius"})),"hover"===R&&!c&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.SelectControl,{label:(0,o.__)("Border Style","essential-blocks"),value:D,options:[{label:(0,o.__)("None","essential-blocks"),value:"none"},{label:(0,o.__)("Dashed","essential-blocks"),value:"dashed"},{label:(0,o.__)("Solid","essential-blocks"),value:"solid"},{label:(0,o.__)("Dotted","essential-blocks"),value:"dotted"},{label:(0,o.__)("Double","essential-blocks"),value:"double"},{label:(0,o.__)("Groove","essential-blocks"),value:"groove"},{label:(0,o.__)("Inset","essential-blocks"),value:"inset"},{label:(0,o.__)("Outset","essential-blocks"),value:"outset"},{label:(0,o.__)("Ridge","essential-blocks"),value:"ridge"}],onChange:function(e){return d(n({},"".concat(a,"HborderStyle"),e))}}),"none"!==D&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(g,{defaultColor:(y["".concat(a,"HborderColor")]||{}).default,label:(0,o.__)("Border Color","essential-blocks"),color:B,onChange:function(e){return d(n({},"".concat(a,"HborderColor"),e))}}),(0,s.createElement)(J,{resRequiredProps:t,controlName:"".concat(a,"HBdr_"),baseLabel:"Border Width"}),(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Border Transition","essential-blocks"),value:L,onChange:function(e){return d(n({},"".concat(a,"borderTransition"),e))},step:.01,min:0,max:5})),!0!==h&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(J,{forBorderRadius:!0,resRequiredProps:t,controlName:"".concat(a,"HRds_"),baseLabel:"Border Radius"}),(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Border Radius Transition","essential-blocks"),value:I,onChange:function(e){return d(n({},"".concat(a,"radiusTransition"),e))},step:.01,min:0,max:5})))),!0!==r&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.BaseControl,{label:(0,o.__)("Box Shadow","essential-blocks"),className:"eb-typography-base"},(0,s.createElement)(l.Dropdown,{className:"eb-typography-dropdown",contentClassName:"my-popover-content-classname",position:"bottom right",renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return(0,s.createElement)(l.Button,{isSmall:!0,onClick:a,"aria-expanded":t},(0,s.createElement)(Z,null))},renderContent:function(){return(0,s.createElement)(s.Fragment,null,(0,s.createElement)("div",{className:"eb-panel-control",style:{minWidth:"230px",padding:"10px"}},!f&&(0,s.createElement)(l.BaseControl,{id:"eb-infobox-shadow-hover-ptions"},(0,s.createElement)(l.ButtonGroup,{id:"eb-infobox-shadow-hover-ptions"},[{label:"Normal",value:"normal"},{label:"Hover",value:"hover"}].map((function(e,t){var i=e.value,r=e.label;return(0,s.createElement)(l.Button,{key:t,isSecondary:w!==i,isPrimary:w===i,onClick:function(){return d(n({},"".concat(a,"shadowType"),i))}},r)})))),(0,s.createElement)(l.ToggleControl,{label:(0,o.__)("Inset","essential-blocks"),checked:E,onChange:function(){return d(n({},"".concat(a,"inset"),!E))}}),("normal"===w||f)&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(g,{defaultColor:(y["".concat(a,"shadowColor")]||{}).default,label:(0,o.__)("Shadow Color","essential-blocks"),color:S,onChange:function(e){return d(n({},"".concat(a,"shadowColor"),e))}}),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"hOffset"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Horizontal Offset","essential-blocks"),value:k,onChange:function(e){return d(n({},"".concat(a,"hOffset"),e))},min:0,max:200})),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"vOffset"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Vertical Offset","essential-blocks"),value:O,onChange:function(e){return d(n({},"".concat(a,"vOffset"),e))},min:0,max:200})),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"blur"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Shadow Blur","essential-blocks"),value:x,onChange:function(e){return d(n({},"".concat(a,"blur"),e))},min:0,max:200})),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"spread"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Shadow Spread","essential-blocks"),value:C,onChange:function(e){return d(n({},"".concat(a,"spread"),e))},min:0,max:200}))),"hover"===w&&!f&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(g,{defaultColor:(y["".concat(a,"hoverShadowColor")]||{}).default,label:(0,o.__)("Hover Shadow Color","essential-blocks"),color:M,onChange:function(e){return d(n({},"".concat(a,"hoverShadowColor"),e))}}),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"hoverHOffset"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Horizontal Offset","essential-blocks"),value:A,onChange:function(e){return d(n({},"".concat(a,"hoverHOffset"),e))},min:0,max:200})),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"hoverVOffset"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Vertical Offset","essential-blocks"),value:T,onChange:function(e){return d(n({},"".concat(a,"hoverVOffset"),e))},min:0,max:200})),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"hoverBlur"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Shadow Blur","essential-blocks"),value:P,onChange:function(e){return d(n({},"".concat(a,"hoverBlur"),e))},min:0,max:200})),(0,s.createElement)(p,{onReset:function(){return d(n({},"".concat(a,"hoverSpread"),void 0))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Shadow Spread","essential-blocks"),value:N,onChange:function(e){return d(n({},"".concat(a,"hoverSpread"),e))},min:0,max:200})),(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Shadow Transition","essential-blocks"),value:F,onChange:function(e){return d(n({},"".concat(a,"shadowTransition"),e))},step:.01,min:0,max:5}))))}}))))}function te(e){var t=e.children,a=e.resRequiredProps,i=e.label,r=e.controlName,o=e.onReset,l=e.noUnits,c=a.setAttributes,f=a.resOption,u=a.objAttributes;o=function(){l?("Desktop"==f&&c(n({},"".concat(r,"Range"),u["".concat(r,"Range")].default)),"Tablet"==f&&c(n({},"TAB".concat(r,"Range"),u["TAB".concat(r,"Range")].default)),"Mobile"==f&&c(n({},"MOB".concat(r,"Range"),u["MOB".concat(r,"Range")].default))):("Desktop"==f&&c(n(n({},"".concat(r,"Range"),u["".concat(r,"Range")].default),"".concat(r,"Unit"),u["".concat(r,"Unit")].default||"px")),"Tablet"==f&&c(n(n({},"TAB".concat(r,"Range"),u["TAB".concat(r,"Range")].default),"TAB".concat(r,"Unit"),u["TAB".concat(r,"Unit")].default||"px")),"Mobile"==f&&c(n(n({},"MOB".concat(r,"Range"),u["MOB".concat(r,"Range")].default),"MOB".concat(r,"Unit"),u["MOB".concat(r,"Unit")].default||"px")))};var h=function(){var e=(eb_conditional_localize||{}).editor_type;return"edit-site"===e?(0,d.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,d.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,s.createElement)("div",{className:"responsive-btn-wrapper"},(0,s.createElement)("div",{className:"responsive-btn"},(0,s.createElement)("span",{className:"responsive-btn-label components-base-control__label"},i),(0,s.createElement)("span",{onClick:function(){return F({setPreviewDeviceType:h(),setAttributes:c})},className:"typoResButton dashicons dashicons-desktop ".concat("Desktop"===f?"active":" ")}),(0,s.createElement)("span",{onClick:function(){return _({setPreviewDeviceType:h(),setAttributes:c})},className:"typoResButton dashicons dashicons-tablet ".concat("Tablet"===f?"active":" ")}),(0,s.createElement)("span",{onClick:function(){return z({setPreviewDeviceType:h(),setAttributes:c})},className:"typoResButton dashicons dashicons-smartphone ".concat("Mobile"===f?"active":" ")})),(0,s.createElement)("div",{className:"eb-component-wrapper"},t,(0,s.createElement)("button",{className:"eb-range-reset-button",onClick:o},(0,s.createElement)("span",{className:"dashicon dashicons dashicons-image-rotate"}))))}const ae=function(e){var t,a,i,r,o=e.baseLabel,c=e.controlName,f=e.resRequiredProps,u=e.units,h=e.min,d=e.max,g=e.step,p=e.noUnits,m=f.attributes,y=f.setAttributes,v=f.resOption,b=m["".concat(c,"Range")],w=m["TAB".concat(c,"Range")],S=m["MOB".concat(c,"Range")];return p||(t=m["".concat(c,"Unit")],a=m["TAB".concat(c,"Unit")],i=m["MOB".concat(c,"Unit")],r=[{label:"px",value:"px"},{label:"em",value:"em"},{label:"%",value:"%"}]),(0,s.createElement)("div",{className:"responsiveRangeControllerWrapper"},p?(0,s.createElement)(s.Fragment,null,"Desktop"==v&&(0,s.createElement)(te,{noUnits:p,label:o,resRequiredProps:f,controlName:c},(0,s.createElement)(l.RangeControl,{value:b,onChange:function(e){return y(n({},"".concat(c,"Range"),e))},step:g||1,min:h||0,max:d||100})),"Tablet"==v&&(0,s.createElement)(te,{noUnits:p,label:o,resRequiredProps:f,controlName:c},(0,s.createElement)(l.RangeControl,{value:w,onChange:function(e){return y(n({},"TAB".concat(c,"Range"),e))},step:g||1,min:h||0,max:d||100})),"Mobile"==v&&(0,s.createElement)(te,{noUnits:p,label:o,resRequiredProps:f,controlName:c},(0,s.createElement)(l.RangeControl,{value:S,onChange:function(e){return y(n({},"MOB".concat(c,"Range"),e))},step:g||1,min:h||0,max:d||100}))):(0,s.createElement)(s.Fragment,null,"Desktop"==v&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:t,unitTypes:u||r,onClick:function(e){return y(n({},"".concat(c,"Unit"),e))}}),(0,s.createElement)(te,{label:o,resRequiredProps:f,controlName:c},(0,s.createElement)(l.RangeControl,{value:b,onChange:function(e){return y(n({},"".concat(c,"Range"),e))},step:"em"===t?.1:g,min:"px"===t?h:0,max:"px"===t?d:100}))),"Tablet"==v&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:a,unitTypes:u||r,onClick:function(e){return y(n({},"TAB".concat(c,"Unit"),e))}}),(0,s.createElement)(te,{label:o,resRequiredProps:f,controlName:c},(0,s.createElement)(l.RangeControl,{value:w,onChange:function(e){return y(n({},"TAB".concat(c,"Range"),e))},step:"em"===a?.1:g,min:"px"===a?h:0,max:"px"===a?d:100}))),"Mobile"==v&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:i,unitTypes:u||r,onClick:function(e){return y(n({},"MOB".concat(c,"Unit"),e))}}),(0,s.createElement)(te,{label:o,resRequiredProps:f,controlName:c},(0,s.createElement)(l.RangeControl,{value:S,onChange:function(e){return y(n({},"MOB".concat(c,"Range"),e))},step:"em"===i?.1:g,min:"px"===i?h:0,max:"px"===i?d:100})))))};function ie(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e,t){if(null==e)return{};var a,i,r={},n=Object.keys(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(r[a]=e[a]);return r}function ne(e,t){if(null==e)return{};var a,i,r=re(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}const se=window.wp.compose;function oe(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function le(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):oe(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var ce=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},fe.apply(this,arguments)}function ue(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}function he(e,t){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},he(e,t)}function de(e){return de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},de(e)}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ge=function(){return!!e})()}var pe=function(){function e(e){var t=this;this._insertTag=function(e){var a;a=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,a),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var a=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{a.insertRule(e,a.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),me=Math.abs,ye=String.fromCharCode,ve=Object.assign;function be(e){return e.trim()}function we(e,t,a){return e.replace(t,a)}function Se(e,t){return e.indexOf(t)}function ke(e,t){return 0|e.charCodeAt(t)}function Oe(e,t,a){return e.slice(t,a)}function xe(e){return e.length}function Ce(e){return e.length}function Me(e,t){return t.push(e),e}var Ae=1,Te=1,Pe=0,Ne=0,Ee=0,Re="";function De(e,t,a,i,r,n,s){return{value:e,root:t,parent:a,type:i,props:r,children:n,line:Ae,column:Te,length:s,return:""}}function Be(e,t){return ve(De("",null,null,"",null,null,0),e,{length:-e.length},t)}function Le(){return Ee=Ne>0?ke(Re,--Ne):0,Te--,10===Ee&&(Te=1,Ae--),Ee}function Ie(){return Ee=Ne<Pe?ke(Re,Ne++):0,Te++,10===Ee&&(Te=1,Ae++),Ee}function Fe(){return ke(Re,Ne)}function _e(){return Ne}function ze(e,t){return Oe(Re,e,t)}function je(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function He(e){return Ae=Te=1,Pe=xe(Re=e),Ne=0,[]}function Ve(e){return Re="",e}function qe(e){return be(ze(Ne-1,Ue(91===e?e+2:40===e?e+1:e)))}function We(e){for(;(Ee=Fe())&&Ee<33;)Ie();return je(e)>2||je(Ee)>3?"":" "}function Ge(e,t){for(;--t&&Ie()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return ze(e,_e()+(t<6&&32==Fe()&&32==Ie()))}function Ue(e){for(;Ie();)switch(Ee){case e:return Ne;case 34:case 39:34!==e&&39!==e&&Ue(Ee);break;case 40:41===e&&Ue(e);break;case 92:Ie()}return Ne}function $e(e,t){for(;Ie()&&e+Ee!==57&&(e+Ee!==84||47!==Fe()););return"/*"+ze(t,Ne-1)+"*"+ye(47===e?e:Ie())}function Qe(e){for(;!je(Fe());)Ie();return ze(e,Ne)}var Ke="-ms-",Xe="-moz-",Ye="-webkit-",Je="comm",Ze="rule",et="decl",tt="@keyframes";function at(e,t){for(var a="",i=Ce(e),r=0;r<i;r++)a+=t(e[r],r,e,t)||"";return a}function it(e,t,a,i){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case et:return e.return=e.return||e.value;case Je:return"";case tt:return e.return=e.value+"{"+at(e.children,i)+"}";case Ze:e.value=e.props.join(",")}return xe(a=at(e.children,i))?e.return=e.value+"{"+a+"}":""}function rt(e){return Ve(nt("",null,null,null,[""],e=He(e),0,[0],e))}function nt(e,t,a,i,r,n,s,o,l){for(var c=0,f=0,u=s,h=0,d=0,g=0,p=1,m=1,y=1,v=0,b="",w=r,S=n,k=i,O=b;m;)switch(g=v,v=Ie()){case 40:if(108!=g&&58==ke(O,u-1)){-1!=Se(O+=we(qe(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:O+=qe(v);break;case 9:case 10:case 13:case 32:O+=We(g);break;case 92:O+=Ge(_e()-1,7);continue;case 47:switch(Fe()){case 42:case 47:Me(ot($e(Ie(),_e()),t,a),l);break;default:O+="/"}break;case 123*p:o[c++]=xe(O)*y;case 125*p:case 59:case 0:switch(v){case 0:case 125:m=0;case 59+f:-1==y&&(O=we(O,/\f/g,"")),d>0&&xe(O)-u&&Me(d>32?lt(O+";",i,a,u-1):lt(we(O," ","")+";",i,a,u-2),l);break;case 59:O+=";";default:if(Me(k=st(O,t,a,c,f,r,o,b,w=[],S=[],u),n),123===v)if(0===f)nt(O,t,k,k,w,n,u,o,S);else switch(99===h&&110===ke(O,3)?100:h){case 100:case 108:case 109:case 115:nt(e,k,k,i&&Me(st(e,k,k,0,0,r,o,b,r,w=[],u),S),r,S,u,o,i?w:S);break;default:nt(O,k,k,k,[""],S,0,o,S)}}c=f=d=0,p=y=1,b=O="",u=s;break;case 58:u=1+xe(O),d=g;default:if(p<1)if(123==v)--p;else if(125==v&&0==p++&&125==Le())continue;switch(O+=ye(v),v*p){case 38:y=f>0?1:(O+="\f",-1);break;case 44:o[c++]=(xe(O)-1)*y,y=1;break;case 64:45===Fe()&&(O+=qe(Ie())),h=Fe(),f=u=xe(b=O+=Qe(_e())),v++;break;case 45:45===g&&2==xe(O)&&(p=0)}}return n}function st(e,t,a,i,r,n,s,o,l,c,f){for(var u=r-1,h=0===r?n:[""],d=Ce(h),g=0,p=0,m=0;g<i;++g)for(var y=0,v=Oe(e,u+1,u=me(p=s[g])),b=e;y<d;++y)(b=be(p>0?h[y]+" "+v:we(v,/&\f/g,h[y])))&&(l[m++]=b);return De(e,t,a,0===r?Ze:o,l,c,f)}function ot(e,t,a){return De(e,t,a,Je,ye(Ee),Oe(e,2,-2),0)}function lt(e,t,a,i){return De(e,t,a,et,Oe(e,0,i),Oe(e,i+1,-1),i)}var ct=function(e,t,a){for(var i=0,r=0;i=r,r=Fe(),38===i&&12===r&&(t[a]=1),!je(r);)Ie();return ze(e,Ne)},ft=new WeakMap,ut=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,a=e.parent,i=e.column===a.column&&e.line===a.line;"rule"!==a.type;)if(!(a=a.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ft.get(a))&&!i){ft.set(e,!0);for(var r=[],n=function(e,t){return Ve(function(e,t){var a=-1,i=44;do{switch(je(i)){case 0:38===i&&12===Fe()&&(t[a]=1),e[a]+=ct(Ne-1,t,a);break;case 2:e[a]+=qe(i);break;case 4:if(44===i){e[++a]=58===Fe()?"&\f":"",t[a]=e[a].length;break}default:e[a]+=ye(i)}}while(i=Ie());return e}(He(e),t))}(t,r),s=a.props,o=0,l=0;o<n.length;o++)for(var c=0;c<s.length;c++,l++)e.props[l]=r[o]?n[o].replace(/&\f/g,s[c]):s[c]+" "+n[o]}}},ht=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function dt(e,t){switch(function(e,t){return 45^ke(e,0)?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}(e,t)){case 5103:return Ye+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ye+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ye+e+Xe+e+Ke+e+e;case 6828:case 4268:return Ye+e+Ke+e+e;case 6165:return Ye+e+Ke+"flex-"+e+e;case 5187:return Ye+e+we(e,/(\w+).+(:[^]+)/,Ye+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return Ye+e+Ke+"flex-item-"+we(e,/flex-|-self/,"")+e;case 4675:return Ye+e+Ke+"flex-line-pack"+we(e,/align-content|flex-|-self/,"")+e;case 5548:return Ye+e+Ke+we(e,"shrink","negative")+e;case 5292:return Ye+e+Ke+we(e,"basis","preferred-size")+e;case 6060:return Ye+"box-"+we(e,"-grow","")+Ye+e+Ke+we(e,"grow","positive")+e;case 4554:return Ye+we(e,/([^-])(transform)/g,"$1"+Ye+"$2")+e;case 6187:return we(we(we(e,/(zoom-|grab)/,Ye+"$1"),/(image-set)/,Ye+"$1"),e,"")+e;case 5495:case 3959:return we(e,/(image-set\([^]*)/,Ye+"$1$`$1");case 4968:return we(we(e,/(.+:)(flex-)?(.*)/,Ye+"box-pack:$3"+Ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ye+e+e;case 4095:case 3583:case 4068:case 2532:return we(e,/(.+)-inline(.+)/,Ye+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xe(e)-1-t>6)switch(ke(e,t+1)){case 109:if(45!==ke(e,t+4))break;case 102:return we(e,/(.+:)(.+)-([^]+)/,"$1"+Ye+"$2-$3$1"+Xe+(108==ke(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?dt(we(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ke(e,t+1))break;case 6444:switch(ke(e,xe(e)-3-(~Se(e,"!important")&&10))){case 107:return we(e,":",":"+Ye)+e;case 101:return we(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ye+(45===ke(e,14)?"inline-":"")+"box$3$1"+Ye+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return Ye+e+Ke+we(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ye+e+Ke+we(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ye+e+Ke+we(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ye+e+Ke+e+e}return e}var gt=[function(e,t,a,i){if(e.length>-1&&!e.return)switch(e.type){case et:e.return=dt(e.value,e.length);break;case tt:return at([Be(e,{value:we(e.value,"@","@"+Ye)})],i);case Ze:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return at([Be(e,{props:[we(t,/:(read-\w+)/,":-moz-$1")]})],i);case"::placeholder":return at([Be(e,{props:[we(t,/:(plac\w+)/,":"+Ye+"input-$1")]}),Be(e,{props:[we(t,/:(plac\w+)/,":-moz-$1")]}),Be(e,{props:[we(t,/:(plac\w+)/,Ke+"input-$1")]})],i)}return""}))}}],pt=function(e){var t=e.key;if("css"===t){var a=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(a,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i,r,n=e.stylisPlugins||gt,s={},o=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),a=1;a<t.length;a++)s[t[a]]=!0;o.push(e)}));var l,c,f,u,h=[it,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=(c=[ut,ht].concat(n,h),f=Ce(c),function(e,t,a,i){for(var r="",n=0;n<f;n++)r+=c[n](e,t,a,i)||"";return r});r=function(e,t,a,i){l=a,at(rt(e?e+"{"+t.styles+"}":t.styles),d),i&&(g.inserted[t.name]=!0)};var g={key:t,sheet:new pe({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:r};return g.sheet.hydrate(o),g},mt=function(e,t,a){var i=e.key+"-"+t.name;!1===a&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},yt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function vt(e){var t=Object.create(null);return function(a){return void 0===t[a]&&(t[a]=e(a)),t[a]}}var bt=/[A-Z]|^ms/g,wt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,St=function(e){return 45===e.charCodeAt(1)},kt=function(e){return null!=e&&"boolean"!=typeof e},Ot=vt((function(e){return St(e)?e:e.replace(bt,"-$&").toLowerCase()})),xt=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(wt,(function(e,t,a){return Mt={name:t,styles:a,next:Mt},t}))}return 1===yt[e]||St(e)||"number"!=typeof t||0===t?t:t+"px"};function Ct(e,t,a){if(null==a)return"";if(void 0!==a.__emotion_styles)return a;switch(typeof a){case"boolean":return"";case"object":if(1===a.anim)return Mt={name:a.name,styles:a.styles,next:Mt},a.name;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)Mt={name:i.name,styles:i.styles,next:Mt},i=i.next;return a.styles+";"}return function(e,t,a){var i="";if(Array.isArray(a))for(var r=0;r<a.length;r++)i+=Ct(e,t,a[r])+";";else for(var n in a){var s=a[n];if("object"!=typeof s)null!=t&&void 0!==t[s]?i+=n+"{"+t[s]+"}":kt(s)&&(i+=Ot(n)+":"+xt(n,s)+";");else if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var o=Ct(e,t,s);switch(n){case"animation":case"animationName":i+=Ot(n)+":"+o+";";break;default:i+=n+"{"+o+"}"}}else for(var l=0;l<s.length;l++)kt(s[l])&&(i+=Ot(n)+":"+xt(n,s[l])+";")}return i}(e,t,a);case"function":if(void 0!==e){var r=Mt,n=a(e);return Mt=r,Ct(e,t,n)}}if(null==t)return a;var s=t[a];return void 0!==s?s:a}var Mt,At=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Tt=function(e,t,a){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,r="";Mt=void 0;var n=e[0];null==n||void 0===n.raw?(i=!1,r+=Ct(a,t,n)):r+=n[0];for(var s=1;s<e.length;s++)r+=Ct(a,t,e[s]),i&&(r+=n[s]);At.lastIndex=0;for(var o,l="";null!==(o=At.exec(r));)l+="-"+o[1];var c=function(e){for(var t,a=0,i=0,r=e.length;r>=4;++i,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+(59797*(t>>>16)<<16),a=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&a)+(59797*(a>>>16)<<16);switch(r){case 3:a^=(255&e.charCodeAt(i+2))<<16;case 2:a^=(255&e.charCodeAt(i+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(i)))+(59797*(a>>>16)<<16)}return(((a=1540483477*(65535&(a^=a>>>13))+(59797*(a>>>16)<<16))^a>>>15)>>>0).toString(36)}(r)+l;return{name:c,styles:r,next:Mt}},Pt=!!s.useInsertionEffect&&s.useInsertionEffect,Nt=Pt||function(e){return e()},Et=(Pt||s.useLayoutEffect,{}.hasOwnProperty),Rt=s.createContext("undefined"!=typeof HTMLElement?pt({key:"css"}):null);Rt.Provider;var Dt=function(e){return(0,s.forwardRef)((function(t,a){var i=(0,s.useContext)(Rt);return e(t,i,a)}))},Bt=s.createContext({}),Lt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",It=function(e){var t=e.cache,a=e.serialized,i=e.isStringTag;return mt(t,a,i),Nt((function(){return function(e,t,a){mt(e,t,a);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r=t;do{e.insert(t===r?"."+i:"",r,e.sheet,!0),r=r.next}while(void 0!==r)}}(t,a,i)})),null},Ft=Dt((function(e,t,a){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var r=e[Lt],n=[i],o="";"string"==typeof e.className?o=function(e,t,a){var i="";return a.split(" ").forEach((function(a){void 0!==e[a]?t.push(e[a]+";"):i+=a+" "})),i}(t.registered,n,e.className):null!=e.className&&(o=e.className+" ");var l=Tt(n,void 0,s.useContext(Bt));o+=t.key+"-"+l.name;var c={};for(var f in e)Et.call(e,f)&&"css"!==f&&f!==Lt&&(c[f]=e[f]);return c.ref=a,c.className=o,s.createElement(s.Fragment,null,s.createElement(It,{cache:t,serialized:l,isStringTag:"string"==typeof r}),s.createElement(r,c))})),_t=Ft,zt=(a(146),function(e,t){var a=arguments;if(null==t||!Et.call(t,"css"))return s.createElement.apply(void 0,a);var i=a.length,r=new Array(i);r[0]=_t,r[1]=function(e,t){var a={};for(var i in t)Et.call(t,i)&&(a[i]=t[i]);return a[Lt]=e,a}(e,t);for(var n=2;n<i;n++)r[n]=a[n];return s.createElement.apply(null,r)});function jt(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Tt(t)}const Ht=window.ReactDOM,Vt=Math.min,qt=Math.max,Wt=Math.round,Gt=Math.floor,Ut=e=>({x:e,y:e});function $t(e){return Xt(e)?(e.nodeName||"").toLowerCase():"#document"}function Qt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Kt(e){var t;return null==(t=(Xt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Xt(e){return e instanceof Node||e instanceof Qt(e).Node}function Yt(e){return e instanceof Element||e instanceof Qt(e).Element}function Jt(e){return e instanceof HTMLElement||e instanceof Qt(e).HTMLElement}function Zt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Qt(e).ShadowRoot)}function ea(e){const{overflow:t,overflowX:a,overflowY:i,display:r}=ta(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(r)}function ta(e){return Qt(e).getComputedStyle(e)}function aa(e){const t=function(e){if("html"===$t(e))return e;const t=e.assignedSlot||e.parentNode||Zt(e)&&e.host||Kt(e);return Zt(t)?t.host:t}(e);return function(e){return["html","body","#document"].includes($t(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&ea(t)?t:aa(t)}function ia(e,t,a){var i;void 0===t&&(t=[]),void 0===a&&(a=!0);const r=aa(e),n=r===(null==(i=e.ownerDocument)?void 0:i.body),s=Qt(r);return n?t.concat(s,s.visualViewport||[],ea(r)?r:[],s.frameElement&&a?ia(s.frameElement):[]):t.concat(r,ia(r,[],a))}function ra(e){return Yt(e)?e:e.contextElement}function na(e){const t=ra(e);if(!Jt(t))return Ut(1);const a=t.getBoundingClientRect(),{width:i,height:r,$:n}=function(e){const t=ta(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const r=Jt(e),n=r?e.offsetWidth:a,s=r?e.offsetHeight:i,o=Wt(a)!==n||Wt(i)!==s;return o&&(a=n,i=s),{width:a,height:i,$:o}}(t);let s=(n?Wt(a.width):a.width)/i,o=(n?Wt(a.height):a.height)/r;return s&&Number.isFinite(s)||(s=1),o&&Number.isFinite(o)||(o=1),{x:s,y:o}}const sa=Ut(0);function oa(e){const t=Qt(e);return"undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:sa}function la(e,t,a,i){void 0===t&&(t=!1),void 0===a&&(a=!1);const r=e.getBoundingClientRect(),n=ra(e);let s=Ut(1);t&&(i?Yt(i)&&(s=na(i)):s=na(e));const o=function(e,t,a){return void 0===t&&(t=!1),!(!a||t&&a!==Qt(e))&&t}(n,a,i)?oa(n):Ut(0);let l=(r.left+o.x)/s.x,c=(r.top+o.y)/s.y,f=r.width/s.x,u=r.height/s.y;if(n){const e=Qt(n),t=i&&Yt(i)?Qt(i):i;let a=e,r=a.frameElement;for(;r&&i&&t!==a;){const e=na(r),t=r.getBoundingClientRect(),i=ta(r),n=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;l*=e.x,c*=e.y,f*=e.x,u*=e.y,l+=n,c+=s,a=Qt(r),r=a.frameElement}}return h={width:f,height:u,x:l,y:c},{...h,top:h.y,left:h.x,right:h.x+h.width,bottom:h.y+h.height};var h}const ca=s.useLayoutEffect;var fa=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ua=function(){};function ha(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function da(e,t){for(var a=arguments.length,i=new Array(a>2?a-2:0),r=2;r<a;r++)i[r-2]=arguments[r];var n=[].concat(i);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&n.push("".concat(ha(e,s)));return n.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var ga=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===i(e)&&null!==e?[e]:[];var t},pa=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,le({},ne(e,fa))},ma=function(e,t,a){var i=e.cx,r=e.getStyles,n=e.getClassNames,s=e.className;return{css:r(t,e),className:i(null!=a?a:{},n(t,e),s)}};function ya(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function va(e){return ya(e)?window.pageYOffset:e.scrollTop}function ba(e,t){ya(e)?window.scrollTo(0,t):e.scrollTop=t}function wa(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ua,r=va(e),n=t-r,s=0;!function t(){var o=function(e,t,a,i){return a*((e=e/i-1)*e*e+1)+t}(s+=10,r,n,a);ba(e,o),s<a?window.requestAnimationFrame(t):i(e)}()}function Sa(e,t){var a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=t.offsetHeight/3;i.bottom+r>a.bottom?ba(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):i.top-r<a.top&&ba(e,Math.max(t.offsetTop-r,0))}function ka(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var Oa=!1,xa={get passive(){return Oa=!0}},Ca="undefined"!=typeof window?window:{};Ca.addEventListener&&Ca.removeEventListener&&(Ca.addEventListener("p",ua,xa),Ca.removeEventListener("p",ua,!1));var Ma=Oa;function Aa(e){return null!=e}function Ta(e,t,a){return e?t:a}var Pa=["children","innerProps"],Na=["children","innerProps"];var Ea,Ra,Da,Ba=function(e){return"auto"===e?"bottom":e},La=(0,s.createContext)(null),Ia=function(e){var t=e.children,a=e.minMenuHeight,i=e.maxMenuHeight,r=e.menuPlacement,n=e.menuPosition,o=e.menuShouldScrollIntoView,l=e.theme,c=((0,s.useContext)(La)||{}).setPortalPlacement,f=(0,s.useRef)(null),h=u((0,s.useState)(i),2),d=h[0],g=h[1],p=u((0,s.useState)(null),2),m=p[0],y=p[1],v=l.spacing.controlHeight;return ca((function(){var e=f.current;if(e){var t="fixed"===n,s=function(e){var t=e.maxHeight,a=e.menuEl,i=e.minHeight,r=e.placement,n=e.shouldScroll,s=e.isFixedPosition,o=e.controlHeight,l=function(e){var t=getComputedStyle(e),a="absolute"===t.position,i=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!a||"static"!==t.position)&&i.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}(a),c={placement:"bottom",maxHeight:t};if(!a||!a.offsetParent)return c;var f,u=l.getBoundingClientRect().height,h=a.getBoundingClientRect(),d=h.bottom,g=h.height,p=h.top,m=a.offsetParent.getBoundingClientRect().top,y=s||ya(f=l)?window.innerHeight:f.clientHeight,v=va(l),b=parseInt(getComputedStyle(a).marginBottom,10),w=parseInt(getComputedStyle(a).marginTop,10),S=m-w,k=y-p,O=S+v,x=u-v-p,C=d-y+v+b,M=v+p-w,A=160;switch(r){case"auto":case"bottom":if(k>=g)return{placement:"bottom",maxHeight:t};if(x>=g&&!s)return n&&wa(l,C,A),{placement:"bottom",maxHeight:t};if(!s&&x>=i||s&&k>=i)return n&&wa(l,C,A),{placement:"bottom",maxHeight:s?k-b:x-b};if("auto"===r||s){var T=t,P=s?S:O;return P>=i&&(T=Math.min(P-b-o,t)),{placement:"top",maxHeight:T}}if("bottom"===r)return n&&ba(l,C),{placement:"bottom",maxHeight:t};break;case"top":if(S>=g)return{placement:"top",maxHeight:t};if(O>=g&&!s)return n&&wa(l,M,A),{placement:"top",maxHeight:t};if(!s&&O>=i||s&&S>=i){var N=t;return(!s&&O>=i||s&&S>=i)&&(N=s?S-w:O-w),n&&wa(l,M,A),{placement:"top",maxHeight:N}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}({maxHeight:i,menuEl:e,minHeight:a,placement:r,shouldScroll:o&&!t,isFixedPosition:t,controlHeight:v});g(s.maxHeight),y(s.placement),null==c||c(s.placement)}}),[i,r,n,o,a,c,v]),t({ref:f,placerProps:le(le({},e),{},{placement:m||Ba(r),maxHeight:d})})},Fa=function(e,t){var a=e.theme,i=a.spacing.baseUnit,r=a.colors;return le({textAlign:"center"},t?{}:{color:r.neutral40,padding:"".concat(2*i,"px ").concat(3*i,"px")})},_a=Fa,za=Fa,ja=["size"],Ha=["innerProps","isRtl","size"],Va={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},qa=function(e){var t=e.size,a=ne(e,ja);return zt("svg",fe({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Va},a))},Wa=function(e){return zt(qa,fe({size:20},e),zt("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ga=function(e){return zt(qa,fe({size:20},e),zt("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ua=function(e,t){var a=e.isFocused,i=e.theme,r=i.spacing.baseUnit,n=i.colors;return le({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*r,":hover":{color:a?n.neutral80:n.neutral40}})},$a=Ua,Qa=Ua,Ka=function(){var e=jt.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(Ea||(Ra=["\n 0%, 80%, 100% { opacity: 0; }\n 40% { opacity: 1; }\n"],Da||(Da=Ra.slice(0)),Ea=Object.freeze(Object.defineProperties(Ra,{raw:{value:Object.freeze(Da)}})))),Xa=function(e){var t=e.delay,a=e.offset;return zt("span",{css:jt({animation:"".concat(Ka," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:a?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Ya=["data"],Ja=["innerRef","isDisabled","isHidden","inputClassName"],Za={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},ei={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":le({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Za)},ti=function(e){return le({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Za)},ai=function(e){var t=e.children,a=e.innerProps;return zt("div",a,t)},ii={ClearIndicator:function(e){var t=e.children,a=e.innerProps;return zt("div",fe({},ma(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),a),t||zt(Wa,null))},Control:function(e){var t=e.children,a=e.isDisabled,i=e.isFocused,r=e.innerRef,n=e.innerProps,s=e.menuIsOpen;return zt("div",fe({ref:r},ma(e,"control",{control:!0,"control--is-disabled":a,"control--is-focused":i,"control--menu-is-open":s}),n,{"aria-disabled":a||void 0}),t)},DropdownIndicator:function(e){var t=e.children,a=e.innerProps;return zt("div",fe({},ma(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),a),t||zt(Ga,null))},DownChevron:Ga,CrossIcon:Wa,Group:function(e){var t=e.children,a=e.cx,i=e.getStyles,r=e.getClassNames,n=e.Heading,s=e.headingProps,o=e.innerProps,l=e.label,c=e.theme,f=e.selectProps;return zt("div",fe({},ma(e,"group",{group:!0}),o),zt(n,fe({},s,{selectProps:f,theme:c,getStyles:i,getClassNames:r,cx:a}),l),zt("div",null,t))},GroupHeading:function(e){var t=pa(e);t.data;var a=ne(t,Ya);return zt("div",fe({},ma(e,"groupHeading",{"group-heading":!0}),a))},IndicatorsContainer:function(e){var t=e.children,a=e.innerProps;return zt("div",fe({},ma(e,"indicatorsContainer",{indicators:!0}),a),t)},IndicatorSeparator:function(e){var t=e.innerProps;return zt("span",fe({},t,ma(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,a=e.value,i=pa(e),r=i.innerRef,n=i.isDisabled,s=i.isHidden,o=i.inputClassName,l=ne(i,Ja);return zt("div",fe({},ma(e,"input",{"input-container":!0}),{"data-value":a||""}),zt("input",fe({className:t({input:!0},o),ref:r,style:ti(s),disabled:n},l)))},LoadingIndicator:function(e){var t=e.innerProps,a=e.isRtl,i=e.size,r=void 0===i?4:i,n=ne(e,Ha);return zt("div",fe({},ma(le(le({},n),{},{innerProps:t,isRtl:a,size:r}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),zt(Xa,{delay:0,offset:a}),zt(Xa,{delay:160,offset:!0}),zt(Xa,{delay:320,offset:!a}))},Menu:function(e){var t=e.children,a=e.innerRef,i=e.innerProps;return zt("div",fe({},ma(e,"menu",{menu:!0}),{ref:a},i),t)},MenuList:function(e){var t=e.children,a=e.innerProps,i=e.innerRef,r=e.isMulti;return zt("div",fe({},ma(e,"menuList",{"menu-list":!0,"menu-list--is-multi":r}),{ref:i},a),t)},MenuPortal:function(e){var t=e.appendTo,a=e.children,i=e.controlElement,r=e.innerProps,n=e.menuPlacement,o=e.menuPosition,l=(0,s.useRef)(null),c=(0,s.useRef)(null),f=u((0,s.useState)(Ba(n)),2),h=f[0],d=f[1],g=(0,s.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=u((0,s.useState)(null),2),m=p[0],y=p[1],v=(0,s.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===o?0:window.pageYOffset,a=e[h]+t;a===(null==m?void 0:m.offset)&&e.left===(null==m?void 0:m.rect.left)&&e.width===(null==m?void 0:m.rect.width)||y({offset:a,rect:e})}}),[i,o,h,null==m?void 0:m.offset,null==m?void 0:m.rect.left,null==m?void 0:m.rect.width]);ca((function(){v()}),[v]);var b=(0,s.useCallback)((function(){"function"==typeof c.current&&(c.current(),c.current=null),i&&l.current&&(c.current=function(e,t,a,i){void 0===i&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:o="function"==typeof IntersectionObserver,animationFrame:l=!1}=i,c=ra(e),f=r||n?[...c?ia(c):[],...ia(t)]:[];f.forEach((e=>{r&&e.addEventListener("scroll",a,{passive:!0}),n&&e.addEventListener("resize",a)}));const u=c&&o?function(e,t){let a,i=null;const r=Kt(e);function n(){var e;clearTimeout(a),null==(e=i)||e.disconnect(),i=null}return function s(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),n();const{left:c,top:f,width:u,height:h}=e.getBoundingClientRect();if(o||t(),!u||!h)return;const d={rootMargin:-Gt(f)+"px "+-Gt(r.clientWidth-(c+u))+"px "+-Gt(r.clientHeight-(f+h))+"px "+-Gt(c)+"px",threshold:qt(0,Vt(1,l))||1};let g=!0;function p(e){const t=e[0].intersectionRatio;if(t!==l){if(!g)return s();t?s(!1,t):a=setTimeout((()=>{s(!1,1e-7)}),100)}g=!1}try{i=new IntersectionObserver(p,{...d,root:r.ownerDocument})}catch(e){i=new IntersectionObserver(p,d)}i.observe(e)}(!0),n}(c,a):null;let h,d=-1,g=null;s&&(g=new ResizeObserver((e=>{let[i]=e;i&&i.target===c&&g&&(g.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame((()=>{var e;null==(e=g)||e.observe(t)}))),a()})),c&&!l&&g.observe(c),g.observe(t));let p=l?la(e):null;return l&&function t(){const i=la(e);!p||i.x===p.x&&i.y===p.y&&i.width===p.width&&i.height===p.height||a(),p=i,h=requestAnimationFrame(t)}(),a(),()=>{var e;f.forEach((e=>{r&&e.removeEventListener("scroll",a),n&&e.removeEventListener("resize",a)})),null==u||u(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(h)}}(i,l.current,v,{elementResize:"ResizeObserver"in window}))}),[i,v]);ca((function(){b()}),[b]);var w=(0,s.useCallback)((function(e){l.current=e,b()}),[b]);if(!t&&"fixed"!==o||!m)return null;var S=zt("div",fe({ref:w},ma(le(le({},e),{},{offset:m.offset,position:o,rect:m.rect}),"menuPortal",{"menu-portal":!0}),r),a);return zt(La.Provider,{value:g},t?(0,Ht.createPortal)(S,t):S)},LoadingMessage:function(e){var t=e.children,a=void 0===t?"Loading...":t,i=e.innerProps,r=ne(e,Na);return zt("div",fe({},ma(le(le({},r),{},{children:a,innerProps:i}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),i),a)},NoOptionsMessage:function(e){var t=e.children,a=void 0===t?"No options":t,i=e.innerProps,r=ne(e,Pa);return zt("div",fe({},ma(le(le({},r),{},{children:a,innerProps:i}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),i),a)},MultiValue:function(e){var t=e.children,a=e.components,i=e.data,r=e.innerProps,n=e.isDisabled,s=e.removeProps,o=e.selectProps,l=a.Container,c=a.Label,f=a.Remove;return zt(l,{data:i,innerProps:le(le({},ma(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":n})),r),selectProps:o},zt(c,{data:i,innerProps:le({},ma(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:o},t),zt(f,{data:i,innerProps:le(le({},ma(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},s),selectProps:o}))},MultiValueContainer:ai,MultiValueLabel:ai,MultiValueRemove:function(e){var t=e.children,a=e.innerProps;return zt("div",fe({role:"button"},a),t||zt(Wa,{size:14}))},Option:function(e){var t=e.children,a=e.isDisabled,i=e.isFocused,r=e.isSelected,n=e.innerRef,s=e.innerProps;return zt("div",fe({},ma(e,"option",{option:!0,"option--is-disabled":a,"option--is-focused":i,"option--is-selected":r}),{ref:n,"aria-disabled":a},s),t)},Placeholder:function(e){var t=e.children,a=e.innerProps;return zt("div",fe({},ma(e,"placeholder",{placeholder:!0}),a),t)},SelectContainer:function(e){var t=e.children,a=e.innerProps,i=e.isDisabled,r=e.isRtl;return zt("div",fe({},ma(e,"container",{"--is-disabled":i,"--is-rtl":r}),a),t)},SingleValue:function(e){var t=e.children,a=e.isDisabled,i=e.innerProps;return zt("div",fe({},ma(e,"singleValue",{"single-value":!0,"single-value--is-disabled":a}),i),t)},ValueContainer:function(e){var t=e.children,a=e.innerProps,i=e.isMulti,r=e.hasValue;return zt("div",fe({},ma(e,"valueContainer",{"value-container":!0,"value-container--is-multi":i,"value-container--has-value":r}),a),t)}},ri=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ni(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(!((i=e[a])===(r=t[a])||ri(i)&&ri(r)))return!1;var i,r;return!0}for(var si={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},oi=function(e){return zt("span",fe({css:si},e))},li={guidance:function(e){var t=e.isSearchable,a=e.isMulti,i=e.tabSelectsValue,r=e.context,n=e.isInitialFocus;switch(r){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return n?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(a?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,a=e.label,i=void 0===a?"":a,r=e.labels,n=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(i,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(r.length>1?"s":""," ").concat(r.join(","),", selected.");case"select-option":return"option ".concat(i,n?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,a=e.focused,i=e.options,r=e.label,n=void 0===r?"":r,s=e.selectValue,o=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,f=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&s)return"value ".concat(n," focused, ").concat(f(s,a),".");if("menu"===t&&c){var u=o?" disabled":"",h="".concat(l?" selected":"").concat(u);return"".concat(n).concat(h,", ").concat(f(i,a),".")}return""},onFilter:function(e){var t=e.inputValue,a=e.resultsMessage;return"".concat(a).concat(t?" for search term "+t:"",".")}},ci=function(e){var t=e.ariaSelection,a=e.focusedOption,i=e.focusedValue,r=e.focusableOptions,n=e.isFocused,o=e.selectValue,l=e.selectProps,c=e.id,f=e.isAppleDevice,u=l.ariaLiveMessages,h=l.getOptionLabel,d=l.inputValue,g=l.isMulti,p=l.isOptionDisabled,m=l.isSearchable,y=l.menuIsOpen,v=l.options,b=l.screenReaderStatus,w=l.tabSelectsValue,S=l.isLoading,k=l["aria-label"],O=l["aria-live"],x=(0,s.useMemo)((function(){return le(le({},li),u||{})}),[u]),C=(0,s.useMemo)((function(){var e,a="";if(t&&x.onChange){var i=t.option,r=t.options,n=t.removedValue,s=t.removedValues,l=t.value,c=n||i||(e=l,Array.isArray(e)?null:e),f=c?h(c):"",u=r||s||void 0,d=u?u.map(h):[],g=le({isDisabled:c&&p(c,o),label:f,labels:d},t);a=x.onChange(g)}return a}),[t,x,p,o,h]),M=(0,s.useMemo)((function(){var e="",t=a||i,n=!!(a&&o&&o.includes(a));if(t&&x.onFocus){var s={focused:t,label:h(t),isDisabled:p(t,o),isSelected:n,options:r,context:t===a?"menu":"value",selectValue:o,isAppleDevice:f};e=x.onFocus(s)}return e}),[a,i,h,p,x,r,o,f]),A=(0,s.useMemo)((function(){var e="";if(y&&v.length&&!S&&x.onFilter){var t=b({count:r.length});e=x.onFilter({inputValue:d,resultsMessage:t})}return e}),[r,d,y,x,v,b,S]),T="initial-input-focus"===(null==t?void 0:t.action),P=(0,s.useMemo)((function(){var e="";if(x.guidance){var t=i?"value":y?"menu":"input";e=x.guidance({"aria-label":k,context:t,isDisabled:a&&p(a,o),isMulti:g,isSearchable:m,tabSelectsValue:w,isInitialFocus:T})}return e}),[k,a,i,g,p,m,y,x,o,w,T]),N=zt(s.Fragment,null,zt("span",{id:"aria-selection"},C),zt("span",{id:"aria-focused"},M),zt("span",{id:"aria-results"},A),zt("span",{id:"aria-guidance"},P));return zt(s.Fragment,null,zt(oi,{id:c},T&&N),zt(oi,{"aria-live":O,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},n&&!T&&N))},fi=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],ui=new RegExp("["+fi.map((function(e){return e.letters})).join("")+"]","g"),hi={},di=0;di<fi.length;di++)for(var gi=fi[di],pi=0;pi<gi.letters.length;pi++)hi[gi.letters[pi]]=gi.base;var mi=function(e){return e.replace(ui,(function(e){return hi[e]}))},yi=function(e,t){void 0===t&&(t=ni);var a=null;function i(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];if(a&&a.lastThis===this&&t(i,a.lastArgs))return a.lastResult;var n=e.apply(this,i);return a={lastResult:n,lastArgs:i,lastThis:this},n}return i.clear=function(){a=null},i}(mi),vi=function(e){return e.replace(/^\s+|\s+$/g,"")},bi=function(e){return"".concat(e.label," ").concat(e.value)},wi=["innerRef"];function Si(e){var t=e.innerRef,a=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];var r=Object.entries(e).filter((function(e){var t=u(e,1)[0];return!a.includes(t)}));return r.reduce((function(e,t){var a=u(t,2),i=a[0],r=a[1];return e[i]=r,e}),{})}(ne(e,wi),"onExited","in","enter","exit","appear");return zt("input",fe({ref:t},a,{css:jt({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ki=["boxSizing","height","overflow","paddingRight","position"],Oi={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function xi(e){e.preventDefault()}function Ci(e){e.stopPropagation()}function Mi(){var e=this.scrollTop,t=this.scrollHeight,a=e+this.offsetHeight;0===e?this.scrollTop=1:a===t&&(this.scrollTop=e-1)}function Ai(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ti=!("undefined"==typeof window||!window.document||!window.document.createElement),Pi=0,Ni={capture:!1,passive:!1},Ei=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},Ri={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function Di(e){var t=e.children,a=e.lockEnabled,i=e.captureEnabled,r=function(e){var t=e.isEnabled,a=e.onBottomArrive,i=e.onBottomLeave,r=e.onTopArrive,n=e.onTopLeave,o=(0,s.useRef)(!1),l=(0,s.useRef)(!1),c=(0,s.useRef)(0),f=(0,s.useRef)(null),u=(0,s.useCallback)((function(e,t){if(null!==f.current){var s=f.current,c=s.scrollTop,u=s.scrollHeight,h=s.clientHeight,d=f.current,g=t>0,p=u-h-c,m=!1;p>t&&o.current&&(i&&i(e),o.current=!1),g&&l.current&&(n&&n(e),l.current=!1),g&&t>p?(a&&!o.current&&a(e),d.scrollTop=u,m=!0,o.current=!0):!g&&-t>c&&(r&&!l.current&&r(e),d.scrollTop=0,m=!0,l.current=!0),m&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}}),[a,i,r,n]),h=(0,s.useCallback)((function(e){u(e,e.deltaY)}),[u]),d=(0,s.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),g=(0,s.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;u(e,t)}),[u]),p=(0,s.useCallback)((function(e){if(e){var t=!!Ma&&{passive:!1};e.addEventListener("wheel",h,t),e.addEventListener("touchstart",d,t),e.addEventListener("touchmove",g,t)}}),[g,d,h]),m=(0,s.useCallback)((function(e){e&&(e.removeEventListener("wheel",h,!1),e.removeEventListener("touchstart",d,!1),e.removeEventListener("touchmove",g,!1))}),[g,d,h]);return(0,s.useEffect)((function(){if(t){var e=f.current;return p(e),function(){m(e)}}}),[t,p,m]),function(e){f.current=e}}({isEnabled:void 0===i||i,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),n=function(e){var t=e.isEnabled,a=e.accountForScrollbars,i=void 0===a||a,r=(0,s.useRef)({}),n=(0,s.useRef)(null),o=(0,s.useCallback)((function(e){if(Ti){var t=document.body,a=t&&t.style;if(i&&ki.forEach((function(e){var t=a&&a[e];r.current[e]=t})),i&&Pi<1){var n=parseInt(r.current.paddingRight,10)||0,s=document.body?document.body.clientWidth:0,o=window.innerWidth-s+n||0;Object.keys(Oi).forEach((function(e){var t=Oi[e];a&&(a[e]=t)})),a&&(a.paddingRight="".concat(o,"px"))}t&&Ai()&&(t.addEventListener("touchmove",xi,Ni),e&&(e.addEventListener("touchstart",Mi,Ni),e.addEventListener("touchmove",Ci,Ni))),Pi+=1}}),[i]),l=(0,s.useCallback)((function(e){if(Ti){var t=document.body,a=t&&t.style;Pi=Math.max(Pi-1,0),i&&Pi<1&&ki.forEach((function(e){var t=r.current[e];a&&(a[e]=t)})),t&&Ai()&&(t.removeEventListener("touchmove",xi,Ni),e&&(e.removeEventListener("touchstart",Mi,Ni),e.removeEventListener("touchmove",Ci,Ni)))}}),[i]);return(0,s.useEffect)((function(){if(t){var e=n.current;return o(e),function(){l(e)}}}),[t,o,l]),function(e){n.current=e}}({isEnabled:a});return zt(s.Fragment,null,a&&zt("div",{onClick:Ei,css:Ri}),t((function(e){r(e),n(e)})))}var Bi={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},Li=function(e){var t=e.name,a=e.onFocus;return zt("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:a,css:Bi,value:"",onChange:function(){}})};function Ii(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Fi(){return Ii(/^Mac/i)}var _i={clearIndicator:Qa,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var a=e.isDisabled,i=e.isFocused,r=e.theme,n=r.colors,s=r.borderRadius;return le({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:r.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:a?n.neutral5:n.neutral0,borderColor:a?n.neutral10:i?n.primary:n.neutral20,borderRadius:s,borderStyle:"solid",borderWidth:1,boxShadow:i?"0 0 0 1px ".concat(n.primary):void 0,"&:hover":{borderColor:i?n.primary:n.neutral30}})},dropdownIndicator:$a,group:function(e,t){var a=e.theme.spacing;return t?{}:{paddingBottom:2*a.baseUnit,paddingTop:2*a.baseUnit}},groupHeading:function(e,t){var a=e.theme,i=a.colors,r=a.spacing;return le({label:"group",cursor:"default",display:"block"},t?{}:{color:i.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*r.baseUnit,paddingRight:3*r.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var a=e.isDisabled,i=e.theme,r=i.spacing.baseUnit,n=i.colors;return le({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:a?n.neutral10:n.neutral20,marginBottom:2*r,marginTop:2*r})},input:function(e,t){var a=e.isDisabled,i=e.value,r=e.theme,n=r.spacing,s=r.colors;return le(le({visibility:a?"hidden":"visible",transform:i?"translateZ(0)":""},ei),t?{}:{margin:n.baseUnit/2,paddingBottom:n.baseUnit/2,paddingTop:n.baseUnit/2,color:s.neutral80})},loadingIndicator:function(e,t){var a=e.isFocused,i=e.size,r=e.theme,n=r.colors,s=r.spacing.baseUnit;return le({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:i,lineHeight:1,marginRight:i,textAlign:"center",verticalAlign:"middle"},t?{}:{color:a?n.neutral60:n.neutral20,padding:2*s})},loadingMessage:za,menu:function(e,t){var a,i=e.placement,r=e.theme,s=r.borderRadius,o=r.spacing,l=r.colors;return le((n(a={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(i),"100%"),n(a,"position","absolute"),n(a,"width","100%"),n(a,"zIndex",1),a),t?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(e,t){var a=e.maxHeight,i=e.theme.spacing.baseUnit;return le({maxHeight:a,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:i,paddingTop:i})},menuPortal:function(e){var t=e.rect,a=e.offset,i=e.position;return{left:t.left,position:i,top:a,width:t.width,zIndex:1}},multiValue:function(e,t){var a=e.theme,i=a.spacing,r=a.borderRadius,n=a.colors;return le({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:n.neutral10,borderRadius:r/2,margin:i.baseUnit/2})},multiValueLabel:function(e,t){var a=e.theme,i=a.borderRadius,r=a.colors,n=e.cropWithEllipsis;return le({overflow:"hidden",textOverflow:n||void 0===n?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:i/2,color:r.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var a=e.theme,i=a.spacing,r=a.borderRadius,n=a.colors,s=e.isFocused;return le({alignItems:"center",display:"flex"},t?{}:{borderRadius:r/2,backgroundColor:s?n.dangerLight:void 0,paddingLeft:i.baseUnit,paddingRight:i.baseUnit,":hover":{backgroundColor:n.dangerLight,color:n.danger}})},noOptionsMessage:_a,option:function(e,t){var a=e.isDisabled,i=e.isFocused,r=e.isSelected,n=e.theme,s=n.spacing,o=n.colors;return le({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:r?o.primary:i?o.primary25:"transparent",color:a?o.neutral20:r?o.neutral0:"inherit",padding:"".concat(2*s.baseUnit,"px ").concat(3*s.baseUnit,"px"),":active":{backgroundColor:a?void 0:r?o.primary:o.primary50}})},placeholder:function(e,t){var a=e.theme,i=a.spacing,r=a.colors;return le({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:r.neutral50,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},singleValue:function(e,t){var a=e.isDisabled,i=e.theme,r=i.spacing,n=i.colors;return le({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:a?n.neutral40:n.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},valueContainer:function(e,t){var a=e.theme.spacing,i=e.isMulti,r=e.hasValue,n=e.selectProps.controlShouldRenderValue;return le({alignItems:"center",display:i&&r&&n?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(a.baseUnit/2,"px ").concat(2*a.baseUnit,"px")})}},zi={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ji={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ka(),captureMenuScroll:!ka(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var a=le({ignoreCase:!0,ignoreAccents:!0,stringify:bi,trim:!0,matchFrom:"any"},void 0),i=a.ignoreCase,r=a.ignoreAccents,n=a.stringify,s=a.trim,o=a.matchFrom,l=s?vi(t):t,c=s?vi(n(e)):n(e);return i&&(l=l.toLowerCase(),c=c.toLowerCase()),r&&(l=yi(l),c=mi(c)),"start"===o?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function Hi(e,t,a,i){return{type:"option",data:t,isDisabled:Ki(e,t,a),isSelected:Xi(e,t,a),label:$i(e,t),value:Qi(e,t),index:i}}function Vi(e,t){return e.options.map((function(a,i){if("options"in a){var r=a.options.map((function(a,i){return Hi(e,a,t,i)})).filter((function(t){return Gi(e,t)}));return r.length>0?{type:"group",data:a,options:r,index:i}:void 0}var n=Hi(e,a,t,i);return Gi(e,n)?n:void 0})).filter(Aa)}function qi(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ie(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Wi(e,t){return e.reduce((function(e,a){return"group"===a.type?e.push.apply(e,ie(a.options.map((function(e){return{data:e.data,id:"".concat(t,"-").concat(a.index,"-").concat(e.index)}})))):e.push({data:a.data,id:"".concat(t,"-").concat(a.index)}),e}),[])}function Gi(e,t){var a=e.inputValue,i=void 0===a?"":a,r=t.data,n=t.isSelected,s=t.label,o=t.value;return(!Ji(e)||!n)&&Yi(e,{label:s,value:o,data:r},i)}var Ui=function(e,t){var a;return(null===(a=e.find((function(e){return e.data===t})))||void 0===a?void 0:a.id)||null},$i=function(e,t){return e.getOptionLabel(t)},Qi=function(e,t){return e.getOptionValue(t)};function Ki(e,t,a){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,a)}function Xi(e,t,a){if(a.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,a);var i=Qi(e,t);return a.some((function(t){return Qi(e,t)===i}))}function Yi(e,t,a){return!e.filterOption||e.filterOption(t,a)}var Ji=function(e){var t=e.hideSelectedOptions,a=e.isMulti;return void 0===t?a:t},Zi=1,er=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&he(e,t)}(c,e);var t,a,r,n,o,l=(t=c,a=ge(),function(){var e,r=de(t);if(a){var n=de(this).constructor;e=Reflect.construct(r,arguments,n)}else e=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function c(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=l.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.isAppleDevice=Fi()||Ii(/^iPhone/i)||Ii(/^iPad/i)||Fi()&&navigator.maxTouchPoints>1,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,a){var i=t.props,r=i.onChange,n=i.name;a.name=n,t.ariaOnChange(e,a),r(e,a)},t.setValue=function(e,a,i){var r=t.props,n=r.closeMenuOnSelect,s=r.isMulti,o=r.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:o}),n&&(t.setState({inputIsHiddenAfterUpdate:!s}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:a,option:i})},t.selectOption=function(e){var a=t.props,i=a.blurInputOnSelect,r=a.isMulti,n=a.name,s=t.state.selectValue,o=r&&t.isOptionSelected(e,s),l=t.isOptionDisabled(e,s);if(o){var c=t.getOptionValue(e);t.setValue(s.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:n});r?t.setValue([].concat(ie(s),[e]),"select-option",e):t.setValue(e,"select-option")}i&&t.blurInput()},t.removeValue=function(e){var a=t.props.isMulti,i=t.state.selectValue,r=t.getOptionValue(e),n=i.filter((function(e){return t.getOptionValue(e)!==r})),s=Ta(a,n,n[0]||null);t.onChange(s,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(Ta(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,a=t.state.selectValue,i=a[a.length-1],r=a.slice(0,a.length-1),n=Ta(e,r,r[0]||null);t.onChange(n,{action:"pop-value",removedValue:i})},t.getFocusedOptionId=function(e){return Ui(t.state.focusableOptionsWithIds,e)},t.getFocusableOptionsWithIds=function(){return Wi(Vi(t.props,t.state.selectValue),t.getElementId("option"))},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,a=new Array(e),i=0;i<e;i++)a[i]=arguments[i];return da.apply(void 0,[t.props.classNamePrefix].concat(a))},t.getOptionLabel=function(e){return $i(t.props,e)},t.getOptionValue=function(e){return Qi(t.props,e)},t.getStyles=function(e,a){var i=t.props.unstyled,r=_i[e](a,i);r.boxSizing="border-box";var n=t.props.styles[e];return n?n(r,a):r},t.getClassNames=function(e,a){var i,r;return null===(i=(r=t.props.classNames)[e])||void 0===i?void 0:i.call(r,a)},t.getElementId=function(e){return"".concat(t.state.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,le(le({},ii),e.components);var e},t.buildCategorizedOptions=function(){return Vi(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return qi(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,a){t.setState({ariaSelection:le({value:e},a)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var a=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():a&&t.openMenu("first"):(a&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||t.props.isDisabled)){var a=t.props,i=a.isMulti,r=a.menuIsOpen;t.focusInput(),r?(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"==typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ya(e.target)&&t.props.onMenuClose():"function"==typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var a=e.touches,i=a&&a.item(0);i&&(t.initialTouchX=i.clientX,t.initialTouchY=i.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var a=e.touches,i=a&&a.item(0);if(i){var r=Math.abs(i.clientX-t.initialTouchX),n=Math.abs(i.clientY-t.initialTouchY);t.userIsDragging=r>5||n>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var a=t.props.inputValue,i=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(i,{action:"input-change",prevInputValue:a}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var a=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:a}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){if(!t.blockOptionHover&&t.state.focusedOption!==e){var a=t.getFocusableOptions().indexOf(e);t.setState({focusedOption:e,focusedOptionId:a>-1?t.getFocusedOptionId(e):null})}},t.shouldHideSelectedOptions=function(){return Ji(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var a=t.props,i=a.isMulti,r=a.backspaceRemovesValue,n=a.escapeClearsValue,s=a.inputValue,o=a.isClearable,l=a.isDisabled,c=a.menuIsOpen,f=a.onKeyDown,u=a.tabSelectsValue,h=a.openMenuOnFocus,d=t.state,g=d.focusedOption,p=d.focusedValue,m=d.selectValue;if(!(l||"function"==typeof f&&(f(e),e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!i||s)return;t.focusValue("previous");break;case"ArrowRight":if(!i||s)return;t.focusValue("next");break;case"Delete":case"Backspace":if(s)return;if(p)t.removeValue(p);else{if(!r)return;i?t.popValue():o&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!u||!g||h&&t.isOptionSelected(g,m))return;t.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g)return;if(t.isComposing)return;t.selectOption(g);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:s}),t.onMenuClose()):o&&n&&t.clearValue();break;case" ":if(s)return;if(!c){t.openMenu("first");break}if(!g)return;t.selectOption(g);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.state.instancePrefix="react-select-"+(t.props.instanceId||++Zi),t.state.selectValue=ga(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.getFocusableOptionsWithIds(),i=t.buildFocusableOptions(),r=i.indexOf(t.state.selectValue[0]);t.state.focusableOptionsWithIds=a,t.state.focusedOption=i[r],t.state.focusedOptionId=Ui(a,i[r])}return t}return r=c,n=[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Sa(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,a=t.isDisabled,i=t.menuIsOpen,r=this.state.isFocused;(r&&!a&&e.isDisabled||r&&i&&!e.menuIsOpen)&&this.focusInput(),r&&a&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):r||a||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Sa(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,a=this.state,i=a.selectValue,r=a.isFocused,n=this.buildFocusableOptions(),s="first"===e?0:n.length-1;if(!this.props.isMulti){var o=n.indexOf(i[0]);o>-1&&(s=o)}this.scrollToFocusedOptionOnUpdate=!(r&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:n[s],focusedOptionId:this.getFocusedOptionId(n[s])},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,a=t.selectValue,i=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var r=a.indexOf(i);i||(r=-1);var n=a.length-1,s=-1;if(a.length){switch(e){case"previous":s=0===r?0:-1===r?n:r-1;break;case"next":r>-1&&r<n&&(s=r+1)}this.setState({inputIsHidden:-1!==s,focusedValue:a[s]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,a=this.state.focusedOption,i=this.getFocusableOptions();if(i.length){var r=0,n=i.indexOf(a);a||(n=-1),"up"===e?r=n>0?n-1:i.length-1:"down"===e?r=(n+1)%i.length:"pageup"===e?(r=n-t)<0&&(r=0):"pagedown"===e?(r=n+t)>i.length-1&&(r=i.length-1):"last"===e&&(r=i.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:i[r],focusedValue:null,focusedOptionId:this.getFocusedOptionId(i[r])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(zi):le(le({},zi),this.props.theme):zi}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,a=this.getStyles,i=this.getClassNames,r=this.getValue,n=this.selectOption,s=this.setValue,o=this.props,l=o.isMulti,c=o.isRtl,f=o.options;return{clearValue:e,cx:t,getStyles:a,getClassNames:i,getValue:r,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:f,selectOption:n,selectProps:o,setValue:s,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,a=e.isMulti;return void 0===t?a:t}},{key:"isOptionDisabled",value:function(e,t){return Ki(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Xi(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Yi(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var a=this.props.inputValue,i=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:a,selectValue:i})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,a=e.isSearchable,i=e.inputId,r=e.inputValue,n=e.tabIndex,o=e.form,l=e.menuIsOpen,c=e.required,f=this.getComponents().Input,u=this.state,h=u.inputIsHidden,d=u.ariaSelection,g=this.commonProps,p=i||this.getElementId("input"),m=le(le(le({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},l&&{"aria-controls":this.getElementId("listbox")}),!a&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==d?void 0:d.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return a?s.createElement(f,fe({},g,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:p,innerRef:this.getInputRef,isDisabled:t,isHidden:h,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:n,form:o,type:"text",value:r},m)):s.createElement(Si,fe({id:p,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ua,onFocus:this.onInputFocus,disabled:t,tabIndex:n,inputMode:"none",form:o,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),a=t.MultiValue,i=t.MultiValueContainer,r=t.MultiValueLabel,n=t.MultiValueRemove,o=t.SingleValue,l=t.Placeholder,c=this.commonProps,f=this.props,u=f.controlShouldRenderValue,h=f.isDisabled,d=f.isMulti,g=f.inputValue,p=f.placeholder,m=this.state,y=m.selectValue,v=m.focusedValue,b=m.isFocused;if(!this.hasValue()||!u)return g?null:s.createElement(l,fe({},c,{key:"placeholder",isDisabled:h,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),p);if(d)return y.map((function(t,o){var l=t===v,f="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return s.createElement(a,fe({},c,{components:{Container:i,Label:r,Remove:n},isFocused:l,isDisabled:h,key:f,index:o,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))}));if(g)return null;var w=y[0];return s.createElement(o,fe({},c,{data:w,isDisabled:h}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,a=this.props,i=a.isDisabled,r=a.isLoading,n=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||r)return null;var o={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,fe({},t,{innerProps:o,isFocused:n}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,a=this.props,i=a.isDisabled,r=a.isLoading,n=this.state.isFocused;return e&&r?s.createElement(e,fe({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:n})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,a=e.IndicatorSeparator;if(!t||!a)return null;var i=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused;return s.createElement(a,fe({},i,{isDisabled:r,isFocused:n}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,a=this.props.isDisabled,i=this.state.isFocused,r={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return s.createElement(e,fe({},t,{innerProps:r,isDisabled:a,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),a=t.Group,i=t.GroupHeading,r=t.Menu,n=t.MenuList,o=t.MenuPortal,l=t.LoadingMessage,c=t.NoOptionsMessage,f=t.Option,u=this.commonProps,h=this.state.focusedOption,d=this.props,g=d.captureMenuScroll,p=d.inputValue,m=d.isLoading,y=d.loadingMessage,v=d.minMenuHeight,b=d.maxMenuHeight,w=d.menuIsOpen,S=d.menuPlacement,k=d.menuPosition,O=d.menuPortalTarget,x=d.menuShouldBlockScroll,C=d.menuShouldScrollIntoView,M=d.noOptionsMessage,A=d.onMenuScrollToTop,T=d.onMenuScrollToBottom;if(!w)return null;var P,N=function(t,a){var i=t.type,r=t.data,n=t.isDisabled,o=t.isSelected,l=t.label,c=t.value,d=h===r,g=n?void 0:function(){return e.onOptionHover(r)},p=n?void 0:function(){return e.selectOption(r)},m="".concat(e.getElementId("option"),"-").concat(a),y={id:m,onClick:p,onMouseMove:g,onMouseOver:g,tabIndex:-1,role:"option","aria-selected":e.isAppleDevice?void 0:o};return s.createElement(f,fe({},u,{innerProps:y,data:r,isDisabled:n,isSelected:o,key:m,label:l,type:i,value:c,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(t){if("group"===t.type){var r=t.data,n=t.options,o=t.index,l="".concat(e.getElementId("group"),"-").concat(o),c="".concat(l,"-heading");return s.createElement(a,fe({},u,{key:l,data:r,options:n,Heading:i,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return N(e,"".concat(o,"-").concat(e.index))})))}if("option"===t.type)return N(t,"".concat(t.index))}));else if(m){var E=y({inputValue:p});if(null===E)return null;P=s.createElement(l,u,E)}else{var R=M({inputValue:p});if(null===R)return null;P=s.createElement(c,u,R)}var D={minMenuHeight:v,maxMenuHeight:b,menuPlacement:S,menuPosition:k,menuShouldScrollIntoView:C},B=s.createElement(Ia,fe({},u,D),(function(t){var a=t.ref,i=t.placerProps,o=i.placement,l=i.maxHeight;return s.createElement(r,fe({},u,D,{innerRef:a,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:m,placement:o}),s.createElement(Di,{captureEnabled:g,onTopArrive:A,onBottomArrive:T,lockEnabled:x},(function(t){return s.createElement(n,fe({},u,{innerRef:function(a){e.getMenuListRef(a),t(a)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:m,maxHeight:l,focusedOption:h}),P)})))}));return O||"fixed"===k?s.createElement(o,fe({},u,{appendTo:O,controlElement:this.controlRef,menuPlacement:S,menuPosition:k}),B):B}},{key:"renderFormField",value:function(){var e=this,t=this.props,a=t.delimiter,i=t.isDisabled,r=t.isMulti,n=t.name,o=t.required,l=this.state.selectValue;if(o&&!this.hasValue()&&!i)return s.createElement(Li,{name:n,onFocus:this.onValueInputFocus});if(n&&!i){if(r){if(a){var c=l.map((function(t){return e.getOptionValue(t)})).join(a);return s.createElement("input",{name:n,type:"hidden",value:c})}var f=l.length>0?l.map((function(t,a){return s.createElement("input",{key:"i-".concat(a),name:n,type:"hidden",value:e.getOptionValue(t)})})):s.createElement("input",{name:n,type:"hidden",value:""});return s.createElement("div",null,f)}var u=l[0]?this.getOptionValue(l[0]):"";return s.createElement("input",{name:n,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,a=t.ariaSelection,i=t.focusedOption,r=t.focusedValue,n=t.isFocused,o=t.selectValue,l=this.getFocusableOptions();return s.createElement(ci,fe({},e,{id:this.getElementId("live-region"),ariaSelection:a,focusedOption:i,focusedValue:r,isFocused:n,selectValue:o,focusableOptions:l,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,a=e.IndicatorsContainer,i=e.SelectContainer,r=e.ValueContainer,n=this.props,o=n.className,l=n.id,c=n.isDisabled,f=n.menuIsOpen,u=this.state.isFocused,h=this.commonProps=this.getCommonProps();return s.createElement(i,fe({},h,{className:o,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:u}),this.renderLiveRegion(),s.createElement(t,fe({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:u,menuIsOpen:f}),s.createElement(r,fe({},h,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),s.createElement(a,fe({},h,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var a=t.prevProps,i=t.clearFocusValueOnUpdate,r=t.inputIsHiddenAfterUpdate,n=t.ariaSelection,s=t.isFocused,o=t.prevWasFocused,l=t.instancePrefix,c=e.options,f=e.value,u=e.menuIsOpen,h=e.inputValue,d=e.isMulti,g=ga(f),p={};if(a&&(f!==a.value||c!==a.options||u!==a.menuIsOpen||h!==a.inputValue)){var m=u?function(e,t){return qi(Vi(e,t))}(e,g):[],y=u?Wi(Vi(e,g),"".concat(l,"-option")):[],v=i?function(e,t){var a=e.focusedValue,i=e.selectValue.indexOf(a);if(i>-1){if(t.indexOf(a)>-1)return a;if(i<t.length)return t[i]}return null}(t,g):null,b=function(e,t){var a=e.focusedOption;return a&&t.indexOf(a)>-1?a:t[0]}(t,m);p={selectValue:g,focusedOption:b,focusedOptionId:Ui(y,b),focusableOptionsWithIds:y,focusedValue:v,clearFocusValueOnUpdate:!1}}var w=null!=r&&e!==a?{inputIsHidden:r,inputIsHiddenAfterUpdate:void 0}:{},S=n,k=s&&o;return s&&!k&&(S={value:Ta(d,g,g[0]||null),options:g,action:"initial-input-focus"},k=!o),"initial-input-focus"===(null==n?void 0:n.action)&&(S=null),le(le(le({},p),w),{},{prevProps:e,ariaSelection:S,prevWasFocused:k})}}],n&&ue(r.prototype,n),o&&ue(r,o),Object.defineProperty(r,"prototype",{writable:!1}),c}(s.Component);er.defaultProps=ji;var tr=(0,s.forwardRef)((function(e,t){var a=function(e){var t=e.defaultInputValue,a=void 0===t?"":t,i=e.defaultMenuIsOpen,r=void 0!==i&&i,n=e.defaultValue,o=void 0===n?null:n,l=e.inputValue,c=e.menuIsOpen,f=e.onChange,h=e.onInputChange,d=e.onMenuClose,g=e.onMenuOpen,p=e.value,m=ne(e,ce),y=u((0,s.useState)(void 0!==l?l:a),2),v=y[0],b=y[1],w=u((0,s.useState)(void 0!==c?c:r),2),S=w[0],k=w[1],O=u((0,s.useState)(void 0!==p?p:o),2),x=O[0],C=O[1],M=(0,s.useCallback)((function(e,t){"function"==typeof f&&f(e,t),C(e)}),[f]),A=(0,s.useCallback)((function(e,t){var a;"function"==typeof h&&(a=h(e,t)),b(void 0!==a?a:e)}),[h]),T=(0,s.useCallback)((function(){"function"==typeof g&&g(),k(!0)}),[g]),P=(0,s.useCallback)((function(){"function"==typeof d&&d(),k(!1)}),[d]),N=void 0!==l?l:v,E=void 0!==c?c:S,R=void 0!==p?p:x;return le(le({},m),{},{inputValue:N,menuIsOpen:E,onChange:M,onInputChange:A,onMenuClose:P,onMenuOpen:T,value:R})}(e);return s.createElement(er,fe({ref:t},a))})),ar=tr,ir=["label","value","help","instanceId","onChange","className"];const rr=(0,se.withInstanceId)((function(e){var t=e.label,a=e.value,i=e.help,r=e.instanceId,n=e.onChange,c=e.className,f=(ne(e,ir),"inspector-eb-font-family-".concat(r)),u=[{value:"",label:(0,o.__)("Default","essential-blocks")}];return Object.keys(v).map((function(e){u.push({value:e,label:v[e].family})})),(0,s.createElement)(l.BaseControl,{label:t,id:f,help:i,className:c},(0,s.createElement)(ar,{name:"eb-select-font",defaultValue:{value:(a||"").replace(/\s+/g,"-"),label:a},onChange:function(e){var t=e.label;n(t)},options:u,isDisabled:"false"===EssentialBlocksLocalize.googleFont}))}));function nr(e){var t=e.className,a=e.children,i=e.resRequiredProps,r=e.label,n=i.setAttributes,o=i.resOption,l=function(){var e=(eb_conditional_localize||{}).editor_type;return"edit-site"===e?(0,d.dispatch)("core/edit-site").__experimentalSetPreviewDeviceType:("edit-post"===e||console.log("---fallen back, please check style handler"),(0,d.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)};return(0,s.createElement)("div",{className:"wrap_res ".concat(t||" ")},(0,s.createElement)("div",{className:"".concat(r?"resBtns":"resIcons")},r&&(0,s.createElement)("span",{style:{paddingRight:"5px"},className:"resLabel"},r),(0,s.createElement)("span",{onClick:function(){return F({setAttributes:n,setPreviewDeviceType:l()})},className:"typoResButton dashicons dashicons-desktop ".concat("Desktop"===o?"active":" ")}),(0,s.createElement)("span",{onClick:function(){return _({setAttributes:n,setPreviewDeviceType:l()})},className:"typoResButton dashicons dashicons-tablet ".concat("Tablet"===o?"active":" ")}),(0,s.createElement)("span",{onClick:function(){return z({setAttributes:n,setPreviewDeviceType:l()})},className:"typoResButton dashicons dashicons-smartphone ".concat("Mobile"===o?"active":" ")})),a)}var sr=[{label:"px",value:"px"},{label:"%",value:"%"},{label:"em",value:"em"}],or=[{label:(0,o.__)("Default","essential-blocks"),value:""},{label:(0,o.__)("100","essential-blocks"),value:"100"},{label:(0,o.__)("200","essential-blocks"),value:"200"},{label:(0,o.__)("300","essential-blocks"),value:"300"},{label:(0,o.__)("400","essential-blocks"),value:"400"},{label:(0,o.__)("500","essential-blocks"),value:"500"},{label:(0,o.__)("600","essential-blocks"),value:"600"},{label:(0,o.__)("700","essential-blocks"),value:"700"},{label:(0,o.__)("800","essential-blocks"),value:"800"},{label:(0,o.__)("900","essential-blocks"),value:"900"}],lr=[{label:(0,o.__)("Default","essential-blocks"),value:""},{label:(0,o.__)("None","essential-blocks"),value:"none"},{label:(0,o.__)("Lowercase","essential-blocks"),value:"lowercase"},{label:(0,o.__)("Capitalize","essential-blocks"),value:"capitalize"},{label:(0,o.__)("Uppercase","essential-blocks"),value:"uppercase"}],cr=[{label:(0,o.__)("Default","essential-blocks"),value:""},{label:(0,o.__)("None","essential-blocks"),value:"initial"},{label:(0,o.__)("Overline","essential-blocks"),value:"overline"},{label:(0,o.__)("Line Through","essential-blocks"),value:"line-through"},{label:(0,o.__)("Underline","essential-blocks"),value:"underline"},{label:(0,o.__)("Underline Oveline","essential-blocks"),value:"underline overline"}],fr=[{label:(0,o.__)("Default","essential-blocks"),value:""},{label:(0,o.__)("Normal","essential-blocks"),value:"normal"},{label:(0,o.__)("Italic","essential-blocks"),value:"italic"},{label:(0,o.__)("Oblique","essential-blocks"),value:"oblique"}],ur=[{label:"px",value:"px"},{label:"em",value:"em"}];const hr=function(e){var t=e.baseLabel,a=e.typographyPrefixConstant,i=e.resRequiredProps,r=e.defaultFontSize,c=i.attributes,f=i.setAttributes,d=i.resOption,g=i.objAttributes,m=c["".concat(a,"FontFamily")],y=c["".concat(a,"FontWeight")],b=c["".concat(a,"FontStyle")],w=c["".concat(a,"TextTransform")],S=c["".concat(a,"TextDecoration")],k=c["".concat(a,"FontSize")],O=void 0===k?r||void 0:k,x=c["".concat(a,"SizeUnit")],C=c["".concat(a,"LetterSpacing")],M=c["".concat(a,"LetterSpacingUnit")],A=c["".concat(a,"LineHeight")],T=c["".concat(a,"LineHeightUnit")],P=c["TAB".concat(a,"SizeUnit")],N=c["TAB".concat(a,"LetterSpacingUnit")],E=c["TAB".concat(a,"LineHeightUnit")],R=c["TAB".concat(a,"FontSize")],D=c["TAB".concat(a,"LetterSpacing")],B=c["TAB".concat(a,"LineHeight")],L=c["MOB".concat(a,"SizeUnit")],I=c["MOB".concat(a,"LetterSpacingUnit")],F=c["MOB".concat(a,"LineHeightUnit")],_=c["MOB".concat(a,"FontSize")],z=c["MOB".concat(a,"LetterSpacing")],j=c["MOB".concat(a,"LineHeight")],H=u((0,h.useState)(or),2),V=H[0],q=H[1];return(0,h.useEffect)((function(){var e,t=(m||"").replace(/\s+/g,"-"),a=v[t]?null===(e=v[t])||void 0===e?void 0:e.variants.map((function(e){return"regular"===e?"400":e})):[],i=a.map((function(e){return{label:e,value:e}})),r=[{label:"Default",value:""}].concat(ie(i));q(r)}),[m]),(0,s.createElement)(l.BaseControl,{label:(0,o.__)(t),className:"eb-typography-base"},(0,s.createElement)(l.Dropdown,{className:"eb-typography-dropdown",contentClassName:"my-popover-content-classname",position:"bottom right",renderToggle:function(e){var t=e.isOpen,a=e.onToggle;return(0,s.createElement)(l.Button,{isSmall:!0,onClick:a,"aria-expanded":t},(0,s.createElement)(Z,null))},renderContent:function(){return(0,s.createElement)("div",{className:"eb-panel-control eb-typography-component-panel",style:{padding:"0.2rem"}},(0,s.createElement)(rr,{className:"eb-fontpicker-fontfamily",label:(0,o.__)("Font Family","essential-blocks"),value:m,onChange:function(e){f(n({},"".concat(a,"FontFamily"),e))}}),(0,s.createElement)(nr,{className:"forFontSize",resRequiredProps:i},"Desktop"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:x,unitTypes:sr,onClick:function(e){return f(n({},"".concat(a,"SizeUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"".concat(a,"FontSize"),r||(g["".concat(a,"FontSize")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Font Size","essential-blocks"),value:O,onChange:function(e){return f(n({},"".concat(a,"FontSize"),e))},step:"em"===x?.1:1,min:0,max:"em"===x?10:300}))),"Tablet"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:P,unitTypes:sr,onClick:function(e){return f(n({},"TAB".concat(a,"SizeUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"TAB".concat(a,"FontSize"),(g["TAB".concat(a,"FontSize")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Font Size","essential-blocks"),value:R,onChange:function(e){return f(n({},"TAB".concat(a,"FontSize"),e))},step:"em"===P?.1:1,min:0,max:"em"===P?10:300}))),"Mobile"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:L,unitTypes:sr,onClick:function(e){return f(n({},"MOB".concat(a,"SizeUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"MOB".concat(a,"FontSize"),(g["MOB".concat(a,"FontSize")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Font Size","essential-blocks"),value:_,onChange:function(e){return f(n({},"MOB".concat(a,"FontSize"),e))},step:"em"===L?.1:1,min:0,max:"em"===L?10:300})))),(0,s.createElement)(l.SelectControl,{label:(0,o.__)("Font Weight","essential-blocks"),value:y,options:V,onChange:function(e){return f(n({},"".concat(a,"FontWeight"),e))}}),(0,s.createElement)(l.SelectControl,{label:(0,o.__)("Font Style","essential-blocks"),value:b,options:fr,onChange:function(e){return f(n({},"".concat(a,"FontStyle"),e))}}),(0,s.createElement)(l.SelectControl,{label:(0,o.__)("Text Transform","essential-blocks"),value:w,options:lr,onChange:function(e){return f(n({},"".concat(a,"TextTransform"),e))}}),(0,s.createElement)(l.SelectControl,{label:(0,o.__)("Text Decoration","essential-blocks"),value:S,options:cr,onChange:function(e){return f(n({},"".concat(a,"TextDecoration"),e))}}),(0,s.createElement)(nr,{className:"forLetterSpacing",resRequiredProps:i},"Desktop"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:M,unitTypes:ur,onClick:function(e){return f(n({},"".concat(a,"LetterSpacingUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"".concat(a,"LetterSpacing"),(g["".concat(a,"LetterSpacing")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Letter Spacing","essential-blocks"),value:C,onChange:function(e){return f(n({},"".concat(a,"LetterSpacing"),e))},min:0,max:"em"===M?10:100,step:"em"===M?.1:1}))),"Tablet"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:N,unitTypes:ur,onClick:function(e){return f(n({},"TAB".concat(a,"LetterSpacingUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"TAB".concat(a,"LetterSpacing"),(g["TAB".concat(a,"LetterSpacing")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Letter Spacing","essential-blocks"),value:D,onChange:function(e){return f(n({},"TAB".concat(a,"LetterSpacing"),e))},min:0,max:"em"===N?10:100,step:"em"===N?.1:1}))),"Mobile"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:I,unitTypes:ur,onClick:function(e){return f(n({},"MOB".concat(a,"LetterSpacingUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"MOB".concat(a,"LetterSpacing"),(g["MOB".concat(a,"LetterSpacing")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Letter Spacing","essential-blocks"),value:z,onChange:function(e){return f(n({},"MOB".concat(a,"LetterSpacing"),e))},min:0,max:"em"===I?10:100,step:"em"===I?.1:1})))),(0,s.createElement)(nr,{className:"forLineHeight",resRequiredProps:i},"Desktop"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:T,unitTypes:ur,onClick:function(e){return f(n({},"".concat(a,"LineHeightUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"".concat(a,"LineHeight"),(g["".concat(a,"LineHeight")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Line Height","essential-blocks"),value:A,onChange:function(e){return f(n({},"".concat(a,"LineHeight"),e))},min:0,max:"em"===T?10:600,step:"em"===T?.1:1}))),"Tablet"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:E,unitTypes:ur,onClick:function(e){return f(n({},"TAB".concat(a,"LineHeightUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"TAB".concat(a,"LineHeight"),(g["TAB".concat(a,"LineHeight")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Line Height","essential-blocks"),value:B,onChange:function(e){return f(n({},"TAB".concat(a,"LineHeight"),e))},min:0,max:"em"===E?10:600,step:"em"===E?.1:1}))),"Mobile"===d&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(Y,{selectedUnit:F,unitTypes:ur,onClick:function(e){return f(n({},"MOB".concat(a,"LineHeightUnit"),e))}}),(0,s.createElement)(p,{onReset:function(){return f(n({},"MOB".concat(a,"LineHeight"),(g["MOB".concat(a,"LineHeight")]||{}).default))}},(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Line Height","essential-blocks"),value:j,onChange:function(e){return f(n({},"MOB".concat(a,"LineHeight"),e))},min:0,max:"em"===F?10:600,step:"em"===F?.1:1})))))}}))},dr=window.wp.blockEditor;function gr(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function pr(e){var t=e.value,a=e.tagName,i=e.className,r=u((0,h.useState)(""),2),o=r[0],l=r[1];return(0,h.useEffect)((function(){(0,V.applyFilters)("essential_blocks_dynamic_value_handle",o,l,t,a||"span",i||""),l((0,s.createElement)(dr.RichText,function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?gr(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):gr(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},e)))}),[t]),o}function mr(e){var t,a=e.label,i=e.attrName,r=e.inputValue,c=e.setAttributes,f=e.onChange,d=e.placeholder,g=e.help,p=e.isTextarea,m=u((0,h.useState)(""),2),y=m[0],v=m[1],b=u((0,h.useState)(""),2),w=b[0],S=b[1],k=u((0,h.useState)(!1),2),O=k[0],x=k[1],C=u((0,h.useState)(!1),2),M=C[0],A=C[1],T=null!==(t=window)&&void 0!==t&&t.EssentialBlocksProLocalize?EssentialBlocksProLocalize.eb_dynamic_tags+"/":"dynamic-tags/";return(0,h.useEffect)((function(){A(!0),r&&r.startsWith(T,0)&&(x(!0),S("[Dynamic Value]"))}),[]),(0,h.useEffect)((function(){M&&EssentialBlocksProLocalize&&("string"==typeof y&&y.startsWith(T,0)?(x(!0),c(n({},i,y)),S("[Dynamic Value]")):(x(!1),c(n({},i,y))))}),[y]),(0,s.createElement)("div",{className:"eb-dynamic-input-control"},!p&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.TextControl,{label:(0,o.__)(a,"essential-blocks"),value:O?w:r,placeholder:d||"",onChange:function(e){return!O&&f(e)},readOnly:O,help:g})),p&&(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.TextareaControl,{label:(0,o.__)(a,"essential-blocks"),placeholder:d||"",value:O?w:r,onChange:function(e){return!O&&f(e)},readOnly:O,help:g})),(0,V.applyFilters)("essential_blocks_dynamic_input_control","",y,v,r))}function yr(e){return yr="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},yr(e)}function vr(e,t,a){return(t=function(e){var t=function(e,t){if("object"!==yr(e)||null===e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,"string");if("object"!==yr(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===yr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function br(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a<t;a++)i[a]=e[a];return i}function wr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,r,n,s,o=[],l=!0,c=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;l=!1}else for(;!(l=(i=n.call(a)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=a.return&&(s=a.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return br(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?br(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Sr=function(e){return e&&e.includes("fa-")?"fontawesome":"dashicon"},kr=function(e){return e?e.replace(/^dashicons-/,""):""};function Or(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function xr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(a),!0).forEach((function(t){vr(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Or(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Cr=function(e){var t=e.icon,a=e.className,i=void 0===a?"":a;if("string"==typeof t){var r=Sr(t);return(0,h.createElement)(h.Fragment,null,"dashicon"===r&&(0,h.createElement)(l.Dashicon,xr(xr({},e),{},{className:i,icon:kr(t)})),"fontawesome"===r&&(0,h.createElement)("i",xr(xr({},e),{},{className:"".concat(t," ").concat(i)})))}},Mr=["dashicons-menu","dashicons-admin-site","dashicons-dashboard","dashicons-admin-media","dashicons-admin-page","dashicons-admin-comments","dashicons-admin-appearance","dashicons-admin-plugins","dashicons-admin-users","dashicons-admin-tools","dashicons-admin-settings","dashicons-admin-network","dashicons-admin-generic","dashicons-admin-home","dashicons-admin-collapse","dashicons-filter","dashicons-admin-customizer","dashicons-admin-multisite","dashicons-admin-links","dashicons-admin-post","dashicons-format-image","dashicons-format-gallery","dashicons-format-audio","dashicons-format-video","dashicons-format-chat","dashicons-format-status","dashicons-format-aside","dashicons-format-quote","dashicons-welcome-write-blog","dashicons-welcome-add-page","dashicons-welcome-view-site","dashicons-welcome-widgets-menus","dashicons-welcome-comments","dashicons-welcome-learn-more","dashicons-image-crop","dashicons-image-rotate","dashicons-image-rotate-left","dashicons-image-rotate-right","dashicons-image-flip-vertical","dashicons-image-flip-horizontal","dashicons-image-filter","dashicons-undo","dashicons-redo","dashicons-editor-bold","dashicons-editor-italic","dashicons-editor-ul","dashicons-editor-ol","dashicons-editor-quote","dashicons-editor-alignleft","dashicons-editor-aligncenter","dashicons-editor-alignright","dashicons-editor-insertmore","dashicons-editor-spellcheck","dashicons-editor-expand","dashicons-editor-contract","dashicons-editor-kitchensink","dashicons-editor-underline","dashicons-editor-justify","dashicons-editor-textcolor","dashicons-editor-paste-word","dashicons-editor-paste-text","dashicons-editor-removeformatting","dashicons-editor-video","dashicons-editor-customchar","dashicons-editor-outdent","dashicons-editor-indent","dashicons-editor-help","dashicons-editor-strikethrough","dashicons-editor-unlink","dashicons-editor-rtl","dashicons-editor-break","dashicons-editor-code","dashicons-editor-code-duplicate","dashicons-editor-paragraph","dashicons-editor-table","dashicons-align-left","dashicons-align-right","dashicons-align-center","dashicons-align-none","dashicons-lock","dashicons-lock-duplicate","dashicons-unlock","dashicons-calendar","dashicons-calendar-alt","dashicons-visibility","dashicons-hidden","dashicons-post-status","dashicons-edit","dashicons-edit-large","dashicons-sticky","dashicons-external","dashicons-arrow-up","dashicons-arrow-up-duplicate","dashicons-arrow-down","dashicons-arrow-left","dashicons-arrow-right","dashicons-arrow-up-alt","dashicons-arrow-down-alt","dashicons-arrow-left-alt","dashicons-arrow-right-alt","dashicons-arrow-up-alt2","dashicons-arrow-down-alt2","dashicons-arrow-left-alt2","dashicons-arrow-right-alt2","dashicons-leftright","dashicons-sort","dashicons-randomize","dashicons-list-view","dashicons-excerpt-view","dashicons-grid-view","dashicons-move","dashicons-hammer","dashicons-art","dashicons-migrate","dashicons-performance","dashicons-universal-access","dashicons-universal-access-alt","dashicons-tickets","dashicons-nametag","dashicons-clipboard","dashicons-heart","dashicons-megaphone","dashicons-schedule","dashicons-wordpress","dashicons-wordpress-alt","dashicons-pressthis","dashicons-update","dashicons-screenoptions","dashicons-cart","dashicons-feedback","dashicons-translation","dashicons-tag","dashicons-category","dashicons-archive","dashicons-tagcloud","dashicons-text","dashicons-media-archive","dashicons-media-audio","dashicons-media-code","dashicons-media-default","dashicons-media-document","dashicons-media-interactive","dashicons-media-spreadsheet","dashicons-media-text","dashicons-media-video","dashicons-playlist-audio","dashicons-playlist-video","dashicons-controls-play","dashicons-controls-pause","dashicons-controls-forward","dashicons-controls-skipforward","dashicons-controls-back","dashicons-controls-skipback","dashicons-controls-repeat","dashicons-controls-volumeon","dashicons-controls-volumeoff","dashicons-yes","dashicons-no","dashicons-no-alt","dashicons-plus","dashicons-plus-alt","dashicons-plus-alt2","dashicons-minus","dashicons-dismiss","dashicons-marker","dashicons-star-filled","dashicons-star-half","dashicons-star-empty","dashicons-flag","dashicons-info","dashicons-warning","dashicons-share","dashicons-share1","dashicons-share-alt","dashicons-share-alt2","dashicons-twitter","dashicons-rss","dashicons-email","dashicons-email-alt","dashicons-facebook","dashicons-facebook-alt","dashicons-networking","dashicons-googleplus","dashicons-location","dashicons-location-alt","dashicons-camera","dashicons-images-alt","dashicons-images-alt2","dashicons-video-alt","dashicons-video-alt2","dashicons-video-alt3","dashicons-vault","dashicons-shield","dashicons-shield-alt","dashicons-sos","dashicons-search","dashicons-slides","dashicons-analytics","dashicons-chart-pie","dashicons-chart-bar","dashicons-chart-line","dashicons-chart-area","dashicons-groups","dashicons-businessman","dashicons-id","dashicons-id-alt","dashicons-products","dashicons-awards","dashicons-forms","dashicons-testimonial","dashicons-portfolio","dashicons-book","dashicons-book-alt","dashicons-download","dashicons-upload","dashicons-backup","dashicons-clock","dashicons-lightbulb","dashicons-microphone","dashicons-desktop","dashicons-laptop","dashicons-tablet","dashicons-smartphone","dashicons-phone","dashicons-smiley","dashicons-index-card","dashicons-carrot","dashicons-building","dashicons-store","dashicons-album","dashicons-palmtree","dashicons-tickets-alt","dashicons-money","dashicons-thumbs-up","dashicons-thumbs-down","dashicons-layout","dashicons-paperclip","dashicons-email-alt2","dashicons-menu-alt","dashicons-trash","dashicons-heading","dashicons-insert","dashicons-align-full-width","dashicons-button","dashicons-align-wide","dashicons-ellipsis","dashicons-buddicons-activity","dashicons-buddicons-buddypress-logo","dashicons-buddicons-community","dashicons-buddicons-forums","dashicons-buddicons-friends","dashicons-buddicons-groups","dashicons-buddicons-pm","dashicons-buddicons-replies","dashicons-buddicons-topics","dashicons-buddicons-tracking","dashicons-admin-site-alt","dashicons-admin-site-alt2","dashicons-admin-site-alt3","dashicons-rest-api","dashicons-yes-alt","dashicons-buddicons-bbpress-logo","dashicons-tide","dashicons-editor-ol-rtl","dashicons-instagram","dashicons-businessperson","dashicons-businesswoman","dashicons-color-picker","dashicons-camera-alt","dashicons-editor-ltr","dashicons-cloud","dashicons-twitter-alt","dashicons-menu-alt2","dashicons-menu-alt3","dashicons-plugins-checked","dashicons-text-page","dashicons-update-alt","dashicons-code-standards","dashicons-align-pull-left","dashicons-align-pull-right","dashicons-block-default","dashicons-cloud-saved","dashicons-cloud-upload","dashicons-columns","dashicons-cover-image","dashicons-embed-audio","dashicons-embed-generic","dashicons-embed-photo","dashicons-embed-post","dashicons-embed-video","dashicons-exit","dashicons-html","dashicons-info-outline","dashicons-insert-after","dashicons-insert-before","dashicons-remove","dashicons-shortcode","dashicons-table-col-after","dashicons-table-col-before","dashicons-table-col-delete","dashicons-table-row-after","dashicons-table-row-before","dashicons-table-row-delete","dashicons-saved","dashicons-airplane","dashicons-amazon","dashicons-bank","dashicons-beer","dashicons-bell","dashicons-calculator","dashicons-coffee","dashicons-database-add","dashicons-database-export","dashicons-database-import","dashicons-database-remove","dashicons-database-view","dashicons-database","dashicons-drumstick","dashicons-edit-page","dashicons-food","dashicons-fullscreen-alt","dashicons-fullscreen-exit-alt","dashicons-games","dashicons-google","dashicons-hourglass","dashicons-linkedin","dashicons-money-alt","dashicons-open-folder","dashicons-pdf","dashicons-pets","dashicons-pinterest","dashicons-printer","dashicons-privacy","dashicons-reddit","dashicons-spotify","dashicons-superhero-alt","dashicons-superhero","dashicons-twitch","dashicons-whatsapp","dashicons-youtube","dashicons-car","dashicons-podio","dashicons-xing"],Ar=["fab fa-42-group","fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fab fa-adn","fab fa-adversal","fab fa-affiliatetheme","fab fa-airbnb","fab fa-algolia","fab fa-alipay","fab fa-amazon","fab fa-amazon-pay","fab fa-amilia","fab fa-android","fab fa-angellist","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fab fa-artstation","fab fa-asymmetrik","fab fa-atlassian","fab fa-audible","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fab fa-bandcamp","fab fa-battle-net","fab fa-behance","fab fa-bilibili","fab fa-bimobject","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fab fa-bootstrap","fab fa-bots","fab fa-brave","fab fa-brave-reverse","fab fa-btc","fab fa-buffer","fab fa-buromobelexperte","fab fa-buy-n-large","fab fa-buysellads","fab fa-canadian-maple-leaf","fab fa-cc-amazon-pay","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fab fa-centos","fab fa-chrome","fab fa-chromecast","fab fa-cloudflare","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fab fa-cmplid","fab fa-codepen","fab fa-codiepie","fab fa-confluence","fab fa-connectdevelop","fab fa-contao","fab fa-cotton-bureau","fab fa-cpanel","fab fa-creative-commons","fab fa-creative-commons-by","fab fa-creative-commons-nc","fab fa-creative-commons-nc-eu","fab fa-creative-commons-nc-jp","fab fa-creative-commons-nd","fab fa-creative-commons-pd","fab fa-creative-commons-pd-alt","fab fa-creative-commons-remix","fab fa-creative-commons-sa","fab fa-creative-commons-sampling","fab fa-creative-commons-sampling-plus","fab fa-creative-commons-share","fab fa-creative-commons-zero","fab fa-critical-role","fab fa-css3","fab fa-css3-alt","fab fa-cuttlefish","fab fa-d-and-d","fab fa-d-and-d-beyond","fab fa-dailymotion","fab fa-dashcube","fab fa-debian","fab fa-deezer","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fab fa-dev","fab fa-deviantart","fab fa-dhl","fab fa-diaspora","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fab fa-draft2digital","fab fa-dribbble","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-ebay","fab fa-edge","fab fa-edge-legacy","fab fa-elementor","fab fa-ello","fab fa-ember","fab fa-empire","fab fa-envira","fab fa-erlang","fab fa-ethereum","fab fa-etsy","fab fa-evernote","fab fa-expeditedssl","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-fantasy-flight-games","fab fa-fedex","fab fa-fedora","fab fa-figma","fab fa-firefox","fab fa-firefox-browser","fab fa-first-order","fab fa-first-order-alt","fab fa-firstdraft","fab fa-flickr","fab fa-flipboard","fab fa-fly","fab fa-font-awesome","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fab fa-fulcrum","fab fa-galactic-republic","fab fa-galactic-senate","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fab fa-git","fab fa-git-alt","fab fa-github","fab fa-github-alt","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fab fa-glide","fab fa-glide-g","fab fa-gofore","fab fa-golang","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-pay","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-scholar","fab fa-google-wallet","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-guilded","fab fa-gulp","fab fa-hacker-news","fab fa-hackerrank","fab fa-hashnode","fab fa-hips","fab fa-hire-a-helper","fab fa-hive","fab fa-hooli","fab fa-hornbill","fab fa-hotjar","fab fa-houzz","fab fa-html5","fab fa-hubspot","fab fa-ideal","fab fa-imdb","fab fa-instagram","fab fa-instalod","fab fa-intercom","fab fa-internet-explorer","fab fa-invision","fab fa-ioxhost","fab fa-itch-io","fab fa-itunes","fab fa-itunes-note","fab fa-java","fab fa-jedi-order","fab fa-jenkins","fab fa-jira","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-jsfiddle","fab fa-kaggle","fab fa-keybase","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fab fa-korvue","fab fa-laravel","fab fa-lastfm","fab fa-leanpub","fab fa-less","fab fa-letterboxd","fab fa-line","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fab fa-lyft","fab fa-magento","fab fa-mailchimp","fab fa-mandalorian","fab fa-markdown","fab fa-mastodon","fab fa-maxcdn","fab fa-mdb","fab fa-medapps","fab fa-medium","fab fa-medrt","fab fa-meetup","fab fa-megaport","fab fa-mendeley","fab fa-meta","fab fa-microblog","fab fa-microsoft","fab fa-mintbit","fab fa-mix","fab fa-mixcloud","fab fa-mixer","fab fa-mizuni","fab fa-modx","fab fa-monero","fab fa-napster","fab fa-neos","fab fa-nfc-directional","fab fa-nfc-symbol","fab fa-nimblr","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fab fa-octopus-deploy","fab fa-odnoklassniki","fab fa-odysee","fab fa-old-republic","fab fa-opencart","fab fa-openid","fab fa-opensuse","fab fa-opera","fab fa-optin-monster","fab fa-orcid","fab fa-osi","fab fa-padlet","fab fa-page4","fab fa-pagelines","fab fa-palfed","fab fa-patreon","fab fa-paypal","fab fa-perbyte","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fab fa-phoenix-squadron","fab fa-php","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-hat","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pix","fab fa-pixiv","fab fa-playstation","fab fa-product-hunt","fab fa-pushed","fab fa-python","fab fa-qq","fab fa-quinscape","fab fa-quora","fab fa-r-project","fab fa-raspberry-pi","fab fa-ravelry","fab fa-react","fab fa-reacteurope","fab fa-readme","fab fa-rebel","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-redhat","fab fa-renren","fab fa-replyd","fab fa-researchgate","fab fa-resolving","fab fa-rev","fab fa-rocketchat","fab fa-rockrms","fab fa-rust","fab fa-safari","fab fa-salesforce","fab fa-sass","fab fa-schlix","fab fa-screenpal","fab fa-scribd","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fab fa-servicestack","fab fa-shirtsinbulk","fab fa-shoelace","fab fa-shopify","fab fa-shopware","fab fa-signal-messenger","fab fa-simplybuilt","fab fa-sistrix","fab fa-sith","fab fa-sitrox","fab fa-sketch","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slideshare","fab fa-snapchat","fab fa-soundcloud","fab fa-sourcetree","fab fa-space-awesome","fab fa-speakap","fab fa-speaker-deck","fab fa-spotify","fab fa-square-behance","fab fa-square-dribbble","fab fa-square-facebook","fab fa-square-font-awesome","fab fa-square-font-awesome-stroke","fab fa-square-git","fab fa-square-github","fab fa-square-gitlab","fab fa-square-google-plus","fab fa-square-hacker-news","fab fa-square-instagram","fab fa-square-js","fab fa-square-lastfm","fab fa-square-letterboxd","fab fa-square-odnoklassniki","fab fa-square-pied-piper","fab fa-square-pinterest","fab fa-square-reddit","fab fa-square-snapchat","fab fa-square-steam","fab fa-square-threads","fab fa-square-tumblr","fab fa-square-twitter","fab fa-square-viadeo","fab fa-square-vimeo","fab fa-square-whatsapp","fab fa-square-x-twitter","fab fa-square-xing","fab fa-square-youtube","fab fa-squarespace","fab fa-stack-exchange","fab fa-stack-overflow","fab fa-stackpath","fab fa-staylinked","fab fa-steam","fab fa-steam-symbol","fab fa-sticker-mule","fab fa-strava","fab fa-stripe","fab fa-stripe-s","fab fa-stubber","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fab fa-superpowers","fab fa-supple","fab fa-suse","fab fa-swift","fab fa-symfony","fab fa-teamspeak","fab fa-telegram","fab fa-tencent-weibo","fab fa-the-red-yeti","fab fa-themeco","fab fa-themeisle","fab fa-think-peaks","fab fa-threads","fab fa-tiktok","fab fa-trade-federation","fab fa-trello","fab fa-tumblr","fab fa-twitch","fab fa-twitter","fab fa-typo3","fab fa-uber","fab fa-ubuntu","fab fa-uikit","fab fa-umbraco","fab fa-uncharted","fab fa-uniregistry","fab fa-unity","fab fa-unsplash","fab fa-untappd","fab fa-ups","fab fa-upwork","fab fa-usb","fab fa-usps","fab fa-ussunnah","fab fa-vaadin","fab fa-viacoin","fab fa-viadeo","fab fa-viber","fab fa-vimeo","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fab fa-vuejs","fab fa-watchman-monitoring","fab fa-waze","fab fa-webflow","fab fa-weebly","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whmcs","fab fa-wikipedia-w","fab fa-windows","fab fa-wirsindhandwerk","fab fa-wix","fab fa-wizards-of-the-coast","fab fa-wodu","fab fa-wolf-pack-battalion","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fab fa-wpressr","fab fa-x-twitter","fab fa-xbox","fab fa-xing","fab fa-y-combinator","fab fa-yahoo","fab fa-yammer","fab fa-yandex","fab fa-yandex-international","fab fa-yarn","fab fa-yelp","fab fa-yoast","fab fa-youtube","fab fa-zhihu","far fa-address-book","far fa-address-card","far fa-bell","far fa-bell-slash","far fa-bookmark","far fa-building","far fa-calendar","far fa-calendar-check","far fa-calendar-days","far fa-calendar-minus","far fa-calendar-plus","far fa-calendar-xmark","far fa-chart-bar","far fa-chess-bishop","far fa-chess-king","far fa-chess-knight","far fa-chess-pawn","far fa-chess-queen","far fa-chess-rook","far fa-circle","far fa-circle-check","far fa-circle-dot","far fa-circle-down","far fa-circle-left","far fa-circle-pause","far fa-circle-play","far fa-circle-question","far fa-circle-right","far fa-circle-stop","far fa-circle-up","far fa-circle-user","far fa-circle-xmark","far fa-clipboard","far fa-clock","far fa-clone","far fa-closed-captioning","far fa-comment","far fa-comment-dots","far fa-comments","far fa-compass","far fa-copy","far fa-copyright","far fa-credit-card","far fa-envelope","far fa-envelope-open","far fa-eye","far fa-eye-slash","far fa-face-angry","far fa-face-dizzy","far fa-face-flushed","far fa-face-frown","far fa-face-frown-open","far fa-face-grimace","far fa-face-grin","far fa-face-grin-beam","far fa-face-grin-beam-sweat","far fa-face-grin-hearts","far fa-face-grin-squint","far fa-face-grin-squint-tears","far fa-face-grin-stars","far fa-face-grin-tears","far fa-face-grin-tongue","far fa-face-grin-tongue-squint","far fa-face-grin-tongue-wink","far fa-face-grin-wide","far fa-face-grin-wink","far fa-face-kiss","far fa-face-kiss-beam","far fa-face-kiss-wink-heart","far fa-face-laugh","far fa-face-laugh-beam","far fa-face-laugh-squint","far fa-face-laugh-wink","far fa-face-meh","far fa-face-meh-blank","far fa-face-rolling-eyes","far fa-face-sad-cry","far fa-face-sad-tear","far fa-face-smile","far fa-face-smile-beam","far fa-face-smile-wink","far fa-face-surprise","far fa-face-tired","far fa-file","far fa-file-audio","far fa-file-code","far fa-file-excel","far fa-file-image","far fa-file-lines","far fa-file-pdf","far fa-file-powerpoint","far fa-file-video","far fa-file-word","far fa-file-zipper","far fa-flag","far fa-floppy-disk","far fa-folder","far fa-folder-closed","far fa-folder-open","far fa-font-awesome","far fa-futbol","far fa-gem","far fa-hand","far fa-hand-back-fist","far fa-hand-lizard","far fa-hand-peace","far fa-hand-point-down","far fa-hand-point-left","far fa-hand-point-right","far fa-hand-point-up","far fa-hand-pointer","far fa-hand-scissors","far fa-hand-spock","far fa-handshake","far fa-hard-drive","far fa-heart","far fa-hospital","far fa-hourglass","far fa-hourglass-half","far fa-id-badge","far fa-id-card","far fa-image","far fa-images","far fa-keyboard","far fa-lemon","far fa-life-ring","far fa-lightbulb","far fa-map","far fa-message","far fa-money-bill-1","far fa-moon","far fa-newspaper","far fa-note-sticky","far fa-object-group","far fa-object-ungroup","far fa-paper-plane","far fa-paste","far fa-pen-to-square","far fa-rectangle-list","far fa-rectangle-xmark","far fa-registered","far fa-share-from-square","far fa-snowflake","far fa-square","far fa-square-caret-down","far fa-square-caret-left","far fa-square-caret-right","far fa-square-caret-up","far fa-square-check","far fa-square-full","far fa-square-minus","far fa-square-plus","far fa-star","far fa-star-half","far fa-star-half-stroke","far fa-sun","far fa-thumbs-down","far fa-thumbs-up","far fa-trash-can","far fa-user","far fa-window-maximize","far fa-window-minimize","far fa-window-restore","fas fa-0","fas fa-1","fas fa-2","fas fa-3","fas fa-4","fas fa-5","fas fa-6","fas fa-7","fas fa-8","fas fa-9","fas fa-a","fas fa-address-book","fas fa-address-card","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-anchor","fas fa-anchor-circle-check","fas fa-anchor-circle-exclamation","fas fa-anchor-circle-xmark","fas fa-anchor-lock","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-angles-down","fas fa-angles-left","fas fa-angles-right","fas fa-angles-up","fas fa-ankh","fas fa-apple-whole","fas fa-archway","fas fa-arrow-down","fas fa-arrow-down-1-9","fas fa-arrow-down-9-1","fas fa-arrow-down-a-z","fas fa-arrow-down-long","fas fa-arrow-down-short-wide","fas fa-arrow-down-up-across-line","fas fa-arrow-down-up-lock","fas fa-arrow-down-wide-short","fas fa-arrow-down-z-a","fas fa-arrow-left","fas fa-arrow-left-long","fas fa-arrow-pointer","fas fa-arrow-right","fas fa-arrow-right-arrow-left","fas fa-arrow-right-from-bracket","fas fa-arrow-right-long","fas fa-arrow-right-to-bracket","fas fa-arrow-right-to-city","fas fa-arrow-rotate-left","fas fa-arrow-rotate-right","fas fa-arrow-trend-down","fas fa-arrow-trend-up","fas fa-arrow-turn-down","fas fa-arrow-turn-up","fas fa-arrow-up","fas fa-arrow-up-1-9","fas fa-arrow-up-9-1","fas fa-arrow-up-a-z","fas fa-arrow-up-from-bracket","fas fa-arrow-up-from-ground-water","fas fa-arrow-up-from-water-pump","fas fa-arrow-up-long","fas fa-arrow-up-right-dots","fas fa-arrow-up-right-from-square","fas fa-arrow-up-short-wide","fas fa-arrow-up-wide-short","fas fa-arrow-up-z-a","fas fa-arrows-down-to-line","fas fa-arrows-down-to-people","fas fa-arrows-left-right","fas fa-arrows-left-right-to-line","fas fa-arrows-rotate","fas fa-arrows-spin","fas fa-arrows-split-up-and-left","fas fa-arrows-to-circle","fas fa-arrows-to-dot","fas fa-arrows-to-eye","fas fa-arrows-turn-right","fas fa-arrows-turn-to-dots","fas fa-arrows-up-down","fas fa-arrows-up-down-left-right","fas fa-arrows-up-to-line","fas fa-asterisk","fas fa-at","fas fa-atom","fas fa-audio-description","fas fa-austral-sign","fas fa-award","fas fa-b","fas fa-baby","fas fa-baby-carriage","fas fa-backward","fas fa-backward-fast","fas fa-backward-step","fas fa-bacon","fas fa-bacteria","fas fa-bacterium","fas fa-bag-shopping","fas fa-bahai","fas fa-baht-sign","fas fa-ban","fas fa-ban-smoking","fas fa-bandage","fas fa-bangladeshi-taka-sign","fas fa-barcode","fas fa-bars","fas fa-bars-progress","fas fa-bars-staggered","fas fa-baseball","fas fa-baseball-bat-ball","fas fa-basket-shopping","fas fa-basketball","fas fa-bath","fas fa-battery-empty","fas fa-battery-full","fas fa-battery-half","fas fa-battery-quarter","fas fa-battery-three-quarters","fas fa-bed","fas fa-bed-pulse","fas fa-beer-mug-empty","fas fa-bell","fas fa-bell-concierge","fas fa-bell-slash","fas fa-bezier-curve","fas fa-bicycle","fas fa-binoculars","fas fa-biohazard","fas fa-bitcoin-sign","fas fa-blender","fas fa-blender-phone","fas fa-blog","fas fa-bold","fas fa-bolt","fas fa-bolt-lightning","fas fa-bomb","fas fa-bone","fas fa-bong","fas fa-book","fas fa-book-atlas","fas fa-book-bible","fas fa-book-bookmark","fas fa-book-journal-whills","fas fa-book-medical","fas fa-book-open","fas fa-book-open-reader","fas fa-book-quran","fas fa-book-skull","fas fa-book-tanakh","fas fa-bookmark","fas fa-border-all","fas fa-border-none","fas fa-border-top-left","fas fa-bore-hole","fas fa-bottle-droplet","fas fa-bottle-water","fas fa-bowl-food","fas fa-bowl-rice","fas fa-bowling-ball","fas fa-box","fas fa-box-archive","fas fa-box-open","fas fa-box-tissue","fas fa-boxes-packing","fas fa-boxes-stacked","fas fa-braille","fas fa-brain","fas fa-brazilian-real-sign","fas fa-bread-slice","fas fa-bridge","fas fa-bridge-circle-check","fas fa-bridge-circle-exclamation","fas fa-bridge-circle-xmark","fas fa-bridge-lock","fas fa-bridge-water","fas fa-briefcase","fas fa-briefcase-medical","fas fa-broom","fas fa-broom-ball","fas fa-brush","fas fa-bucket","fas fa-bug","fas fa-bug-slash","fas fa-bugs","fas fa-building","fas fa-building-circle-arrow-right","fas fa-building-circle-check","fas fa-building-circle-exclamation","fas fa-building-circle-xmark","fas fa-building-columns","fas fa-building-flag","fas fa-building-lock","fas fa-building-ngo","fas fa-building-shield","fas fa-building-un","fas fa-building-user","fas fa-building-wheat","fas fa-bullhorn","fas fa-bullseye","fas fa-burger","fas fa-burst","fas fa-bus","fas fa-bus-simple","fas fa-business-time","fas fa-c","fas fa-cable-car","fas fa-cake-candles","fas fa-calculator","fas fa-calendar","fas fa-calendar-check","fas fa-calendar-day","fas fa-calendar-days","fas fa-calendar-minus","fas fa-calendar-plus","fas fa-calendar-week","fas fa-calendar-xmark","fas fa-camera","fas fa-camera-retro","fas fa-camera-rotate","fas fa-campground","fas fa-candy-cane","fas fa-cannabis","fas fa-capsules","fas fa-car","fas fa-car-battery","fas fa-car-burst","fas fa-car-on","fas fa-car-rear","fas fa-car-side","fas fa-car-tunnel","fas fa-caravan","fas fa-caret-down","fas fa-caret-left","fas fa-caret-right","fas fa-caret-up","fas fa-carrot","fas fa-cart-arrow-down","fas fa-cart-flatbed","fas fa-cart-flatbed-suitcase","fas fa-cart-plus","fas fa-cart-shopping","fas fa-cash-register","fas fa-cat","fas fa-cedi-sign","fas fa-cent-sign","fas fa-certificate","fas fa-chair","fas fa-chalkboard","fas fa-chalkboard-user","fas fa-champagne-glasses","fas fa-charging-station","fas fa-chart-area","fas fa-chart-bar","fas fa-chart-column","fas fa-chart-gantt","fas fa-chart-line","fas fa-chart-pie","fas fa-chart-simple","fas fa-check","fas fa-check-double","fas fa-check-to-slot","fas fa-cheese","fas fa-chess","fas fa-chess-bishop","fas fa-chess-board","fas fa-chess-king","fas fa-chess-knight","fas fa-chess-pawn","fas fa-chess-queen","fas fa-chess-rook","fas fa-chevron-down","fas fa-chevron-left","fas fa-chevron-right","fas fa-chevron-up","fas fa-child","fas fa-child-combatant","fas fa-child-dress","fas fa-child-reaching","fas fa-children","fas fa-church","fas fa-circle","fas fa-circle-arrow-down","fas fa-circle-arrow-left","fas fa-circle-arrow-right","fas fa-circle-arrow-up","fas fa-circle-check","fas fa-circle-chevron-down","fas fa-circle-chevron-left","fas fa-circle-chevron-right","fas fa-circle-chevron-up","fas fa-circle-dollar-to-slot","fas fa-circle-dot","fas fa-circle-down","fas fa-circle-exclamation","fas fa-circle-h","fas fa-circle-half-stroke","fas fa-circle-info","fas fa-circle-left","fas fa-circle-minus","fas fa-circle-nodes","fas fa-circle-notch","fas fa-circle-pause","fas fa-circle-play","fas fa-circle-plus","fas fa-circle-question","fas fa-circle-radiation","fas fa-circle-right","fas fa-circle-stop","fas fa-circle-up","fas fa-circle-user","fas fa-circle-xmark","fas fa-city","fas fa-clapperboard","fas fa-clipboard","fas fa-clipboard-check","fas fa-clipboard-list","fas fa-clipboard-question","fas fa-clipboard-user","fas fa-clock","fas fa-clock-rotate-left","fas fa-clone","fas fa-closed-captioning","fas fa-cloud","fas fa-cloud-arrow-down","fas fa-cloud-arrow-up","fas fa-cloud-bolt","fas fa-cloud-meatball","fas fa-cloud-moon","fas fa-cloud-moon-rain","fas fa-cloud-rain","fas fa-cloud-showers-heavy","fas fa-cloud-showers-water","fas fa-cloud-sun","fas fa-cloud-sun-rain","fas fa-clover","fas fa-code","fas fa-code-branch","fas fa-code-commit","fas fa-code-compare","fas fa-code-fork","fas fa-code-merge","fas fa-code-pull-request","fas fa-coins","fas fa-colon-sign","fas fa-comment","fas fa-comment-dollar","fas fa-comment-dots","fas fa-comment-medical","fas fa-comment-slash","fas fa-comment-sms","fas fa-comments","fas fa-comments-dollar","fas fa-compact-disc","fas fa-compass","fas fa-compass-drafting","fas fa-compress","fas fa-computer","fas fa-computer-mouse","fas fa-cookie","fas fa-cookie-bite","fas fa-copy","fas fa-copyright","fas fa-couch","fas fa-cow","fas fa-credit-card","fas fa-crop","fas fa-crop-simple","fas fa-cross","fas fa-crosshairs","fas fa-crow","fas fa-crown","fas fa-crutch","fas fa-cruzeiro-sign","fas fa-cube","fas fa-cubes","fas fa-cubes-stacked","fas fa-d","fas fa-database","fas fa-delete-left","fas fa-democrat","fas fa-desktop","fas fa-dharmachakra","fas fa-diagram-next","fas fa-diagram-predecessor","fas fa-diagram-project","fas fa-diagram-successor","fas fa-diamond","fas fa-diamond-turn-right","fas fa-dice","fas fa-dice-d20","fas fa-dice-d6","fas fa-dice-five","fas fa-dice-four","fas fa-dice-one","fas fa-dice-six","fas fa-dice-three","fas fa-dice-two","fas fa-disease","fas fa-display","fas fa-divide","fas fa-dna","fas fa-dog","fas fa-dollar-sign","fas fa-dolly","fas fa-dong-sign","fas fa-door-closed","fas fa-door-open","fas fa-dove","fas fa-down-left-and-up-right-to-center","fas fa-down-long","fas fa-download","fas fa-dragon","fas fa-draw-polygon","fas fa-droplet","fas fa-droplet-slash","fas fa-drum","fas fa-drum-steelpan","fas fa-drumstick-bite","fas fa-dumbbell","fas fa-dumpster","fas fa-dumpster-fire","fas fa-dungeon","fas fa-e","fas fa-ear-deaf","fas fa-ear-listen","fas fa-earth-africa","fas fa-earth-americas","fas fa-earth-asia","fas fa-earth-europe","fas fa-earth-oceania","fas fa-egg","fas fa-eject","fas fa-elevator","fas fa-ellipsis","fas fa-ellipsis-vertical","fas fa-envelope","fas fa-envelope-circle-check","fas fa-envelope-open","fas fa-envelope-open-text","fas fa-envelopes-bulk","fas fa-equals","fas fa-eraser","fas fa-ethernet","fas fa-euro-sign","fas fa-exclamation","fas fa-expand","fas fa-explosion","fas fa-eye","fas fa-eye-dropper","fas fa-eye-low-vision","fas fa-eye-slash","fas fa-f","fas fa-face-angry","fas fa-face-dizzy","fas fa-face-flushed","fas fa-face-frown","fas fa-face-frown-open","fas fa-face-grimace","fas fa-face-grin","fas fa-face-grin-beam","fas fa-face-grin-beam-sweat","fas fa-face-grin-hearts","fas fa-face-grin-squint","fas fa-face-grin-squint-tears","fas fa-face-grin-stars","fas fa-face-grin-tears","fas fa-face-grin-tongue","fas fa-face-grin-tongue-squint","fas fa-face-grin-tongue-wink","fas fa-face-grin-wide","fas fa-face-grin-wink","fas fa-face-kiss","fas fa-face-kiss-beam","fas fa-face-kiss-wink-heart","fas fa-face-laugh","fas fa-face-laugh-beam","fas fa-face-laugh-squint","fas fa-face-laugh-wink","fas fa-face-meh","fas fa-face-meh-blank","fas fa-face-rolling-eyes","fas fa-face-sad-cry","fas fa-face-sad-tear","fas fa-face-smile","fas fa-face-smile-beam","fas fa-face-smile-wink","fas fa-face-surprise","fas fa-face-tired","fas fa-fan","fas fa-faucet","fas fa-faucet-drip","fas fa-fax","fas fa-feather","fas fa-feather-pointed","fas fa-ferry","fas fa-file","fas fa-file-arrow-down","fas fa-file-arrow-up","fas fa-file-audio","fas fa-file-circle-check","fas fa-file-circle-exclamation","fas fa-file-circle-minus","fas fa-file-circle-plus","fas fa-file-circle-question","fas fa-file-circle-xmark","fas fa-file-code","fas fa-file-contract","fas fa-file-csv","fas fa-file-excel","fas fa-file-export","fas fa-file-image","fas fa-file-import","fas fa-file-invoice","fas fa-file-invoice-dollar","fas fa-file-lines","fas fa-file-medical","fas fa-file-pdf","fas fa-file-pen","fas fa-file-powerpoint","fas fa-file-prescription","fas fa-file-shield","fas fa-file-signature","fas fa-file-video","fas fa-file-waveform","fas fa-file-word","fas fa-file-zipper","fas fa-fill","fas fa-fill-drip","fas fa-film","fas fa-filter","fas fa-filter-circle-dollar","fas fa-filter-circle-xmark","fas fa-fingerprint","fas fa-fire","fas fa-fire-burner","fas fa-fire-extinguisher","fas fa-fire-flame-curved","fas fa-fire-flame-simple","fas fa-fish","fas fa-fish-fins","fas fa-flag","fas fa-flag-checkered","fas fa-flag-usa","fas fa-flask","fas fa-flask-vial","fas fa-floppy-disk","fas fa-florin-sign","fas fa-folder","fas fa-folder-closed","fas fa-folder-minus","fas fa-folder-open","fas fa-folder-plus","fas fa-folder-tree","fas fa-font","fas fa-font-awesome","fas fa-football","fas fa-forward","fas fa-forward-fast","fas fa-forward-step","fas fa-franc-sign","fas fa-frog","fas fa-futbol","fas fa-g","fas fa-gamepad","fas fa-gas-pump","fas fa-gauge","fas fa-gauge-high","fas fa-gauge-simple","fas fa-gauge-simple-high","fas fa-gavel","fas fa-gear","fas fa-gears","fas fa-gem","fas fa-genderless","fas fa-ghost","fas fa-gift","fas fa-gifts","fas fa-glass-water","fas fa-glass-water-droplet","fas fa-glasses","fas fa-globe","fas fa-golf-ball-tee","fas fa-gopuram","fas fa-graduation-cap","fas fa-greater-than","fas fa-greater-than-equal","fas fa-grip","fas fa-grip-lines","fas fa-grip-lines-vertical","fas fa-grip-vertical","fas fa-group-arrows-rotate","fas fa-guarani-sign","fas fa-guitar","fas fa-gun","fas fa-h","fas fa-hammer","fas fa-hamsa","fas fa-hand","fas fa-hand-back-fist","fas fa-hand-dots","fas fa-hand-fist","fas fa-hand-holding","fas fa-hand-holding-dollar","fas fa-hand-holding-droplet","fas fa-hand-holding-hand","fas fa-hand-holding-heart","fas fa-hand-holding-medical","fas fa-hand-lizard","fas fa-hand-middle-finger","fas fa-hand-peace","fas fa-hand-point-down","fas fa-hand-point-left","fas fa-hand-point-right","fas fa-hand-point-up","fas fa-hand-pointer","fas fa-hand-scissors","fas fa-hand-sparkles","fas fa-hand-spock","fas fa-handcuffs","fas fa-hands","fas fa-hands-asl-interpreting","fas fa-hands-bound","fas fa-hands-bubbles","fas fa-hands-clapping","fas fa-hands-holding","fas fa-hands-holding-child","fas fa-hands-holding-circle","fas fa-hands-praying","fas fa-handshake","fas fa-handshake-angle","fas fa-handshake-simple","fas fa-handshake-simple-slash","fas fa-handshake-slash","fas fa-hanukiah","fas fa-hard-drive","fas fa-hashtag","fas fa-hat-cowboy","fas fa-hat-cowboy-side","fas fa-hat-wizard","fas fa-head-side-cough","fas fa-head-side-cough-slash","fas fa-head-side-mask","fas fa-head-side-virus","fas fa-heading","fas fa-headphones","fas fa-headphones-simple","fas fa-headset","fas fa-heart","fas fa-heart-circle-bolt","fas fa-heart-circle-check","fas fa-heart-circle-exclamation","fas fa-heart-circle-minus","fas fa-heart-circle-plus","fas fa-heart-circle-xmark","fas fa-heart-crack","fas fa-heart-pulse","fas fa-helicopter","fas fa-helicopter-symbol","fas fa-helmet-safety","fas fa-helmet-un","fas fa-highlighter","fas fa-hill-avalanche","fas fa-hill-rockslide","fas fa-hippo","fas fa-hockey-puck","fas fa-holly-berry","fas fa-horse","fas fa-horse-head","fas fa-hospital","fas fa-hospital-user","fas fa-hot-tub-person","fas fa-hotdog","fas fa-hotel","fas fa-hourglass","fas fa-hourglass-end","fas fa-hourglass-half","fas fa-hourglass-start","fas fa-house","fas fa-house-chimney","fas fa-house-chimney-crack","fas fa-house-chimney-medical","fas fa-house-chimney-user","fas fa-house-chimney-window","fas fa-house-circle-check","fas fa-house-circle-exclamation","fas fa-house-circle-xmark","fas fa-house-crack","fas fa-house-fire","fas fa-house-flag","fas fa-house-flood-water","fas fa-house-flood-water-circle-arrow-right","fas fa-house-laptop","fas fa-house-lock","fas fa-house-medical","fas fa-house-medical-circle-check","fas fa-house-medical-circle-exclamation","fas fa-house-medical-circle-xmark","fas fa-house-medical-flag","fas fa-house-signal","fas fa-house-tsunami","fas fa-house-user","fas fa-hryvnia-sign","fas fa-hurricane","fas fa-i","fas fa-i-cursor","fas fa-ice-cream","fas fa-icicles","fas fa-icons","fas fa-id-badge","fas fa-id-card","fas fa-id-card-clip","fas fa-igloo","fas fa-image","fas fa-image-portrait","fas fa-images","fas fa-inbox","fas fa-indent","fas fa-indian-rupee-sign","fas fa-industry","fas fa-infinity","fas fa-info","fas fa-italic","fas fa-j","fas fa-jar","fas fa-jar-wheat","fas fa-jedi","fas fa-jet-fighter","fas fa-jet-fighter-up","fas fa-joint","fas fa-jug-detergent","fas fa-k","fas fa-kaaba","fas fa-key","fas fa-keyboard","fas fa-khanda","fas fa-kip-sign","fas fa-kit-medical","fas fa-kitchen-set","fas fa-kiwi-bird","fas fa-l","fas fa-land-mine-on","fas fa-landmark","fas fa-landmark-dome","fas fa-landmark-flag","fas fa-language","fas fa-laptop","fas fa-laptop-code","fas fa-laptop-file","fas fa-laptop-medical","fas fa-lari-sign","fas fa-layer-group","fas fa-leaf","fas fa-left-long","fas fa-left-right","fas fa-lemon","fas fa-less-than","fas fa-less-than-equal","fas fa-life-ring","fas fa-lightbulb","fas fa-lines-leaning","fas fa-link","fas fa-link-slash","fas fa-lira-sign","fas fa-list","fas fa-list-check","fas fa-list-ol","fas fa-list-ul","fas fa-litecoin-sign","fas fa-location-arrow","fas fa-location-crosshairs","fas fa-location-dot","fas fa-location-pin","fas fa-location-pin-lock","fas fa-lock","fas fa-lock-open","fas fa-locust","fas fa-lungs","fas fa-lungs-virus","fas fa-m","fas fa-magnet","fas fa-magnifying-glass","fas fa-magnifying-glass-arrow-right","fas fa-magnifying-glass-chart","fas fa-magnifying-glass-dollar","fas fa-magnifying-glass-location","fas fa-magnifying-glass-minus","fas fa-magnifying-glass-plus","fas fa-manat-sign","fas fa-map","fas fa-map-location","fas fa-map-location-dot","fas fa-map-pin","fas fa-marker","fas fa-mars","fas fa-mars-and-venus","fas fa-mars-and-venus-burst","fas fa-mars-double","fas fa-mars-stroke","fas fa-mars-stroke-right","fas fa-mars-stroke-up","fas fa-martini-glass","fas fa-martini-glass-citrus","fas fa-martini-glass-empty","fas fa-mask","fas fa-mask-face","fas fa-mask-ventilator","fas fa-masks-theater","fas fa-mattress-pillow","fas fa-maximize","fas fa-medal","fas fa-memory","fas fa-menorah","fas fa-mercury","fas fa-message","fas fa-meteor","fas fa-microchip","fas fa-microphone","fas fa-microphone-lines","fas fa-microphone-lines-slash","fas fa-microphone-slash","fas fa-microscope","fas fa-mill-sign","fas fa-minimize","fas fa-minus","fas fa-mitten","fas fa-mobile","fas fa-mobile-button","fas fa-mobile-retro","fas fa-mobile-screen","fas fa-mobile-screen-button","fas fa-money-bill","fas fa-money-bill-1","fas fa-money-bill-1-wave","fas fa-money-bill-transfer","fas fa-money-bill-trend-up","fas fa-money-bill-wave","fas fa-money-bill-wheat","fas fa-money-bills","fas fa-money-check","fas fa-money-check-dollar","fas fa-monument","fas fa-moon","fas fa-mortar-pestle","fas fa-mosque","fas fa-mosquito","fas fa-mosquito-net","fas fa-motorcycle","fas fa-mound","fas fa-mountain","fas fa-mountain-city","fas fa-mountain-sun","fas fa-mug-hot","fas fa-mug-saucer","fas fa-music","fas fa-n","fas fa-naira-sign","fas fa-network-wired","fas fa-neuter","fas fa-newspaper","fas fa-not-equal","fas fa-notdef","fas fa-note-sticky","fas fa-notes-medical","fas fa-o","fas fa-object-group","fas fa-object-ungroup","fas fa-oil-can","fas fa-oil-well","fas fa-om","fas fa-otter","fas fa-outdent","fas fa-p","fas fa-pager","fas fa-paint-roller","fas fa-paintbrush","fas fa-palette","fas fa-pallet","fas fa-panorama","fas fa-paper-plane","fas fa-paperclip","fas fa-parachute-box","fas fa-paragraph","fas fa-passport","fas fa-paste","fas fa-pause","fas fa-paw","fas fa-peace","fas fa-pen","fas fa-pen-clip","fas fa-pen-fancy","fas fa-pen-nib","fas fa-pen-ruler","fas fa-pen-to-square","fas fa-pencil","fas fa-people-arrows","fas fa-people-carry-box","fas fa-people-group","fas fa-people-line","fas fa-people-pulling","fas fa-people-robbery","fas fa-people-roof","fas fa-pepper-hot","fas fa-percent","fas fa-person","fas fa-person-arrow-down-to-line","fas fa-person-arrow-up-from-line","fas fa-person-biking","fas fa-person-booth","fas fa-person-breastfeeding","fas fa-person-burst","fas fa-person-cane","fas fa-person-chalkboard","fas fa-person-circle-check","fas fa-person-circle-exclamation","fas fa-person-circle-minus","fas fa-person-circle-plus","fas fa-person-circle-question","fas fa-person-circle-xmark","fas fa-person-digging","fas fa-person-dots-from-line","fas fa-person-dress","fas fa-person-dress-burst","fas fa-person-drowning","fas fa-person-falling","fas fa-person-falling-burst","fas fa-person-half-dress","fas fa-person-harassing","fas fa-person-hiking","fas fa-person-military-pointing","fas fa-person-military-rifle","fas fa-person-military-to-person","fas fa-person-praying","fas fa-person-pregnant","fas fa-person-rays","fas fa-person-rifle","fas fa-person-running","fas fa-person-shelter","fas fa-person-skating","fas fa-person-skiing","fas fa-person-skiing-nordic","fas fa-person-snowboarding","fas fa-person-swimming","fas fa-person-through-window","fas fa-person-walking","fas fa-person-walking-arrow-loop-left","fas fa-person-walking-arrow-right","fas fa-person-walking-dashed-line-arrow-right","fas fa-person-walking-luggage","fas fa-person-walking-with-cane","fas fa-peseta-sign","fas fa-peso-sign","fas fa-phone","fas fa-phone-flip","fas fa-phone-slash","fas fa-phone-volume","fas fa-photo-film","fas fa-piggy-bank","fas fa-pills","fas fa-pizza-slice","fas fa-place-of-worship","fas fa-plane","fas fa-plane-arrival","fas fa-plane-circle-check","fas fa-plane-circle-exclamation","fas fa-plane-circle-xmark","fas fa-plane-departure","fas fa-plane-lock","fas fa-plane-slash","fas fa-plane-up","fas fa-plant-wilt","fas fa-plate-wheat","fas fa-play","fas fa-plug","fas fa-plug-circle-bolt","fas fa-plug-circle-check","fas fa-plug-circle-exclamation","fas fa-plug-circle-minus","fas fa-plug-circle-plus","fas fa-plug-circle-xmark","fas fa-plus","fas fa-plus-minus","fas fa-podcast","fas fa-poo","fas fa-poo-storm","fas fa-poop","fas fa-power-off","fas fa-prescription","fas fa-prescription-bottle","fas fa-prescription-bottle-medical","fas fa-print","fas fa-pump-medical","fas fa-pump-soap","fas fa-puzzle-piece","fas fa-q","fas fa-qrcode","fas fa-question","fas fa-quote-left","fas fa-quote-right","fas fa-r","fas fa-radiation","fas fa-radio","fas fa-rainbow","fas fa-ranking-star","fas fa-receipt","fas fa-record-vinyl","fas fa-rectangle-ad","fas fa-rectangle-list","fas fa-rectangle-xmark","fas fa-recycle","fas fa-registered","fas fa-repeat","fas fa-reply","fas fa-reply-all","fas fa-republican","fas fa-restroom","fas fa-retweet","fas fa-ribbon","fas fa-right-from-bracket","fas fa-right-left","fas fa-right-long","fas fa-right-to-bracket","fas fa-ring","fas fa-road","fas fa-road-barrier","fas fa-road-bridge","fas fa-road-circle-check","fas fa-road-circle-exclamation","fas fa-road-circle-xmark","fas fa-road-lock","fas fa-road-spikes","fas fa-robot","fas fa-rocket","fas fa-rotate","fas fa-rotate-left","fas fa-rotate-right","fas fa-route","fas fa-rss","fas fa-ruble-sign","fas fa-rug","fas fa-ruler","fas fa-ruler-combined","fas fa-ruler-horizontal","fas fa-ruler-vertical","fas fa-rupee-sign","fas fa-rupiah-sign","fas fa-s","fas fa-sack-dollar","fas fa-sack-xmark","fas fa-sailboat","fas fa-satellite","fas fa-satellite-dish","fas fa-scale-balanced","fas fa-scale-unbalanced","fas fa-scale-unbalanced-flip","fas fa-school","fas fa-school-circle-check","fas fa-school-circle-exclamation","fas fa-school-circle-xmark","fas fa-school-flag","fas fa-school-lock","fas fa-scissors","fas fa-screwdriver","fas fa-screwdriver-wrench","fas fa-scroll","fas fa-scroll-torah","fas fa-sd-card","fas fa-section","fas fa-seedling","fas fa-server","fas fa-shapes","fas fa-share","fas fa-share-from-square","fas fa-share-nodes","fas fa-sheet-plastic","fas fa-shekel-sign","fas fa-shield","fas fa-shield-cat","fas fa-shield-dog","fas fa-shield-halved","fas fa-shield-heart","fas fa-shield-virus","fas fa-ship","fas fa-shirt","fas fa-shoe-prints","fas fa-shop","fas fa-shop-lock","fas fa-shop-slash","fas fa-shower","fas fa-shrimp","fas fa-shuffle","fas fa-shuttle-space","fas fa-sign-hanging","fas fa-signal","fas fa-signature","fas fa-signs-post","fas fa-sim-card","fas fa-sink","fas fa-sitemap","fas fa-skull","fas fa-skull-crossbones","fas fa-slash","fas fa-sleigh","fas fa-sliders","fas fa-smog","fas fa-smoking","fas fa-snowflake","fas fa-snowman","fas fa-snowplow","fas fa-soap","fas fa-socks","fas fa-solar-panel","fas fa-sort","fas fa-sort-down","fas fa-sort-up","fas fa-spa","fas fa-spaghetti-monster-flying","fas fa-spell-check","fas fa-spider","fas fa-spinner","fas fa-splotch","fas fa-spoon","fas fa-spray-can","fas fa-spray-can-sparkles","fas fa-square","fas fa-square-arrow-up-right","fas fa-square-caret-down","fas fa-square-caret-left","fas fa-square-caret-right","fas fa-square-caret-up","fas fa-square-check","fas fa-square-envelope","fas fa-square-full","fas fa-square-h","fas fa-square-minus","fas fa-square-nfi","fas fa-square-parking","fas fa-square-pen","fas fa-square-person-confined","fas fa-square-phone","fas fa-square-phone-flip","fas fa-square-plus","fas fa-square-poll-horizontal","fas fa-square-poll-vertical","fas fa-square-root-variable","fas fa-square-rss","fas fa-square-share-nodes","fas fa-square-up-right","fas fa-square-virus","fas fa-square-xmark","fas fa-staff-snake","fas fa-stairs","fas fa-stamp","fas fa-stapler","fas fa-star","fas fa-star-and-crescent","fas fa-star-half","fas fa-star-half-stroke","fas fa-star-of-david","fas fa-star-of-life","fas fa-sterling-sign","fas fa-stethoscope","fas fa-stop","fas fa-stopwatch","fas fa-stopwatch-20","fas fa-store","fas fa-store-slash","fas fa-street-view","fas fa-strikethrough","fas fa-stroopwafel","fas fa-subscript","fas fa-suitcase","fas fa-suitcase-medical","fas fa-suitcase-rolling","fas fa-sun","fas fa-sun-plant-wilt","fas fa-superscript","fas fa-swatchbook","fas fa-synagogue","fas fa-syringe","fas fa-t","fas fa-table","fas fa-table-cells","fas fa-table-cells-large","fas fa-table-columns","fas fa-table-list","fas fa-table-tennis-paddle-ball","fas fa-tablet","fas fa-tablet-button","fas fa-tablet-screen-button","fas fa-tablets","fas fa-tachograph-digital","fas fa-tag","fas fa-tags","fas fa-tape","fas fa-tarp","fas fa-tarp-droplet","fas fa-taxi","fas fa-teeth","fas fa-teeth-open","fas fa-temperature-arrow-down","fas fa-temperature-arrow-up","fas fa-temperature-empty","fas fa-temperature-full","fas fa-temperature-half","fas fa-temperature-high","fas fa-temperature-low","fas fa-temperature-quarter","fas fa-temperature-three-quarters","fas fa-tenge-sign","fas fa-tent","fas fa-tent-arrow-down-to-line","fas fa-tent-arrow-left-right","fas fa-tent-arrow-turn-left","fas fa-tent-arrows-down","fas fa-tents","fas fa-terminal","fas fa-text-height","fas fa-text-slash","fas fa-text-width","fas fa-thermometer","fas fa-thumbs-down","fas fa-thumbs-up","fas fa-thumbtack","fas fa-ticket","fas fa-ticket-simple","fas fa-timeline","fas fa-toggle-off","fas fa-toggle-on","fas fa-toilet","fas fa-toilet-paper","fas fa-toilet-paper-slash","fas fa-toilet-portable","fas fa-toilets-portable","fas fa-toolbox","fas fa-tooth","fas fa-torii-gate","fas fa-tornado","fas fa-tower-broadcast","fas fa-tower-cell","fas fa-tower-observation","fas fa-tractor","fas fa-trademark","fas fa-traffic-light","fas fa-trailer","fas fa-train","fas fa-train-subway","fas fa-train-tram","fas fa-transgender","fas fa-trash","fas fa-trash-arrow-up","fas fa-trash-can","fas fa-trash-can-arrow-up","fas fa-tree","fas fa-tree-city","fas fa-triangle-exclamation","fas fa-trophy","fas fa-trowel","fas fa-trowel-bricks","fas fa-truck","fas fa-truck-arrow-right","fas fa-truck-droplet","fas fa-truck-fast","fas fa-truck-field","fas fa-truck-field-un","fas fa-truck-front","fas fa-truck-medical","fas fa-truck-monster","fas fa-truck-moving","fas fa-truck-pickup","fas fa-truck-plane","fas fa-truck-ramp-box","fas fa-tty","fas fa-turkish-lira-sign","fas fa-turn-down","fas fa-turn-up","fas fa-tv","fas fa-u","fas fa-umbrella","fas fa-umbrella-beach","fas fa-underline","fas fa-universal-access","fas fa-unlock","fas fa-unlock-keyhole","fas fa-up-down","fas fa-up-down-left-right","fas fa-up-long","fas fa-up-right-and-down-left-from-center","fas fa-up-right-from-square","fas fa-upload","fas fa-user","fas fa-user-astronaut","fas fa-user-check","fas fa-user-clock","fas fa-user-doctor","fas fa-user-gear","fas fa-user-graduate","fas fa-user-group","fas fa-user-injured","fas fa-user-large","fas fa-user-large-slash","fas fa-user-lock","fas fa-user-minus","fas fa-user-ninja","fas fa-user-nurse","fas fa-user-pen","fas fa-user-plus","fas fa-user-secret","fas fa-user-shield","fas fa-user-slash","fas fa-user-tag","fas fa-user-tie","fas fa-user-xmark","fas fa-users","fas fa-users-between-lines","fas fa-users-gear","fas fa-users-line","fas fa-users-rays","fas fa-users-rectangle","fas fa-users-slash","fas fa-users-viewfinder","fas fa-utensils","fas fa-v","fas fa-van-shuttle","fas fa-vault","fas fa-vector-square","fas fa-venus","fas fa-venus-double","fas fa-venus-mars","fas fa-vest","fas fa-vest-patches","fas fa-vial","fas fa-vial-circle-check","fas fa-vial-virus","fas fa-vials","fas fa-video","fas fa-video-slash","fas fa-vihara","fas fa-virus","fas fa-virus-covid","fas fa-virus-covid-slash","fas fa-virus-slash","fas fa-viruses","fas fa-voicemail","fas fa-volcano","fas fa-volleyball","fas fa-volume-high","fas fa-volume-low","fas fa-volume-off","fas fa-volume-xmark","fas fa-vr-cardboard","fas fa-w","fas fa-walkie-talkie","fas fa-wallet","fas fa-wand-magic","fas fa-wand-magic-sparkles","fas fa-wand-sparkles","fas fa-warehouse","fas fa-water","fas fa-water-ladder","fas fa-wave-square","fas fa-weight-hanging","fas fa-weight-scale","fas fa-wheat-awn","fas fa-wheat-awn-circle-exclamation","fas fa-wheelchair","fas fa-wheelchair-move","fas fa-whiskey-glass","fas fa-wifi","fas fa-wind","fas fa-window-maximize","fas fa-window-minimize","fas fa-window-restore","fas fa-wine-bottle","fas fa-wine-glass","fas fa-wine-glass-empty","fas fa-won-sign","fas fa-worm","fas fa-wrench","fas fa-x","fas fa-x-ray","fas fa-xmark","fas fa-xmarks-lines","fas fa-y","fas fa-yen-sign","fas fa-yin-yang","fas fa-z"];function Tr(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}var Pr=function(e){var t,a,i,r,n=e.title,o=void 0===n?"Select Icon":n,c=e.icons,f=void 0!==c&&c,u=e.value,d=e.onChange,g=e.showHeading,p=void 0===g||g,m=e.disableDashicon,y=void 0!==m&&m,v=e.disableFontAwesome,b=void 0!==v&&v,w=wr((0,h.useState)({}),2),S=w[0],k=w[1],O=wr((0,h.useState)(""),2),x=O[0],C=O[1],M=wr((0,h.useState)(""),2),A=M[0],T=M[1],P=wr((0,h.useState)("dashicon"),2),N=P[0],E=P[1],R=wr((0,h.useState)({}),2),D=R[0],B=R[1],L=wr((0,h.useState)(!1),2),I=L[0],F=L[1],_=wr((0,h.useState)(""),2),z=_[0],j=_[1],H=(0,h.useRef)(null),V=(0,h.useRef)(null);return a=V,i=F,(0,h.useEffect)((function(){function e(e){t.current&&!t.current.contains(e.target)&&(a.current&&a.current.contains(e.target)?i(!0):i(!1))}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[t=H]),(0,h.useEffect)((function(){var e={};e=f&&"object"===yr(f)&&Object.keys(f).length>0?function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Tr(Object(a),!0).forEach((function(t){vr(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Tr(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}({},f):{dashIcon:Mr,fontAwesome:Ar},y&&delete e.dashIcon,b&&delete e.fontAwesome,k(e),"object"===yr(e)&&Object.keys(e).length>0&&"object"===yr(e[Object.keys(e)[0]])&&B(e[Object.keys(e)[0]]);var t=document.querySelector("#wipIcon");j(t)}),[]),(0,h.useEffect)((function(){T(""),"fontawesome"===N?S.fontAwesome&&"object"===yr(S.fontAwesome)&&S.fontAwesome.length>0&&B(S.fontAwesome):S.dashIcon&&"object"===yr(S.dashIcon)&&S.dashIcon.length>0&&B(S.dashIcon)}),[N]),(0,h.useEffect)((function(){u&&"string"==typeof u&&(C(u),E(Sr(u)))}),[u]),(0,h.createElement)(s.Fragment,null,p&&(0,h.createElement)(l.PanelRow,null,o),(0,h.createElement)("div",{ref:V,id:"wipIcon",onClick:function(){return F(!I)}},u&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)(Cr,{label:"Click to choose Icon",icon:u})),!u&&(0,h.createElement)(h.Fragment,null,(0,h.createElement)(l.Dashicon,{className:"wip-iconpicker-placeholder",icon:"insert"}))),I&&(0,h.createElement)(l.Popover,{ref:H,anchor:z,className:"wip-iconpicker-popup"},(0,h.createElement)(l.SearchControl,{value:A,onChange:function(e){return function(e){T(e);var t=("fontawesome"===N?S.fontAwesome:S.dashIcon).filter((function(t){return t.includes(e)}));B(t)}(e)}}),(0,h.createElement)(l.TabPanel,{className:"wip-parent-tab-panel",activeClass:"active-tab",onSelect:function(e){return E(e)},initialTabName:N,tabs:(r=[],y||r.push({name:"dashicon",title:"Dashicon",className:"wip-icon-tab dashicon"}),b||r.push({name:"fontawesome",title:"FontAwesome",className:"wip-icon-tab fontawesome"}),r)},(function(e){return(0,h.createElement)("div",{className:"wip-icon-area"},D.map((function(e){return(0,h.createElement)("div",{className:"wip-icon-box".concat(x===e?" active":""),onClick:function(){return function(e){d(e),F(!1)}(e)}},(0,h.createElement)(l.Tooltip,{text:e},(0,h.createElement)("div",{className:"wip-icon-content"},"dashicon"===N&&(0,h.createElement)(l.Dashicon,{icon:kr(e)}),"fontawesome"===N&&(0,h.createElement)("i",{class:e}),(0,h.createElement)(l.PanelRow,{label:e},e.substring(0,16)+"..."))))})))}))))};function Nr(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Er(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?Nr(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Nr(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Rr="true"==EssentialBlocksLocalize.fontAwesome,Dr=function(e){var t,a=Rr||"fontawesome"!=((t=e.value)&&t.includes("fa-")?"fontawesome":"dashicon")?e.value:"",i=Er(Er({},e),{},{disableFontAwesome:!Rr,value:a});return(0,s.createElement)(Pr,Er({},i))},Br=function(e){return(0,s.createElement)(Cr,Er({},e))},Lr=a(942),Ir=a.n(Lr),Fr=a(371),_r=a.n(Fr);function zr(e){var t,a,i,r,n=e.blockName.replace(/essential-blocks\/pro-|essential-blocks\/|-/g,"_");"_"===n.charAt(0)&&(n=n.substring(1));var o=null===(t=EssentialBlocksLocalize)||void 0===t?void 0:t.all_blocks_default[n];return(0,s.createElement)(s.Fragment,null,o&&(0,s.createElement)(dr.InspectorControls,{key:"controls"},(0,s.createElement)("div",{className:"eb-panel-control eb-support-panel"},(0,s.createElement)("div",{className:"eb-block-support"},(0,s.createElement)("img",{src:"".concat(null===(a=EssentialBlocksLocalize)||void 0===a?void 0:a.eb_plugins_url,"assets/images/eb-logo.svg"),alt:"Essential Blocks Icon"}),(0,s.createElement)("a",{href:"#"},"Need Help?")),(0,s.createElement)("div",{className:"eb-block-links"},(0,s.createElement)(l.Button,{href:o.demo,target:"_blank"},(0,s.createElement)("img",{src:"".concat(null===(i=EssentialBlocksLocalize)||void 0===i?void 0:i.eb_plugins_url,"assets/images/demo-icon.svg"),alt:"Essential Blocks Icon"}),"Demo"),(0,s.createElement)(l.Button,{href:o.doc,target:"_blank"},(0,s.createElement)("img",{src:"".concat(null===(r=EssentialBlocksLocalize)||void 0===r?void 0:r.eb_plugins_url,"assets/images/doc-icon.svg"),alt:"Essential Blocks Icon"}),"Doc")))))}function jr(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function Hr(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):jr(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var Vr=(0,se.createHigherOrderComponent)((function(e){return function(t){var a=t.attributes,r=t.setAttributes,n=(t.isSelected,t.name),o=t.clientId,l=a.blockRoot,c=a.blockId,f=(a.resOption,a.commonStyles),g=a.hideOnDesktop,p=a.hideOnTab,m=a.hideOnMobile,y=a.classHook,v=a.customCss,b=a.animationData,w=u((0,h.useState)(),2),S=w[0],k=w[1],O=n.substring(n.lastIndexOf("/")+1),x=O.replace(/-/g,"_");(0,h.useEffect)((function(){var e;null!==(e=window)&&void 0!==e&&e.eb_conditional_localize?"edit-site"===eb_conditional_localize.editor_type?k("core/edit-site"):"edit-post"===eb_conditional_localize.editor_type?k("core/edit-post"):k(!1):k(!1)}),[]);var C=(0,d.useSelect)((function(e){return S&&!1!==S?e(S).__experimentalGetPreviewDeviceType():"Desktop"}));(0,h.useEffect)((function(){"essential_block"===l&&r({resOption:C})}),[C]),(0,h.useEffect)((function(){var e=y&&y.split(" ").filter((function(e){return!e.includes("eb___")})).join(" ");if("object"===i(b)&&"none"!=b.style){var t=Ir()(e,"eb_animation","eb___animated",b.style);r({classHook:A(t)})}if("object"===i(b)&&"none"===b.style){var a=e.replace("eb_animation","");r({classHook:A(a)})}}),[b]),(0,h.useEffect)((function(){var e=[];for(var t in a)/^(\w+)FontFamily/.test(t)&&"Default"!==a[t]&&e.push(a[t]+":100,100italic,200,200italic,300,300italic,400,400italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic");if(e.length>0){var i={google:{families:e},context:frames["editor-canvas"]};_r().load(i)}}),[a]);var M=b&&"none"!=b.style?"\n /* Css for Animation */\n body:not(.wp-admin) .eb-parent-".concat(c,".eb_animation {\n visibility: hidden;\n opacity: 0;\n transition: ease-in ").concat(b.speed,"ms;\n }\n body:not(.wp-admin) .eb-parent-").concat(c,".eb_animation.eb__animated {\n visibility: visible;\n opacity: 1;\n }\n .eb-parent-").concat(c,".eb_animation.eb__animated {\n animation-duration: ").concat(b.speed,"ms;\n animation-delay: ").concat(b.delay,"ms;\n }\n "):"",A=function(e){return"string"!=typeof e||0===e.length?e:e.split(" ").filter((function(e,t,a){return a.indexOf(e)==t})).join(" ")};if("essential_block"===l){var T,P="\n .wp-admin .eb-parent-".concat(c," {\n display: block;\n opacity: ").concat(g?.4:1,";\n }\n .eb-parent-").concat(c," {\n display: ").concat(g?"none":"block",";\n }\n "),N="\n .editor-styles-wrapper.wp-embed-responsive .eb-parent-".concat(c," {\n display: block;\n opacity: ").concat(p?.4:1,";\n }\n .eb-parent-").concat(c," {\n display: ").concat(p?"none":"block",";\n }\n "),E="\n .editor-styles-wrapper.wp-embed-responsive .eb-parent-".concat(c," {\n display: block;\n opacity: ").concat(m?.4:1,";\n }\n .eb-parent-").concat(c," {\n display: ").concat(m?"none":"block",";\n }\n "),R=L("\n ".concat(P,"\n ").concat(M,"\n ")),D=L("\n ".concat(N,"\n ")),B=L("\n ".concat(E,"\n "));(0,h.useEffect)((function(){var e={desktop:R,tab:D,mobile:B};JSON.stringify(f)!=JSON.stringify(e)&&r({commonStyles:e})}),[a]);var I=Hr({},a),F=(0,d.select)("core/block-editor").wasBlockJustInserted(o),_=null===(T=(0,d.select)("essential-blocks"))||void 0===T?void 0:T.getBlockDefaults();return(0,h.useEffect)((function(){var e,t=x.startsWith("pro_")?x.replace("pro_",""):x;F&&"essential_block"===l&&n.toLowerCase().includes("essential-blocks/")&&"edit-widgets"!==(null===(e=eb_conditional_localize)||void 0===e?void 0:e.editor_type)&&(I=Hr(Hr({},I),_[t]),_[t]&&n==="essential-blocks/".concat(O)&&r(Hr(Hr({},a),_[t])))}),[]),(0,s.createElement)(h.Fragment,null,(0,s.createElement)(e,Hr(Hr({},t),{},{attributes:I})),(0,s.createElement)("style",null,"\n ".concat(R,"\n @media all and (max-width: 1024px) {\n /* tabcssStart */\n ").concat(L(D),"\n /* tabcssEnd */\n\n }\n @media all and (max-width: 767px) {\n /* mobcssStart */\n ").concat(L(B),"\n /* mobcssEnd */\n\n }\n /* Custom CSS*/\n ").concat(v,"\n ")),n.toLowerCase().includes("essential-blocks/")&&(0,s.createElement)(zr,{blockName:n}))}return(0,s.createElement)(e,Hr({},t))}}),"withAdvancedControls");(0,V.addFilter)("blocks.registerBlockType","essential-blocks/global",(function(e){return void 0===e.attributes||e.attributes.blockRoot&&"essential_block"==e.attributes.blockRoot.default&&(e.attributes=Hr(Hr({},e.attributes),{},{classHook:{type:"string",default:""},commonStyles:{type:"object"},hideOnDesktop:{type:"boolean",default:!1},hideOnTab:{type:"boolean",default:!1},hideOnMobile:{type:"boolean",default:!1},customCss:{type:"string"},animationData:{type:"object",default:{style:"none",speed:1e3,delay:0}}})),e})),(0,V.addFilter)("editor.BlockEdit","essential-blocks/global",Vr);class qr{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,a){[e,t]=Jr(this,e,t);let i=[];return this.decompose(0,e,i,2),a.length&&a.decompose(0,a.length,i,3),this.decompose(t,this.length,i,1),Gr.from(i,this.length-(t-e)+a.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Jr(this,e,t);let a=[];return this.decompose(e,t,a,0),Gr.from(a,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),a=this.length-this.scanIdentical(e,-1),i=new Qr(this),r=new Qr(e);for(let e=t,n=t;;){if(i.next(e),r.next(e),e=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(n+=i.value.length,i.done||n>=a)return!0}}iter(e=1){return new Qr(this,e)}iterRange(e,t=this.length){return new Kr(this,e,t)}iterLines(e,t){let a;if(null==e)a=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;a=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Xr(a)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new Wr(e):Gr.from(Wr.split(e,[])):qr.empty}}class Wr extends qr{constructor(e,t=function(e){let t=-1;for(let a of e)t+=a.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,a,i){for(let r=0;;r++){let n=this.text[r],s=i+n.length;if((t?a:s)>=e)return new Yr(i,s,a,n);i=s+1,a++}}decompose(e,t,a,i){let r=e<=0&&t>=this.length?this:new Wr($r(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=a.pop(),t=Ur(r.text,e.text.slice(),0,r.length);if(t.length<=32)a.push(new Wr(t,e.length+r.length));else{let e=t.length>>1;a.push(new Wr(t.slice(0,e)),new Wr(t.slice(e)))}}else a.push(r)}replace(e,t,a){if(!(a instanceof Wr))return super.replace(e,t,a);[e,t]=Jr(this,e,t);let i=Ur(this.text,Ur(a.text,$r(this.text,0,e)),t),r=this.length+a.length-(t-e);return i.length<=32?new Wr(i,r):Gr.from(Wr.split(i,[]),r)}sliceString(e,t=this.length,a="\n"){[e,t]=Jr(this,e,t);let i="";for(let r=0,n=0;r<=t&&n<this.text.length;n++){let s=this.text[n],o=r+s.length;r>e&&n&&(i+=a),e<o&&t>r&&(i+=s.slice(Math.max(0,e-r),t-r)),r=o+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let a=[],i=-1;for(let r of e)a.push(r),i+=r.length+1,32==a.length&&(t.push(new Wr(a,i)),a=[],i=-1);return i>-1&&t.push(new Wr(a,i)),t}}class Gr extends qr{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,a,i){for(let r=0;;r++){let n=this.children[r],s=i+n.length,o=a+n.lines-1;if((t?o:s)>=e)return n.lineInner(e,t,a,i);i=s+1,a=o+1}}decompose(e,t,a,i){for(let r=0,n=0;n<=t&&r<this.children.length;r++){let s=this.children[r],o=n+s.length;if(e<=o&&t>=n){let r=i&((n<=e?1:0)|(o>=t?2:0));n>=e&&o<=t&&!r?a.push(s):s.decompose(e-n,t-n,a,r)}n=o+1}}replace(e,t,a){if([e,t]=Jr(this,e,t),a.lines<this.lines)for(let i=0,r=0;i<this.children.length;i++){let n=this.children[i],s=r+n.length;if(e>=r&&t<=s){let o=n.replace(e-r,t-r,a),l=this.lines-n.lines+o.lines;if(o.lines<l>>4&&o.lines>l>>6){let r=this.children.slice();return r[i]=o,new Gr(r,this.length-(t-e)+a.length)}return super.replace(r,s,o)}r=s+1}return super.replace(e,t,a)}sliceString(e,t=this.length,a="\n"){[e,t]=Jr(this,e,t);let i="";for(let r=0,n=0;r<this.children.length&&n<=t;r++){let s=this.children[r],o=n+s.length;n>e&&r&&(i+=a),e<o&&t>n&&(i+=s.sliceString(e-n,t-n,a)),n=o+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof Gr))return 0;let a=0,[i,r,n,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==n||r==s)return a;let o=this.children[i],l=e.children[r];if(o!=l)return a+o.scanIdentical(l,t);a+=o.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let a=0;for(let t of e)a+=t.lines;if(a<32){let a=[];for(let t of e)t.flatten(a);return new Wr(a,t)}let i=Math.max(32,a>>5),r=i<<1,n=i>>1,s=[],o=0,l=-1,c=[];function f(e){let t;if(e.lines>r&&e instanceof Gr)for(let t of e.children)f(t);else e.lines>n&&(o>n||!o)?(u(),s.push(e)):e instanceof Wr&&o&&(t=c[c.length-1])instanceof Wr&&e.lines+t.lines<=32?(o+=e.lines,l+=e.length+1,c[c.length-1]=new Wr(t.text.concat(e.text),t.length+1+e.length)):(o+e.lines>i&&u(),o+=e.lines,l+=e.length+1,c.push(e))}function u(){0!=o&&(s.push(1==c.length?c[0]:Gr.from(c,l)),l=-1,o=c.length=0)}for(let t of e)f(t);return u(),1==s.length?s[0]:new Gr(s,t)}}function Ur(e,t,a=0,i=1e9){for(let r=0,n=0,s=!0;n<e.length&&r<=i;n++){let o=e[n],l=r+o.length;l>=a&&(l>i&&(o=o.slice(0,i-r)),r<a&&(o=o.slice(a-r)),s?(t[t.length-1]+=o,s=!1):t.push(o)),r=l+1}return t}function $r(e,t,a){return Ur(e,[""],t,a)}qr.empty=new Wr([""],0);class Qr{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof Wr?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let a=this.nodes.length-1,i=this.nodes[a],r=this.offsets[a],n=r>>1,s=i instanceof Wr?i.text.length:i.children.length;if(n==(t>0?s:0)){if(0==a)return this.done=!0,this.value="",this;t>0&&this.offsets[a-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[a]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof Wr){let r=i.text[n+(t<0?-1:0)];if(this.offsets[a]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=i.children[n+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[a]+=t):(t<0&&this.offsets[a]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof Wr?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class Kr{constructor(e,t,a){this.value="",this.done=!1,this.cursor=new Qr(e,t>a?-1:1),this.pos=t>a?e.length:0,this.from=Math.min(t,a),this.to=Math.max(t,a)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let a=t<0?this.pos-this.from:this.to-this.pos;e>a&&(e=a),a-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=a?i:t<0?i.slice(i.length-a):i.slice(0,a),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class Xr{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:a,value:i}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):a?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(qr.prototype[Symbol.iterator]=function(){return this.iter()},Qr.prototype[Symbol.iterator]=Kr.prototype[Symbol.iterator]=Xr.prototype[Symbol.iterator]=function(){return this});class Yr{constructor(e,t,a,i){this.from=e,this.to=t,this.number=a,this.text=i}get length(){return this.to-this.from}}function Jr(e,t,a){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,a))]}let Zr="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let e=1;e<Zr.length;e++)Zr[e]+=Zr[e-1];function en(e){for(let t=1;t<Zr.length;t+=2)if(Zr[t]>e)return Zr[t-1]<=e;return!1}function tn(e){return e>=127462&&e<=127487}const an=8205;function rn(e,t,a=!0,i=!0){return(a?nn:sn)(e,t,i)}function nn(e,t,a){if(t==e.length)return t;t&&on(e.charCodeAt(t))&&ln(e.charCodeAt(t-1))&&t--;let i=cn(e,t);for(t+=un(i);t<e.length;){let r=cn(e,t);if(i==an||r==an||a&&en(r))t+=un(r),i=r;else{if(!tn(r))break;{let a=0,i=t-2;for(;i>=0&&tn(cn(e,i));)a++,i-=2;if(a%2==0)break;t+=2}}}return t}function sn(e,t,a){for(;t>0;){let i=nn(e,t-2,a);if(i<t)return i;t--}return 0}function on(e){return e>=56320&&e<57344}function ln(e){return e>=55296&&e<56320}function cn(e,t){let a=e.charCodeAt(t);if(!ln(a)||t+1==e.length)return a;let i=e.charCodeAt(t+1);return on(i)?i-56320+(a-55296<<10)+65536:a}function fn(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function un(e){return e<65536?1:2}const hn=/\r\n?|\n/;var dn=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(dn||(dn={}));class gn{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let a=this.sections[t+1];e+=a<0?this.sections[t]:a}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,a=0,i=0;t<this.sections.length;){let r=this.sections[t++],n=this.sections[t++];n<0?(e(a,i,r),i+=r):i+=n,a+=r}}iterChangedRanges(e,t=!1){vn(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let a=this.sections[t++],i=this.sections[t++];i<0?e.push(a,i):e.push(i,a)}return new gn(e)}composeDesc(e){return this.empty?e:e.empty?this:wn(this,e)}mapDesc(e,t=!1){return e.empty?this:bn(this,e,t)}mapPos(e,t=-1,a=dn.Simple){let i=0,r=0;for(let n=0;n<this.sections.length;){let s=this.sections[n++],o=this.sections[n++],l=i+s;if(o<0){if(l>e)return r+(e-i);r+=s}else{if(a!=dn.Simple&&l>=e&&(a==dn.TrackDel&&i<e&&l>e||a==dn.TrackBefore&&i<e||a==dn.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!s)return e==i||t<0?r:r+o;r+=o}i=l}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let a=0,i=0;a<this.sections.length&&i<=t;){let r=i+this.sections[a++];if(this.sections[a++]>=0&&i<=t&&r>=e)return!(i<e&&r>t)||"cover";i=r}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let a=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+a+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new gn(e)}static create(e){return new gn(e)}}class pn extends gn{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return vn(this,((t,a,i,r,n)=>e=e.replace(i,i+(a-t),n)),!1),e}mapDesc(e,t=!1){return bn(this,e,t,!0)}invert(e){let t=this.sections.slice(),a=[];for(let i=0,r=0;i<t.length;i+=2){let n=t[i],s=t[i+1];if(s>=0){t[i]=s,t[i+1]=n;let o=i>>1;for(;a.length<o;)a.push(qr.empty);a.push(n?e.slice(r,r+n):qr.empty)}r+=n}return new pn(t,a)}compose(e){return this.empty?e:e.empty?this:wn(this,e,!0)}map(e,t=!1){return e.empty?this:bn(this,e,t,!0)}iterChanges(e,t=!1){vn(this,e,t)}get desc(){return gn.create(this.sections)}filter(e){let t=[],a=[],i=[],r=new Sn(this);e:for(let n=0,s=0;;){let o=n==e.length?1e9:e[n++];for(;s<o||s==o&&0==r.len;){if(r.done)break e;let e=Math.min(r.len,o-s);mn(i,e,-1);let n=-1==r.ins?-1:0==r.off?r.ins:0;mn(t,e,n),n>0&&yn(a,t,r.text),r.forward(e),s+=e}let l=e[n++];for(;s<l;){if(r.done)break e;let e=Math.min(r.len,l-s);mn(t,e,-1),mn(i,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),s+=e}}return{changes:new pn(t,a),filtered:gn.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let a=this.sections[t],i=this.sections[t+1];i<0?e.push(a):0==i?e.push([a]):e.push([a].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,a){let i=[],r=[],n=0,s=null;function o(e=!1){if(!e&&!i.length)return;n<t&&mn(i,t-n,-1);let a=new pn(i,r);s=s?s.compose(a.map(s)):a,i=[],r=[],n=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof pn){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);o(),s=s?s.compose(l.map(s)):l}else{let{from:e,to:s=e,insert:c}=l;if(e>s||e<0||s>t)throw new RangeError(`Invalid change range ${e} to ${s} (in doc of length ${t})`);let f=c?"string"==typeof c?qr.of(c.split(a||hn)):c:qr.empty,u=f.length;if(e==s&&0==u)return;e<n&&o(),e>n&&mn(i,e-n,-1),mn(i,s-e,u),yn(r,i,f),n=s}}(e),o(!s),s}static empty(e){return new pn(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],a=[];for(let i=0;i<e.length;i++){let r=e[i];if("number"==typeof r)t.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;a.length<i;)a.push(qr.empty);a[i]=qr.of(r.slice(1)),t.push(r[0],a[i].length)}}}return new pn(t,a)}static createSet(e,t){return new pn(e,t)}}function mn(e,t,a,i=!1){if(0==t&&a<=0)return;let r=e.length-2;r>=0&&a<=0&&a==e[r+1]?e[r]+=t:0==t&&0==e[r]?e[r+1]+=a:i?(e[r]+=t,e[r+1]+=a):e.push(t,a)}function yn(e,t,a){if(0==a.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(a);else{for(;e.length<i;)e.push(qr.empty);e.push(a)}}function vn(e,t,a){let i=e.inserted;for(let r=0,n=0,s=0;s<e.sections.length;){let o=e.sections[s++],l=e.sections[s++];if(l<0)r+=o,n+=o;else{let c=r,f=n,u=qr.empty;for(;c+=o,f+=l,l&&i&&(u=u.append(i[s-2>>1])),!(a||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(r,c,n,f,u),r=c,n=f}}}function bn(e,t,a,i=!1){let r=[],n=i?[]:null,s=new Sn(e),o=new Sn(t);for(let e=-1;;)if(-1==s.ins&&-1==o.ins){let e=Math.min(s.len,o.len);mn(r,e,-1),s.forward(e),o.forward(e)}else if(o.ins>=0&&(s.ins<0||e==s.i||0==s.off&&(o.len<s.len||o.len==s.len&&!a))){let t=o.len;for(mn(r,o.ins,-1);t;){let a=Math.min(s.len,t);s.ins>=0&&e<s.i&&s.len<=a&&(mn(r,0,s.ins),n&&yn(n,r,s.text),e=s.i),s.forward(a),t-=a}o.next()}else{if(!(s.ins>=0)){if(s.done&&o.done)return n?pn.createSet(r,n):gn.create(r);throw new Error("Mismatched change set lengths")}{let t=0,a=s.len;for(;a;)if(-1==o.ins){let e=Math.min(a,o.len);t+=e,a-=e,o.forward(e)}else{if(!(0==o.ins&&o.len<a))break;a-=o.len,o.next()}mn(r,t,e<s.i?s.ins:0),n&&e<s.i&&yn(n,r,s.text),e=s.i,s.forward(s.len-a)}}}function wn(e,t,a=!1){let i=[],r=a?[]:null,n=new Sn(e),s=new Sn(t);for(let e=!1;;){if(n.done&&s.done)return r?pn.createSet(i,r):gn.create(i);if(0==n.ins)mn(i,n.len,0,e),n.next();else if(0!=s.len||s.done){if(n.done||s.done)throw new Error("Mismatched change set lengths");{let t=Math.min(n.len2,s.len),a=i.length;if(-1==n.ins){let a=-1==s.ins?-1:s.off?0:s.ins;mn(i,t,a,e),r&&a&&yn(r,i,s.text)}else-1==s.ins?(mn(i,n.off?0:n.len,t,e),r&&yn(r,i,n.textBit(t))):(mn(i,n.off?0:n.len,s.off?0:s.ins,e),r&&!s.off&&yn(r,i,s.text));e=(n.ins>t||s.ins>=0&&s.len>t)&&(e||i.length>a),n.forward2(t),s.forward(t)}}else mn(i,0,s.ins,e),r&&yn(r,i,s.text),s.next()}}class Sn{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?qr.empty:e[t]}textBit(e){let{inserted:t}=this.set,a=this.i-2>>1;return a>=t.length&&!e?qr.empty:t[a].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class kn{constructor(e,t,a){this.from=e,this.to=t,this.flags=a}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let a,i;return this.empty?a=i=e.mapPos(this.from,t):(a=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),a==this.from&&i==this.to?this:new kn(a,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return On.range(e,t);let a=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return On.range(this.anchor,a)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return On.range(e.anchor,e.head)}static create(e,t,a){return new kn(e,t,a)}}class On{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:On.create(this.ranges.map((a=>a.map(e,t))),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let a=0;a<this.ranges.length;a++)if(!this.ranges[a].eq(e.ranges[a],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new On([this.main],0)}addRange(e,t=!0){return On.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let a=this.ranges.slice();return a[t]=e,On.create(a,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new On(e.ranges.map((e=>kn.fromJSON(e))),e.main)}static single(e,t=e){return new On([On.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let a=0,i=0;i<e.length;i++){let r=e[i];if(r.empty?r.from<=a:r.from<a)return On.normalized(e.slice(),t);a=r.to}return new On(e,t)}static cursor(e,t=0,a,i){return kn.create(e,e,(0==t?0:t<0?8:16)|(null==a?7:Math.min(6,a))|(null!=i?i:16777215)<<6)}static range(e,t,a,i){let r=(null!=a?a:16777215)<<6|(null==i?7:Math.min(6,i));return t<e?kn.create(t,e,48|r):kn.create(e,t,(t>e?8:0)|r)}static normalized(e,t=0){let a=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(a);for(let a=1;a<e.length;a++){let i=e[a],r=e[a-1];if(i.empty?i.from<=r.to:i.from<r.to){let n=r.from,s=Math.max(i.to,r.to);a<=t&&t--,e.splice(--a,2,i.anchor>i.head?On.range(s,n):On.range(n,s))}}return new On(e,t)}}function xn(e,t){for(let a of e.ranges)if(a.to>t)throw new RangeError("Selection points outside of document")}let Cn=0;class Mn{constructor(e,t,a,i,r){this.combine=e,this.compareInput=t,this.compare=a,this.isStatic=i,this.id=Cn++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new Mn(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:An),!!e.static,e.enables)}of(e){return new Tn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Tn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new Tn(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(a=>t(a.field(e))))}}function An(e,t){return e==t||e.length==t.length&&e.every(((e,a)=>e===t[a]))}class Tn{constructor(e,t,a,i){this.dependencies=e,this.facet=t,this.type=a,this.value=i,this.id=Cn++}dynamicSlot(e){var t;let a=this.value,i=this.facet.compareInput,r=this.id,n=e[r]>>1,s=2==this.type,o=!1,l=!1,c=[];for(let a of this.dependencies)"doc"==a?o=!0:"selection"==a?l=!0:0==(1&(null!==(t=e[a.id])&&void 0!==t?t:1))&&c.push(e[a.id]);return{create:e=>(e.values[n]=a(e),1),update(e,t){if(o&&t.docChanged||l&&(t.docChanged||t.selection)||Nn(e,c)){let t=a(e);if(s?!Pn(t,e.values[n],i):!i(t,e.values[n]))return e.values[n]=t,1}return 0},reconfigure:(e,t)=>{let o,l=t.config.address[r];if(null!=l){let r=Vn(t,l);if(this.dependencies.every((a=>a instanceof Mn?t.facet(a)===e.facet(a):!(a instanceof Dn)||t.field(a,!1)==e.field(a,!1)))||(s?Pn(o=a(e),r,i):i(o=a(e),r)))return e.values[n]=r,0}else o=a(e);return e.values[n]=o,1}}}}function Pn(e,t,a){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!a(e[i],t[i]))return!1;return!0}function Nn(e,t){let a=!1;for(let i of t)1&Hn(e,i)&&(a=!0);return a}function En(e,t,a){let i=a.map((t=>e[t.id])),r=a.map((e=>e.type)),n=i.filter((e=>!(1&e))),s=e[t.id]>>1;function o(e){let a=[];for(let t=0;t<i.length;t++){let n=Vn(e,i[t]);if(2==r[t])for(let e of n)a.push(e);else a.push(n)}return t.combine(a)}return{create(e){for(let t of i)Hn(e,t);return e.values[s]=o(e),1},update(e,a){if(!Nn(e,n))return 0;let i=o(e);return t.compare(i,e.values[s])?0:(e.values[s]=i,1)},reconfigure(e,r){let n=Nn(e,i),l=r.config.facets[t.id],c=r.facet(t);if(l&&!n&&An(a,l))return e.values[s]=c,0;let f=o(e);return t.compare(f,c)?(e.values[s]=c,0):(e.values[s]=f,1)}}}const Rn=Mn.define({static:!0});class Dn{constructor(e,t,a,i,r){this.id=e,this.createF=t,this.updateF=a,this.compareF=i,this.spec=r,this.provides=void 0}static define(e){let t=new Dn(Cn++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Rn).find((e=>e.field==this));return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,a)=>{let i=e.values[t],r=this.updateF(i,a);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,a)=>null!=a.config.address[this.id]?(e.values[t]=a.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,Rn.of({field:this,create:e})]}get extension(){return this}}function Bn(e){return t=>new In(t,e)}const Ln={highest:Bn(0),high:Bn(1),default:Bn(2),low:Bn(3),lowest:Bn(4)};class In{constructor(e,t){this.inner=e,this.prec=t}}class Fn{of(e){return new zn(this,e)}reconfigure(e){return Fn.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class zn{constructor(e,t){this.compartment=e,this.inner=t}}class jn{constructor(e,t,a,i,r,n){for(this.base=e,this.compartments=t,this.dynamicSlots=a,this.address=i,this.staticValues=r,this.facets=n,this.statusTemplate=[];this.statusTemplate.length<a.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,a){let i=[],r=Object.create(null),n=new Map;for(let a of function(e,t,a){let i=[[],[],[],[],[]],r=new Map;return function e(n,s){let o=r.get(n);if(null!=o){if(o<=s)return;let e=i[o].indexOf(n);e>-1&&i[o].splice(e,1),n instanceof zn&&a.delete(n.compartment)}if(r.set(n,s),Array.isArray(n))for(let t of n)e(t,s);else if(n instanceof zn){if(a.has(n.compartment))throw new RangeError("Duplicate use of compartment in extensions");let i=t.get(n.compartment)||n.inner;a.set(n.compartment,i),e(i,s)}else if(n instanceof In)e(n.inner,n.prec);else if(n instanceof Dn)i[s].push(n),n.provides&&e(n.provides,s);else if(n instanceof Tn)i[s].push(n),n.facet.extensions&&e(n.facet.extensions,2);else{let t=n.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${n}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,s)}}(e,2),i.reduce(((e,t)=>e.concat(t)))}(e,t,n))a instanceof Dn?i.push(a):(r[a.facet.id]||(r[a.facet.id]=[])).push(a);let s=Object.create(null),o=[],l=[];for(let e of i)s[e.id]=l.length<<1,l.push((t=>e.slot(t)));let c=null==a?void 0:a.config.facets;for(let e in r){let t=r[e],i=t[0].facet,n=c&&c[e]||[];if(t.every((e=>0==e.type)))if(s[i.id]=o.length<<1|1,An(n,t))o.push(a.facet(i));else{let e=i.combine(t.map((e=>e.value)));o.push(a&&i.compare(e,a.facet(i))?a.facet(i):e)}else{for(let e of t)0==e.type?(s[e.id]=o.length<<1|1,o.push(e.value)):(s[e.id]=l.length<<1,l.push((t=>e.dynamicSlot(t))));s[i.id]=l.length<<1,l.push((e=>En(e,i,t)))}}let f=l.map((e=>e(s)));return new jn(e,n,f,s,o,r)}}function Hn(e,t){if(1&t)return 2;let a=t>>1,i=e.status[a];if(4==i)throw new Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[a]=4;let r=e.computeSlot(e,e.config.dynamicSlots[a]);return e.status[a]=2|r}function Vn(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const qn=Mn.define(),Wn=Mn.define({combine:e=>e.some((e=>e)),static:!0}),Gn=Mn.define({combine:e=>e.length?e[0]:void 0,static:!0}),Un=Mn.define(),$n=Mn.define(),Qn=Mn.define(),Kn=Mn.define({combine:e=>!!e.length&&e[0]});class Xn{constructor(e,t){this.type=e,this.value=t}static define(){return new Yn}}class Yn{of(e){return new Xn(this,e)}}class Jn{constructor(e){this.map=e}of(e){return new Zn(this,e)}}class Zn{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Zn(this.type,t)}is(e){return this.type==e}static define(e={}){return new Jn(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let a=[];for(let i of e){let e=i.map(t);e&&a.push(e)}return a}}Zn.reconfigure=Zn.define(),Zn.appendConfig=Zn.define();class es{constructor(e,t,a,i,r,n){this.startState=e,this.changes=t,this.selection=a,this.effects=i,this.annotations=r,this.scrollIntoView=n,this._doc=null,this._state=null,a&&xn(a,t.newLength),r.some((e=>e.type==es.time))||(this.annotations=r.concat(es.time.of(Date.now())))}static create(e,t,a,i,r,n){return new es(e,t,a,i,r,n)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(es.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function ts(e,t){let a=[];for(let i=0,r=0;;){let n,s;if(i<e.length&&(r==t.length||t[r]>=e[i]))n=e[i++],s=e[i++];else{if(!(r<t.length))return a;n=t[r++],s=t[r++]}!a.length||a[a.length-1]<n?a.push(n,s):a[a.length-1]<s&&(a[a.length-1]=s)}}function as(e,t,a){var i;let r,n,s;return a?(r=t.changes,n=pn.empty(t.changes.length),s=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),n=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(r)),{changes:s,selection:t.selection?t.selection.map(n):null===(i=e.selection)||void 0===i?void 0:i.map(r),effects:Zn.mapEffects(e.effects,r).concat(Zn.mapEffects(t.effects,n)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function is(e,t,a){let i=t.selection,r=ss(t.annotations);return t.userEvent&&(r=r.concat(es.userEvent.of(t.userEvent))),{changes:t.changes instanceof pn?t.changes:pn.of(t.changes||[],a,e.facet(Gn)),selection:i&&(i instanceof On?i:On.single(i.anchor,i.head)),effects:ss(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}function rs(e,t,a){let i=is(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(a=!1);for(let r=1;r<t.length;r++){!1===t[r].filter&&(a=!1);let n=!!t[r].sequential;i=as(i,is(e,t[r],n?i.changes.newLength:e.doc.length),n)}let r=es.create(e,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return function(e){let t=e.startState,a=t.facet(Qn),i=e;for(let r=a.length-1;r>=0;r--){let n=a[r](e);n&&Object.keys(n).length&&(i=as(i,is(t,n,e.changes.newLength),!0))}return i==e?e:es.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(a?function(e){let t=e.startState,a=!0;for(let i of t.facet(Un)){let t=i(e);if(!1===t){a=!1;break}Array.isArray(t)&&(a=!0===a?t:ts(a,t))}if(!0!==a){let i,r;if(!1===a)r=e.changes.invertedDesc,i=pn.empty(t.doc.length);else{let t=e.changes.filter(a);i=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=es.create(t,i,e.selection&&e.selection.map(r),Zn.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let i=t.facet($n);for(let a=i.length-1;a>=0;a--){let r=i[a](e);e=r instanceof es?r:Array.isArray(r)&&1==r.length&&r[0]instanceof es?r[0]:rs(t,ss(r),!1)}return e}(r):r)}es.time=Xn.define(),es.userEvent=Xn.define(),es.addToHistory=Xn.define(),es.remote=Xn.define();const ns=[];function ss(e){return null==e?ns:Array.isArray(e)?e:[e]}var os=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(os||(os={}));const ls=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let cs;try{cs=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class fs{constructor(e,t,a,i,r,n){this.config=e,this.doc=t,this.selection=a,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,n&&(n._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Hn(this,e<<1);this.computeSlot=null}field(e,t=!0){let a=this.config.address[e.id];if(null!=a)return Hn(this,a),Vn(this,a);if(t)throw new RangeError("Field is not present in this state")}update(...e){return rs(this,e,!0)}applyTransaction(e){let t,a=this.config,{base:i,compartments:r}=a;for(let t of e.effects)t.is(Fn.reconfigure)?(a&&(r=new Map,a.compartments.forEach(((e,t)=>r.set(t,e))),a=null),r.set(t.value.compartment,t.value.extension)):t.is(Zn.reconfigure)?(a=null,i=t.value):t.is(Zn.appendConfig)&&(a=null,i=ss(i).concat(t.value));a?t=e.startState.values.slice():(a=jn.resolve(i,r,this),t=new fs(a,this.doc,this.selection,a.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values);let n=e.startState.facet(Wn)?e.newSelection:e.newSelection.asSingle();new fs(a,e.newDoc,n,t,((t,a)=>a.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:On.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,a=e(t.ranges[0]),i=this.changes(a.changes),r=[a.range],n=ss(a.effects);for(let a=1;a<t.ranges.length;a++){let s=e(t.ranges[a]),o=this.changes(s.changes),l=o.map(i);for(let e=0;e<a;e++)r[e]=r[e].map(l);let c=i.mapDesc(o,!0);r.push(s.range.map(c)),i=i.compose(l),n=Zn.mapEffects(n,l).concat(Zn.mapEffects(ss(s.effects),c))}return{changes:i,selection:On.create(r,t.mainIndex),effects:n}}changes(e=[]){return e instanceof pn?e:pn.of(e,this.doc.length,this.facet(fs.lineSeparator))}toText(e){return qr.of(e.split(this.facet(fs.lineSeparator)||hn))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(Hn(this,t),Vn(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let a in e){let i=e[a];i instanceof Dn&&null!=this.config.address[i.id]&&(t[a]=i.spec.toJSON(this.field(e[a]),this))}return t}static fromJSON(e,t={},a){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(a)for(let t in a)if(Object.prototype.hasOwnProperty.call(e,t)){let r=a[t],n=e[t];i.push(r.init((e=>r.spec.fromJSON(n,e))))}return fs.create({doc:e.doc,selection:On.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=jn.resolve(e.extensions||[],new Map),a=e.doc instanceof qr?e.doc:qr.of((e.doc||"").split(t.staticFacet(fs.lineSeparator)||hn)),i=e.selection?e.selection instanceof On?e.selection:On.single(e.selection.anchor,e.selection.head):On.single(0);return xn(i,a.length),t.staticFacet(Wn)||(i=i.asSingle()),new fs(t,a,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(fs.tabSize)}get lineBreak(){return this.facet(fs.lineSeparator)||"\n"}get readOnly(){return this.facet(Kn)}phrase(e,...t){for(let t of this.facet(fs.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,((e,a)=>{if("$"==a)return"$";let i=+(a||1);return!i||i>t.length?e:t[i-1]}))),e}languageDataAt(e,t,a=-1){let i=[];for(let r of this.facet(qn))for(let n of r(this,t,a))Object.prototype.hasOwnProperty.call(n,e)&&i.push(n[e]);return i}charCategorizer(e){return t=this.languageDataAt("wordChars",e).join(""),e=>{if(!/\S/.test(e))return os.Space;if(function(e){if(cs)return cs.test(e);for(let t=0;t<e.length;t++){let a=e[t];if(/\w/.test(a)||a>""&&(a.toUpperCase()!=a.toLowerCase()||ls.test(a)))return!0}return!1}(e))return os.Word;for(let a=0;a<t.length;a++)if(e.indexOf(t[a])>-1)return os.Word;return os.Other};var t}wordAt(e){let{text:t,from:a,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),n=e-a,s=e-a;for(;n>0;){let e=rn(t,n,!1);if(r(t.slice(e,n))!=os.Word)break;n=e}for(;s<i;){let e=rn(t,s);if(r(t.slice(s,e))!=os.Word)break;s=e}return n==s?null:On.range(n+a,s+a)}}function us(e,t,a={}){let i={};for(let t of e)for(let e of Object.keys(t)){let r=t[e],n=i[e];if(void 0===n)i[e]=r;else if(n===r||void 0===r);else{if(!Object.hasOwnProperty.call(a,e))throw new Error("Config merge conflict for field "+e);i[e]=a[e](n,r)}}for(let e in t)void 0===i[e]&&(i[e]=t[e]);return i}fs.allowMultipleSelections=Wn,fs.tabSize=Mn.define({combine:e=>e.length?e[0]:4}),fs.lineSeparator=Gn,fs.readOnly=Kn,fs.phrases=Mn.define({compare(e,t){let a=Object.keys(e),i=Object.keys(t);return a.length==i.length&&a.every((a=>e[a]==t[a]))}}),fs.languageData=qn,fs.changeFilter=Un,fs.transactionFilter=$n,fs.transactionExtender=Qn,Fn.reconfigure=Zn.define();class hs{eq(e){return this==e}range(e,t=e){return ds.create(e,t,this)}}hs.prototype.startSide=hs.prototype.endSide=0,hs.prototype.point=!1,hs.prototype.mapMode=dn.TrackDel;class ds{constructor(e,t,a){this.from=e,this.to=t,this.value=a}static create(e,t,a){return new ds(e,t,a)}}function gs(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class ps{constructor(e,t,a,i){this.from=e,this.to=t,this.value=a,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,a,i=0){let r=a?this.to:this.from;for(let n=i,s=r.length;;){if(n==s)return n;let i=n+s>>1,o=r[i]-e||(a?this.value[i].endSide:this.value[i].startSide)-t;if(i==n)return o>=0?n:s;o>=0?s=i:n=i+1}}between(e,t,a,i){for(let r=this.findIndex(t,-1e9,!0),n=this.findIndex(a,1e9,!1,r);r<n;r++)if(!1===i(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let a=[],i=[],r=[],n=-1,s=-1;for(let o=0;o<this.value.length;o++){let l,c,f=this.value[o],u=this.from[o]+e,h=this.to[o]+e;if(u==h){let e=t.mapPos(u,f.startSide,f.mapMode);if(null==e)continue;if(l=c=e,f.startSide!=f.endSide&&(c=t.mapPos(u,f.endSide),c<l))continue}else if(l=t.mapPos(u,f.startSide),c=t.mapPos(h,f.endSide),l>c||l==c&&f.startSide>0&&f.endSide<=0)continue;(c-l||f.endSide-f.startSide)<0||(n<0&&(n=l),f.point&&(s=Math.max(s,c-l)),a.push(f),i.push(l-n),r.push(c-n))}return{mapped:a.length?new ps(i,r,a,s):null,pos:n}}}class ms{constructor(e,t,a,i){this.chunkPos=e,this.chunk=t,this.nextLayer=a,this.maxPoint=i}static create(e,t,a,i){return new ms(e,t,a,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:a=!1,filterFrom:i=0,filterTo:r=this.length}=e,n=e.filter;if(0==t.length&&!n)return this;if(a&&(t=t.slice().sort(gs)),this.isEmpty)return t.length?ms.of(t):this;let s=new bs(this,null,-1).goto(0),o=0,l=[],c=new ys;for(;s.value||o<t.length;)if(o<t.length&&(s.from-t[o].from||s.startSide-t[o].value.startSide)>=0){let e=t[o++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(o==t.length||this.chunkEnd(s.chunkIndex)<t[o].from)&&(!n||i>this.chunkEnd(s.chunkIndex)||r<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!n||i>s.to||r<s.from||n(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||l.push(ds.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?ms.empty:this.nextLayer.update({add:l,filter:n,filterFrom:i,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],a=[],i=-1;for(let r=0;r<this.chunk.length;r++){let n=this.chunkPos[r],s=this.chunk[r],o=e.touchesRange(n,n+s.length);if(!1===o)i=Math.max(i,s.maxPoint),t.push(s),a.push(e.mapPos(n));else if(!0===o){let{mapped:r,pos:o}=s.map(n,e);r&&(i=Math.max(i,r.maxPoint),t.push(r),a.push(o))}}let r=this.nextLayer.map(e);return 0==t.length?r:new ms(a,t,r||ms.empty,i)}between(e,t,a){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let r=this.chunkPos[i],n=this.chunk[i];if(t>=r&&e<=r+n.length&&!1===n.between(r,e-r,t-r,a))return}this.nextLayer.between(e,t,a)}}iter(e=0){return ws.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return ws.from(e).goto(t)}static compare(e,t,a,i,r=-1){let n=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r)),o=vs(n,s,a),l=new ks(n,o,r),c=new ks(s,o,r);a.iterGaps(((e,t,a)=>Os(l,e,c,t,a,i))),a.empty&&0==a.length&&Os(l,0,c,0,0,i)}static eq(e,t,a=0,i){null==i&&(i=999999999);let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),n=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(r.length!=n.length)return!1;if(!r.length)return!0;let s=vs(r,n),o=new ks(r,s,0).goto(a),l=new ks(n,s,0).goto(a);for(;;){if(o.to!=l.to||!xs(o.active,l.active)||o.point&&(!l.point||!o.point.eq(l.point)))return!1;if(o.to>i)return!0;o.next(),l.next()}}static spans(e,t,a,i,r=-1){let n=new ks(e,null,r).goto(t),s=t,o=n.openStart;for(;;){let e=Math.min(n.to,a);if(n.point){let a=n.activeForPoint(n.to),r=n.pointFrom<t?a.length+1:n.point.startSide<0?a.length:Math.min(a.length,o);i.point(s,e,n.point,a,r,n.pointRank),o=Math.min(n.openEnd(e),a.length)}else e>s&&(i.span(s,e,n.active,o),o=n.openEnd(e));if(n.to>a)return o+(n.point&&n.to>a?1:0);s=n.to,n.next()}}static of(e,t=!1){let a=new ys;for(let i of e instanceof ds?[e]:t?function(e){if(e.length>1)for(let t=e[0],a=1;a<e.length;a++){let i=e[a];if(gs(t,i)>0)return e.slice().sort(gs);t=i}return e}(e):e)a.add(i.from,i.to,i.value);return a.finish()}static join(e){if(!e.length)return ms.empty;let t=e[e.length-1];for(let a=e.length-2;a>=0;a--)for(let i=e[a];i!=ms.empty;i=i.nextLayer)t=new ms(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}ms.empty=new ms([],[],null,-1),ms.empty.nextLayer=ms.empty;class ys{finishChunk(e){this.chunks.push(new ps(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,a){this.addInner(e,t,a)||(this.nextLayer||(this.nextLayer=new ys)).add(e,t,a)}addInner(e,t,a){let i=e-this.lastTo||a.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||a.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=a,this.lastFrom=e,this.lastTo=t,this.value.push(a),a.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let a=t.value.length-1;return this.last=t.value[a],this.lastFrom=t.from[a]+e,this.lastTo=t.to[a]+e,!0}finish(){return this.finishInner(ms.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=ms.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function vs(e,t,a){let i=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&i.set(t.chunk[e],t.chunkPos[e]);let r=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let n=i.get(e.chunk[t]);null==n||(a?a.mapPos(n):n)!=e.chunkPos[t]||(null==a?void 0:a.touchesRange(n,n+e.chunk[t].length))||r.add(e.chunk[t])}return r}class bs{constructor(e,t,a,i=0){this.layer=e,this.skip=t,this.minPoint=a,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,a){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,a=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!a||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],a=e+t.from[this.rangeIndex];if(this.from=a,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class ws{constructor(e){this.heap=e}static from(e,t=null,a=-1){let i=[];for(let r=0;r<e.length;r++)for(let n=e[r];!n.isEmpty;n=n.nextLayer)n.maxPoint>=a&&i.push(new bs(n,t,a,r));return 1==i.length?i[0]:new ws(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let a of this.heap)a.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ss(this.heap,e);return this.next(),this}forward(e,t){for(let a of this.heap)a.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Ss(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Ss(this.heap,0)}}}function Ss(e,t){for(let a=e[t];;){let i=1+(t<<1);if(i>=e.length)break;let r=e[i];if(i+1<e.length&&r.compare(e[i+1])>=0&&(r=e[i+1],i++),a.compare(r)<0)break;e[i]=a,e[t]=r,t=i}}class ks{constructor(e,t,a){this.minPoint=a,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ws.from(e,t,a)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Cs(this.active,e),Cs(this.activeTo,e),Cs(this.activeRank,e),this.minActive=As(this.active,this.activeTo)}addActive(e){let t=0,{value:a,to:i,rank:r}=this.cursor;for(;t<this.activeRank.length&&(r-this.activeRank[t]||i-this.activeTo[t])>0;)t++;Ms(this.active,t,a),Ms(this.activeTo,t,i),Ms(this.activeRank,t,r),e&&Ms(e,t,this.cursor.from),this.minActive=As(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let a=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),a&&Cs(a,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(a),this.cursor.next()}}}if(a){this.openStart=0;for(let t=a.length-1;t>=0&&a[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let a=this.active.length-1;a>=0&&!(this.activeRank[a]<this.pointRank);a--)(this.activeTo[a]>e||this.activeTo[a]==e&&this.active[a].endSide>=this.point.endSide)&&t.push(this.active[a]);return t.reverse()}openEnd(e){let t=0;for(let a=this.activeTo.length-1;a>=0&&this.activeTo[a]>e;a--)t++;return t}}function Os(e,t,a,i,r,n){e.goto(t),a.goto(i);let s=i+r,o=i,l=i-t;for(;;){let t=e.to+l-a.to||e.endSide-a.endSide,i=t<0?e.to+l:a.to,r=Math.min(i,s);if(e.point||a.point?e.point&&a.point&&(e.point==a.point||e.point.eq(a.point))&&xs(e.activeForPoint(e.to),a.activeForPoint(a.to))||n.comparePoint(o,r,e.point,a.point):r>o&&!xs(e.active,a.active)&&n.compareRange(o,r,e.active,a.active),i>s)break;o=i,t<=0&&e.next(),t>=0&&a.next()}}function xs(e,t){if(e.length!=t.length)return!1;for(let a=0;a<e.length;a++)if(e[a]!=t[a]&&!e[a].eq(t[a]))return!1;return!0}function Cs(e,t){for(let a=t,i=e.length-1;a<i;a++)e[a]=e[a+1];e.pop()}function Ms(e,t,a){for(let a=e.length-1;a>=t;a--)e[a+1]=e[a];e[t]=a}function As(e,t){let a=-1,i=1e9;for(let r=0;r<t.length;r++)(t[r]-i||e[r].endSide-e[a].endSide)<0&&(a=r,i=t[r]);return a}function Ts(e,t,a=e.length){let i=0;for(let r=0;r<a;)9==e.charCodeAt(r)?(i+=t-i%t,r++):(i++,r=rn(e,r));return i}function Ps(e,t,a,i){for(let i=0,r=0;;){if(r>=t)return i;if(i==e.length)break;r+=9==e.charCodeAt(i)?a-r%a:1,i=rn(e,i)}return!0===i?-1:e.length}const Ns="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),Es="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Rs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Ds{constructor(e,t){this.rules=[];let{finish:a}=t||{};function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,n,s){let o=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return n.push(e[0]+";");for(let a in t){let s=t[a];if(/&/.test(a))r(a.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,n);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+a+") should be a primitive value.");r(i(a),s,o,c)}else null!=s&&o.push(a.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(o.length||c)&&n.push((!a||l||s?e:e.map(a)).join(", ")+" {"+o.join(" ")+"}")}for(let t in e)r(i(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=Rs[Ns]||1;return Rs[Ns]=e+1,"ͼ"+e.toString(36)}static mount(e,t,a){let i=e[Es],r=a&&a.nonce;i?r&&i.setNonce(r):i=new Ls(e,r),i.mount(Array.isArray(t)?t:[t])}}let Bs=new Map;class Ls{constructor(e,t){this.root=e;let a=e.ownerDocument||e,i=a.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let t=Bs.get(a);if(t)return e[Es]=t;this.sheet=new i.CSSStyleSheet,Bs.set(a,this)}else this.styleTag=a.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Es]=this}mount(e){let t=this.sheet,a=0,i=0;for(let r=0;r<e.length;r++){let n=e[r],s=this.modules.indexOf(n);if(s<i&&s>-1&&(this.modules.splice(s,1),i--,s=-1),-1==s){if(this.modules.splice(i++,0,n),t)for(let e=0;e<n.rules.length;e++)t.insertRule(n.rules[e],a++)}else{for(;i<s;)a+=this.modules[i++].rules.length;a+=n.rules.length,i++}}if(t)this.root.adoptedStyleSheets.indexOf(this.sheet)<0&&(this.root.adoptedStyleSheets=[this.sheet,...this.root.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let t=this.root.head||this.root;this.styleTag.parentNode!=t&&t.insertBefore(this.styleTag,t.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var Is={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Fs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},_s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),zs="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),js=0;js<10;js++)Is[48+js]=Is[96+js]=String(js);for(js=1;js<=24;js++)Is[js+111]="F"+js;for(js=65;js<=90;js++)Is[js]=String.fromCharCode(js+32),Fs[js]=String.fromCharCode(js);for(var Hs in Is)Fs.hasOwnProperty(Hs)||(Fs[Hs]=Is[Hs]);function Vs(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function qs(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function Ws(e,t){if(!t.anchorNode)return!1;try{return qs(e,t.anchorNode)}catch(e){return!1}}function Gs(e){return 3==e.nodeType?io(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Us(e,t,a,i){return!!a&&(Qs(e,t,a,i,-1)||Qs(e,t,a,i,1))}function $s(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Qs(e,t,a,i,r){for(;;){if(e==a&&t==i)return!0;if(t==(r<0?0:Ks(e))){if("DIV"==e.nodeName)return!1;let a=e.parentNode;if(!a||1!=a.nodeType)return!1;t=$s(e)+(r<0?0:1),e=a}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?Ks(e):0}}}function Ks(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Xs(e,t){let a=t?e.left:e.right;return{left:a,right:a,top:e.top,bottom:e.bottom}}function Ys(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Js(e,t){let a=t.width/e.offsetWidth,i=t.height/e.offsetHeight;return(a>.995&&a<1.005||!isFinite(a)||Math.abs(t.width-e.offsetWidth)<1)&&(a=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.height-e.offsetHeight)<1)&&(i=1),{scaleX:a,scaleY:i}}class Zs{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:a}=e;this.set(t,Math.min(e.anchorOffset,t?Ks(t):0),a,Math.min(e.focusOffset,a?Ks(a):0))}set(e,t,a,i){this.anchorNode=e,this.anchorOffset=t,this.focusNode=a,this.focusOffset=i}}let eo,to=null;function ao(e){if(e.setActive)return e.setActive();if(to)return e.focus(to);let t=[];for(let a=e;a&&(t.push(a,a.scrollTop,a.scrollLeft),a!=a.ownerDocument);a=a.parentNode);if(e.focus(null==to?{get preventScroll(){return to={preventScroll:!0},!0}}:void 0),!to){to=!1;for(let e=0;e<t.length;){let a=t[e++],i=t[e++],r=t[e++];a.scrollTop!=i&&(a.scrollTop=i),a.scrollLeft!=r&&(a.scrollLeft=r)}}}function io(e,t,a=t){let i=eo||(eo=document.createRange());return i.setEnd(e,a),i.setStart(e,t),i}function ro(e,t,a){let i={key:t,code:t,keyCode:a,which:a,cancelable:!0},r=new KeyboardEvent("keydown",i);r.synthetic=!0,e.dispatchEvent(r);let n=new KeyboardEvent("keyup",i);return n.synthetic=!0,e.dispatchEvent(n),r.defaultPrevented||n.defaultPrevented}function no(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function so(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class oo{constructor(e,t,a=!0){this.node=e,this.offset=t,this.precise=a}static before(e,t){return new oo(e.parentNode,$s(e),t)}static after(e,t){return new oo(e.parentNode,$s(e)+1,t)}}const lo=[];class co{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let a of this.children){if(a==e)return t;t+=a.length+a.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let a,i=this.dom,r=null;for(let n of this.children){if(7&n.flags){if(!n.dom&&(a=r?r.nextSibling:i.firstChild)){let e=co.get(a);(!e||!e.parent&&e.canReuseDOM(n))&&n.reuseDOM(a)}n.sync(e,t),n.flags&=-8}if(a=r?r.nextSibling:i.firstChild,t&&!t.written&&t.node==i&&a!=n.dom&&(t.written=!0),n.dom.parentNode==i)for(;a&&a!=n.dom;)a=fo(a);else i.insertBefore(n.dom,a);r=n.dom}for(a=r?r.nextSibling:i.firstChild,a&&t&&t.node==i&&(t.written=!0);a;)a=fo(a)}else if(1&this.flags)for(let a of this.children)7&a.flags&&(a.sync(e,t),a.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let a;if(e==this.dom)a=this.dom.childNodes[t];else{let i=0==Ks(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==i&&t.firstChild!=t.lastChild&&(i=e==t.firstChild?-1:1),e=t}a=i<0?e:e.nextSibling}if(a==this.dom.firstChild)return 0;for(;a&&!co.get(a);)a=a.nextSibling;if(!a)return this.length;for(let e=0,t=0;;e++){let i=this.children[e];if(i.dom==a)return t;t+=i.length+i.breakAfter}}domBoundsAround(e,t,a=0){let i=-1,r=-1,n=-1,s=-1;for(let o=0,l=a,c=a;o<this.children.length;o++){let a=this.children[o],f=l+a.length;if(l<e&&f>t)return a.domBoundsAround(e,t,l);if(f>=e&&-1==i&&(i=o,r=l),l>t&&a.dom.parentNode==this.dom){n=o,s=c;break}c=f,l=f+a.breakAfter}return{from:r,to:s<0?a+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n<this.children.length&&n>=0?this.children[n].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t,a=lo){this.markDirty();for(let i=e;i<t;i++){let e=this.children[i];e.parent==this&&a.indexOf(e)<0&&e.destroy()}this.children.splice(e,t-e,...a);for(let e=0;e<a.length;e++)a[e].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new uo(this.children,e,this.children.length)}childPos(e,t=1){return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,a,i,r,n){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}function fo(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}co.prototype.breakAfter=0;class uo{constructor(e,t,a){this.children=e,this.pos=t,this.i=a,this.off=0}findPos(e,t=1){for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let a=this.children[--this.i];this.pos-=a.length+a.breakAfter}}}function ho(e,t,a,i,r,n,s,o,l){let{children:c}=e,f=c.length?c[t]:null,u=n.length?n[n.length-1]:null,h=u?u.breakAfter:s;if(!(t==i&&f&&!s&&!h&&n.length<2&&f.merge(a,r,n.length?u:null,0==a,o,l))){if(i<c.length){let e=c[i];e&&(r<e.length||e.breakAfter&&(null==u?void 0:u.breakAfter))?(t==i&&(e=e.split(r),r=0),!h&&u&&e.merge(0,r,u,!0,0,l)?n[n.length-1]=e:((r||e.children.length&&!e.children[0].length)&&e.merge(0,r,null,!1,0,l),n.push(e))):(null==e?void 0:e.breakAfter)&&(u?u.breakAfter=1:s=1),i++}for(f&&(f.breakAfter=s,a>0&&(!s&&n.length&&f.merge(a,f.length,n[0],!1,o,0)?f.breakAfter=n.shift().breakAfter:(a<f.length||f.children.length&&0==f.children[f.children.length-1].length)&&f.merge(a,f.length,null,!1,o,0),t++));t<i&&n.length;)if(c[i-1].become(n[n.length-1]))i--,n.pop(),l=n.length?0:o;else{if(!c[t].become(n[0]))break;t++,n.shift(),o=n.length?0:l}!n.length&&t&&i<c.length&&!c[t-1].breakAfter&&c[i].merge(0,0,c[t-1],!1,o,l)&&t--,(t<i||n.length)&&e.replaceChildren(t,i,n)}}function go(e,t,a,i,r,n){let s=e.childCursor(),{i:o,off:l}=s.findPos(a,1),{i:c,off:f}=s.findPos(t,-1),u=t-a;for(let e of i)u+=e.length;e.length+=u,ho(e,c,f,o,l,i,0,r,n)}let po="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},mo="undefined"!=typeof document?document:{documentElement:{style:{}}};const yo=/Edge\/(\d+)/.exec(po.userAgent),vo=/MSIE \d/.test(po.userAgent),bo=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(po.userAgent),wo=!!(vo||bo||yo),So=!wo&&/gecko\/(\d+)/i.test(po.userAgent),ko=!wo&&/Chrome\/(\d+)/.exec(po.userAgent),Oo="webkitFontSmoothing"in mo.documentElement.style,xo=!wo&&/Apple Computer/.test(po.vendor),Co=xo&&(/Mobile\/\w+/.test(po.userAgent)||po.maxTouchPoints>2);var Mo={mac:Co||/Mac/.test(po.platform),windows:/Win/.test(po.platform),linux:/Linux|X11/.test(po.platform),ie:wo,ie_version:vo?mo.documentMode||6:bo?+bo[1]:yo?+yo[1]:0,gecko:So,gecko_version:So?+(/Firefox\/(\d+)/.exec(po.userAgent)||[0,0])[1]:0,chrome:!!ko,chrome_version:ko?+ko[1]:0,ios:Co,android:/Android\b/.test(po.userAgent),webkit:Oo,safari:xo,webkit_version:Oo?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=mo.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class Ao extends co{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,a){return!(8&this.flags||a&&(!(a instanceof Ao)||this.length-(t-e)+a.length>256||8&a.flags)||(this.text=this.text.slice(0,e)+(a?a.text:"")+this.text.slice(t),this.markDirty(),0))}split(e){let t=new Ao(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new oo(this.dom,e)}domBoundsAround(e,t,a){return{from:a,to:a+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,a){let i=e.nodeValue.length;t>i&&(t=i);let r=t,n=t,s=0;0==t&&a<0||t==i&&a>=0?Mo.chrome||Mo.gecko||(t?(r--,s=1):n<i&&(n++,s=-1)):a<0?r--:n<i&&n++;let o=io(e,r,n).getClientRects();if(!o.length)return null;let l=o[(s?s<0:a>=0)?0:o.length-1];return Mo.safari&&!s&&0==l.width&&(l=Array.prototype.find.call(o,(e=>e.width))||l),s?Xs(l,s<0):l||null}(this.dom,e,t)}}class To extends co{constructor(e,t=[],a=0){super(),this.mark=e,this.children=t,this.length=a;for(let e of t)e.setParent(this)}setAttrs(e){if(no(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,a,i,r,n){return!(a&&(!(a instanceof To&&a.mark.eq(this.mark))||e&&r<=0||t<this.length&&n<=0)||(go(this,e,t,a?a.children.slice():[],r-1,n-1),this.markDirty(),0))}split(e){let t=[],a=0,i=-1,r=0;for(let n of this.children){let s=a+n.length;s>e&&t.push(a<e?n.split(e-a):n),i<0&&a>=e&&(i=r),a=s,r++}let n=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new To(this.mark,t,n)}domAtPos(e){return Eo(this,e)}coordsAt(e,t){return Do(this,e,t)}}class Po extends co{static create(e,t,a){return new Po(e,t,a)}constructor(e,t,a){super(),this.widget=e,this.length=t,this.side=a,this.prevWidget=null}split(e){let t=Po.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,t,a,i,r,n){return!(a&&(!(a instanceof Po&&this.widget.compare(a.widget))||e>0&&r<=0||t<this.length&&n<=0)||(this.length=e+(a?a.length:0)+(this.length-t),0))}become(e){return e instanceof Po&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(0==this.length)return qr.empty;let e=this;for(;e.parent;)e=e.parent;let{view:t}=e,a=t&&t.state.doc,i=this.posAtStart;return a?a.slice(i,i+this.length):qr.empty}domAtPos(e){return(this.length?0==e:this.side>0)?oo.before(this.dom):oo.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let a=this.widget.coordsAt(this.dom,e,t);if(a)return a;let i=this.dom.getClientRects(),r=null;if(!i.length)return null;let n=this.side?this.side<0:e>0;for(let t=n?i.length-1:0;r=i[t],!(e>0?0==t:t==i.length-1||r.top<r.bottom);t+=n?-1:1);return Xs(r,!n)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class No extends co{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof No&&e.side==this.side}split(){return new No(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?oo.before(this.dom):oo.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return qr.empty}get isHidden(){return!0}}function Eo(e,t){let a=e.dom,{children:i}=e,r=0;for(let e=0;r<i.length;r++){let n=i[r],s=e+n.length;if(!(s==e&&n.getSide()<=0)){if(t>e&&t<s&&n.dom.parentNode==a)return n.domAtPos(t-e);if(t<=e)break;e=s}}for(let e=r;e>0;e--){let t=i[e-1];if(t.dom.parentNode==a)return t.domAtPos(t.length)}for(let e=r;e<i.length;e++){let t=i[e];if(t.dom.parentNode==a)return t.domAtPos(0)}return new oo(a,0)}function Ro(e,t,a){let i,{children:r}=e;a>0&&t instanceof To&&r.length&&(i=r[r.length-1])instanceof To&&i.mark.eq(t.mark)?Ro(i,t.children[0],a-1):(r.push(t),t.setParent(e)),e.length+=t.length}function Do(e,t,a){let i=null,r=-1,n=null,s=-1;!function e(t,o){for(let l=0,c=0;l<t.children.length&&c<=o;l++){let f=t.children[l],u=c+f.length;u>=o&&(f.children.length?e(f,o-c):(!n||n.isHidden&&a>0)&&(u>o||c==u&&f.getSide()>0)?(n=f,s=o-c):(c<o||c==u&&f.getSide()<0&&!f.isHidden)&&(i=f,r=o-c)),c=u}}(e,t);let o=(a<0?i:n)||i||n;return o?o.coordsAt(Math.max(0,o==i?r:s),a):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let a=Gs(t);return a[a.length-1]||null}(e)}function Bo(e,t){for(let a in e)"class"==a&&t.class?t.class+=" "+e.class:"style"==a&&t.style?t.style+=";"+e.style:t[a]=e[a];return t}Ao.prototype.children=Po.prototype.children=No.prototype.children=lo;const Lo=Object.create(null);function Io(e,t,a){if(e==t)return!0;e||(e=Lo),t||(t=Lo);let i=Object.keys(e),r=Object.keys(t);if(i.length-(a&&i.indexOf(a)>-1?1:0)!=r.length-(a&&r.indexOf(a)>-1?1:0))return!1;for(let n of i)if(n!=a&&(-1==r.indexOf(n)||e[n]!==t[n]))return!1;return!0}function Fo(e,t,a){let i=!1;if(t)for(let r in t)a&&r in a||(i=!0,"style"==r?e.style.cssText="":e.removeAttribute(r));if(a)for(let r in a)t&&t[r]==a[r]||(i=!0,"style"==r?e.style.cssText=a[r]:e.setAttribute(r,a[r]));return i}function _o(e){let t=Object.create(null);for(let a=0;a<e.attributes.length;a++){let i=e.attributes[a];t[i.name]=i.value}return t}class zo extends co{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,t,a,i,r,n){if(a){if(!(a instanceof zo))return!1;this.dom||a.transferDOM(this)}return i&&this.setDeco(a?a.attrs:null),go(this,e,t,a?a.children.slice():[],r,n),!0}split(e){let t=new zo;if(t.breakAfter=this.breakAfter,0==this.length)return t;let{i:a,off:i}=this.childPos(e);i&&(t.append(this.children[a].split(i),0),this.children[a].merge(i,this.children[a].length,null,!1,0,0),a++);for(let e=a;e<this.children.length;e++)t.append(this.children[e],0);for(;a>0&&0==this.children[a-1].length;)this.children[--a].destroy();return this.children.length=a,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){Io(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){Ro(this,e,t)}addLineDeco(e){let t=e.spec.attributes,a=e.spec.class;t&&(this.attrs=Bo(t,this.attrs||{})),a&&(this.attrs=Bo({class:a},this.attrs||{}))}domAtPos(e){return Eo(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var a;this.dom?4&this.flags&&(no(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(Fo(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let i=this.dom.lastChild;for(;i&&co.get(i)instanceof To;)i=i.lastChild;if(!(i&&this.length&&("BR"==i.nodeName||0!=(null===(a=co.get(i))||void 0===a?void 0:a.isEditable)||Mo.ios&&this.children.some((e=>e instanceof Ao))))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let a of this.children){if(!(a instanceof Ao)||/[^ -~]/.test(a.text))return null;let i=Gs(a.dom);if(1!=i.length)return null;t+=i[0].width,e=i[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let a=Do(this,e,t);if(!this.children.length&&a&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=a.bottom-a.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight<t){let i=(t-e.textHeight)/2;return{top:a.top+i,bottom:a.bottom-i,left:a.left,right:a.left}}}return a}become(e){return!1}covers(){return!0}static find(e,t){for(let a=0,i=0;a<e.children.length;a++){let r=e.children[a],n=i+r.length;if(n>=t){if(r instanceof zo)return r;if(n>t)break}i=n+r.breakAfter}return null}}class jo extends co{constructor(e,t,a){super(),this.widget=e,this.length=t,this.deco=a,this.breakAfter=0,this.prevWidget=null}merge(e,t,a,i,r,n){return!(a&&(!(a instanceof jo&&this.widget.compare(a.widget))||e>0&&r<=0||t<this.length&&n<=0)||(this.length=e+(a?a.length:0)+(this.length-t),0))}domAtPos(e){return 0==e?oo.before(this.dom):oo.after(this.dom,e==this.length)}split(e){let t=this.length-e;this.length=e;let a=new jo(this.widget,t,this.deco);return a.breakAfter=this.breakAfter,a}get children(){return lo}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):qr.empty}domBoundsAround(){return null}become(e){return e instanceof jo&&e.widget.constructor==this.widget.constructor&&(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0)}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,t){return this.widget.coordsAt(this.dom,e,t)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:t,endSide:a}=this.deco;return t!=a&&(e<0?t<0:a>0)}}class Ho{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,a){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Vo=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Vo||(Vo={}));class qo extends hs{constructor(e,t,a,i){super(),this.startSide=e,this.endSide=t,this.widget=a,this.spec=i}get heightRelevant(){return!1}static mark(e){return new Wo(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),a=!!e.block;return t+=a&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Uo(e,t,t,a,e.widget||null,!1)}static replace(e){let t,a,i=!!e.block;if(e.isBlockGap)t=-5e8,a=4e8;else{let{start:r,end:n}=$o(e,i);t=(r?i?-3e8:-1:5e8)-1,a=1+(n?i?2e8:1:-6e8)}return new Uo(e,t,a,i,e.widget||null,!0)}static line(e){return new Go(e)}static set(e,t=!1){return ms.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}qo.none=ms.empty;class Wo extends qo{constructor(e){let{start:t,end:a}=$o(e);super(t?-1:5e8,a?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,a;return this==e||e instanceof Wo&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(a=e.attrs)||void 0===a?void 0:a.class))&&Io(this.attrs,e.attrs,"class")}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Wo.prototype.point=!1;class Go extends qo{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Go&&this.spec.class==e.spec.class&&Io(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}Go.prototype.mapMode=dn.TrackBefore,Go.prototype.point=!0;class Uo extends qo{constructor(e,t,a,i,r,n){super(t,a,r,e),this.block=i,this.isReplace=n,this.mapMode=i?t<=0?dn.TrackBefore:dn.TrackAfter:dn.TrackDel}get type(){return this.startSide!=this.endSide?Vo.WidgetRange:this.startSide<=0?Vo.WidgetBefore:Vo.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Uo&&(t=this.widget,a=e.widget,t==a||!!(t&&a&&t.compare(a)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,a}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function $o(e,t=!1){let{inclusiveStart:a,inclusiveEnd:i}=e;return null==a&&(a=e.inclusive),null==i&&(i=e.inclusive),{start:null!=a?a:t,end:null!=i?i:t}}function Qo(e,t,a,i=0){let r=a.length-1;r>=0&&a[r]+i>=e?a[r]=Math.max(a[r],t):a.push(e,t)}Uo.prototype.point=!0;class Ko{constructor(e,t,a,i){this.doc=e,this.pos=t,this.end=a,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof jo&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new zo),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Xo(new No(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof jo||this.getLine()}buildText(e,t,a){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:a,done:i}=this.cursor.next(this.skip);if(this.skip=0,i)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-a)),this.getLine().append(Xo(new Ao(this.text.slice(this.textOff,this.textOff+i)),t),a),this.atCursorPos=!0,this.textOff+=i,e-=i,a=0}}span(e,t,a,i){this.buildText(t-e,a,i),this.pos=t,this.openStart<0&&(this.openStart=i)}point(e,t,a,i,r,n){if(this.disallowBlockEffectsFor[n]&&a instanceof Uo){if(a.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=t-e;if(a instanceof Uo)if(a.block)a.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new jo(a.widget||new Yo("div"),s,a));else{let n=Po.create(a.widget||new Yo("span"),s,s?0:a.startSide),o=this.atCursorPos&&!n.isEditable&&r<=i.length&&(e<t||a.startSide>0),l=!n.isEditable&&(e<t||r>i.length||a.startSide<=0),c=this.getLine();2!=this.pendingBuffer||o||n.isEditable||(this.pendingBuffer=0),this.flushBuffer(i),o&&(c.append(Xo(new No(1),i),r),r=i.length+Math.max(0,r-i.length)),c.append(Xo(n,i),r),this.atCursorPos=l,this.pendingBuffer=l?e<t||r>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(a);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=r)}static build(e,t,a,i,r){let n=new Ko(e,t,a,r);return n.openEnd=ms.spans(i,t,a,n),n.openStart<0&&(n.openStart=n.openEnd),n.finish(n.openEnd),n}}function Xo(e,t){for(let a of t)e=new To(a,[e],e.length);return e}class Yo extends Ho{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}var Jo=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Jo||(Jo={}));const Zo=Jo.LTR,el=Jo.RTL;function tl(e){let t=[];for(let a=0;a<e.length;a++)t.push(1<<+e[a]);return t}const al=tl("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),il=tl("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),rl=Object.create(null),nl=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),a=e.charCodeAt(1);rl[t]=a,rl[a]=-t}function sl(e){return e<=247?al[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?il[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const ol=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class ll{get dir(){return this.level%2?el:Zo}constructor(e,t,a){this.from=e,this.to=t,this.level=a}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,a,i){let r=-1;for(let n=0;n<e.length;n++){let s=e[n];if(s.from<=t&&s.to>=t){if(s.level==a)return n;(r<0||(0!=i?i<0?s.from<t:s.to>t:e[r].level>s.level))&&(r=n)}}if(r<0)throw new RangeError("Index out of range");return r}}function cl(e,t){if(e.length!=t.length)return!1;for(let a=0;a<e.length;a++){let i=e[a],r=t[a];if(i.from!=r.from||i.to!=r.to||i.direction!=r.direction||!cl(i.inner,r.inner))return!1}return!0}const fl=[];function ul(e,t,a,i,r,n,s){let o=i%2?2:1;if(i%2==r%2)for(let l=t,c=0;l<a;){let t=!0,f=!1;if(c==n.length||l<n[c].from){let e=fl[l];e!=o&&(t=!1,f=16==e)}let u=t||1!=o?null:[],h=t?i:i+1,d=l;e:for(;;)if(c<n.length&&d==n[c].from){if(f)break e;let g=n[c];if(!t)for(let e=g.to,t=c+1;;){if(e==a)break e;if(!(t<n.length&&n[t].from==e)){if(fl[e]==o)break e;break}e=n[t++].to}c++,u?u.push(g):(g.from>l&&s.push(new ll(l,g.from,h)),hl(e,g.direction==Zo!=!(h%2)?i+1:i,r,g.inner,g.from,g.to,s),l=g.to),d=g.to}else{if(d==a||(t?fl[d]!=o:fl[d]==o))break;d++}u?ul(e,l,d,i+1,r,u,s):l<d&&s.push(new ll(l,d,h)),l=d}else for(let l=a,c=n.length;l>t;){let a=!0,f=!1;if(!c||l>n[c-1].to){let e=fl[l-1];e!=o&&(a=!1,f=16==e)}let u=a||1!=o?null:[],h=a?i:i+1,d=l;e:for(;;)if(c&&d==n[c-1].to){if(f)break e;let g=n[--c];if(!a)for(let e=g.from,a=c;;){if(e==t)break e;if(!a||n[a-1].to!=e){if(fl[e-1]==o)break e;break}e=n[--a].from}u?u.push(g):(g.to<l&&s.push(new ll(g.to,l,h)),hl(e,g.direction==Zo!=!(h%2)?i+1:i,r,g.inner,g.from,g.to,s),l=g.from),d=g.from}else{if(d==t||(a?fl[d-1]!=o:fl[d-1]==o))break;d--}u?ul(e,d,l,i+1,r,u,s):d<l&&s.push(new ll(d,l,h)),l=d}}function hl(e,t,a,i,r,n,s){let o=t%2?2:1;!function(e,t,a,i,r){for(let n=0;n<=i.length;n++){let s=n?i[n-1].to:t,o=n<i.length?i[n].from:a,l=n?256:r;for(let t=s,a=l,i=l;t<o;t++){let r=sl(e.charCodeAt(t));512==r?r=a:8==r&&4==i&&(r=16),fl[t]=4==r?2:r,7&r&&(i=r),a=r}for(let e=s,t=l,i=l;e<o;e++){let r=fl[e];if(128==r)e<o-1&&t==fl[e+1]&&24&t?r=fl[e]=t:fl[e]=256;else if(64==r){let r=e+1;for(;r<o&&64==fl[r];)r++;let n=e&&8==t||r<a&&8==fl[r]?1==i?1:8:256;for(let t=e;t<r;t++)fl[t]=n;e=r-1}else 8==r&&1==i&&(fl[e]=1);t=r,7&r&&(i=r)}}}(e,r,n,i,o),function(e,t,a,i,r){let n=1==r?2:1;for(let s=0,o=0,l=0;s<=i.length;s++){let c=s?i[s-1].to:t,f=s<i.length?i[s].from:a;for(let t,a,i,s=c;s<f;s++)if(a=rl[t=e.charCodeAt(s)])if(a<0){for(let e=o-3;e>=0;e-=3)if(nl[e+1]==-a){let t=nl[e+2],a=2&t?r:4&t?1&t?n:r:0;a&&(fl[s]=fl[nl[e]]=a),o=e;break}}else{if(189==nl.length)break;nl[o++]=s,nl[o++]=t,nl[o++]=l}else if(2==(i=fl[s])||1==i){let e=i==r;l=e?0:1;for(let t=o-3;t>=0;t-=3){let a=nl[t+2];if(2&a)break;if(e)nl[t+2]|=2;else{if(4&a)break;nl[t+2]|=4}}}}}(e,r,n,i,o),function(e,t,a,i){for(let r=0,n=i;r<=a.length;r++){let s=r?a[r-1].to:e,o=r<a.length?a[r].from:t;for(let l=s;l<o;){let s=fl[l];if(256==s){let s=l+1;for(;;)if(s==o){if(r==a.length)break;s=a[r++].to,o=r<a.length?a[r].from:t}else{if(256!=fl[s])break;s++}let c=1==n,f=c==(1==(s<t?fl[s]:i))?c?1:2:i;for(let t=s,i=r,n=i?a[i-1].to:e;t>l;)t==n&&(t=a[--i].from,n=i?a[i-1].to:e),fl[--t]=f;l=s}else n=s,l++}}}(r,n,i,o),ul(e,r,n,t,a,i,s)}function dl(e){return[new ll(0,e,0)]}let gl="";function pl(e,t,a,i,r){var n;let s=i.head-e.from,o=ll.find(t,s,null!==(n=i.bidiLevel)&&void 0!==n?n:-1,i.assoc),l=t[o],c=l.side(r,a);if(s==c){let e=o+=r?1:-1;if(e<0||e>=t.length)return null;l=t[o=e],s=l.side(!r,a),c=l.side(r,a)}let f=rn(e.text,s,l.forward(r,a));(f<l.from||f>l.to)&&(f=c),gl=e.text.slice(Math.min(s,f),Math.max(s,f));let u=o==(r?t.length-1:0)?null:t[o+(r?1:-1)];return u&&f==c&&u.level+(r?0:1)<l.level?On.cursor(u.side(!r,a)+e.from,u.forward(r,a)?1:-1,u.level):On.cursor(f+e.from,l.forward(r,a)?-1:1,l.level)}function ml(e,t,a){for(let i=t;i<a;i++){let t=sl(e.charCodeAt(i));if(1==t)return Zo;if(2==t||4==t)return el}return Zo}const yl=Mn.define(),vl=Mn.define(),bl=Mn.define(),wl=Mn.define(),Sl=Mn.define(),kl=Mn.define(),Ol=Mn.define(),xl=Mn.define({combine:e=>e.some((e=>e))}),Cl=Mn.define({combine:e=>e.some((e=>e))});class Ml{constructor(e,t="nearest",a="nearest",i=5,r=5,n=!1){this.range=e,this.y=t,this.x=a,this.yMargin=i,this.xMargin=r,this.isSnapshot=n}map(e){return e.empty?this:new Ml(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Ml(On.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Al=Zn.define({map:(e,t)=>e.map(t)});function Tl(e,t,a){let i=e.facet(wl);i.length?i[0](t):window.onerror?window.onerror(String(t),a,void 0,void 0,t):a?console.error(a+":",t):console.error(t)}const Pl=Mn.define({combine:e=>!e.length||e[0]});let Nl=0;const El=Mn.define();class Rl{constructor(e,t,a,i,r){this.id=e,this.create=t,this.domEventHandlers=a,this.domEventObservers=i,this.extension=r(this)}static define(e,t){const{eventHandlers:a,eventObservers:i,provide:r,decorations:n}=t||{};return new Rl(Nl++,e,a,i,(e=>{let t=[El.of(e)];return n&&t.push(Il.of((t=>{let a=t.plugin(e);return a?n(a):qo.none}))),r&&t.push(r(e)),t}))}static fromClass(e,t){return Rl.define((t=>new e(t)),t)}}class Dl{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Tl(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){Tl(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Tl(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Bl=Mn.define(),Ll=Mn.define(),Il=Mn.define(),Fl=Mn.define(),_l=Mn.define(),zl=Mn.define();function jl(e,t){let a=e.state.facet(zl);if(!a.length)return a;let i=a.map((t=>t instanceof Function?t(e):t)),r=[];return ms.spans(i,t.from,t.to,{point(){},span(e,a,i,n){let s=e-t.from,o=a-t.from,l=r;for(let e=i.length-1;e>=0;e--,n--){let a,r=i[e].spec.bidiIsolate;if(null==r&&(r=ml(t.text,s,o)),n>0&&l.length&&(a=l[l.length-1]).to==s&&a.direction==r)a.to=o,l=a.inner;else{let e={from:s,to:o,direction:r,inner:[]};l.push(e),l=e.inner}}}}),r}const Hl=Mn.define();function Vl(e){let t=0,a=0,i=0,r=0;for(let n of e.state.facet(Hl)){let s=n(e);s&&(null!=s.left&&(t=Math.max(t,s.left)),null!=s.right&&(a=Math.max(a,s.right)),null!=s.top&&(i=Math.max(i,s.top)),null!=s.bottom&&(r=Math.max(r,s.bottom)))}return{left:t,right:a,top:i,bottom:r}}const ql=Mn.define();class Wl{constructor(e,t,a,i){this.fromA=e,this.toA=t,this.fromB=a,this.toB=i}join(e){return new Wl(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,a=this;for(;t>0;t--){let i=e[t-1];if(!(i.fromA>a.toA)){if(i.toA<a.fromA)break;a=a.join(i),e.splice(t-1,1)}}return e.splice(t,0,a),e}static extendWithRanges(e,t){if(0==t.length)return e;let a=[];for(let i=0,r=0,n=0,s=0;;i++){let o=i==e.length?null:e[i],l=n-s,c=o?o.fromB:1e9;for(;r<t.length&&t[r]<c;){let e=t[r],i=t[r+1],n=Math.max(s,e),o=Math.min(c,i);if(n<=o&&new Wl(n+l,o+l,n,o).addToSet(a),i>c)break;r+=2}if(!o)return a;new Wl(o.fromA,o.toA,o.fromB,o.toB).addToSet(a),n=o.toA,s=o.toB}}}class Gl{constructor(e,t,a){this.view=e,this.state=t,this.transactions=a,this.flags=0,this.startState=e.state,this.changes=pn.empty(this.startState.doc.length);for(let e of a)this.changes=this.changes.compose(e.changes);let i=[];this.changes.iterChangedRanges(((e,t,a,r)=>i.push(new Wl(e,t,a,r)))),this.changedRanges=i}static create(e,t,a){return new Gl(e,t,a)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}class Ul extends co{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new zo],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Wl(0,0,0,e.state.doc.length)],0,null)}update(e){var t;let a=e.changedRanges;this.minWidth>0&&a.length&&(a.every((({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let a=!1;return t&&e.iterChangedRanges(((e,i)=>{e<t.to&&i>t.from&&(a=!0)})),a}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let r=i>-1?function(e,t,a){let i=Ql(e,a);if(!i)return null;let{node:r,from:n,to:s}=i,o=r.nodeValue;if(/[\n\r]/.test(o))return null;if(e.state.doc.sliceString(i.from,i.to)!=o)return null;let l=t.invertedDesc,c=new Wl(l.mapPos(n),l.mapPos(s),n,s),f=[];for(let t=r.parentNode;;t=t.parentNode){let a=co.get(t);if(a instanceof To)f.push({node:t,deco:a.mark});else{if(a instanceof zo||"DIV"==t.nodeName&&t.parentNode==e.contentDOM)return{range:c,text:r,marks:f,line:t};if(t==e.contentDOM)return null;f.push({node:t,deco:new Wo({inclusive:!0,attributes:_o(t),tagName:t.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:i}=this.hasComposition;a=new Wl(t,i,e.changes.mapPos(t,-1),e.changes.mapPos(i,1)).addToSet(a.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(Mo.ie||Mo.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let n=function(e,t,a){let i=new Xl;return ms.compare(e,t,a,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return a=Wl.extendWithRanges(a,n),!!(7&this.flags||0!=a.length)&&(this.updateInner(a,e.startState.doc.length,r),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,a){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,a);let{observer:i}=this.view;i.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=Mo.chrome||Mo.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||i.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let r=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.children)e instanceof jo&&e.widget instanceof $l&&r.push(e.dom);i.updateGaps(r)}updateChildren(e,t,a){let i=a?a.range.addToSet(e.slice()):e,r=this.childCursor(t);for(let e=i.length-1;;e--){let t=e>=0?i[e]:null;if(!t)break;let n,s,o,l,{fromA:c,toA:f,fromB:u,toB:h}=t;if(a&&a.range.fromB<h&&a.range.toB>u){let e=Ko.build(this.view.state.doc,u,a.range.fromB,this.decorations,this.dynamicDecorationMap),t=Ko.build(this.view.state.doc,a.range.toB,h,this.decorations,this.dynamicDecorationMap);s=e.breakAtStart,o=e.openStart,l=t.openEnd;let i=this.compositionView(a);t.breakAtStart?i.breakAfter=1:t.content.length&&i.merge(i.length,i.length,t.content[0],!1,t.openStart,0)&&(i.breakAfter=t.content[0].breakAfter,t.content.shift()),e.content.length&&i.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),n=e.content.concat(i).concat(t.content)}else({content:n,breakAtStart:s,openStart:o,openEnd:l}=Ko.build(this.view.state.doc,u,h,this.decorations,this.dynamicDecorationMap));let{i:d,off:g}=r.findPos(f,1),{i:p,off:m}=r.findPos(c,-1);ho(this,p,m,d,g,n,s,o,l)}a&&this.fixCompositionDOM(a)}compositionView(e){let t=new Ao(e.text.nodeValue);t.flags|=8;for(let{deco:a}of e.marks)t=new To(a,[t],t.length);let a=new zo;return a.append(t,0),a}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let a=co.get(e);a&&a!=t&&(a.dom=null),t.setDOM(e)},a=this.childPos(e.range.fromB,1),i=this.children[a.i];t(e.line,i);for(let r=e.marks.length-1;r>=-1;r--)a=i.childPos(a.off,1),i=i.children[a.i],t(r>=0?e.marks[r].node:e.text,i)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let a=this.view.root.activeElement,i=a==this.dom,r=!i&&Ws(this.dom,this.view.observer.selectionRange)&&!(a&&this.dom.contains(a));if(!(i||t||r))return;let n=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,o=this.moveToLine(this.domAtPos(s.anchor)),l=s.empty?o:this.moveToLine(this.domAtPos(s.head));if(Mo.gecko&&s.empty&&!this.hasComposition&&1==(c=o).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore((()=>o.node.insertBefore(e,o.node.childNodes[o.offset]||null))),o=l=new oo(e,0),n=!0}var c;let f=this.view.observer.selectionRange;!n&&f.focusNode&&(Us(o.node,o.offset,f.anchorNode,f.anchorOffset)&&Us(l.node,l.offset,f.focusNode,f.focusOffset)||this.suppressWidgetCursorChange(f,s))||(this.view.observer.ignore((()=>{Mo.android&&Mo.chrome&&this.dom.contains(f.focusNode)&&function(e,t){for(let a=e;a&&a!=t;a=a.assignedSlot||a.parentNode)if(1==a.nodeType&&"false"==a.contentEditable)return!0;return!1}(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=Vs(this.view.root);if(e)if(s.empty){if(Mo.gecko){let e=function(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}(o.node,o.offset);if(e&&3!=e){let t=Kl(o.node,o.offset,1==e?1:-1);t&&(o=new oo(t.node,t.offset))}}e.collapse(o.node,o.offset),null!=s.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=s.bidiLevel)}else if(e.extend){e.collapse(o.node,o.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();s.anchor>s.head&&([o,l]=[l,o]),t.setEnd(l.node,l.offset),t.setStart(o.node,o.offset),e.removeAllRanges(),e.addRange(t)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),a&&a.focus())})),this.view.observer.setSelectionRange(o,l)),this.impreciseAnchor=o.precise?null:new oo(f.anchorNode,f.anchorOffset),this.impreciseHead=l.precise?null:new oo(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Us(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,a=Vs(e.root),{anchorNode:i,anchorOffset:r}=e.observer.selectionRange;if(!(a&&t.empty&&t.assoc&&a.modify))return;let n=zo.find(this,t.head);if(!n)return;let s=n.posAtStart;if(t.head==s||t.head==s+n.length)return;let o=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!o||!l||o.bottom>l.top)return;let c=this.domAtPos(t.head+t.assoc);a.collapse(c.node,c.offset),a.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=t.from&&a.collapse(i,r)}moveToLine(e){let t,a=this.dom;if(e.node!=a)return e;for(let i=e.offset;!t&&i<a.childNodes.length;i++){let e=co.get(a.childNodes[i]);e instanceof zo&&(t=e.domAtPos(0))}for(let i=e.offset-1;!t&&i>=0;i--){let e=co.get(a.childNodes[i]);e instanceof zo&&(t=e.domAtPos(e.length))}return t?new oo(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=co.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let a=this.nearest(e);if(!a)throw new RangeError("Trying to find position for a DOM position outside of the document");return a.localPosFromDOM(e,t)+a.posAtStart}domAtPos(e){let{i:t,off:a}=this.childCursor().findPos(e,-1);for(;t<this.children.length-1;){let e=this.children[t];if(a<e.length||e instanceof zo)break;t++,a=0}return this.children[t].domAtPos(a)}coordsAt(e,t){let a=null,i=0;for(let r=this.length,n=this.children.length-1;n>=0;n--){let s=this.children[n],o=r-s.breakAfter,l=o-s.length;if(o<e)break;l<=e&&(l<e||s.covers(-1))&&(o>e||s.covers(1))&&(!a||s instanceof zo&&!(a instanceof zo&&t>=0))&&(a=s,i=l),r=l}return a?a.coordsAt(e-i,t):null}coordsForChar(e){let{i:t,off:a}=this.childPos(e,1),i=this.children[t];if(!(i instanceof zo))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(a,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}a=t}if(!(i instanceof Ao))return null;let r=rn(i.text,a);if(r==a)return null;let n=io(i.dom,a,r).getClientRects();for(let e=0;e<n.length;e++){let t=n[e];if(e==n.length-1||t.top<t.bottom&&t.left<t.right)return t}return null}measureVisibleLineHeights(e){let t=[],{from:a,to:i}=e,r=this.view.contentDOM.clientWidth,n=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,o=this.view.textDirection==Jo.LTR;for(let e=0,l=0;l<this.children.length;l++){let c=this.children[l],f=e+c.length;if(f>i)break;if(e>=a){let a=c.dom.getBoundingClientRect();if(t.push(a.height),n){let t=c.dom.lastChild,i=t?Gs(t):[];if(i.length){let t=i[i.length-1],n=o?t.right-a.left:a.right-t.left;n>s&&(s=n,this.minWidth=r,this.minWidthFrom=e,this.minWidthTo=f)}}}e=f+c.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Jo.RTL:Jo.LTR}measureTextSize(){for(let e of this.children)if(e instanceof zo){let t=e.measureTextSize();if(t)return t}let e,t,a,i=document.createElement("div");return i.className="cm-line",i.style.width="99999px",i.style.position="absolute",i.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(i);let r=Gs(i.firstChild)[0];e=i.getBoundingClientRect().height,t=r?r.width/27:7,a=r?r.height:e,i.remove()})),{lineHeight:e,charWidth:t,textHeight:a}}childCursor(e=this.length){let t=this.children.length;return t&&(e-=this.children[--t].length),new uo(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let a=0,i=0;;i++){let r=i==t.viewports.length?null:t.viewports[i],n=r?r.from-1:this.length;if(n>a){let i=(t.lineBlockAt(n).bottom-t.lineBlockAt(a).top)/this.view.scaleY;e.push(qo.replace({widget:new $l(i),block:!0,inclusive:!0,isBlockGap:!0}).range(a,n))}if(!r)break;a=r.to+1}return qo.set(e)}updateDeco(){let e=this.view.state.facet(Il).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e)),t=!1,a=this.view.state.facet(Fl).map(((e,a)=>{let i="function"==typeof e;return i&&(t=!0),i?e(this.view):e}));a.length&&(this.dynamicDecorationMap[e.length]=t,e.push(ms.join(a)));for(let t=e.length;t<e.length+3;t++)this.dynamicDecorationMap[t]=!1;return this.decorations=[...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco]}scrollIntoView(e){if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}let t,{range:a}=e,i=this.coordsAt(a.head,a.empty?a.assoc:a.head>a.anchor?-1:1);if(!i)return;!a.empty&&(t=this.coordsAt(a.anchor,a.anchor>a.head?-1:1))&&(i={left:Math.min(i.left,t.left),top:Math.min(i.top,t.top),right:Math.max(i.right,t.right),bottom:Math.max(i.bottom,t.bottom)});let r=Vl(this.view),n={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:s,offsetHeight:o}=this.view.scrollDOM;!function(e,t,a,i,r,n,s,o){let l=e.ownerDocument,c=l.defaultView||window;for(let f=e,u=!1;f&&!u;)if(1==f.nodeType){let e,h=f==l.body,d=1,g=1;if(h)e=Ys(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(u=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let t=f.getBoundingClientRect();({scaleX:d,scaleY:g}=Js(f,t)),e={left:t.left,right:t.left+f.clientWidth*d,top:t.top,bottom:t.top+f.clientHeight*g}}let p=0,m=0;if("nearest"==r)t.top<e.top?(m=-(e.top-t.top+s),a>0&&t.bottom>e.bottom+m&&(m=t.bottom-e.bottom+m+s)):t.bottom>e.bottom&&(m=t.bottom-e.bottom+s,a<0&&t.top-m<e.top&&(m=-(e.top+m-t.top+s)));else{let i=t.bottom-t.top,n=e.bottom-e.top;m=("center"==r&&i<=n?t.top+i/2-n/2:"start"==r||"center"==r&&a<0?t.top-s:t.bottom-n+s)-e.top}if("nearest"==i?t.left<e.left?(p=-(e.left-t.left+n),a>0&&t.right>e.right+p&&(p=t.right-e.right+p+n)):t.right>e.right&&(p=t.right-e.right+n,a<0&&t.left<e.left+p&&(p=-(e.left+p-t.left+n))):p=("center"==i?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==i==o?t.left-n:t.right-(e.right-e.left)+n)-e.left,p||m)if(h)c.scrollBy(p,m);else{let e=0,a=0;if(m){let e=f.scrollTop;f.scrollTop+=m/g,a=(f.scrollTop-e)*g}if(p){let t=f.scrollLeft;f.scrollLeft+=p/d,e=(f.scrollLeft-t)*d}t={left:t.left-e,top:t.top-a,right:t.right-e,bottom:t.bottom-a},e&&Math.abs(e-p)<1&&(i="nearest"),a&&Math.abs(a-m)<1&&(r="nearest")}if(h)break;f=f.assignedSlot||f.parentNode}else{if(11!=f.nodeType)break;f=f.host}}(this.view.scrollDOM,n,a.head<a.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,o),-o),this.view.textDirection==Jo.LTR)}}class $l extends Ho{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Ql(e,t){let a=e.observer.selectionRange,i=a.focusNode&&Kl(a.focusNode,a.focusOffset,0);if(!i)return null;let r=t-i.offset;return{from:r,to:r+i.node.nodeValue.length,node:i.node}}function Kl(e,t,a){if(a<=0)for(let a=e,i=t;;){if(3==a.nodeType)return{node:a,offset:i};if(!(1==a.nodeType&&i>0))break;a=a.childNodes[i-1],i=Ks(a)}if(a>=0)for(let i=e,r=t;;){if(3==i.nodeType)return{node:i,offset:r};if(!(1==i.nodeType&&r<i.childNodes.length&&a>=0))break;i=i.childNodes[r],r=0}return null}let Xl=class{constructor(){this.changes=[]}compareRange(e,t){Qo(e,t,this.changes)}comparePoint(e,t){Qo(e,t,this.changes)}};function Yl(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Jl(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function Zl(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function ec(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function tc(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function ac(e,t,a){let i,r,n,s,o,l,c,f,u=!1;for(let h=e.firstChild;h;h=h.nextSibling){let e=Gs(h);for(let d=0;d<e.length;d++){let g=e[d];r&&Zl(r,g)&&(g=ec(tc(g,r.bottom),r.top));let p=Yl(t,g),m=Jl(a,g);if(0==p&&0==m)return 3==h.nodeType?ic(h,t,a):ac(h,t,a);if(!i||s>m||s==m&&n>p){i=h,r=g,n=p,s=m;let o=m?a<g.top?-1:1:p?t<g.left?-1:1:0;u=!o||(o>0?d<e.length-1:d>0)}0==p?a>g.bottom&&(!c||c.bottom<g.bottom)?(o=h,c=g):a<g.top&&(!f||f.top>g.top)&&(l=h,f=g):c&&Zl(c,g)?c=tc(c,g.bottom):f&&Zl(f,g)&&(f=ec(f,g.top))}}if(c&&c.bottom>=a?(i=o,r=c):f&&f.top<=a&&(i=l,r=f),!i)return{node:e,offset:0};let h=Math.max(r.left,Math.min(r.right,t));return 3==i.nodeType?ic(i,h,a):u&&"false"!=i.contentEditable?ac(i,h,a):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,i)+(t>=(r.left+r.right)/2?1:0)}}function ic(e,t,a){let i=e.nodeValue.length,r=-1,n=1e9,s=0;for(let o=0;o<i;o++){let i=io(e,o,o+1).getClientRects();for(let l=0;l<i.length;l++){let c=i[l];if(c.top==c.bottom)continue;s||(s=t-c.left);let f=(c.top>a?c.top-a:a-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&f<n){let a=t>=(c.left+c.right)/2,i=a;if((Mo.chrome||Mo.gecko)&&io(e,o).getBoundingClientRect().left==c.right&&(i=!a),f<=0)return{node:e,offset:o+(i?1:0)};r=o+(i?1:0),n=f}}}return{node:e,offset:r>-1?r:s>0?e.nodeValue.length:0}}function rc(e,t,a,i=-1){var r,n;let s,o=e.contentDOM.getBoundingClientRect(),l=o.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:f,y:u}=t,h=u-l;if(h<0)return 0;if(h>c)return e.state.doc.length;for(let t=e.viewState.heightOracle.textHeight/2,r=!1;s=e.elementAtHeight(h),s.type!=Vo.Text;)for(;h=i>0?s.bottom+t:s.top-t,!(h>=0&&h<=c);){if(r)return a?null:0;r=!0,i=-i}u=l+h;let d=s.from;if(d<e.viewport.from)return 0==e.viewport.from?0:a?null:nc(e,o,s,f,u);if(d>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:a?null:nc(e,o,s,f,u);let g=e.dom.ownerDocument,p=e.root.elementFromPoint?e.root:g,m=p.elementFromPoint(f,u);m&&!e.contentDOM.contains(m)&&(m=null),m||(f=Math.max(o.left+1,Math.min(o.right-1,f)),m=p.elementFromPoint(f,u),m&&!e.contentDOM.contains(m)&&(m=null));let y,v=-1;if(m&&0!=(null===(r=e.docView.nearest(m))||void 0===r?void 0:r.isEditable))if(g.caretPositionFromPoint){let e=g.caretPositionFromPoint(f,u);e&&({offsetNode:y,offset:v}=e)}else if(g.caretRangeFromPoint){let t=g.caretRangeFromPoint(f,u);t&&(({startContainer:y,startOffset:v}=t),(!e.contentDOM.contains(y)||Mo.safari&&function(e,t,a){let i;if(3!=e.nodeType||t!=(i=e.nodeValue.length))return!1;for(let t=e.nextSibling;t;t=t.nextSibling)if(1!=t.nodeType||"BR"!=t.nodeName)return!1;return io(e,i-1,i).getBoundingClientRect().left>a}(y,v,f)||Mo.chrome&&function(e,t,a){if(0!=t)return!1;for(let t=e;;){let e=t.parentNode;if(!e||1!=e.nodeType||e.firstChild!=t)return!1;if(e.classList.contains("cm-line"))break;t=e}return a-(1==e.nodeType?e.getBoundingClientRect():io(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect()).left>5}(y,v,f))&&(y=void 0))}if(!y||!e.docView.dom.contains(y)){let t=zo.find(e.docView,d);if(!t)return h>s.top+s.height/2?s.to:s.from;({node:y,offset:v}=ac(t.dom,f,u))}let b=e.docView.nearest(y);if(!b)return null;if(b.isWidget&&1==(null===(n=b.dom)||void 0===n?void 0:n.nodeType)){let e=b.dom.getBoundingClientRect();return t.y<e.top||t.y<=e.bottom&&t.x<=(e.left+e.right)/2?b.posAtStart:b.posAtEnd}return b.localPosFromDOM(y,v)+b.posAtStart}function nc(e,t,a,i,r){let n=Math.round((i-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&a.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;n+=Math.floor((r-a.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(a.from,a.to);return a.from+Ps(s,n,e.state.tabSize)}function sc(e,t){let a=e.lineBlockAt(t);if(Array.isArray(a.type))for(let e of a.type)if(e.to>t||e.to==t&&(e.to==a.to||e.type==Vo.Text))return e;return a}function oc(e,t,a,i){let r=e.state.doc.lineAt(t.head),n=e.bidiSpans(r),s=e.textDirectionAt(r.from);for(let o=t,l=null;;){let t=pl(r,n,s,o,a),c=gl;if(!t){if(r.number==(a?e.state.doc.lines:1))return o;c="\n",r=e.state.doc.line(r.number+(a?1:-1)),n=e.bidiSpans(r),t=e.visualLineSide(r,!a)}if(l){if(!l(c))return o}else{if(!i)return t;l=i(c)}o=t}}function lc(e,t,a){for(;;){let i=0;for(let r of e)r.between(t-1,t+1,((e,r,n)=>{if(t>e&&t<r){let n=i||a||(t-e<r-t?-1:1);t=n<0?e:r,i=n}}));if(!i)return t}}function cc(e,t,a){let i=lc(e.state.facet(_l).map((t=>t(e))),a.from,t.head>a.from?-1:1);return i==a.from?a:On.cursor(i,i<a.from?1:-1)}class fc{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastEscPress=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Mo.safari&&e.contentDOM.addEventListener("input",(()=>null)),Mo.gecko&&function(e){Fc.has(e)||(Fc.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let a,i=t.target;i!=e.contentDOM;i=i.parentNode)if(!i||11==i.nodeType||(a=co.get(i))&&a.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let a=this.handlers[e];if(a){for(let e of a.observers)e(this.view,t);for(let e of a.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=hc(e),a=this.handlers,i=this.view.contentDOM;for(let e in t)if("scroll"!=e){let r=!t[e].handlers.length,n=a[e];n&&r!=!n.handlers.length&&(i.removeEventListener(e,this.handleEvent),n=null),n||i.addEventListener(e,this.handleEvent,{passive:r})}for(let e in a)"scroll"==e||t[e]||i.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()<this.lastEscPress+2e3)return!0;if(27!=e.keyCode&&pc.indexOf(e.keyCode)<0&&(this.view.inputState.lastEscPress=0),Mo.android&&Mo.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!Mo.ios||e.synthetic||e.altKey||e.metaKey||!((t=dc.find((t=>t.keyCode==e.keyCode)))&&!e.ctrlKey||gc.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,ro(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(Mo.safari&&!Mo.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function uc(e,t){return(a,i)=>{try{return t.call(e,i,a)}catch(e){Tl(a.state,e)}}}function hc(e){let t=Object.create(null);function a(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec;if(e&&e.domEventHandlers)for(let i in e.domEventHandlers){let r=e.domEventHandlers[i];r&&a(i).handlers.push(uc(t.value,r))}if(e&&e.domEventObservers)for(let i in e.domEventObservers){let r=e.domEventObservers[i];r&&a(i).observers.push(uc(t.value,r))}}for(let e in vc)a(e).handlers.push(vc[e]);for(let e in bc)a(e).observers.push(bc[e]);return t}const dc=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],gc="dthko",pc=[16,17,18,20,91,92,224,225];function mc(e){return.7*Math.max(0,e)+8}class yc{constructor(e,t,a,i){this.view=e,this.startEvent=t,this.style=a,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let a=e.parentNode;a&&a!=t.body;)if(1==a.nodeType){if(a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth)return a;a=a.assignedSlot||a.parentNode}else{if(11!=a.nodeType)break;a=a.host}return null}(e.contentDOM),this.atoms=e.state.facet(_l).map((t=>t(e)));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(fs.allowMultipleSelections)&&function(e,t){let a=e.state.facet(yl);return a.length?a[0](t):Mo.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:a}=e.state.selection;if(a.empty)return!1;let i=Vs(e.root);if(!i||0==i.rangeCount)return!0;let r=i.getRangeAt(0).getClientRects();for(let e=0;e<r.length;e++){let a=r[e];if(a.left<=t.clientX&&a.right>=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}(e,t)||1!=Ec(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,a,i;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(a=this.startEvent,i=e,Math.max(Math.abs(a.clientX-i.clientX),Math.abs(a.clientY-i.clientY))<10))return;this.select(this.lastEvent=e);let r=0,n=0,s=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},o=Vl(this.view);e.clientX-o.left<=s.left+6?r=-mc(s.left-e.clientX):e.clientX+o.right>=s.right-6&&(r=mc(e.clientX-s.right)),e.clientY-o.top<=s.top+6?n=-mc(s.top-e.clientY):e.clientY+o.bottom>=s.bottom-6&&(n=mc(e.clientY-s.bottom)),this.setScrollSpeed(r,n)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let a=0;a<e.ranges.length;a++){let i=e.ranges[a],r=null;if(i.empty){let e=lc(this.atoms,i.from,0);e!=i.from&&(r=On.cursor(e,-1))}else{let e=lc(this.atoms,i.from,-1),t=lc(this.atoms,i.to,1);e==i.from&&t==i.to||(r=On.range(i.from==i.anchor?e:t,i.from==i.head?e:t))}r&&(t||(t=e.ranges.slice()),t[a]=r)}return t?On.create(t,e.mainIndex):e}select(e){let{view:t}=this,a=this.skipAtoms(this.style.get(e,this.extend,this.multiple));!this.mustSelect&&a.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:a,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){this.style.update(e)&&setTimeout((()=>this.select(this.lastEvent)),20)}}const vc=Object.create(null),bc=Object.create(null),wc=Mo.ie&&Mo.ie_version<15||Mo.ios&&Mo.webkit_version<604;function Sc(e,t){let a,{state:i}=e,r=1,n=i.toText(t),s=n.lines==i.selection.ranges.length;if(null!=Dc&&i.selection.ranges.every((e=>e.empty))&&Dc==n.toString()){let e=-1;a=i.changeByRange((a=>{let o=i.doc.lineAt(a.from);if(o.from==e)return{range:a};e=o.from;let l=i.toText((s?n.line(r++).text:t)+i.lineBreak);return{changes:{from:o.from,insert:l},range:On.cursor(a.from+l.length)}}))}else a=s?i.changeByRange((e=>{let t=n.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:On.cursor(e.from+t.length)}})):i.replaceSelection(n);e.dispatch(a,{userEvent:"input.paste",scrollIntoView:!0})}function kc(e,t,a,i){if(1==i)return On.cursor(t,a);if(2==i)return function(e,t,a=1){let i=e.charCategorizer(t),r=e.doc.lineAt(t),n=t-r.from;if(0==r.length)return On.cursor(t);0==n?a=1:n==r.length&&(a=-1);let s=n,o=n;a<0?s=rn(r.text,n,!1):o=rn(r.text,n);let l=i(r.text.slice(s,o));for(;s>0;){let e=rn(r.text,s,!1);if(i(r.text.slice(e,s))!=l)break;s=e}for(;o<r.length;){let e=rn(r.text,o);if(i(r.text.slice(o,e))!=l)break;o=e}return On.range(s+r.from,o+r.from)}(e.state,t,a);{let a=zo.find(e.docView,t),i=e.state.doc.lineAt(a?a.posAtEnd:t),r=a?a.posAtStart:i.from,n=a?a.posAtEnd:i.to;return n<e.state.doc.length&&n==i.to&&n++,On.range(r,n)}}bc.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},vc.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),bc.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},bc.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},vc.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let a=null;for(let i of e.state.facet(bl))if(a=i(e,t),a)break;if(a||0!=t.button||(a=function(e,t){let a=Mc(e,t),i=Ec(t),r=e.state.selection;return{update(e){e.docChanged&&(a.pos=e.changes.mapPos(a.pos),r=r.map(e.changes))},get(t,n,s){let o,l=Mc(e,t),c=kc(e,l.pos,l.bias,i);if(a.pos!=l.pos&&!n){let t=kc(e,a.pos,a.bias,i),r=Math.min(t.from,c.from),n=Math.max(t.to,c.to);c=r<c.from?On.range(r,n):On.range(n,r)}return n?r.replaceRange(r.main.extend(c.from,c.to)):s&&1==i&&r.ranges.length>1&&(o=function(e,t){for(let a=0;a<e.ranges.length;a++){let{from:i,to:r}=e.ranges[a];if(i<=t&&r>=t)return On.create(e.ranges.slice(0,a).concat(e.ranges.slice(a+1)),e.mainIndex==a?0:e.mainIndex-(e.mainIndex>a?1:0))}return null}(r,l.pos))?o:s?r.addRange(c):On.create([c])}}}(e,t)),a){let i=!e.hasFocus;e.inputState.startMouseSelection(new yc(e,t,a,i)),i&&e.observer.ignore((()=>ao(e.contentDOM)));let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}return!1};let Oc=(e,t)=>e>=t.top&&e<=t.bottom,xc=(e,t,a)=>Oc(t,a)&&e>=a.left&&e<=a.right;function Cc(e,t,a,i){let r=zo.find(e.docView,t);if(!r)return 1;let n=t-r.posAtStart;if(0==n)return 1;if(n==r.length)return-1;let s=r.coordsAt(n,-1);if(s&&xc(a,i,s))return-1;let o=r.coordsAt(n,1);return o&&xc(a,i,o)?1:s&&Oc(i,s)?-1:1}function Mc(e,t){let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:a,bias:Cc(e,a,t.clientX,t.clientY)}}const Ac=Mo.ie&&Mo.ie_version<=11;let Tc=null,Pc=0,Nc=0;function Ec(e){if(!Ac)return e.detail;let t=Tc,a=Nc;return Tc=e,Nc=Date.now(),Pc=!t||a>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Pc+1)%3:1}function Rc(e,t,a,i){if(!a)return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:n}=e.inputState,s=i&&n&&function(e,t){let a=e.state.facet(vl);return a.length?a[0](t):Mo.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:n.from,to:n.to}:null,o={from:r,insert:a},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}vc.dragstart=(e,t)=>{let{selection:{main:a}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let e=i.posAtStart,t=e+i.length;(e>=a.to||t<=a.from)&&(a=On.range(e,t))}}let{inputState:i}=e;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=a,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(a.from,a.to)),t.dataTransfer.effectAllowed="copyMove"),!1},vc.dragend=e=>(e.inputState.draggedContent=null,!1),vc.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let a=t.dataTransfer.files;if(a&&a.length){let i=Array(a.length),r=0,n=()=>{++r==a.length&&Rc(e,t,i.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e<a.length;e++){let t=new FileReader;t.onerror=n,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(i[e]=t.result),n()},t.readAsText(a[e])}return!0}{let a=t.dataTransfer.getData("Text");if(a)return Rc(e,t,a,!0),!0}return!1},vc.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let a=wc?null:t.clipboardData;return a?(Sc(e,a.getData("text/plain")||a.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let a=t.appendChild(document.createElement("textarea"));a.style.cssText="position: fixed; left: -10000px; top: 10px",a.focus(),setTimeout((()=>{e.focus(),a.remove(),Sc(e,a.value)}),50)}(e),!1)};let Dc=null;vc.copy=vc.cut=(e,t)=>{let{text:a,ranges:i,linewise:r}=function(e){let t=[],a=[],i=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),a.push(i));if(!t.length){let r=-1;for(let{from:i}of e.selection.ranges){let n=e.doc.lineAt(i);n.number>r&&(t.push(n.text),a.push({from:n.from,to:Math.min(e.doc.length,n.to+1)})),r=n.number}i=!0}return{text:t.join(e.lineBreak),ranges:a,linewise:i}}(e.state);if(!a&&!r)return!1;Dc=r?a:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let n=wc?null:t.clipboardData;return n?(n.clearData(),n.setData("text/plain",a),!0):(function(e,t){let a=e.dom.parentNode;if(!a)return;let i=a.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout((()=>{i.remove(),e.focus()}),50)}(e,a),!1)};const Bc=Xn.define();function Lc(e,t){let a=[];for(let i of e.facet(Ol)){let r=i(e,t);r&&a.push(r)}return a?e.update({effects:a,annotations:Bc.of(!0)}):null}function Ic(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let a=Lc(e.state,t);a?e.dispatch(a):e.update([])}}),10)}bc.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Ic(e)},bc.blur=e=>{e.observer.clearSelectionRange(),Ic(e)},bc.compositionstart=bc.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},bc.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Mo.chrome&&Mo.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},bc.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},vc.beforeinput=(e,t)=>{var a;let i;if(Mo.chrome&&Mo.android&&(i=dc.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(i.key,i.keyCode),"Backspace"==i.key||"Delete"==i.key)){let t=(null===(a=window.visualViewport)||void 0===a?void 0:a.height)||0;setTimeout((()=>{var a;((null===(a=window.visualViewport)||void 0===a?void 0:a.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const Fc=new Set,_c=["pre-wrap","normal","pre-line","break-spaces"];class zc{constructor(e){this.lineWrapping=e,this.doc=qr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let a=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(a+=Math.max(0,Math.ceil((t-e-a*this.lineLength*.5)/this.lineLength))),this.lineHeight*a}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return _c.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let a=0;a<e.length;a++){let i=e[a];i<0?a++:this.heightSamples[Math.floor(10*i)]||(t=!0,this.heightSamples[Math.floor(10*i)]=!0)}return t}refresh(e,t,a,i,r,n){let s=_c.indexOf(e)>-1,o=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=t,this.charWidth=a,this.textHeight=i,this.lineLength=r,o){this.heightSamples={};for(let e=0;e<n.length;e++){let t=n[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return o}}class jc{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Hc{constructor(e,t,a,i,r){this.from=e,this.length=t,this.top=a,this.height=i,this._content=r}get type(){return"number"==typeof this._content?Vo.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Uo?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Hc(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Vc=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Vc||(Vc={}));const qc=.001;class Wc{constructor(e,t,a=2){this.length=e,this.height=t,this.flags=a}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>qc&&(e.heightChanged=!0),this.height=t)}replace(e,t,a){return Wc.of(a)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,a,i){let r=this,n=a.doc;for(let s=i.length-1;s>=0;s--){let{fromA:o,toA:l,fromB:c,toB:f}=i[s],u=r.lineAt(o,Vc.ByPosNoHeight,a.setDoc(t),0,0),h=u.to>=l?u:r.lineAt(l,Vc.ByPosNoHeight,a,0,0);for(f+=h.to-l,l=h.to;s>0&&u.from<=i[s-1].toA;)o=i[s-1].fromA,c=i[s-1].fromB,s--,o<u.from&&(u=r.lineAt(o,Vc.ByPosNoHeight,a,0,0));c+=u.from-o,o=u.from;let d=Xc.build(a.setDoc(n),e,c,f);r=r.replace(o,l,d)}return r.updateHeight(a,0)}static empty(){return new Uc(0,0)}static of(e){if(1==e.length)return e[0];let t=0,a=e.length,i=0,r=0;for(;;)if(t==a)if(i>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),a+=1+r.break,i-=r.size}else{if(!(r>2*i))break;{let t=e[a];t.break?e.splice(a,1,t.left,null,t.right):e.splice(a,1,t.left,t.right),a+=2+t.break,r-=t.size}}else if(i<r){let a=e[t++];a&&(i+=a.size)}else{let t=e[--a];t&&(r+=t.size)}let n=0;return null==e[t-1]?(n=1,t--):null==e[t]&&(n=1,a++),new Qc(Wc.of(e.slice(0,t)),n,Wc.of(e.slice(a)))}}Wc.prototype.size=1;class Gc extends Wc{constructor(e,t,a){super(e,t),this.deco=a}blockAt(e,t,a,i){return new Hc(i,this.length,a,this.height,this.deco||0)}lineAt(e,t,a,i,r){return this.blockAt(0,a,i,r)}forEachLine(e,t,a,i,r,n){e<=r+this.length&&t>=r&&n(this.blockAt(0,a,i,r))}updateHeight(e,t=0,a=!1,i){return i&&i.from<=t&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Uc extends Gc{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,a,i){return new Hc(i,this.length,a,this.height,this.breaks)}replace(e,t,a){let i=a[0];return 1==a.length&&(i instanceof Uc||i instanceof $c&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof $c?i=new Uc(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Wc.of(a)}updateHeight(e,t=0,a=!1,i){return i&&i.from<=t&&i.more?this.setHeight(e,i.heights[i.index++]):(a||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class $c extends Wc{constructor(e){super(e,0)}heightMetrics(e,t){let a,i=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,n=r-i+1,s=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*n);a=t/n,this.length>n+1&&(s=(this.height-t)/(this.length-n-1))}else a=this.height/n;return{firstLine:i,lastLine:r,perLine:a,perChar:s}}blockAt(e,t,a,i){let{firstLine:r,lastLine:n,perLine:s,perChar:o}=this.heightMetrics(t,i);if(t.lineWrapping){let r=i+Math.round(Math.max(0,Math.min(1,(e-a)/this.height))*this.length),n=t.doc.lineAt(r),l=s+n.length*o,c=Math.max(a,e-l/2);return new Hc(n.from,n.length,c,l,0)}{let i=Math.max(0,Math.min(n-r,Math.floor((e-a)/s))),{from:o,length:l}=t.doc.line(r+i);return new Hc(o,l,a+s*i,s,0)}}lineAt(e,t,a,i,r){if(t==Vc.ByHeight)return this.blockAt(e,a,i,r);if(t==Vc.ByPosNoHeight){let{from:t,to:i}=a.doc.lineAt(e);return new Hc(t,i-t,0,0,0)}let{firstLine:n,perLine:s,perChar:o}=this.heightMetrics(a,r),l=a.doc.lineAt(e),c=s+l.length*o,f=l.number-n,u=i+s*f+o*(l.from-r-f);return new Hc(l.from,l.length,Math.max(i,Math.min(u,i+this.height-c)),c,0)}forEachLine(e,t,a,i,r,n){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:s,perLine:o,perChar:l}=this.heightMetrics(a,r);for(let c=e,f=i;c<=t;){let t=a.doc.lineAt(c);if(c==e){let a=t.number-s;f+=o*a+l*(e-r-a)}let i=o+l*t.length;n(new Hc(t.from,t.length,f,i,0)),f+=i,c=t.to+1}}replace(e,t,a){let i=this.length-t;if(i>0){let e=a[a.length-1];e instanceof $c?a[a.length-1]=new $c(e.length+i):a.push(null,new $c(i-1))}if(e>0){let t=a[0];t instanceof $c?a[0]=new $c(e+t.length):a.unshift(new $c(e-1),null)}return Wc.of(a)}decomposeLeft(e,t){t.push(new $c(e-1),null)}decomposeRight(e,t){t.push(null,new $c(this.length-e-1))}updateHeight(e,t=0,a=!1,i){let r=t+this.length;if(i&&i.from<=t+this.length&&i.more){let a=[],n=Math.max(t,i.from),s=-1;for(i.from>t&&a.push(new $c(i.from-t-1).updateHeight(e,t));n<=r&&i.more;){let t=e.doc.lineAt(n).length;a.length&&a.push(null);let r=i.heights[i.index++];-1==s?s=r:Math.abs(r-s)>=qc&&(s=-2);let o=new Uc(t,r);o.outdated=!1,a.push(o),n+=t+1}n<=r&&a.push(null,new $c(r-n).updateHeight(e,n));let o=Wc.of(a);return(s<0||Math.abs(o.height-this.height)>=qc||Math.abs(s-this.heightMetrics(e,t).perLine)>=qc)&&(e.heightChanged=!0),o}return(a||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Qc extends Wc{constructor(e,t,a){super(e.length+t+a.length,e.height+a.height,t|(e.outdated||a.outdated?2:0)),this.left=e,this.right=a,this.size=e.size+a.size}get break(){return 1&this.flags}blockAt(e,t,a,i){let r=a+this.left.height;return e<r?this.left.blockAt(e,t,a,i):this.right.blockAt(e,t,r,i+this.left.length+this.break)}lineAt(e,t,a,i,r){let n=i+this.left.height,s=r+this.left.length+this.break,o=t==Vc.ByHeight?e<n:e<s,l=o?this.left.lineAt(e,t,a,i,r):this.right.lineAt(e,t,a,n,s);if(this.break||(o?l.to<s:l.from>s))return l;let c=t==Vc.ByPosNoHeight?Vc.ByPosNoHeight:Vc.ByPos;return o?l.join(this.right.lineAt(s,c,a,n,s)):this.left.lineAt(s,c,a,i,r).join(l)}forEachLine(e,t,a,i,r,n){let s=i+this.left.height,o=r+this.left.length+this.break;if(this.break)e<o&&this.left.forEachLine(e,t,a,i,r,n),t>=o&&this.right.forEachLine(e,t,a,s,o,n);else{let l=this.lineAt(o,Vc.ByPos,a,i,r);e<l.from&&this.left.forEachLine(e,l.from-1,a,i,r,n),l.to>=e&&l.from<=t&&n(l),t>l.to&&this.right.forEachLine(l.to+1,t,a,s,o,n)}}replace(e,t,a){let i=this.left.length+this.break;if(t<i)return this.balanced(this.left.replace(e,t,a),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,t-i,a));let r=[];e>0&&this.decomposeLeft(e,r);let n=r.length;for(let e of a)r.push(e);if(e>0&&Kc(r,n-1),t<this.length){let e=r.length;this.decomposeRight(t,r),Kc(r,e)}return Wc.of(r)}decomposeLeft(e,t){let a=this.left.length;if(e<=a)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(a++,e>=a&&t.push(null)),e>a&&this.right.decomposeLeft(e-a,t)}decomposeRight(e,t){let a=this.left.length,i=a+this.break;if(e>=i)return this.right.decomposeRight(e-i,t);e<a&&this.left.decomposeRight(e,t),this.break&&e<i&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Wc.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,a=!1,i){let{left:r,right:n}=this,s=t+r.length+this.break,o=null;return i&&i.from<=t+r.length&&i.more?o=r=r.updateHeight(e,t,a,i):r.updateHeight(e,t,a),i&&i.from<=s+n.length&&i.more?o=n=n.updateHeight(e,s,a,i):n.updateHeight(e,s,a),o?this.balanced(r,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Kc(e,t){let a,i;null==e[t]&&(a=e[t-1])instanceof $c&&(i=e[t+1])instanceof $c&&e.splice(t-1,3,new $c(a.length+1+i.length))}class Xc{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),a=this.nodes[this.nodes.length-1];a instanceof Uc?a.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Uc(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,a){if(e<t||a.heightRelevant){let i=a.widget?a.widget.estimatedHeight:0,r=a.widget?a.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let n=t-e;a.block?this.addBlock(new Gc(n,i,a)):(n||r||i>=5)&&this.addLineDeco(i,r,n)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Uc(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let a=new $c(t-e);return this.oracle.doc.lineAt(e).to==t&&(a.flags|=4),a}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Uc)return e;let t=new Uc(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,a){let i=this.ensureLine();i.length+=a,i.collapsed+=a,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=t,this.writtenTo=this.pos=this.pos+a}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Uc||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Uc(0,-1));let a=e;for(let e of this.nodes)e instanceof Uc&&e.updateHeight(this.oracle,a),a+=e?e.length:1;return this.nodes}static build(e,t,a,i){let r=new Xc(a,e);return ms.spans(t,a,i,r,0),r.finish(a)}}class Yc{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,a,i){(e<t||a&&a.heightRelevant||i&&i.heightRelevant)&&Qo(e,t,this.changes,5)}}function Jc(e,t){let a=e.getBoundingClientRect(),i=e.ownerDocument,r=i.defaultView||window,n=Math.max(0,a.left),s=Math.min(r.innerWidth,a.right),o=Math.max(0,a.top),l=Math.min(r.innerHeight,a.bottom);for(let t=e.parentNode;t&&t!=i.body;)if(1==t.nodeType){let a=t,i=window.getComputedStyle(a);if((a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth)&&"visible"!=i.overflow){let i=a.getBoundingClientRect();n=Math.max(n,i.left),s=Math.min(s,i.right),o=Math.max(o,i.top),l=t==e.parentNode?i.bottom:Math.min(l,i.bottom)}t="absolute"==i.position||"fixed"==i.position?a.offsetParent:a.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:n-a.left,right:Math.max(n,s)-a.left,top:o-(a.top+t),bottom:Math.max(o,l)-(a.top+t)}}function Zc(e,t){let a=e.getBoundingClientRect();return{left:0,right:a.right-a.left,top:t,bottom:a.bottom-(a.top+t)}}class ef{constructor(e,t,a){this.from=e,this.to=t,this.size=a}static same(e,t){if(e.length!=t.length)return!1;for(let a=0;a<e.length;a++){let i=e[a],r=t[a];if(i.from!=r.from||i.to!=r.to||i.size!=r.size)return!1}return!0}draw(e,t){return qo.replace({widget:new tf(this.size*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class tf extends Ho{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class af{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!0,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=lf,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Jo.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet(Ll).some((e=>"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new zc(t),this.stateDeco=e.facet(Il).filter((e=>"function"!=typeof e)),this.heightMap=Wc.empty().applyChanges(this.stateDeco,qr.empty,this.heightOracle.setDoc(e.doc),[new Wl(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=qo.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let a=0;a<=1;a++){let i=a?t.head:t.anchor;if(!e.some((({from:e,to:t})=>i>=e&&i<=t))){let{from:t,to:a}=this.lineBlockAt(i);e.push(new rf(t,a))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?lf:new cf(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:ff(e,this.scaler))}))}update(e,t=null){this.state=e.state;let a=this.stateDeco;this.stateDeco=this.state.facet(Il).filter((e=>"function"!=typeof e));let i=e.changedRanges,r=Wl.extendWithRanges(i,function(e,t,a){let i=new Yc;return ms.compare(e,t,a,i,0),i.changes}(a,this.stateDeco,e?e.changes:pn.empty(this.state.doc.length))),n=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=n&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let o=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<o.from||t.range.head>o.to)||!this.viewportIsAppropriate(o))&&(o=this.getViewport(0,t));let l=!e.changes.empty||2&e.flags||o.from!=this.viewport.from||o.to!=this.viewport.to;this.viewport=o,this.updateForViewport(),l&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Cl)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,a=window.getComputedStyle(t),i=this.heightOracle,r=a.whiteSpace;this.defaultTextDirection="rtl"==a.direction?Jo.RTL:Jo.LTR;let n=this.heightOracle.mustRefreshForWrapping(r),s=t.getBoundingClientRect(),o=n||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let l=0,c=0;if(s.width&&s.height){let{scaleX:e,scaleY:a}=Js(t,s);this.scaleX==e&&this.scaleY==a||(this.scaleX=e,this.scaleY=a,l|=8,n=o=!0)}let f=(parseInt(a.paddingTop)||0)*this.scaleY,u=(parseInt(a.paddingBottom)||0)*this.scaleY;this.paddingTop==f&&this.paddingBottom==u||(this.paddingTop=f,this.paddingBottom=u,l|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(o=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=8);let h=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=so(e.scrollDOM);let d=(this.printing?Zc:Jc)(t,this.paddingTop),g=d.top-this.pixelViewport.top,p=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(o=!0)),!this.inView&&!this.scrollTarget)return 0;let y=s.width;if(this.contentDOMWidth==y&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,l|=8),o){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(n=!0),n||i.lineWrapping&&Math.abs(y-this.contentDOMWidth)>i.charWidth){let{lineHeight:a,charWidth:s,textHeight:o}=e.docView.measureTextSize();n=a>0&&i.refresh(r,a,s,o,y/s,t),n&&(e.docView.minWidth=0,l|=8)}g>0&&p>0?c=Math.max(g,p):g<0&&p<0&&(c=Math.min(g,p)),i.heightChanged=!1;for(let a of this.viewports){let r=a.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(a);this.heightMap=(n?Wc.empty().applyChanges(this.stateDeco,qr.empty,this.heightOracle,[new Wl(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,n,new jc(a.from,r))}i.heightChanged&&(l|=2)}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(2&l||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(n?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let a=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,r=this.heightOracle,{visibleTop:n,visibleBottom:s}=this,o=new rf(i.lineAt(n-1e3*a,Vc.ByHeight,r,0,0).from,i.lineAt(s+1e3*(1-a),Vc.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(e<o.from||e>o.to){let a,n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),s=i.lineAt(e,Vc.ByPos,r,0,0);a="center"==t.y?(s.top+s.bottom)/2-n/2:"start"==t.y||"nearest"==t.y&&e<o.from?s.top:s.bottom-n,o=new rf(i.lineAt(a-500,Vc.ByHeight,r,0,0).from,i.lineAt(a+n+500,Vc.ByHeight,r,0,0).to)}}return o}mapViewport(e,t){let a=t.mapPos(e.from,-1),i=t.mapPos(e.to,1);return new rf(this.heightMap.lineAt(a,Vc.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,Vc.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},a=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,Vc.ByPos,this.heightOracle,0,0),{bottom:r}=this.heightMap.lineAt(t,Vc.ByPos,this.heightOracle,0,0),{visibleTop:n,visibleBottom:s}=this;return(0==e||i<=n-Math.max(10,Math.min(-a,250)))&&(t==this.state.doc.length||r>=s+Math.max(10,Math.min(a,250)))&&i>n-2e3&&r<s+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let a=[];for(let i of e)t.touchesRange(i.from,i.to)||a.push(new ef(t.mapPos(i.from),t.mapPos(i.to),i.size));return a}ensureLineGaps(e,t){let a=this.heightOracle.lineWrapping,i=a?1e4:2e3,r=i>>1,n=i<<1;if(this.defaultTextDirection!=Jo.LTR&&!a)return[];let s=[],o=(i,n,l,c)=>{if(n-i<r)return;let f=this.state.selection.main,u=[f.from];f.empty||u.push(f.to);for(let e of u)if(e>i&&e<n)return o(i,e-10,l,c),void o(e+10,n,l,c);let h=function(e,t){for(let a of e)if(t(a))return a}(e,(e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-i)<r&&Math.abs(e.to-n)<r&&!u.some((t=>e.from<t&&e.to>t))));if(!h){if(n<l.to&&t&&a&&t.visibleRanges.some((e=>e.from<=n&&e.to>=n))){let e=t.moveToLineBoundary(On.cursor(n),!1,!0).head;e>i&&(n=e)}h=new ef(i,n,this.gapSize(l,i,n,c))}s.push(h)};for(let e of this.viewportLines){if(e.length<n)continue;let t=nf(e.from,e.to,this.stateDeco);if(t.total<n)continue;let r,s,l=this.scrollTarget?this.scrollTarget.range.head:null;if(a){let a,n,o=i/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=l){let i=of(t,l),r=((this.visibleBottom-this.visibleTop)/2+o)/e.height;a=i-r,n=i+r}else a=(this.visibleTop-e.top-o)/e.height,n=(this.visibleBottom-e.top+o)/e.height;r=sf(t,a),s=sf(t,n)}else{let e,a,n=t.total*this.heightOracle.charWidth,o=i*this.heightOracle.charWidth;if(null!=l){let i=of(t,l),r=((this.pixelViewport.right-this.pixelViewport.left)/2+o)/n;e=i-r,a=i+r}else e=(this.pixelViewport.left-o)/n,a=(this.pixelViewport.right+o)/n;r=sf(t,e),s=sf(t,a)}r>e.from&&o(e.from,r,e,t),s<e.to&&o(s,e.to,e,t)}return s}gapSize(e,t,a,i){let r=of(i,a)-of(i,t);return this.heightOracle.lineWrapping?e.height*r:i.total*this.heightOracle.charWidth*r}updateLineGaps(e){ef.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=qo.set(e.map((e=>e.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];ms.spans(e,this.viewport.from,this.viewport.to,{span(e,a){t.push({from:e,to:a})},point(){}},20);let a=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,a)=>e.from!=t[a].from||e.to!=t[a].to));return this.visibleRanges=t,a?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||ff(this.heightMap.lineAt(e,Vc.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return ff(this.heightMap.lineAt(this.scaler.fromDOM(e),Vc.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ff(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class rf{constructor(e,t){this.from=e,this.to=t}}function nf(e,t,a){let i=[],r=e,n=0;return ms.spans(a,e,t,{span(){},point(e,t){e>r&&(i.push({from:r,to:e}),n+=e-r),r=t}},20),r<t&&(i.push({from:r,to:t}),n+=t-r),{total:n,ranges:i}}function sf({total:e,ranges:t},a){if(a<=0)return t[0].from;if(a>=1)return t[t.length-1].to;let i=Math.floor(e*a);for(let e=0;;e++){let{from:a,to:r}=t[e],n=r-a;if(i<=n)return a+i;i-=n}}function of(e,t){let a=0;for(let{from:i,to:r}of e.ranges){if(t<=r){a+=t-i;break}a+=r-i}return a/e.total}const lf={toDOM:e=>e,fromDOM:e=>e,scale:1};class cf{constructor(e,t,a){let i=0,r=0,n=0;this.viewports=a.map((({from:a,to:r})=>{let n=t.lineAt(a,Vc.ByPos,e,0,0).top,s=t.lineAt(r,Vc.ByPos,e,0,0).bottom;return i+=s-n,{from:a,to:r,top:n,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-i)/(t.height-i);for(let e of this.viewports)e.domTop=n+(e.top-r)*this.scale,n=e.domBottom=e.domTop+(e.bottom-e.top),r=e.bottom}toDOM(e){for(let t=0,a=0,i=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return i+(e-a)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);a=r.bottom,i=r.domBottom}}fromDOM(e){for(let t=0,a=0,i=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return a+(e-i)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);a=r.bottom,i=r.domBottom}}}function ff(e,t){if(1==t.scale)return e;let a=t.toDOM(e.top),i=t.toDOM(e.bottom);return new Hc(e.from,e.length,a,i-a,Array.isArray(e._content)?e._content.map((e=>ff(e,t))):e._content)}const uf=Mn.define({combine:e=>e.join(" ")}),hf=Mn.define({combine:e=>e.indexOf(!0)>-1}),df=Ds.newName(),gf=Ds.newName(),pf=Ds.newName(),mf={"&light":"."+gf,"&dark":"."+pf};function yf(e,t,a){return new Ds(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!a||!a[t])throw new RangeError(`Unsupported selector: ${t}`);return a[t]})):e+" "+t})}const vf=yf("."+df,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},mf),bf="";class wf{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(fs.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=bf}readRange(e,t){if(!e)return this;let a=e.parentNode;for(let i=e;;){this.findPointBefore(a,i);let e=this.text.length;this.readNode(i);let r=i.nextSibling;if(r==t)break;let n=co.get(i),s=co.get(r);(n&&s?n.breakAfter:(n?n.breakAfter:kf(i))||kf(r)&&("BR"!=i.nodeName||i.cmIgnore)&&this.text.length>e)&&this.lineBreak(),i=r}return this.findPointBefore(a,t),this}readTextNode(e){let t=e.nodeValue;for(let a of this.points)a.node==e&&(a.pos=this.text.length+Math.min(a.offset,t.length));for(let a=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let r,n=-1,s=1;if(this.lineSeparator?(n=t.indexOf(this.lineSeparator,a),s=this.lineSeparator.length):(r=i.exec(t))&&(n=r.index,s=r[0].length),this.append(t.slice(a,n<0?t.length:n)),n<0)break;if(this.lineBreak(),s>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=s-1);a=n+s}}readNode(e){if(e.cmIgnore)return;let t=co.get(e),a=t&&t.overrideDOMText;if(null!=a){this.findPointInside(e,a.length);for(let e=a.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let a of this.points)a.node==e&&e.childNodes[a.offset]==t&&(a.pos=this.text.length)}findPointInside(e,t){for(let a of this.points)(3==e.nodeType?a.node==e:e.contains(a.node))&&(a.pos=this.text.length+(Sf(e,a.node,a.offset)?t:0))}}function Sf(e,t,a){for(;;){if(!t||a<Ks(t))return!1;if(t==e)return!0;a=$s(t)+1,t=t.parentNode}}function kf(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}class Of{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class xf{constructor(e,t,a,i){this.typeOver=i,this.bounds=null,this.text="";let{impreciseHead:r,impreciseAnchor:n}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,a,0))){let t=r||n?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:a,anchorOffset:i,focusNode:r,focusOffset:n}=e.observer.selectionRange;return a&&(t.push(new Of(a,i)),r==a&&n==i||t.push(new Of(r,n))),t}(e),a=new wf(t,e.state);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=function(e,t){if(0==e.length)return null;let a=e[0].pos,i=2==e.length?e[1].pos:a;return a>-1&&i>-1?On.single(a+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,a=r&&r.node==t.focusNode&&r.offset==t.focusOffset||!qs(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=n&&n.node==t.anchorNode&&n.offset==t.anchorOffset||!qs(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),s=e.viewport;if((Mo.ios||Mo.chrome)&&e.state.selection.main.empty&&a!=i&&(s.from>0||s.to<e.state.doc.length)){let t=Math.min(a,i),r=Math.max(a,i),n=s.from-t,o=s.to-r;0!=n&&1!=n&&0!=t||0!=o&&-1!=o&&r!=e.state.doc.length||(a=0,i=e.state.doc.length)}this.newSel=On.single(i,a)}}}function Cf(e,t){let a,{newSel:i}=t,r=e.state.selection.main,n=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:s}=t.bounds,o=r.from,l=null;(8===n||Mo.android&&t.text.length<s-i)&&(o=r.to,l="end");let c=function(e,t,a,i){let r=Math.min(e.length,t.length),n=0;for(;n<r&&e.charCodeAt(n)==t.charCodeAt(n);)n++;if(n==r&&e.length==t.length)return null;let s=e.length,o=t.length;for(;s>0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;return"end"==i&&(a-=s+Math.max(0,n-Math.min(s,o))-n),s<n&&e.length<t.length?(n-=a<=n&&a>=s?n-a:0,o=n+(o-s),s=n):o<n&&(n-=a<=n&&a>=o?n-a:0,s=n+(s-o),o=n),{from:n,toA:s,toB:o}}(e.state.doc.sliceString(i,s,bf),t.text,o-i,l);c&&(Mo.chrome&&13==n&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==bf+bf&&c.toB--,a={from:i+c.from,to:i+c.toA,insert:qr.of(t.text.slice(c.from,c.toB).split(bf))})}else i&&(!e.hasFocus&&e.state.facet(Pl)||i.main.eq(r))&&(i=null);if(!a&&!i)return!1;if(!a&&t.typeOver&&!r.empty&&i&&i.main.empty?a={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,r.to)}:a&&a.from>=r.from&&a.to<=r.to&&(a.from!=r.from||a.to!=r.to)&&r.to-r.from-(a.to-a.from)<=4?a={from:r.from,to:r.to,insert:e.state.doc.slice(r.from,a.from).append(a.insert).append(e.state.doc.slice(a.to,r.to))}:(Mo.mac||Mo.android)&&a&&a.from==a.to&&a.from==r.head-1&&/^\. ?$/.test(a.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==a.insert.length&&(i=On.single(i.main.anchor-1,i.main.head-1)),a={from:r.from,to:r.to,insert:qr.of([" "])}):Mo.chrome&&a&&a.from==a.to&&a.from==r.head&&"\n "==a.insert.toString()&&e.lineWrapping&&(i&&(i=On.single(i.main.anchor-1,i.main.head-1)),a={from:r.from,to:r.to,insert:qr.of([" "])}),a){if(Mo.ios&&e.inputState.flushIOSKey())return!0;if(Mo.android&&(a.from==r.from&&a.to==r.to&&1==a.insert.length&&2==a.insert.lines&&ro(e.contentDOM,"Enter",13)||(a.from==r.from-1&&a.to==r.to&&0==a.insert.length||8==n&&a.insert.length<a.to-a.from&&a.to>r.head)&&ro(e.contentDOM,"Backspace",8)||a.from==r.from&&a.to==r.to+1&&0==a.insert.length&&ro(e.contentDOM,"Delete",46)))return!0;let t,s=a.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o=()=>t||(t=function(e,t,a){let i,r=e.state,n=r.selection.main;if(t.from>=n.from&&t.to<=n.to&&t.to-t.from>=(n.to-n.from)/3&&(!a||a.main.empty&&a.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let a=n.from<t.from?r.sliceDoc(n.from,t.from):"",s=n.to>t.to?r.sliceDoc(t.to,n.to):"";i=r.replaceSelection(e.state.toText(a+t.insert.sliceString(0,void 0,e.state.lineBreak)+s))}else{let s=r.changes(t),o=a&&a.main.to<=s.newLength?a.main:void 0;if(r.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=n.to&&t.to>=n.to-10){let l,c=e.state.sliceDoc(t.from,t.to),f=a&&Ql(e,a.main.head);if(f){let e=t.insert.length-(t.to-t.from);l={from:f.from,to:f.to-e}}else l=e.state.doc.lineAt(n.head);let u=n.to-t.to,h=n.to-n.from;i=r.changeByRange((a=>{if(a.from==n.from&&a.to==n.to)return{changes:s,range:o||a.map(s)};let i=a.to-u,f=i-c.length;if(a.to-a.from!=h||e.state.sliceDoc(f,i)!=c||a.to>=l.from&&a.from<=l.to)return{range:a};let d=r.changes({from:f,to:i,insert:t.insert}),g=a.to-n.to;return{changes:d,range:o?On.range(Math.max(0,o.anchor+g),Math.max(0,o.head+g)):a.map(d)}}))}else i={changes:s,selection:o&&r.selection.replaceRange(o)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:s,scrollIntoView:!0})}(e,a,i));return e.state.facet(kl).some((t=>t(e,a.from,a.to,s,o)))||e.dispatch(o()),!0}if(i&&!i.main.eq(r)){let t=!1,a="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),a=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:a}),!0}return!1}const Mf={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Af=Mo.ie&&Mo.ie_version<=11;class Tf{constructor(e){this.view=e,this.active=!1,this.selectionRange=new Zs,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(Mo.ie&&Mo.ie_version<=11||Mo.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Af&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()})),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,a)=>t!=e[a])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:a}=this,i=this.selectionRange;if(a.state.facet(Pl)?a.root.activeElement!=this.dom:!Ws(a.dom,i))return;let r=i.anchorNode&&a.docView.nearest(i.anchorNode);r&&r.ignoreEvent(e)?t||(this.selectionChanged=!1):(Mo.ie&&Mo.ie_version<=11||Mo.android&&Mo.chrome)&&!a.state.selection.main.empty&&i.focusNode&&Us(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Mo.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function a(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",a,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",a,!0),!t)return null;let i=t.startContainer,r=t.startOffset,n=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return Us(o.node,o.offset,n,s)&&([i,r,n,s]=[n,s,i,r]),{anchorNode:i,anchorOffset:r,focusNode:n,focusOffset:s}}(this.view)||Vs(e.root);if(!t||this.selectionRange.eq(t))return!1;let a=Ws(this.dom,t);return a&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let a=t.focusNode,i=t.focusOffset;if(!a||t.anchorNode!=a||t.anchorOffset!=i)return!1;for(i=Math.min(i,Ks(a));;)if(i){if(1!=a.nodeType)return!1;let e=a.childNodes[i-1];"false"==e.contentEditable?i--:(a=e,i=Ks(a))}else{if(a==e)return!0;i=$s(a),a=a.parentNode}}(this.dom,t)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(t),a&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let a=this.dom;a;)if(1==a.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==a?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(a),a=a.assignedSlot||a.parentNode;else{if(11!=a.nodeType)break;a=a.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,Mf),Af&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Af&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var a;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&ro(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(a=this.delayedAndroidKey)||void 0===a?void 0:a.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame((()=>{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,a=-1,i=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(i=!0),-1==t?({from:t,to:a}=e):(t=Math.min(e.from,t),a=Math.max(e.to,a)))}return{from:t,to:a,typeOver:i}}readChange(){let{from:e,to:t,typeOver:a}=this.processRecords(),i=this.selectionChanged&&Ws(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new xf(this.view,e,t,a);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let a=this.view.state,i=Cf(this.view,t);return this.view.state==a&&this.view.update([]),i}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let a=Pf(t,e.previousSibling||e.target.previousSibling,-1),i=Pf(t,e.nextSibling||e.target.nextSibling,1);return{from:a?t.posAfter(a):t.posAtStart,to:i?t.posBefore(i):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,a;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(a=this.resizeScroll)||void 0===a||a.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Pf(e,t,a){for(;t;){let i=co.get(t);if(i&&i.parent==e)return i;let r=t.parentNode;t=r!=e.dom?r:a>0?t.nextSibling:t.previousSibling}return null}class Nf{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new af(e.state||fs.create(e)),e.scrollTo&&e.scrollTo.is(Al)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(El).map((e=>new Dl(e)));for(let e of this.plugins)e.update(this);this.observer=new Tf(this),this.inputState=new fc(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ul(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let t=1==e.length&&e[0]instanceof es?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,a=!1,i=!1,r=this.state;for(let t of e){if(t.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=t.state}if(this.destroyed)return void(this.viewState.state=r);let n=this.hasFocus,s=0,o=null;e.some((e=>e.annotation(Bc)))?(this.inputState.notifiedFocused=n,s=1):n!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=n,o=Lc(r,n),o||(s=1));let l=this.observer.delayedAndroidKey,c=null;if(l?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(c=null)):this.observer.clear(),r.facet(fs.phrases)!=this.state.facet(fs.phrases))return this.setState(r);t=Gl.create(this,r,e),t.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(f&&(f=f.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;f=new Ml(e.empty?e:On.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Al)&&(f=e.value.clip(this.state))}this.viewState.update(t,f),this.bidiCache=Df.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),a=this.docView.update(t),this.state.facet(ql)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(a,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(uf)!=t.state.facet(uf)&&(this.viewState.mustMeasureContent=!0),(a||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let e of this.state.facet(Sl))try{e(t)}catch(e){Tl(this.state,e,"update listener")}(o||c)&&Promise.resolve().then((()=>{o&&this.state==o.startState&&this.dispatch(o),c&&!Cf(this,c)&&l.force&&ro(this.contentDOM,l.key,l.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new af(e),this.plugins=e.facet(El).map((e=>new Dl(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new Ul(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(El),a=e.state.facet(El);if(t!=a){let i=[];for(let r of a){let a=t.indexOf(r);if(a<0)i.push(new Dl(r));else{let t=this.plugins[a];t.mustUpdate=e,i.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=a&&this.inputState.ensureHandlers(this.plugins)}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,a=this.scrollDOM,i=a.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:n}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(n=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(n<0)if(so(a))r=-1,n=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(i);r=e.from,n=e.top}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let o=[];4&s||([this.measureRequests,o]=[o,this.measureRequests]);let l=o.map((e=>{try{return e.read(this)}catch(e){return Tl(this.state,e),Rf}})),c=Gl.create(this,this.state,[]),f=!1;c.flags|=s,t?t.flags|=s:t=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),f=this.docView.update(c));for(let e=0;e<o.length;e++)if(l[e]!=Rf)try{let t=o[e];t.write&&t.write(l[e],this)}catch(e){Tl(this.state,e)}if(f&&this.docView.updateSelection(!0),!c.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,n=-1;continue}{let e=(r<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(r).top)-n;if(e>1||e<-1){i+=e,a.scrollTop=i/this.scaleY,n=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Sl))e(t)}get themeClasses(){return df+" "+(this.state.facet(hf)?pf:gf)+" "+this.state.facet(uf)}updateAttrs(){let e=Bf(this,Bl,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Pl)?"true":"false",class:"cm-content",style:`${Mo.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Bf(this,Ll,t);let a=this.observer.ignore((()=>{let a=Fo(this.contentDOM,this.contentAttrs,t),i=Fo(this.dom,this.editorAttrs,e);return a||i}));return this.editorAttrs=e,this.contentAttrs=t,a}showAnnouncements(e){let t=!0;for(let a of e)for(let e of a.effects)e.is(Nf.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(ql);let e=this.state.facet(Nf.cspNonce);Ds.mount(this.root,this.styleModules.concat(vf).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.spec!=e)&&this.pluginMap.set(e,t=this.plugins.find((t=>t.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,a){return cc(this,e,oc(this,e,t,a))}moveByGroup(e,t){return cc(this,e,oc(this,e,t,(t=>function(e,t,a){let i=e.state.charCategorizer(t),r=i(a);return e=>{let t=i(e);return r==os.Space&&(r=t),r==t}}(this,e.head,t))))}visualLineSide(e,t){let a=this.bidiSpans(e),i=this.textDirectionAt(e.from),r=a[t?a.length-1:0];return On.cursor(r.side(t,i)+e.from,r.forward(!t,i)?1:-1)}moveToLineBoundary(e,t,a=!0){return function(e,t,a,i){let r=sc(e,t.head),n=i&&r.type==Vo.Text&&(e.lineWrapping||r.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(n){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(r.from),s=e.posAtCoords({x:a==(i==Jo.LTR)?t.right-1:t.left+1,y:(n.top+n.bottom)/2});if(null!=s)return On.cursor(s,a?-1:1)}return On.cursor(a?r.to:r.from,a?-1:1)}(this,e,t,a)}moveVertically(e,t,a){return cc(this,e,function(e,t,a,i){let r=t.head,n=a?1:-1;if(r==(a?e.state.doc.length:0))return On.cursor(r,t.assoc);let s,o=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),c=e.coordsAtPos(r,t.assoc||-1),f=e.documentTop;if(c)null==o&&(o=c.left-l.left),s=n<0?c.top:c.bottom;else{let t=e.viewState.lineBlockAt(r);null==o&&(o=Math.min(l.right-l.left,e.defaultCharacterWidth*(r-t.from))),s=(n<0?t.top:t.bottom)+f}let u=l.left+o,h=null!=i?i:e.viewState.heightOracle.textHeight>>1;for(let t=0;;t+=10){let a=s+(h+t)*n,i=rc(e,{x:u,y:a},!1,n);if(a<l.top||a>l.bottom||(n<0?i<r:i>r)){let t=e.docView.coordsForChar(i),r=!t||a<t.top?-1:1;return On.cursor(i,r,void 0,o)}}}(this,e,t,a))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){return this.readMeasured(),rc(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let a=this.docView.coordsAt(e,t);if(!a||a.left==a.right)return a;let i=this.state.doc.lineAt(e),r=this.bidiSpans(i);return Xs(a,r[ll.find(r,e-i.from,-1,t)].dir==Jo.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(xl)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>Ef)return dl(e.length);let t,a=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==a&&(i.fresh||cl(i.isolates,t=jl(this,e))))return i.order;t||(t=jl(this,e));let i=function(e,t,a){if(!e)return[new ll(0,0,t==el?1:0)];if(t==Zo&&!a.length&&!ol.test(e))return dl(e.length);if(a.length)for(;e.length>fl.length;)fl[fl.length]=256;let i=[],r=t==Zo?0:1;return hl(e,r,r,a,0,e.length,i),i}(e.text,a,t);return this.bidiCache.push(new Df(e.from,e.to,a,t,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Mo.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{ao(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Al.of(new Ml("number"==typeof e?On.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,a=this.viewState.scrollAnchorAt(e);return Al.of(new Ml(On.cursor(a.from),"start","start",a.top-e,t,!0))}static domEventHandlers(e){return Rl.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return Rl.define((()=>({})),{eventObservers:e})}static theme(e,t){let a=Ds.newName(),i=[uf.of(a),ql.of(yf(`.${a}`,e))];return t&&t.dark&&i.push(hf.of(!0)),i}static baseTheme(e){return Ln.lowest(ql.of(yf("."+df,e,mf)))}static findFromDOM(e){var t;let a=e.querySelector(".cm-content"),i=a&&co.get(a)||co.get(e);return(null===(t=null==i?void 0:i.rootView)||void 0===t?void 0:t.view)||null}}Nf.styleModule=ql,Nf.inputHandler=kl,Nf.focusChangeEffect=Ol,Nf.perLineTextDirection=xl,Nf.exceptionSink=wl,Nf.updateListener=Sl,Nf.editable=Pl,Nf.mouseSelectionStyle=bl,Nf.dragMovesSelection=vl,Nf.clickAddsSelectionRange=yl,Nf.decorations=Il,Nf.outerDecorations=Fl,Nf.atomicRanges=_l,Nf.bidiIsolatedRanges=zl,Nf.scrollMargins=Hl,Nf.darkTheme=hf,Nf.cspNonce=Mn.define({combine:e=>e.length?e[0]:""}),Nf.contentAttributes=Ll,Nf.editorAttributes=Bl,Nf.lineWrapping=Nf.contentAttributes.of({class:"cm-lineWrapping"}),Nf.announce=Zn.define();const Ef=4096,Rf={};class Df{constructor(e,t,a,i,r,n){this.from=e,this.to=t,this.dir=a,this.isolates=i,this.fresh=r,this.order=n}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let a=[],i=e.length?e[e.length-1].dir:Jo.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let n=e[r];n.dir!=i||t.touchesRange(n.from,n.to)||a.push(new Df(t.mapPos(n.from,1),t.mapPos(n.to,-1),n.dir,n.isolates,!1,n.order))}return a}}function Bf(e,t,a){for(let i=e.state.facet(t),r=i.length-1;r>=0;r--){let t=i[r],n="function"==typeof t?t(e):t;n&&Bo(n,a)}return a}const Lf=Mo.mac?"mac":Mo.windows?"win":Mo.linux?"linux":"key";function If(e,t,a){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==a&&t.shiftKey&&(e="Shift-"+e),e}const Ff=Ln.default(Nf.domEventHandlers({keydown:(e,t)=>qf(jf(t.state),e,t,"editor")})),_f=Mn.define({enables:Ff}),zf=new WeakMap;function jf(e){let t=e.facet(_f),a=zf.get(t);return a||zf.set(t,a=function(e,t=Lf){let a=Object.create(null),i=Object.create(null),r=(e,t)=>{let a=i[e];if(null==a)i[e]=t;else if(a!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},n=(e,i,n,s,o)=>{var l,c;let f=a[e]||(a[e]=Object.create(null)),u=i.split(/ (?!$)/).map((e=>function(e,t){const a=e.split(/-(?!$)/);let i,r,n,s,o=a[a.length-1];"Space"==o&&(o=" ");for(let e=0;e<a.length-1;++e){const o=a[e];if(/^(cmd|meta|m)$/i.test(o))s=!0;else if(/^a(lt)?$/i.test(o))i=!0;else if(/^(c|ctrl|control)$/i.test(o))r=!0;else if(/^s(hift)?$/i.test(o))n=!0;else{if(!/^mod$/i.test(o))throw new Error("Unrecognized modifier name: "+o);"mac"==t?s=!0:r=!0}}return i&&(o="Alt-"+o),r&&(o="Ctrl-"+o),s&&(o="Meta-"+o),n&&(o="Shift-"+o),o}(e,t)));for(let t=1;t<u.length;t++){let a=u.slice(0,t).join(" ");r(a,!0),f[a]||(f[a]={preventDefault:!0,stopPropagation:!1,run:[t=>{let i=Hf={view:t,prefix:a,scope:e};return setTimeout((()=>{Hf==i&&(Hf=null)}),Vf),!0}]})}let h=u.join(" ");r(h,!1);let d=f[h]||(f[h]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=f._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});n&&d.run.push(n),s&&(d.preventDefault=!0),o&&(d.stopPropagation=!0)};for(let i of e){let e=i.scope?i.scope.split(" "):["editor"];if(i.any)for(let t of e){let e=a[t]||(a[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(i.any)}let r=i[t]||i.key;if(r)for(let t of e)n(t,r,i.run,i.preventDefault,i.stopPropagation),i.shift&&n(t,"Shift-"+r,i.shift,i.preventDefault,i.stopPropagation)}return a}(t.reduce(((e,t)=>e.concat(t)),[]))),a}let Hf=null;const Vf=4e3;function qf(e,t,a,i){let r=function(e){var t=!(_s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||zs&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?Fs:Is)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),n=un(cn(r,0))==r.length&&" "!=r,s="",o=!1,l=!1,c=!1;Hf&&Hf.view==a&&Hf.scope==i&&(s=Hf.prefix+" ",pc.indexOf(t.keyCode)<0&&(l=!0,Hf=null));let f,u,h=new Set,d=e=>{if(e){for(let i of e.run)if(!h.has(i)&&(h.add(i),i(a,t)))return e.stopPropagation&&(c=!0),!0;e.preventDefault&&(e.stopPropagation&&(c=!0),l=!0)}return!1},g=e[i];return g&&(d(g[s+If(r,t,!n)])?o=!0:n&&(t.altKey||t.metaKey||t.ctrlKey)&&!(Mo.windows&&t.ctrlKey&&t.altKey)&&(f=Is[t.keyCode])&&f!=r?(d(g[s+If(f,t,!0)])||t.shiftKey&&(u=Fs[t.keyCode])!=r&&u!=f&&d(g[s+If(u,t,!1)]))&&(o=!0):n&&t.shiftKey&&d(g[s+If(r,t,!0)])&&(o=!0),!o&&d(g._any)&&(o=!0)),l&&(o=!0),o&&c&&t.stopPropagation(),o}class Wf{constructor(e,t,a,i,r){this.className=e,this.left=t,this.top=a,this.width=i,this.height=r}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,a){if(a.empty){let i=e.coordsAtPos(a.head,a.assoc||1);if(!i)return[];let r=Gf(e);return[new Wf(t,i.left-r.left,i.top-r.top,null,i.bottom-i.top)]}return function(e,t,a){if(a.to<=e.viewport.from||a.from>=e.viewport.to)return[];let i=Math.max(a.from,e.viewport.from),r=Math.min(a.to,e.viewport.to),n=e.textDirection==Jo.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=Gf(e),c=s.querySelector(".cm-line"),f=c&&window.getComputedStyle(c),u=o.left+(f?parseInt(f.paddingLeft)+Math.min(0,parseInt(f.textIndent)):0),h=o.right-(f?parseInt(f.paddingRight):0),d=sc(e,i),g=sc(e,r),p=d.type==Vo.Text?d:null,m=g.type==Vo.Text?g:null;if(p&&(e.lineWrapping||d.widgetLineBreaks)&&(p=Uf(e,i,p)),m&&(e.lineWrapping||g.widgetLineBreaks)&&(m=Uf(e,r,m)),p&&m&&p.from==m.from)return v(b(a.from,a.to,p));{let t=p?b(a.from,null,p):w(d,!1),i=m?b(null,a.to,m):w(g,!0),r=[];return(p||d).to<(m||g).from-(p&&m?1:0)||d.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2<i.top?r.push(y(u,t.bottom,h,i.top)):t.bottom<i.top&&e.elementAtHeight((t.bottom+i.top)/2).type==Vo.Text&&(t.bottom=i.top=(t.bottom+i.top)/2),v(t).concat(r).concat(v(i))}function y(e,a,i,r){return new Wf(t,e-l.left,a-l.top-.01,i-e,r-a+.01)}function v({top:e,bottom:t,horizontal:a}){let i=[];for(let r=0;r<a.length;r+=2)i.push(y(a[r],e,a[r+1],t));return i}function b(t,a,i){let r=1e9,s=-1e9,o=[];function l(t,a,l,c,f){let d=e.coordsAtPos(t,t==i.to?-2:2),g=e.coordsAtPos(l,l==i.from?2:-2);d&&g&&(r=Math.min(d.top,g.top,r),s=Math.max(d.bottom,g.bottom,s),f==Jo.LTR?o.push(n&&a?u:d.left,n&&c?h:g.right):o.push(!n&&c?u:g.left,!n&&a?h:d.right))}let c=null!=t?t:i.from,f=null!=a?a:i.to;for(let i of e.visibleRanges)if(i.to>c&&i.from<f)for(let r=Math.max(i.from,c),n=Math.min(i.to,f);;){let i=e.state.doc.lineAt(r);for(let s of e.bidiSpans(i)){let e=s.from+i.from,o=s.to+i.from;if(e>=n)break;o>r&&l(Math.max(e,r),null==t&&e<=c,Math.min(o,n),null==a&&o>=f,s.dir)}if(r=i.to+1,r>=n)break}return 0==o.length&&l(c,null==t,f,null==a,e.textDirection),{top:r,bottom:s,horizontal:o}}function w(e,t){let a=o.top+(t?e.top:e.bottom);return{top:a,bottom:a,horizontal:[]}}}(e,t,a)}}function Gf(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Jo.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function Uf(e,t,a){let i=On.cursor(t);return{from:Math.max(a.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(a.to,e.moveToLineBoundary(i,!0,!0).from),type:Vo.Text}}class $f{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(Qf)!=e.state.facet(Qf)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,a=e.facet(Qf);for(;t<a.length&&a[t]!=this.layer;)t++;this.dom.style.zIndex=String((this.layer.above?150:-1)-t)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:t}=this.view;e==this.scaleX&&t==this.scaleY||(this.scaleX=e,this.scaleY=t,this.dom.style.transform=`scale(${1/e}, ${1/t})`)}draw(e){if(e.length!=this.drawn.length||e.some(((e,t)=>{return a=e,i=this.drawn[t],!(a.constructor==i.constructor&&a.eq(i));var a,i}))){let t=this.dom.firstChild,a=0;for(let i of e)i.update&&t&&i.constructor&&this.drawn[a].constructor&&i.update(t,this.drawn[a])?(t=t.nextSibling,a++):this.dom.insertBefore(i.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Qf=Mn.define();function Kf(e){return[Rl.define((t=>new $f(t,e))),Qf.of(e)]}const Xf=!Mo.ios,Yf=Mn.define({combine:e=>us(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function Jf(e){return e.startState.facet(Yf)!=e.state.facet(Yf)}const Zf=Kf({above:!0,markers(e){let{state:t}=e,a=t.facet(Yf),i=[];for(let r of t.selection.ranges){let n=r==t.selection.main;if(r.empty?!n||Xf:a.drawRangeCursor){let t=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",a=r.empty?r:On.cursor(r.head,r.head>r.anchor?-1:1);for(let r of Wf.forRange(e,t,a))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let a=Jf(e);return a&&eu(e.state,t),e.docChanged||e.selectionSet||a},mount(e,t){eu(t.state,e)},class:"cm-cursorLayer"});function eu(e,t){t.style.animationDuration=e.facet(Yf).cursorBlinkRate+"ms"}const tu=Kf({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:Wf.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||Jf(e),class:"cm-selectionLayer"}),au={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Xf&&(au[".cm-line"].caretColor="transparent !important",au[".cm-content"]={caretColor:"transparent !important"});const iu=Ln.highest(Nf.theme(au)),ru=Zn.define({map:(e,t)=>null==e?null:t.mapPos(e)}),nu=Dn.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(ru)?t.value:e),e))}),su=Rl.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let a=e.state.field(nu);null==a?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(nu)!=a||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(nu),a=null!=t&&e.coordsAtPos(t);if(!a)return null;let i=e.scrollDOM.getBoundingClientRect();return{left:a.left-i.left+e.scrollDOM.scrollLeft*e.scaleX,top:a.top-i.top+e.scrollDOM.scrollTop*e.scaleY,height:a.bottom-a.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:a}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/a+"px",this.cursor.style.height=e.height/a+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(nu)!=e&&this.view.dispatch({effects:ru.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function ou(e,t,a,i,r){t.lastIndex=0;for(let n,s=e.iterRange(a,i),o=a;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;n=t.exec(s.value);)r(o+n.index,n)}class lu{constructor(e){const{regexp:t,decoration:a,decorate:i,boundary:r,maxLength:n=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,i)this.addMatch=(e,t,a,r)=>i(r,a,a+e[0].length,e,t);else if("function"==typeof a)this.addMatch=(e,t,i,r)=>{let n=a(e,t,i);n&&r(i,i+e[0].length,n)};else{if(!a)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,i,r)=>r(i,i+e[0].length,a)}this.boundary=r,this.maxLength=n}createDeco(e){let t=new ys,a=t.add.bind(t);for(let{from:t,to:i}of function(e,t){let a=e.visibleRanges;if(1==a.length&&a[0].from==e.viewport.from&&a[0].to==e.viewport.to)return a;let i=[];for(let{from:r,to:n}of a)r=Math.max(e.state.doc.lineAt(r).from,r-t),n=Math.min(e.state.doc.lineAt(n).to,n+t),i.length&&i[i.length-1].to>=r?i[i.length-1].to=n:i.push({from:r,to:n});return i}(e,this.maxLength))ou(e.state.doc,this.regexp,t,i,((t,i)=>this.addMatch(i,e,t,a)));return t.finish()}updateDeco(e,t){let a=1e9,i=-1;return e.docChanged&&e.changes.iterChanges(((t,r,n,s)=>{s>e.view.viewport.from&&n<e.view.viewport.to&&(a=Math.min(n,a),i=Math.max(s,i))})),e.viewportChanged||i-a>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,t.map(e.changes),a,i):t}updateRange(e,t,a,i){for(let r of e.visibleRanges){let n=Math.max(r.from,a),s=Math.min(r.to,i);if(s>n){let a=e.state.doc.lineAt(n),i=a.to<s?e.state.doc.lineAt(s):a,o=Math.max(r.from,a.from),l=Math.min(r.to,i.to);if(this.boundary){for(;n>a.from;n--)if(this.boundary.test(a.text[n-1-a.from])){o=n;break}for(;s<i.to;s++)if(this.boundary.test(i.text[s-i.from])){l=s;break}}let c,f=[],u=(e,t,a)=>f.push(a.range(e,t));if(a==i)for(this.regexp.lastIndex=o-a.from;(c=this.regexp.exec(a.text))&&c.index<l-a.from;)this.addMatch(c,e,c.index+a.from,u);else ou(e.state.doc,this.regexp,o,l,((t,a)=>this.addMatch(a,e,t,u)));t=t.update({filterFrom:o,filterTo:l,filter:(e,t)=>e<o||t>l,add:f})}}return t}}const cu=null!=/x/.unicode?"gu":"g",fu=new RegExp("[\0-\b\n--\u2028\u2029\ufeff-]",cu),uu={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let hu=null;const du=Mn.define({combine(e){let t=us(e,{render:null,specialChars:fu,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==hu&&"undefined"!=typeof document&&document.body){let t=document.body.style;hu=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return hu||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,cu)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,cu)),t}});let gu=null;class pu extends Ho{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=function(e){return e>=32?"•":10==e?"":String.fromCharCode(9216+e)}(this.code),a=e.state.phrase("Control character")+" "+(uu[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,a,t);if(i)return i;let r=document.createElement("span");return r.textContent=t,r.title=a,r.setAttribute("aria-label",a),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class mu extends Ho{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const yu=qo.line({class:"cm-activeLine"}),vu=Rl.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,a=[];for(let i of e.state.selection.ranges){let r=e.lineBlockAt(i.head);r.from>t&&(a.push(yu.range(r.from)),t=r.from)}return qo.set(a)}},{decorations:e=>e.decorations});class bu extends Ho{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?Gs(e.firstChild):[];if(!t.length)return null;let a=window.getComputedStyle(e.parentNode),i=Xs(t[0],"rtl"!=a.direction),r=parseInt(a.lineHeight);return i.bottom-i.top>1.5*r?{left:i.left,right:i.right,top:i.top,bottom:i.top+r}:i}ignoreEvent(){return!1}}const wu=2e3;function Su(e,t){let a=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(a),r=a-i.from,n=r>wu?-1:r==i.length?function(e,t){let a=e.coordsAtPos(e.viewport.from);return a?Math.round(Math.abs((a.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):Ts(i.text,e.state.tabSize,a-i.from);return{line:i.number,col:n,off:r}}const ku={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Ou={style:"cursor: crosshair"},xu="-10000px";class Cu{constructor(e,t,a,i){this.facet=t,this.createTooltipView=a,this.removeTooltipView=i,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e));let r=null;this.tooltipViews=this.tooltips.map((e=>r=a(e,r)))}update(e,t){var a;let i=e.state.facet(this.facet),r=i.filter((e=>e));if(i===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let n=[],s=t?[]:null;for(let a=0;a<r.length;a++){let i=r[a],o=-1;if(i){for(let e=0;e<this.tooltips.length;e++){let t=this.tooltips[e];t&&t.create==i.create&&(o=e)}if(o<0)n[a]=this.createTooltipView(i,a?n[a-1]:null),s&&(s[a]=!!i.above);else{let i=n[a]=this.tooltipViews[o];s&&(s[a]=t[o]),i.update&&i.update(e)}}}for(let e of this.tooltipViews)n.indexOf(e)<0&&(this.removeTooltipView(e),null===(a=e.destroy)||void 0===a||a.call(e));return t&&(s.forEach(((e,a)=>t[a]=e)),t.length=s.length),this.input=i,this.tooltips=r,this.tooltipViews=n,!0}}function Mu(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Au=Mn.define({combine:e=>{var t,a,i;return{position:Mo.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(a=e.find((e=>e.parent)))||void 0===a?void 0:a.parent)||null,tooltipSpace:(null===(i=e.find((e=>e.tooltipSpace)))||void 0===i?void 0:i.tooltipSpace)||Mu}}}),Tu=new WeakMap,Pu=Rl.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(Au);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver="function"==typeof ResizeObserver?new ResizeObserver((()=>this.measureSoon())):null,this.manager=new Cu(e,Ru,((e,t)=>this.createTooltip(e,t)),(e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()})),this.above=this.manager.tooltips.map((e=>!!e.above)),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let a=t||e.geometryChanged,i=e.state.facet(Au);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;a=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);a=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);a&&this.maybeMeasure()}createTooltip(e,t){let a=e.create(this.view),i=t?t.dom:null;if(a.dom.classList.add("cm-tooltip"),e.arrow&&!a.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",a.dom.insertBefore(e,i)}return a.dom.style.position=this.position,a.dom.style.top=xu,a.dom.style.left="0px",this.container.insertBefore(a.dom,i),a.mount&&a.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(a.dom),a}destroy(){var e,t,a;this.view.win.removeEventListener("resize",this.measureSoon);for(let t of this.manager.tooltipViews)t.dom.remove(),null===(e=t.destroy)||void 0===e||e.call(t);this.parent&&this.container.remove(),null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(a=this.intersectionObserver)||void 0===a||a.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,a=1,i=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(Mo.gecko)i=e.offsetParent!=this.container.ownerDocument.body;else if(e.style.top==xu&&"0px"==e.style.left){let t=e.getBoundingClientRect();i=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(i||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,a=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:a}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let a=this.manager.tooltipViews[t];return a.getCoords?a.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((({dom:e})=>e.getBoundingClientRect())),space:this.view.state.facet(Au).tooltipSpace(this.view),scaleX:t,scaleY:a,makeAbsolute:i}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:a,space:i,scaleX:r,scaleY:n}=e,s=[];for(let o=0;o<this.manager.tooltips.length;o++){let l=this.manager.tooltips[o],c=this.manager.tooltipViews[o],{dom:f}=c,u=e.pos[o],h=e.size[o];if(!u||u.bottom<=Math.max(a.top,i.top)||u.top>=Math.min(a.bottom,i.bottom)||u.right<Math.max(a.left,i.left)-.1||u.left>Math.min(a.right,i.right)+.1){f.style.top=xu;continue}let d=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,g=d?7:0,p=h.right-h.left,m=null!==(t=Tu.get(c))&&void 0!==t?t:h.bottom-h.top,y=c.offset||Eu,v=this.view.textDirection==Jo.LTR,b=h.width>i.right-i.left?v?i.left:i.right-h.width:v?Math.min(u.left-(d?14:0)+y.x,i.right-p):Math.max(i.left,u.left-p+(d?14:0)-y.x),w=this.above[o];!l.strictSide&&(w?u.top-(h.bottom-h.top)-y.y<i.top:u.bottom+(h.bottom-h.top)+y.y>i.bottom)&&w==i.bottom-u.bottom>u.top-i.top&&(w=this.above[o]=!w);let S=(w?u.top-i.top:i.bottom-u.bottom)-g;if(S<m&&!1!==c.resize){if(S<this.view.defaultLineHeight){f.style.top=xu;continue}Tu.set(c,m),f.style.height=(m=S)/n+"px"}else f.style.height&&(f.style.height="");let k=w?u.top-m-g-y.y:u.bottom+g+y.y,O=b+p;if(!0!==c.overlap)for(let e of s)e.left<O&&e.right>b&&e.top<k+m&&e.bottom>k&&(k=w?e.top-m-2-g:e.bottom+g+2);if("absolute"==this.position?(f.style.top=(k-e.parent.top)/n+"px",f.style.left=(b-e.parent.left)/r+"px"):(f.style.top=k/n+"px",f.style.left=b/r+"px"),d){let e=u.left+(v?y.x:-y.x)-(b+14-7);d.style.left=e/r+"px"}!0!==c.overlap&&s.push({left:b,top:k,right:O,bottom:k+m}),f.classList.toggle("cm-tooltip-above",w),f.classList.toggle("cm-tooltip-below",!w),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=xu}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Nu=Nf.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Eu={x:0,y:0},Ru=Mn.define({enables:[Pu,Nu]}),Du=Mn.define({combine:e=>e.reduce(((e,t)=>e.concat(t)),[])});class Bu{static create(e){return new Bu(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Cu(e,Du,((e,t)=>this.createHostedView(e,t)),(e=>e.dom.remove()))}createHostedView(e,t){let a=e.create(this.view);return a.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(a.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&a.mount&&a.mount(this.view),a}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let a of this.manager.tooltipViews){let i=a[e];if(void 0!==i)if(void 0===t)t=i;else if(t!==i)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Lu=Ru.compute([Du],(e=>{let t=e.facet(Du);return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.map((e=>{var t;return null!==(t=e.end)&&void 0!==t?t:e.pos}))),create:Bu.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class Iu{constructor(e,t,a,i,r){this.view=e,this.source=t,this.field=a,this.setHover=i,this.hoverTime=r,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,a=e.docView.nearest(t.target);if(!a)return;let i,r=1;if(a instanceof Po)i=a.posAtStart;else{if(i=e.posAtCoords(t),null==i)return;let a=e.coordsAtPos(i);if(!a||t.y<a.top||t.y>a.bottom||t.x<a.left-e.defaultCharacterWidth||t.x>a.right+e.defaultCharacterWidth)return;let n=e.bidiSpans(e.state.doc.lineAt(i)).find((e=>e.from<=i&&e.to>=i)),s=n&&n.dir==Jo.RTL?-1:1;r=t.x<a.left?-s:s}let n=this.source(e,i,r);if(null==n?void 0:n.then){let t=this.pending={pos:i};n.then((a=>{this.pending==t&&(this.pending=null,!a||Array.isArray(a)&&!a.length||e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))}),(t=>Tl(e.state,t,"hover tooltip")))}else!n||Array.isArray(n)&&!n.length||e.dispatch({effects:this.setHover.of(Array.isArray(n)?n:[n])})}get tooltip(){let e=this.view.plugin(Pu),t=e?e.manager.tooltips.findIndex((e=>e.create==Bu.create)):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,a;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:r}=this;if(i.length&&r&&!function(e,t){let a=e.getBoundingClientRect();return t.clientX>=a.left-Fu&&t.clientX<=a.right+Fu&&t.clientY>=a.top-Fu&&t.clientY<=a.bottom+Fu}(r.dom,e)||this.pending){let{pos:r}=i[0]||this.pending,n=null!==(a=null===(t=i[0])||void 0===t?void 0:t.end)&&void 0!==a?a:r;(r==n?this.view.posAtCoords(this.lastMove)==r:function(e,t,a,i,r,n){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>i||s.right<i||s.top>r||Math.min(s.bottom,o)<r)return!1;let l=e.posAtCoords({x:i,y:r},!1);return l>=t&&l<=a}(this.view,r,n,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:t}=this;t&&t.dom.contains(e.relatedTarget)?this.watchTooltipLeave(t.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=a=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(a.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Fu=4;function _u(e,t={}){let a=Zn.define(),i=Dn.define({create:()=>[],update(e,i){if(e.length&&(t.hideOnChange&&(i.docChanged||i.selection)?e=[]:t.hideOn&&(e=e.filter((e=>!t.hideOn(i,e)))),i.docChanged)){let t=[];for(let a of e){let e=i.changes.mapPos(a.pos,-1,dn.TrackDel);if(null!=e){let r=Object.assign(Object.create(null),a);r.pos=e,null!=r.end&&(r.end=i.changes.mapPos(r.end)),t.push(r)}}e=t}for(let t of i.effects)t.is(a)&&(e=t.value),t.is(ju)&&(e=[]);return e},provide:e=>Du.from(e)});return[i,Rl.define((r=>new Iu(r,e,i,a,t.hoverTime||300))),Lu]}function zu(e,t){let a=e.plugin(Pu);if(!a)return null;let i=a.manager.tooltips.indexOf(t);return i<0?null:a.manager.tooltipViews[i]}const ju=Zn.define(),Hu=Mn.define({combine(e){let t,a;for(let i of e)t=t||i.topContainer,a=a||i.bottomContainer;return{topContainer:t,bottomContainer:a}}});function Vu(e,t){let a=e.plugin(qu),i=a?a.specs.indexOf(t):-1;return i>-1?a.panels[i]:null}const qu=Rl.fromClass(class{constructor(e){this.input=e.state.facet(Uu),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(Hu);this.top=new Wu(e,!0,t.topContainer),this.bottom=new Wu(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(Hu);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Wu(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Wu(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let a=e.state.facet(Uu);if(a!=this.input){let t=a.filter((e=>e)),i=[],r=[],n=[],s=[];for(let a of t){let t,o=this.specs.indexOf(a);o<0?(t=a(e.view),s.push(t)):(t=this.panels[o],t.update&&t.update(e)),i.push(t),(t.top?r:n).push(t)}this.specs=t,this.panels=i,this.top.sync(r),this.bottom.sync(n);for(let e of s)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Nf.scrollMargins.of((t=>{let a=t.plugin(e);return a&&{top:a.top.scrollMargin(),bottom:a.bottom.scrollMargin()}}))});class Wu{constructor(e,t,a){this.view=e,this.top=t,this.container=a,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Gu(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Gu(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Gu(e){let t=e.nextSibling;return e.remove(),t}const Uu=Mn.define({enables:qu});class $u extends hs{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}$u.prototype.elementClass="",$u.prototype.toDOM=void 0,$u.prototype.mapMode=dn.TrackBefore,$u.prototype.startSide=$u.prototype.endSide=-1,$u.prototype.point=!0;const Qu=Mn.define(),Ku={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>ms.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Xu=Mn.define();function Yu(e){return[Zu(),Xu.of(Object.assign(Object.assign({},Ku),e))]}const Ju=Mn.define({combine:e=>e.some((e=>e))});function Zu(e){let t=[eh];return e&&!1===e.fixed&&t.push(Ju.of(!0)),t}const eh=Rl.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(Xu).map((t=>new rh(e,t)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!e.state.facet(Ju),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,a=e.view.viewport,i=Math.min(t.to,a.to)-Math.max(t.from,a.from);this.syncGutters(i<.8*(a.to-a.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ju)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let a=ms.iter(this.view.state.facet(Qu),this.view.viewport.from),i=[],r=this.gutters.map((e=>new ih(e,this.view.viewport,-this.view.documentPadding.top)));for(let e of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(e.type)){let t=!0;for(let n of e.type)if(n.type==Vo.Text&&t){ah(a,i,n.from);for(let e of r)e.line(this.view,n,i);t=!1}else if(n.widget)for(let e of r)e.widget(this.view,n)}else if(e.type==Vo.Text){ah(a,i,e.from);for(let t of r)t.line(this.view,e,i)}else if(e.widget)for(let t of r)t.widget(this.view,e);for(let e of r)e.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Xu),a=e.state.facet(Xu),i=e.docChanged||e.heightChanged||e.viewportChanged||!ms.eq(e.startState.facet(Qu),e.state.facet(Qu),e.view.viewport.from,e.view.viewport.to);if(t==a)for(let t of this.gutters)t.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of a){let a=t.indexOf(i);a<0?r.push(new rh(this.view,i)):(this.gutters[a].update(e),r.push(this.gutters[a]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Nf.scrollMargins.of((t=>{let a=t.plugin(e);return a&&0!=a.gutters.length&&a.fixed?t.textDirection==Jo.LTR?{left:a.dom.offsetWidth*t.scaleX}:{right:a.dom.offsetWidth*t.scaleX}:null}))});function th(e){return Array.isArray(e)?e:[e]}function ah(e,t,a){for(;e.value&&e.from<=a;)e.from==a&&t.push(e.value),e.next()}class ih{constructor(e,t,a){this.gutter=e,this.height=a,this.i=0,this.cursor=ms.iter(e.markers,t.from)}addElement(e,t,a){let{gutter:i}=this,r=(t.top-this.height)/e.scaleY,n=t.height/e.scaleY;if(this.i==i.elements.length){let t=new nh(e,n,r,a);i.elements.push(t),i.dom.appendChild(t.dom)}else i.elements[this.i].update(e,n,r,a);this.height=t.bottom,this.i++}line(e,t,a){let i=[];ah(this.cursor,i,t.from),a.length&&(i=i.concat(a));let r=this.gutter.config.lineMarker(e,t,i);r&&i.unshift(r);let n=this.gutter;(0!=i.length||n.config.renderEmptyElements)&&this.addElement(e,t,i)}widget(e,t){let a=this.gutter.config.widgetMarker(e,t.widget,t);a&&this.addElement(e,t,[a])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class rh{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let a in t.domEventHandlers)this.dom.addEventListener(a,(i=>{let r,n=i.target;if(n!=this.dom&&this.dom.contains(n)){for(;n.parentNode!=this.dom;)n=n.parentNode;let e=n.getBoundingClientRect();r=(e.top+e.bottom)/2}else r=i.clientY;let s=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[a](e,s,i)&&i.preventDefault()}));this.markers=th(t.markers(e)),t.initialSpacer&&(this.spacer=new nh(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=th(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let a=e.view.viewport;return!ms.eq(this.markers,t,a.from,a.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class nh{constructor(e,t,a,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,a,i)}update(e,t,a,i){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=a&&(this.dom.style.marginTop=(this.above=a)?a+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let a=0;a<e.length;a++)if(!e[a].compare(t[a]))return!1;return!0}(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,t){let a="cm-gutterElement",i=this.dom.firstChild;for(let r=0,n=0;;){let s=n,o=r<t.length?t[r++]:null,l=!1;if(o){let e=o.elementClass;e&&(a+=" "+e);for(let e=n;e<this.markers.length;e++)if(this.markers[e].compare(o)){s=e,l=!0;break}}else s=this.markers.length;for(;n<s;){let e=this.markers[n++];if(e.toDOM){e.destroy(i);let t=i.nextSibling;i.remove(),i=t}}if(!o)break;o.toDOM&&(l?i=i.nextSibling:this.dom.insertBefore(o.toDOM(e),i)),l&&n++}this.dom.className=a,this.markers=t}destroy(){this.setMarkers(null,[])}}const sh=Mn.define(),oh=Mn.define({combine:e=>us(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let a=Object.assign({},e);for(let e in t){let i=a[e],r=t[e];a[e]=i?(e,t,a)=>i(e,t,a)||r(e,t,a):r}return a}})});class lh extends $u{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function ch(e,t){return e.state.facet(oh).formatNumber(t,e.state)}const fh=Xu.compute([oh],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(sh),lineMarker:(e,t,a)=>a.some((e=>e.toDOM))?null:new lh(ch(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(oh)!=e.state.facet(oh),initialSpacer:e=>new lh(ch(e,uh(e.state.doc.lines))),updateSpacer(e,t){let a=ch(t.view,uh(t.view.state.doc.lines));return a==e.number?e:new lh(a)},domEventHandlers:e.facet(oh).domEventHandlers})));function uh(e){let t=9;for(;t<e;)t=10*t+9;return t}const hh=new class extends $u{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},dh=Qu.compute(["selection"],(e=>{let t=[],a=-1;for(let i of e.selection.ranges){let r=e.doc.lineAt(i.head).from;r>a&&(a=r,t.push(hh.range(r)))}return ms.of(t)})),gh=1024;let ph=0;class mh{constructor(e,t){this.from=e,this.to=t}}class yh{constructor(e={}){this.id=ph++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=wh.match(e)),t=>{let a=e(t);return void 0===a?null:[this,a]}}}yh.closedBy=new yh({deserialize:e=>e.split(" ")}),yh.openedBy=new yh({deserialize:e=>e.split(" ")}),yh.group=new yh({deserialize:e=>e.split(" ")}),yh.isolate=new yh({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),yh.contextHash=new yh({perNode:!0}),yh.lookAhead=new yh({perNode:!0}),yh.mounted=new yh({perNode:!0});class vh{constructor(e,t,a){this.tree=e,this.overlay=t,this.parser=a}static get(e){return e&&e.props&&e.props[yh.mounted.id]}}const bh=Object.create(null);class wh{constructor(e,t,a,i=0){this.name=e,this.props=t,this.id=a,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):bh,a=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),i=new wh(e.name||"",t,e.id,a);if(e.props)for(let a of e.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[a[0].id]=a[1]}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(yh.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let a in e)for(let i of a.split(" "))t[i]=e[a];return e=>{for(let a=e.prop(yh.group),i=-1;i<(a?a.length:0);i++){let r=t[i<0?e.name:a[i]];if(r)return r}}}}wh.none=new wh("",Object.create(null),0,8);class Sh{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let a of this.types){let i=null;for(let t of e){let e=t(a);e&&(i||(i=Object.assign({},a.props)),i[e[0].id]=e[1])}t.push(i?new wh(a.name,i,a.id,a.flags):a)}return new Sh(t)}}const kh=new WeakMap,Oh=new WeakMap;var xh;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(xh||(xh={}));class Ch{constructor(e,t,a,i,r){if(this.type=e,this.children=t,this.positions=a,this.length=i,this.props=null,r&&r.length){this.props=Object.create(null);for(let[e,t]of r)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=vh.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let a=e.toString();a&&(t&&(t+=","),t+=a)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new _h(this.topNode,e)}cursorAt(e,t=0,a=0){let i=kh.get(this)||this.topNode,r=new _h(i);return r.moveTo(e,t),kh.set(this,r._tree),r}get topNode(){return new Eh(this,0,0,null)}resolve(e,t=0){let a=Ph(kh.get(this)||this.topNode,e,t,!1);return kh.set(this,a),a}resolveInner(e,t=0){let a=Ph(Oh.get(this)||this.topNode,e,t,!0);return Oh.set(this,a),a}resolveStack(e,t=0){return function(e,t,a){let i=e.resolveInner(t,a),r=null;for(let e=i instanceof Eh?i:i.context.parent;e;e=e.parent)if(e.index<0){let n=e.parent;(r||(r=[i])).push(n.resolve(t,a)),e=n}else{let n=vh.get(e.tree);if(n&&n.overlay&&n.overlay[0].from<=t&&n.overlay[n.overlay.length-1].to>=t){let s=new Eh(n.tree,n.overlay[0].from+e.from,-1,e);(r||(r=[i])).push(Ph(s,t,a,!1))}}return r?Ih(r):i}(this,e,t)}iterate(e){let{enter:t,leave:a,from:i=0,to:r=this.length}=e,n=e.mode||0,s=(n&xh.IncludeAnonymous)>0;for(let e=this.cursor(n|xh.IncludeAnonymous);;){let n=!1;if(e.from<=r&&e.to>=i&&(!s&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;n=!0}for(;n&&a&&(s||!e.type.isAnonymous)&&a(e),!e.nextSibling();){if(!e.parent())return;n=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Vh(wh.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,a)=>new Ch(this.type,e,t,a,this.propValues)),e.makeTree||((e,t,a)=>new Ch(wh.none,e,t,a)))}static build(e){return function(e){var t;let{buffer:a,nodeSet:i,maxBufferLength:r=gh,reused:n=[],minRepeatType:s=i.types.length}=e,o=Array.isArray(a)?new Mh(a,a.length):a,l=i.types,c=0,f=0;function u(e,t,a,m,y,v){let{id:b,start:w,end:S,size:k}=o,O=f;for(;k<0;){if(o.next(),-1==k){let t=n[b];return a.push(t),void m.push(w-e)}if(-3==k)return void(c=b);if(-4==k)return void(f=b);throw new RangeError(`Unrecognized record size: ${k}`)}let x,C,M=l[b],A=w-e;if(S-w<=r&&(C=function(e,t){let a=o.fork(),i=0,n=0,l=0,c=a.end-r,f={size:0,start:0,skip:0};e:for(let r=a.pos-e;a.pos>r;){let e=a.size;if(a.id==t&&e>=0){f.size=i,f.start=n,f.skip=l,l+=4,i+=4,a.next();continue}let o=a.pos-e;if(e<0||o<r||a.start<c)break;let u=a.id>=s?4:0,h=a.start;for(a.next();a.pos>o;){if(a.size<0){if(-3!=a.size)break e;u+=4}else a.id>=s&&(u+=4);a.next()}n=h,i+=e,l+=u}return(t<0||i==e)&&(f.size=i,f.start=n,f.skip=l),f.size>4?f:void 0}(o.pos-t,y))){let t=new Uint16Array(C.size-C.skip),a=o.pos-C.size,r=t.length;for(;o.pos>a;)r=p(C.start,t,r);x=new Ah(t,S-C.start,i),A=C.start-e}else{let e=o.pos-k;o.next();let t=[],a=[],i=b>=s?b:-1,n=0,l=S;for(;o.pos>e;)i>=0&&o.id==i&&o.size>=0?(o.end<=l-r&&(d(t,a,w,n,o.end,l,i,O),n=t.length,l=o.end),o.next()):v>2500?h(w,e,t,a):u(w,e,t,a,i,v+1);if(i>=0&&n>0&&n<t.length&&d(t,a,w,n,w,l,i,O),t.reverse(),a.reverse(),i>-1&&n>0){let e=function(e){return(t,a,i)=>{let r,n,s=0,o=t.length-1;if(o>=0&&(r=t[o])instanceof Ch){if(!o&&r.type==e&&r.length==i)return r;(n=r.prop(yh.lookAhead))&&(s=a[o]+r.length+n)}return g(e,t,a,i,s)}}(M);x=Vh(M,t,a,0,t.length,0,S-w,e,e)}else x=g(M,t,a,S-w,O-S)}a.push(x),m.push(A)}function h(e,t,a,n){let s=[],l=0,c=-1;for(;o.pos>t;){let{id:e,start:t,end:a,size:i}=o;if(i>4)o.next();else{if(c>-1&&t<c)break;c<0&&(c=a-r),s.push(e,t,a),l++,o.next()}}if(l){let t=new Uint16Array(4*l),r=s[s.length-2];for(let e=s.length-3,a=0;e>=0;e-=3)t[a++]=s[e],t[a++]=s[e+1]-r,t[a++]=s[e+2]-r,t[a++]=a;a.push(new Ah(t,s[2]-r,i)),n.push(r-e)}}function d(e,t,a,r,n,s,o,l){let c=[],f=[];for(;e.length>r;)c.push(e.pop()),f.push(t.pop()+a-n);e.push(g(i.types[o],c,f,s-n,l-s)),t.push(n-a)}function g(e,t,a,i,r=0,n){if(c){let e=[yh.contextHash,c];n=n?[e].concat(n):[e]}if(r>25){let e=[yh.lookAhead,r];n=n?[e].concat(n):[e]}return new Ch(e,t,a,i,n)}function p(e,t,a){let{id:i,start:r,end:n,size:l}=o;if(o.next(),l>=0&&i<s){let s=a;if(l>4){let i=o.pos-(l-4);for(;o.pos>i;)a=p(e,t,a)}t[--a]=s,t[--a]=n-e,t[--a]=r-e,t[--a]=i}else-3==l?c=i:-4==l&&(f=i);return a}let m=[],y=[];for(;o.pos>0;)u(e.start||0,e.bufferStart||0,m,y,-1,0);let v=null!==(t=e.length)&&void 0!==t?t:m.length?y[0]+m[0].length:0;return new Ch(l[e.topID],m.reverse(),y.reverse(),v)}(e)}}Ch.empty=new Ch(wh.none,[],[],0);class Mh{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new Mh(this.buffer,this.index)}}class Ah{constructor(e,t,a){this.buffer=e,this.length=t,this.set=a}get type(){return wh.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],a=this.buffer[e+3],i=this.set.types[t],r=i.name;if(/\W/.test(r)&&!i.isError&&(r=JSON.stringify(r)),a==(e+=4))return r;let n=[];for(;e<a;)n.push(this.childString(e)),e=this.buffer[e+3];return r+"("+n.join(",")+")"}findChild(e,t,a,i,r){let{buffer:n}=this,s=-1;for(let o=e;o!=t&&!(Th(r,i,n[o+1],n[o+2])&&(s=o,a>0));o=n[o+3]);return s}slice(e,t,a){let i=this.buffer,r=new Uint16Array(t-e),n=0;for(let s=e,o=0;s<t;){r[o++]=i[s++],r[o++]=i[s++]-a;let t=r[o++]=i[s++]-a;r[o++]=i[s++]-e,n=Math.max(n,t)}return new Ah(r,n,this.set)}}function Th(e,t,a,i){switch(e){case-2:return a<t;case-1:return i>=t&&a<t;case 0:return a<t&&i>t;case 1:return a<=t&&i>t;case 2:return i>t;case 4:return!0}}function Ph(e,t,a,i){for(var r;e.from==e.to||(a<1?e.from>=t:e.from>t)||(a>-1?e.to<=t:e.to<t);){let t=!i&&e instanceof Eh&&e.index<0?null:e.parent;if(!t)return e;e=t}let n=i?0:xh.IgnoreOverlays;if(i)for(let i=e,s=i.parent;s;i=s,s=i.parent)i instanceof Eh&&i.index<0&&(null===(r=s.enter(t,a,n))||void 0===r?void 0:r.from)!=i.from&&(e=s);for(;;){let i=e.enter(t,a,n);if(!i)return e;e=i}}class Nh{cursor(e=0){return new _h(this,e)}getChild(e,t=null,a=null){let i=Rh(this,e,t,a);return i.length?i[0]:null}getChildren(e,t=null,a=null){return Rh(this,e,t,a)}resolve(e,t=0){return Ph(this,e,t,!1)}resolveInner(e,t=0){return Ph(this,e,t,!0)}matchContext(e){return Dh(this,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),a=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(a=t,t=e.prevSibling):t=e}return a}get node(){return this}get next(){return this.parent}}class Eh extends Nh{constructor(e,t,a,i){super(),this._tree=e,this.from=t,this.index=a,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,a,i,r=0){for(let n=this;;){for(let{children:s,positions:o}=n._tree,l=t>0?s.length:-1;e!=l;e+=t){let l=s[e],c=o[e]+n.from;if(Th(i,a,c,c+l.length))if(l instanceof Ah){if(r&xh.ExcludeBuffers)continue;let s=l.findChild(0,l.buffer.length,t,a-c,i);if(s>-1)return new Lh(new Bh(n,l,e,c),null,s)}else if(r&xh.IncludeAnonymous||!l.type.isAnonymous||zh(l)){let s;if(!(r&xh.IgnoreMounts)&&(s=vh.get(l))&&!s.overlay)return new Eh(s.tree,c,e,n);let o=new Eh(l,c,e,n);return r&xh.IncludeAnonymous||!o.type.isAnonymous?o:o.nextChild(t<0?l.children.length-1:0,t,a,i)}}if(r&xh.IncludeAnonymous||!n.type.isAnonymous)return null;if(e=n.index>=0?n.index+t:t<0?-1:n._parent._tree.children.length,n=n._parent,!n)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,a=0){let i;if(!(a&xh.IgnoreOverlays)&&(i=vh.get(this._tree))&&i.overlay){let a=e-this.from;for(let{from:e,to:r}of i.overlay)if((t>0?e<=a:e<a)&&(t<0?r>=a:r>a))return new Eh(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,a)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Rh(e,t,a,i){let r=e.cursor(),n=[];if(!r.firstChild())return n;if(null!=a)for(let e=!1;!e;)if(e=r.type.is(a),!r.nextSibling())return n;for(;;){if(null!=i&&r.type.is(i))return n;if(r.type.is(t)&&n.push(r.node),!r.nextSibling())return null==i?n:[]}}function Dh(e,t,a=t.length-1){for(let i=e.parent;a>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[a]&&t[a]!=i.name)return!1;a--}}return!0}class Bh{constructor(e,t,a,i){this.parent=e,this.buffer=t,this.index=a,this.start=i}}class Lh extends Nh{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,a){super(),this.context=e,this._parent=t,this.index=a,this.type=e.buffer.set.types[e.buffer.buffer[a]]}child(e,t,a){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,a);return r<0?null:new Lh(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,a=0){if(a&xh.ExcludeBuffers)return null;let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new Lh(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Lh(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Lh(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:a}=this.context,i=this.index+4,r=a.buffer[this.index+3];if(r>i){let n=a.buffer[this.index+1];e.push(a.slice(i,r,n)),t.push(0)}return new Ch(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Ih(e){if(!e.length)return null;let t=0,a=e[0];for(let i=1;i<e.length;i++){let r=e[i];(r.from>a.from||r.to<a.to)&&(a=r,t=i)}let i=a instanceof Eh&&a.index<0?null:a.parent,r=e.slice();return i?r[t]=i:r.splice(t,1),new Fh(r,a)}class Fh{constructor(e,t){this.heads=e,this.node=t}get next(){return Ih(this.heads)}}class _h{get name(){return this.type.name}constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof Eh)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:a,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=a+i.buffer[e+1],this.to=a+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof Eh?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,a){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,a,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,a);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,a=this.mode){return this.buffer?!(a&xh.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,a))}parent(){if(!this.buffer)return this.yieldNode(this.mode&xh.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&xh.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,a=this.stack.length-1;if(e<0){let e=a<0?0:this.stack[a]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(a<0?t.buffer.length:t.buffer[this.stack[a]+3]))return this.yieldBuf(e)}return a<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,a,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(i.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:a}=i)}else({index:t,_parent:a}=this._tree);for(;a;({index:t,_parent:a}=a))if(t>-1)for(let i=t+e,r=e<0?-1:a._tree.children.length;i!=r;i+=e){let e=a._tree.children[i];if(this.mode&xh.IncludeAnonymous||e instanceof Ah||!e.type.isAnonymous||zh(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,a=0;if(e&&e.context==this.buffer)e:for(let i=this.index,r=this.stack.length;r>=0;){for(let n=e;n;n=n._parent)if(n.index==i){if(i==this.index)return n;t=n,a=r+1;break e}i=this.stack[--r]}for(let e=a;e<this.stack.length;e++)t=new Lh(this.buffer,t,this.stack[e]);return this.bufferNode=new Lh(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let a=0;;){let i=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){a++;continue}this.type.isAnonymous||(i=!0)}for(;i&&t&&t(this),i=this.type.isAnonymous,!this.nextSibling();){if(!a)return;this.parent(),a--,i=!0}}}matchContext(e){if(!this.buffer)return Dh(this.node,e);let{buffer:t}=this.buffer,{types:a}=t.set;for(let i=e.length-1,r=this.stack.length-1;i>=0;r--){if(r<0)return Dh(this.node,e,i);let n=a[t.buffer[this.stack[r]]];if(!n.isAnonymous){if(e[i]&&e[i]!=n.name)return!1;i--}}return!0}}function zh(e){return e.children.some((e=>e instanceof Ah||!e.type.isAnonymous||zh(e)))}const jh=new WeakMap;function Hh(e,t){if(!e.isAnonymous||t instanceof Ah||t.type!=e)return 1;let a=jh.get(t);if(null==a){a=1;for(let i of t.children){if(i.type!=e||!(i instanceof Ch)){a=1;break}a+=Hh(e,i)}jh.set(t,a)}return a}function Vh(e,t,a,i,r,n,s,o,l){let c=0;for(let a=i;a<r;a++)c+=Hh(e,t[a]);let f=Math.ceil(1.5*c/8),u=[],h=[];return function t(a,i,r,s,o){for(let c=r;c<s;){let r=c,d=i[c],g=Hh(e,a[c]);for(c++;c<s;c++){let t=Hh(e,a[c]);if(g+t>=f)break;g+=t}if(c==r+1){if(g>f){let e=a[r];t(e.children,e.positions,0,e.children.length,i[r]+o);continue}u.push(a[r])}else{let t=i[c-1]+a[c-1].length-d;u.push(Vh(e,a,i,r,c,d,t,null,l))}h.push(d+o-n)}}(t,a,i,r,0),(o||l)(u,h,s)}class qh{constructor(){this.map=new WeakMap}setBuffer(e,t,a){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(t,a)}getBuffer(e,t){let a=this.map.get(e);return a&&a.get(t)}set(e,t){e instanceof Lh?this.setBuffer(e.context.buffer,e.index,t):e instanceof Eh&&this.map.set(e.tree,t)}get(e){return e instanceof Lh?this.getBuffer(e.context.buffer,e.index):e instanceof Eh?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Wh{constructor(e,t,a,i,r=!1,n=!1){this.from=e,this.to=t,this.tree=a,this.offset=i,this.open=(r?1:0)|(n?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],a=!1){let i=[new Wh(0,e.length,e,0,!1,a)];for(let a of t)a.to>e.length&&i.push(a);return i}static applyChanges(e,t,a=128){if(!t.length)return e;let i=[],r=1,n=e.length?e[0]:null;for(let s=0,o=0,l=0;;s++){let c=s<t.length?t[s]:null,f=c?c.fromA:1e9;if(f-o>=a)for(;n&&n.from<f;){let t=n;if(o>=t.from||f<=t.to||l){let e=Math.max(t.from,o)-l,a=Math.min(t.to,f)-l;t=e>=a?null:new Wh(e,a,t.tree,t.offset+l,s>0,!!c)}if(t&&i.push(t),n.to>f)break;n=r<e.length?e[r++]:null}if(!c)break;o=c.toA,l=c.toA-c.toB}return i}}class Gh{startParse(e,t,a){return"string"==typeof e&&(e=new Uh(e)),a=a?a.length?a.map((e=>new mh(e.from,e.to))):[new mh(0,0)]:[new mh(0,e.length)],this.createParse(e,t||[],a)}parse(e,t,a){let i=this.startParse(e,t,a);for(;;){let e=i.advance();if(e)return e}}}class Uh{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new yh({perNode:!0});let $h=0;class Qh{constructor(e,t,a){this.set=e,this.base=t,this.modified=a,this.id=$h++}static define(e){if(null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new Qh([],null,[]);if(t.set.push(t),e)for(let a of e.set)t.set.push(a);return t}static defineModifier(){let e=new Xh;return t=>t.modified.indexOf(e)>-1?t:Xh.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let Kh=0;class Xh{constructor(){this.instances=[],this.id=Kh++}static get(e,t){if(!t.length)return e;let a=t[0].instances.find((a=>{return a.base==e&&(i=t,r=a.modified,i.length==r.length&&i.every(((e,t)=>e==r[t])));var i,r}));if(a)return a;let i=[],r=new Qh(i,e,t);for(let e of t)e.instances.push(r);let n=function(e){let t=[[]];for(let a=0;a<e.length;a++)for(let i=0,r=t.length;i<r;i++)t.push(t[i].concat(e[a]));return t.sort(((e,t)=>t.length-e.length))}(t);for(let t of e.set)if(!t.modified.length)for(let e of n)i.push(Xh.get(t,e));return r}}function Yh(e){let t=Object.create(null);for(let a in e){let i=e[a];Array.isArray(i)||(i=[i]);for(let e of a.split(" "))if(e){let a=[],r=2,n=e;for(let t=0;;){if("..."==n&&t>0&&t+3==e.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!i)throw new RangeError("Invalid path: "+e);if(a.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),t+=i[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){r=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);n=e.slice(t)}let s=a.length-1,o=a[s];if(!o)throw new RangeError("Invalid path: "+e);let l=new Zh(i,r,s>0?a.slice(0,s):null);t[o]=l.sort(t[o])}}return Jh.add(t)}const Jh=new yh;class Zh{constructor(e,t,a,i){this.tags=e,this.mode=t,this.context=a,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function ed(e,t){let a=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)a[e.id]=t.class;else a[t.tag.id]=t.class;let{scope:i,all:r=null}=t||{};return{style:e=>{let t=r;for(let i of e)for(let e of i.set){let i=a[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function td(e,t,a,i=0,r=e.length){let n=new ad(i,Array.isArray(t)?t:[t],a);n.highlightRange(e.cursor(),i,r,"",n.highlighters),n.flush(r)}Zh.empty=new Zh([],2,null);class ad{constructor(e,t,a){this.at=e,this.highlighters=t,this.span=a,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,a,i,r){let{type:n,from:s,to:o}=e;if(s>=a||o<=t)return;n.isTop&&(r=this.highlighters.filter((e=>!e.scope||e.scope(n))));let l=i,c=function(e){let t=e.type.prop(Jh);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||Zh.empty,f=function(e,t){let a=null;for(let i of e){let e=i.style(t);e&&(a=a?a+" "+e:e)}return a}(r,c.tags);if(f&&(l&&(l+=" "),l+=f,1==c.mode&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(t,s),l),c.opaque)return;let u=e.tree&&e.tree.prop(yh.mounted);if(u&&u.overlay){let n=e.node.enter(u.overlay[0].from+s,1),c=this.highlighters.filter((e=>!e.scope||e.scope(u.tree.type))),f=e.firstChild();for(let h=0,d=s;;h++){let g=h<u.overlay.length?u.overlay[h]:null,p=g?g.from+s:o,m=Math.max(t,d),y=Math.min(a,p);if(m<y&&f)for(;e.from<y&&(this.highlightRange(e,m,y,i,r),this.startSpan(Math.min(y,e.to),l),!(e.to>=p)&&e.nextSibling()););if(!g||p>a)break;d=g.to+s,d>t&&(this.highlightRange(n.cursor(),Math.max(t,g.from+s),Math.min(a,d),"",c),this.startSpan(Math.min(a,d),l))}f&&e.parent()}else if(e.firstChild()){u&&(i="");do{if(!(e.to<=t)){if(e.from>=a)break;this.highlightRange(e,t,a,i,r),this.startSpan(Math.min(a,e.to),l)}}while(e.nextSibling());e.parent()}}}const id=Qh.define,rd=id(),nd=id(),sd=id(nd),od=id(nd),ld=id(),cd=id(ld),fd=id(ld),ud=id(),hd=id(ud),dd=id(),gd=id(),pd=id(),md=id(pd),yd=id(),vd={comment:rd,lineComment:id(rd),blockComment:id(rd),docComment:id(rd),name:nd,variableName:id(nd),typeName:sd,tagName:id(sd),propertyName:od,attributeName:id(od),className:id(nd),labelName:id(nd),namespace:id(nd),macroName:id(nd),literal:ld,string:cd,docString:id(cd),character:id(cd),attributeValue:id(cd),number:fd,integer:id(fd),float:id(fd),bool:id(ld),regexp:id(ld),escape:id(ld),color:id(ld),url:id(ld),keyword:dd,self:id(dd),null:id(dd),atom:id(dd),unit:id(dd),modifier:id(dd),operatorKeyword:id(dd),controlKeyword:id(dd),definitionKeyword:id(dd),moduleKeyword:id(dd),operator:gd,derefOperator:id(gd),arithmeticOperator:id(gd),logicOperator:id(gd),bitwiseOperator:id(gd),compareOperator:id(gd),updateOperator:id(gd),definitionOperator:id(gd),typeOperator:id(gd),controlOperator:id(gd),punctuation:pd,separator:id(pd),bracket:md,angleBracket:id(md),squareBracket:id(md),paren:id(md),brace:id(md),content:ud,heading:hd,heading1:id(hd),heading2:id(hd),heading3:id(hd),heading4:id(hd),heading5:id(hd),heading6:id(hd),contentSeparator:id(ud),list:id(ud),quote:id(ud),emphasis:id(ud),strong:id(ud),link:id(ud),monospace:id(ud),strikethrough:id(ud),inserted:id(),deleted:id(),changed:id(),invalid:id(),meta:yd,documentMeta:id(yd),annotation:id(yd),processingInstruction:id(yd),definition:Qh.defineModifier(),constant:Qh.defineModifier(),function:Qh.defineModifier(),standard:Qh.defineModifier(),local:Qh.defineModifier(),special:Qh.defineModifier()};var bd;ed([{tag:vd.link,class:"tok-link"},{tag:vd.heading,class:"tok-heading"},{tag:vd.emphasis,class:"tok-emphasis"},{tag:vd.strong,class:"tok-strong"},{tag:vd.keyword,class:"tok-keyword"},{tag:vd.atom,class:"tok-atom"},{tag:vd.bool,class:"tok-bool"},{tag:vd.url,class:"tok-url"},{tag:vd.labelName,class:"tok-labelName"},{tag:vd.inserted,class:"tok-inserted"},{tag:vd.deleted,class:"tok-deleted"},{tag:vd.literal,class:"tok-literal"},{tag:vd.string,class:"tok-string"},{tag:vd.number,class:"tok-number"},{tag:[vd.regexp,vd.escape,vd.special(vd.string)],class:"tok-string2"},{tag:vd.variableName,class:"tok-variableName"},{tag:vd.local(vd.variableName),class:"tok-variableName tok-local"},{tag:vd.definition(vd.variableName),class:"tok-variableName tok-definition"},{tag:vd.special(vd.variableName),class:"tok-variableName2"},{tag:vd.definition(vd.propertyName),class:"tok-propertyName tok-definition"},{tag:vd.typeName,class:"tok-typeName"},{tag:vd.namespace,class:"tok-namespace"},{tag:vd.className,class:"tok-className"},{tag:vd.macroName,class:"tok-macroName"},{tag:vd.propertyName,class:"tok-propertyName"},{tag:vd.operator,class:"tok-operator"},{tag:vd.comment,class:"tok-comment"},{tag:vd.meta,class:"tok-meta"},{tag:vd.invalid,class:"tok-invalid"},{tag:vd.punctuation,class:"tok-punctuation"}]);const wd=new yh;const Sd=new yh;class kd{constructor(e,t,a=[],i=""){this.data=e,this.name=i,fs.prototype.hasOwnProperty("tree")||Object.defineProperty(fs.prototype,"tree",{get(){return Cd(this)}}),this.parser=t,this.extension=[Bd.of(this),fs.languageData.of(((e,t,a)=>{let i=Od(e,t,a),r=i.type.prop(wd);if(!r)return[];let n=e.facet(r),s=i.type.prop(Sd);if(s){let r=i.resolve(t-i.from,a);for(let t of s)if(t.test(r,e)){let a=e.facet(t.facet);return"replace"==t.type?a:a.concat(n)}}return n}))].concat(a)}isActiveAt(e,t,a=-1){return Od(e,t,a).type.prop(wd)==this.data}findRegions(e){let t=e.facet(Bd);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let a=[],i=(e,t)=>{if(e.prop(wd)==this.data)return void a.push({from:t,to:t+e.length});let r=e.prop(yh.mounted);if(r){if(r.tree.prop(wd)==this.data){if(r.overlay)for(let e of r.overlay)a.push({from:e.from+t,to:e.to+t});else a.push({from:t,to:t+e.length});return}if(r.overlay){let e=a.length;if(i(r.tree,r.overlay[0].from+t),a.length>e)return}}for(let a=0;a<e.children.length;a++){let r=e.children[a];r instanceof Ch&&i(r,e.positions[a]+t)}};return i(Cd(e),0),a}get allowsNesting(){return!0}}function Od(e,t,a){let i=e.facet(Bd),r=Cd(e).topNode;if(!i||i.allowsNesting)for(let e=r;e;e=e.enter(t,a,xh.ExcludeBuffers))e.type.isTop&&(r=e);return r}kd.setState=Zn.define();class xd extends kd{constructor(e,t,a){super(e,t,[],a),this.parser=t}static define(e){let t=(a=e.languageData,Mn.define({combine:a?e=>e.concat(a):void 0}));var a;return new xd(t,e.parser.configure({props:[wd.add((e=>e.isTop?t:void 0))]}),e.name)}configure(e,t){return new xd(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Cd(e){let t=e.field(kd.state,!1);return t?t.tree:Ch.empty}class Md{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let a=this.cursorPos-this.string.length;return e<a||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-a,t-a)}}let Ad=null;class Td{constructor(e,t,a=[],i,r,n,s,o){this.parser=e,this.state=t,this.fragments=a,this.tree=i,this.treeLen=r,this.viewport=n,this.skipped=s,this.scheduleOn=o,this.parse=null,this.tempSkipped=[]}static create(e,t,a){return new Td(e,t,[],Ch.empty,0,a,[],null)}startParse(){return this.parser.startParse(new Md(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=Ch.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var a;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i){if(this.fragments=this.withoutTempSkipped(Wh.addTree(i,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(a=this.parse.stoppedAt)&&void 0!==a?a:this.state.doc.length,this.tree=i,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Wh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=Ad;Ad=this;try{return e()}finally{Ad=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Pd(e,t.from,t.to);return e}changes(e,t){let{fragments:a,tree:i,treeLen:r,viewport:n,skipped:s}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,a,i,r)=>t.push({fromA:e,toA:a,fromB:i,toB:r}))),a=Wh.applyChanges(a,t),i=Ch.empty,r=0,n={from:e.mapPos(n.from,-1),to:e.mapPos(n.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let a=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);a<i&&s.push({from:a,to:i})}}}return new Td(this.parser,t,a,i,r,n,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:a,to:i}=this.skipped[t];a<e.to&&i>e.from&&(this.fragments=Pd(this.fragments,a,i),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Gh{createParse(t,a,i){let r=i[0].from,n=i[i.length-1].to;return{parsedPos:r,advance(){let t=Ad;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=n,new Ch(wh.none,[],[],n-r)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return Ad}}function Pd(e,t,a){return Wh.applyChanges(e,[{fromA:t,toA:a,fromB:t,toB:a}])}class Nd{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),a=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,a)||t.takeTree(),new Nd(t)}static init(e){let t=Math.min(3e3,e.doc.length),a=Td.create(e.facet(Bd).parser,e,{from:0,to:t});return a.work(20,t)||a.takeTree(),new Nd(a)}}kd.state=Dn.define({create:Nd.init,update(e,t){for(let e of t.effects)if(e.is(kd.setState))return e.value;return t.startState.facet(Bd)!=t.state.facet(Bd)?Nd.init(t.state):e.apply(t)}});let Ed=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(Ed=e=>{let t=-1,a=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(a):cancelIdleCallback(t)});const Rd="undefined"!=typeof navigator&&(null===(bd=navigator.scheduling)||void 0===bd?void 0:bd.isInputPending)?()=>navigator.scheduling.isInputPending():null,Dd=Rl.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(kd.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(kd.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=Ed(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:a,viewport:{to:i}}=this.view,r=a.field(kd.state);if(r.tree==r.context.tree&&r.context.isDone(i+1e5))return;let n=Date.now()+Math.min(this.chunkBudget,100,e&&!Rd?Math.max(25,e.timeRemaining()-5):1e9),s=r.context.treeLen<i&&a.doc.length>i+1e3,o=r.context.work((()=>Rd&&Rd()||Date.now()>n),i+(s?0:1e5));this.chunkBudget-=Date.now()-t,(o||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:kd.setState.of(new Nd(r.context))})),this.chunkBudget>0&&(!o||s)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>Tl(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Bd=Mn.define({combine:e=>e.length?e[0]:null,enables:e=>[kd.state,Dd,Nf.contentAttributes.compute([e],(t=>{let a=t.facet(e);return a&&a.name?{"data-language":a.name}:{}}))]});class Ld{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Id=Mn.define(),Fd=Mn.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some((e=>e!=t[0])))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function _d(e){let t=e.facet(Fd);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function zd(e,t){let a="",i=e.tabSize,r=e.facet(Fd)[0];if("\t"==r){for(;t>=i;)a+="\t",t-=i;r=" "}for(let e=0;e<t;e++)a+=r;return a}function jd(e,t){e instanceof fs&&(e=new Hd(e));for(let a of e.state.facet(Id)){let i=a(e,t);if(void 0!==i)return i}let a=Cd(e.state);return a.length>=t?function(e,t,a){let i=t.resolveStack(a),r=i.node.enterUnfinishedNodesBefore(a);if(r!=i.node){let e=[];for(let t=r;t!=i.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)i={node:e[t],next:i}}return qd(i,e,a)}(e,a,t):null}class Hd{constructor(e,t={}){this.state=e,this.options=t,this.unit=_d(e)}lineAt(e,t=1){let a=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:r}=this.options;return null!=i&&i>=a.from&&i<=a.to?r&&i==e?{text:"",from:e}:(t<0?i<e:i<=e)?{text:a.text.slice(i-a.from),from:i}:{text:a.text.slice(0,i-a.from),from:a.from}:a}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:a,from:i}=this.lineAt(e,t);return a.slice(e-i,Math.min(a.length,e+100-i))}column(e,t=1){let{text:a,from:i}=this.lineAt(e,t),r=this.countColumn(a,e-i),n=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return n>-1&&(r+=n-this.countColumn(a,a.search(/\S|$/))),r}countColumn(e,t=e.length){return Ts(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:a,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(i);if(e>-1)return e}return this.countColumn(a,a.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Vd=new yh;function qd(e,t,a){for(let i=e;i;i=i.next){let e=Wd(i.node);if(e)return e(Ud.create(t,a,i))}return 0}function Wd(e){let t=e.type.prop(Vd);if(t)return t;let a,i=e.firstChild;if(i&&(a=i.type.prop(yh.closedBy))){let t=e.lastChild,i=t&&a.indexOf(t.name)>-1;return e=>function(e,t,a,i,r){let n=e.textAfter,s=n.match(/^\s*/)[0].length,o=i&&n.slice(s,s+i.length)==i||r==e.pos+s,l=t?function(e){let t=e.node,a=t.childAfter(t.from),i=t.lastChild;if(!a)return null;let r=e.options.simulateBreak,n=e.state.doc.lineAt(a.from),s=null==r||r<=n.from?n.to:Math.min(n.to,r);for(let e=a.to;;){let r=t.childAfter(e);if(!r||r==i)return null;if(!r.type.isSkipped)return r.from<s?a:null;e=r.to}}(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*a)}(e,!0,1,void 0,i&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?Gd:null}function Gd(){return 0}class Ud extends Hd{constructor(e,t,a){super(e.state,e.options),this.base=e,this.pos=t,this.context=a}get node(){return this.context.node}static create(e,t,a){return new Ud(e,t,a)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let a=e.resolve(t.from);for(;a.parent&&a.parent.from==a.from;)a=a.parent;if($d(a,e))break;t=this.state.doc.lineAt(a.from)}return this.lineIndent(t.from)}continue(){return qd(this.context.next,this.base,this.pos)}}function $d(e,t){for(let a=t;a;a=a.parent)if(e==a)return!0;return!1}function Qd({except:e,units:t=1}={}){return a=>{let i=e&&e.test(a.textAfter);return a.baseIndent+(i?0:t*a.unit)}}const Kd=Mn.define(),Xd=new yh;function Yd(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function Jd(e,t,a){for(let i of e.facet(Kd)){let r=i(e,t,a);if(r)return r}return function(e,t,a){let i=Cd(e);if(i.length<a)return null;let r=null;for(let n=i.resolveStack(a,1);n;n=n.next){let s=n.node;if(s.to<=a||s.from>a)continue;if(r&&s.from<t)break;let o=s.type.prop(Xd);if(o&&(s.to<i.length-50||i.length==e.doc.length||!Yd(s))){let i=o(s,e);i&&i.from<=a&&i.from>=t&&i.to>a&&(r=i)}}return r}(e,t,a)}function Zd(e,t){let a=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);return a>=i?void 0:{from:a,to:i}}const eg=Zn.define({map:Zd}),tg=Zn.define({map:Zd});function ag(e){let t=[];for(let{head:a}of e.state.selection.ranges)t.some((e=>e.from<=a&&e.to>=a))||t.push(e.lineBlockAt(a));return t}const ig=Dn.define({create:()=>qo.none,update(e,t){e=e.map(t.changes);for(let a of t.effects)if(a.is(eg)&&!ng(e,a.value.from,a.value.to)){let{preparePlaceholder:i}=t.state.facet(fg),r=i?qo.replace({widget:new gg(i(t.state,a.value))}):dg;e=e.update({add:[r.range(a.value.from,a.value.to)]})}else a.is(tg)&&(e=e.update({filter:(e,t)=>a.value.from!=e||a.value.to!=t,filterFrom:a.value.from,filterTo:a.value.to}));if(t.selection){let a=!1,{head:i}=t.selection.main;e.between(i,i,((e,t)=>{e<i&&t>i&&(a=!0)})),a&&(e=e.update({filterFrom:i,filterTo:i,filter:(e,t)=>t<=i||e>=i}))}return e},provide:e=>Nf.decorations.from(e),toJSON(e,t){let a=[];return e.between(0,t.doc.length,((e,t)=>{a.push(e,t)})),a},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let a=0;a<e.length;){let i=e[a++],r=e[a++];if("number"!=typeof i||"number"!=typeof r)throw new RangeError("Invalid JSON for fold state");t.push(dg.range(i,r))}return qo.set(t,!0)}});function rg(e,t,a){var i;let r=null;return null===(i=e.field(ig,!1))||void 0===i||i.between(t,a,((e,t)=>{(!r||r.from>e)&&(r={from:e,to:t})})),r}function ng(e,t,a){let i=!1;return e.between(t,t,((e,r)=>{e==t&&r==a&&(i=!0)})),i}function sg(e,t){return e.field(ig,!1)?t:t.concat(Zn.appendConfig.of(ug()))}function og(e,t,a=!0){let i=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return Nf.announce.of(`${e.state.phrase(a?"Folded lines":"Unfolded lines")} ${i} ${e.state.phrase("to")} ${r}.`)}const lg=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of ag(e)){let a=Jd(e.state,t.from,t.to);if(a)return e.dispatch({effects:sg(e.state,[eg.of(a),og(e,a)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ig,!1))return!1;let t=[];for(let a of ag(e)){let i=rg(e.state,a.from,a.to);i&&t.push(tg.of(i),og(e,i,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,a=[];for(let i=0;i<t.doc.length;){let r=e.lineBlockAt(i),n=Jd(t,r.from,r.to);n&&a.push(eg.of(n)),i=(n?e.lineBlockAt(n.to):r).to+1}return a.length&&e.dispatch({effects:sg(e.state,a)}),!!a.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(ig,!1);if(!t||!t.size)return!1;let a=[];return t.between(0,e.state.doc.length,((e,t)=>{a.push(tg.of({from:e,to:t}))})),e.dispatch({effects:a}),!0}}],cg={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},fg=Mn.define({combine:e=>us(e,cg)});function ug(e){let t=[ig,yg];return e&&t.push(fg.of(e)),t}function hg(e,t){let{state:a}=e,i=a.facet(fg),r=t=>{let a=e.lineBlockAt(e.posAtDOM(t.target)),i=rg(e.state,a.from,a.to);i&&e.dispatch({effects:tg.of(i)}),t.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(e,r,t);let n=document.createElement("span");return n.textContent=i.placeholderText,n.setAttribute("aria-label",a.phrase("folded code")),n.title=a.phrase("unfold"),n.className="cm-foldPlaceholder",n.onclick=r,n}const dg=qo.replace({widget:new class extends Ho{toDOM(e){return hg(e,null)}}});class gg extends Ho{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return hg(e,this.value)}}const pg={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class mg extends $u{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}const yg=Nf.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class vg{constructor(e,t){let a;function i(e){let t=Ds.newName();return(a||(a=Object.create(null)))["."+t]=e,t}this.specs=e;const r="string"==typeof t.all?t.all:t.all?i(t.all):void 0,n=t.scope;this.scope=n instanceof kd?e=>e.prop(wd)==n.data:n?e=>e==n:void 0,this.style=ed(e.map((e=>({tag:e.tag,class:e.class||i(Object.assign({},e,{tag:null}))}))),{all:r}).style,this.module=a?new Ds(a):null,this.themeType=t.themeType}static define(e,t){return new vg(e,t||{})}}const bg=Mn.define(),wg=Mn.define({combine:e=>e.length?[e[0]]:null});function Sg(e){let t=e.facet(bg);return t.length?t:e.facet(wg)}function kg(e,t){let a,i=[xg];return e instanceof vg&&(e.module&&i.push(Nf.styleModule.of(e.module)),a=e.themeType),(null==t?void 0:t.fallback)?i.push(wg.of(e)):a?i.push(bg.computeN([Nf.darkTheme],(t=>t.facet(Nf.darkTheme)==("dark"==a)?[e]:[]))):i.push(bg.of(e)),i}class Og{constructor(e){this.markCache=Object.create(null),this.tree=Cd(e.state),this.decorations=this.buildDeco(e,Sg(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Cd(e.state),a=Sg(e.state),i=a!=Sg(e.startState),{viewport:r}=e.view,n=e.changes.mapPos(this.decoratedTo,1);t.length<r.to&&!i&&t.type==this.tree.type&&n>=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=n):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,a),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return qo.none;let a=new ys;for(let{from:i,to:r}of e.visibleRanges)td(this.tree,t,((e,t,i)=>{a.add(e,t,this.markCache[i]||(this.markCache[i]=qo.mark({class:i})))}),i,r);return a.finish()}}const xg=Ln.high(Rl.fromClass(Og,{decorations:e=>e.decorations})),Cg=vg.define([{tag:vd.meta,color:"#404740"},{tag:vd.link,textDecoration:"underline"},{tag:vd.heading,textDecoration:"underline",fontWeight:"bold"},{tag:vd.emphasis,fontStyle:"italic"},{tag:vd.strong,fontWeight:"bold"},{tag:vd.strikethrough,textDecoration:"line-through"},{tag:vd.keyword,color:"#708"},{tag:[vd.atom,vd.bool,vd.url,vd.contentSeparator,vd.labelName],color:"#219"},{tag:[vd.literal,vd.inserted],color:"#164"},{tag:[vd.string,vd.deleted],color:"#a11"},{tag:[vd.regexp,vd.escape,vd.special(vd.string)],color:"#e40"},{tag:vd.definition(vd.variableName),color:"#00f"},{tag:vd.local(vd.variableName),color:"#30a"},{tag:[vd.typeName,vd.namespace],color:"#085"},{tag:vd.className,color:"#167"},{tag:[vd.special(vd.variableName),vd.macroName],color:"#256"},{tag:vd.definition(vd.propertyName),color:"#00c"},{tag:vd.comment,color:"#940"},{tag:vd.invalid,color:"#f00"}]),Mg=Nf.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ag=1e4,Tg="()[]{}",Pg=Mn.define({combine:e=>us(e,{afterCursor:!0,brackets:Tg,maxScanDistance:Ag,renderMatch:Rg})}),Ng=qo.mark({class:"cm-matchingBracket"}),Eg=qo.mark({class:"cm-nonmatchingBracket"});function Rg(e){let t=[],a=e.matched?Ng:Eg;return t.push(a.range(e.start.from,e.start.to)),e.end&&t.push(a.range(e.end.from,e.end.to)),t}const Dg=Dn.define({create:()=>qo.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let a=[],i=t.state.facet(Pg);for(let e of t.state.selection.ranges){if(!e.empty)continue;let r=_g(t.state,e.head,-1,i)||e.head>0&&_g(t.state,e.head-1,1,i)||i.afterCursor&&(_g(t.state,e.head,1,i)||e.head<t.state.doc.length&&_g(t.state,e.head+1,-1,i));r&&(a=a.concat(i.renderMatch(r,t.state)))}return qo.set(a,!0)},provide:e=>Nf.decorations.from(e)}),Bg=[Dg,Mg],Lg=new yh;function Ig(e,t,a){let i=e.prop(t<0?yh.openedBy:yh.closedBy);if(i)return i;if(1==e.name.length){let i=a.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[a[i+t]]}return null}function Fg(e){let t=e.type.prop(Lg);return t?t(e.node):e}function _g(e,t,a,i={}){let r=i.maxScanDistance||Ag,n=i.brackets||Tg,s=Cd(e),o=s.resolveInner(t,a);for(let e=o;e;e=e.parent){let i=Ig(e.type,a,n);if(i&&e.from<e.to){let r=Fg(e);if(r&&(a>0?t>=r.from&&t<r.to:t>r.from&&t<=r.to))return zg(0,0,a,e,r,i,n)}}return function(e,t,a,i,r,n,s){let o=a<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(o);if(l<0||l%2==0!=a>0)return null;let c={from:a<0?t-1:t,to:a>0?t+1:t},f=e.doc.iterRange(t,a>0?e.doc.length:0),u=0;for(let e=0;!f.next().done&&e<=n;){let n=f.value;a<0&&(e+=n.length);let o=t+e*a;for(let e=a>0?0:n.length-1,t=a>0?n.length:-1;e!=t;e+=a){let t=s.indexOf(n[e]);if(!(t<0||i.resolveInner(o+e,1).type!=r))if(t%2==0==a>0)u++;else{if(1==u)return{start:c,end:{from:o+e,to:o+e+1},matched:t>>1==l>>1};u--}}a>0&&(e+=n.length)}return f.done?{start:c,matched:!1}:null}(e,t,a,s,o.type,r,n)}function zg(e,t,a,i,r,n,s){let o=i.parent,l={from:r.from,to:r.to},c=0,f=null==o?void 0:o.cursor();if(f&&(a<0?f.childBefore(i.from):f.childAfter(i.to)))do{if(a<0?f.to<=i.from:f.from>=i.to){if(0==c&&n.indexOf(f.type.name)>-1&&f.from<f.to){let e=Fg(f);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(Ig(f.type,a,s))c++;else if(Ig(f.type,-a,s)){if(0==c){let e=Fg(f);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}c--}}}while(a<0?f.prevSibling():f.nextSibling());return{start:l,matched:!1}}const jg=Object.create(null),Hg=[wh.none],Vg=[],qg=Object.create(null),Wg=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Wg[e]=Ug(jg,t);function Gg(e,t){Vg.indexOf(e)>-1||(Vg.push(e),console.warn(t))}function Ug(e,t){let a=[];for(let i of t.split(" ")){let t=[];for(let a of i.split(".")){let i=e[a]||vd[a];i?"function"==typeof i?t.length?t=t.map(i):Gg(a,`Modifier ${a} used at start of tag`):t.length?Gg(a,`Tag ${a} used as modifier`):t=Array.isArray(i)?i:[i]:Gg(a,`Unknown highlighting tag ${a}`)}for(let e of t)a.push(e)}if(!a.length)return 0;let i=t.replace(/ /g,"_"),r=i+" "+a.map((e=>e.id)),n=qg[r];if(n)return n.id;let s=qg[r]=wh.define({id:Hg.length,name:i,props:[Yh({[i]:a})]});return Hg.push(s),s.id}function $g(e,t){return({state:a,dispatch:i})=>{if(a.readOnly)return!1;let r=e(t,a);return!!r&&(i(a.update(r)),!0)}}Jo.RTL,Jo.LTR;const Qg=$g(ep,0),Kg=$g(Zg,0),Xg=$g(((e,t)=>Zg(e,t,function(e){let t=[];for(let a of e.selection.ranges){let i=e.doc.lineAt(a.from),r=a.to<=i.to?i:e.doc.lineAt(a.to),n=t.length-1;n>=0&&t[n].to>i.from?t[n].to=r.to:t.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return t}(t))),0);function Yg(e,t){let a=e.languageDataAt("commentTokens",t);return a.length?a[0]:{}}const Jg=50;function Zg(e,t,a=t.selection.ranges){let i=a.map((e=>Yg(t,e.from).block));if(!i.every((e=>e)))return null;let r=a.map(((e,a)=>function(e,{open:t,close:a},i,r){let n,s,o=e.sliceDoc(i-Jg,i),l=e.sliceDoc(r,r+Jg),c=/\s*$/.exec(o)[0].length,f=/^\s*/.exec(l)[0].length,u=o.length-c;if(o.slice(u-t.length,u)==t&&l.slice(f,f+a.length)==a)return{open:{pos:i-c,margin:c&&1},close:{pos:r+f,margin:f&&1}};r-i<=2*Jg?n=s=e.sliceDoc(i,r):(n=e.sliceDoc(i,i+Jg),s=e.sliceDoc(r-Jg,r));let h=/^\s*/.exec(n)[0].length,d=/\s*$/.exec(s)[0].length,g=s.length-d-a.length;return n.slice(h,h+t.length)==t&&s.slice(g,g+a.length)==a?{open:{pos:i+h+t.length,margin:/\s/.test(n.charAt(h+t.length))?1:0},close:{pos:r-d-a.length,margin:/\s/.test(s.charAt(g-1))?1:0}}:null}(t,i[a],e.from,e.to)));if(2!=e&&!r.every((e=>e)))return{changes:t.changes(a.map(((e,t)=>r[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}])))};if(1!=e&&r.some((e=>e))){let e=[];for(let t,a=0;a<r.length;a++)if(t=r[a]){let r=i[a],{open:n,close:s}=t;e.push({from:n.pos-r.open.length,to:n.pos+n.margin},{from:s.pos-s.margin,to:s.pos+r.close.length})}return{changes:e}}return null}function ep(e,t,a=t.selection.ranges){let i=[],r=-1;for(let{from:e,to:n}of a){let a=i.length,s=1e9,o=Yg(t,e).line;if(o){for(let a=e;a<=n;){let l=t.doc.lineAt(a);if(l.from>r&&(e==n||n>l.from)){r=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,a=l.text.slice(e,e+o.length)==o?e:-1;e<l.text.length&&e<s&&(s=e),i.push({line:l,comment:a,token:o,indent:e,empty:t,single:!1})}a=l.to+1}if(s<1e9)for(let e=a;e<i.length;e++)i[e].indent<i[e].line.text.length&&(i[e].indent=s);i.length==a+1&&(i[a].single=!0)}}if(2!=e&&i.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:a,indent:r,empty:n,single:s}of i)!s&&n||e.push({from:t.from+r,insert:a+" "});let a=t.changes(e);return{changes:a,selection:t.selection.map(a,1)}}if(1!=e&&i.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:a,token:r}of i)if(a>=0){let i=t.from+a,n=i+r.length;" "==t.text[n-t.from]&&n++,e.push({from:i,to:n})}return{changes:e}}return null}const tp=Xn.define(),ap=Xn.define(),ip=Mn.define(),rp=Mn.define({combine:e=>us(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(a,i)=>e(a,i)||t(a,i)})}),np=Dn.define({create:()=>Sp.empty,update(e,t){let a=t.state.facet(rp),i=t.annotation(tp);if(i){let r=up.fromTransaction(t,i.selection),n=i.side,s=0==n?e.undone:e.done;return s=r?hp(s,s.length,a.minDepth,r):mp(s,t.startState.selection),new Sp(0==n?i.rest:s,0==n?s:i.rest)}let r=t.annotation(ap);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(es.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let n=up.fromTransaction(t),s=t.annotation(es.time),o=t.annotation(es.userEvent);return n?e=e.addChanges(n,s,o,a,t):t.selection&&(e=e.addSelection(t.startState.selection,s,o,a.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Sp(e.done.map(up.fromJSON),e.undone.map(up.fromJSON))});function sp(e,t){return function({state:a,dispatch:i}){if(!t&&a.readOnly)return!1;let r=a.field(np,!1);if(!r)return!1;let n=r.pop(e,a,t);return!!n&&(i(n),!0)}}const op=sp(0,!1),lp=sp(1,!1),cp=sp(0,!0),fp=sp(1,!0);class up{constructor(e,t,a,i,r){this.changes=e,this.effects=t,this.mapped=a,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new up(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,a;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(a=this.startSelection)||void 0===a?void 0:a.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new up(e.changes&&pn.fromJSON(e.changes),[],e.mapped&&gn.fromJSON(e.mapped),e.startSelection&&On.fromJSON(e.startSelection),e.selectionsAfter.map(On.fromJSON))}static fromTransaction(e,t){let a=gp;for(let t of e.startState.facet(ip)){let i=t(e);i.length&&(a=a.concat(i))}return!a.length&&e.changes.empty?null:new up(e.changes.invert(e.startState.doc),a,void 0,t||e.startState.selection,gp)}static selection(e){return new up(void 0,gp,void 0,void 0,e)}}function hp(e,t,a,i){let r=t+1>a+20?t-a-1:0,n=e.slice(r,t);return n.push(i),n}function dp(e,t){return e.length?t.length?e.concat(t):e:t}const gp=[],pp=200;function mp(e,t){if(e.length){let a=e[e.length-1],i=a.selectionsAfter.slice(Math.max(0,a.selectionsAfter.length-pp));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),hp(e,e.length-1,1e9,a.setSelAfter(i)))}return[up.selection([t])]}function yp(e){let t=e[e.length-1],a=e.slice();return a[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),a}function vp(e,t){if(!e.length)return e;let a=e.length,i=gp;for(;a;){let r=bp(e[a-1],t,i);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,a);return t[a-1]=r,t}t=r.mapped,a--,i=r.selectionsAfter}return i.length?[up.selection(i)]:gp}function bp(e,t,a){let i=dp(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):gp,a);if(!e.changes)return up.selection(i);let r=e.changes.map(t),n=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(n):n;return new up(r,Zn.mapEffects(e.effects,t),s,e.startSelection.map(n),i)}const wp=/^(input\.type|delete)($|\.)/;class Sp{constructor(e,t,a=0,i=void 0){this.done=e,this.undone=t,this.prevTime=a,this.prevUserEvent=i}isolate(){return this.prevTime?new Sp(this.done,this.undone):this}addChanges(e,t,a,i,r){let n=this.done,s=n[n.length-1];return n=s&&s.changes&&!s.changes.empty&&e.changes&&(!a||wp.test(a))&&(!s.selectionsAfter.length&&t-this.prevTime<i.newGroupDelay&&i.joinToEvent(r,function(e,t){let a=[],i=!1;return e.iterChangedRanges(((e,t)=>a.push(e,t))),t.iterChangedRanges(((e,t,r,n)=>{for(let e=0;e<a.length;){let t=a[e++],s=a[e++];n>=t&&r<=s&&(i=!0)}})),i}(s.changes,e.changes))||"input.type.compose"==a)?hp(n,n.length-1,i.minDepth,new up(e.changes.compose(s.changes),dp(e.effects,s.effects),s.mapped,s.startSelection,gp)):hp(n,n.length,i.minDepth,e),new Sp(n,gp,t,a)}addSelection(e,t,a,i){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:gp;return r.length>0&&t-this.prevTime<i&&a==this.prevUserEvent&&a&&/^select($|\.)/.test(a)&&(n=r[r.length-1],s=e,n.ranges.length==s.ranges.length&&0===n.ranges.filter(((e,t)=>e.empty!=s.ranges[t].empty)).length)?this:new Sp(mp(this.done,e),this.undone,t,a);var n,s}addMapping(e){return new Sp(vp(this.done,e),vp(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,a){let i=0==e?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1],n=r.selectionsAfter[0]||t.selection;if(a&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:tp.of({side:e,rest:yp(i),selection:n}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let a=1==i.length?gp:i.slice(0,i.length-1);return r.mapped&&(a=vp(a,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:tp.of({side:e,rest:a,selection:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Sp.empty=new Sp(gp,gp);const kp=[{key:"Mod-z",run:op,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:lp,preventDefault:!0},{linux:"Ctrl-Shift-z",run:lp,preventDefault:!0},{key:"Mod-u",run:cp,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:fp,preventDefault:!0}];function Op(e,t){return On.create(e.ranges.map(t),e.mainIndex)}function xp(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function Cp({state:e,dispatch:t},a){let i=Op(e.selection,a);return!i.eq(e.selection,!0)&&(t(xp(e,i)),!0)}function Mp(e,t){return On.cursor(t?e.to:e.from)}function Ap(e,t){return Cp(e,(a=>a.empty?e.moveByChar(a,t):Mp(a,t)))}function Tp(e){return e.textDirectionAt(e.state.selection.main.head)==Jo.LTR}const Pp=e=>Ap(e,!Tp(e)),Np=e=>Ap(e,Tp(e));function Ep(e,t){return Cp(e,(a=>a.empty?e.moveByGroup(a,t):Mp(a,t)))}function Rp(e,t,a){if(t.type.prop(a))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Dp(e,t,a){let i,r,n=Cd(e).resolveInner(t.head),s=a?yh.closedBy:yh.openedBy;for(let i=t.head;;){let t=a?n.childAfter(i):n.childBefore(i);if(!t)break;Rp(e,t,s)?n=t:i=a?t.to:t.from}return r=n.type.prop(s)&&(i=a?_g(e,n.from,1):_g(e,n.to,-1))&&i.matched?a?i.end.to:i.end.from:a?n.to:n.from,On.cursor(r,a?-1:1)}function Bp(e,t){return Cp(e,(a=>{if(!a.empty)return Mp(a,t);let i=e.moveVertically(a,t);return i.head!=a.head?i:e.moveToLineBoundary(a,t)}))}"undefined"!=typeof Intl&&Intl.Segmenter;const Lp=e=>Bp(e,!1),Ip=e=>Bp(e,!0);function Fp(e){let t,a=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,i=0,r=0;if(a){for(let t of e.state.facet(Nf.scrollMargins)){let a=t(e);(null==a?void 0:a.top)&&(i=Math.max(null==a?void 0:a.top,i)),(null==a?void 0:a.bottom)&&(r=Math.max(null==a?void 0:a.bottom,r))}t=e.scrollDOM.clientHeight-i-r}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:i,marginBottom:r,selfScroll:a,height:Math.max(e.defaultLineHeight,t-5)}}function _p(e,t){let a,i=Fp(e),{state:r}=e,n=Op(r.selection,(a=>a.empty?e.moveVertically(a,t,i.height):Mp(a,t)));if(n.eq(r.selection))return!1;if(i.selfScroll){let t=e.coordsAtPos(r.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),o=s.top+i.marginTop,l=s.bottom-i.marginBottom;t&&t.top>o&&t.bottom<l&&(a=Nf.scrollIntoView(n.main.head,{y:"start",yMargin:t.top-o}))}return e.dispatch(xp(r,n),{effects:a}),!0}const zp=e=>_p(e,!1),jp=e=>_p(e,!0);function Hp(e,t,a){let i=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,a);if(r.head==t.head&&r.head!=(a?i.to:i.from)&&(r=e.moveToLineBoundary(t,a,!1)),!a&&r.head==i.from&&i.length){let a=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;a&&t.head!=i.from+a&&(r=On.cursor(i.from+a))}return r}function Vp(e,t){let a=Op(e.state.selection,(e=>{let a=t(e);return On.range(e.anchor,a.head,a.goalColumn,a.bidiLevel||void 0)}));return!a.eq(e.state.selection)&&(e.dispatch(xp(e.state,a)),!0)}function qp(e,t){return Vp(e,(a=>e.moveByChar(a,t)))}const Wp=e=>qp(e,!Tp(e)),Gp=e=>qp(e,Tp(e));function Up(e,t){return Vp(e,(a=>e.moveByGroup(a,t)))}function $p(e,t){return Vp(e,(a=>e.moveVertically(a,t)))}const Qp=e=>$p(e,!1),Kp=e=>$p(e,!0);function Xp(e,t){return Vp(e,(a=>e.moveVertically(a,t,Fp(e).height)))}const Yp=e=>Xp(e,!1),Jp=e=>Xp(e,!0),Zp=({state:e,dispatch:t})=>(t(xp(e,{anchor:0})),!0),em=({state:e,dispatch:t})=>(t(xp(e,{anchor:e.doc.length})),!0),tm=({state:e,dispatch:t})=>(t(xp(e,{anchor:e.selection.main.anchor,head:0})),!0),am=({state:e,dispatch:t})=>(t(xp(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function im(e,t){if(e.state.readOnly)return!1;let a="delete.selection",{state:i}=e,r=i.changeByRange((i=>{let{from:r,to:n}=i;if(r==n){let s=t(i);s<r?(a="delete.backward",s=rm(e,s,!1)):s>r&&(a="delete.forward",s=rm(e,s,!0)),r=Math.min(r,s),n=Math.max(n,s)}else r=rm(e,r,!1),n=rm(e,n,!0);return r==n?{range:i}:{changes:{from:r,to:n},range:On.cursor(r,r<i.head?-1:1)}}));return!r.changes.empty&&(e.dispatch(i.update(r,{scrollIntoView:!0,userEvent:a,effects:"delete.selection"==a?Nf.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function rm(e,t,a){if(e instanceof Nf)for(let i of e.state.facet(Nf.atomicRanges).map((t=>t(e))))i.between(t,t,((e,i)=>{e<t&&i>t&&(t=a?i:e)}));return t}const nm=(e,t)=>im(e,(a=>{let i,r,n=a.from,{state:s}=e,o=s.doc.lineAt(n);if(!t&&n>o.from&&n<o.from+200&&!/[^ \t]/.test(i=o.text.slice(0,n-o.from))){if("\t"==i[i.length-1])return n-1;let e=Ts(i,s.tabSize)%_d(s)||_d(s);for(let t=0;t<e&&" "==i[i.length-1-t];t++)n--;r=n}else r=rn(o.text,n-o.from,t,t)+o.from,r==n&&o.number!=(t?s.doc.lines:1)?r+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(o.text.slice(r-o.from,n-o.from))&&(r=rn(o.text,r-o.from,!1,!1)+o.from);return r})),sm=e=>nm(e,!1),om=e=>nm(e,!0),lm=(e,t)=>im(e,(a=>{let i=a.head,{state:r}=e,n=r.doc.lineAt(i),s=r.charCategorizer(i);for(let e=null;;){if(i==(t?n.to:n.from)){i==a.head&&n.number!=(t?r.doc.lines:1)&&(i+=t?1:-1);break}let o=rn(n.text,i-n.from,t)+n.from,l=n.text.slice(Math.min(i,o)-n.from,Math.max(i,o)-n.from),c=s(l);if(null!=e&&c!=e)break;" "==l&&i==a.head||(e=c),i=o}return i})),cm=e=>lm(e,!1);function fm(e){let t=[],a=-1;for(let i of e.selection.ranges){let r=e.doc.lineAt(i.from),n=e.doc.lineAt(i.to);if(i.empty||i.to!=n.from||(n=e.doc.lineAt(i.to-1)),a>=r.number){let e=t[t.length-1];e.to=n.to,e.ranges.push(i)}else t.push({from:r.from,to:n.to,ranges:[i]});a=n.number+1}return t}function um(e,t,a){if(e.readOnly)return!1;let i=[],r=[];for(let t of fm(e)){if(a?t.to==e.doc.length:0==t.from)continue;let n=e.doc.lineAt(a?t.to+1:t.from-1),s=n.length+1;if(a){i.push({from:t.to,to:n.to},{from:t.from,insert:n.text+e.lineBreak});for(let a of t.ranges)r.push(On.range(Math.min(e.doc.length,a.anchor+s),Math.min(e.doc.length,a.head+s)))}else{i.push({from:n.from,to:t.from},{from:t.to,insert:e.lineBreak+n.text});for(let e of t.ranges)r.push(On.range(e.anchor-s,e.head-s))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:On.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function hm(e,t,a){if(e.readOnly)return!1;let i=[];for(let t of fm(e))a?i.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):i.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const dm=gm(!1);function gm(e){return({state:t,dispatch:a})=>{if(t.readOnly)return!1;let i=t.changeByRange((a=>{let{from:i,to:r}=a,n=t.doc.lineAt(i),s=!e&&i==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let a,i=Cd(e).resolveInner(t),r=i.childBefore(t),n=i.childAfter(t);return r&&n&&r.to<=t&&n.from>=t&&(a=r.type.prop(yh.closedBy))&&a.indexOf(n.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(n.from).from&&!/\S/.test(e.sliceDoc(r.to,n.from))?{from:r.to,to:n.from}:null}(t,i);e&&(i=r=(r<=n.to?n:t.doc.lineAt(r)).to);let o=new Hd(t,{simulateBreak:i,simulateDoubleBreak:!!s}),l=jd(o,i);for(null==l&&(l=Ts(/^\s*/.exec(t.doc.lineAt(i).text)[0],t.tabSize));r<n.to&&/\s/.test(n.text[r-n.from]);)r++;s?({from:i,to:r}=s):i>n.from&&i<n.from+100&&!/\S/.test(n.text.slice(0,i))&&(i=n.from);let c=["",zd(t,l)];return s&&c.push(zd(t,o.lineIndent(n.from,-1))),{changes:{from:i,to:r,insert:qr.of(c)},range:On.cursor(i+1+c[1].length)}}));return a(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function pm(e,t){let a=-1;return e.changeByRange((i=>{let r=[];for(let n=i.from;n<=i.to;){let s=e.doc.lineAt(n);s.number>a&&(i.empty||i.to>s.from)&&(t(s,r,i),a=s.number),n=s.to+1}let n=e.changes(r);return{changes:r,range:On.range(n.mapPos(i.anchor,1),n.mapPos(i.head,1))}}))}const mm=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(pm(e,((t,a)=>{a.push({from:t.from,insert:e.facet(Fd)})})),{userEvent:"input.indent"})),!0),ym=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(pm(e,((t,a)=>{let i=/^\s*/.exec(t.text)[0];if(!i)return;let r=Ts(i,e.tabSize),n=0,s=zd(e,Math.max(0,r-_d(e)));for(;n<i.length&&n<s.length&&i.charCodeAt(n)==s.charCodeAt(n);)n++;a.push({from:t.from+n,to:t.from+i.length,insert:s.slice(n)})})),{userEvent:"delete.dedent"})),!0),vm=[{key:"Ctrl-b",run:Pp,shift:Wp,preventDefault:!0},{key:"Ctrl-f",run:Np,shift:Gp},{key:"Ctrl-p",run:Lp,shift:Qp},{key:"Ctrl-n",run:Ip,shift:Kp},{key:"Ctrl-a",run:e=>Cp(e,(t=>On.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>Vp(e,(t=>On.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>Cp(e,(t=>On.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>Vp(e,(t=>On.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:om},{key:"Ctrl-h",run:sm},{key:"Ctrl-k",run:e=>im(e,(t=>{let a=e.lineBlockAt(t.head).to;return t.head<a?a:Math.min(e.state.doc.length,t.head+1)}))},{key:"Ctrl-Alt-h",run:cm},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:qr.of(["",""])},range:On.cursor(e.from)})));return t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let a=t.from,i=e.doc.lineAt(a),r=a==i.from?a-1:rn(i.text,a-i.from,!1)+i.from,n=a==i.to?a+1:rn(i.text,a-i.from,!0)+i.from;return{changes:{from:r,to:n,insert:e.doc.slice(a,n).append(e.doc.slice(r,a))},range:On.cursor(n)}}));return!a.changes.empty&&(t(e.update(a,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:jp}],bm=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>Cp(e,(t=>Dp(e.state,t,!Tp(e)))),shift:e=>Vp(e,(t=>Dp(e.state,t,!Tp(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>Cp(e,(t=>Dp(e.state,t,Tp(e)))),shift:e=>Vp(e,(t=>Dp(e.state,t,Tp(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>um(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>hm(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>um(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>hm(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let a=e.selection,i=null;return a.ranges.length>1?i=On.create([a.main]):a.main.empty||(i=On.create([On.cursor(a.main.head)])),!!i&&(t(xp(e,i)),!0)}},{key:"Mod-Enter",run:gm(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let a=fm(e).map((({from:t,to:a})=>On.range(t,Math.min(a+1,e.doc.length))));return t(e.update({selection:On.create(a),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let a=Op(e.selection,(t=>{var a;for(let i=Cd(e).resolveStack(t.from,1);i;i=i.next){let{node:e}=i;if((e.from<t.from&&e.to>=t.to||e.to>t.to&&e.from<=t.from)&&(null===(a=e.parent)||void 0===a?void 0:a.parent))return On.range(e.to,e.from)}return t}));return t(xp(e,a)),!0},preventDefault:!0},{key:"Mod-[",run:ym},{key:"Mod-]",run:mm},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=Object.create(null),i=new Hd(e,{overrideIndentation:e=>{let t=a[e];return null==t?-1:t}}),r=pm(e,((t,r,n)=>{let s=jd(i,t.from);if(null==s)return;/\S/.test(t.text)||(s=0);let o=/^\s*/.exec(t.text)[0],l=zd(e,s);(o!=l||n.from<t.from+o.length)&&(a[t.from]=s,r.push({from:t.from,to:t.from+o.length,insert:l}))}));return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,a=t.changes(fm(t).map((({from:e,to:a})=>(e>0?e--:a<t.doc.length&&a++,{from:e,to:a})))),i=Op(t.selection,(t=>e.moveVertically(t,!0))).map(a);return e.dispatch({changes:a,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,a){let i=!1,r=Op(e.selection,(t=>{let r=_g(e,t.head,-1)||_g(e,t.head,1)||t.head>0&&_g(e,t.head-1,1)||t.head<e.doc.length&&_g(e,t.head+1,-1);if(!r||!r.end)return t;i=!0;let n=r.start.from==t.head?r.end.to:r.end.from;return a?On.range(t.anchor,n):On.cursor(n)}));return!!i&&(t(xp(e,r)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,a=t.doc.lineAt(t.selection.main.from),i=Yg(e.state,a.from);return i.line?Qg(e):!!i.block&&Xg(e)}},{key:"Alt-A",run:Kg}].concat([{key:"ArrowLeft",run:Pp,shift:Wp,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Ep(e,!Tp(e)),shift:e=>Up(e,!Tp(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>Cp(e,(t=>Hp(e,t,!Tp(e)))),shift:e=>Vp(e,(t=>Hp(e,t,!Tp(e)))),preventDefault:!0},{key:"ArrowRight",run:Np,shift:Gp,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Ep(e,Tp(e)),shift:e=>Up(e,Tp(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>Cp(e,(t=>Hp(e,t,Tp(e)))),shift:e=>Vp(e,(t=>Hp(e,t,Tp(e)))),preventDefault:!0},{key:"ArrowUp",run:Lp,shift:Qp,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Zp,shift:tm},{mac:"Ctrl-ArrowUp",run:zp,shift:Yp},{key:"ArrowDown",run:Ip,shift:Kp,preventDefault:!0},{mac:"Cmd-ArrowDown",run:em,shift:am},{mac:"Ctrl-ArrowDown",run:jp,shift:Jp},{key:"PageUp",run:zp,shift:Yp},{key:"PageDown",run:jp,shift:Jp},{key:"Home",run:e=>Cp(e,(t=>Hp(e,t,!1))),shift:e=>Vp(e,(t=>Hp(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:Zp,shift:tm},{key:"End",run:e=>Cp(e,(t=>Hp(e,t,!0))),shift:e=>Vp(e,(t=>Hp(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:em,shift:am},{key:"Enter",run:dm},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:sm,shift:sm},{key:"Delete",run:om},{key:"Mod-Backspace",mac:"Alt-Backspace",run:cm},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>lm(e,!0)},{mac:"Mod-Backspace",run:e=>im(e,(t=>{let a=e.moveToLineBoundary(t,!1).head;return t.head>a?a:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>im(e,(t=>{let a=e.moveToLineBoundary(t,!0).head;return t.head<a?a:Math.min(e.state.doc.length,t.head+1)}))}].concat(vm.map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),wm={key:"Tab",run:mm,shift:ym};function Sm(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,a=arguments[1];if(a&&"object"==typeof a&&null==a.nodeType&&!Array.isArray(a)){for(var i in a)if(Object.prototype.hasOwnProperty.call(a,i)){var r=a[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;t<arguments.length;t++)km(e,arguments[t]);return e}function km(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var a=0;a<t.length;a++)km(e,t[a])}}const Om="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class xm{constructor(e,t,a=0,i=e.length,r,n){this.test=n,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(a,i),this.bufferStart=a,this.normalize=r?e=>r(Om(e)):Om,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return cn(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=fn(e),a=this.bufferStart+this.bufferPos;this.bufferPos+=un(e);let i=this.normalize(t);for(let e=0,r=a;;e++){let n=i.charCodeAt(e),s=this.match(n,r,this.bufferPos+this.bufferStart);if(e==i.length-1){if(s)return this.value=s,this;break}r==a&&e<t.length&&t.charCodeAt(e)==n&&r++}}}match(e,t,a){let i=null;for(let t=0;t<this.matches.length;t+=2){let r=this.matches[t],n=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?i={from:this.matches[t+1],to:a}:(this.matches[t]++,n=!0)),n||(this.matches.splice(t,2),t-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?i={from:t,to:a}:this.matches.push(1,t)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}"undefined"!=typeof Symbol&&(xm.prototype[Symbol.iterator]=function(){return this});const Cm={from:-1,to:-1,match:/.*/.exec("")},Mm="gm"+(null==/x/.unicode?"":"u");class Am{constructor(e,t,a,i=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=Cm,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Nm(e,t,a,i,r);this.re=new RegExp(t,Mm+((null==a?void 0:a.ignoreCase)?"i":"")),this.test=null==a?void 0:a.test,this.iter=e.iter();let n=e.lineAt(i);this.curLineStart=n.from,this.matchPos=Em(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let a=this.curLineStart+t.index,i=a+t[0].length;if(this.matchPos=Em(this.text,i+(a==i?1:0)),a==this.curLineStart+this.curLine.length&&this.nextLine(),(a<i||a>this.value.to)&&(!this.test||this.test(a,i,t)))return this.value={from:a,to:i,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const Tm=new WeakMap;class Pm{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,a){let i=Tm.get(e);if(!i||i.from>=a||i.to<=t){let i=new Pm(t,e.sliceString(t,a));return Tm.set(e,i),i}if(i.from==t&&i.to==a)return i;let{text:r,from:n}=i;return n>t&&(r=e.sliceString(t,n)+r,n=t),i.to<a&&(r+=e.sliceString(i.to,a)),Tm.set(e,new Pm(n,r)),new Pm(t,r.slice(t-n,a-n))}}class Nm{constructor(e,t,a,i,r){this.text=e,this.to=r,this.done=!1,this.value=Cm,this.matchPos=Em(e,i),this.re=new RegExp(t,Mm+((null==a?void 0:a.ignoreCase)?"i":"")),this.test=null==a?void 0:a.test,this.flat=Pm.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,a=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,a,t)))return this.value={from:e,to:a,match:t},this.matchPos=Em(this.text,a+(e==a?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Pm.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Em(e,t){if(t>=e.length)return t;let a,i=e.lineAt(t);for(;t<i.to&&(a=i.text.charCodeAt(t-i.from))>=56320&&a<57344;)t++;return t}function Rm(e){let t=Sm("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function a(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!a)return;let{state:i}=e,r=i.doc.lineAt(i.selection.main.head),[,n,s,o,l]=a,c=o?+o.slice(1):0,f=s?+s:r.number;if(s&&l){let e=f/100;n&&(e=e*("-"==n?-1:1)+r.number/i.doc.lines),f=Math.round(i.doc.lines*e)}else s&&n&&(f=f*("-"==n?-1:1)+r.number);let u=i.doc.line(Math.max(1,Math.min(i.doc.lines,f))),h=On.cursor(u.from+Math.max(0,Math.min(c,u.length)));e.dispatch({effects:[Dm.of(!1),Nf.scrollIntoView(h.from,{y:"center"})],selection:h}),e.focus()}return{dom:Sm("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:Dm.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),a())},onsubmit:e=>{e.preventDefault(),a()}},Sm("label",e.state.phrase("Go to line"),": ",t)," ",Sm("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Am.prototype[Symbol.iterator]=Nm.prototype[Symbol.iterator]=function(){return this});const Dm=Zn.define(),Bm=Dn.define({create:()=>!0,update(e,t){for(let a of t.effects)a.is(Dm)&&(e=a.value);return e},provide:e=>Uu.from(e,(e=>e?Rm:null))}),Lm=Nf.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Im={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Fm=Mn.define({combine:e=>us(e,Im,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}),_m=qo.mark({class:"cm-selectionMatch"}),zm=qo.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function jm(e,t,a,i){return!(0!=a&&e(t.sliceDoc(a-1,a))==os.Word||i!=t.doc.length&&e(t.sliceDoc(i,i+1))==os.Word)}const Hm=Rl.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Fm),{state:a}=e,i=a.selection;if(i.ranges.length>1)return qo.none;let r,n=i.main,s=null;if(n.empty){if(!t.highlightWordAroundCursor)return qo.none;let e=a.wordAt(n.head);if(!e)return qo.none;s=a.charCategorizer(n.head),r=a.sliceDoc(e.from,e.to)}else{let e=n.to-n.from;if(e<t.minSelectionLength||e>200)return qo.none;if(t.wholeWords){if(r=a.sliceDoc(n.from,n.to),s=a.charCategorizer(n.head),!jm(s,a,n.from,n.to)||!function(e,t,a,i){return e(t.sliceDoc(a,a+1))==os.Word&&e(t.sliceDoc(i-1,i))==os.Word}(s,a,n.from,n.to))return qo.none}else if(r=a.sliceDoc(n.from,n.to),!r)return qo.none}let o=[];for(let i of e.visibleRanges){let e=new xm(a.doc,r,i.from,i.to);for(;!e.next().done;){let{from:i,to:r}=e.value;if((!s||jm(s,a,i,r))&&(n.empty&&i<=n.from&&r>=n.to?o.push(zm.range(i,r)):(i>=n.to||r<=n.from)&&o.push(_m.range(i,r)),o.length>t.maxMatches))return qo.none}}return qo.set(o)}},{decorations:e=>e.decorations}),Vm=Nf.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),qm=Mn.define({combine:e=>us(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new vy(e),scrollToMatch:e=>Nf.scrollIntoView(e)})});class Wm{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,Mm),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new Ym(this):new $m(this)}getCursor(e,t=0,a){let i=e.doc?e:fs.create({doc:e});return null==a&&(a=i.doc.length),this.regexp?Qm(this,i,t,a):Um(this,i,t,a)}}class Gm{constructor(e){this.spec=e}}function Um(e,t,a,i){return new xm(t.doc,e.unquoted,a,i,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?function(e,t){return(a,i,r,n)=>((n>a||n+r.length<i)&&(n=Math.max(0,a-2),r=e.sliceString(n,Math.min(e.length,i+2))),!(t(Km(r,a-n))==os.Word&&t(Xm(r,a-n))==os.Word||t(Xm(r,i-n))==os.Word&&t(Km(r,i-n))==os.Word))}(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}class $m extends Gm{constructor(e){super(e)}nextMatch(e,t,a){let i=Um(this.spec,e,a,e.doc.length).nextOverlapping();return i.done&&(i=Um(this.spec,e,0,t).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,t,a){for(let i=a;;){let a=Math.max(t,i-1e4-this.spec.unquoted.length),r=Um(this.spec,e,a,i),n=null;for(;!r.nextOverlapping().done;)n=r.value;if(n)return n;if(a==t)return null;i-=1e4}}prevMatch(e,t,a){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,a,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let a=Um(this.spec,e,0,e.doc.length),i=[];for(;!a.next().done;){if(i.length>=t)return null;i.push(a.value)}return i}highlight(e,t,a,i){let r=Um(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(a+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}function Qm(e,t,a,i){return new Am(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(r=t.charCategorizer(t.selection.main.head),(e,t,a)=>!a[0].length||(r(Km(a.input,a.index))!=os.Word||r(Xm(a.input,a.index))!=os.Word)&&(r(Xm(a.input,a.index+a[0].length))!=os.Word||r(Km(a.input,a.index+a[0].length))!=os.Word)):void 0},a,i);var r}function Km(e,t){return e.slice(rn(e,t,!1),t)}function Xm(e,t){return e.slice(t,rn(e,t))}class Ym extends Gm{nextMatch(e,t,a){let i=Qm(this.spec,e,a,e.doc.length).next();return i.done&&(i=Qm(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,a){for(let i=1;;i++){let r=Math.max(t,a-1e4*i),n=Qm(this.spec,e,r,a),s=null;for(;!n.next().done;)s=n.value;if(s&&(r==t||s.from>r+10))return s;if(r==t)return null}}prevMatch(e,t,a){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,a,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,a)=>"$"==a?"$":"&"==a?e.match[0]:"0"!=a&&+a<e.match.length?e.match[a]:t))}matchAll(e,t){let a=Qm(this.spec,e,0,e.doc.length),i=[];for(;!a.next().done;){if(i.length>=t)return null;i.push(a.value)}return i}highlight(e,t,a,i){let r=Qm(this.spec,e,Math.max(0,t-250),Math.min(a+250,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}const Jm=Zn.define(),Zm=Zn.define(),ey=Dn.define({create:e=>new ty(hy(e).create(),null),update(e,t){for(let a of t.effects)a.is(Jm)?e=new ty(a.value.create(),e.panel):a.is(Zm)&&(e=new ty(e.query,a.value?uy:null));return e},provide:e=>Uu.from(e,(e=>e.panel))});class ty{constructor(e,t){this.query=e,this.panel=t}}const ay=qo.mark({class:"cm-searchMatch"}),iy=qo.mark({class:"cm-searchMatch cm-searchMatch-selected"}),ry=Rl.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(ey))}update(e){let t=e.state.field(ey);(t!=e.startState.field(ey)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return qo.none;let{view:a}=this,i=new ys;for(let t=0,r=a.visibleRanges,n=r.length;t<n;t++){let{from:s,to:o}=r[t];for(;t<n-1&&o>r[t+1].from-500;)o=r[++t].to;e.highlight(a.state,s,o,((e,t)=>{let r=a.state.selection.ranges.some((a=>a.from==e&&a.to==t));i.add(e,t,r?iy:ay)}))}return i.finish()}},{decorations:e=>e.decorations});function ny(e){return t=>{let a=t.state.field(ey,!1);return a&&a.query.spec.valid?e(t,a):py(t)}}const sy=ny(((e,{query:t})=>{let{to:a}=e.state.selection.main,i=t.nextMatch(e.state,a,a);if(!i)return!1;let r=On.single(i.from,i.to),n=e.state.facet(qm);return e.dispatch({selection:r,effects:[ky(e,i),n.scrollToMatch(r.main,e)],userEvent:"select.search"}),gy(e),!0})),oy=ny(((e,{query:t})=>{let{state:a}=e,{from:i}=a.selection.main,r=t.prevMatch(a,i,i);if(!r)return!1;let n=On.single(r.from,r.to),s=e.state.facet(qm);return e.dispatch({selection:n,effects:[ky(e,r),s.scrollToMatch(n.main,e)],userEvent:"select.search"}),gy(e),!0})),ly=ny(((e,{query:t})=>{let a=t.matchAll(e.state,1e3);return!(!a||!a.length||(e.dispatch({selection:On.create(a.map((e=>On.range(e.from,e.to)))),userEvent:"select.search.matches"}),0))})),cy=ny(((e,{query:t})=>{let{state:a}=e,{from:i,to:r}=a.selection.main;if(a.readOnly)return!1;let n=t.nextMatch(a,i,i);if(!n)return!1;let s,o,l=[],c=[];if(n.from==i&&n.to==r&&(o=a.toText(t.getReplacement(n)),l.push({from:n.from,to:n.to,insert:o}),n=t.nextMatch(a,n.from,n.to),c.push(Nf.announce.of(a.phrase("replaced match on line $",a.doc.lineAt(i).number)+"."))),n){let t=0==l.length||l[0].from>=n.to?0:n.to-n.from-o.length;s=On.single(n.from-t,n.to-t),c.push(ky(e,n)),c.push(a.facet(qm).scrollToMatch(s.main,e))}return e.dispatch({changes:l,selection:s,effects:c,userEvent:"input.replace"}),!0})),fy=ny(((e,{query:t})=>{if(e.state.readOnly)return!1;let a=t.matchAll(e.state,1e9).map((e=>{let{from:a,to:i}=e;return{from:a,to:i,insert:t.getReplacement(e)}}));if(!a.length)return!1;let i=e.state.phrase("replaced $ matches",a.length)+".";return e.dispatch({changes:a,effects:Nf.announce.of(i),userEvent:"input.replace.all"}),!0}));function uy(e){return e.state.facet(qm).createPanel(e)}function hy(e,t){var a,i,r,n,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let c=e.facet(qm);return new Wm({search:(null!==(a=null==t?void 0:t.literal)&&void 0!==a?a:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(i=null==t?void 0:t.caseSensitive)&&void 0!==i?i:c.caseSensitive,literal:null!==(r=null==t?void 0:t.literal)&&void 0!==r?r:c.literal,regexp:null!==(n=null==t?void 0:t.regexp)&&void 0!==n?n:c.regexp,wholeWord:null!==(s=null==t?void 0:t.wholeWord)&&void 0!==s?s:c.wholeWord})}function dy(e){let t=Vu(e,uy);return t&&t.dom.querySelector("[main-field]")}function gy(e){let t=dy(e);t&&t==e.root.activeElement&&t.select()}const py=e=>{let t=e.state.field(ey,!1);if(t&&t.panel){let a=dy(e);if(a&&a!=e.root.activeElement){let i=hy(e.state,t.query.spec);i.valid&&e.dispatch({effects:Jm.of(i)}),a.focus(),a.select()}}else e.dispatch({effects:[Zm.of(!0),t?Jm.of(hy(e.state,t.query.spec)):Zn.appendConfig.of(xy)]});return!0},my=e=>{let t=e.state.field(ey,!1);if(!t||!t.panel)return!1;let a=Vu(e,uy);return a&&a.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Zm.of(!1)}),!0},yy=[{key:"Mod-f",run:py,scope:"editor search-panel"},{key:"F3",run:sy,shift:oy,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:sy,shift:oy,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:my,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let a=e.selection;if(a.ranges.length>1||a.main.empty)return!1;let{from:i,to:r}=a.main,n=[],s=0;for(let t=new xm(e.doc,e.sliceDoc(i,r));!t.next().done;){if(n.length>1e3)return!1;t.value.from==i&&(s=n.length),n.push(On.range(t.value.from,t.value.to))}return t(e.update({selection:On.create(n,s),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=Vu(e,Rm);if(!t){let a=[Dm.of(!0)];null==e.state.field(Bm,!1)&&a.push(Zn.appendConfig.of([Bm,Lm])),e.dispatch({effects:a}),t=Vu(e,Rm)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:a}=e.selection;if(a.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:a}=e,i=On.create(a.ranges.map((t=>e.wordAt(t.head)||On.cursor(t.head))),a.mainIndex);return!i.eq(a)&&(t(e.update({selection:i})),!0)})({state:e,dispatch:t});let i=e.sliceDoc(a[0].from,a[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=i)))return!1;let r=function(e,t){let{main:a,ranges:i}=e.selection,r=e.wordAt(a.head),n=r&&r.from==a.from&&r.to==a.to;for(let a=!1,r=new xm(e.doc,t,i[i.length-1].to);;){if(r.next(),!r.done){if(a&&i.some((e=>e.from==r.value.from)))continue;if(n){let t=e.wordAt(r.value.from);if(!t||t.from!=r.value.from||t.to!=r.value.to)continue}return r.value}if(a)return null;r=new xm(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),a=!0}}(e,i);return!!r&&(t(e.update({selection:e.selection.addRange(On.range(r.from,r.to),!1),effects:Nf.scrollIntoView(r.to)})),!0)},preventDefault:!0}];class vy{constructor(e){this.view=e;let t=this.query=e.state.field(ey).query.spec;function a(e,t,a){return Sm("button",{class:"cm-button",name:e,onclick:t,type:"button"},a)}this.commit=this.commit.bind(this),this.searchField=Sm("input",{value:t.search,placeholder:by(e,"Find"),"aria-label":by(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Sm("input",{value:t.replace,placeholder:by(e,"Replace"),"aria-label":by(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Sm("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=Sm("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=Sm("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=Sm("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,a("next",(()=>sy(e)),[by(e,"next")]),a("prev",(()=>oy(e)),[by(e,"previous")]),a("select",(()=>ly(e)),[by(e,"all")]),Sm("label",null,[this.caseField,by(e,"match case")]),Sm("label",null,[this.reField,by(e,"regexp")]),Sm("label",null,[this.wordField,by(e,"by word")]),...e.state.readOnly?[]:[Sm("br"),this.replaceField,a("replace",(()=>cy(e)),[by(e,"replace")]),a("replaceAll",(()=>fy(e)),[by(e,"replace all")])],Sm("button",{name:"close",onclick:()=>my(e),"aria-label":by(e,"close"),type:"button"},["×"])])}commit(){let e=new Wm({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Jm.of(e)}))}keydown(e){var t,a;a=e,qf(jf((t=this.view).state),a,t,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?oy:sy)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),cy(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(Jm)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(qm).top}}function by(e,t){return e.state.phrase(t)}const wy=30,Sy=/[\s\.,:;?!]/;function ky(e,{from:t,to:a}){let i=e.state.doc.lineAt(t),r=e.state.doc.lineAt(a).to,n=Math.max(i.from,t-wy),s=Math.min(r,a+wy),o=e.state.sliceDoc(n,s);if(n!=i.from)for(let e=0;e<wy;e++)if(!Sy.test(o[e+1])&&Sy.test(o[e])){o=o.slice(e);break}if(s!=r)for(let e=o.length-1;e>o.length-wy;e--)if(!Sy.test(o[e-1])&&Sy.test(o[e])){o=o.slice(0,e);break}return Nf.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${i.number}.`)}const Oy=Nf.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),xy=[ey,Ln.low(ry),Oy];class Cy{constructor(e,t,a){this.state=e,this.pos=t,this.explicit=a,this.abortListeners=[]}tokenBefore(e){let t=Cd(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),a=Math.max(t.from,this.pos-250),i=t.text.slice(a-t.from,this.pos-t.from),r=i.search(Py(e,!1));return r<0?null:{from:a+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function My(e){let t=Object.keys(e).join(""),a=/\w/.test(t);return a&&(t=t.replace(/\w/g,"")),`[${a?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class Ay{constructor(e,t,a,i){this.completion=e,this.source=t,this.match=a,this.score=i}}function Ty(e){return e.selection.main.from}function Py(e,t){var a;let{source:i}=e,r=t&&"^"!=i[0],n="$"!=i[i.length-1];return r||n?new RegExp(`${r?"^":""}(?:${i})${n?"$":""}`,null!==(a=e.flags)&&void 0!==a?a:e.ignoreCase?"i":""):e}const Ny=Xn.define(),Ey=new WeakMap;function Ry(e){if(!Array.isArray(e))return e;let t=Ey.get(e);return t||Ey.set(e,t=function(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[a,i]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),a=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e<i.length;e++)a[i[e]]=!0}let i=My(t)+My(a)+"*$";return[new RegExp("^"+i),new RegExp(i)]}(t);return e=>{let r=e.matchBefore(i);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:a}:null}}(e)),t}const Dy=Zn.define(),By=Zn.define();class Ly{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let a=cn(e,t),i=un(a);this.chars.push(a);let r=e.slice(t,t+i),n=r.toUpperCase();this.folded.push(cn(n==r?r.toLowerCase():n,0)),t+=i}this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,!0}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return!1;let{chars:t,folded:a,any:i,precise:r,byWord:n}=this;if(1==t.length){let i=cn(e,0),r=un(i),n=r==e.length?0:-100;if(i==t[0]);else{if(i!=a[0])return!1;n+=-200}return this.ret(n,[0,r])}let s=e.indexOf(this.pattern);if(0==s)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let o=t.length,l=0;if(s<0){for(let r=0,n=Math.min(e.length,200);r<n&&l<o;){let n=cn(e,r);n!=t[l]&&n!=a[l]||(i[l++]=r),r+=un(n)}if(l<o)return!1}let c=0,f=0,u=!1,h=0,d=-1,g=-1,p=/[a-z]/.test(e),m=!0;for(let i=0,l=Math.min(e.length,200),y=0;i<l&&f<o;){let l=cn(e,i);s<0&&(c<o&&l==t[c]&&(r[c++]=i),h<o&&(l==t[h]||l==a[h]?(0==h&&(d=i),g=i+1,h++):h=0));let v,b=l<255?l>=48&&l<=57||l>=97&&l<=122?2:l>=65&&l<=90?1:0:(v=fn(l))!=v.toLowerCase()?1:v!=v.toUpperCase()?2:0;(!i||1==b&&p||0==y&&0!=b)&&(t[f]==l||a[f]==l&&(u=!0)?n[f++]=i:n.length&&(m=!1)),y=b,i+=un(l)}return f==o&&0==n[0]&&m?this.result((u?-200:0)-100,n,e):h==o&&0==d?this.ret(-200-e.length+(g==e.length?0:-100),[0,g]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):h==o?this.ret(-900-e.length,[d,g]):f==o?this.result((u?-200:0)-100-700+(m?0:-1100),n,e):2!=t.length&&this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,a){let i=[],r=0;for(let e of t){let t=e+(this.astral?un(cn(a,e)):1);r&&i[r-1]==e?i[r-1]=t:(i[r++]=e,i[r++]=t)}return this.ret(e-a.length,i)}}const Iy=Mn.define({combine:e=>us(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:_y,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>a=>Fy(e(a),t(a)),optionClass:(e,t)=>a=>Fy(e(a),t(a)),addToOptions:(e,t)=>e.concat(t)})});function Fy(e,t){return e?t?e+" "+t:e:t}function _y(e,t,a,i,r,n){let s,o,l=e.textDirection==Jo.RTL,c=l,f=!1,u="top",h=t.left-r.left,d=r.right-t.right,g=i.right-i.left,p=i.bottom-i.top;if(c&&h<Math.min(g,d)?c=!1:!c&&d<Math.min(g,h)&&(c=!0),g<=(c?h:d))s=Math.max(r.top,Math.min(a.top,r.bottom-p))-t.top,o=Math.min(400,c?h:d);else{f=!0,o=Math.min(400,(l?t.right:r.right-t.left)-30);let e=r.bottom-t.bottom;e>=p||e>t.top?s=a.bottom-t.top:(u="bottom",s=t.bottom-a.top)}return{style:`${u}: ${s/((t.bottom-t.top)/n.offsetHeight)}px; max-width: ${o/((t.right-t.left)/n.offsetWidth)}px`,class:"cm-completionInfo-"+(f?l?"left-narrow":"right-narrow":c?"left":"right")}}function zy(e,t,a){if(e<=a)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/a);return{from:e*a,to:(e+1)*a}}let i=Math.floor((e-t)/a);return{from:e-(i+1)*a,to:e-i*a}}class jy{constructor(e,t,a){this.view=e,this.stateField=t,this.applyCompletion=a,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let i=e.state.field(t),{options:r,selected:n}=i.open,s=e.state.facet(Iy);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,a,i){let r=document.createElement("span");r.className="cm-completionLabel";let n=e.displayLabel||e.label,s=0;for(let e=0;e<i.length;){let t=i[e++],a=i[e++];t>s&&r.appendChild(document.createTextNode(n.slice(s,t)));let o=r.appendChild(document.createElement("span"));o.appendChild(document.createTextNode(n.slice(t,a))),o.className="cm-completionMatchedText",s=a}return s<n.length&&r.appendChild(document.createTextNode(n.slice(s))),r},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=zy(r.length,n,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(a=>{let{options:i}=e.state.field(t).open;for(let t,r=a.target;r&&r!=this.dom;r=r.parentNode)if("LI"==r.nodeName&&(t=/-(\d+)$/.exec(r.id))&&+t[1]<i.length)return this.applyCompletion(e,i[+t[1]]),void a.preventDefault()})),this.dom.addEventListener("focusout",(t=>{let a=e.state.field(this.stateField,!1);a&&a.tooltip&&e.state.facet(Iy).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:By.of(null)})})),this.showOptions(r,i.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let a=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),a!=i){let{options:r,selected:n,disabled:s}=a.open;i.open&&i.open.options==r||(this.range=zy(r.length,n,e.state.facet(Iy).maxRenderedOptions),this.showOptions(r,a.id)),this.updateSel(),s!=(null===(t=i.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=zy(t.options.length,t.selected,this.view.state.facet(Iy).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:a}=t.options[t.selected],{info:i}=a;if(!i)return;let r="string"==typeof i?document.createTextNode(i):i(a);if(!r)return;"then"in r?r.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,a)})).catch((e=>Tl(this.view.state,e,"completion info"))):this.addInfoPane(r,a)}}addInfoPane(e,t){this.destroyInfo();let a=this.info=document.createElement("div");if(a.className="cm-tooltip cm-completionInfo",null!=e.nodeType)a.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:i}=e;a.appendChild(t),this.infoDestroy=i||null}this.dom.appendChild(a),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let a=this.list.firstChild,i=this.range.from;a;a=a.nextSibling,i++)"LI"==a.nodeName&&a.id?i==e?a.hasAttribute("aria-selected")||(a.setAttribute("aria-selected","true"),t=a):a.hasAttribute("aria-selected")&&a.removeAttribute("aria-selected"):i--;return t&&function(e,t){let a=e.getBoundingClientRect(),i=t.getBoundingClientRect(),r=a.height/e.offsetHeight;i.top<a.top?e.scrollTop-=(a.top-i.top)/r:i.bottom>a.bottom&&(e.scrollTop+=(i.bottom-a.bottom)/r)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),a=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),r=this.space;if(!r){let e=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return i.top>Math.min(r.bottom,t.bottom)-10||i.bottom<Math.max(r.top,t.top)+10?null:this.view.state.facet(Iy).positionInfo(this.view,t,i,a,r,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,a){const i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));let r=null;for(let n=a.from;n<a.to;n++){let{completion:s,match:o}=e[n],{section:l}=s;if(l){let e="string"==typeof l?l:l.name;e!=r&&(n>a.from||0==a.from)&&(r=e,"string"!=typeof l&&l.header?i.appendChild(l.header(l)):i.appendChild(document.createElement("completion-section")).textContent=e)}const c=i.appendChild(document.createElement("li"));c.id=t+"-"+n,c.setAttribute("role","option");let f=this.optionClass(s);f&&(c.className=f);for(let e of this.optionContent){let t=e(s,this.view.state,this.view,o);t&&c.appendChild(t)}}return a.from&&i.classList.add("cm-completionListIncompleteTop"),a.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function Hy(e,t){return a=>new jy(a,e,t)}function Vy(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class qy{constructor(e,t,a,i,r,n){this.options=e,this.attrs=t,this.tooltip=a,this.timestamp=i,this.selected=r,this.disabled=n}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new qy(this.options,Uy(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,a,i,r){let n=function(e,t){let a=[],i=null,r=e=>{a.push(e);let{section:t}=e.completion;if(t){i||(i=[]);let e="string"==typeof t?t:t.name;i.some((t=>t.name==e))||i.push("string"==typeof t?{name:e}:t)}};for(let i of e)if(i.hasResult()){let e=i.result.getMatch;if(!1===i.result.filter)for(let t of i.result.options)r(new Ay(t,i.source,e?e(t):[],1e9-a.length));else{let a=new Ly(t.sliceDoc(i.from,i.to));for(let t of i.result.options)if(a.match(t.label)){let n=t.displayLabel?e?e(t,a.matched):[]:a.matched;r(new Ay(t,i.source,n,a.score+(t.boost||0)))}}}if(i){let e=Object.create(null),t=0,r=(e,t)=>{var a,i;return(null!==(a=e.rank)&&void 0!==a?a:1e9)-(null!==(i=t.rank)&&void 0!==i?i:1e9)||(e.name<t.name?-1:1)};for(let a of i.sort(r))t-=1e5,e[a.name]=t;for(let t of a){let{section:a}=t.completion;a&&(t.score+=e["string"==typeof a?a:a.name])}}let n=[],s=null,o=t.facet(Iy).compareCompletions;for(let e of a.sort(((e,t)=>t.score-e.score||o(e.completion,t.completion)))){let t=e.completion;!s||s.label!=t.label||s.detail!=t.detail||null!=s.type&&null!=t.type&&s.type!=t.type||s.apply!=t.apply||s.boost!=t.boost?n.push(e):Vy(e.completion)>Vy(s)&&(n[n.length-1]=e),s=e.completion}return n}(e,t);if(!n.length)return i&&e.some((e=>1==e.state))?new qy(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=t.facet(Iy).selectOnOpen?0:-1;if(i&&i.selected!=s&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;t<n.length;t++)if(n[t].completion==e){s=t;break}}return new qy(n,Uy(a,s),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:tv,above:r.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(e){return new qy(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Wy{constructor(e,t,a){this.active=e,this.id=t,this.open=a}static start(){return new Wy($y,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,a=t.facet(Iy),i=(a.override||t.languageDataAt("autocomplete",Ty(t)).map(Ry)).map((t=>(this.active.find((e=>e.source==t))||new Ky(t,this.active.some((e=>0!=e.state))?1:0)).update(e,a)));i.length==this.active.length&&i.every(((e,t)=>e==this.active[t]))&&(i=this.active);let r=this.open;r&&e.docChanged&&(r=r.map(e.changes)),e.selection||i.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let a=0,i=0;;){for(;a<e.length&&!e[a].hasResult;)a++;for(;i<t.length&&!t[i].hasResult;)i++;let r=a==e.length,n=i==t.length;if(r||n)return r==n;if(e[a++].result!=t[i++].result)return!1}}(i,this.active)?r=qy.build(i,t,this.id,r,a):r&&r.disabled&&!i.some((e=>1==e.state))&&(r=null),!r&&i.every((e=>1!=e.state))&&i.some((e=>e.hasResult()))&&(i=i.map((e=>e.hasResult()?new Ky(e.source,0):e)));for(let t of e.effects)t.is(Jy)&&(r=r&&r.setSelected(t.value,this.id));return i==this.active&&r==this.open?this:new Wy(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Gy}}const Gy={"aria-autocomplete":"list"};function Uy(e,t){let a={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(a["aria-activedescendant"]=e+"-"+t),a}const $y=[];function Qy(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class Ky{constructor(e,t,a=-1){this.source=e,this.state=t,this.explicitPos=a}hasResult(){return!1}update(e,t){let a=Qy(e),i=this;a?i=i.handleUserEvent(e,a,t):e.docChanged?i=i.handleChange(e):e.selection&&0!=i.state&&(i=new Ky(i.source,0));for(let t of e.effects)if(t.is(Dy))i=new Ky(i.source,1,t.value?Ty(e.state):-1);else if(t.is(By))i=new Ky(i.source,0);else if(t.is(Yy))for(let e of t.value)e.source==i.source&&(i=e);return i}handleUserEvent(e,t,a){return"delete"!=t&&a.activateOnTyping?new Ky(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(Ty(e.startState))?new Ky(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Ky(this.source,this.state,e.mapPos(this.explicitPos))}}class Xy extends Ky{constructor(e,t,a,i,r){super(e,2,t),this.result=a,this.from=i,this.to=r}hasResult(){return!0}handleUserEvent(e,t,a){var i;let r=e.changes.mapPos(this.from),n=e.changes.mapPos(this.to,1),s=Ty(e.state);if((this.explicitPos<0?s<=r:s<this.from)||s>n||"delete"==t&&Ty(e.startState)==this.from)return new Ky(this.source,"input"==t&&a.activateOnTyping?1:0);let o,l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,a,i){if(!e)return!1;let r=t.sliceDoc(a,i);return"function"==typeof e?e(r,a,i,t):Py(e,!0).test(r)}(this.result.validFor,e.state,r,n)?new Xy(this.source,l,this.result,r,n):this.result.update&&(o=this.result.update(this.result,r,n,new Cy(e.state,s,l>=0)))?new Xy(this.source,l,o,o.from,null!==(i=o.to)&&void 0!==i?i:Ty(e.state)):new Ky(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new Ky(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new Xy(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const Yy=Zn.define({map:(e,t)=>e.map((e=>e.map(t)))}),Jy=Zn.define(),Zy=Dn.define({create:()=>Wy.start(),update:(e,t)=>e.update(t),provide:e=>[Ru.from(e,(e=>e.tooltip)),Nf.contentAttributes.from(e,(e=>e.attrs))]});function ev(e,t){const a=t.completion.apply||t.completion.label;let i=e.state.field(Zy).active.find((e=>e.source==t.source));return i instanceof Xy&&("string"==typeof a?e.dispatch(Object.assign(Object.assign({},function(e,t,a,i){let{main:r}=e.selection,n=a-r.from,s=i-r.from;return Object.assign(Object.assign({},e.changeByRange((o=>o!=r&&a!=i&&e.sliceDoc(o.from+n,o.from+s)!=e.sliceDoc(a,i)?{range:o}:{changes:{from:o.from+n,to:i==r.from?o.to:o.from+s,insert:t},range:On.cursor(o.from+n+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,a,i.from,i.to)),{annotations:Ny.of(t.completion)})):a(e,t.completion,i.from,i.to),!0)}const tv=Hy(Zy,ev);function av(e,t="option"){return a=>{let i=a.state.field(Zy,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<a.state.facet(Iy).interactionDelay)return!1;let r,n=1;"page"==t&&(r=zu(a,i.open.tooltip))&&(n=Math.max(2,Math.floor(r.dom.offsetHeight/r.dom.querySelector("li").offsetHeight)-1));let{length:s}=i.open.options,o=i.open.selected>-1?i.open.selected+n*(e?1:-1):e?0:s-1;return o<0?o="page"==t?0:s-1:o>=s&&(o="page"==t?s-1:0),a.dispatch({effects:Jy.of(o)}),!0}}class iv{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const rv=Rl.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(Zy).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(Zy);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Zy)==t)return;let a=e.transactions.some((e=>(e.selection||e.docChanged)&&!Qy(e)));for(let t=0;t<this.running.length;t++){let i=this.running[t];if(a||i.updates.length+e.transactions.length>50&&Date.now()-i.time>1e3){for(let e of i.context.abortListeners)try{e()}catch(e){Tl(this.view.state,e)}i.context.abortListeners=null,this.running.splice(t--,1)}else i.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some((e=>e.effects.some((e=>e.is(Dy)))))&&(this.pendingStart=!0);let i=this.pendingStart?50:e.state.facet(Iy).activateOnTypingDelay;if(this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),i):-1,0!=this.composing)for(let t of e.transactions)"input"==Qy(t)?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Zy);for(let e of t.active)1!=e.state||this.running.some((t=>t.active.source==e.source))||this.startQuery(e)}startQuery(e){let{state:t}=this.view,a=Ty(t),i=new Cy(t,a,e.explicitPos==a),r=new iv(e,i);this.running.push(r),Promise.resolve(e.source(i)).then((e=>{r.context.aborted||(r.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:By.of(null)}),Tl(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(Iy).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],a=this.view.state.facet(Iy);for(let i=0;i<this.running.length;i++){let r=this.running[i];if(void 0===r.done)continue;if(this.running.splice(i--,1),r.done){let i=new Xy(r.active.source,r.active.explicitPos,r.done,r.done.from,null!==(e=r.done.to)&&void 0!==e?e:Ty(r.updates.length?r.updates[0].startState:this.view.state));for(let e of r.updates)i=i.update(e,a);if(i.hasResult()){t.push(i);continue}}let n=this.view.state.field(Zy).active.find((e=>e.source==r.active.source));if(n&&1==n.state)if(null==r.done){let e=new Ky(r.active.source,0);for(let t of r.updates)e=e.update(t,a);1!=e.state&&t.push(e)}else this.startQuery(n)}t.length&&this.view.dispatch({effects:Yy.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Zy,!1);if(t&&t.tooltip&&this.view.state.facet(Iy).closeOnBlur){let a=t.open&&zu(this.view,t.open.tooltip);a&&a.dom.contains(e.relatedTarget)||setTimeout((()=>this.view.dispatch({effects:By.of(null)})),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:Dy.of(!1)})),20),this.composing=0}}}),nv=Nf.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),sv={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ov=Zn.define({map(e,t){let a=t.mapPos(e,-1,dn.TrackAfter);return null==a?void 0:a}}),lv=new class extends hs{};lv.startSide=1,lv.endSide=-1;const cv=Dn.define({create:()=>ms.empty,update(e,t){if(e=e.map(t.changes),t.selection){let a=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=a.from&&e<=a.to})}for(let a of t.effects)a.is(ov)&&(e=e.update({add:[lv.range(a.value,a.value+1)]}));return e}}),fv="()[]{}<>";function uv(e){for(let t=0;t<8;t+=2)if(fv.charCodeAt(t)==e)return fv.charAt(t+1);return fn(e<128?e:e+1)}function hv(e,t){return e.languageDataAt("closeBrackets",t)[0]||sv}const dv="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),gv=Nf.inputHandler.of(((e,t,a,i)=>{if((dv?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let r=e.state.selection.main;if(i.length>2||2==i.length&&1==un(cn(i,0))||t!=r.from||a!=r.to)return!1;let n=function(e,t){let a=hv(e,e.selection.main.head),i=a.brackets||sv.brackets;for(let r of i){let n=uv(cn(r,0));if(t==r)return n==r?wv(e,r,i.indexOf(r+r+r)>-1,a):vv(e,r,n,a.before||sv.before);if(t==n&&mv(e,e.selection.main.from))return bv(e,0,n)}return null}(e.state,i);return!!n&&(e.dispatch(n),!0)})),pv=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let a=hv(e,e.selection.main.head).brackets||sv.brackets,i=null,r=e.changeByRange((t=>{if(t.empty){let i=function(e,t){let a=e.sliceString(t-2,t);return un(cn(a,0))==a.length?a:a.slice(1)}(e.doc,t.head);for(let r of a)if(r==i&&yv(e.doc,t.head)==uv(cn(r,0)))return{changes:{from:t.head-r.length,to:t.head+r.length},range:On.cursor(t.head-r.length)}}return{range:i=t}}));return i||t(e.update(r,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function mv(e,t){let a=!1;return e.field(cv).between(0,e.doc.length,(e=>{e==t&&(a=!0)})),a}function yv(e,t){let a=e.sliceString(t,t+2);return a.slice(0,un(cn(a,0)))}function vv(e,t,a,i){let r=null,n=e.changeByRange((n=>{if(!n.empty)return{changes:[{insert:t,from:n.from},{insert:a,from:n.to}],effects:ov.of(n.to+t.length),range:On.range(n.anchor+t.length,n.head+t.length)};let s=yv(e.doc,n.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+a,from:n.head},effects:ov.of(n.head+t.length),range:On.cursor(n.head+t.length)}:{range:r=n}}));return r?null:e.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function bv(e,t,a){let i=null,r=e.changeByRange((t=>t.empty&&yv(e.doc,t.head)==a?{changes:{from:t.head,to:t.head+a.length,insert:a},range:On.cursor(t.head+a.length)}:i={range:t}));return i?null:e.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function wv(e,t,a,i){let r=i.stringPrefixes||sv.stringPrefixes,n=null,s=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:ov.of(i.to+t.length),range:On.range(i.anchor+t.length,i.head+t.length)};let s,o=i.head,l=yv(e.doc,o);if(l==t){if(Sv(e,o))return{changes:{insert:t+t,from:o},effects:ov.of(o+t.length),range:On.cursor(o+t.length)};if(mv(e,o)){let i=a&&e.sliceDoc(o,o+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:o,to:o+i.length,insert:i},range:On.cursor(o+i.length)}}}else{if(a&&e.sliceDoc(o-2*t.length,o)==t+t&&(s=kv(e,o-2*t.length,r))>-1&&Sv(e,s))return{changes:{insert:t+t+t+t,from:o},effects:ov.of(o+t.length),range:On.cursor(o+t.length)};if(e.charCategorizer(o)(l)!=os.Word&&kv(e,o,r)>-1&&!function(e,t,a,i){let r=Cd(e).resolveInner(t,-1),n=i.reduce(((e,t)=>Math.max(e,t.length)),0);for(let s=0;s<5;s++){let s=e.sliceDoc(r.from,Math.min(r.to,r.from+a.length+n)),o=s.indexOf(a);if(!o||o>-1&&i.indexOf(s.slice(0,o))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>a.length+o;){if(e.sliceDoc(t.to-a.length,t.to)==a)return!1;t=t.firstChild}return!0}let l=r.to==t&&r.parent;if(!l)break;r=l}return!1}(e,o,t,r))return{changes:{insert:t+t,from:o},effects:ov.of(o+t.length),range:On.cursor(o+t.length)}}return{range:n=i}}));return n?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Sv(e,t){let a=Cd(e).resolveInner(t+1);return a.parent&&a.from==t}function kv(e,t,a){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=os.Word)return t;for(let r of a){let a=t-r.length;if(e.sliceDoc(a,t)==r&&i(e.sliceDoc(a-1,a))!=os.Word)return a}return-1}const Ov=[{key:"Ctrl-Space",run:e=>!!e.state.field(Zy,!1)&&(e.dispatch({effects:Dy.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(Zy,!1);return!(!t||!t.active.some((e=>0!=e.state))||(e.dispatch({effects:By.of(null)}),0))}},{key:"ArrowDown",run:av(!0)},{key:"ArrowUp",run:av(!1)},{key:"PageDown",run:av(!0,"page")},{key:"PageUp",run:av(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(Zy,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(Iy).interactionDelay)&&ev(e,t.open.options[t.open.selected])}}],xv=Ln.highest(_f.computeN([Iy],(e=>e.facet(Iy).defaultKeymap?[Ov]:[])));class Cv{constructor(e,t,a){this.from=e,this.to=t,this.diagnostic=a}}class Mv{constructor(e,t,a){this.diagnostics=e,this.panel=t,this.selected=a}static init(e,t,a){let i=e,r=a.facet(Fv).markerFilter;r&&(i=r(i,a));let n=qo.set(i.map((e=>e.from==e.to||e.from==e.to-1&&a.doc.lineAt(e.from).to==e.from?qo.widget({widget:new jv(e),diagnostic:e}).range(e.from):qo.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e,inclusive:!0}).range(e.from,e.to))),!0);return new Mv(n,t,Av(n))}}function Av(e,t=null,a=0){let i=null;return e.between(a,1e9,((e,a,{spec:r})=>{if(!t||r.diagnostic==t)return i=new Cv(e,a,r.diagnostic),!1})),i}const Tv=Zn.define(),Pv=Zn.define(),Nv=Zn.define(),Ev=Dn.define({create:()=>new Mv(qo.none,null,null),update(e,t){if(t.docChanged){let a=e.diagnostics.map(t.changes),i=null;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);i=Av(a,e.selected.diagnostic,r)||Av(a,null,r)}e=new Mv(a,e.panel,i)}for(let a of t.effects)a.is(Tv)?e=Mv.init(a.value,e.panel,t.state):a.is(Pv)?e=new Mv(e.diagnostics,a.value?Vv.open:null,e.selected):a.is(Nv)&&(e=new Mv(e.diagnostics,e.panel,a.value));return e},provide:e=>[Uu.from(e,(e=>e.panel)),Nf.decorations.from(e,(e=>e.diagnostics))]}),Rv=qo.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function Dv(e,t,a){let{diagnostics:i}=e.state.field(Ev),r=[],n=2e8,s=0;i.between(t-(a<0?1:0),t+(a>0?1:0),((e,i,{spec:o})=>{t>=e&&t<=i&&(e==i||(t>e||a>0)&&(t<i||a<0))&&(r.push(o.diagnostic),n=Math.min(e,n),s=Math.max(i,s))}));let o=e.state.facet(Fv).tooltipFilter;return o&&(r=o(r,e.state)),r.length?{pos:n,end:s,above:e.state.doc.lineAt(n).to<s,create:()=>({dom:Bv(e,r)})}:null}function Bv(e,t){return Sm("ul",{class:"cm-tooltip-lint"},t.map((t=>zv(e,t,!1))))}const Lv=e=>{let t=e.state.field(Ev,!1);return!(!t||!t.panel||(e.dispatch({effects:Pv.of(!1)}),0))},Iv=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Ev,!1);var a,i;t&&t.panel||e.dispatch({effects:(a=e.state,i=[Pv.of(!0)],a.field(Ev,!1)?i:i.concat(Zn.appendConfig.of(Gv)))});let r=Vu(e,Vv.open);return r&&r.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Ev,!1);if(!t)return!1;let a=e.state.selection.main,i=t.diagnostics.iter(a.to+1);return!(!i.value&&(i=t.diagnostics.iter(0),!i.value||i.from==a.from&&i.to==a.to)||(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),0))}}],Fv=Mn.define({combine:e=>Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},us(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?a=>e(a)||t(a):e:t}))});function _v(e){let t=[];if(e)e:for(let{name:a}of e){for(let e=0;e<a.length;e++){let i=a[e];if(/[a-zA-Z]/.test(i)&&!t.some((e=>e.toLowerCase()==i.toLowerCase()))){t.push(i);continue e}}t.push("")}return t}function zv(e,t,a){var i;let r=a?_v(t.actions):[];return Sm("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Sm("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(i=t.actions)||void 0===i?void 0:i.map(((a,i)=>{let n=!1,s=i=>{if(i.preventDefault(),n)return;n=!0;let r=Av(e.state.field(Ev).diagnostics,t);r&&a.apply(e,r.from,r.to)},{name:o}=a,l=r[i]?o.indexOf(r[i]):-1,c=l<0?o:[o.slice(0,l),Sm("u",o.slice(l,l+1)),o.slice(l+1)];return Sm("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${o}${l<0?"":` (access key "${r[i]})"`}.`},c)})),t.source&&Sm("div",{class:"cm-diagnosticSource"},t.source))}class jv extends Ho{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Sm("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class Hv{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=zv(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Vv{constructor(e){this.view=e,this.items=[],this.list=Sm("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Lv(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:a}=this.items[this.selectedIndex],i=_v(a.actions);for(let r=0;r<i.length;r++)if(i[r].toUpperCase().charCodeAt(0)==t.keyCode){let t=Av(this.view.state.field(Ev).diagnostics,a);t&&a.actions[r].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=Sm("div",{class:"cm-panel-lint"},this.list,Sm("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Lv(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Ev).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(Ev),a=0,i=!1,r=null;for(e.between(0,this.view.state.doc.length,((e,n,{spec:s})=>{let o,l=-1;for(let e=a;e<this.items.length;e++)if(this.items[e].diagnostic==s.diagnostic){l=e;break}l<0?(o=new Hv(this.view,s.diagnostic),this.items.splice(a,0,o),i=!0):(o=this.items[l],l>a&&(this.items.splice(a,l-a),i=!0)),t&&o.diagnostic==t.diagnostic?o.dom.hasAttribute("aria-selected")||(o.dom.setAttribute("aria-selected","true"),r=o):o.dom.hasAttribute("aria-selected")&&o.dom.removeAttribute("aria-selected"),a++}));a<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();0==this.items.length&&(this.items.push(new Hv(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let a=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/a:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/a)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let a of this.items)if(a.dom.parentNode==this.list){for(;e!=a.dom;)t();e=a.dom.nextSibling}else this.list.insertBefore(a.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Av(this.view.state.field(Ev).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Nv.of(t)})}static open(e){return new Vv(e)}}function qv(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const Wv=Nf.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:qv("#d11")},".cm-lintRange-warning":{backgroundImage:qv("orange")},".cm-lintRange-info":{backgroundImage:qv("#999")},".cm-lintRange-hint":{backgroundImage:qv("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),Gv=[Ev,Nf.decorations.compute([Ev],(e=>{let{selected:t,panel:a}=e.field(Ev);return t&&a&&t.from!=t.to?qo.set([Rv.range(t.from,t.to)]):qo.none})),_u(Dv,{hideOn:function(e,t){let a=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(Tv)))&&!e.changes.touchesRange(a.from,a.to))}}),Wv];var Uv=function(e){void 0===e&&(e={});var{crosshairCursor:t=!1}=e,a=[];!1!==e.closeBracketsKeymap&&(a=a.concat(pv)),!1!==e.defaultKeymap&&(a=a.concat(bm)),!1!==e.searchKeymap&&(a=a.concat(yy)),!1!==e.historyKeymap&&(a=a.concat(kp)),!1!==e.foldKeymap&&(a=a.concat(lg)),!1!==e.completionKeymap&&(a=a.concat(Ov)),!1!==e.lintKeymap&&(a=a.concat(Iv));var i=[];return!1!==e.lineNumbers&&i.push(function(e={}){return[oh.of(e),Zu(),fh]}()),!1!==e.highlightActiveLineGutter&&i.push(dh),!1!==e.highlightSpecialChars&&i.push(function(e={}){return[du.of(e),gu||(gu=Rl.fromClass(class{constructor(e){this.view=e,this.decorations=qo.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(du)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new lu({regexp:e.specialChars,decoration:(t,a,i)=>{let{doc:r}=a.state,n=cn(t[0],0);if(9==n){let e=r.lineAt(i),t=a.state.tabSize,n=Ts(e.text,t,i-e.from);return qo.replace({widget:new mu((t-n%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[n]||(this.decorationCache[n]=qo.replace({widget:new pu(e,n)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(du);e.startState.facet(du)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}()),!1!==e.history&&i.push(function(e={}){return[np,rp.of(e),Nf.domEventHandlers({beforeinput(e,t){let a="historyUndo"==e.inputType?op:"historyRedo"==e.inputType?lp:null;return!!a&&(e.preventDefault(),a(t))}})]}()),!1!==e.foldGutter&&i.push(function(e={}){let t=Object.assign(Object.assign({},pg),e),a=new mg(t,!0),i=new mg(t,!1),r=Rl.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(Bd)!=e.state.facet(Bd)||e.startState.field(ig,!1)!=e.state.field(ig,!1)||Cd(e.startState)!=Cd(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new ys;for(let r of e.viewportLineBlocks){let n=rg(e.state,r.from,r.to)?i:Jd(e.state,r.from,r.to)?a:null;n&&t.add(r.from,r.from,n)}return t.finish()}}),{domEventHandlers:n}=t;return[r,Yu({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.markers)||ms.empty},initialSpacer:()=>new mg(t,!1),domEventHandlers:Object.assign(Object.assign({},n),{click:(e,t,a)=>{if(n.click&&n.click(e,t,a))return!0;let i=rg(e.state,t.from,t.to);if(i)return e.dispatch({effects:tg.of(i)}),!0;let r=Jd(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:eg.of(r)}),!0)}})}),ug()]}()),!1!==e.drawSelection&&i.push(function(e={}){return[Yf.of(e),Zf,tu,iu,Cl.of(!0)]}()),!1!==e.dropCursor&&i.push([nu,su]),!1!==e.allowMultipleSelections&&i.push(fs.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&i.push(fs.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let a=e.newDoc,{head:i}=e.newSelection.main,r=a.lineAt(i);if(i>r.from+200)return e;let n=a.sliceString(r.from,i);if(!t.some((e=>e.test(n))))return e;let{state:s}=e,o=-1,l=[];for(let{head:e}of s.selection.ranges){let t=s.doc.lineAt(e);if(t.from==o)continue;o=t.from;let a=jd(s,t.from);if(null==a)continue;let i=/^\s*/.exec(t.text)[0],r=zd(s,a);i!=r&&l.push({from:t.from,to:t.from+i.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e}))),!1!==e.syntaxHighlighting&&i.push(kg(Cg,{fallback:!0})),!1!==e.bracketMatching&&i.push(function(e={}){return[Pg.of(e),Bg]}()),!1!==e.closeBrackets&&i.push([gv,cv]),!1!==e.autocompletion&&i.push(function(e={}){return[Zy,Iy.of(e),rv,xv,nv]}()),!1!==e.rectangularSelection&&i.push(function(e){let t=e=>e.altKey&&0==e.button;return Nf.mouseSelectionStyle.of(((e,a)=>t(a)?function(e,t){let a=Su(e,t),i=e.state.selection;return a?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(a.line).from),r=e.state.doc.lineAt(t);a={line:r.number,col:a.col,off:Math.min(a.off,r.length)},i=i.map(e.changes)}},get(t,r,n){let s=Su(e,t);if(!s)return i;let o=function(e,t,a){let i=Math.min(t.line,a.line),r=Math.max(t.line,a.line),n=[];if(t.off>wu||a.off>wu||t.col<0||a.col<0){let s=Math.min(t.off,a.off),o=Math.max(t.off,a.off);for(let t=i;t<=r;t++){let a=e.doc.line(t);a.length<=o&&n.push(On.range(a.from+s,a.to+o))}}else{let s=Math.min(t.col,a.col),o=Math.max(t.col,a.col);for(let t=i;t<=r;t++){let a=e.doc.line(t),i=Ps(a.text,s,e.tabSize,!0);if(i<0)n.push(On.cursor(a.to));else{let t=Ps(a.text,o,e.tabSize);n.push(On.range(a.from+i,a.from+t))}}}return n}(e.state,a,s);return o.length?n?On.create(o.concat(i.ranges)):On.create(o):i}}:null}(e,a):null))}()),!1!==t&&i.push(function(e={}){let[t,a]=ku[e.key||"Alt"],i=Rl.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||a(e))},keyup(e){e.keyCode!=t&&a(e)||this.set(!1)},mousemove(e){this.set(a(e))}}});return[i,Nf.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.isDown)?Ou:null}))]}()),!1!==e.highlightActiveLine&&i.push(vu),!1!==e.highlightSelectionMatches&&i.push(function(e){let t=[Vm,Hm];return t}()),e.tabSize&&"number"==typeof e.tabSize&&i.push(Fd.of(" ".repeat(e.tabSize))),i.concat([_f.of(a.flat())]).filter(Boolean)};const $v="#e06c75",Qv="#abb2bf",Kv="#7d8799",Xv="#d19a66",Yv="#2c313a",Jv="#282c34",Zv="#353a42",eb="#528bff",tb=[Nf.theme({"&":{color:Qv,backgroundColor:Jv},".cm-content":{caretColor:eb},".cm-cursor, .cm-dropCursor":{borderLeftColor:eb},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:Qv},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Jv,color:Kv,border:"none"},".cm-activeLineGutter":{backgroundColor:Yv},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Zv},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Zv,borderBottomColor:Zv},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Yv,color:Qv}}},{dark:!0}),kg(vg.define([{tag:vd.keyword,color:"#c678dd"},{tag:[vd.name,vd.deleted,vd.character,vd.propertyName,vd.macroName],color:$v},{tag:[vd.function(vd.variableName),vd.labelName],color:"#61afef"},{tag:[vd.color,vd.constant(vd.name),vd.standard(vd.name)],color:Xv},{tag:[vd.definition(vd.name),vd.separator],color:Qv},{tag:[vd.typeName,vd.className,vd.number,vd.changed,vd.annotation,vd.modifier,vd.self,vd.namespace],color:"#e5c07b"},{tag:[vd.operator,vd.operatorKeyword,vd.url,vd.escape,vd.regexp,vd.link,vd.special(vd.string)],color:"#56b6c2"},{tag:[vd.meta,vd.comment],color:Kv},{tag:vd.strong,fontWeight:"bold"},{tag:vd.emphasis,fontStyle:"italic"},{tag:vd.strikethrough,textDecoration:"line-through"},{tag:vd.link,color:Kv,textDecoration:"underline"},{tag:vd.heading,fontWeight:"bold",color:$v},{tag:[vd.atom,vd.bool,vd.special(vd.variableName)],color:Xv},{tag:[vd.processingInstruction,vd.string,vd.inserted],color:"#98c379"},{tag:vd.invalid,color:"#ffffff"}]))];var ab=Nf.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),ib=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:a=!0,readOnly:i=!1,theme:r="light",placeholder:n="",basicSetup:s=!0}=e,o=[];switch(t&&o.unshift(_f.of([wm])),s&&("boolean"==typeof s?o.unshift(Uv()):o.unshift(Uv(s))),n&&o.unshift(function(e){return Rl.fromClass(class{constructor(t){this.view=t,this.placeholder=e?qo.set([qo.widget({widget:new bu(e),side:1}).range(0)]):qo.none}get decorations(){return this.view.state.doc.length?qo.none:this.placeholder}},{decorations:e=>e.decorations})}(n)),r){case"light":o.push(ab);break;case"dark":o.push(tb);break;case"none":break;default:o.push(r)}return!1===a&&o.push(Nf.editable.of(!1)),i&&o.push(fs.readOnly.of(!0)),[...o]},rb=Xn.define(),nb=[],sb=a(848),ob=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],lb=(0,s.forwardRef)(((e,t)=>{var{className:a,value:i="",selection:r,extensions:n=[],onChange:o,onStatistics:l,onCreateEditor:c,onUpdate:f,autoFocus:u,theme:h="light",height:d,minHeight:g,maxHeight:p,width:m,minWidth:y,maxWidth:v,basicSetup:b,placeholder:w,indentWithTab:S,editable:k,readOnly:O,root:x,initialState:C}=e,M=re(e,ob),A=(0,s.useRef)(null),{state:T,view:P,container:N}=function(e){var{value:t,selection:a,onChange:i,onStatistics:r,onCreateEditor:n,onUpdate:o,extensions:l=nb,autoFocus:c,theme:f="light",height:u=null,minHeight:h=null,maxHeight:d=null,width:g=null,minWidth:p=null,maxWidth:m=null,placeholder:y="",editable:v=!0,readOnly:b=!1,indentWithTab:w=!0,basicSetup:S=!0,root:k,initialState:O}=e,[x,C]=(0,s.useState)(),[M,A]=(0,s.useState)(),[T,P]=(0,s.useState)(),N=Nf.theme({"&":{height:u,minHeight:h,maxHeight:d,width:g,minWidth:p,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),E=Nf.updateListener.of((e=>{if(e.docChanged&&"function"==typeof i&&!e.transactions.some((e=>e.annotation(rb)))){var t=e.state.doc.toString();i(t,e)}r&&r((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),R=[E,N,...ib({theme:f,editable:v,readOnly:b,placeholder:y,indentWithTab:w,basicSetup:S})];return o&&"function"==typeof o&&R.push(Nf.updateListener.of(o)),R=R.concat(l),(0,s.useEffect)((()=>{if(x&&!T){var e={doc:t,selection:a,extensions:R},i=O?fs.fromJSON(O.json,e,O.fields):fs.create(e);if(P(i),!M){var r=new Nf({state:i,parent:x,root:k});A(r),n&&n(r,i)}}return()=>{M&&(P(void 0),A(void 0))}}),[x,T]),(0,s.useEffect)((()=>C(e.container)),[e.container]),(0,s.useEffect)((()=>()=>{M&&(M.destroy(),A(void 0))}),[M]),(0,s.useEffect)((()=>{c&&M&&M.focus()}),[c,M]),(0,s.useEffect)((()=>{M&&M.dispatch({effects:Zn.reconfigure.of(R)})}),[f,l,u,h,d,g,p,m,y,v,b,w,S,i,o]),(0,s.useEffect)((()=>{if(void 0!==t){var e=M?M.state.doc.toString():"";M&&t!==e&&M.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[rb.of(!0)]})}}),[t,M]),{state:T,setState:P,view:M,setView:A,container:x,setContainer:C}}({container:A.current,root:x,value:i,autoFocus:u,theme:h,height:d,minHeight:g,maxHeight:p,width:m,minWidth:y,maxWidth:v,basicSetup:b,placeholder:w,indentWithTab:S,editable:k,readOnly:O,selection:r,onChange:o,onStatistics:l,onCreateEditor:c,onUpdate:f,extensions:n,initialState:C});if((0,s.useImperativeHandle)(t,(()=>({editor:A.current,state:T,view:P})),[A,N,T,P]),"string"!=typeof i)throw new Error("value must be typeof string but got "+typeof i);var E="string"==typeof h?"cm-theme-"+h:"cm-theme";return(0,sb.jsx)("div",fe({ref:A,className:E+(a?" "+a:"")},M))}));lb.displayName="CodeMirror";const cb=lb;class fb{constructor(e,t,a,i,r,n,s,o,l,c=0,f){this.p=e,this.stack=t,this.state=a,this.reducePos=i,this.pos=r,this.score=n,this.buffer=s,this.bufferBase=o,this.curContext=l,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter(((e,t)=>t%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,a=0){let i=e.parser.context;return new fb(e,[],t,a,a,0,[],0,i?new ub(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let a=e>>19,i=65535&e,{parser:r}=this.p,n=r.dynamicPrecedence(i);if(n&&(this.score+=n),0==a)return this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i<r.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),void this.reduceContext(i,this.reducePos);let s=this.stack.length-3*(a-1)-(262144&e?6:0),o=s?this.stack[s-2]:this.p.ranges[0].from,l=this.reducePos-o;l>=2e3&&!(null===(t=this.p.parser.nodeSet.types[i])||void 0===t?void 0:t.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=l):this.p.lastBigReductionSize<l&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=o,this.p.lastBigReductionSize=l));let c=s?this.stack[s-1]:0,f=this.bufferBase+this.buffer.length-c;if(i<r.minRepeatTerm||131072&e){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,o,e,f+4,!0)}if(262144&e)this.state=this.stack[s];else{let e=this.stack[s-3];this.state=r.getGoto(e,i,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(i,o)}storeNode(e,t,a,i=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,i=this.buffer.length;if(0==i&&e.parent&&(i=e.bufferBase-e.parent.bufferBase,e=e.parent),i>0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==a)return;if(e.buffer[i-2]>=t)return void(e.buffer[i-2]=a)}}if(r&&this.pos!=a){let r=this.buffer.length;if(r>0&&0!=this.buffer[r-4])for(;r>0&&this.buffer[r-2]>a;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,i>4&&(i-=4);this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=a,this.buffer[r+3]=i}else this.buffer.push(e,t,a,i)}shift(e,t,a,i){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){let r=e,{parser:n}=this.p;(i>this.pos||t<=n.maxNode)&&(this.pos=i,n.stateFlag(r,1)||(this.reducePos=i)),this.pushState(r,a),this.shiftContext(t,a),t<=n.maxNode&&this.buffer.push(t,a,i,4)}else this.pos=i,this.shiftContext(t,a),t<=this.p.parser.maxNode&&this.buffer.push(t,a,i,4)}apply(e,t,a,i){65536&e?this.reduce(e):this.shift(e,t,a,i)}useNode(e,t){let a=this.p.reused.length-1;(a<0||this.p.reused[a]!=e)&&(this.p.reused.push(e),a++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(a,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let a=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new fb(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,a,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let a=e<=this.p.parser.maxNode;a&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,a?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new hb(this);;){let a=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==a)return!1;if(0==(65536&a))return!0;t.reduce(a)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let a=[];for(let i,r=0;r<t.length;r+=2)(i=t[r+1])!=this.state&&this.p.parser.hasAction(i,e)&&a.push(t[r],i);if(this.stack.length<120)for(let e=0;a.length<8&&e<t.length;e+=2){let i=t[e+1];a.some(((e,t)=>1&t&&e==i))||a.push(t[e],i)}t=a}let a=[];for(let e=0;e<t.length&&a.length<4;e+=2){let i=t[e+1];if(i==this.state)continue;let r=this.split();r.pushState(i,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[e],this.pos),r.reducePos=this.pos,r.score-=200,a.push(r)}return a}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(0==(65536&t))return!1;if(!e.validAction(this.state,t)){let a=t>>19,i=65535&t,r=this.stack.length-3*a;if(r<0||e.getGoto(this.stack[r],i,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],a=(i,r)=>{if(!t.includes(i))return t.push(i),e.allActions(i,(t=>{if(393216&t);else if(65536&t){let a=(t>>19)-r;if(a>1){let i=65535&t,r=this.stack.length-3*a;if(r>=0&&e.getGoto(this.stack[r],i,!1)>=0)return a<<19|65536|i}}else{let e=a(t,r+1);if(null!=e)return e}}))};return a(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new ub(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class ub{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class hb{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,a=e>>19;0==a?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(a-1);let i=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=i}}class db{constructor(e,t,a){this.stack=e,this.pos=t,this.index=a,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new db(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new db(this.stack,this.pos,this.index)}}function gb(e,t=Uint16Array){if("string"!=typeof e)return e;let a=null;for(let i=0,r=0;i<e.length;){let n=0;for(;;){let t=e.charCodeAt(i++),a=!1;if(126==t){n=65535;break}t>=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,a=!0),n+=r,a)break;n*=46}a?a[r++]=n:a=new t(n)}return a}class pb{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const mb=new pb;class yb{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=mb,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let a=this.range,i=this.rangeIndex,r=this.pos+e;for(;r<a.from;){if(!i)return null;let e=this.ranges[--i];r-=a.from-e.to,a=e}for(;t<0?r>a.to:r>=a.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];r+=e.from-a.to,a=e}return r}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,a,i=this.chunkOff+e;if(i>=0&&i<this.chunk.length)t=this.pos+e,a=this.chunk.charCodeAt(i);else{let i=this.resolveOffset(e,1);if(null==i)return-1;if(t=i,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)a=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,i=this.range;for(;i.to<=t;)i=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>i.to&&(this.chunk2=this.chunk2.slice(0,i.to-t)),a=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),a}acceptToken(e,t=0){let a=t?this.resolveOffset(t,-1):this.pos;if(null==a||a<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=a}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=mb,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let a="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(a+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return a}}class vb{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:a}=t.p;Sb(this.data,e,t,this.id,a.data,a.tokenPrecTable)}}vb.prototype.contextual=vb.prototype.fallback=vb.prototype.extend=!1;class bb{constructor(e,t,a){this.precTable=t,this.elseToken=a,this.data="string"==typeof e?gb(e):e}token(e,t){let a=e.pos,i=0;for(;;){let a=e.next<0,r=e.resolveOffset(1,1);if(Sb(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(a||i++,null==r)break;e.reset(r,e.token)}i&&(e.reset(a,e.token),e.acceptToken(this.elseToken,i))}}bb.prototype.contextual=vb.prototype.fallback=vb.prototype.extend=!1;class wb{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Sb(e,t,a,i,r,n){let s=0,o=1<<i,{dialect:l}=a.p.parser;e:for(;0!=(o&e[s]);){let a=e[s+1];for(let i=s+3;i<a;i+=2)if((e[i+1]&o)>0){let a=e[i];if(l.allows(a)&&(-1==t.token.value||t.token.value==a||Ob(a,t.token.value,r,n))){t.acceptToken(a);break}}let i=t.next,c=0,f=e[s+2];if(!(t.next<0&&f>c&&65535==e[a+3*f-3])){for(;c<f;){let r=c+f>>1,n=a+r+(r<<1),o=e[n],l=e[n+1]||65536;if(i<o)f=r;else{if(!(i>=l)){s=e[n+2],t.advance();continue e}c=r+1}}break}s=e[a+3*f-1]}}function kb(e,t,a){for(let i,r=t;65535!=(i=e[r]);r++)if(i==a)return r-t;return-1}function Ob(e,t,a,i){let r=kb(a,i,t);return r<0||kb(a,i,e)<r}const xb="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let Cb=null;function Mb(e,t,a){let i=e.cursor(xh.IncludeAnonymous);for(i.moveTo(t);;)if(!(a<0?i.childBefore(t):i.childAfter(t)))for(;;){if((a<0?i.to<t:i.from>t)&&!i.type.isError)return a<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(e.length,Math.max(i.from+1,t+25));if(a<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return a<0?0:e.length}}class Ab{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Mb(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Mb(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let a=this.trees[t],i=this.index[t];if(i==a.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=a.children[i],n=this.start[t]+a.positions[i];if(n>e)return this.nextStart=n,null;if(r instanceof Ch){if(n==e){if(n<this.safeFrom)return null;let e=n+r.length;if(e<=this.safeTo){let t=r.prop(yh.lookAhead);if(!t||e+t<this.fragment.to)return r}}this.index[t]++,n+r.length>=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(n),this.index.push(0))}else this.index[t]++,this.nextStart=n+r.length}}}class Tb{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map((e=>new pb))}getActions(e){let t=0,a=null,{parser:i}=e.p,{tokenizers:r}=i,n=i.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,o=0;for(let i=0;i<r.length;i++){if(0==(1<<i&n))continue;let l=r[i],c=this.tokens[i];if((!a||l.fallback)&&((l.contextual||c.start!=e.pos||c.mask!=n||c.context!=s)&&(this.updateCachedToken(c,l,e),c.mask=n,c.context=s),c.lookAhead>c.end+25&&(o=Math.max(c.lookAhead,o)),0!=c.value)){let i=t;if(c.extended>-1&&(t=this.addActions(e,c.extended,c.end,t)),t=this.addActions(e,c.value,c.end,t),!l.extend&&(a=c,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return o&&e.setLookAhead(o),a||e.pos!=this.stream.end||(a=new pb,a.value=e.p.parser.eofTerm,a.start=a.end=e.pos,t=this.addActions(e,a.value,a.end,t)),this.mainToken=a,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new pb,{pos:a,p:i}=e;return t.start=a,t.end=Math.min(a+1,i.stream.end),t.value=a==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,a){let i=this.stream.clipPos(a.pos);if(t.token(this.stream.reset(i,e),a),e.value>-1){let{parser:t}=a.p;for(let i=0;i<t.specialized.length;i++)if(t.specialized[i]==e.value){let r=t.specializers[i](this.stream.read(e.start,e.end),a);if(r>=0&&a.p.parser.dialect.allows(r>>1)){0==(1&r)?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,a,i){for(let t=0;t<i;t+=3)if(this.actions[t]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=a,i}addActions(e,t,a,i){let{state:r}=e,{parser:n}=e.p,{data:s}=n;for(let e=0;e<2;e++)for(let o=n.stateSlot(r,e?2:1);;o+=3){if(65535==s[o]){if(1!=s[o+1]){0==i&&2==s[o+1]&&(i=this.putAction(Db(s,o+2),t,a,i));break}o=Db(s,o+2)}s[o]==t&&(i=this.putAction(Db(s,o+1),t,a,i))}return i}}class Pb{constructor(e,t,a,i){this.parser=e,this.input=t,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new yb(t,i),this.tokens=new Tb(e,this.stream),this.topTerm=e.top[1];let{from:r}=i[0];this.stacks=[fb.start(this,e.top[0],r)],this.fragments=a.length&&this.stream.end-r>4*e.bufferLength?new Ab(a,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,a=this.stacks,i=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==a.length){let[e]=a;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let n=0;n<a.length;n++){let s=a[n];for(;;){if(this.tokens.mainToken=null,s.pos>i)r.push(s);else{if(this.advanceStack(s,r,a))continue;{e||(e=[],t=[]),e.push(s);let a=this.tokens.getMainToken(s);t.push(a.value,a.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let a of e){let e=a.p.stoppedAt;(a.pos==a.p.stream.end||null!=e&&a.pos>e)&&a.p.parser.stateFlag(a.state,2)&&(!t||t.score<a.score)&&(t=a)}return t}(e);if(t)return xb&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw xb&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&e){let a=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,r);if(a)return xb&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort(((e,t)=>t.score-e.score));r.length>e;)r.pop();r.some((e=>e.reducePos>i))&&this.recovering--}else if(r.length>1){e:for(let e=0;e<r.length-1;e++){let t=r[e];for(let a=e+1;a<r.length;a++){let i=r[a];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500){if(!((t.score-i.score||t.buffer.length-i.buffer.length)>0)){r.splice(e--,1);continue e}r.splice(a--,1)}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let e=1;e<r.length;e++)r[e].pos<this.minStackPos&&(this.minStackPos=r[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,a){let i=e.pos,{parser:r}=this,n=xb?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,a=t?e.curContext.hash:0;for(let s=this.fragments.nodeAt(i);s;){let i=this.parser.nodeSet.types[s.type.id]==s.type?r.getGoto(e.state,s.type.id):-1;if(i>-1&&s.length&&(!t||(s.prop(yh.contextHash)||0)==a))return e.useNode(s,i),xb&&console.log(n+this.stackID(e)+` (via reuse of ${r.getName(s.type.id)})`),!0;if(!(s instanceof Ch)||0==s.children.length||s.positions[0]>0)break;let o=s.children[0];if(!(o instanceof Ch&&0==s.positions[0]))break;s=o}}let s=r.stateSlot(e.state,4);if(s>0)return e.reduce(s),xb&&console.log(n+this.stackID(e)+` (via always-reduce ${r.getName(65535&s)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let o=this.tokens.getActions(e);for(let s=0;s<o.length;){let l=o[s++],c=o[s++],f=o[s++],u=s==o.length||!a,h=u?e:e.split(),d=this.tokens.mainToken;if(h.apply(l,c,d?d.start:h.pos,f),xb&&console.log(n+this.stackID(h)+` (via ${0==(65536&l)?"shift":`reduce of ${r.getName(65535&l)}`} for ${r.getName(c)} @ ${i}${h==e?"":", split"})`),u)return!0;h.pos>i?t.push(h):a.push(h)}return!1}advanceFully(e,t){let a=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>a)return Nb(e,t),!0}}runRecovery(e,t,a){let i=null,r=!1;for(let n=0;n<e.length;n++){let s=e[n],o=t[n<<1],l=t[1+(n<<1)],c=xb?this.stackID(s)+" -> ":"";if(s.deadEnd){if(r)continue;if(r=!0,s.restart(),xb&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,a))continue}let f=s.split(),u=c;for(let e=0;f.forceReduce()&&e<10&&(xb&&console.log(u+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,a));e++)xb&&(u=this.stackID(f)+" -> ");for(let e of s.recoverByInsert(o))xb&&console.log(c+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,a);this.stream.end>s.pos?(l==s.pos&&(l++,o=0),s.recoverByDelete(o,l),xb&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(o)})`),Nb(s,a)):(!i||i.score<s.score)&&(i=s)}return i}stackToTree(e){return e.close(),Ch.build({buffer:db.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Cb||(Cb=new WeakMap)).get(e);return t||Cb.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function Nb(e,t){for(let a=0;a<t.length;a++){let i=t[a];if(i.pos==e.pos&&i.sameState(e))return void(t[a].score<e.score&&(t[a]=e))}t.push(e)}class Eb{constructor(e,t,a){this.source=e,this.flags=t,this.disabled=a}allows(e){return!this.disabled||0==this.disabled[e]}}class Rb extends Gh{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let a=0;a<e.repeatNodeCount;a++)t.push("");let a=Object.keys(e.topRules).map((t=>e.topRules[t][1])),i=[];for(let e=0;e<t.length;e++)i.push([]);function r(e,t,a){i[e].push([t,t.deserialize(String(a))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=yh[e]);for(let a=1;a<t.length;){let i=t[a++];if(i>=0)r(i,e,t[a++]);else{let n=t[a+-i];for(let s=-i;s>0;s--)r(t[a++],e,n);a++}}}this.nodeSet=new Sh(t.map(((t,r)=>wh.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:i[r],top:a.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1})))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=gh;let n=gb(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(Bb),this.states=gb(e.states,Uint32Array),this.data=gb(e.stateData),this.goto=gb(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((e=>"number"==typeof e?new vb(n,e):e)),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,a){let i=new Pb(this,e,t,a);for(let r of this.wrappers)i=r(i,e,t,a);return i}getGoto(e,t,a=!1){let i=this.goto;if(t>=i[0])return-1;for(let r=i[t+1];;){let t=i[r++],n=1&t,s=i[r++];if(n&&a)return s;for(let a=r+(t>>1);r<a;r++)if(i[r]==e)return s;if(n)return-1}}hasAction(e,t){let a=this.data;for(let i=0;i<2;i++)for(let r,n=this.stateSlot(e,i?2:1);;n+=3){if(65535==(r=a[n])){if(1!=a[n+1]){if(2==a[n+1])return Db(a,n+2);break}r=a[n=Db(a,n+2)]}if(r==t||0==r)return Db(a,n+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,(e=>e==t||null))}allActions(e,t){let a=this.stateSlot(e,4),i=a?t(a):void 0;for(let a=this.stateSlot(e,1);null==i;a+=3){if(65535==this.data[a]){if(1!=this.data[a+1])break;a=Db(this.data,a+2)}i=t(Db(this.data,a+1))}return i}nextStates(e){let t=[];for(let a=this.stateSlot(e,1);;a+=3){if(65535==this.data[a]){if(1!=this.data[a+1])break;a=Db(this.data,a+2)}if(0==(1&this.data[a+2])){let e=this.data[a+1];t.some(((t,a)=>1&a&&t==e))||t.push(this.data[a],e)}}return t}configure(e){let t=Object.assign(Object.create(Rb.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let a=this.topRules[e.top];if(!a)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=a}return e.tokenizers&&(t.tokenizers=this.tokenizers.map((t=>{let a=e.tokenizers.find((e=>e.from==t));return a?a.to:t}))),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map(((a,i)=>{let r=e.specializers.find((e=>e.from==a.external));if(!r)return a;let n=Object.assign(Object.assign({},a),{external:r.to});return t.specializers[i]=Bb(n),n}))),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),a=t.map((()=>!1));if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(a[e]=!0)}let i=null;for(let e=0;e<t.length;e++)if(!a[e])for(let a,r=this.dialects[t[e]];65535!=(a=this.data[r++]);)(i||(i=new Uint8Array(this.maxTerm+1)))[a]=1;return new Eb(e,a,i)}static deserialize(e){return new Rb(e)}}function Db(e,t){return e[t]|e[t+1]<<16}function Bb(e){if(e.external){let t=e.extend?1:0;return(a,i)=>e.external(a,i)<<1|t}return e.get}const Lb=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function Ib(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Fb(e){return e>=48&&e<=57}const _b=new wb(((e,t)=>{for(let a=!1,i=0,r=0;;r++){let{next:n}=e;if(Ib(n)||45==n||95==n||a&&Fb(n))!a&&(45!=n||r>0)&&(a=!0),i===r&&45==n&&i++,e.advance();else{if(92!=n||10==e.peek(1)){a&&e.acceptToken(40==n?100:2==i&&t.canShift(2)?2:101);break}e.advance(),e.next>-1&&e.advance(),a=!0}}})),zb=new wb((e=>{if(Lb.includes(e.peek(-1))){let{next:t}=e;(Ib(t)||95==t||35==t||46==t||91==t||58==t&&Ib(e.peek(1))||45==t||38==t)&&e.acceptToken(99)}})),jb=new wb((e=>{if(!Lb.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),Ib(t)){do{e.advance()}while(Ib(e.next)||Fb(e.next));e.acceptToken(1)}}})),Hb=Yh({"AtKeyword import charset namespace keyframes media supports":vd.definitionKeyword,"from to selector":vd.keyword,NamespaceName:vd.namespace,KeyframeName:vd.labelName,KeyframeRangeName:vd.operatorKeyword,TagName:vd.tagName,ClassName:vd.className,PseudoClassName:vd.constant(vd.className),IdName:vd.labelName,"FeatureName PropertyName":vd.propertyName,AttributeName:vd.attributeName,NumberLiteral:vd.number,KeywordQuery:vd.keyword,UnaryQueryOp:vd.operatorKeyword,"CallTag ValueName":vd.atom,VariableName:vd.variableName,Callee:vd.operatorKeyword,Unit:vd.unit,"UniversalSelector NestingSelector":vd.definitionOperator,MatchOp:vd.compareOperator,"ChildOp SiblingOp, LogicOp":vd.logicOperator,BinOp:vd.arithmeticOperator,Important:vd.modifier,Comment:vd.blockComment,ColorLiteral:vd.color,"ParenthesizedContent StringLiteral":vd.string,":":vd.punctuation,"PseudoOp #":vd.derefOperator,"; ,":vd.separator,"( )":vd.paren,"[ ]":vd.squareBracket,"{ }":vd.brace}),Vb={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},qb={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},Wb={__proto__:null,not:132,only:132},Gb=Rb.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#CsO+ZQtO,5:ROOQO'#Cx'#CxO)lQWO'#CwO+oQWO'#CyO+tQ[O'#DOOOQS'#Ep'#EpOOQO'#Dj'#DjO+|Q[O'#DqO,[QWO'#EtO&`Q[O'#DoO,jQWO'#DrOOQO'#Eu'#EuO)OQWO,5:`O,oQpO,5:bOOQS'#Dz'#DzO,wQWO,5:dO,|Q[O,5:dOOQO'#D}'#D}O-UQWO,5:gO-ZQWO,5:mO-cQWO,5:oOOQS-E8U-E8UO${QdO,59}O-kQ[O'#E^O-xQWO,5;_O-xQWO,5;_POOO'#EV'#EVP.TO#tO,58yPOOO,58y,58yOOQP1G.l1G.lO.zQXO,5:vOOQO-E8Y-E8YOOQS1G.g1G.gOOQP1G.n1G.nO)gQWO1G.nO)lQWO1G.nOOQP1G/Z1G/ZO/XQ`O1G/^O/rQXO1G/aO0YQXO1G/cO0pQXO1G/dO1WQWO,59|O1]Q[O'#DSO1dQdO'#CoOOQP1G/^1G/^O${QdO1G/^O1kQpO,59]OOQS,59_,59_O${QdO,59aO1sQWO1G/mOOQS,59c,59cO1xQ!bO,59eOOQS'#DP'#DPOOQS'#EY'#EYO2QQ[O,59jOOQS,59j,59jO2YQWO'#DjO2eQWO,5:VO2jQWO,5:]O&`Q[O,5:XO&`Q[O'#E_O2rQWO,5;`O2}QWO,5:ZO(aQ[O,5:^OOQS1G/z1G/zOOQS1G/|1G/|OOQS1G0O1G0OO3`QWO1G0OO3eQdO'#EOOOQS1G0R1G0ROOQS1G0X1G0XOOQS1G0Z1G0ZO3pQtO1G/iOOQO,5:x,5:xO4WQ[O,5:xOOQO-E8[-E8[O4eQWO1G0yPOOO-E8T-E8TPOOO1G.e1G.eOOQP7+$Y7+$YOOQP7+$x7+$xO${QdO7+$xOOQS1G/h1G/hO4pQXO'#ErO4wQWO,59nO4|QtO'#EXO5tQdO'#EoO6OQWO,59ZO6TQpO7+$xOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%X7+%XO6]QWO1G/POOQS-E8W-E8WOOQS1G/U1G/UO${QdO1G/qOOQO1G/w1G/wOOQO1G/s1G/sO6bQWO,5:yOOQO-E8]-E8]O6pQXO1G/xOOQS7+%j7+%jO6wQYO'#CsOOQO'#EQ'#EQO7SQ`O'#EPOOQO'#EP'#EPO7_QWO'#E`O7gQdO,5:jOOQS,5:j,5:jO7rQtO'#E]O${QdO'#E]O8sQdO7+%TOOQO7+%T7+%TOOQO1G0d1G0dO9WQpO<<HdO9`QWO,5;^OOQP1G/Y1G/YOOQS-E8V-E8VO${QdO'#EZO9hQWO,5;ZOOQT1G.u1G.uOOQP<<Hd<<HdOOQS7+$k7+$kO9pQdO7+%]OOQO7+%d7+%dOOQO,5:k,5:kO3hQdO'#EaO7_QWO,5:zOOQS,5:z,5:zOOQS-E8^-E8^OOQS1G0U1G0UO9wQtO,5:wOOQS-E8Z-E8ZOOQO<<Ho<<HoOOQPAN>OAN>OO:xQdO,5:uOOQO-E8X-E8XOOQO<<Hw<<HwOOQO,5:{,5:{OOQO-E8_-E8_OOQS1G0f1G0f",stateData:";[~O#ZOS#[QQ~OUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XRO#bTO~OQfOUYOXYO]VO^VOqXOxWO![aO!]ZO!i[O!k]O!m^O!p_O!v`O#XeO#bTO~O#U#gP~P!ZO#[jO~O#XlO~O]qO^qOqsOtoOxrO!OtO!RvO#VuO#bnO~O!TwO~P#pO`}O#WzO#XyO~O#X!OO~O#X!QO~OQ![Ob!TOf![Oh![On!YOq!ZO#W!WO#X!SO#e!UO~Ob!^O!d!`O!g!aO#X!]O!T#hP~Oh!fOn!YO#X!eO~Oh!hO#X!hO~Ob!^O!d!`O!g!aO#X!]O~O!Y#hP~P%jO]WX]!WX^WXqWXtWXxWX!OWX!RWX!TWX#VWX#bWX~O]!mO~O!Y!nO#U#gX!S#gX~O#U#gX!S#gX~P!ZO#]!qO#^!qO#_!sO~OUYOXYO]VO^VOqXOxWO#XRO#bTO~OtoO!TwO~O`!zO#WzO#XyO~O!S#gP~P!ZOb#RO~Ob#SO~Op#TO|#UO~OP#WObgXjgX!YgX!dgX!ggX#XgXagXQgXfgXhgXngXqgXtgX!XgX#UgX#WgX#egXpgX!SgX~Ob!^Oj#XO!d!`O!g!aO#X!]O!Y#hP~Ob#[O~Op#`O#X#]O~Ob!^O!d!`O!g!aO#X#aO~Ot#eO!b#dO!T#hX!Y#hX~Ob#hO~Oj#XO!Y#jO~O!Y#kO~Oh#lOn!YO~O!T#mO~O!TwO!b#dO~O!TwO!Y#pO~O!Y#QX#U#QX!S#QX~P!ZO!Y!nO#U#ga!S#ga~O#]!qO#^!qO#_#wO~O]qO^qOqsOxrO!OtO!RvO#VuO#bnO~Ot#Oa!T#Oaa#Oa~P.`Op#yO|#zO~O]qO^qOqsOxrO#bnO~Ot}i!O}i!R}i!T}i#V}ia}i~P/aOt!Pi!O!Pi!R!Pi!T!Pi#V!Pia!Pi~P/aOt!Qi!O!Qi!R!Qi!T!Qi#V!Qia!Qi~P/aO!S#{O~Oa#fP~P(aOa#cP~P${Oa$SOj#XO~O!Y$UO~Oh$VOo$VO~Op$XO#X#]O~O]!`Xa!^X!b!^X~O]$YO~Oa$ZO!b#dO~Ot#eO!T#ha!Y#ha~O!b#dOt!ca!T!ca!Y!caa!ca~O!Y$`O~O!S$gO#X$bO#e$aO~Oj#XOt$iO!X$kO!Y!Vi#U!Vi!S!Vi~P${O!Y#Qa#U#Qa!S#Qa~P!ZO!Y!nO#U#gi!S#gi~Oa#fX~P#pOa$oO~Oj#XOQ!{Xa!{Xb!{Xf!{Xh!{Xn!{Xq!{Xt!{X#W!{X#X!{X#e!{X~Ot$qOa#cX~P${Oa$sO~Oj#XOp$tO~Oa$uO~O!b#dOt#Ra!T#Ra!Y#Ra~Oa$wO~P.`OP#WOtgX!TgX~O#e$aOt!sX!T!sX~Ot$yO!TwO~O!S$}O#X$bO#e$aO~Oj#XOQ#PXb#PXf#PXh#PXn#PXq#PXt#PX!X#PX!Y#PX#U#PX#W#PX#X#PX#e#PX!S#PX~Ot$iO!X%QO!Y!Vq#U!Vq!S!Vq~P${Oj#XOp%RO~OtoOa#fa~Ot$qOa#ca~Oa%UO~P${Oj#XOQ#Pab#Paf#Pah#Pan#Paq#Pat#Pa!X#Pa!Y#Pa#U#Pa#W#Pa#X#Pa#e#Pa!S#Pa~Oa!}at!}a~P${O#Zo#[#ej!R#e~",goto:"-g#jPPP#kP#nP#w$WP#w$g#wPP$mPPP$s$|$|P%`P$|P$|%z&^PPPP$|&vP&z'Q#wP'W#w'^P#wP#w#wPPP'd'y(WPP#nPP(_(_(i(_P(_P(_(_P#nP#nP#nP(l#nP(o(r(u(|#nP#nP)R)X)h)v)|*S*^*d*n*t*zPPPPPPPPPP+Q+ZP+v+yP,o,r,x-RRkQ_bOPdhw!n#skYOPdhotuvw!n#R#h#skSOPdhotuvw!n#R#h#sQmTR!tnQ{VR!xqQ!x}Q#Z!XR#x!zq![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SU$d#m$f$yR$x$cq!XZ]!T!m#S#U#X#q#z$P$Y$i$j$q$v%Sp![Z]!T!m#S#U#X#q#z$P$Y$i$j$q$v%SQ!f^R#l!gT#^!Z#_Q|VR!yqQ!x|R#x!yQ!PWR!{rQ!RXR!|sQxUQ!wpQ#i!cQ#o!jQ#p!kQ${$eR%X$zSgPwQ!phQ#r!nR$l#sZfPhw!n#sa!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$e#m$fR%V$yV$c#m$f$yQ!rjR#v!rQdOShPwU!ldh#sR#s!nQ$P#SU$p$P$v%SQ$v$YR%S$qQ#_!ZR$W#_Q$r$PR%T$rQpUS!vp$nR$n#|Q$j#qR%P$jQ!ogS#t!o#uR#u!pQ#f!_R$^#fQ$f#mR$|$fQ$z$eR%W$z_cOPdhw!n#s^UOPdhw!n#sQ!uoQ!}tQ#OuQ#PvQ#|#RR$_#hR$Q#SQ!VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[Hb],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSo`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#Z~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#Z~o`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUo`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Uo`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUo`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Uo`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUo`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Uo`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUo`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Uo`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!X[o`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOh~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYxQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYo`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYo`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYf[o`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYf[o`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYo`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYf[o`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYo`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSf[o`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS|So`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSb^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOa~n9{UUQjWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWjW!RQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUo`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYo`#e[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYo`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUo`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUo`#e[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[o`#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSt^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWjWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VU#bQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSo`#[~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#e[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU]QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S^Qo`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Y^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS|SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!OQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!OQo`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[![Qo`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSq^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSp^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUo`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[zb,jb,_b,1,2,3,4,new bb("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>Vb[e]||-1},{term:58,get:e=>qb[e]||-1},{term:101,get:e=>Wb[e]||-1}],tokenPrec:1200});let Ub=null;function $b(){if(!Ub&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],a=new Set;for(let i in e)"cssText"!=i&&"cssFloat"!=i&&"string"==typeof e[i]&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),a.has(i)||(t.push(i),a.add(i)));Ub=t.sort().map((e=>({type:"property",label:e})))}return Ub||[]}const Qb=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),Kb=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),Xb=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),Yb=/^(\w[\w-]*|-\w[\w-]*|)$/,Jb=/^-(-[\w-]*)?$/,Zb=new qh,ew=["Declaration"];function tw(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function aw(e,t,a){if(t.to-t.from>4096){let i=Zb.get(t);if(i)return i;let r=[],n=new Set,s=t.cursor(xh.IncludeAnonymous);if(s.firstChild())do{for(let t of aw(e,s.node,a))n.has(t.label)||(n.add(t.label),r.push(t))}while(s.nextSibling());return Zb.set(t,r),r}{let i=[],r=new Set;return t.cursor().iterate((t=>{var n;if(a(t)&&t.matchContext(ew)&&":"==(null===(n=t.node.nextSibling)||void 0===n?void 0:n.name)){let a=e.sliceString(t.from,t.to);r.has(a)||(r.add(a),i.push({label:a,type:"variable"}))}})),i}}const iw=e=>t=>{let{state:a,pos:i}=t,r=Cd(a).resolveInner(i,-1),n=r.type.isError&&r.from==r.to-1&&"-"==a.doc.sliceString(r.from,r.to);if("PropertyName"==r.name||(n||"TagName"==r.name)&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:$b(),validFor:Yb};if("ValueName"==r.name)return{from:r.from,options:Kb,validFor:Yb};if("PseudoClassName"==r.name)return{from:r.from,options:Qb,validFor:Yb};if(e(r)||(t.explicit||n)&&function(e,t){var a;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let i=null===(a=e.parent)||void 0===a?void 0:a.firstChild;return"Callee"==(null==i?void 0:i.name)&&"var"==t.sliceString(i.from,i.to)}(r,a.doc))return{from:e(r)||n?r.from:i,options:aw(a.doc,tw(r),e),validFor:Jb};if("TagName"==r.name){for(let{parent:e}=r;e;e=e.parent)if("Block"==e.name)return{from:r.from,options:$b(),validFor:Yb};return{from:r.from,options:Xb,validFor:Yb}}if(!t.explicit)return null;let s=r.resolve(i),o=s.childBefore(i);return o&&":"==o.name&&"PseudoClassSelector"==s.name?{from:i,options:Qb,validFor:Yb}:o&&":"==o.name&&"Declaration"==s.name||"ArgList"==s.name?{from:i,options:Kb,validFor:Yb}:"Block"==s.name||"Styles"==s.name?{from:i,options:$b(),validFor:Yb}:null},rw=iw((e=>"VariableName"==e.name)),nw=xd.define({name:"css",parser:Gb.configure({props:[Vd.add({Declaration:Qd()}),Xd.add({"Block KeyframeList":function(e){let t=e.firstChild,a=e.lastChild;return t&&t.to<a.from?{from:t.to,to:a.type.isError?e.to:a.from}:null}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});var sw=[{label:(0,o.__)("None","essential-blocks"),value:"none"},{label:(0,o.__)("FadeIn","essential-blocks"),value:"eb___fadeIn"},{label:(0,o.__)("FadeInDown","essential-blocks"),value:"eb___fadeInDown"},{label:(0,o.__)("FadeInLeft","essential-blocks"),value:"eb___fadeInLeft"},{label:(0,o.__)("FadeInRight","essential-blocks"),value:"eb___fadeInRight"},{label:(0,o.__)("FadeInUp","essential-blocks"),value:"eb___fadeInUp"},{label:(0,o.__)("SlideInUp","essential-blocks"),value:"eb___slideInUp"},{label:(0,o.__)("SlideInDown","essential-blocks"),value:"eb___slideInDown"},{label:(0,o.__)("SlideInLeft","essential-blocks"),value:"eb___slideInLeft"},{label:(0,o.__)("SlideInRight","essential-blocks"),value:"eb___slideInRight"},{label:(0,o.__)("ZoomIn","essential-blocks"),value:"eb___zoomIn"},{label:(0,o.__)("ZoomInDown","essential-blocks"),value:"eb___zoomInDown"},{label:(0,o.__)("ZoomInLeft","essential-blocks"),value:"eb___zoomInLeft"},{label:(0,o.__)("ZoomInRight","essential-blocks"),value:"eb___zoomInRight"},{label:(0,o.__)("ZoomInUp","essential-blocks"),value:"eb___zoomInUp"},{label:(0,o.__)("Bounce","essential-blocks"),value:"eb___bounce"},{label:(0,o.__)("Flash","essential-blocks"),value:"eb___flash"},{label:(0,o.__)("Pulse","essential-blocks"),value:"eb___pulse"},{label:(0,o.__)("RubberBand","essential-blocks"),value:"eb___rubberBand"},{label:(0,o.__)("Swing","essential-blocks"),value:"eb___swing"},{label:(0,o.__)("Tada","essential-blocks"),value:"eb___tada"},{label:(0,o.__)("Wobble","essential-blocks"),value:"eb___wobble"},{label:(0,o.__)("Jello","essential-blocks"),value:"eb___jello"},{label:(0,o.__)("BounceIn","essential-blocks"),value:"eb___bounceIn"},{label:(0,o.__)("BounceInDown","essential-blocks"),value:"eb___bounceInDown"},{label:(0,o.__)("BounceInUp","essential-blocks"),value:"eb___bounceInUp"},{label:(0,o.__)("Flip","essential-blocks"),value:"eb___flip"},{label:(0,o.__)("FlipInX","essential-blocks"),value:"eb___flipInX"},{label:(0,o.__)("FlipInY","essential-blocks"),value:"eb___flipInY"},{label:(0,o.__)("RotateIn","essential-blocks"),value:"eb___rotateIn"}];function ow(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function lw(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?ow(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):ow(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function cw(e){var t=e.attributes,a=e.setAttributes,i=t.animationData,r=function(e,t){a({animationData:lw(lw({},i),{},n({},e,t))})};return(0,s.createElement)(s.Fragment,null,i&&(0,s.createElement)(l.PanelBody,{title:(0,o.__)("Animation","essential-blocks"),initialOpen:!1},(0,s.createElement)(l.SelectControl,{label:(0,o.__)("Select Animation","essential-blocks"),value:i.style,options:sw,onChange:function(e){return r("style",e)},id:"eb-animation-style"}),(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Animation Speed","essential-blocks"),value:i.speed,onChange:function(e){return r("speed",e)},min:0,max:5e3,allowReset:!0}),(0,s.createElement)(l.RangeControl,{label:(0,o.__)("Animation Delay","essential-blocks"),value:i.delay,onChange:function(e){return r("delay",e)},min:0,max:5e3,allowReset:!0})))}function fw(e){var t=e.attributes,a=e.setAttributes,i=t.blockId,r=t.customCss,n=t.hideOnDesktop,c=t.hideOnTab,f=t.hideOnMobile,u="\n .".concat(i," {\n /*position: relative;*/\n}\n@media (max-width: 767px) {\n .").concat(i," {\n /*display: block;*/\n }\n}\n");return(0,s.createElement)(s.Fragment,null,(0,s.createElement)(l.PanelBody,{title:(0,o.__)("Responsive Control","essential-blocks"),initialOpen:!1},(0,s.createElement)(l.ToggleControl,{label:(0,o.__)("Hide on Desktop","essential-blocks"),checked:n,onChange:function(){return a({hideOnDesktop:!n})}}),(0,s.createElement)(l.ToggleControl,{label:(0,o.__)("Hide on Tab","essential-blocks"),checked:c,onChange:function(){return a({hideOnTab:!c})}}),(0,s.createElement)(l.ToggleControl,{label:(0,o.__)("Hide on Mobile","essential-blocks"),checked:f,onChange:function(){return a({hideOnMobile:!f})}})),(0,s.createElement)(cw,{attributes:t,setAttributes:a}),(0,s.createElement)(l.PanelBody,{title:(0,o.__)("Custom CSS","essential-blocks"),initialOpen:!1},(0,s.createElement)(cb,{value:r||u.trim(),height:"250px",extensions:[new Ld(nw,nw.data.of({autocomplete:rw}))],onChange:function(e){return function(e){a({customCss:e})}(e)}})))}},146:(e,t,a)=>{"use strict";var i=a(363),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return i.isMemo(e)?s:o[e.$$typeof]||r}o[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[i.Memo]=s;var c=Object.defineProperty,f=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,g=Object.prototype;e.exports=function e(t,a,i){if("string"!=typeof a){if(g){var r=d(a);r&&r!==g&&e(t,r,i)}var s=f(a);u&&(s=s.concat(u(a)));for(var o=l(t),p=l(a),m=0;m<s.length;++m){var y=s[m];if(!(n[y]||i&&i[y]||p&&p[y]||o&&o[y])){var v=h(a,y);try{c(t,y,v)}catch(e){}}}}return t}},228:e=>{"use strict";var t=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,r){for(var n,s,o=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))a.call(n,c)&&(o[c]=n[c]);if(t){s=t(n);for(var f=0;f<s.length;f++)i.call(n,s[f])&&(o[s[f]]=n[s[f]])}}return o}},799:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,i=a?Symbol.for("react.element"):60103,r=a?Symbol.for("react.portal"):60106,n=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,o=a?Symbol.for("react.profiler"):60114,l=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,f=a?Symbol.for("react.async_mode"):60111,u=a?Symbol.for("react.concurrent_mode"):60111,h=a?Symbol.for("react.forward_ref"):60112,d=a?Symbol.for("react.suspense"):60113,g=a?Symbol.for("react.suspense_list"):60120,p=a?Symbol.for("react.memo"):60115,m=a?Symbol.for("react.lazy"):60116,y=a?Symbol.for("react.block"):60121,v=a?Symbol.for("react.fundamental"):60117,b=a?Symbol.for("react.responder"):60118,w=a?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case u:case n:case o:case s:case d:return e;default:switch(e=e&&e.$$typeof){case c:case h:case m:case p:case l:return e;default:return t}}case r:return t}}}function k(e){return S(e)===u}t.AsyncMode=f,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=n,t.Lazy=m,t.Memo=p,t.Portal=r,t.Profiler=o,t.StrictMode=s,t.Suspense=d,t.isAsyncMode=function(e){return k(e)||S(e)===f},t.isConcurrentMode=k,t.isContextConsumer=function(e){return S(e)===c},t.isContextProvider=function(e){return S(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return S(e)===h},t.isFragment=function(e){return S(e)===n},t.isLazy=function(e){return S(e)===m},t.isMemo=function(e){return S(e)===p},t.isPortal=function(e){return S(e)===r},t.isProfiler=function(e){return S(e)===o},t.isStrictMode=function(e){return S(e)===s},t.isSuspense=function(e){return S(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===u||e===o||e===s||e===d||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=S},363:(e,t,a)=>{"use strict";e.exports=a(799)},20:(e,t,a)=>{"use strict";a(228);var i=a(609),r=60103;if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),n("react.fragment")}var s=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};t.jsx=function(e,t,a){var i,n={},c=null,f=null;for(i in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(f=t.ref),t)o.call(t,i)&&!l.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===n[i]&&(n[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:f,props:n,_owner:s.current}}},848:(e,t,a)=>{"use strict";e.exports=a(20)},371:(e,t,a)=>{var i;!function(){function r(e,t,a){return e.call.apply(e.bind,arguments)}function n(e,t,a){if(!e)throw Error();if(2<arguments.length){var i=Array.prototype.slice.call(arguments,2);return function(){var a=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(a,i),e.apply(t,a)}}return function(){return e.apply(t,arguments)}}function s(e,t,a){return(s=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?r:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function l(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function f(e,t,a,i){if(t=e.c.createElement(t),a)for(var r in a)a.hasOwnProperty(r)&&("style"==r?t.style.cssText=a[r]:t.setAttribute(r,a[r]));return i&&t.appendChild(e.c.createTextNode(i)),t}function u(e,t,a){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(a,e.lastChild)}function h(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,a){t=t||[],a=a||[];for(var i=e.className.split(/\s+/),r=0;r<t.length;r+=1){for(var n=!1,s=0;s<i.length;s+=1)if(t[r]===i[s]){n=!0;break}n||i.push(t[r])}for(t=[],r=0;r<i.length;r+=1){for(n=!1,s=0;s<a.length;s+=1)if(i[r]===a[s]){n=!0;break}n||t.push(i[r])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function g(e,t){for(var a=e.className.split(/\s+/),i=0,r=a.length;i<r;i++)if(a[i]==t)return!0;return!1}function p(e,t,a){function i(){o&&r&&n&&(o(s),o=null)}t=f(e,"link",{rel:"stylesheet",href:t,media:"all"});var r=!1,n=!0,s=null,o=a||null;c?(t.onload=function(){r=!0,i()},t.onerror=function(){r=!0,s=Error("Stylesheet failed to load"),i()}):setTimeout((function(){r=!0,i()}),0),u(e,"head",t)}function m(e,t,a,i){var r=e.c.getElementsByTagName("head")[0];if(r){var n=f(e,"script",{src:t}),s=!1;return n.onload=n.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,a&&a(null),n.onload=n.onreadystatechange=null,"HEAD"==n.parentNode.tagName&&r.removeChild(n))},r.appendChild(n),setTimeout((function(){s||(s=!0,a&&a(Error("Script load timeout")))}),i||5e3),n}return null}function y(){this.a=0,this.c=null}function v(e){return e.a++,function(){e.a--,w(e)}}function b(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function S(e){this.a=e||"-"}function k(e,t){this.c=e,this.f=4,this.a="n";var a=(t||"n4").match(/^([nio])([1-9])$/i);a&&(this.a=a[1],this.f=parseInt(a[2],10))}function O(e){var t=[];e=e.split(/,\s*/);for(var a=0;a<e.length;a++){var i=e[a].replace(/['"]/g,"");-1!=i.indexOf(" ")||/^\d/.test(i)?t.push("'"+i+"'"):t.push(i)}return t.join(",")}function x(e){return e.a+e.f}function C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function M(e){var t=4,a="n",i=null;return e&&((i=e.match(/(normal|oblique|italic)/i))&&i[1]&&(a=i[1].substr(0,1).toLowerCase()),(i=e.match(/([1-9]00|normal|bold)/i))&&i[1]&&(/bold/i.test(i[1])?t=7:/[1-9]00/.test(i[1])&&(t=parseInt(i[1].substr(0,1),10)))),a+t}function A(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new S("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function T(e){if(e.g){var t=g(e.f,e.a.c("wf","active")),a=[],i=[e.a.c("wf","loading")];t||a.push(e.a.c("wf","inactive")),d(e.f,a,i)}P(e,"inactive")}function P(e,t,a){e.j&&e.h[t]&&(a?e.h[t](a.c,x(a)):e.h[t]())}function N(){this.c={}}function E(e,t){this.c=e,this.f=t,this.a=f(this.c,"span",{"aria-hidden":"true"},this.f)}function R(e){u(e.c,"body",e.a)}function D(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+O(e.c)+";font-style:"+C(e)+";font-weight:"+e.f+"00;"}function B(e,t,a,i,r,n){this.g=e,this.j=t,this.a=i,this.c=a,this.f=r||3e3,this.h=n||void 0}function L(e,t,a,i,r,n,s){this.v=e,this.B=t,this.c=a,this.a=i,this.s=s||"BESbswy",this.f={},this.w=r||3e3,this.u=n||null,this.m=this.j=this.h=this.g=null,this.g=new E(this.c,this.s),this.h=new E(this.c,this.s),this.j=new E(this.c,this.s),this.m=new E(this.c,this.s),e=D(e=new k(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=D(e=new k(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=D(e=new k("serif",x(this.a))),this.j.a.style.cssText=e,e=D(e=new k("sans-serif",x(this.a))),this.m.a.style.cssText=e,R(this.g),R(this.h),R(this.j),R(this.m)}S.prototype.c=function(e){for(var t=[],a=0;a<arguments.length;a++)t.push(arguments[a].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},B.prototype.start=function(){var e=this.c.o.document,t=this,a=o(),i=new Promise((function(i,r){!function n(){o()-a>=t.f?r():e.fonts.load(function(e){return C(e)+" "+e.f+"00 300px "+O(e.c)}(t.a),t.h).then((function(e){1<=e.length?i():setTimeout(n,25)}),(function(){r()}))}()})),r=null,n=new Promise((function(e,a){r=setTimeout(a,t.f)}));Promise.race([n,i]).then((function(){r&&(clearTimeout(r),r=null),t.g(t.a)}),(function(){t.j(t.a)}))};var I={D:"serif",C:"sans-serif"},F=null;function _(){if(null===F){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);F=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return F}function z(e,t,a){for(var i in I)if(I.hasOwnProperty(i)&&t===e.f[I[i]]&&a===e.f[I[i]])return!0;return!1}function j(e){var t,a=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=a===e.f.serif&&i===e.f["sans-serif"])||(t=_()&&z(e,a,i)),t?o()-e.A>=e.w?_()&&z(e,a,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?H(e,e.v):H(e,e.B):function(e){setTimeout(s((function(){j(this)}),e),50)}(e):H(e,e.v)}function H(e,t){setTimeout(s((function(){h(this.g.a),h(this.h.a),h(this.j.a),h(this.m.a),t(this.a)}),e),0)}function V(e,t,a){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=a}L.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),j(this)};var q=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&d(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),P(e,"active")):T(e.a))}function G(e){this.j=e,this.a=new N,this.h=0,this.f=this.g=!0}function U(e,t,a,i,r){var n=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=r||null,o=i||{};if(0===a.length&&n)T(t.a);else{t.f+=a.length,n&&(t.j=n);var l,c=[];for(l=0;l<a.length;l++){var f=a[l],u=o[f.c],h=t.a,g=f;if(h.g&&d(h.f,[h.a.c("wf",g.c,x(g).toString(),"loading")]),P(h,"fontloading",g),h=null,null===q)if(window.FontFace){g=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var p=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);q=g?42<parseInt(g[1],10):!p}else q=!1;h=q?new B(s(t.g,t),s(t.h,t),t.c,f,t.s,u):new L(s(t.g,t),s(t.h,t),t.c,f,t.s,e,u),c.push(h)}for(l=0;l<c.length;l++)c[l].start()}}),0)}function $(e,t){this.c=e,this.a=t}function Q(e,t){this.c=e,this.a=t}function K(e,t){this.c=e||X,this.a=[],this.f=[],this.g=t||""}V.prototype.g=function(e){var t=this.a;t.g&&d(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),P(t,"fontactive",e),this.m=!0,W(this)},V.prototype.h=function(e){var t=this.a;if(t.g){var a=g(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),i=[],r=[t.a.c("wf",e.c,x(e).toString(),"loading")];a||i.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),d(t.f,i,r)}P(t,"fontinactive",e),W(this)},G.prototype.load=function(e){this.c=new l(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,a){var i=[],r=a.timeout;!function(e){e.g&&d(e.f,[e.a.c("wf","loading")]),P(e,"loading")}(t),i=function(e,t,a){var i,r=[];for(i in t)if(t.hasOwnProperty(i)){var n=e.c[i];n&&r.push(n(t[i],a))}return r}(e.a,a,e.c);var n=new V(e.c,t,r);for(e.h=i.length,t=0,a=i.length;t<a;t++)i[t].load((function(t,a,i){U(e,n,t,a,i)}))}(this,new A(this.c,e),e)},$.prototype.load=function(e){function t(){if(n["__mti_fntLst"+i]){var a,r=n["__mti_fntLst"+i](),s=[];if(r)for(var o=0;o<r.length;o++){var l=r[o].fontfamily;null!=r[o].fontStyle&&null!=r[o].fontWeight?(a=r[o].fontStyle+r[o].fontWeight,s.push(new k(l,a))):s.push(new k(l))}e(s)}else setTimeout((function(){t()}),50)}var a=this,i=a.a.projectId,r=a.a.version;if(i){var n=a.c.o;m(this.c,(a.a.api||"https://fast.fonts.net/jsapi")+"/"+i+".js"+(r?"?v="+r:""),(function(r){r?e([]):(n["__MonotypeConfiguration__"+i]=function(){return a.a},t())})).id="__MonotypeAPIScript__"+i}else e([])},Q.prototype.load=function(e){var t,a,i=this.a.urls||[],r=this.a.families||[],n=this.a.testStrings||{},s=new y;for(t=0,a=i.length;t<a;t++)p(this.c,i[t],v(s));var o=[];for(t=0,a=r.length;t<a;t++)if((i=r[t].split(":"))[1])for(var l=i[1].split(","),c=0;c<l.length;c+=1)o.push(new k(i[0],l[c]));else o.push(new k(i[0]));b(s,(function(){e(o,n)}))};var X="https://fonts.googleapis.com/css";function Y(e){this.f=e,this.a=[],this.c={}}var J={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Z={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ae(e,t){this.c=e,this.a=t}var ie={Arimo:!0,Cousine:!0,Tinos:!0};function re(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}ae.prototype.load=function(e){var t=new y,a=this.c,i=new K(this.a.api,this.a.text),r=this.a.families;!function(e,t){for(var a=t.length,i=0;i<a;i++){var r=t[i].split(":");3==r.length&&e.f.push(r.pop());var n="";2==r.length&&""!=r[1]&&(n=":"),e.a.push(r.join(n))}}(i,r);var n=new Y(r);!function(e){for(var t=e.f.length,a=0;a<t;a++){var i=e.f[a].split(":"),r=i[0].replace(/\+/g," "),n=["n4"];if(2<=i.length){var s;if(s=[],o=i[1])for(var o,l=(o=o.split(",")).length,c=0;c<l;c++){var f;if((f=o[c]).match(/^[\w-]+$/))if(null==(u=te.exec(f.toLowerCase())))f="";else{if(f=null==(f=u[2])||""==f?"n":ee[f],null==(u=u[1])||""==u)u="4";else var u=Z[u]||(isNaN(u)?"4":u.substr(0,1));f=[f,u].join("")}else f="";f&&s.push(f)}0<s.length&&(n=s),3==i.length&&(s=[],0<(i=(i=i[2])?i.split(","):s).length&&(i=J[i[0]])&&(e.c[r]=i))}for(e.c[r]||(i=J[r])&&(e.c[r]=i),i=0;i<n.length;i+=1)e.a.push(new k(r,n[i]))}}(n),p(a,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,a=[],i=0;i<t;i++)a.push(e.a[i].replace(/ /g,"+"));return t=e.c+"?family="+a.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(i),v(t)),b(t,(function(){e(n.a,n.c,ie)}))},re.prototype.load=function(e){var t=this.a.id,a=this.c.o;t?m(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(a.Typekit&&a.Typekit.config&&a.Typekit.config.fn){t=a.Typekit.config.fn;for(var i=[],r=0;r<t.length;r+=2)for(var n=t[r],s=t[r+1],o=0;o<s.length;o++)i.push(new k(n,s[o]));try{a.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(i)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,a=this.c.o,i=this;t?(a.__webfontfontdeckmodule__||(a.__webfontfontdeckmodule__={}),a.__webfontfontdeckmodule__[t]=function(t,a){for(var r=0,n=a.fonts.length;r<n;++r){var s=a.fonts[r];i.a.push(new k(s.name,M("font-weight:"+s.weight+";font-style:"+s.style)))}e(i.a)},m(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var se=new G(window);se.a.c.custom=function(e,t){return new Q(t,e)},se.a.c.fontdeck=function(e,t){return new ne(t,e)},se.a.c.monotype=function(e,t){return new $(t,e)},se.a.c.typekit=function(e,t){return new re(t,e)},se.a.c.google=function(e,t){return new ae(t,e)};var oe={load:s(se.load,se)};void 0===(i=function(){return oe}.call(t,a,t,e))||(e.exports=i)}()},609:e=>{"use strict";e.exports=window.React},942:(e,t)=>{var a;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var a=arguments[t];a&&(e=s(e,n(a)))}return e}function n(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var a in e)i.call(e,a)&&e[a]&&(t=s(t,a));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0===(a=function(){return r}.apply(t,[]))||(e.exports=a)}()}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,i),n.exports}i.m=t,e=[],i.O=(t,a,r,n)=>{if(!a){var s=1/0;for(f=0;f<e.length;f++){for(var[a,r,n]=e[f],o=!0,l=0;l<a.length;l++)(!1&n||s>=n)&&Object.keys(i.O).every((e=>i.O[e](a[l])))?a.splice(l--,1):(o=!1,n<s&&(s=n));if(o){e.splice(f--,1);var c=r();void 0!==c&&(t=c)}}return t}n=n||0;for(var f=e.length;f>0&&e[f-1][2]>n;f--)e[f]=e[f-1];e[f]=[a,r,n]},i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={158:0,41:0};i.O.j=t=>0===e[t];var t=(t,a)=>{var r,n,[s,o,l]=a,c=0;if(s.some((t=>0!==e[t]))){for(r in o)i.o(o,r)&&(i.m[r]=o[r]);if(l)var f=l(i)}for(t&&t(a);c<s.length;c++)n=s[c],i.o(e,n)&&e[n]&&e[n][0](),e[n]=0;return i.O(f)},a=globalThis.webpackChunkeb_controls=globalThis.webpackChunkeb_controls||[];a.forEach(t.bind(null,0)),a.push=t.bind(null,a.push.bind(a))})();var r=i.O(void 0,[41],(()=>i(174)));r=i.O(r),window.EBTOCControls=r})();
Copyright ©2021 || Defacer Indonesia