-
Notifications
You must be signed in to change notification settings - Fork 0
/
7797.c0ad4f29f7f8c872.js
1 lines (1 loc) · 282 KB
/
7797.c0ad4f29f7f8c872.js
1
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7797],{7797:(se,I,v)=>{"use strict";v.r(I),v.d(I,{SpeechRecognitionPageModule:()=>j});var d=v(9181),N=v(8996),T=v(5861),y=v(9971),p=v.n(y),f=v(1240);const r=[{name:"Albanian (Albania)",code:"sq-AL"},{name:"Arabic (Egypt)",code:"ar-EG"},{name:"Arabic (Kuwait)",code:"ar-KW"},{name:"Arabic (Lebanon)",code:"ar-LB"},{name:"Arabic (Qatar)",code:"ar-QA"},{name:"Arabic (Saudi Arabia)",code:"ar-SA"},{name:"Arabic (United Arab Emirates)",code:"ar-AE"},{name:"Arabic (Yemen)",code:"ar-YE"},{name:"Armenian (Armenia)",code:"hy-AM"},{name:"Azerbaijani (Azerbaijan)",code:"az-AZ"},{name:"Basque (Spain)",code:"eu-ES"},{name:"Bengali (Bangladesh)",code:"bn-BD"},{name:"Bengali (India)",code:"bn-IN"},{name:"Catalan (Spain)",code:"ca-ES"},{name:"Chinese, Cantonese (Traditional Hong Kong)",code:"zh-HK"},{name:"Chinese, Mandarin (Simplified, China)",code:"zh-CN"},{name:"Chinese, Mandarin (Traditional, Taiwan)",code:"zh-TW"},{name:"Danish (Denmark)",code:"da-DK"},{name:"Dutch (Belgium)",code:"nl-BE"},{name:"Dutch (Netherlands)",code:"nl-NL"},{name:"English (Australia)",code:"en-AU"},{name:"English (Canada)",code:"en-CA"},{name:"English (India)",code:"en-IN"},{name:"English (Ireland)",code:"en-IE"},{name:"English (New Zealand)",code:"en-NZ"},{name:"English (Pakistan)",code:"en-PK"},{name:"English (Singapore)",code:"en-SG"},{name:"English (United Kingdom)",code:"en-GB"},{name:"English (United States)",code:"en-US"},{name:"Finnish (Finland)",code:"fi-FI"},{name:"French (Belgium)",code:"fr-BE"},{name:"French (Canada)",code:"fr-CA"},{name:"French (France)",code:"fr-FR"},{name:"French (Switzerland)",code:"fr-CH"},{name:"German (Austria)",code:"de-AT"},{name:"German (Germany)",code:"de-DE"},{name:"German (Switzerland)",code:"de-CH"},{name:"Greek (Greece)",code:"el-GR"},{name:"Gujarati (India)",code:"gu-IN"},{name:"Hebrew (Israel)",code:"iw-IL"},{name:"Hindi (India)",code:"hi-IN"},{name:"Hungarian (Hungary)",code:"hu-HU"},{name:"Icelandic (Iceland)",code:"is-IS"},{name:"Italian (Italy)",code:"it-IT"},{name:"Italian (Switzerland)",code:"it-CH"},{name:"Japanese (Japan)",code:"ja-JP"},{name:"Kannada (India)",code:"kn-IN"},{name:"Korean (South Korea)",code:"ko-KR"},{name:"Latvian (Latvia)",code:"lv-LV"},{name:"Malay (Malaysia)",code:"ms-MY"},{name:"Norwegian Bokm\xe5l (Norway)",code:"no-NO"},{name:"Persian (Iran)",code:"fa-IR"},{name:"Polish (Poland)",code:"pl-PL"},{name:"Portuguese (Brazil)",code:"pt-BR"},{name:"Portuguese (Portugal)",code:"pt-PT"},{name:"Romanian (Romania)",code:"ro-RO"},{name:"Russian (Russia)",code:"ru-RU"},{name:"Serbian (Serbia)",code:"sr-RS"},{name:"Spanish (Argentina)",code:"es-AR"},{name:"Spanish (Chile)",code:"es-CL"},{name:"Spanish (Colombia)",code:"es-CO"},{name:"Spanish (Costa Rica)",code:"es-CR"},{name:"Spanish (Dominican Republic)",code:"es-DO"},{name:"Spanish (El Salvador)",code:"es-SV"},{name:"Spanish (Guatemala)",code:"es-GT"},{name:"Spanish (Honduras)",code:"es-HN"},{name:"Spanish (Mexico)",code:"es-MX"},{name:"Spanish (Panama)",code:"es-PA"},{name:"Spanish (Peru)",code:"es-PE"},{name:"Spanish (Spain)",code:"es-ES"},{name:"Spanish (United States)",code:"es-US"},{name:"Swedish (Sweden)",code:"sv-SE"},{name:"Tamil (India)",code:"ta-IN"},{name:"Thai (Thailand)",code:"th-TH"},{name:"Turkish (Turkey)",code:"tr-TR"},{name:"Ukrainian (Ukraine)",code:"uk-UA"},{name:"Urdu (India)",code:"ur-IN"},{name:"Urdu (Pakistan)",code:"ur-PK"}],o={ab:{name:"Abkhaz",nativeName:"\u0430\u04a7\u0441\u0443\u0430"},aa:{name:"Afar",nativeName:"Afaraf"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},sq:{name:"Albanian",nativeName:"Shqip"},am:{name:"Amharic",nativeName:"\u12a0\u121b\u122d\u129b"},ar:{name:"Arabic",nativeName:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},an:{name:"Aragonese",nativeName:"Aragon\xe9s"},hy:{name:"Armenian",nativeName:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576"},as:{name:"Assamese",nativeName:"\u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},av:{name:"Avaric",nativeName:"\u0430\u0432\u0430\u0440 \u043c\u0430\u0446\u04c0, \u043c\u0430\u0433\u04c0\u0430\u0440\u0443\u043b \u043c\u0430\u0446\u04c0"},ae:{name:"Avestan",nativeName:"avesta"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"az\u0259rbaycan dili"},bm:{name:"Bambara",nativeName:"bamanankan"},ba:{name:"Bashkir",nativeName:"\u0431\u0430\u0448\u04a1\u043e\u0440\u0442 \u0442\u0435\u043b\u0435"},eu:{name:"Basque",nativeName:"euskara, euskera"},be:{name:"Belarusian",nativeName:"\u0411\u0435\u043b\u0430\u0440\u0443\u0441\u043a\u0430\u044f"},bn:{name:"Bengali",nativeName:"\u09ac\u09be\u0982\u09b2\u09be"},bh:{name:"Bihari",nativeName:"\u092d\u094b\u091c\u092a\u0941\u0930\u0940"},bi:{name:"Bislama",nativeName:"Bislama"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},br:{name:"Breton",nativeName:"brezhoneg"},bg:{name:"Bulgarian",nativeName:"\u0431\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438 \u0435\u0437\u0438\u043a"},my:{name:"Burmese",nativeName:"\u1017\u1019\u102c\u1005\u102c"},ca:{name:"Catalan; Valencian",nativeName:"Catal\xe0"},ch:{name:"Chamorro",nativeName:"Chamoru"},ce:{name:"Chechen",nativeName:"\u043d\u043e\u0445\u0447\u0438\u0439\u043d \u043c\u043e\u0442\u0442"},ny:{name:"Chichewa; Chewa; Nyanja",nativeName:"chiChe\u0175a, chinyanja"},zh:{name:"Chinese",nativeName:"\u4e2d\u6587 (Zh\u014dngw\xe9n), \u6c49\u8bed, \u6f22\u8a9e"},cv:{name:"Chuvash",nativeName:"\u0447\u04d1\u0432\u0430\u0448 \u0447\u04d7\u043b\u0445\u0438"},kw:{name:"Cornish",nativeName:"Kernewek"},co:{name:"Corsican",nativeName:"corsu, lingua corsa"},cr:{name:"Cree",nativeName:"\u14c0\u1426\u1403\u152d\u140d\u140f\u1423"},hr:{name:"Croatian",nativeName:"hrvatski"},cs:{name:"Czech",nativeName:"\u010desky, \u010de\u0161tina"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi; Dhivehi; Maldivian;",nativeName:"\u078b\u07a8\u0788\u07ac\u0780\u07a8"},nl:{name:"Dutch",nativeName:"Nederlands, Vlaams"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti, eesti keel"},ee:{name:"Ewe",nativeName:"E\u028begbe"},fo:{name:"Faroese",nativeName:"f\xf8royskt"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fi:{name:"Finnish",nativeName:"suomi, suomen kieli"},fr:{name:"French",nativeName:"fran\xe7ais, langue fran\xe7aise"},ff:{name:"Fula; Fulah; Pulaar; Pular",nativeName:"Fulfulde, Pulaar, Pular"},gl:{name:"Galician",nativeName:"Galego"},ka:{name:"Georgian",nativeName:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},de:{name:"German",nativeName:"Deutsch"},el:{name:"Greek, Modern",nativeName:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},gn:{name:"Guaran\xed",nativeName:"Ava\xf1e\u1ebd"},gu:{name:"Gujarati",nativeName:"\u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},ht:{name:"Haitian; Haitian Creole",nativeName:"Krey\xf2l ayisyen"},ha:{name:"Hausa",nativeName:"Hausa, \u0647\u064e\u0648\u064f\u0633\u064e"},he:{name:"Hebrew (modern)",nativeName:"\u05e2\u05d1\u05e8\u05d9\u05ea"},hz:{name:"Herero",nativeName:"Otjiherero"},hi:{name:"Hindi",nativeName:"\u0939\u093f\u0928\u094d\u0926\u0940, \u0939\u093f\u0902\u0926\u0940"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hu:{name:"Hungarian",nativeName:"Magyar"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Originally called Occidental; then Interlingue after WWII"},ga:{name:"Irish",nativeName:"Gaeilge"},ig:{name:"Igbo",nativeName:"As\u1ee5s\u1ee5 Igbo"},ik:{name:"Inupiaq",nativeName:"I\xf1upiaq, I\xf1upiatun"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"\xcdslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"\u1403\u14c4\u1483\u144e\u1450\u1466"},ja:{name:"Japanese",nativeName:"\u65e5\u672c\u8a9e (\u306b\u307b\u3093\u3054\uff0f\u306b\u3063\u307d\u3093\u3054)"},jv:{name:"Javanese",nativeName:"basa Jawa"},kl:{name:"Kalaallisut, Greenlandic",nativeName:"kalaallisut, kalaallit oqaasii"},kn:{name:"Kannada",nativeName:"\u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"\u0915\u0936\u094d\u092e\u0940\u0930\u0940, \u0643\u0634\u0645\u064a\u0631\u064a\u200e"},kk:{name:"Kazakh",nativeName:"\u049a\u0430\u0437\u0430\u049b \u0442\u0456\u043b\u0456"},km:{name:"Khmer",nativeName:"\u1797\u17b6\u179f\u17b6\u1781\u17d2\u1798\u17c2\u179a"},ki:{name:"Kikuyu, Gikuyu",nativeName:"G\u0129k\u0169y\u0169"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},ky:{name:"Kirghiz, Kyrgyz",nativeName:"\u043a\u044b\u0440\u0433\u044b\u0437 \u0442\u0438\u043b\u0438"},kv:{name:"Komi",nativeName:"\u043a\u043e\u043c\u0438 \u043a\u044b\u0432"},kg:{name:"Kongo",nativeName:"KiKongo"},ko:{name:"Korean",nativeName:"\ud55c\uad6d\uc5b4 (\u97d3\u570b\u8a9e), \uc870\uc120\ub9d0 (\u671d\u9bae\u8a9e)"},ku:{name:"Kurdish",nativeName:"Kurd\xee, \u0643\u0648\u0631\u062f\u06cc\u200e"},kj:{name:"Kwanyama, Kuanyama",nativeName:"Kuanyama"},la:{name:"Latin",nativeName:"latine, lingua latina"},lb:{name:"Luxembourgish, Letzeburgesch",nativeName:"L\xebtzebuergesch"},lg:{name:"Luganda",nativeName:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Ling\xe1la"},lo:{name:"Lao",nativeName:"\u0e9e\u0eb2\u0eaa\u0eb2\u0ea5\u0eb2\u0ea7"},lt:{name:"Lithuanian",nativeName:"lietuvi\u0173 kalba"},lu:{name:"Luba-Katanga",nativeName:""},lv:{name:"Latvian",nativeName:"latvie\u0161u valoda"},gv:{name:"Manx",nativeName:"Gaelg, Gailck"},mk:{name:"Macedonian",nativeName:"\u043c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438 \u0458\u0430\u0437\u0438\u043a"},mg:{name:"Malagasy",nativeName:"Malagasy fiteny"},ms:{name:"Malay",nativeName:"bahasa Melayu, \u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064a\u0648\u200e"},ml:{name:"Malayalam",nativeName:"\u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},mt:{name:"Maltese",nativeName:"Malti"},mi:{name:"M\u0101ori",nativeName:"te reo M\u0101ori"},mr:{name:"Marathi (Mar\u0101\u1e6dh\u012b)",nativeName:"\u092e\u0930\u093e\u0920\u0940"},mh:{name:"Marshallese",nativeName:"Kajin M\u0327aje\u013c"},mn:{name:"Mongolian",nativeName:"\u043c\u043e\u043d\u0433\u043e\u043b"},na:{name:"Nauru",nativeName:"Ekakair\u0169 Naoero"},nv:{name:"Navajo, Navaho",nativeName:"Din\xe9 bizaad, Din\xe9k\u02bceh\u01f0\xed"},nb:{name:"Norwegian Bokm\xe5l",nativeName:"Norsk bokm\xe5l"},nd:{name:"North Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"\u0928\u0947\u092a\u093e\u0932\u0940"},ng:{name:"Ndonga",nativeName:"Owambo"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},ii:{name:"Nuosu",nativeName:"\ua188\ua320\ua4bf Nuosuhxop"},nr:{name:"South Ndebele",nativeName:"isiNdebele"},oc:{name:"Occitan",nativeName:"Occitan"},oj:{name:"Ojibwe, Ojibwa",nativeName:"\u140a\u14c2\u1511\u14c8\u142f\u14a7\u140e\u14d0"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic",nativeName:"\u0469\u0437\u044b\u043a\u044a \u0441\u043b\u043e\u0432\u0463\u043d\u044c\u0441\u043a\u044a"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"\u0b13\u0b21\u0b3c\u0b3f\u0b06"},os:{name:"Ossetian, Ossetic",nativeName:"\u0438\u0440\u043e\u043d \xe6\u0432\u0437\u0430\u0433"},pa:{name:"Panjabi, Punjabi",nativeName:"\u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40, \u067e\u0646\u062c\u0627\u0628\u06cc\u200e"},pi:{name:"P\u0101li",nativeName:"\u092a\u093e\u0934\u093f"},fa:{name:"Persian",nativeName:"\u0641\u0627\u0631\u0633\u06cc"},pl:{name:"Polish",nativeName:"polski"},ps:{name:"Pashto, Pushto",nativeName:"\u067e\u069a\u062a\u0648"},pt:{name:"Portuguese",nativeName:"Portugu\xeas"},qu:{name:"Quechua",nativeName:"Runa Simi, Kichwa"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"kiRundi"},ro:{name:"Romanian, Moldavian, Moldovan",nativeName:"rom\xe2n\u0103"},ru:{name:"Russian",nativeName:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439 \u044f\u0437\u044b\u043a"},sa:{name:"Sanskrit (Sa\u1e41sk\u1e5bta)",nativeName:"\u0938\u0902\u0938\u094d\u0915\u0943\u0924\u092e\u094d"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"\u0938\u093f\u0928\u094d\u0927\u0940, \u0633\u0646\u068c\u064a\u060c \u0633\u0646\u062f\u06be\u06cc\u200e"},se:{name:"Northern Sami",nativeName:"Davvis\xe1megiella"},sm:{name:"Samoan",nativeName:"gagana faa Samoa"},sg:{name:"Sango",nativeName:"y\xe2ng\xe2 t\xee s\xe4ng\xf6"},sr:{name:"Serbian",nativeName:"\u0441\u0440\u043f\u0441\u043a\u0438 \u0458\u0435\u0437\u0438\u043a"},gd:{name:"Scottish Gaelic; Gaelic",nativeName:"G\xe0idhlig"},sn:{name:"Shona",nativeName:"chiShona"},si:{name:"Sinhala, Sinhalese",nativeName:"\u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},sk:{name:"Slovak",nativeName:"sloven\u010dina"},sl:{name:"Slovene",nativeName:"sloven\u0161\u010dina"},so:{name:"Somali",nativeName:"Soomaaliga, af Soomaali"},st:{name:"Southern Sotho",nativeName:"Sesotho"},es:{name:"Spanish; Castilian",nativeName:"espa\xf1ol, castellano"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sw:{name:"Swahili",nativeName:"Kiswahili"},ss:{name:"Swati",nativeName:"SiSwati"},sv:{name:"Swedish",nativeName:"svenska"},ta:{name:"Tamil",nativeName:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},te:{name:"Telugu",nativeName:"\u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},tg:{name:"Tajik",nativeName:"\u0442\u043e\u04b7\u0438\u043a\u04e3, to\u011fik\u012b, \u062a\u0627\u062c\u06cc\u06a9\u06cc\u200e"},th:{name:"Thai",nativeName:"\u0e44\u0e17\u0e22"},ti:{name:"Tigrinya",nativeName:"\u1275\u130d\u122d\u129b"},bo:{name:"Tibetan Standard, Tibetan, Central",nativeName:"\u0f56\u0f7c\u0f51\u0f0b\u0f61\u0f72\u0f42"},tk:{name:"Turkmen",nativeName:"T\xfcrkmen, \u0422\u04af\u0440\u043a\u043c\u0435\u043d"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog, \u170f\u1712\u1703\u1705\u1714 \u1706\u1704\u170e\u1713\u1704\u1714"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga (Tonga Islands)",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"T\xfcrk\xe7e"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"\u0442\u0430\u0442\u0430\u0440\u0447\u0430, tatar\xe7a, \u062a\u0627\u062a\u0627\u0631\u0686\u0627\u200e"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uighur, Uyghur",nativeName:"Uy\u01a3urq\u0259, \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5\u200e"},uk:{name:"Ukrainian",nativeName:"\u0443\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},ur:{name:"Urdu",nativeName:"\u0627\u0631\u062f\u0648"},uz:{name:"Uzbek",nativeName:"zbek, \u040e\u0437\u0431\u0435\u043a, \u0623\u06c7\u0632\u0628\u06d0\u0643\u200e"},ve:{name:"Venda",nativeName:"Tshiven\u1e13a"},vi:{name:"Vietnamese",nativeName:"Ti\u1ebfng Vi\u1ec7t"},vo:{name:"Volap\xfck",nativeName:"Volap\xfck"},wa:{name:"Walloon",nativeName:"Walon"},cy:{name:"Welsh",nativeName:"Cymraeg"},wo:{name:"Wolof",nativeName:"Wollof"},fy:{name:"Western Frisian",nativeName:"Frysk"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"\u05d9\u05d9\u05b4\u05d3\u05d9\u05e9"},yo:{name:"Yoruba",nativeName:"Yor\xf9b\xe1"},za:{name:"Zhuang, Chuang",nativeName:"Sa\u026f cue\u014b\u0185, Saw cuengh"}};var e=v(4650),t=v(603),s=v(3353),l=v(6895);class n{constructor(){this.color="primary"}}n.\u0275fac=function(R){return new(R||n)},n.\u0275cmp=e.Xpm({type:n,selectors:[["app-custom-button"]],inputs:{color:"color"},ngContentSelectors:["*"],decls:2,vars:4,consts:[[1,"select-none","text-sm","cursor-pointer","border","border-gray-300","rounded-lg","px-4","py-2","flex","items-center","gap-1","active:bg-gray-300","active:shadow-lg","transition-all","duration-150","ease-in-out"]],template:function(R,M){1&R&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA()),2&R&&e.ekj("bg-red-500","danger"===M.color)("text-white","danger"===M.color)},encapsulation:2});const c=["editorWrapper"],i=["modal"];function h(D,R){1&D&&(e.ynx(0),e._uU(1," Recognize "),e._UZ(2,"br"),e._uU(3," My Voice "),e.BQk())}function k(D,R){1&D&&(e.ynx(0),e._uU(1," Recognizing... "),e._UZ(2,"br"),e._uU(3," \xa0 "),e.BQk())}function _(D,R){if(1&D&&(e.ynx(0),e._uU(1),e.BQk()),2&D){const M=R.$implicit,V=e.oxw();e.xp6(1),e.hij(" ",V.selectedLanguage===M.code?M.name:""," ")}}function O(D,R){1&D&&(e.ynx(0),e._uU(1," Speak "),e._UZ(2,"br"),e._uU(3," the Text "),e.BQk())}function S(D,R){1&D&&(e.ynx(0),e._uU(1," Speaking... "),e._UZ(2,"br"),e._uU(3," \xa0 "),e.BQk())}function b(D,R){if(1&D&&(e.ynx(0),e._uU(1),e.BQk()),2&D){const M=R.$implicit,V=e.oxw();e.xp6(1),e.hij(" ",V.selectedVoiceName===M.value?M.text:""," ")}}function m(D,R){if(1&D){const M=e.EpF();e.TgZ(0,"app-custom-button",6),e.NdJ("click",function(){e.CHM(M);const J=e.oxw();return e.KtG(J.share())}),e._UZ(1,"ion-icon",32),e._uU(2," Just Share "),e.qZA()}}function g(D,R){if(1&D&&(e.TgZ(0,"ion-item")(1,"ion-label"),e._uU(2),e.qZA(),e._UZ(3,"ion-radio",35),e.qZA()),2&D){const M=R.$implicit;e.xp6(2),e.Oqu(M.name),e.xp6(1),e.Q6J("value",M.code)}}function E(D,R){if(1&D){const M=e.EpF();e.ynx(0),e.TgZ(1,"ion-list")(2,"ion-radio-group",34),e.NdJ("ionChange",function(J){e.CHM(M);const ne=e.oxw(2);return e.KtG(ne.onChangeRecognitionLanguage(J))}),e.YNc(3,g,4,2,"ion-item",22),e.qZA()(),e.BQk()}if(2&D){const M=e.oxw(2);e.xp6(2),e.Q6J("value",M.selectedLanguage),e.xp6(1),e.Q6J("ngForOf",M.languages)}}function w(D,R){if(1&D&&(e.TgZ(0,"ion-item")(1,"ion-label"),e._uU(2),e.qZA(),e._UZ(3,"ion-radio",35),e.qZA()),2&D){const M=R.$implicit;e.xp6(2),e.Oqu(M.text),e.xp6(1),e.Q6J("value",M.value)}}function C(D,R){if(1&D){const M=e.EpF();e.ynx(0),e.TgZ(1,"ion-list")(2,"ion-radio-group",34),e.NdJ("ionChange",function(J){e.CHM(M);const ne=e.oxw(2);return e.KtG(ne.onChangeSynthesisLanguage(J))}),e.YNc(3,w,4,2,"ion-item",22),e.qZA()(),e.BQk()}if(2&D){const M=e.oxw(2);e.xp6(2),e.Q6J("value",M.selectedVoiceName),e.xp6(1),e.Q6J("ngForOf",M.getVoiceOptions())}}function F(D,R){1&D&&e._UZ(0,"img",39)}function H(D,R){if(1&D&&e._UZ(0,"img",40),2&D){const M=e.oxw().$implicit;e.Q6J("src",M.iconSrc,e.LSH)}}function Y(D,R){if(1&D&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&D){const M=R.$implicit;e.xp6(1),e.Oqu(M)}}function U(D,R){if(1&D&&(e.TgZ(0,"ion-chip")(1,"ion-label"),e._uU(2),e.qZA(),e._UZ(3,"ion-icon",41),e.qZA()),2&D){const M=R.$implicit;e.xp6(2),e.Oqu(M)}}function q(D,R){if(1&D&&(e.TgZ(0,"ion-item")(1,"ion-avatar",36),e.YNc(2,F,1,0,"img",37),e.YNc(3,H,1,1,"img",38),e.qZA(),e.TgZ(4,"ion-label"),e.YNc(5,Y,2,1,"h2",22),e.YNc(6,U,4,1,"ion-chip",22),e.qZA()()),2&D){const M=R.$implicit;e.xp6(2),e.Q6J("ngIf",!M.iconSrc),e.xp6(1),e.Q6J("ngIf",M.iconSrc),e.xp6(2),e.Q6J("ngForOf",M.name),e.xp6(1),e.Q6J("ngForOf",M.tel)}}function A(D,R){if(1&D&&(e.TgZ(0,"ion-list")(1,"ion-list-header"),e._uU(2," Selected Contacts "),e.qZA(),e.YNc(3,q,7,4,"ion-item",22),e.qZA()),2&D){const M=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",M.contacts)}}function P(D,R){if(1&D&&(e.ynx(0),e.YNc(1,A,4,1,"ion-list",18),e.BQk()),2&D){const M=e.oxw(2);e.xp6(1),e.Q6J("ngIf",M.contacts.length)}}function B(D,R){if(1&D&&(e.TgZ(0,"div",33),e.YNc(1,E,4,2,"ng-container",18),e.YNc(2,C,4,2,"ng-container",18),e.YNc(3,P,2,1,"ng-container",18),e.qZA()),2&D){const M=e.oxw();e.xp6(1),e.Q6J("ngIf","recognition"===M.modalType),e.xp6(1),e.Q6J("ngIf","synthesis"===M.modalType),e.xp6(1),e.Q6J("ngIf","sms"===M.modalType)}}class Z{constructor(R,M,V,J){this.alertController=R,this.cdr=M,this.platform=V,this.toastController=J,this.languages=r,this.modalType="recognition",this.editorHtml="",this.isSpeechRecognitionSupported="webkitSpeechRecognition"in window,this.isShareSupported="share"in navigator,this.isRecognizing=!1,this.ignoreOnEnd=!1,this.startTimestamp=0,this.finalTranscript="",this.interimTranscript="",this.selectedLanguage=navigator.language.replaceAll("_","-"),this.startBeep=new Audio("/assets/sounds/start-beep.mp3"),this.stopBeep=new Audio("/assets/sounds/stop-beep.mp3"),this.errorBeep=new Audio("/assets/sounds/error-beep.mp3"),this.isSpeechSynthesisSupported="speechSynthesis"in window,this.isSpeaking=!1,this.selectedVoiceName="",this.voices=[],this.isContactsSupported="contacts"in navigator,this.contacts=[],window.comp=this}ngAfterViewInit(){this.initEditor()}ngOnDestroy(){this.recognition.stop()}ngOnInit(){this.initRecognition(),this.initSynthesis()}initEditor(){this.quill=new(p())(this.editorWrapper.nativeElement,{modules:{toolbar:[["bold","italic","underline"],[{header:1},{header:2}],[{color:[]},{background:[]}],["clean"]]},theme:"snow"}),this.delta=this.quill.getContents(),this.delta.ops.pop(),this.quill.on("text-change",R=>{const M=new f.bc(this.quill.getContents().ops,{paragraphTag:""});this.editorHtml=M.convert()})}initRecognition(){this.isSpeechRecognitionSupported&&(this.recognition=new webkitSpeechRecognition,this.recognition.continuous=!this.platform.ANDROID,this.recognition.interimResults=!0,this.recognition.onstart=()=>{this.isRecognizing=!0,this.platform.ANDROID||this.startBeep.play(),this.cdr.detectChanges()},this.recognition.onerror=R=>{console.log("onerror",R),this.errorBeep.play(),"no-speech"==R.error&&(this.presentToast("No speech was detected. You may need to adjust your microphone settings.","danger"),this.ignoreOnEnd=!0),"audio-capture"==R.error&&(this.presentToast("No microphone was found. Ensure that a microphone is installed and microphone settings are configured correctly.","danger"),this.ignoreOnEnd=!0),"not-allowed"==R.error&&(this.presentToast(R.timeStamp-this.startTimestamp<100?"Permission to use microphone is blocked.":"Permission to use microphone was denied.","danger"),this.ignoreOnEnd=!0),this.isRecognizing=!1,this.cdr.detectChanges()},this.recognition.onend=()=>{this.isRecognizing=!1,this.platform.ANDROID||this.stopBeep.play(),!this.ignoreOnEnd&&this.cdr.detectChanges()},this.recognition.onresult=R=>{if(this.interimTranscript="",typeof R.results>"u")return this.recognition.onend=null,this.recognition.stop(),void console.error("Web Speech API is not supported by this browser.");for(let M=R.resultIndex;M<R.results.length;++M){const V=R.results[M],J=" "+V[0].transcript.trim().toLocaleLowerCase();V.isFinal?(this.finalTranscript+=J,this.quill.clipboard.dangerouslyPasteHTML(this.editorHtml+J)):(this.interimTranscript+=J,this.quill.clipboard.dangerouslyPasteHTML(`${this.editorHtml} <span style="color: #666; font-style: italic">${this.interimTranscript}</span>`,"silent"))}this.quill.setSelection(Number.MAX_SAFE_INTEGER,0),this.cdr.detectChanges()})}initSynthesis(){if(!this.isSpeechSynthesisSupported)return;const R=()=>{this.voices=speechSynthesis.getVoices().sort((M,V)=>M.name<=V.name?-1:1),this.selectedVoiceName=this.voices.find(M=>M.default)?.name??"",this.cdr.detectChanges()};R(),void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=R)}getVoiceOptions(){return this.voices.map(R=>({text:this.platform.ANDROID?R.name:`${o[R.lang.split("-")[0].split("_")[0]]?.name} (${R.name})`,value:R.name})).sort((R,M)=>R.text<=M.text?-1:1)}log(){console.log("voices",this.voices)}openModal(R){this.modalType=R,this.modal.present()}speak(){if(speechSynthesis.speaking)return speechSynthesis.cancel(),this.isSpeaking=!1,void this.cdr.detectChanges();const R=this.getEditorText();if(""===R)return void this.presentToast("No text to speak!","danger");const M=new SpeechSynthesisUtterance(R),V=this.voices.find(J=>J.name===this.selectedVoiceName);M.onend=J=>{console.log("SpeechSynthesisUtterance.onend",J),this.isSpeaking=!1,this.cdr.detectChanges()},M.onerror=J=>{console.error("SpeechSynthesisUtterance.onerror",J),this.isSpeaking=!1,this.cdr.detectChanges()},M.voice=V,M.lang=V.lang,speechSynthesis.speak(M),this.isSpeaking=!0,this.cdr.detectChanges()}startButton(R){if(this.isRecognizing)return this.recognition.stop(),void(""!==this.interimTranscript&&(this.quill.clipboard.dangerouslyPasteHTML(this.editorHtml+this.interimTranscript),this.interimTranscript=""));this.recognition.lang=this.selectedLanguage,this.recognition.start(),this.ignoreOnEnd=!1,this.startTimestamp=R.timeStamp}onChangeRecognitionLanguage(R){const V=R.detail.value;this.selectedLanguage=V,this.recognition.lang=V,this.modal.dismiss(),this.isRecognizing&&(this.recognition.stop(),setTimeout(()=>{this.recognition.start()},700))}onChangeSynthesisLanguage(R){this.selectedVoiceName=R.detail.value,this.modal.dismiss(),this.cdr.detectChanges()}cleanEditor(){this.quill.setText("")}getEditorText(){return this.quill.getText().trim()}presentToast(R,M="dark"){this.toastController.create({message:R,position:"bottom",color:M,duration:2500}).then(V=>V.present())}copy(){""!==this.getEditorText()?(navigator.clipboard.writeText(this.getEditorText()),this.presentToast("Text copied to the clipboard!","dark")):this.presentToast("No text to copy!","danger")}email(){if(""===this.getEditorText())return void this.presentToast("No text to share!","danger");const R=encodeURIComponent(this.getEditorText());window.open("mailto:?subject=Subject&body="+R)}whatsapp(){if(""===this.getEditorText())return void this.presentToast("No text to share!","danger");const R=encodeURIComponent(this.getEditorText());window.open("https://api.whatsapp.com/send?text="+R)}sms(){var R=this;return(0,T.Z)(function*(){const M=R.getEditorText();if(""===M)return void R.presentToast("No text to share!","danger");const V=["Cancel",{text:"Send SMS",handler:ne=>{const re=ne[0];null!=re?R.sendSms(re,M):R.presentToast("Invalid phone number!","danger")}}];var ne;R.isContactsSupported&&V.push({text:"Select from Contacts",handler:(ne=(0,T.Z)(function*(re){const[ue]=yield navigator.contacts.select(["name","tel"],{multiple:!1});R.alertController.create({header:"Confirmation",message:`\n You will be redirected to the Messaging App with the following inputs:\n <br/>\n <b>Name</b>: ${ue.name[0]}\n <br/>\n <b>Tel</b>: ${ue.tel[0]}\n <br/>\n <b>Text</b>: ${M}\n `,buttons:["Cancel",{text:"Go to Messaging",handler:()=>{R.sendSms(ue.tel[0],M)}}]}).then(me=>me.present())}),function(ue){return ne.apply(this,arguments)})}),(yield R.alertController.create({header:"Send Sms!",message:"Please enter the phone number to send the text as sms. This will not send it immediately. You will be redirected to the messaging app.",inputs:[{label:"Phone Number",placeholder:"905551231231",type:"tel"}],buttons:V})).present()})()}sendSms(R,M){window.open(`sms:${R}${this.platform.IOS?"&":"?"}body=${encodeURIComponent(M)}`)}share(){""!==this.getEditorText()?navigator.share({text:this.getEditorText()}):this.presentToast("No text to share!","danger")}selectContacts(){var R=this;return(0,T.Z)(function*(){const M=yield navigator.contacts.getProperties();R.contacts=yield navigator.contacts.select(M,{multiple:!0});for(const V of R.contacts)M.includes("tel")&&(V.tel=V.tel.map(J=>J.replaceAll(" ",""))),V.icon?.length&&(V.iconSrc=yield R.blobToBase64(V.icon[0])),M.forEach(J=>{V[J]=[...new Set(V[J])]});R.cdr.detectChanges()})()}blobToBase64(R){return(0,T.Z)(function*(){return new Promise((M,V)=>{const J=new FileReader;J.onloadend=()=>M(J.result.toString()),J.readAsDataURL(R)})})()}}Z.\u0275fac=function(R){return new(R||Z)(e.Y36(t.Br),e.Y36(e.sBO),e.Y36(s.t4),e.Y36(t.yF))},Z.\u0275cmp=e.Xpm({type:Z,selectors:[["app-speech-recognition"]],viewQuery:function(R,M){if(1&R&&(e.Gf(c,5),e.Gf(i,5)),2&R){let V;e.iGM(V=e.CRH())&&(M.editorWrapper=V.first),e.iGM(V=e.CRH())&&(M.modal=V.first)}},decls:66,vars:11,consts:[["fullscreen",""],[1,"lg+:flex","gap-4","justify-center","items-center","h-max","lg+:h-full"],[1,"mx-4","my-8","lg+:my-4","justify-center","h-[50vh]","max-h-[27rem]"],[1,"mx-auto","h-[100%]","max-w-lg","flex","flex-col","rounded-2xl","bg-white","drop-shadow-xl"],["editorWrapper",""],[1,"flex","justify-center","items-center","gap-2","m-2"],[3,"click"],["name","copy-outline",1,"text-base"],["name","trash-outline",1,"text-base"],[1,"mx-4","my-8","lg+:my-4"],[1,"rounded-2xl","bg-white","drop-shadow-xl","p-3","max-w-lg","mx-auto"],[1,"text-lg","font-bold","pb-2","md+:text-center"],[1,"mb-2","flex","gap-4","items-center","md+:justify-center"],[3,"color","click"],[1,"grid","text-center","w-28"],[1,"text-3xl"],["name","mic-off-outline",3,"hidden"],["name","mic-outline",3,"hidden"],[4,"ngIf"],[1,"w-28","lg+:w-40","min-h-[3.625rem]","flex","items-center","justify-between","gap-1"],[1,"text-xl"],["name","language-outline"],[4,"ngFor","ngForOf"],["name","chevron-down-outline"],["name","megaphone-outline"],[1,"flex","gap-4","md+:justify-center"],["name","chatbubbles-outline",1,"text-base"],["name","mail-outline",1,"text-base"],[1,"flex","gap-4","mt-4","md+:justify-center"],[3,"click",4,"ngIf"],["name","logo-whatsapp",1,"text-base"],["modal",""],["name","share-social-outline",1,"text-base"],[1,"modal-content"],[3,"value","ionChange"],[3,"value"],["slot","start"],["src","https://ionicframework.com/docs/img/demos/avatar.svg","alt","avatar",4,"ngIf"],["alt","icon",3,"src",4,"ngIf"],["src","https://ionicframework.com/docs/img/demos/avatar.svg","alt","avatar"],["alt","icon",3,"src"],["name","chatbubbles-outline"]],template:function(R,M){1&R&&(e.TgZ(0,"ion-content",0)(1,"div",1)(2,"div",2)(3,"div",3),e._UZ(4,"div",null,4),e.TgZ(6,"div",5)(7,"app-custom-button",6),e.NdJ("click",function(){return M.copy()}),e._UZ(8,"ion-icon",7),e._uU(9," Copy to Clipboard "),e.qZA(),e.TgZ(10,"app-custom-button",6),e.NdJ("click",function(){return M.cleanEditor()}),e._UZ(11,"ion-icon",8),e._uU(12," Clean the Text "),e.qZA()()()(),e.TgZ(13,"div",9)(14,"div",10)(15,"h2",11),e._uU(16,"Recognition"),e.qZA(),e.TgZ(17,"div",12)(18,"app-custom-button",13),e.NdJ("click",function(J){return M.startButton(J)}),e.TgZ(19,"div",14)(20,"div",15),e._UZ(21,"ion-icon",16)(22,"ion-icon",17),e.qZA(),e.YNc(23,h,4,0,"ng-container",18),e.YNc(24,k,4,0,"ng-container",18),e.qZA()(),e.TgZ(25,"app-custom-button",6),e.NdJ("click",function(){return M.openModal("recognition")}),e.TgZ(26,"div",19)(27,"div",20),e._UZ(28,"ion-icon",21),e.qZA(),e.YNc(29,_,2,1,"ng-container",22),e.TgZ(30,"div",20),e._UZ(31,"ion-icon",23),e.qZA()()()(),e.TgZ(32,"h2",11),e._uU(33,"Speaking"),e.qZA(),e.TgZ(34,"div",12)(35,"app-custom-button",13),e.NdJ("click",function(){return M.speak()}),e.TgZ(36,"div",14)(37,"div",15),e._UZ(38,"ion-icon",24),e.qZA(),e.YNc(39,O,4,0,"ng-container",18),e.YNc(40,S,4,0,"ng-container",18),e.qZA()(),e.TgZ(41,"app-custom-button",6),e.NdJ("click",function(){return M.openModal("synthesis")}),e.TgZ(42,"div",19)(43,"div",20),e._UZ(44,"ion-icon",21),e.qZA(),e.YNc(45,b,2,1,"ng-container",22),e.TgZ(46,"div",20),e._UZ(47,"ion-icon",23),e.qZA()()()(),e.TgZ(48,"h2",11),e._uU(49,"Sharing"),e.qZA(),e.TgZ(50,"div")(51,"div",25)(52,"app-custom-button",6),e.NdJ("click",function(){return M.sms()}),e._UZ(53,"ion-icon",26),e._uU(54," Share via SMS "),e.qZA(),e.TgZ(55,"app-custom-button",6),e.NdJ("click",function(){return M.email()}),e._UZ(56,"ion-icon",27),e._uU(57," Share via Email "),e.qZA()(),e.TgZ(58,"div",28),e.YNc(59,m,3,0,"app-custom-button",29),e.TgZ(60,"app-custom-button",6),e.NdJ("click",function(){return M.whatsapp()}),e._UZ(61,"ion-icon",30),e._uU(62," Share via Whatsapp "),e.qZA()()()()()()(),e.TgZ(63,"ion-modal",null,31),e.YNc(65,B,4,3,"ng-template"),e.qZA()),2&R&&(e.xp6(18),e.Q6J("color",M.isRecognizing?"danger":""),e.xp6(3),e.Q6J("hidden",!M.isRecognizing),e.xp6(1),e.Q6J("hidden",M.isRecognizing),e.xp6(1),e.Q6J("ngIf",!M.isRecognizing),e.xp6(1),e.Q6J("ngIf",M.isRecognizing),e.xp6(5),e.Q6J("ngForOf",M.languages),e.xp6(6),e.Q6J("color",M.isSpeaking?"danger":""),e.xp6(4),e.Q6J("ngIf",!M.isSpeaking),e.xp6(1),e.Q6J("ngIf",M.isSpeaking),e.xp6(5),e.Q6J("ngForOf",M.getVoiceOptions()),e.xp6(14),e.Q6J("ngIf",M.isShareSupported))},dependencies:[l.sg,l.O5,t.BJ,t.hM,t.W2,t.gu,t.Ie,t.Q$,t.q_,t.yh,t.B7,t.se,t.ki,t.U5,t.QI,n],styles:["ion-content[_ngcontent-%COMP%]{--ion-background-color: linear-gradient( 90deg, rgba(244, 244, 255, 1) 35%, rgba(253, 245, 255, 1) 100% )}ion-modal[_ngcontent-%COMP%]{--width: 80vw;--max-width: 25rem;--height: 60vh;--border-radius: 1rem;--box-shadow: 0 28px 48px rgba(0, 0, 0, .4)}ion-modal[_ngcontent-%COMP%] .modal-content[_ngcontent-%COMP%]{height:100%;overflow:auto}"],changeDetection:0});const G=[{path:"",component:Z}];class x{}x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=e.oAB({type:x}),x.\u0275inj=e.cJS({imports:[N.Bz.forChild(G),N.Bz]});class j{}j.\u0275fac=function(R){return new(R||j)},j.\u0275mod=e.oAB({type:j}),j.\u0275inj=e.cJS({imports:[d.m,x]})},8222:(se,I,v)=>{se=v.nmd(se);var N="__lodash_hash_undefined__",p=9007199254740991,f="[object Arguments]",r="[object Array]",e="[object Boolean]",t="[object Date]",s="[object Error]",l="[object Function]",n="[object Map]",a="[object Number]",i="[object Object]",h="[object Promise]",_="[object RegExp]",O="[object Set]",S="[object String]",g="[object WeakMap]",E="[object ArrayBuffer]",w="[object DataView]",G=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[f]=j[r]=j[E]=j[e]=j[w]=j[t]=j[s]=j[l]=j[n]=j[a]=j[i]=j[_]=j[O]=j[S]=j[g]=!1;var D="object"==typeof global&&global&&global.Object===Object&&global,R="object"==typeof self&&self&&self.Object===Object&&self,M=D||R||Function("return this")(),V=I&&!I.nodeType&&I,J=V&&se&&!se.nodeType&&se,ne=J&&J.exports===V,re=ne&&D.process,ue=function(){try{return re&&re.binding&&re.binding("util")}catch{}}(),me=ue&&ue.isTypedArray;function W(L,z){for(var $=-1,te=null==L?0:L.length;++$<te;)if(z(L[$],$,L))return!0;return!1}function Q(L,z){return L.has(z)}function ae(L){var z=-1,$=Array(L.size);return L.forEach(function(te,ce){$[++z]=[ce,te]}),$}function Oe(L){var z=-1,$=Array(L.size);return L.forEach(function(te){$[++z]=te}),$}var L,Ne=Array.prototype,Me=Object.prototype,he=M["__core-js_shared__"],Ae=Function.prototype.toString,Se=Me.hasOwnProperty,rt=(L=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+L:"",it=Me.toString,Ot=RegExp("^"+Ae.call(Se).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ot=ne?M.Buffer:void 0,Ge=M.Symbol,at=M.Uint8Array,lt=Me.propertyIsEnumerable,_t=Ne.splice,Re=Ge?Ge.toStringTag:void 0,ut=Object.getOwnPropertySymbols,Tt=ot?ot.isBuffer:void 0,kt=function le(L,z){return function($){return L(z($))}}(Object.keys,Object),Qe=De(M,"DataView"),Ue=De(M,"Map"),Je=De(M,"Promise"),Xe=De(M,"Set"),et=De(M,"WeakMap"),Fe=De(Object,"create"),Nt=qe(Qe),At=qe(Ue),Et=qe(Je),St=qe(Xe),wt=qe(et),st=Ge?Ge.prototype:void 0,tt=st?st.valueOf:void 0;function Ce(L){var z=-1,$=null==L?0:L.length;for(this.clear();++z<$;){var te=L[z];this.set(te[0],te[1])}}function we(L){var z=-1,$=null==L?0:L.length;for(this.clear();++z<$;){var te=L[z];this.set(te[0],te[1])}}function Be(L){var z=-1,$=null==L?0:L.length;for(this.clear();++z<$;){var te=L[z];this.set(te[0],te[1])}}function Ze(L){var z=-1,$=null==L?0:L.length;for(this.__data__=new Be;++z<$;)this.add(L[z])}function Le(L){var z=this.__data__=new we(L);this.size=z.size}function Ke(L,z){for(var $=L.length;$--;)if(pt(L[$][0],z))return $;return-1}function ze(L){return null==L?void 0===L?"[object Undefined]":"[object Null]":Re&&Re in Object(L)?function an(L){var z=Se.call(L,Re),$=L[Re];try{L[Re]=void 0;var te=!0}catch{}var ce=it.call(L);return te&&(z?L[Re]=$:delete L[Re]),ce}(L):function hn(L){return it.call(L)}(L)}function ft(L){return He(L)&&ze(L)==f}function ct(L,z,$,te,ce){return L===z||(null==L||null==z||!He(L)&&!He(z)?L!=L&&z!=z:function Xt(L,z,$,te,ce,ie){var pe=We(L),ye=We(z),ge=pe?r:Pe(L),de=ye?r:Pe(z),_e=(ge=ge==f?i:ge)==i,Ee=(de=de==f?i:de)==i,be=ge==de;if(be&&nt(L)){if(!nt(z))return!1;pe=!0,_e=!1}if(be&&!_e)return ie||(ie=new Le),pe||gt(L)?ht(L,z,$,te,ce,ie):function rn(L,z,$,te,ce,ie,pe){switch($){case w:if(L.byteLength!=z.byteLength||L.byteOffset!=z.byteOffset)return!1;L=L.buffer,z=z.buffer;case E:return!(L.byteLength!=z.byteLength||!ie(new at(L),new at(z)));case e:case t:case a:return pt(+L,+z);case s:return L.name==z.name&&L.message==z.message;case _:case S:return L==z+"";case n:var ye=ae;case O:if(ye||(ye=Oe),L.size!=z.size&&!(1&te))return!1;var de=pe.get(L);if(de)return de==z;te|=2,pe.set(L,z);var _e=ht(ye(L),ye(z),te,ce,ie,pe);return pe.delete(L),_e;case"[object Symbol]":if(tt)return tt.call(L)==tt.call(z)}return!1}(L,z,ge,$,te,ce,ie);if(!(1&$)){var Te=_e&&Se.call(L,"__wrapped__"),ke=Ee&&Se.call(z,"__wrapped__");if(Te||ke){var Ie=Te?L.value():L,xe=ke?z.value():z;return ie||(ie=new Le),ce(Ie,xe,$,te,ie)}}return!!be&&(ie||(ie=new Le),function on(L,z,$,te,ce,ie){var pe=1&$,ye=dt(L),ge=ye.length;if(ge!=dt(z).length&&!pe)return!1;for(var Ee=ge;Ee--;){var be=ye[Ee];if(!(pe?be in z:Se.call(z,be)))return!1}var Te=ie.get(L);if(Te&&ie.get(z))return Te==z;var ke=!0;ie.set(L,z),ie.set(z,L);for(var Ie=pe;++Ee<ge;){var xe=L[be=ye[Ee]],je=z[be];if(te)var bt=pe?te(je,xe,be,z,L,ie):te(xe,je,be,L,z,ie);if(!(void 0===bt?xe===je||ce(xe,je,$,te,ie):bt)){ke=!1;break}Ie||(Ie="constructor"==be)}if(ke&&!Ie){var $e=L.constructor,Ye=z.constructor;$e!=Ye&&"constructor"in L&&"constructor"in z&&!("function"==typeof $e&&$e instanceof $e&&"function"==typeof Ye&&Ye instanceof Ye)&&(ke=!1)}return ie.delete(L),ie.delete(z),ke}(L,z,$,te,ce,ie))}(L,z,$,te,ct,ce))}function ht(L,z,$,te,ce,ie){var pe=1&$,ye=L.length,ge=z.length;if(ye!=ge&&!(pe&&ge>ye))return!1;var de=ie.get(L);if(de&&ie.get(z))return de==z;var _e=-1,Ee=!0,be=2&$?new Ze:void 0;for(ie.set(L,z),ie.set(z,L);++_e<ye;){var Te=L[_e],ke=z[_e];if(te)var Ie=pe?te(ke,Te,_e,z,L,ie):te(Te,ke,_e,L,z,ie);if(void 0!==Ie){if(Ie)continue;Ee=!1;break}if(be){if(!W(z,function(xe,je){if(!Q(be,je)&&(Te===xe||ce(Te,xe,$,te,ie)))return be.push(je)})){Ee=!1;break}}else if(Te!==ke&&!ce(Te,ke,$,te,ie)){Ee=!1;break}}return ie.delete(L),ie.delete(z),Ee}function dt(L){return function Jt(L,z,$){var te=z(L);return We(L)?te:function K(L,z){for(var $=-1,te=z.length,ce=L.length;++$<te;)L[ce+$]=z[$];return L}(te,$(L))}(L,mn,ln)}function Ve(L,z){var $=L.__data__;return function sn(L){var z=typeof L;return"string"==z||"number"==z||"symbol"==z||"boolean"==z?"__proto__"!==L:null===L}(z)?$["string"==typeof z?"string":"hash"]:$.map}function De(L,z){var $=function oe(L,z){return L?.[z]}(L,z);return function en(L){return!(!yt(L)||function fn(L){return!!rt&&rt in L}(L))&&(vt(L)?Ot:G).test(qe(L))}($)?$:void 0}Ce.prototype.clear=function xt(){this.__data__=Fe?Fe(null):{},this.size=0},Ce.prototype.delete=function Lt(L){var z=this.has(L)&&delete this.__data__[L];return this.size-=z?1:0,z},Ce.prototype.get=function Pt(L){var z=this.__data__;if(Fe){var $=z[L];return $===N?void 0:$}return Se.call(z,L)?z[L]:void 0},Ce.prototype.has=function It(L){var z=this.__data__;return Fe?void 0!==z[L]:Se.call(z,L)},Ce.prototype.set=function Rt(L,z){var $=this.__data__;return this.size+=this.has(L)?0:1,$[L]=Fe&&void 0===z?N:z,this},we.prototype.clear=function Ct(){this.__data__=[],this.size=0},we.prototype.delete=function Bt(L){var z=this.__data__,$=Ke(z,L);return!($<0||($==z.length-1?z.pop():_t.call(z,$,1),--this.size,0))},we.prototype.get=function qt(L){var z=this.__data__,$=Ke(z,L);return $<0?void 0:z[$][1]},we.prototype.has=function jt(L){return Ke(this.__data__,L)>-1},we.prototype.set=function Mt(L,z){var $=this.__data__,te=Ke($,L);return te<0?(++this.size,$.push([L,z])):$[te][1]=z,this},Be.prototype.clear=function Dt(){this.size=0,this.__data__={hash:new Ce,map:new(Ue||we),string:new Ce}},Be.prototype.delete=function Ut(L){var z=Ve(this,L).delete(L);return this.size-=z?1:0,z},Be.prototype.get=function Ft(L){return Ve(this,L).get(L)},Be.prototype.has=function zt(L){return Ve(this,L).has(L)},Be.prototype.set=function Ht(L,z){var $=Ve(this,L),te=$.size;return $.set(L,z),this.size+=$.size==te?0:1,this},Ze.prototype.add=Ze.prototype.push=function Gt(L){return this.__data__.set(L,N),this},Ze.prototype.has=function Zt(L){return this.__data__.has(L)},Le.prototype.clear=function Kt(){this.__data__=new we,this.size=0},Le.prototype.delete=function Vt(L){var z=this.__data__,$=z.delete(L);return this.size=z.size,$},Le.prototype.get=function Wt(L){return this.__data__.get(L)},Le.prototype.has=function $t(L){return this.__data__.has(L)},Le.prototype.set=function Yt(L,z){var $=this.__data__;if($ instanceof we){var te=$.__data__;if(!Ue||te.length<199)return te.push([L,z]),this.size=++$.size,this;$=this.__data__=new Be(te)}return $.set(L,z),this.size=$.size,this};var ln=ut?function(L){return null==L?[]:(L=Object(L),function ve(L,z){for(var $=-1,te=null==L?0:L.length,ce=0,ie=[];++$<te;){var pe=L[$];z(pe,$,L)&&(ie[ce++]=pe)}return ie}(ut(L),function(z){return lt.call(L,z)}))}:function yn(){return[]},Pe=ze;function un(L,z){return!!(z=z??p)&&("number"==typeof L||x.test(L))&&L>-1&&L%1==0&&L<z}function qe(L){if(null!=L){try{return Ae.call(L)}catch{}try{return L+""}catch{}}return""}function pt(L,z){return L===z||L!=L&&z!=z}(Qe&&Pe(new Qe(new ArrayBuffer(1)))!=w||Ue&&Pe(new Ue)!=n||Je&&Pe(Je.resolve())!=h||Xe&&Pe(new Xe)!=O||et&&Pe(new et)!=g)&&(Pe=function(L){var z=ze(L),$=z==i?L.constructor:void 0,te=$?qe($):"";if(te)switch(te){case Nt:return w;case At:return n;case Et:return h;case St:return O;case wt:return g}return z});var dn=ft(function(){return arguments}())?ft:function(L){return He(L)&&Se.call(L,"callee")&&!lt.call(L,"callee")},We=Array.isArray,nt=Tt||function gn(){return!1};function vt(L){if(!yt(L))return!1;var z=ze(L);return z==l||"[object GeneratorFunction]"==z||"[object AsyncFunction]"==z||"[object Proxy]"==z}function mt(L){return"number"==typeof L&&L>-1&&L%1==0&&L<=p}function yt(L){var z=typeof L;return null!=L&&("object"==z||"function"==z)}function He(L){return null!=L&&"object"==typeof L}var gt=me?function ee(L){return function(z){return L(z)}}(me):function tn(L){return He(L)&&mt(L.length)&&!!j[ze(L)]};function mn(L){return function pn(L){return null!=L&&mt(L.length)&&!vt(L)}(L)?function Qt(L,z){var $=We(L),te=!$&&dn(L),ce=!$&&!te&&nt(L),ie=!$&&!te&&!ce&>(L),pe=$||te||ce||ie,ye=pe?function X(L,z){for(var $=-1,te=Array(L);++$<L;)te[$]=z($);return te}(L.length,String):[],ge=ye.length;for(var de in L)(z||Se.call(L,de))&&(!pe||!("length"==de||ce&&("offset"==de||"parent"==de)||ie&&("buffer"==de||"byteLength"==de||"byteOffset"==de)||un(de,ge)))&&ye.push(de);return ye}(L):function nn(L){if(!function cn(L){var z=L&&L.constructor;return L===("function"==typeof z&&z.prototype||Me)}(L))return kt(L);var z=[];for(var $ in Object(L))Se.call(L,$)&&"constructor"!=$&&z.push($);return z}(L)}se.exports=function vn(L,z){return ct(L,z)}},1407:function(se,I,v){"use strict";var d=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(I,"__esModule",{value:!0});var N=v(351),T=v(266),y=d(v(8222)),p=function(){function f(r,o){"string"==typeof r&&(r=new T.InsertDataQuill(N.DataType.Text,r+"")),this.insert=r,this.attributes=o||{}}return f.createNewLineOp=function(){return new f(N.NewLine)},f.prototype.isContainerBlock=function(){return this.isBlockquote()||this.isList()||this.isTable()||this.isCodeBlock()||this.isHeader()||this.isBlockAttribute()||this.isCustomTextBlock()},f.prototype.isBlockAttribute=function(){var r=this.attributes;return!!(r.align||r.direction||r.indent)},f.prototype.isBlockquote=function(){return!!this.attributes.blockquote},f.prototype.isHeader=function(){return!!this.attributes.header},f.prototype.isTable=function(){return!!this.attributes.table},f.prototype.isSameHeaderAs=function(r){return r.attributes.header===this.attributes.header&&this.isHeader()},f.prototype.hasSameAdiAs=function(r){return this.attributes.align===r.attributes.align&&this.attributes.direction===r.attributes.direction&&this.attributes.indent===r.attributes.indent},f.prototype.hasSameIndentationAs=function(r){return this.attributes.indent===r.attributes.indent},f.prototype.hasSameAttr=function(r){return y.default(this.attributes,r.attributes)},f.prototype.hasHigherIndentThan=function(r){return(Number(this.attributes.indent)||0)>(Number(r.attributes.indent)||0)},f.prototype.isInline=function(){return!(this.isContainerBlock()||this.isVideo()||this.isCustomEmbedBlock())},f.prototype.isCodeBlock=function(){return!!this.attributes["code-block"]},f.prototype.hasSameLangAs=function(r){return this.attributes["code-block"]===r.attributes["code-block"]},f.prototype.isJustNewline=function(){return this.insert.value===N.NewLine},f.prototype.isList=function(){return this.isOrderedList()||this.isBulletList()||this.isCheckedList()||this.isUncheckedList()},f.prototype.isOrderedList=function(){return this.attributes.list===N.ListType.Ordered},f.prototype.isBulletList=function(){return this.attributes.list===N.ListType.Bullet},f.prototype.isCheckedList=function(){return this.attributes.list===N.ListType.Checked},f.prototype.isUncheckedList=function(){return this.attributes.list===N.ListType.Unchecked},f.prototype.isACheckList=function(){return this.attributes.list==N.ListType.Unchecked||this.attributes.list===N.ListType.Checked},f.prototype.isSameListAs=function(r){return!!r.attributes.list&&(this.attributes.list===r.attributes.list||r.isACheckList()&&this.isACheckList())},f.prototype.isSameTableRowAs=function(r){return!!r.isTable()&&this.isTable()&&this.attributes.table===r.attributes.table},f.prototype.isText=function(){return this.insert.type===N.DataType.Text},f.prototype.isImage=function(){return this.insert.type===N.DataType.Image},f.prototype.isFormula=function(){return this.insert.type===N.DataType.Formula},f.prototype.isVideo=function(){return this.insert.type===N.DataType.Video},f.prototype.isLink=function(){return this.isText()&&!!this.attributes.link},f.prototype.isCustomEmbed=function(){return this.insert instanceof T.InsertDataCustom},f.prototype.isCustomEmbedBlock=function(){return this.isCustomEmbed()&&!!this.attributes.renderAsBlock},f.prototype.isCustomTextBlock=function(){return this.isText()&&!!this.attributes.renderAsBlock},f.prototype.isMentions=function(){return this.isText()&&!!this.attributes.mentions},f}();I.DeltaInsertOp=p},266:(se,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.InsertDataQuill=function N(T,y){this.type=T,this.value=y},I.InsertDataCustom=function N(T,y){this.type=T,this.value=y}},6628:function(se,I,v){"use strict";var d=this&&this.__importStar||function(f){if(f&&f.__esModule)return f;var r={};if(null!=f)for(var o in f)Object.hasOwnProperty.call(f,o)&&(r[o]=f[o]);return r.default=f,r};Object.defineProperty(I,"__esModule",{value:!0});var N=v(351),T=d(v(2786)),y=d(v(8981)),p=function(){function f(){}return f.denormalize=function(r){if(!r||"object"!=typeof r)return[];if("object"==typeof r.insert||r.insert===N.NewLine)return[r];var o=T.tokenizeWithNewLines(r.insert+"");if(1===o.length)return[r];var e=y.assign({},r,{insert:N.NewLine});return o.map(function(t){return t===N.NewLine?e:y.assign({},r,{insert:t})})},f}();I.InsertOpDenormalizer=p},9666:(se,I,v)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var d=v(1407),N=v(351),T=v(266),y=v(7270),p=v(6628),f=v(7580),r=function(){function o(){}return o.convert=function(e,t){if(!Array.isArray(e))return[];for(var u,n,l=[],a=0,c=[].concat.apply([],e.map(p.InsertOpDenormalizer.denormalize));a<c.length;a++){var i=c[a];i.insert&&(u=o.convertInsertVal(i.insert,t))&&(n=y.OpAttributeSanitizer.sanitize(i.attributes,t),l.push(new d.DeltaInsertOp(u,n)))}return l},o.convertInsertVal=function(e,t){if("string"==typeof e)return new T.InsertDataQuill(N.DataType.Text,e);if(!e||"object"!=typeof e)return null;var s=Object.keys(e);return s.length?N.DataType.Image in e?new T.InsertDataQuill(N.DataType.Image,f.OpLinkSanitizer.sanitize(e[N.DataType.Image]+"",t)):N.DataType.Video in e?new T.InsertDataQuill(N.DataType.Video,f.OpLinkSanitizer.sanitize(e[N.DataType.Video]+"",t)):N.DataType.Formula in e?new T.InsertDataQuill(N.DataType.Formula,e[N.DataType.Formula]):new T.InsertDataCustom(s[0],e[s[0]]):null},o}();I.InsertOpsConverter=r},7270:(se,I,v)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var d=v(351),N=v(3853),T=v(5395),y=v(7580),p=function(){function f(){}return f.sanitize=function(r,o){var e={};if(!r||"object"!=typeof r)return e;var t=["bold","italic","underline","strike","code","blockquote","code-block","renderAsBlock"],s=["background","color"],l=r.font,u=r.size,n=r.link,a=r.script,c=r.list,i=r.header,h=r.align,k=r.direction,_=r.indent,O=r.mentions,S=r.mention,b=r.width,m=r.target,g=r.rel,E=r["code-block"],w=t.concat(s,["font","size","link","script","list","header","align","direction","indent","mentions","mention","width","target","rel","code-block"]);if(t.forEach(function(F){var H=r[F];H&&(e[F]=!!H)}),s.forEach(function(F){var H=r[F];H&&(f.IsValidHexColor(H+"")||f.IsValidColorLiteral(H+"")||f.IsValidRGBColor(H+""))&&(e[F]=H)}),l&&f.IsValidFontName(l+"")&&(e.font=l),u&&f.IsValidSize(u+"")&&(e.size=u),b&&f.IsValidWidth(b+"")&&(e.width=b),n&&(e.link=y.OpLinkSanitizer.sanitize(n+"",o)),m&&f.isValidTarget(m)&&(e.target=m),g&&f.IsValidRel(g)&&(e.rel=g),E&&(e["code-block"]=f.IsValidLang(E)?E:!!E),(a===d.ScriptType.Sub||d.ScriptType.Super===a)&&(e.script=a),(c===d.ListType.Bullet||c===d.ListType.Ordered||c===d.ListType.Checked||c===d.ListType.Unchecked)&&(e.list=c),Number(i)&&(e.header=Math.min(Number(i),6)),T.find([d.AlignType.Center,d.AlignType.Right,d.AlignType.Justify,d.AlignType.Left],function(F){return F===h})&&(e.align=h),k===d.DirectionType.Rtl&&(e.direction=k),_&&Number(_)&&(e.indent=Math.min(Number(_),30)),O&&S){var C=N.MentionSanitizer.sanitize(S,o);Object.keys(C).length>0&&(e.mentions=!!O,e.mention=S)}return Object.keys(r).reduce(function(F,H){return-1===w.indexOf(H)&&(F[H]=r[H]),F},e)},f.IsValidHexColor=function(r){return!!r.match(/^#([0-9A-F]{6}|[0-9A-F]{3})$/i)},f.IsValidColorLiteral=function(r){return!!r.match(/^[a-z]{1,50}$/i)},f.IsValidRGBColor=function(r){return!!r.match(/^rgb\(((0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d),\s*){2}(0|25[0-5]|2[0-4]\d|1\d\d|0?\d?\d)\)$/i)},f.IsValidFontName=function(r){return!!r.match(/^[a-z\s0-9\- ]{1,30}$/i)},f.IsValidSize=function(r){return!!r.match(/^[a-z0-9\-]{1,20}$/i)},f.IsValidWidth=function(r){return!!r.match(/^[0-9]*(px|em|%)?$/)},f.isValidTarget=function(r){return!!r.match(/^[_a-zA-Z0-9\-]{1,50}$/)},f.IsValidRel=function(r){return!!r.match(/^[a-zA-Z\s\-]{1,250}$/i)},f.IsValidLang=function(r){return"boolean"==typeof r||!!r.match(/^[a-zA-Z\s\-\\\/\+]{1,50}$/i)},f}();I.OpAttributeSanitizer=p},7580:function(se,I,v){"use strict";var d=this&&this.__importStar||function(p){if(p&&p.__esModule)return p;var f={};if(null!=p)for(var r in p)Object.hasOwnProperty.call(p,r)&&(f[r]=p[r]);return f.default=p,f};Object.defineProperty(I,"__esModule",{value:!0});var N=d(v(9228)),T=v(3512),y=function(){function p(){}return p.sanitize=function(f,r){var o=function(){};r&&"function"==typeof r.urlSanitizer&&(o=r.urlSanitizer);var e=o(f);return"string"==typeof e?e:T.encodeLink(N.sanitize(f))},p}();I.OpLinkSanitizer=y},6229:function(se,I,v){"use strict";var d=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var s in e)Object.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t.default=e,t};Object.defineProperty(I,"__esModule",{value:!0});var N=v(3512),T=v(351),y=d(v(8981)),p=d(v(5395)),f=v(7270),r={serif:"font-family: Georgia, Times New Roman, serif",monospace:"font-family: Monaco, Courier New, monospace"};I.DEFAULT_INLINE_STYLES={font:function(e){return r[e]||"font-family:"+e},size:{small:"font-size: 0.75em",large:"font-size: 1.5em",huge:"font-size: 2.5em"},indent:function(e,t){var s=3*parseInt(e,10);return"padding-"+("rtl"===t.attributes.direction?"right":"left")+":"+s+"em"},direction:function(e,t){if("rtl"===e)return"direction:rtl"+(t.attributes.align?"":"; text-align:inherit")}};var o=function(){function e(t,s){this.op=t,this.options=y.assign({},{classPrefix:"ql",inlineStyles:void 0,encodeHtml:!0,listItemTag:"li",paragraphTag:"p"},s)}return e.prototype.prefixClass=function(t){return this.options.classPrefix?this.options.classPrefix+"-"+t:t+""},e.prototype.getHtml=function(){var t=this.getHtmlParts();return t.openingTag+t.content+t.closingTag},e.prototype.getHtmlParts=function(){var t=this;if(this.op.isJustNewline()&&!this.op.isContainerBlock())return{openingTag:"",closingTag:"",content:T.NewLine};var s=this.getTags(),l=this.getTagAttributes();!s.length&&l.length&&s.push("span");for(var u=[],n=[],c=function(_){return"img"===_&&!!t.op.attributes.link},i=0,h=s;i<h.length;i++){var k=h[i];c(k)&&u.push(N.makeStartTag("a",this.getLinkAttrs())),u.push(N.makeStartTag(k,l)),n.push("img"===k?"":N.makeEndTag(k)),c(k)&&n.push(N.makeEndTag("a")),l=[]}return n.reverse(),{openingTag:u.join(""),content:this.getContent(),closingTag:n.join("")}},e.prototype.getContent=function(){if(this.op.isContainerBlock())return"";if(this.op.isMentions())return this.op.insert.value;var t=this.op.isFormula()||this.op.isText()?this.op.insert.value:"";return this.options.encodeHtml&&N.encodeHtml(t)||t},e.prototype.getCssClasses=function(){var t=this.op.attributes;if(this.options.inlineStyles)return[];var s=["indent","align","direction","font","size"];return this.options.allowBackgroundClasses&&s.push("background"),(this.getCustomCssClasses()||[]).concat(s.filter(function(l){return!!t[l]}).filter(function(l){return"background"!==l||f.OpAttributeSanitizer.IsValidColorLiteral(t[l])}).map(function(l){return l+"-"+t[l]}).concat(this.op.isFormula()?"formula":[]).concat(this.op.isVideo()?"video":[]).concat(this.op.isImage()?"image":[]).map(this.prefixClass.bind(this)))},e.prototype.getCssStyles=function(){var t=this,s=this.op.attributes,l=[["color"]];return(this.options.inlineStyles||!this.options.allowBackgroundClasses)&&l.push(["background","background-color"]),this.options.inlineStyles&&(l=l.concat([["indent"],["align","text-align"],["direction"],["font","font-family"],["size"]])),(this.getCustomCssStyles()||[]).concat(l.filter(function(u){return!!s[u[0]]}).map(function(u){var n=u[0],a=s[n],c=t.options.inlineStyles&&t.options.inlineStyles[n]||I.DEFAULT_INLINE_STYLES[n];return"object"==typeof c?c[a]:"function"==typeof c?c(a,t.op):p.preferSecond(u)+":"+a})).filter(function(u){return void 0!==u})},e.prototype.getTagAttributes=function(){if(this.op.attributes.code&&!this.op.isLink())return[];var t=this.makeAttr.bind(this),s=this.getCustomTagAttributes(),l=s?Object.keys(this.getCustomTagAttributes()).map(function(i){return t(i,s[i])}):[],u=this.getCssClasses(),n=u.length?l.concat([t("class",u.join(" "))]):l;if(this.op.isImage())return this.op.attributes.width&&(n=n.concat(t("width",this.op.attributes.width))),n.concat(t("src",this.op.insert.value));if(this.op.isACheckList())return n.concat(t("data-checked",this.op.isCheckedList()?"true":"false"));if(this.op.isFormula())return n;if(this.op.isVideo())return n.concat(t("frameborder","0"),t("allowfullscreen","true"),t("src",this.op.insert.value));if(this.op.isMentions()){var a=this.op.attributes.mention;return a.class&&(n=n.concat(t("class",a.class))),n=n.concat(t("href",a["end-point"]&&a.slug?a["end-point"]+"/"+a.slug:"about:blank")),a.target&&(n=n.concat(t("target",a.target))),n}var c=this.getCssStyles();return c.length&&n.push(t("style",c.join(";"))),this.op.isCodeBlock()&&"string"==typeof this.op.attributes["code-block"]?n.concat(t("data-language",this.op.attributes["code-block"])):(this.op.isContainerBlock()||this.op.isLink()&&(n=n.concat(this.getLinkAttrs())),n)},e.prototype.makeAttr=function(t,s){return{key:t,value:s}},e.prototype.getLinkAttrs=function(){var s=f.OpAttributeSanitizer.isValidTarget(this.options.linkTarget||"")?this.options.linkTarget:void 0,l=f.OpAttributeSanitizer.IsValidRel(this.options.linkRel||"")?this.options.linkRel:void 0,u=this.op.attributes.target||s,n=this.op.attributes.rel||l;return[].concat(this.makeAttr("href",this.op.attributes.link)).concat(u?this.makeAttr("target",u):[]).concat(n?this.makeAttr("rel",n):[])},e.prototype.getCustomTag=function(t){if(this.options.customTag&&"function"==typeof this.options.customTag)return this.options.customTag.apply(null,[t,this.op])},e.prototype.getCustomTagAttributes=function(){if(this.options.customTagAttributes&&"function"==typeof this.options.customTagAttributes)return this.options.customTagAttributes.apply(null,[this.op])},e.prototype.getCustomCssClasses=function(){if(this.options.customCssClasses&&"function"==typeof this.options.customCssClasses){var t=this.options.customCssClasses.apply(null,[this.op]);if(t)return Array.isArray(t)?t:[t]}},e.prototype.getCustomCssStyles=function(){if(this.options.customCssStyles&&"function"==typeof this.options.customCssStyles){var t=this.options.customCssStyles.apply(null,[this.op]);if(t)return Array.isArray(t)?t:[t]}},e.prototype.getTags=function(){var t=this,s=this.op.attributes;if(!this.op.isText())return[this.op.isVideo()?"iframe":this.op.isImage()?"img":"span"];for(var l=this.options.paragraphTag||"p",n=0,a=[["blockquote"],["code-block","pre"],["list",this.options.listItemTag],["header"],["align",l],["direction",l],["indent",l]];n<a.length;n++){var h,c=a[n],i=c[0];if(s[i])return(h=this.getCustomTag(i))?[h]:"header"===i?["h"+s[i]]:[p.preferSecond(c)]}if(this.op.isCustomTextBlock())return(h=this.getCustomTag("renderAsBlock"))?[h]:[l];var k=Object.keys(s).reduce(function(O,S){var b=t.getCustomTag(S);return b&&(O[S]=b),O},{}),_=[["link","a"],["mentions","a"],["script"],["bold","strong"],["italic","em"],["strike","s"],["underline","u"],["code"]];return _.filter(function(O){return!!s[O[0]]}).concat(Object.keys(k).filter(function(O){return!_.some(function(S){return S[0]==O})}).map(function(O){return[O,k[O]]})).map(function(O){return k[O[0]]?k[O[0]]:"script"===O[0]?s[O[0]]===T.ScriptType.Sub?"sub":"sup":p.preferSecond(O)})},e}();I.OpToHtmlConverter=o},1648:function(se,I,v){"use strict";var d=this&&this.__importStar||function(u){if(u&&u.__esModule)return u;var n={};if(null!=u)for(var a in u)Object.hasOwnProperty.call(u,a)&&(n[a]=u[a]);return n.default=u,n};Object.defineProperty(I,"__esModule",{value:!0});var N=v(9666),T=v(6229),y=v(463),p=v(2705),f=v(3443),r=v(3512),o=d(v(8981)),e=v(351),t=v(5750),s="<br/>",l=function(){function u(n,a){this.rawDeltaOps=[],this.callbacks={},this.options=o.assign({paragraphTag:"p",encodeHtml:!0,classPrefix:"ql",inlineStyles:!1,multiLineBlockquote:!0,multiLineHeader:!0,multiLineCodeblock:!0,multiLineParagraph:!0,multiLineCustomBlock:!0,allowBackgroundClasses:!1,linkTarget:"_blank"},a,{orderedListTag:"ol",bulletListTag:"ul",listItemTag:"li"}),this.converterOptions={encodeHtml:this.options.encodeHtml,classPrefix:this.options.classPrefix,inlineStyles:this.options.inlineStyles?"object"==typeof this.options.inlineStyles?this.options.inlineStyles:{}:void 0,listItemTag:this.options.listItemTag,paragraphTag:this.options.paragraphTag,linkRel:this.options.linkRel,linkTarget:this.options.linkTarget,allowBackgroundClasses:this.options.allowBackgroundClasses,customTag:this.options.customTag,customTagAttributes:this.options.customTagAttributes,customCssClasses:this.options.customCssClasses,customCssStyles:this.options.customCssStyles},this.rawDeltaOps=n}return u.prototype._getListTag=function(n){return n.isOrderedList()?this.options.orderedListTag+"":n.isBulletList()||n.isCheckedList()||n.isUncheckedList()?this.options.bulletListTag+"":""},u.prototype.getGroupedOps=function(){var n=N.InsertOpsConverter.convert(this.rawDeltaOps,this.options),a=y.Grouper.pairOpsWithTheirBlock(n),c=y.Grouper.groupConsecutiveSameStyleBlocks(a,{blockquotes:!!this.options.multiLineBlockquote,header:!!this.options.multiLineHeader,codeBlocks:!!this.options.multiLineCodeblock,customBlocks:!!this.options.multiLineCustomBlock}),i=y.Grouper.reduceConsecutiveSameStyleBlocksToOne(c);return i=(new t.TableGrouper).group(i),(new f.ListNester).nest(i)},u.prototype.convert=function(){var n=this;return this.getGroupedOps().map(function(c){if(c instanceof p.ListGroup)return n._renderWithCallbacks(e.GroupType.List,c,function(){return n._renderList(c)});if(c instanceof p.TableGroup)return n._renderWithCallbacks(e.GroupType.Table,c,function(){return n._renderTable(c)});if(c instanceof p.BlockGroup){var i=c;return n._renderWithCallbacks(e.GroupType.Block,c,function(){return n._renderBlock(i.op,i.ops)})}return c instanceof p.BlotBlock?n._renderCustom(c.op,null):c instanceof p.VideoItem?n._renderWithCallbacks(e.GroupType.Video,c,function(){return new T.OpToHtmlConverter(c.op,n.converterOptions).getHtml()}):n._renderWithCallbacks(e.GroupType.InlineGroup,c,function(){return n._renderInlines(c.ops,!0)})}).join("")},u.prototype._renderWithCallbacks=function(n,a,c){var i="",h=this.callbacks.beforeRender_cb;(i="function"==typeof h?h.apply(null,[n,a]):"")||(i=c());var k=this.callbacks.afterRender_cb;return"function"==typeof k?k.apply(null,[n,i]):i},u.prototype._renderList=function(n){var a=this,c=n.items[0];return r.makeStartTag(this._getListTag(c.item.op))+n.items.map(function(i){return a._renderListItem(i)}).join("")+r.makeEndTag(this._getListTag(c.item.op))},u.prototype._renderListItem=function(n){n.item.op.attributes.indent=0;var c=new T.OpToHtmlConverter(n.item.op,this.converterOptions).getHtmlParts(),i=this._renderInlines(n.item.ops,!1);return c.openingTag+i+(n.innerList?this._renderList(n.innerList):"")+c.closingTag},u.prototype._renderTable=function(n){var a=this;return r.makeStartTag("table")+r.makeStartTag("tbody")+n.rows.map(function(c){return a._renderTableRow(c)}).join("")+r.makeEndTag("tbody")+r.makeEndTag("table")},u.prototype._renderTableRow=function(n){var a=this;return r.makeStartTag("tr")+n.cells.map(function(c){return a._renderTableCell(c)}).join("")+r.makeEndTag("tr")},u.prototype._renderTableCell=function(n){var c=new T.OpToHtmlConverter(n.item.op,this.converterOptions).getHtmlParts(),i=this._renderInlines(n.item.ops,!1);return r.makeStartTag("td",{key:"data-row",value:n.item.op.attributes.table})+c.openingTag+i+c.closingTag+r.makeEndTag("td")},u.prototype._renderBlock=function(n,a){var c=this,h=new T.OpToHtmlConverter(n,this.converterOptions).getHtmlParts();if(n.isCodeBlock())return h.openingTag+r.encodeHtml(a.map(function(_){return _.isCustomEmbed()?c._renderCustom(_,n):_.insert.value}).join(""))+h.closingTag;var k=a.map(function(_){return c._renderInline(_,n)}).join("");return h.openingTag+(k||s)+h.closingTag},u.prototype._renderInlines=function(n,a){var c=this;void 0===a&&(a=!0);var i=n.length-1,h=n.map(function(O,S){return S>0&&S===i&&O.isJustNewline()?"":c._renderInline(O,null)}).join("");if(!a)return h;var k=r.makeStartTag(this.options.paragraphTag),_=r.makeEndTag(this.options.paragraphTag);return h===s||this.options.multiLineParagraph?k+h+_:k+h.split(s).map(function(O){return""===O?s:O}).join(_+k)+_},u.prototype._renderInline=function(n,a){return n.isCustomEmbed()?this._renderCustom(n,a):new T.OpToHtmlConverter(n,this.converterOptions).getHtml().replace(/\n/g,s)},u.prototype._renderCustom=function(n,a){var c=this.callbacks.renderCustomOp_cb;return"function"==typeof c?c.apply(null,[n,a]):""},u.prototype.beforeRender=function(n){"function"==typeof n&&(this.callbacks.beforeRender_cb=n)},u.prototype.afterRender=function(n){"function"==typeof n&&(this.callbacks.afterRender_cb=n)},u.prototype.renderCustomWith=function(n){this.callbacks.renderCustomOp_cb=n},u}();I.QuillDeltaToHtmlConverter=l},3512:(se,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var v=(()=>{return(e=v||(v={}))[e.Html=0]="Html",e[e.Url=1]="Url",v;var e})();function T(e){return f(v.Html).reduce(o,e)}function f(e){return[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["\\/","/"],["\\(","("],["\\)",")"]].filter(e===v.Html?function(s){var l=s[0];return-1===l.indexOf("(")&&-1===l.indexOf(")")}:function(s){return-1===s[0].indexOf("/")})}function r(e,t){return e.replace(new RegExp(t[0],"g"),t[1])}function o(e,t){return e.replace(new RegExp(t[1],"g"),t[0].replace("\\",""))}I.makeStartTag=function d(e,t){if(void 0===t&&(t=void 0),!e)return"";var s="";t&&(s=[].concat(t).map(function(n){return n.key+(n.value?'="'+n.value+'"':"")}).join(" "));var u=">";return("img"===e||"br"===e)&&(u="/>"),s?"<"+e+" "+s+u:"<"+e+u},I.makeEndTag=function N(e){return void 0===e&&(e=""),e&&"</"+e+">"||""},I.decodeHtml=T,I.encodeHtml=function y(e,t){return void 0===t&&(t=!0),t&&(e=T(e)),f(v.Html).reduce(r,e)},I.encodeLink=function p(e){var t=f(v.Url),s=t.reduce(o,e);return t.reduce(r,s)}},463:(se,I,v)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var d=v(1407),N=v(5395),T=v(2705),y=function(){function p(){}return p.pairOpsWithTheirBlock=function(f){for(var s,r=[],o=function(n){return!(n.isJustNewline()||n.isCustomEmbedBlock()||n.isVideo()||n.isContainerBlock())},e=function(n){return n.isInline()},l=f.length-1;l>=0;l--){var u=f[l];u.isVideo()?r.push(new T.VideoItem(u)):u.isCustomEmbedBlock()?r.push(new T.BlotBlock(u)):u.isContainerBlock()?(s=N.sliceFromReverseWhile(f,l-1,o),r.push(new T.BlockGroup(u,s.elements)),l=s.sliceStartsAt>-1?s.sliceStartsAt:l):(s=N.sliceFromReverseWhile(f,l-1,e),r.push(new T.InlineGroup(s.elements.concat(u))),l=s.sliceStartsAt>-1?s.sliceStartsAt:l)}return r.reverse(),r},p.groupConsecutiveSameStyleBlocks=function(f,r){return void 0===r&&(r={header:!0,codeBlocks:!0,blockquotes:!0,customBlocks:!0}),N.groupConsecutiveElementsWhile(f,function(o,e){return o instanceof T.BlockGroup&&e instanceof T.BlockGroup&&(r.codeBlocks&&p.areBothCodeblocksWithSameLang(o,e)||r.blockquotes&&p.areBothBlockquotesWithSameAdi(o,e)||r.header&&p.areBothSameHeadersWithSameAdi(o,e)||r.customBlocks&&p.areBothCustomBlockWithSameAttr(o,e))})},p.reduceConsecutiveSameStyleBlocksToOne=function(f){var r=d.DeltaInsertOp.createNewLineOp();return f.map(function(o){if(!Array.isArray(o))return o instanceof T.BlockGroup&&!o.ops.length&&o.ops.push(r),o;var e=o.length-1;return o[0].ops=N.flatten(o.map(function(t,s){return t.ops.length?t.ops.concat(s<e?[r]:[]):[r]})),o[0]})},p.areBothCodeblocksWithSameLang=function(f,r){return f.op.isCodeBlock()&&r.op.isCodeBlock()&&f.op.hasSameLangAs(r.op)},p.areBothSameHeadersWithSameAdi=function(f,r){return f.op.isSameHeaderAs(r.op)&&f.op.hasSameAdiAs(r.op)},p.areBothBlockquotesWithSameAdi=function(f,r){return f.op.isBlockquote()&&r.op.isBlockquote()&&f.op.hasSameAdiAs(r.op)},p.areBothCustomBlockWithSameAttr=function(f,r){return f.op.isCustomTextBlock()&&r.op.isCustomTextBlock()&&f.op.hasSameAttr(r.op)},p}();I.Grouper=y},3443:(se,I,v)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var d=v(2705),N=v(5395),T=function(){function y(){}return y.prototype.nest=function(p){var f=this,r=this.convertListBlocksToListGroups(p),o=this.groupConsecutiveListGroups(r),e=N.flatten(o.map(function(s){return Array.isArray(s)?f.nestListSection(s):s}));return N.groupConsecutiveElementsWhile(e,function(s,l){return s instanceof d.ListGroup&&l instanceof d.ListGroup&&s.items[0].item.op.isSameListAs(l.items[0].item.op)}).map(function(s){if(!Array.isArray(s))return s;var l=s.map(function(u){return u.items});return new d.ListGroup(N.flatten(l))})},y.prototype.convertListBlocksToListGroups=function(p){return N.groupConsecutiveElementsWhile(p,function(r,o){return r instanceof d.BlockGroup&&o instanceof d.BlockGroup&&r.op.isList()&&o.op.isList()&&r.op.isSameListAs(o.op)&&r.op.hasSameIndentationAs(o.op)}).map(function(r){return Array.isArray(r)?new d.ListGroup(r.map(function(o){return new d.ListItem(o)})):r instanceof d.BlockGroup&&r.op.isList()?new d.ListGroup([new d.ListItem(r)]):r})},y.prototype.groupConsecutiveListGroups=function(p){return N.groupConsecutiveElementsWhile(p,function(f,r){return f instanceof d.ListGroup&&r instanceof d.ListGroup})},y.prototype.nestListSection=function(p){var f=this,r=this.groupByIndent(p);return Object.keys(r).map(Number).sort().reverse().forEach(function(o){r[o].forEach(function(e){var t=p.indexOf(e);f.placeUnderParent(e,p.slice(0,t))&&p.splice(t,1)})}),p},y.prototype.groupByIndent=function(p){return p.reduce(function(f,r){var o=r.items[0].item.op.attributes.indent;return o&&(f[o]=f[o]||[],f[o].push(r)),f},{})},y.prototype.placeUnderParent=function(p,f){for(var r=f.length-1;r>=0;r--){var o=f[r];if(p.items[0].item.op.hasHigherIndentThan(o.items[0].item.op)){var e=o.items[o.items.length-1];return e.innerList?e.innerList.items=e.innerList.items.concat(p.items):e.innerList=p,!0}}return!1},y}();I.ListNester=T},5750:(se,I,v)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var d=v(2705),N=v(5395),T=function(){function y(){}return y.prototype.group=function(p){return this.convertTableBlocksToTableGroups(p)},y.prototype.convertTableBlocksToTableGroups=function(p){var f=this;return N.groupConsecutiveElementsWhile(p,function(o,e){return o instanceof d.BlockGroup&&e instanceof d.BlockGroup&&o.op.isTable()&&e.op.isTable()}).map(function(o){return Array.isArray(o)?new d.TableGroup(f.convertTableBlocksToTableRows(o)):o instanceof d.BlockGroup&&o.op.isTable()?new d.TableGroup([new d.TableRow([new d.TableCell(o)])]):o})},y.prototype.convertTableBlocksToTableRows=function(p){return N.groupConsecutiveElementsWhile(p,function(r,o){return r instanceof d.BlockGroup&&o instanceof d.BlockGroup&&r.op.isTable()&&o.op.isTable()&&r.op.isSameTableRowAs(o.op)}).map(function(r){return new d.TableRow(Array.isArray(r)?r.map(function(o){return new d.TableCell(o)}):[new d.TableCell(r)])})},y}();I.TableGrouper=T},2705:function(se,I){"use strict";var s,v=this&&this.__extends||(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var n in u)u.hasOwnProperty(n)&&(l[n]=u[n])},function(l,u){function n(){this.constructor=l}s(l,u),l.prototype=null===u?Object.create(u):(n.prototype=u.prototype,new n)});Object.defineProperty(I,"__esModule",{value:!0}),I.InlineGroup=function s(l){this.ops=l};var N=function s(l){this.op=l},T=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return v(l,s),l}(N);I.VideoItem=T;var y=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return v(l,s),l}(N);I.BlotBlock=y,I.BlockGroup=function s(l,u){this.op=l,this.ops=u},I.ListGroup=function s(l){this.items=l},I.ListItem=function s(l,u){void 0===u&&(u=null),this.item=l,this.innerList=u},I.TableGroup=function s(l){this.rows=l},I.TableRow=function s(l){this.cells=l},I.TableCell=function s(l){this.item=l}},5395:(se,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.preferSecond=function v(f){return 0===f.length?null:f.length>=2?f[1]:f[0]},I.flatten=function d(f){return f.reduce(function(r,o){return r.concat(Array.isArray(o)?d(o):o)},[])},I.find=function N(f,r){if(Array.prototype.find)return Array.prototype.find.call(f,r);for(var o=0;o<f.length;o++)if(r(f[o]))return f[o]},I.groupConsecutiveElementsWhile=function T(f,r){for(var e,o=[],s=0;s<f.length;s++)e=f[s],s>0&&r(e,f[s-1])?o[o.length-1].push(e):o.push([e]);return o.map(function(l){return 1===l.length?l[0]:l})},I.sliceFromReverseWhile=function y(f,r,o){for(var e={elements:[],sliceStartsAt:-1},t=r;t>=0&&o(f[t]);t--)e.sliceStartsAt=t,e.elements.unshift(f[t]);return e},I.intersperse=function p(f,r){return f.reduce(function(o,e,t){return o.push(e),t<f.length-1&&o.push(r),o},[])}},8981:(se,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.assign=function v(d){for(var N=[],T=1;T<arguments.length;T++)N[T-1]=arguments[T];if(null==d)throw new TypeError("Cannot convert undefined or null to object");for(var y=Object(d),p=0;p<N.length;p++){var f=N[p];if(null!=f)for(var r in f)Object.prototype.hasOwnProperty.call(f,r)&&(y[r]=f[r])}return y}},2786:(se,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.tokenizeWithNewLines=function v(d){var N="\n";if(d===N)return[d];var T=d.split(N);if(1===T.length)return T;var y=T.length-1;return T.reduce(function(p,f,r){return r!==y?""!==f?p=p.concat(f,N):p.push(N):""!==f&&p.push(f),p},[])}},9228:(se,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.sanitize=function v(d){var N=d;return N=N.replace(/^\s*/gm,""),/^((https?|s?ftp|file|blob|mailto|tel):|#|\/|data:image\/)/.test(N)?N:"unsafe:"+N}},1240:(se,I,v)=>{"use strict";var N=v(1648);I.bc=N.QuillDeltaToHtmlConverter,v(6229);v(2705);v(1407);v(266),v(351)},3853:(se,I,v)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});var d=v(7580),N=function(){function T(){}return T.sanitize=function(y,p){var f={};return!y||"object"!=typeof y||(y.class&&T.IsValidClass(y.class)&&(f.class=y.class),y.id&&T.IsValidId(y.id)&&(f.id=y.id),T.IsValidTarget(y.target+"")&&(f.target=y.target),y.avatar&&(f.avatar=d.OpLinkSanitizer.sanitize(y.avatar+"",p)),y["end-point"]&&(f["end-point"]=d.OpLinkSanitizer.sanitize(y["end-point"]+"",p)),y.slug&&(f.slug=y.slug+"")),f},T.IsValidClass=function(y){return!!y.match(/^[a-zA-Z0-9_\-]{1,500}$/i)},T.IsValidId=function(y){return!!y.match(/^[a-zA-Z0-9_\-\:\.]{1,500}$/i)},T.IsValidTarget=function(y){return["_self","_blank","_parent","_top"].indexOf(y)>-1},T}();I.MentionSanitizer=N},351:(se,I)=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0}),I.NewLine="\n";var d=(()=>{return(r=d||(d={})).Ordered="ordered",r.Bullet="bullet",r.Checked="checked",r.Unchecked="unchecked",d;var r})();I.ListType=d;var N=(()=>{return(r=N||(N={})).Sub="sub",r.Super="super",N;var r})();I.ScriptType=N;var T=(()=>((T||(T={})).Rtl="rtl",T))();I.DirectionType=T;var y=(()=>{return(r=y||(y={})).Left="left",r.Center="center",r.Right="right",r.Justify="justify",y;var r})();I.AlignType=y;var p=(()=>{return(r=p||(p={})).Image="image",r.Video="video",r.Formula="formula",r.Text="text",p;var r})();I.DataType=p;var f=(()=>{return(r=f||(f={})).Block="block",r.InlineGroup="inline-group",r.List="list",r.Video="video",r.Table="table",f;var r})();I.GroupType=f},9971:function(se){typeof self<"u"&&self,se.exports=function(I){var v={};function d(N){if(v[N])return v[N].exports;var T=v[N]={i:N,l:!1,exports:{}};return I[N].call(T.exports,T,T.exports,d),T.l=!0,T.exports}return d.m=I,d.c=v,d.d=function(N,T,y){d.o(N,T)||Object.defineProperty(N,T,{configurable:!1,enumerable:!0,get:y})},d.n=function(N){var T=N&&N.__esModule?function(){return N.default}:function(){return N};return d.d(T,"a",T),T},d.o=function(N,T){return Object.prototype.hasOwnProperty.call(N,T)},d.p="",d(d.s=109)}([function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=d(17),T=d(18),y=d(19),p=d(45),f=d(46),r=d(47),o=d(48),e=d(49),t=d(12),s=d(32),l=d(33),u=d(31),n=d(1);v.default={Scope:n.Scope,create:n.create,find:n.find,query:n.query,register:n.register,Container:N.default,Format:T.default,Leaf:y.default,Embed:o.default,Scroll:p.default,Block:r.default,Inline:f.default,Text:e.default,Attributor:{Attribute:t.default,Class:s.default,Style:l.default,Store:u.default}}},function(I,v,d){"use strict";var u,N=this&&this.__extends||(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var c in a)a.hasOwnProperty(c)&&(n[c]=a[c])},function(n,a){function c(){this.constructor=n}u(n,a),n.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)});Object.defineProperty(v,"__esModule",{value:!0});var T=function(u){function n(a){var c=this;return(c=u.call(this,a="[Parchment] "+a)||this).message=a,c.name=c.constructor.name,c}return N(n,u),n}(Error);v.ParchmentError=T;var o,y={},p={},f={},r={};function s(u,n){var a;if(void 0===n&&(n=o.ANY),"string"==typeof u)a=r[u]||y[u];else if(u instanceof Text||u.nodeType===Node.TEXT_NODE)a=r.text;else if("number"==typeof u)u&o.LEVEL&o.BLOCK?a=r.block:u&o.LEVEL&o.INLINE&&(a=r.inline);else if(u instanceof HTMLElement){var c=(u.getAttribute("class")||"").split(/\s+/);for(var i in c)if(a=p[c[i]])break;a=a||f[u.tagName]}return null==a?null:n&o.LEVEL&a.scope&&n&o.TYPE&a.scope?a:null}v.DATA_KEY="__blot",function(u){u[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY"}(o=v.Scope||(v.Scope={})),v.create=function e(u,n){var a=s(u);if(null==a)throw new T("Unable to create "+u+" blot");var c=a,i=u instanceof Node||u.nodeType===Node.TEXT_NODE?u:c.create(n);return new c(i,n)},v.find=function t(u,n){return void 0===n&&(n=!1),null==u?null:null!=u[v.DATA_KEY]?u[v.DATA_KEY].blot:n?t(u.parentNode,n):null},v.query=s,v.register=function l(){for(var u=[],n=0;n<arguments.length;n++)u[n]=arguments[n];if(u.length>1)return u.map(function(i){return l(i)});var a=u[0];if("string"!=typeof a.blotName&&"string"!=typeof a.attrName)throw new T("Invalid definition");if("abstract"===a.blotName)throw new T("Cannot register abstract class");return r[a.blotName||a.attrName]=a,"string"==typeof a.keyName?y[a.keyName]=a:(null!=a.className&&(p[a.className]=a),null!=a.tagName&&(a.tagName=Array.isArray(a.tagName)?a.tagName.map(function(i){return i.toUpperCase()}):a.tagName.toUpperCase(),(Array.isArray(a.tagName)?a.tagName:[a.tagName]).forEach(function(i){(null==f[i]||null==a.className)&&(f[i]=a)}))),a}},function(I,v,d){var N=d(51),T=d(11),y=d(3),p=d(20),f=String.fromCharCode(0),r=function(o){this.ops=Array.isArray(o)?o:null!=o&&Array.isArray(o.ops)?o.ops:[]};r.prototype.insert=function(o,e){var t={};return 0===o.length?this:(t.insert=o,null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(t.attributes=e),this.push(t))},r.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},r.prototype.retain=function(o,e){if(o<=0)return this;var t={retain:o};return null!=e&&"object"==typeof e&&Object.keys(e).length>0&&(t.attributes=e),this.push(t)},r.prototype.push=function(o){var e=this.ops.length,t=this.ops[e-1];if(o=y(!0,{},o),"object"==typeof t){if("number"==typeof o.delete&&"number"==typeof t.delete)return this.ops[e-1]={delete:t.delete+o.delete},this;if("number"==typeof t.delete&&null!=o.insert&&"object"!=typeof(t=this.ops[(e-=1)-1]))return this.ops.unshift(o),this;if(T(o.attributes,t.attributes)){if("string"==typeof o.insert&&"string"==typeof t.insert)return this.ops[e-1]={insert:t.insert+o.insert},"object"==typeof o.attributes&&(this.ops[e-1].attributes=o.attributes),this;if("number"==typeof o.retain&&"number"==typeof t.retain)return this.ops[e-1]={retain:t.retain+o.retain},"object"==typeof o.attributes&&(this.ops[e-1].attributes=o.attributes),this}}return e===this.ops.length?this.ops.push(o):this.ops.splice(e,0,o),this},r.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},r.prototype.filter=function(o){return this.ops.filter(o)},r.prototype.forEach=function(o){this.ops.forEach(o)},r.prototype.map=function(o){return this.ops.map(o)},r.prototype.partition=function(o){var e=[],t=[];return this.forEach(function(s){(o(s)?e:t).push(s)}),[e,t]},r.prototype.reduce=function(o,e){return this.ops.reduce(o,e)},r.prototype.changeLength=function(){return this.reduce(function(o,e){return e.insert?o+p.length(e):e.delete?o-e.delete:o},0)},r.prototype.length=function(){return this.reduce(function(o,e){return o+p.length(e)},0)},r.prototype.slice=function(o,e){o=o||0,"number"!=typeof e&&(e=1/0);for(var t=[],s=p.iterator(this.ops),l=0;l<e&&s.hasNext();){var u;l<o?u=s.next(o-l):(u=s.next(e-l),t.push(u)),l+=p.length(u)}return new r(t)},r.prototype.compose=function(o){var e=p.iterator(this.ops),t=p.iterator(o.ops),s=[],l=t.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){for(var u=l.retain;"insert"===e.peekType()&&e.peekLength()<=u;)u-=e.peekLength(),s.push(e.next());l.retain-u>0&&t.next(l.retain-u)}for(var n=new r(s);e.hasNext()||t.hasNext();)if("insert"===t.peekType())n.push(t.next());else if("delete"===e.peekType())n.push(e.next());else{var a=Math.min(e.peekLength(),t.peekLength()),c=e.next(a),i=t.next(a);if("number"==typeof i.retain){var h={};"number"==typeof c.retain?h.retain=a:h.insert=c.insert;var k=p.attributes.compose(c.attributes,i.attributes,"number"==typeof c.retain);if(k&&(h.attributes=k),n.push(h),!t.hasNext()&&T(n.ops[n.ops.length-1],h)){var _=new r(e.rest());return n.concat(_).chop()}}else"number"==typeof i.delete&&"number"==typeof c.retain&&n.push(i)}return n.chop()},r.prototype.concat=function(o){var e=new r(this.ops.slice());return o.ops.length>0&&(e.push(o.ops[0]),e.ops=e.ops.concat(o.ops.slice(1))),e},r.prototype.diff=function(o,e){if(this.ops===o.ops)return new r;var t=[this,o].map(function(a){return a.map(function(c){if(null!=c.insert)return"string"==typeof c.insert?c.insert:f;throw new Error("diff() called "+(a===o?"on":"with")+" non-document")}).join("")}),s=new r,l=N(t[0],t[1],e),u=p.iterator(this.ops),n=p.iterator(o.ops);return l.forEach(function(a){for(var c=a[1].length;c>0;){var i=0;switch(a[0]){case N.INSERT:i=Math.min(n.peekLength(),c),s.push(n.next(i));break;case N.DELETE:i=Math.min(c,u.peekLength()),u.next(i),s.delete(i);break;case N.EQUAL:i=Math.min(u.peekLength(),n.peekLength(),c);var h=u.next(i),k=n.next(i);T(h.insert,k.insert)?s.retain(i,p.attributes.diff(h.attributes,k.attributes)):s.push(k).delete(i)}c-=i}}),s.chop()},r.prototype.eachLine=function(o,e){e=e||"\n";for(var t=p.iterator(this.ops),s=new r,l=0;t.hasNext();){if("insert"!==t.peekType())return;var u=t.peek(),n=p.length(u)-t.peekLength(),a="string"==typeof u.insert?u.insert.indexOf(e,n)-n:-1;if(a<0)s.push(t.next());else if(a>0)s.push(t.next(a));else{if(!1===o(s,t.next(1).attributes||{},l))return;l+=1,s=new r}}s.length()>0&&o(s,{},l)},r.prototype.transform=function(o,e){if(e=!!e,"number"==typeof o)return this.transformPosition(o,e);for(var t=p.iterator(this.ops),s=p.iterator(o.ops),l=new r;t.hasNext()||s.hasNext();)if("insert"!==t.peekType()||!e&&"insert"===s.peekType())if("insert"===s.peekType())l.push(s.next());else{var u=Math.min(t.peekLength(),s.peekLength()),n=t.next(u),a=s.next(u);if(n.delete)continue;a.delete?l.push(a):l.retain(u,p.attributes.transform(n.attributes,a.attributes,e))}else l.retain(p.length(t.next()));return l.chop()},r.prototype.transformPosition=function(o,e){e=!!e;for(var t=p.iterator(this.ops),s=0;t.hasNext()&&s<=o;){var l=t.peekLength(),u=t.peekType();t.next(),"delete"!==u?("insert"===u&&(s<o||!e)&&(o+=l),s+=l):o-=Math.min(l,o-s)}return o},I.exports=r},function(I,v){"use strict";var d=Object.prototype.hasOwnProperty,N=Object.prototype.toString,T=Object.defineProperty,y=Object.getOwnPropertyDescriptor,p=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===N.call(t)},f=function(t){if(!t||"[object Object]"!==N.call(t))return!1;var u,s=d.call(t,"constructor"),l=t.constructor&&t.constructor.prototype&&d.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!s&&!l)return!1;for(u in t);return typeof u>"u"||d.call(t,u)},r=function(t,s){T&&"__proto__"===s.name?T(t,s.name,{enumerable:!0,configurable:!0,value:s.newValue,writable:!0}):t[s.name]=s.newValue},o=function(t,s){if("__proto__"===s){if(!d.call(t,s))return;if(y)return y(t,s).value}return t[s]};I.exports=function e(){var t,s,l,u,n,a,c=arguments[0],i=1,h=arguments.length,k=!1;for("boolean"==typeof c&&(k=c,c=arguments[1]||{},i=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});i<h;++i)if(null!=(t=arguments[i]))for(s in t)l=o(c,s),c!==(u=o(t,s))&&(k&&u&&(f(u)||(n=p(u)))?(n?(n=!1,a=l&&p(l)?l:[]):a=l&&f(l)?l:{},r(c,{name:s,newValue:e(k,a,u)})):typeof u<"u"&&r(c,{name:s,newValue:u}));return c}},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.BlockEmbed=v.bubbleFormats=void 0;var N=function(){function m(g,E){for(var w=0;w<E.length;w++){var C=E[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(g,C.key,C)}}return function(g,E,w){return E&&m(g.prototype,E),w&&m(g,w),g}}(),T=function m(g,E,w){null===g&&(g=Function.prototype);var C=Object.getOwnPropertyDescriptor(g,E);if(void 0===C){var F=Object.getPrototypeOf(g);return null===F?void 0:m(F,E,w)}if("value"in C)return C.value;var H=C.get;return void 0===H?void 0:H.call(w)},p=c(d(3)),r=c(d(2)),e=c(d(0)),s=c(d(16)),u=c(d(6)),a=c(d(7));function c(m){return m&&m.__esModule?m:{default:m}}function i(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}function h(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?m:g}function k(m,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}var O=function(m){function g(){return i(this,g),h(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return k(g,m),N(g,[{key:"attach",value:function(){T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"attach",this).call(this),this.attributes=new e.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new r.default).insert(this.value(),(0,p.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(w,C){var F=e.default.query(w,e.default.Scope.BLOCK_ATTRIBUTE);null!=F&&this.attributes.attribute(F,C)}},{key:"formatAt",value:function(w,C,F,H){this.format(F,H)}},{key:"insertAt",value:function(w,C,F){if("string"==typeof C&&C.endsWith("\n")){var H=e.default.create(S.blotName);this.parent.insertBefore(H,0===w?this:this.next),H.insertAt(0,C.slice(0,-1))}else T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,w,C,F)}}]),g}(e.default.Embed);O.scope=e.default.Scope.BLOCK_BLOT;var S=function(m){function g(E){i(this,g);var w=h(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,E));return w.cache={},w}return k(g,m),N(g,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(e.default.Leaf).reduce(function(w,C){return 0===C.length()?w:w.insert(C.value(),b(C))},new r.default).insert("\n",b(this))),this.cache.delta}},{key:"deleteAt",value:function(w,C){T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"deleteAt",this).call(this,w,C),this.cache={}}},{key:"formatAt",value:function(w,C,F,H){C<=0||(e.default.query(F,e.default.Scope.BLOCK)?w+C===this.length()&&this.format(F,H):T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"formatAt",this).call(this,w,Math.min(C,this.length()-w-1),F,H),this.cache={})}},{key:"insertAt",value:function(w,C,F){if(null!=F)return T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,w,C,F);if(0!==C.length){var H=C.split("\n"),Y=H.shift();Y.length>0&&(w<this.length()-1||null==this.children.tail?T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertAt",this).call(this,Math.min(w,this.length()-1),Y):this.children.tail.insertAt(this.children.tail.length(),Y),this.cache={});var U=this;H.reduce(function(q,A){return(U=U.split(q,!0)).insertAt(0,A),A.length},w+Y.length)}}},{key:"insertBefore",value:function(w,C){var F=this.children.head;T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"insertBefore",this).call(this,w,C),F instanceof s.default&&F.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(w,C){T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"moveChildren",this).call(this,w,C),this.cache={}}},{key:"optimize",value:function(w){T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,w),this.cache={}}},{key:"path",value:function(w){return T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"path",this).call(this,w,!0)}},{key:"removeChild",value:function(w){T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"removeChild",this).call(this,w),this.cache={}}},{key:"split",value:function(w){var C=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(C&&(0===w||w>=this.length()-1)){var F=this.clone();return 0===w?(this.parent.insertBefore(F,this),this):(this.parent.insertBefore(F,this.next),F)}var H=T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"split",this).call(this,w,C);return this.cache={},H}}]),g}(e.default.Block);function b(m){var g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==m||("function"==typeof m.formats&&(g=(0,p.default)(g,m.formats())),null==m.parent||"scroll"==m.parent.blotName||m.parent.statics.scope!==m.statics.scope)?g:b(m.parent,g)}S.blotName="block",S.tagName="P",S.defaultChild="break",S.allowedChildren=[u.default,e.default.Embed,a.default],v.bubbleFormats=b,v.BlockEmbed=O,v.default=S},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.overload=v.expandConfig=void 0;var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},T=function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return function U(q,A){var P=[],B=!0,Z=!1,G=void 0;try{for(var j,x=q[Symbol.iterator]();!(B=(j=x.next()).done)&&(P.push(j.value),!A||P.length!==A);B=!0);}catch(D){Z=!0,G=D}finally{try{!B&&x.return&&x.return()}finally{if(Z)throw G}}return P}(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function U(q,A){for(var P=0;P<A.length;P++){var B=A[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(q,B.key,B)}}return function(q,A,P){return A&&U(q.prototype,A),P&&U(q,P),q}}();d(50);var f=b(d(2)),o=b(d(14)),t=b(d(8)),l=b(d(9)),n=b(d(0)),a=d(15),c=b(a),h=b(d(3)),_=b(d(10)),S=b(d(34));function b(U){return U&&U.__esModule?U:{default:U}}function m(U,q,A){return q in U?Object.defineProperty(U,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):U[q]=A,U}function g(U,q){if(!(U instanceof q))throw new TypeError("Cannot call a class as a function")}var E=(0,_.default)("quill"),w=function(){function U(q){var A=this,P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(g(this,U),this.options=C(q,P),this.container=this.options.container,null==this.container)return E.error("Invalid Quill container",q);this.options.debug&&U.debug(this.options.debug);var B=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new t.default,this.scroll=n.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new c.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(t.default.events.EDITOR_CHANGE,function(G){G===t.default.events.TEXT_CHANGE&&A.root.classList.toggle("ql-blank",A.editor.isBlank())}),this.emitter.on(t.default.events.SCROLL_UPDATE,function(G,x){var j=A.selection.lastRange,D=j&&0===j.length?j.index:void 0;F.call(A,function(){return A.editor.update(null,x,D)},G)});var Z=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+B+"<p><br></p></div>");this.setContents(Z),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return y(U,null,[{key:"debug",value:function(A){!0===A&&(A="log"),_.default.level(A)}},{key:"find",value:function(A){return A.__quill||n.default.find(A)}},{key:"import",value:function(A){return null==this.imports[A]&&E.error("Cannot import "+A+". Are you sure it was registered?"),this.imports[A]}},{key:"register",value:function(A,P){var B=this,Z=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof A){var G=A.attrName||A.blotName;"string"==typeof G?this.register("formats/"+G,A,P):Object.keys(A).forEach(function(x){B.register(x,A[x],P)})}else null!=this.imports[A]&&!Z&&E.warn("Overwriting "+A+" with",P),this.imports[A]=P,(A.startsWith("blots/")||A.startsWith("formats/"))&&"abstract"!==P.blotName?n.default.register(P):A.startsWith("modules")&&"function"==typeof P.register&&P.register()}}]),y(U,[{key:"addContainer",value:function(A){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof A){var B=A;(A=document.createElement("div")).classList.add(B)}return this.container.insertBefore(A,P),A}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(A,P,B){var Z=this,G=H(A,P,B),x=T(G,4);return F.call(this,function(){return Z.editor.deleteText(A,P)},B=x[3],A=x[0],-1*(P=x[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var A=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(A),this.container.classList.toggle("ql-disabled",!A)}},{key:"focus",value:function(){var A=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=A,this.scrollIntoView()}},{key:"format",value:function(A,P){var B=this;return F.call(this,function(){var G=B.getSelection(!0),x=new f.default;if(null==G)return x;if(n.default.query(A,n.default.Scope.BLOCK))x=B.editor.formatLine(G.index,G.length,m({},A,P));else{if(0===G.length)return B.selection.format(A,P),x;x=B.editor.formatText(G.index,G.length,m({},A,P))}return B.setSelection(G,t.default.sources.SILENT),x},arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.default.sources.API)}},{key:"formatLine",value:function(A,P,B,Z,G){var j,x=this,D=H(A,P,B,Z,G),R=T(D,4);return P=R[1],j=R[2],F.call(this,function(){return x.editor.formatLine(A,P,j)},G=R[3],A=R[0],0)}},{key:"formatText",value:function(A,P,B,Z,G){var j,x=this,D=H(A,P,B,Z,G),R=T(D,4);return P=R[1],j=R[2],F.call(this,function(){return x.editor.formatText(A,P,j)},G=R[3],A=R[0],0)}},{key:"getBounds",value:function(A){var B=void 0;B="number"==typeof A?this.selection.getBounds(A,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(A.index,A.length);var Z=this.container.getBoundingClientRect();return{bottom:B.bottom-Z.top,height:B.height,left:B.left-Z.left,right:B.right-Z.left,top:B.top-Z.top,width:B.width}}},{key:"getContents",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-A,B=H(A,P),Z=T(B,2);return this.editor.getContents(A=Z[0],P=Z[1])}},{key:"getFormat",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof A?this.editor.getFormat(A,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(A.index,A.length)}},{key:"getIndex",value:function(A){return A.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(A){return this.scroll.leaf(A)}},{key:"getLine",value:function(A){return this.scroll.line(A)}},{key:"getLines",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof A?this.scroll.lines(A.index,A.length):this.scroll.lines(A,P)}},{key:"getModule",value:function(A){return this.theme.modules[A]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-A,B=H(A,P),Z=T(B,2);return this.editor.getText(A=Z[0],P=Z[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(A,P,B){var Z=this;return F.call(this,function(){return Z.editor.insertEmbed(A,P,B)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:U.sources.API,A)}},{key:"insertText",value:function(A,P,B,Z,G){var j,x=this,D=H(A,0,B,Z,G),R=T(D,4);return j=R[2],F.call(this,function(){return x.editor.insertText(A,P,j)},G=R[3],A=R[0],P.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(A,P,B){this.clipboard.dangerouslyPasteHTML(A,P,B)}},{key:"removeFormat",value:function(A,P,B){var Z=this,G=H(A,P,B),x=T(G,4);return P=x[1],F.call(this,function(){return Z.editor.removeFormat(A,P)},B=x[3],A=x[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(A){var P=this;return F.call(this,function(){A=new f.default(A);var Z=P.getLength(),G=P.editor.deleteText(0,Z),x=P.editor.applyDelta(A),j=x.ops[x.ops.length-1];return null!=j&&"string"==typeof j.insert&&"\n"===j.insert[j.insert.length-1]&&(P.editor.deleteText(P.getLength()-1,1),x.delete(1)),G.compose(x)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.default.sources.API)}},{key:"setSelection",value:function(A,P,B){if(null==A)this.selection.setRange(null,P||U.sources.API);else{var Z=H(A,P,B),G=T(Z,4);B=G[3],this.selection.setRange(new a.Range(A=G[0],P=G[1]),B),B!==t.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(A){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.default.sources.API,B=(new f.default).insert(A);return this.setContents(B,P)}},{key:"update",value:function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t.default.sources.USER,P=this.scroll.update(A);return this.selection.update(A),P}},{key:"updateContents",value:function(A){var P=this,B=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.default.sources.API;return F.call(this,function(){return A=new f.default(A),P.editor.applyDelta(A,B)},B,!0)}}]),U}();function C(U,q){if((q=(0,h.default)(!0,{container:U,modules:{clipboard:!0,keyboard:!0,history:!0}},q)).theme&&q.theme!==w.DEFAULTS.theme){if(q.theme=w.import("themes/"+q.theme),null==q.theme)throw new Error("Invalid theme "+q.theme+". Did you register it?")}else q.theme=S.default;var A=(0,h.default)(!0,{},q.theme.DEFAULTS);[A,q].forEach(function(Z){Z.modules=Z.modules||{},Object.keys(Z.modules).forEach(function(G){!0===Z.modules[G]&&(Z.modules[G]={})})});var B=Object.keys(A.modules).concat(Object.keys(q.modules)).reduce(function(Z,G){var x=w.import("modules/"+G);return null==x?E.error("Cannot load "+G+" module. Are you sure you registered it?"):Z[G]=x.DEFAULTS||{},Z},{});return null!=q.modules&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=(0,h.default)(!0,{},w.DEFAULTS,{modules:B},A,q),["bounds","container","scrollingContainer"].forEach(function(Z){"string"==typeof q[Z]&&(q[Z]=document.querySelector(q[Z]))}),q.modules=Object.keys(q.modules).reduce(function(Z,G){return q.modules[G]&&(Z[G]=q.modules[G]),Z},{}),q}function F(U,q,A,P){if(this.options.strict&&!this.isEnabled()&&q===t.default.sources.USER)return new f.default;var B=null==A?null:this.getSelection(),Z=this.editor.delta,G=U();if(null!=B&&(!0===A&&(A=B.index),null==P?B=Y(B,G,q):0!==P&&(B=Y(B,A,P,q)),this.setSelection(B,t.default.sources.SILENT)),G.length()>0){var x,D,j=[t.default.events.TEXT_CHANGE,G,Z,q];(x=this.emitter).emit.apply(x,[t.default.events.EDITOR_CHANGE].concat(j)),q!==t.default.sources.SILENT&&(D=this.emitter).emit.apply(D,j)}return G}function H(U,q,A,P,B){var Z={};return"number"==typeof U.index&&"number"==typeof U.length?"number"!=typeof q?(B=P,P=A,A=q,q=U.length,U=U.index):(q=U.length,U=U.index):"number"!=typeof q&&(B=P,P=A,A=q,q=0),"object"===(typeof A>"u"?"undefined":N(A))?(Z=A,B=P):"string"==typeof A&&(null!=P?Z[A]=P:B=A),[U,q,Z,B=B||t.default.sources.API]}function Y(U,q,A,P){if(null==U)return null;var B=void 0,Z=void 0;if(q instanceof f.default){var G=[U.index,U.index+U.length].map(function(R){return q.transformPosition(R,P!==t.default.sources.USER)}),x=T(G,2);B=x[0],Z=x[1]}else{var j=[U.index,U.index+U.length].map(function(R){return R<q||R===q&&P===t.default.sources.USER?R:A>=0?R+A:Math.max(q,R+A)}),D=T(j,2);B=D[0],Z=D[1]}return new a.Range(B,Z-B)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=t.default.events,w.sources=t.default.sources,w.version="1.3.7",w.imports={delta:f.default,parchment:n.default,"core/module":l.default,"core/theme":S.default},v.expandConfig=C,v.overload=H,v.default=w},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function u(n,a){for(var c=0;c<a.length;c++){var i=a[c];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}return function(n,a,c){return a&&u(n.prototype,a),c&&u(n,c),n}}(),T=function u(n,a,c){null===n&&(n=Function.prototype);var i=Object.getOwnPropertyDescriptor(n,a);if(void 0===i){var h=Object.getPrototypeOf(n);return null===h?void 0:u(h,a,c)}if("value"in i)return i.value;var k=i.get;return void 0===k?void 0:k.call(c)},p=o(d(7)),r=o(d(0));function o(u){return u&&u.__esModule?u:{default:u}}function e(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function t(u,n){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?u:n}var l=function(u){function n(){return e(this,n),t(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function s(u,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);u.prototype=Object.create(n&&n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(u,n):u.__proto__=n)}(n,u),N(n,[{key:"formatAt",value:function(c,i,h,k){if(n.compare(this.statics.blotName,h)<0&&r.default.query(h,r.default.Scope.BLOT)){var _=this.isolate(c,i);k&&_.wrap(h,k)}else T(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"formatAt",this).call(this,c,i,h,k)}},{key:"optimize",value:function(c){if(T(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"optimize",this).call(this,c),this.parent instanceof n&&n.compare(this.statics.blotName,this.parent.statics.blotName)>0){var i=this.parent.isolate(this.offset(),this.length());this.moveChildren(i),i.wrap(this)}}}],[{key:"compare",value:function(c,i){var h=n.order.indexOf(c),k=n.order.indexOf(i);return h>=0||k>=0?h-k:c===i?0:c<i?-1:1}}]),n}(r.default.Inline);l.allowedChildren=[l,r.default.Embed,p.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],v.default=l},function(I,v,d){"use strict";function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(v,"__esModule",{value:!0});var o=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function y(e){return e&&e.__esModule?e:{default:e}}(d(0)).default.Text);v.default=o},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function a(c,i){for(var h=0;h<i.length;h++){var k=i[h];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(c,k.key,k)}}return function(c,i,h){return i&&a(c.prototype,i),h&&a(c,h),c}}(),T=function a(c,i,h){null===c&&(c=Function.prototype);var k=Object.getOwnPropertyDescriptor(c,i);if(void 0===k){var _=Object.getPrototypeOf(c);return null===_?void 0:a(_,i,h)}if("value"in k)return k.value;var O=k.get;return void 0===O?void 0:O.call(h)},p=o(d(54));function o(a){return a&&a.__esModule?a:{default:a}}var l=(0,o(d(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(a){document.addEventListener(a,function(){for(var c=arguments.length,i=Array(c),h=0;h<c;h++)i[h]=arguments[h];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(k){var _;k.__quill&&k.__quill.emitter&&(_=k.__quill.emitter).handleDOM.apply(_,i)})})});var n=function(a){function c(){!function e(a,c){if(!(a instanceof c))throw new TypeError("Cannot call a class as a function")}(this,c);var i=function t(a,c){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!c||"object"!=typeof c&&"function"!=typeof c?a:c}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return i.listeners={},i.on("error",l.error),i}return function s(a,c){if("function"!=typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}(c,a),N(c,[{key:"emit",value:function(){l.log.apply(l,arguments),T(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(h){for(var k=arguments.length,_=Array(k>1?k-1:0),O=1;O<k;O++)_[O-1]=arguments[O];(this.listeners[h.type]||[]).forEach(function(S){var b=S.node,m=S.handler;(h.target===b||b.contains(h.target))&&m.apply(void 0,[h].concat(_))})}},{key:"listenDOM",value:function(h,k,_){this.listeners[h]||(this.listeners[h]=[]),this.listeners[h].push({node:k,handler:_})}}]),c}(p.default);n.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},n.sources={API:"api",SILENT:"silent",USER:"user"},v.default=n},function(I,v,d){"use strict";function N(y,p){if(!(y instanceof p))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(v,"__esModule",{value:!0});var T=function y(p){var f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};N(this,y),this.quill=p,this.options=f};T.DEFAULTS={},v.default=T},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=["error","warn","log","info"],T="warn";function y(f){if(N.indexOf(f)<=N.indexOf(T)){for(var r,o=arguments.length,e=Array(o>1?o-1:0),t=1;t<o;t++)e[t-1]=arguments[t];(r=console)[f].apply(r,e)}}function p(f){return N.reduce(function(r,o){return r[o]=y.bind(console,o,f),r},{})}y.level=p.level=function(f){T=f},v.default=p},function(I,v,d){var N=Array.prototype.slice,T=d(52),y=d(53),p=I.exports=function(e,t,s){return s||(s={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?s.strict?e===t:e==t:function o(e,t,s){var l,u;if(f(e)||f(t)||e.prototype!==t.prototype)return!1;if(y(e))return!!y(t)&&(e=N.call(e),t=N.call(t),p(e,t,s));if(r(e)){if(!r(t)||e.length!==t.length)return!1;for(l=0;l<e.length;l++)if(e[l]!==t[l])return!1;return!0}try{var n=T(e),a=T(t)}catch{return!1}if(n.length!=a.length)return!1;for(n.sort(),a.sort(),l=n.length-1;l>=0;l--)if(n[l]!=a[l])return!1;for(l=n.length-1;l>=0;l--)if(!p(e[u=n[l]],t[u],s))return!1;return typeof e==typeof t}(e,t,s))};function f(e){return null==e}function r(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=d(1),T=function(){function y(p,f,r){void 0===r&&(r={}),this.attrName=p,this.keyName=f,this.scope=null!=r.scope?r.scope&N.Scope.LEVEL|N.Scope.TYPE&N.Scope.ATTRIBUTE:N.Scope.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}return y.keys=function(p){return[].map.call(p.attributes,function(f){return f.name})},y.prototype.add=function(p,f){return!!this.canAdd(p,f)&&(p.setAttribute(this.keyName,f),!0)},y.prototype.canAdd=function(p,f){return null!=N.query(p,N.Scope.BLOT&(this.scope|N.Scope.TYPE))&&(null==this.whitelist||("string"==typeof f?this.whitelist.indexOf(f.replace(/["']/g,""))>-1:this.whitelist.indexOf(f)>-1))},y.prototype.remove=function(p){p.removeAttribute(this.keyName)},y.prototype.value=function(p){var f=p.getAttribute(this.keyName);return this.canAdd(p,f)&&f?f:""},y}();v.default=T},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.Code=void 0;var N=function(S,b){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return function O(S,b){var m=[],g=!0,E=!1,w=void 0;try{for(var F,C=S[Symbol.iterator]();!(g=(F=C.next()).done)&&(m.push(F.value),!b||m.length!==b);g=!0);}catch(H){E=!0,w=H}finally{try{!g&&C.return&&C.return()}finally{if(E)throw w}}return m}(S,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function O(S,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(S,g.key,g)}}return function(S,b,m){return b&&O(S.prototype,b),m&&O(S,m),S}}(),y=function O(S,b,m){null===S&&(S=Function.prototype);var g=Object.getOwnPropertyDescriptor(S,b);if(void 0===g){var E=Object.getPrototypeOf(S);return null===E?void 0:O(E,b,m)}if("value"in g)return g.value;var w=g.get;return void 0===w?void 0:w.call(m)},f=a(d(2)),o=a(d(0)),t=a(d(4)),l=a(d(6)),n=a(d(7));function a(O){return O&&O.__esModule?O:{default:O}}function c(O,S){if(!(O instanceof S))throw new TypeError("Cannot call a class as a function")}function i(O,S){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?O:S}function h(O,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);O.prototype=Object.create(S&&S.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(O,S):O.__proto__=S)}var k=function(O){function S(){return c(this,S),i(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return h(S,O),S}(l.default);k.blotName="code",k.tagName="CODE";var _=function(O){function S(){return c(this,S),i(this,(S.__proto__||Object.getPrototypeOf(S)).apply(this,arguments))}return h(S,O),T(S,[{key:"delta",value:function(){var m=this,g=this.domNode.textContent;return g.endsWith("\n")&&(g=g.slice(0,-1)),g.split("\n").reduce(function(E,w){return E.insert(w).insert("\n",m.formats())},new f.default)}},{key:"format",value:function(m,g){if(m!==this.statics.blotName||!g){var E=this.descendant(n.default,this.length()-1),C=N(E,1)[0];C?.deleteAt(C.length()-1,1),y(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"format",this).call(this,m,g)}}},{key:"formatAt",value:function(m,g,E,w){if(0!==g&&null!=o.default.query(E,o.default.Scope.BLOCK)&&(E!==this.statics.blotName||w!==this.statics.formats(this.domNode))){var C=this.newlineIndex(m);if(!(C<0||C>=m+g)){var F=this.newlineIndex(m,!0)+1,H=C-F+1,Y=this.isolate(F,H),U=Y.next;Y.format(E,w),U instanceof S&&U.formatAt(0,m-F+g-H,E,w)}}}},{key:"insertAt",value:function(m,g,E){if(null==E){var w=this.descendant(n.default,m),C=N(w,2);C[0].insertAt(C[1],g)}}},{key:"length",value:function(){var m=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?m:m+1}},{key:"newlineIndex",value:function(m){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,m).lastIndexOf("\n");var E=this.domNode.textContent.slice(m).indexOf("\n");return E>-1?m+E:-1}},{key:"optimize",value:function(m){this.domNode.textContent.endsWith("\n")||this.appendChild(o.default.create("text","\n")),y(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,m);var g=this.next;null!=g&&g.prev===this&&g.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===g.statics.formats(g.domNode)&&(g.optimize(m),g.moveChildren(this),g.remove())}},{key:"replace",value:function(m){y(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"replace",this).call(this,m),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(g){var E=o.default.find(g);null==E?g.parentNode.removeChild(g):E instanceof o.default.Embed?E.remove():E.unwrap()})}}],[{key:"create",value:function(m){var g=y(S.__proto__||Object.getPrototypeOf(S),"create",this).call(this,m);return g.setAttribute("spellcheck",!1),g}},{key:"formats",value:function(){return!0}}]),S}(t.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",v.Code=k,v.default=_},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(U){return typeof U}:function(U){return U&&"function"==typeof Symbol&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},T=function(q,A){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return function U(q,A){var P=[],B=!0,Z=!1,G=void 0;try{for(var j,x=q[Symbol.iterator]();!(B=(j=x.next()).done)&&(P.push(j.value),!A||P.length!==A);B=!0);}catch(D){Z=!0,G=D}finally{try{!B&&x.return&&x.return()}finally{if(Z)throw G}}return P}(q,A);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function U(q,A){for(var P=0;P<A.length;P++){var B=A[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(q,B.key,B)}}return function(q,A,P){return A&&U(q.prototype,A),P&&U(q,P),q}}(),f=g(d(2)),o=g(d(20)),t=g(d(0)),l=g(d(13)),n=g(d(24)),a=d(4),c=g(a),h=g(d(16)),_=g(d(21)),S=g(d(11)),m=g(d(3));function g(U){return U&&U.__esModule?U:{default:U}}var C=/^[ -~]*$/,F=function(){function U(q){(function w(U,q){if(!(U instanceof q))throw new TypeError("Cannot call a class as a function")})(this,U),this.scroll=q,this.delta=this.getDelta()}return y(U,[{key:"applyDelta",value:function(A){var P=this,B=!1;this.scroll.update();var Z=this.scroll.length();return this.scroll.batchStart(),(A=function Y(U){return U.reduce(function(q,A){if(1===A.insert){var P=(0,_.default)(A.attributes);return delete P.image,q.insert({image:A.attributes.image},P)}if(null!=A.attributes&&(!0===A.attributes.list||!0===A.attributes.bullet)&&((A=(0,_.default)(A)).attributes.list?A.attributes.list="ordered":(A.attributes.list="bullet",delete A.attributes.bullet)),"string"==typeof A.insert){var B=A.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return q.insert(B,A.attributes)}return q.push(A)},new f.default)}(A)).reduce(function(G,x){var j=x.retain||x.delete||x.insert.length||1,D=x.attributes||{};if(null!=x.insert){if("string"==typeof x.insert){var R=x.insert;R.endsWith("\n")&&B&&(B=!1,R=R.slice(0,-1)),G>=Z&&!R.endsWith("\n")&&(B=!0),P.scroll.insertAt(G,R);var M=P.scroll.line(G),V=T(M,2),J=V[0],ne=V[1],re=(0,m.default)({},(0,a.bubbleFormats)(J));if(J instanceof c.default){var ue=J.descendant(t.default.Leaf,ne),me=T(ue,1);re=(0,m.default)(re,(0,a.bubbleFormats)(me[0]))}D=o.default.attributes.diff(re,D)||{}}else if("object"===N(x.insert)){var K=Object.keys(x.insert)[0];if(null==K)return G;P.scroll.insertAt(G,K,x.insert[K])}Z+=j}return Object.keys(D).forEach(function(W){P.scroll.formatAt(G,j,W,D[W])}),G+j},0),A.reduce(function(G,x){return"number"==typeof x.delete?(P.scroll.deleteAt(G,x.delete),G):G+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(A)}},{key:"deleteText",value:function(A,P){return this.scroll.deleteAt(A,P),this.update((new f.default).retain(A).delete(P))}},{key:"formatLine",value:function(A,P){var B=this,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(Z).forEach(function(G){if(null==B.scroll.whitelist||B.scroll.whitelist[G]){var x=B.scroll.lines(A,Math.max(P,1)),j=P;x.forEach(function(D){var R=D.length();if(D instanceof l.default){var M=A-D.offset(B.scroll),V=D.newlineIndex(M+j)-M+1;D.formatAt(M,V,G,Z[G])}else D.format(G,Z[G]);j-=R})}}),this.scroll.optimize(),this.update((new f.default).retain(A).retain(P,(0,_.default)(Z)))}},{key:"formatText",value:function(A,P){var B=this,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(Z).forEach(function(G){B.scroll.formatAt(A,P,G,Z[G])}),this.update((new f.default).retain(A).retain(P,(0,_.default)(Z)))}},{key:"getContents",value:function(A,P){return this.delta.slice(A,A+P)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(A,P){return A.concat(P.delta())},new f.default)}},{key:"getFormat",value:function(A){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,B=[],Z=[];0===P?this.scroll.path(A).forEach(function(x){var D=T(x,1)[0];D instanceof c.default?B.push(D):D instanceof t.default.Leaf&&Z.push(D)}):(B=this.scroll.lines(A,P),Z=this.scroll.descendants(t.default.Leaf,A,P));var G=[B,Z].map(function(x){if(0===x.length)return{};for(var j=(0,a.bubbleFormats)(x.shift());Object.keys(j).length>0;){var D=x.shift();if(null==D)return j;j=H((0,a.bubbleFormats)(D),j)}return j});return m.default.apply(m.default,G)}},{key:"getText",value:function(A,P){return this.getContents(A,P).filter(function(B){return"string"==typeof B.insert}).map(function(B){return B.insert}).join("")}},{key:"insertEmbed",value:function(A,P,B){return this.scroll.insertAt(A,P,B),this.update((new f.default).retain(A).insert(function E(U,q,A){return q in U?Object.defineProperty(U,q,{value:A,enumerable:!0,configurable:!0,writable:!0}):U[q]=A,U}({},P,B)))}},{key:"insertText",value:function(A,P){var B=this,Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return P=P.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(A,P),Object.keys(Z).forEach(function(G){B.scroll.formatAt(A,P.length,G,Z[G])}),this.update((new f.default).retain(A).insert(P,(0,_.default)(Z)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var A=this.scroll.children.head;return!(A.statics.blotName!==c.default.blotName||A.children.length>1)&&A.children.head instanceof h.default}},{key:"removeFormat",value:function(A,P){var B=this.getText(A,P),Z=this.scroll.line(A+P),G=T(Z,2),x=G[0],j=G[1],D=0,R=new f.default;null!=x&&(D=x instanceof l.default?x.newlineIndex(j)-j+1:x.length()-j,R=x.delta().slice(j,j+D-1).insert("\n"));var V=this.getContents(A,P+D).diff((new f.default).insert(B).concat(R)),J=(new f.default).retain(A).concat(V);return this.applyDelta(J)}},{key:"update",value:function(A){var P=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],B=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Z=this.delta;if(1===P.length&&"characterData"===P[0].type&&P[0].target.data.match(C)&&t.default.find(P[0].target)){var G=t.default.find(P[0].target),x=(0,a.bubbleFormats)(G),j=G.offset(this.scroll),D=P[0].oldValue.replace(n.default.CONTENTS,""),R=(new f.default).insert(D),M=(new f.default).insert(G.value());A=(new f.default).retain(j).concat(R.diff(M,B)).reduce(function(J,ne){return ne.insert?J.insert(ne.insert,x):J.push(ne)},new f.default),this.delta=Z.compose(A)}else this.delta=this.getDelta(),(!A||!(0,S.default)(Z.compose(A),this.delta))&&(A=Z.diff(this.delta,B));return A}}]),U}();function H(U,q){return Object.keys(q).reduce(function(A,P){return null==U[P]||(q[P]===U[P]?A[P]=q[P]:Array.isArray(q[P])?q[P].indexOf(U[P])<0&&(A[P]=q[P].concat([U[P]])):A[P]=[q[P],U[P]]),A},{})}v.default=F},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.Range=void 0;var N=function(S,b){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return function O(S,b){var m=[],g=!0,E=!1,w=void 0;try{for(var F,C=S[Symbol.iterator]();!(g=(F=C.next()).done)&&(m.push(F.value),!b||m.length!==b);g=!0);}catch(H){E=!0,w=H}finally{try{!g&&C.return&&C.return()}finally{if(E)throw w}}return m}(S,b);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function O(S,b){for(var m=0;m<b.length;m++){var g=b[m];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(S,g.key,g)}}return function(S,b,m){return b&&O(S.prototype,b),m&&O(S,m),S}}(),p=n(d(0)),r=n(d(21)),e=n(d(11)),s=n(d(8));function n(O){return O&&O.__esModule?O:{default:O}}function a(O){if(Array.isArray(O)){for(var S=0,b=Array(O.length);S<O.length;S++)b[S]=O[S];return b}return Array.from(O)}function c(O,S){if(!(O instanceof S))throw new TypeError("Cannot call a class as a function")}var i=(0,n(d(10)).default)("quill:selection"),h=function O(S){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,O),this.index=S,this.length=b},k=function(){function O(S,b){var m=this;c(this,O),this.emitter=b,this.scroll=S,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=p.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){m.mouseDown||setTimeout(m.update.bind(m,s.default.sources.USER),1)}),this.emitter.on(s.default.events.EDITOR_CHANGE,function(g,E){g===s.default.events.TEXT_CHANGE&&E.length()>0&&m.update(s.default.sources.SILENT)}),this.emitter.on(s.default.events.SCROLL_BEFORE_UPDATE,function(){if(m.hasFocus()){var g=m.getNativeRange();null!=g&&g.start.node!==m.cursor.textNode&&m.emitter.once(s.default.events.SCROLL_UPDATE,function(){try{m.setNativeRange(g.start.node,g.start.offset,g.end.node,g.end.offset)}catch{}})}}),this.emitter.on(s.default.events.SCROLL_OPTIMIZE,function(g,E){if(E.range){var w=E.range;m.setNativeRange(w.startNode,w.startOffset,w.endNode,w.endOffset)}}),this.update(s.default.sources.SILENT)}return T(O,[{key:"handleComposition",value:function(){var b=this;this.root.addEventListener("compositionstart",function(){b.composing=!0}),this.root.addEventListener("compositionend",function(){if(b.composing=!1,b.cursor.parent){var m=b.cursor.restore();if(!m)return;setTimeout(function(){b.setNativeRange(m.startNode,m.startOffset,m.endNode,m.endOffset)},1)}})}},{key:"handleDragging",value:function(){var b=this;this.emitter.listenDOM("mousedown",document.body,function(){b.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){b.mouseDown=!1,b.update(s.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(b,m){if(null==this.scroll.whitelist||this.scroll.whitelist[b]){this.scroll.update();var g=this.getNativeRange();if(null!=g&&g.native.collapsed&&!p.default.query(b,p.default.Scope.BLOCK)){if(g.start.node!==this.cursor.textNode){var E=p.default.find(g.start.node,!1);if(null==E)return;if(E instanceof p.default.Leaf){var w=E.split(g.start.offset);E.parent.insertBefore(this.cursor,w)}else E.insertBefore(this.cursor,g.start.node);this.cursor.attach()}this.cursor.format(b,m),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(b){var m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,g=this.scroll.length();b=Math.min(b,g-1),m=Math.min(b+m,g-1)-b;var E=void 0,w=this.scroll.leaf(b),C=N(w,2),F=C[0],H=C[1];if(null==F)return null;var Y=F.position(H,!0),U=N(Y,2);E=U[0],H=U[1];var q=document.createRange();if(m>0){q.setStart(E,H);var A=this.scroll.leaf(b+m),P=N(A,2);if(null==(F=P[0]))return null;var B=F.position(H=P[1],!0),Z=N(B,2);return q.setEnd(E=Z[0],H=Z[1]),q.getBoundingClientRect()}var G="left",x=void 0;return E instanceof Text?(H<E.data.length?(q.setStart(E,H),q.setEnd(E,H+1)):(q.setStart(E,H-1),q.setEnd(E,H),G="right"),x=q.getBoundingClientRect()):(x=F.domNode.getBoundingClientRect(),H>0&&(G="right")),{bottom:x.top+x.height,height:x.height,left:x[G],right:x[G],top:x.top,width:0}}},{key:"getNativeRange",value:function(){var b=document.getSelection();if(null==b||b.rangeCount<=0)return null;var m=b.getRangeAt(0);if(null==m)return null;var g=this.normalizeNative(m);return i.info("getNativeRange",g),g}},{key:"getRange",value:function(){var b=this.getNativeRange();return null==b?[null,null]:[this.normalizedToRange(b),b]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(b){var m=this,g=[[b.start.node,b.start.offset]];b.native.collapsed||g.push([b.end.node,b.end.offset]);var E=g.map(function(F){var H=N(F,2),Y=H[0],U=H[1],q=p.default.find(Y,!0),A=q.offset(m.scroll);return 0===U?A:q instanceof p.default.Container?A+q.length():A+q.index(Y,U)}),w=Math.min(Math.max.apply(Math,a(E)),this.scroll.length()-1),C=Math.min.apply(Math,[w].concat(a(E)));return new h(C,w-C)}},{key:"normalizeNative",value:function(b){if(!_(this.root,b.startContainer)||!b.collapsed&&!_(this.root,b.endContainer))return null;var m={start:{node:b.startContainer,offset:b.startOffset},end:{node:b.endContainer,offset:b.endOffset},native:b};return[m.start,m.end].forEach(function(g){for(var E=g.node,w=g.offset;!(E instanceof Text)&&E.childNodes.length>0;)if(E.childNodes.length>w)E=E.childNodes[w],w=0;else{if(E.childNodes.length!==w)break;w=(E=E.lastChild)instanceof Text?E.data.length:E.childNodes.length+1}g.node=E,g.offset=w}),m}},{key:"rangeToNative",value:function(b){var m=this,g=b.collapsed?[b.index]:[b.index,b.index+b.length],E=[],w=this.scroll.length();return g.forEach(function(C,F){C=Math.min(w-1,C);var Y=m.scroll.leaf(C),U=N(Y,2),A=U[1],P=U[0].position(A,0!==F),B=N(P,2);E.push(B[0],A=B[1])}),E.length<2&&(E=E.concat(E)),E}},{key:"scrollIntoView",value:function(b){var m=this.lastRange;if(null!=m){var g=this.getBounds(m.index,m.length);if(null!=g){var E=this.scroll.length()-1,w=this.scroll.line(Math.min(m.index,E)),F=N(w,1)[0],H=F;if(m.length>0){var Y=this.scroll.line(Math.min(m.index+m.length,E));H=N(Y,1)[0]}if(null!=F&&null!=H){var q=b.getBoundingClientRect();g.top<q.top?b.scrollTop-=q.top-g.top:g.bottom>q.bottom&&(b.scrollTop+=g.bottom-q.bottom)}}}}},{key:"setNativeRange",value:function(b,m){var g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b,E=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m,w=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i.info("setNativeRange",b,m,g,E),null==b||null!=this.root.parentNode&&null!=b.parentNode&&null!=g.parentNode){var C=document.getSelection();if(null!=C)if(null!=b){this.hasFocus()||this.root.focus();var F=(this.getNativeRange()||{}).native;if(null==F||w||b!==F.startContainer||m!==F.startOffset||g!==F.endContainer||E!==F.endOffset){"BR"==b.tagName&&(m=[].indexOf.call(b.parentNode.childNodes,b),b=b.parentNode),"BR"==g.tagName&&(E=[].indexOf.call(g.parentNode.childNodes,g),g=g.parentNode);var H=document.createRange();H.setStart(b,m),H.setEnd(g,E),C.removeAllRanges(),C.addRange(H)}}else C.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(b){var m=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.default.sources.API;if("string"==typeof m&&(g=m,m=!1),i.info("setRange",b),null!=b){var E=this.rangeToNative(b);this.setNativeRange.apply(this,a(E).concat([m]))}else this.setNativeRange(null);this.update(g)}},{key:"update",value:function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.sources.USER,m=this.lastRange,g=this.getRange(),E=N(g,2),C=E[1];if(this.lastRange=E[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,e.default)(m,this.lastRange)){var F;!this.composing&&null!=C&&C.native.collapsed&&C.start.node!==this.cursor.textNode&&this.cursor.restore();var Y,H=[s.default.events.SELECTION_CHANGE,(0,r.default)(this.lastRange),(0,r.default)(m),b];(F=this.emitter).emit.apply(F,[s.default.events.EDITOR_CHANGE].concat(H)),b!==s.default.sources.SILENT&&(Y=this.emitter).emit.apply(Y,H)}}}]),O}();function _(O,S){return S instanceof Text&&(S=S.parentNode),O.contains(S)}v.Range=h,v.default=k},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function s(l,u){for(var n=0;n<u.length;n++){var a=u[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,u,n){return u&&s(l.prototype,u),n&&s(l,n),l}}(),T=function s(l,u,n){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,u);if(void 0===a){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,u,n)}if("value"in a)return a.value;var i=a.get;return void 0===i?void 0:i.call(n)};function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}var t=function(s){function l(){return r(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),N(l,[{key:"insertInto",value:function(n,a){0===n.children.length?T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,n,a):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(function f(s){return s&&s.__esModule?s:{default:s}}(d(0)).default.Embed);t.blotName="break",t.tagName="BR",v.default=t},function(I,v,d){"use strict";var o,N=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},function(e,t){function s(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(v,"__esModule",{value:!0});var T=d(44),y=d(30),p=d(1),f=function(o){function e(t){var s=o.call(this,t)||this;return s.build(),s}return N(e,o),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(t){t.attach()})},e.prototype.build=function(){var t=this;this.children=new T.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(s){try{var l=r(s);t.insertBefore(l,t.children.head||void 0)}catch(u){if(u instanceof p.ParchmentError)return;throw u}})},e.prototype.deleteAt=function(t,s){if(0===t&&s===this.length())return this.remove();this.children.forEachAt(t,s,function(l,u,n){l.deleteAt(u,n)})},e.prototype.descendant=function(t,s){var l=this.children.find(s),u=l[0],n=l[1];return null==t.blotName&&t(u)||null!=t.blotName&&u instanceof t?[u,n]:u instanceof e?u.descendant(t,n):[null,-1]},e.prototype.descendants=function(t,s,l){void 0===s&&(s=0),void 0===l&&(l=Number.MAX_VALUE);var u=[],n=l;return this.children.forEachAt(s,l,function(a,c,i){(null==t.blotName&&t(a)||null!=t.blotName&&a instanceof t)&&u.push(a),a instanceof e&&(u=u.concat(a.descendants(t,c,n))),n-=i}),u},e.prototype.detach=function(){this.children.forEach(function(t){t.detach()}),o.prototype.detach.call(this)},e.prototype.formatAt=function(t,s,l,u){this.children.forEachAt(t,s,function(n,a,c){n.formatAt(a,c,l,u)})},e.prototype.insertAt=function(t,s,l){var u=this.children.find(t),n=u[0];if(n)n.insertAt(u[1],s,l);else{var c=null==l?p.create("text",s):p.create(s,l);this.appendChild(c)}},e.prototype.insertBefore=function(t,s){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(l){return t instanceof l}))throw new p.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,s)},e.prototype.length=function(){return this.children.reduce(function(t,s){return t+s.length()},0)},e.prototype.moveChildren=function(t,s){this.children.forEach(function(l){t.insertBefore(l,s)})},e.prototype.optimize=function(t){if(o.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var s=p.create(this.statics.defaultChild);this.appendChild(s),s.optimize(t)}else this.remove()},e.prototype.path=function(t,s){void 0===s&&(s=!1);var l=this.children.find(t,s),u=l[0],n=l[1],a=[[this,t]];return u instanceof e?a.concat(u.path(n,s)):(null!=u&&a.push([u,n]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(t){t instanceof e&&t.moveChildren(this),o.prototype.replace.call(this,t)},e.prototype.split=function(t,s){if(void 0===s&&(s=!1),!s){if(0===t)return this;if(t===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(t,this.length(),function(u,n,a){u=u.split(n,s),l.appendChild(u)}),l},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,s){var l=this,u=[],n=[];t.forEach(function(a){a.target===l.domNode&&"childList"===a.type&&(u.push.apply(u,a.addedNodes),n.push.apply(n,a.removedNodes))}),n.forEach(function(a){if(!(null!=a.parentNode&&"IFRAME"!==a.tagName&&document.body.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var c=p.find(a);null!=c&&(null==c.domNode.parentNode||c.domNode.parentNode===l.domNode)&&c.detach()}}),u.filter(function(a){return a.parentNode==l.domNode}).sort(function(a,c){return a===c?0:a.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(a){var c=null;null!=a.nextSibling&&(c=p.find(a.nextSibling));var i=r(a);(i.next!=c||null==i.next)&&(null!=i.parent&&i.parent.removeChild(l),l.insertBefore(i,c||void 0))})},e}(y.default);function r(o){var e=p.find(o);if(null==e)try{e=p.create(o)}catch{e=p.create(p.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(s){e.domNode.appendChild(s)}),o.parentNode&&o.parentNode.replaceChild(e.domNode,o),e.attach()}return e}v.default=f},function(I,v,d){"use strict";var o,N=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},function(e,t){function s(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(v,"__esModule",{value:!0});var T=d(12),y=d(31),p=d(17),f=d(1),r=function(o){function e(t){var s=o.call(this,t)||this;return s.attributes=new y.default(s.domNode),s}return N(e,o),e.formats=function(t){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,s){var l=f.query(t);l instanceof T.default?this.attributes.attribute(l,s):s&&null!=l&&(t!==this.statics.blotName||this.formats()[t]!==s)&&this.replaceWith(t,s)},e.prototype.formats=function(){var t=this.attributes.values(),s=this.statics.formats(this.domNode);return null!=s&&(t[this.statics.blotName]=s),t},e.prototype.replaceWith=function(t,s){var l=o.prototype.replaceWith.call(this,t,s);return this.attributes.copy(l),l},e.prototype.update=function(t,s){var l=this;o.prototype.update.call(this,t,s),t.some(function(u){return u.target===l.domNode&&"attributes"===u.type})&&this.attributes.build()},e.prototype.wrap=function(t,s){var l=o.prototype.wrap.call(this,t,s);return l instanceof e&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},e}(p.default);v.default=r},function(I,v,d){"use strict";var f,N=this&&this.__extends||(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)o.hasOwnProperty(e)&&(r[e]=o[e])},function(r,o){function e(){this.constructor=r}f(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(v,"__esModule",{value:!0});var T=d(30),y=d(1),p=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return N(r,f),r.value=function(o){return!0},r.prototype.index=function(o,e){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},r.prototype.position=function(o,e){var t=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(t+=1),[this.parent.domNode,t]},r.prototype.value=function(){var o;return(o={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},r.scope=y.Scope.INLINE_BLOT,r}(T.default);v.default=p},function(I,v,d){var N=d(11),T=d(3),y={attributes:{compose:function(f,r,o){"object"!=typeof f&&(f={}),"object"!=typeof r&&(r={});var e=T(!0,{},r);for(var t in o||(e=Object.keys(e).reduce(function(s,l){return null!=e[l]&&(s[l]=e[l]),s},{})),f)void 0!==f[t]&&void 0===r[t]&&(e[t]=f[t]);return Object.keys(e).length>0?e:void 0},diff:function(f,r){"object"!=typeof f&&(f={}),"object"!=typeof r&&(r={});var o=Object.keys(f).concat(Object.keys(r)).reduce(function(e,t){return N(f[t],r[t])||(e[t]=void 0===r[t]?null:r[t]),e},{});return Object.keys(o).length>0?o:void 0},transform:function(f,r,o){if("object"!=typeof f)return r;if("object"==typeof r){if(!o)return r;var e=Object.keys(r).reduce(function(t,s){return void 0===f[s]&&(t[s]=r[s]),t},{});return Object.keys(e).length>0?e:void 0}}},iterator:function(f){return new p(f)},length:function(f){return"number"==typeof f.delete?f.delete:"number"==typeof f.retain?f.retain:"string"==typeof f.insert?f.insert.length:1}};function p(f){this.ops=f,this.index=0,this.offset=0}p.prototype.hasNext=function(){return this.peekLength()<1/0},p.prototype.next=function(f){f||(f=1/0);var r=this.ops[this.index];if(r){var o=this.offset,e=y.length(r);if(f>=e-o?(f=e-o,this.index+=1,this.offset=0):this.offset+=f,"number"==typeof r.delete)return{delete:f};var t={};return r.attributes&&(t.attributes=r.attributes),"number"==typeof r.retain?t.retain=f:t.insert="string"==typeof r.insert?r.insert.substr(o,f):r.insert,t}return{retain:1/0}},p.prototype.peek=function(){return this.ops[this.index]},p.prototype.peekLength=function(){return this.ops[this.index]?y.length(this.ops[this.index])-this.offset:1/0},p.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},p.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var f=this.offset,r=this.index,o=this.next(),e=this.ops.slice(this.index);return this.offset=f,this.index=r,[o].concat(e)}return[]},I.exports=y},function(I,v){var d=function(){"use strict";function N(l,u){return null!=u&&l instanceof u}var T,y,p;try{T=Map}catch{T=function(){}}try{y=Set}catch{y=function(){}}try{p=Promise}catch{p=function(){}}function f(l,u,n,a,c){"object"==typeof u&&(n=u.depth,a=u.prototype,c=u.includeNonEnumerable,u=u.circular);var i=[],h=[],k=typeof Buffer<"u";return typeof u>"u"&&(u=!0),typeof n>"u"&&(n=1/0),function _(O,S){if(null===O)return null;if(0===S)return O;var b,m;if("object"!=typeof O)return O;if(N(O,T))b=new T;else if(N(O,y))b=new y;else if(N(O,p))b=new p(function(q,A){O.then(function(P){q(_(P,S-1))},function(P){A(_(P,S-1))})});else if(f.__isArray(O))b=[];else if(f.__isRegExp(O))b=new RegExp(O.source,s(O)),O.lastIndex&&(b.lastIndex=O.lastIndex);else if(f.__isDate(O))b=new Date(O.getTime());else{if(k&&Buffer.isBuffer(O))return b=Buffer.allocUnsafe?Buffer.allocUnsafe(O.length):new Buffer(O.length),O.copy(b),b;N(O,Error)?b=Object.create(O):typeof a>"u"?(m=Object.getPrototypeOf(O),b=Object.create(m)):(b=Object.create(a),m=a)}if(u){var g=i.indexOf(O);if(-1!=g)return h[g];i.push(O),h.push(b)}for(var E in N(O,T)&&O.forEach(function(q,A){var P=_(A,S-1),B=_(q,S-1);b.set(P,B)}),N(O,y)&&O.forEach(function(q){var A=_(q,S-1);b.add(A)}),O){var w;m&&(w=Object.getOwnPropertyDescriptor(m,E)),(!w||null!=w.set)&&(b[E]=_(O[E],S-1))}if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(O);for(E=0;E<C.length;E++){var F=C[E];(H=Object.getOwnPropertyDescriptor(O,F))&&!H.enumerable&&!c||(b[F]=_(O[F],S-1),H.enumerable||Object.defineProperty(b,F,{enumerable:!1}))}}if(c){var Y=Object.getOwnPropertyNames(O);for(E=0;E<Y.length;E++){var H,U=Y[E];(H=Object.getOwnPropertyDescriptor(O,U))&&H.enumerable||(b[U]=_(O[U],S-1),Object.defineProperty(b,U,{enumerable:!1}))}}return b}(l,n)}function r(l){return Object.prototype.toString.call(l)}function s(l){var u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),u}return f.clonePrototype=function(u){if(null===u)return null;var n=function(){};return n.prototype=u,new n},f.__objToStr=r,f.__isDate=function o(l){return"object"==typeof l&&"[object Date]"===r(l)},f.__isArray=function e(l){return"object"==typeof l&&"[object Array]"===r(l)},f.__isRegExp=function t(l){return"object"==typeof l&&"[object RegExp]"===r(l)},f.__getRegExpFlags=s,f}();"object"==typeof I&&I.exports&&(I.exports=d)},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(m,g){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return function b(m,g){var E=[],w=!0,C=!1,F=void 0;try{for(var Y,H=m[Symbol.iterator]();!(w=(Y=H.next()).done)&&(E.push(Y.value),!g||E.length!==g);w=!0);}catch(U){C=!0,F=U}finally{try{!w&&H.return&&H.return()}finally{if(C)throw F}}return E}(m,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function b(m,g){for(var E=0;E<g.length;E++){var w=g[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,w.key,w)}}return function(m,g,E){return g&&b(m.prototype,g),E&&b(m,E),m}}(),y=function b(m,g,E){null===m&&(m=Function.prototype);var w=Object.getOwnPropertyDescriptor(m,g);if(void 0===w){var C=Object.getPrototypeOf(m);return null===C?void 0:b(C,g,E)}if("value"in w)return w.value;var F=w.get;return void 0===F?void 0:F.call(E)},f=i(d(0)),o=i(d(8)),e=d(4),t=i(e),l=i(d(16)),n=i(d(13)),c=i(d(25));function i(b){return b&&b.__esModule?b:{default:b}}function O(b){return b instanceof t.default||b instanceof e.BlockEmbed}var S=function(b){function m(g,E){!function h(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m);var w=function k(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?b:m}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,g));return w.emitter=E.emitter,Array.isArray(E.whitelist)&&(w.whitelist=E.whitelist.reduce(function(C,F){return C[F]=!0,C},{})),w.domNode.addEventListener("DOMNodeInserted",function(){}),w.optimize(),w.enable(),w}return function _(b,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}(m,b),T(m,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(E,w){var C=this.line(E),F=N(C,2),H=F[0],Y=F[1],U=this.line(E+w),A=N(U,1)[0];if(y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"deleteAt",this).call(this,E,w),null!=A&&H!==A&&Y>0){if(H instanceof e.BlockEmbed||A instanceof e.BlockEmbed)return void this.optimize();if(H instanceof n.default){var P=H.newlineIndex(H.length(),!0);if(P>-1&&(H=H.split(P+1))===A)return void this.optimize()}else if(A instanceof n.default){var B=A.newlineIndex(0);B>-1&&A.split(B+1)}H.moveChildren(A,A.children.head instanceof l.default?null:A.children.head),H.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(E,w,C,F){null!=this.whitelist&&!this.whitelist[C]||(y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"formatAt",this).call(this,E,w,C,F),this.optimize())}},{key:"insertAt",value:function(E,w,C){if(null==C||null==this.whitelist||this.whitelist[w]){if(E>=this.length())if(null==C||null==f.default.query(w,f.default.Scope.BLOCK)){var F=f.default.create(this.statics.defaultChild);this.appendChild(F),null==C&&w.endsWith("\n")&&(w=w.slice(0,-1)),F.insertAt(0,w,C)}else{var H=f.default.create(w,C);this.appendChild(H)}else y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertAt",this).call(this,E,w,C);this.optimize()}}},{key:"insertBefore",value:function(E,w){if(E.statics.scope===f.default.Scope.INLINE_BLOT){var C=f.default.create(this.statics.defaultChild);C.appendChild(E),E=C}y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertBefore",this).call(this,E,w)}},{key:"leaf",value:function(E){return this.path(E).pop()||[null,-1]}},{key:"line",value:function(E){return E===this.length()?this.line(E-1):this.descendant(O,E)}},{key:"lines",value:function(){return function F(H,Y,U){var q=[],A=U;return H.children.forEachAt(Y,U,function(P,B,Z){O(P)?q.push(P):P instanceof f.default.Container&&(q=q.concat(F(P,B,A))),A-=Z}),q}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],w=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,E,w),E.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,E,w))}},{key:"path",value:function(E){return y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"path",this).call(this,E).slice(1)}},{key:"update",value:function(E){if(!0!==this.batch){var w=o.default.sources.USER;"string"==typeof E&&(w=E),Array.isArray(E)||(E=this.observer.takeRecords()),E.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,w,E),y(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"update",this).call(this,E.concat([])),E.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,w,E)}}}]),m}(f.default.Scroll);S.blotName="scroll",S.className="ql-editor",S.tagName="DIV",S.defaultChild="block",S.allowedChildren=[t.default,e.BlockEmbed,c.default],v.default=S},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.SHORTKEY=v.default=void 0;var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},T=function(j,D){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return function x(j,D){var R=[],M=!0,V=!1,J=void 0;try{for(var re,ne=j[Symbol.iterator]();!(M=(re=ne.next()).done)&&(R.push(re.value),!D||R.length!==D);M=!0);}catch(ue){V=!0,J=ue}finally{try{!M&&ne.return&&ne.return()}finally{if(V)throw J}}return R}(j,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function x(j,D){for(var R=0;R<D.length;R++){var M=D[R];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(j,M.key,M)}}return function(j,D,R){return D&&x(j.prototype,D),R&&x(j,R),j}}(),f=b(d(21)),o=b(d(11)),t=b(d(3)),l=b(d(2)),n=b(d(20)),c=b(d(0)),h=b(d(5)),_=b(d(10)),S=b(d(9));function b(x){return x&&x.__esModule?x:{default:x}}function m(x,j,D){return j in x?Object.defineProperty(x,j,{value:D,enumerable:!0,configurable:!0,writable:!0}):x[j]=D,x}var C=(0,_.default)("quill:keyboard"),F=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",H=function(x){function j(D,R){!function g(x,j){if(!(x instanceof j))throw new TypeError("Cannot call a class as a function")}(this,j);var M=function E(x,j){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!j||"object"!=typeof j&&"function"!=typeof j?x:j}(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,D,R));return M.bindings={},Object.keys(M.options.bindings).forEach(function(V){"list autofill"===V&&null!=D.scroll.whitelist&&!D.scroll.whitelist.list||M.options.bindings[V]&&M.addBinding(M.options.bindings[V])}),M.addBinding({key:j.keys.ENTER,shiftKey:null},P),M.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(M.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},U),M.addBinding({key:j.keys.DELETE},{collapsed:!0},q)):(M.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},U),M.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},q)),M.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},A),M.addBinding({key:j.keys.DELETE},{collapsed:!1},A),M.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},U),M.listen(),M}return function w(x,j){if("function"!=typeof j&&null!==j)throw new TypeError("Super expression must either be null or a function, not "+typeof j);x.prototype=Object.create(j&&j.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(x,j):x.__proto__=j)}(j,x),y(j,null,[{key:"match",value:function(R,M){return M=G(M),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(V){return!!M[V]!==R[V]&&null!==M[V]})&&M.key===(R.which||R.keyCode)}}]),y(j,[{key:"addBinding",value:function(R){var M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},V=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},J=G(R);if(null==J||null==J.key)return C.warn("Attempted to add invalid keyboard binding",J);"function"==typeof M&&(M={handler:M}),"function"==typeof V&&(V={handler:V}),J=(0,t.default)(J,M,V),this.bindings[J.key]=this.bindings[J.key]||[],this.bindings[J.key].push(J)}},{key:"listen",value:function(){var R=this;this.quill.root.addEventListener("keydown",function(M){if(!M.defaultPrevented){var J=(R.bindings[M.which||M.keyCode]||[]).filter(function(he){return j.match(M,he)});if(0!==J.length){var ne=R.quill.getSelection();if(null!=ne&&R.quill.hasFocus()){var re=R.quill.getLine(ne.index),ue=T(re,2),me=ue[0],ve=ue[1],K=R.quill.getLeaf(ne.index),W=T(K,2),X=W[0],ee=W[1],Q=0===ne.length?[X,ee]:R.quill.getLeaf(ne.index+ne.length),oe=T(Q,2),ae=oe[0],le=oe[1],Oe=X instanceof c.default.Text?X.value().slice(0,ee):"",Ne=ae instanceof c.default.Text?ae.value().slice(le):"",fe={collapsed:0===ne.length,empty:0===ne.length&&me.length()<=1,format:R.quill.getFormat(ne),offset:ve,prefix:Oe,suffix:Ne};J.some(function(he){if(null!=he.collapsed&&he.collapsed!==fe.collapsed||null!=he.empty&&he.empty!==fe.empty||null!=he.offset&&he.offset!==fe.offset)return!1;if(Array.isArray(he.format)){if(he.format.every(function(Ae){return null==fe.format[Ae]}))return!1}else if("object"===N(he.format)&&!Object.keys(he.format).every(function(Ae){return!0===he.format[Ae]?null!=fe.format[Ae]:!1===he.format[Ae]?null==fe.format[Ae]:(0,o.default)(he.format[Ae],fe.format[Ae])}))return!1;return!(null!=he.prefix&&!he.prefix.test(fe.prefix)||null!=he.suffix&&!he.suffix.test(fe.suffix))&&!0!==he.handler.call(R,ne,fe)})&&M.preventDefault()}}}})}}]),j}(S.default);function Y(x,j){var D;return m(D={key:x,shiftKey:j,altKey:null},x===H.keys.LEFT?"prefix":"suffix",/^$/),m(D,"handler",function(V){var J=V.index;x===H.keys.RIGHT&&(J+=V.length+1);var ne=this.quill.getLeaf(J);return!(T(ne,1)[0]instanceof c.default.Embed&&(x===H.keys.LEFT?j?this.quill.setSelection(V.index-1,V.length+1,h.default.sources.USER):this.quill.setSelection(V.index-1,h.default.sources.USER):j?this.quill.setSelection(V.index,V.length+1,h.default.sources.USER):this.quill.setSelection(V.index+V.length+1,h.default.sources.USER),1))}),D}function U(x,j){if(!(0===x.index||this.quill.getLength()<=1)){var D=this.quill.getLine(x.index),M=T(D,1)[0],V={};if(0===j.offset){var J=this.quill.getLine(x.index-1),re=T(J,1)[0];if(null!=re&&re.length()>1){var ue=M.formats(),me=this.quill.getFormat(x.index-1,1);V=n.default.attributes.diff(ue,me)||{}}}var ve=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(x.index-ve,ve,h.default.sources.USER),Object.keys(V).length>0&&this.quill.formatLine(x.index-ve,ve,V,h.default.sources.USER),this.quill.focus()}}function q(x,j){var D=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(x.index>=this.quill.getLength()-D)){var R={},M=0,V=this.quill.getLine(x.index),ne=T(V,1)[0];if(j.offset>=ne.length()-1){var re=this.quill.getLine(x.index+1),me=T(re,1)[0];if(me){var ve=ne.formats(),K=this.quill.getFormat(x.index,1);R=n.default.attributes.diff(ve,K)||{},M=me.length()}}this.quill.deleteText(x.index,D,h.default.sources.USER),Object.keys(R).length>0&&this.quill.formatLine(x.index+M-1,D,R,h.default.sources.USER)}}function A(x){var j=this.quill.getLines(x),D={};if(j.length>1){var R=j[0].formats(),M=j[j.length-1].formats();D=n.default.attributes.diff(M,R)||{}}this.quill.deleteText(x,h.default.sources.USER),Object.keys(D).length>0&&this.quill.formatLine(x.index,1,D,h.default.sources.USER),this.quill.setSelection(x.index,h.default.sources.SILENT),this.quill.focus()}function P(x,j){var D=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var R=Object.keys(j.format).reduce(function(M,V){return c.default.query(V,c.default.Scope.BLOCK)&&!Array.isArray(j.format[V])&&(M[V]=j.format[V]),M},{});this.quill.insertText(x.index,"\n",R,h.default.sources.USER),this.quill.setSelection(x.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(M){null==R[M]&&(Array.isArray(j.format[M])||"link"!==M&&D.quill.format(M,j.format[M],h.default.sources.USER))})}function B(x){return{key:H.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(D){var R=c.default.query("code-block"),M=D.index,V=D.length,J=this.quill.scroll.descendant(R,M),ne=T(J,2),re=ne[0],ue=ne[1];if(null!=re){var me=this.quill.getIndex(re),ve=re.newlineIndex(ue,!0)+1,K=re.newlineIndex(me+ue+V),W=re.domNode.textContent.slice(ve,K).split("\n");ue=0,W.forEach(function(X,ee){x?(re.insertAt(ve+ue,R.TAB),ue+=R.TAB.length,0===ee?M+=R.TAB.length:V+=R.TAB.length):X.startsWith(R.TAB)&&(re.deleteAt(ve+ue,R.TAB.length),ue-=R.TAB.length,0===ee?M-=R.TAB.length:V-=R.TAB.length),ue+=X.length+1}),this.quill.update(h.default.sources.USER),this.quill.setSelection(M,V,h.default.sources.SILENT)}}}}function Z(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(D,R){this.quill.format(x,!R.format[x],h.default.sources.USER)}}}function G(x){if("string"==typeof x||"number"==typeof x)return G({key:x});if("object"===(typeof x>"u"?"undefined":N(x))&&(x=(0,f.default)(x,!1)),"string"==typeof x.key)if(null!=H.keys[x.key.toUpperCase()])x.key=H.keys[x.key.toUpperCase()];else{if(1!==x.key.length)return null;x.key=x.key.toUpperCase().charCodeAt(0)}return x.shortKey&&(x[F]=x.shortKey,delete x.shortKey),x}H.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},H.DEFAULTS={bindings:{bold:Z("bold"),italic:Z("italic"),underline:Z("underline"),indent:{key:H.keys.TAB,format:["blockquote","indent","list"],handler:function(j,D){if(D.collapsed&&0!==D.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:H.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,D){if(D.collapsed&&0!==D.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:H.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,D){null!=D.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=D.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":B(!0),"outdent code-block":B(!1),"remove tab":{key:H.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,h.default.sources.USER)}},tab:{key:H.keys.TAB,handler:function(j){this.quill.history.cutoff();var D=(new l.default).retain(j.index).delete(j.length).insert("\t");this.quill.updateContents(D,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,h.default.sources.SILENT)}},"list empty enter":{key:H.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,D){this.quill.format("list",!1,h.default.sources.USER),D.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:H.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var D=this.quill.getLine(j.index),R=T(D,2),M=R[0],V=R[1],J=(0,t.default)({},M.formats(),{list:"checked"}),ne=(new l.default).retain(j.index).insert("\n",J).retain(M.length()-V-1).retain(1,{list:"unchecked"});this.quill.updateContents(ne,h.default.sources.USER),this.quill.setSelection(j.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:H.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,D){var R=this.quill.getLine(j.index),M=T(R,2),V=M[0],J=M[1],ne=(new l.default).retain(j.index).insert("\n",D.format).retain(V.length()-J-1).retain(1,{header:null});this.quill.updateContents(ne,h.default.sources.USER),this.quill.setSelection(j.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,D){var R=D.prefix.length,M=this.quill.getLine(j.index),V=T(M,2),J=V[0],ne=V[1];if(ne>R)return!0;var re=void 0;switch(D.prefix.trim()){case"[]":case"[ ]":re="unchecked";break;case"[x]":re="checked";break;case"-":case"*":re="bullet";break;default:re="ordered"}this.quill.insertText(j.index," ",h.default.sources.USER),this.quill.history.cutoff();var ue=(new l.default).retain(j.index-ne).delete(R+1).retain(J.length()-2-ne).retain(1,{list:re});this.quill.updateContents(ue,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-R,h.default.sources.SILENT)}},"code exit":{key:H.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var D=this.quill.getLine(j.index),R=T(D,2),M=R[0],V=R[1],J=(new l.default).retain(j.index+M.length()-V-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(J,h.default.sources.USER)}},"embed left":Y(H.keys.LEFT,!1),"embed left shift":Y(H.keys.LEFT,!0),"embed right":Y(H.keys.RIGHT,!1),"embed right shift":Y(H.keys.RIGHT,!0)}},v.default=H,v.SHORTKEY=F},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(a,c){if(Array.isArray(a))return a;if(Symbol.iterator in Object(a))return function n(a,c){var i=[],h=!0,k=!1,_=void 0;try{for(var S,O=a[Symbol.iterator]();!(h=(S=O.next()).done)&&(i.push(S.value),!c||i.length!==c);h=!0);}catch(b){k=!0,_=b}finally{try{!h&&O.return&&O.return()}finally{if(k)throw _}}return i}(a,c);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function n(a,c,i){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,c);if(void 0===h){var k=Object.getPrototypeOf(a);return null===k?void 0:n(k,c,i)}if("value"in h)return h.value;var _=h.get;return void 0===_?void 0:_.call(i)},y=function(){function n(a,c){for(var i=0;i<c.length;i++){var h=c[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}return function(a,c,i){return c&&n(a.prototype,c),i&&n(a,i),a}}(),f=e(d(0)),o=e(d(7));function e(n){return n&&n.__esModule?n:{default:n}}var u=function(n){function a(c,i){!function t(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a);var h=function s(n,a){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?n:a}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,c));return h.selection=i,h.textNode=document.createTextNode(a.CONTENTS),h.domNode.appendChild(h.textNode),h._length=0,h}return function l(n,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}(a,n),y(a,null,[{key:"value",value:function(){}}]),y(a,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(i,h){if(0!==this._length)return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,h);for(var k=this,_=0;null!=k&&k.statics.scope!==f.default.Scope.BLOCK_BLOT;)_+=k.offset(k.parent),k=k.parent;null!=k&&(this._length=a.CONTENTS.length,k.optimize(),k.formatAt(_,a.CONTENTS.length,i,h),this._length=0)}},{key:"index",value:function(i,h){return i===this.textNode?0:T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"index",this).call(this,i,h)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var i=this.textNode,h=this.selection.getNativeRange(),k=void 0,_=void 0,O=void 0;if(null!=h&&h.start.node===i&&h.end.node===i){var S=[i,h.start.offset,h.end.offset];k=S[0],_=S[1],O=S[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==a.CONTENTS){var b=this.textNode.data.split(a.CONTENTS).join("");this.next instanceof o.default?(k=this.next.domNode,this.next.insertAt(0,b),this.textNode.data=a.CONTENTS):(this.textNode.data=b,this.parent.insertBefore(f.default.create(this.textNode),this),this.textNode=document.createTextNode(a.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=_){var m=[_,O].map(function(E){return Math.max(0,Math.min(k.data.length,E-1))}),g=N(m,2);return{startNode:k,startOffset:_=g[0],endNode:k,endOffset:O=g[1]}}}}},{key:"update",value:function(i,h){var k=this;if(i.some(function(O){return"characterData"===O.type&&O.target===k.textNode})){var _=this.restore();_&&(h.range=_)}}},{key:"value",value:function(){return""}}]),a}(f.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",v.default=u},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var T=f(d(0)),y=d(4),p=f(y);function f(s){return s&&s.__esModule?s:{default:s}}function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}var t=function(s){function l(){return r(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),l}(T.default.Container);t.allowedChildren=[p.default,y.BlockEmbed,t],v.default=t},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.ColorStyle=v.ColorClass=v.ColorAttributor=void 0;var N=function(){function u(n,a){for(var c=0;c<a.length;c++){var i=a[c];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}return function(n,a,c){return a&&u(n.prototype,a),c&&u(n,c),n}}(),T=function u(n,a,c){null===n&&(n=Function.prototype);var i=Object.getOwnPropertyDescriptor(n,a);if(void 0===i){var h=Object.getPrototypeOf(n);return null===h?void 0:u(h,a,c)}if("value"in i)return i.value;var k=i.get;return void 0===k?void 0:k.call(c)},p=function f(u){return u&&u.__esModule?u:{default:u}}(d(0));function r(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function o(u,n){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?u:n}var t=function(u){function n(){return r(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function e(u,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);u.prototype=Object.create(n&&n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(u,n):u.__proto__=n)}(n,u),N(n,[{key:"value",value:function(c){var i=T(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"value",this).call(this,c);return i.startsWith("rgb(")?"#"+(i=i.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(h){return("00"+parseInt(h).toString(16)).slice(-2)}).join(""):i}}]),n}(p.default.Attributor.Style),s=new p.default.Attributor.Class("color","ql-color",{scope:p.default.Scope.INLINE}),l=new t("color","color",{scope:p.default.Scope.INLINE});v.ColorAttributor=t,v.ColorClass=s,v.ColorStyle=l},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.sanitize=v.default=void 0;var N=function(){function l(u,n){for(var a=0;a<n.length;a++){var c=n[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}return function(u,n,a){return n&&l(u.prototype,n),a&&l(u,a),u}}(),T=function l(u,n,a){null===u&&(u=Function.prototype);var c=Object.getOwnPropertyDescriptor(u,n);if(void 0===c){var i=Object.getPrototypeOf(u);return null===i?void 0:l(i,n,a)}if("value"in c)return c.value;var h=c.get;return void 0===h?void 0:h.call(a)};function r(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function o(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?l:u}var t=function(l){function u(){return r(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function e(l,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}(u,l),N(u,[{key:"format",value:function(a,c){if(a!==this.statics.blotName||!c)return T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"format",this).call(this,a,c);c=this.constructor.sanitize(c),this.domNode.setAttribute("href",c)}}],[{key:"create",value:function(a){var c=T(u.__proto__||Object.getPrototypeOf(u),"create",this).call(this,a);return a=this.sanitize(a),c.setAttribute("href",a),c.setAttribute("rel","noopener noreferrer"),c.setAttribute("target","_blank"),c}},{key:"formats",value:function(a){return a.getAttribute("href")}},{key:"sanitize",value:function(a){return s(a,this.PROTOCOL_WHITELIST)?a:this.SANITIZED_URL}}]),u}(function f(l){return l&&l.__esModule?l:{default:l}}(d(6)).default);function s(l,u){var n=document.createElement("a");n.href=l;var a=n.href.slice(0,n.href.indexOf(":"));return u.indexOf(a)>-1}t.blotName="link",t.tagName="A",t.SANITIZED_URL="about:blank",t.PROTOCOL_WHITELIST=["http","https","mailto","tel"],v.default=t,v.sanitize=s},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(u){return typeof u}:function(u){return u&&"function"==typeof Symbol&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},T=function(){function u(n,a){for(var c=0;c<a.length;c++){var i=a[c];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}return function(n,a,c){return a&&u(n.prototype,a),c&&u(n,c),n}}(),p=o(d(23)),r=o(d(107));function o(u){return u&&u.__esModule?u:{default:u}}var t=0;function s(u,n){u.setAttribute(n,"true"!==u.getAttribute(n))}var l=function(){function u(n){var a=this;(function e(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")})(this,u),this.select=n,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){a.togglePicker()}),this.label.addEventListener("keydown",function(c){switch(c.keyCode){case p.default.keys.ENTER:a.togglePicker();break;case p.default.keys.ESCAPE:a.escape(),c.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return T(u,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),s(this.label,"aria-expanded"),s(this.options,"aria-hidden")}},{key:"buildItem",value:function(a){var c=this,i=document.createElement("span");return i.tabIndex="0",i.setAttribute("role","button"),i.classList.add("ql-picker-item"),a.hasAttribute("value")&&i.setAttribute("data-value",a.getAttribute("value")),a.textContent&&i.setAttribute("data-label",a.textContent),i.addEventListener("click",function(){c.selectItem(i,!0)}),i.addEventListener("keydown",function(h){switch(h.keyCode){case p.default.keys.ENTER:c.selectItem(i,!0),h.preventDefault();break;case p.default.keys.ESCAPE:c.escape(),h.preventDefault()}}),i}},{key:"buildLabel",value:function(){var a=document.createElement("span");return a.classList.add("ql-picker-label"),a.innerHTML=r.default,a.tabIndex="0",a.setAttribute("role","button"),a.setAttribute("aria-expanded","false"),this.container.appendChild(a),a}},{key:"buildOptions",value:function(){var a=this,c=document.createElement("span");c.classList.add("ql-picker-options"),c.setAttribute("aria-hidden","true"),c.tabIndex="-1",c.id="ql-picker-options-"+t,t+=1,this.label.setAttribute("aria-controls",c.id),this.options=c,[].slice.call(this.select.options).forEach(function(i){var h=a.buildItem(i);c.appendChild(h),!0===i.selected&&a.selectItem(h)}),this.container.appendChild(c)}},{key:"buildPicker",value:function(){var a=this;[].slice.call(this.select.attributes).forEach(function(c){a.container.setAttribute(c.name,c.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var a=this;this.close(),setTimeout(function(){return a.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(a){var c=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.container.querySelector(".ql-selected");if(a!==i&&(i?.classList.remove("ql-selected"),null!=a&&(a.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(a.parentNode.children,a),a.hasAttribute("data-value")?this.label.setAttribute("data-value",a.getAttribute("data-value")):this.label.removeAttribute("data-value"),a.hasAttribute("data-label")?this.label.setAttribute("data-label",a.getAttribute("data-label")):this.label.removeAttribute("data-label"),c))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":N(Event))){var h=document.createEvent("Event");h.initEvent("change",!0,!0),this.select.dispatchEvent(h)}this.close()}}},{key:"update",value:function(){var a=void 0;if(this.select.selectedIndex>-1){var c=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];a=this.select.options[this.select.selectedIndex],this.selectItem(c)}else this.selectItem(null);var i=null!=a&&a!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",i)}}]),u}();v.default=l},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var T=C(d(0)),p=C(d(5)),f=d(4),r=C(f),e=C(d(16)),s=C(d(25)),u=C(d(24)),a=C(d(35)),i=C(d(6)),k=C(d(22)),O=C(d(7)),b=C(d(55)),g=C(d(42)),w=C(d(23));function C(F){return F&&F.__esModule?F:{default:F}}p.default.register({"blots/block":r.default,"blots/block/embed":f.BlockEmbed,"blots/break":e.default,"blots/container":s.default,"blots/cursor":u.default,"blots/embed":a.default,"blots/inline":i.default,"blots/scroll":k.default,"blots/text":O.default,"modules/clipboard":b.default,"modules/history":g.default,"modules/keyboard":w.default}),T.default.register(r.default,e.default,u.default,i.default,k.default,O.default),v.default=p.default},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=d(1),T=function(){function y(p){this.domNode=p,this.domNode[N.DATA_KEY]={blot:this}}return Object.defineProperty(y.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),y.create=function(p){if(null==this.tagName)throw new N.ParchmentError("Blot definition missing tagName");var f;return Array.isArray(this.tagName)?("string"==typeof p&&(p=p.toUpperCase(),parseInt(p).toString()===p&&(p=parseInt(p))),f="number"==typeof p?document.createElement(this.tagName[p-1]):this.tagName.indexOf(p)>-1?document.createElement(p):document.createElement(this.tagName[0])):f=document.createElement(this.tagName),this.className&&f.classList.add(this.className),f},y.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},y.prototype.clone=function(){var p=this.domNode.cloneNode(!1);return N.create(p)},y.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[N.DATA_KEY]},y.prototype.deleteAt=function(p,f){this.isolate(p,f).remove()},y.prototype.formatAt=function(p,f,r,o){var e=this.isolate(p,f);if(null!=N.query(r,N.Scope.BLOT)&&o)e.wrap(r,o);else if(null!=N.query(r,N.Scope.ATTRIBUTE)){var t=N.create(this.statics.scope);e.wrap(t),t.format(r,o)}},y.prototype.insertAt=function(p,f,r){var o=null==r?N.create("text",f):N.create(f,r),e=this.split(p);this.parent.insertBefore(o,e)},y.prototype.insertInto=function(p,f){void 0===f&&(f=null),null!=this.parent&&this.parent.children.remove(this);var r=null;p.children.insertBefore(this,f),null!=f&&(r=f.domNode),(this.domNode.parentNode!=p.domNode||this.domNode.nextSibling!=r)&&p.domNode.insertBefore(this.domNode,r),this.parent=p,this.attach()},y.prototype.isolate=function(p,f){var r=this.split(p);return r.split(f),r},y.prototype.length=function(){return 1},y.prototype.offset=function(p){return void 0===p&&(p=this.parent),null==this.parent||this==p?0:this.parent.children.offset(this)+this.parent.offset(p)},y.prototype.optimize=function(p){null!=this.domNode[N.DATA_KEY]&&delete this.domNode[N.DATA_KEY].mutations},y.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},y.prototype.replace=function(p){null!=p.parent&&(p.parent.insertBefore(this,p.next),p.remove())},y.prototype.replaceWith=function(p,f){var r="string"==typeof p?N.create(p,f):p;return r.replace(this),r},y.prototype.split=function(p,f){return 0===p?this:this.next},y.prototype.update=function(p,f){},y.prototype.wrap=function(p,f){var r="string"==typeof p?N.create(p,f):p;return null!=this.parent&&this.parent.insertBefore(r,this.next),r.appendChild(this),r},y.blotName="abstract",y}();v.default=T},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=d(12),T=d(32),y=d(33),p=d(1),f=function(){function r(o){this.attributes={},this.domNode=o,this.build()}return r.prototype.attribute=function(o,e){e?o.add(this.domNode,e)&&(null!=o.value(this.domNode)?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},r.prototype.build=function(){var o=this;this.attributes={};var e=N.default.keys(this.domNode),t=T.default.keys(this.domNode),s=y.default.keys(this.domNode);e.concat(t).concat(s).forEach(function(l){var u=p.query(l,p.Scope.ATTRIBUTE);u instanceof N.default&&(o.attributes[u.attrName]=u)})},r.prototype.copy=function(o){var e=this;Object.keys(this.attributes).forEach(function(t){var s=e.attributes[t].value(e.domNode);o.format(t,s)})},r.prototype.move=function(o){var e=this;this.copy(o),Object.keys(this.attributes).forEach(function(t){e.attributes[t].remove(e.domNode)}),this.attributes={}},r.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(e,t){return e[t]=o.attributes[t].value(o.domNode),e},{})},r}();v.default=f},function(I,v,d){"use strict";var f,N=this&&this.__extends||(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)o.hasOwnProperty(e)&&(r[e]=o[e])},function(r,o){function e(){this.constructor=r}f(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});function y(f,r){return(f.getAttribute("class")||"").split(/\s+/).filter(function(e){return 0===e.indexOf(r+"-")})}Object.defineProperty(v,"__esModule",{value:!0});var p=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return N(r,f),r.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(e){return e.split("-").slice(0,-1).join("-")})},r.prototype.add=function(o,e){return!!this.canAdd(o,e)&&(this.remove(o),o.classList.add(this.keyName+"-"+e),!0)},r.prototype.remove=function(o){y(o,this.keyName).forEach(function(t){o.classList.remove(t)}),0===o.classList.length&&o.removeAttribute("class")},r.prototype.value=function(o){var t=(y(o,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(o,t)?t:""},r}(d(12).default);v.default=p},function(I,v,d){"use strict";var f,N=this&&this.__extends||(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)o.hasOwnProperty(e)&&(r[e]=o[e])},function(r,o){function e(){this.constructor=r}f(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});function y(f){var r=f.split("-"),o=r.slice(1).map(function(e){return e[0].toUpperCase()+e.slice(1)}).join("");return r[0]+o}Object.defineProperty(v,"__esModule",{value:!0});var p=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return N(r,f),r.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(e){return e.split(":")[0].trim()})},r.prototype.add=function(o,e){return!!this.canAdd(o,e)&&(o.style[y(this.keyName)]=e,!0)},r.prototype.remove=function(o){o.style[y(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},r.prototype.value=function(o){var e=o.style[y(this.keyName)];return this.canAdd(o,e)?e:""},r}(d(12).default);v.default=p},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function p(f,r){for(var o=0;o<r.length;o++){var e=r[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(f,e.key,e)}}return function(f,r,o){return r&&p(f.prototype,r),o&&p(f,o),f}}();var y=function(){function p(f,r){(function T(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")})(this,p),this.quill=f,this.options=r,this.modules={}}return N(p,[{key:"init",value:function(){var r=this;Object.keys(this.options.modules).forEach(function(o){null==r.modules[o]&&r.addModule(o)})}},{key:"addModule",value:function(r){var o=this.quill.constructor.import("modules/"+r);return this.modules[r]=new o(this.quill,this.options.modules[r]||{}),this.modules[r]}}]),p}();y.DEFAULTS={modules:{}},y.themes={default:y},v.default=y},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function n(a,c){for(var i=0;i<c.length;i++){var h=c[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}return function(a,c,i){return c&&n(a.prototype,c),i&&n(a,i),a}}(),T=function n(a,c,i){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,c);if(void 0===h){var k=Object.getPrototypeOf(a);return null===k?void 0:n(k,c,i)}if("value"in h)return h.value;var _=h.get;return void 0===_?void 0:_.call(i)},p=o(d(0)),r=o(d(7));function o(n){return n&&n.__esModule?n:{default:n}}var l="\ufeff",u=function(n){function a(c){!function e(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function t(n,a){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?n:a}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,c));return i.contentNode=document.createElement("span"),i.contentNode.setAttribute("contenteditable",!1),[].slice.call(i.domNode.childNodes).forEach(function(h){i.contentNode.appendChild(h)}),i.leftGuard=document.createTextNode(l),i.rightGuard=document.createTextNode(l),i.domNode.appendChild(i.leftGuard),i.domNode.appendChild(i.contentNode),i.domNode.appendChild(i.rightGuard),i}return function s(n,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}(a,n),N(a,[{key:"index",value:function(i,h){return i===this.leftGuard?0:i===this.rightGuard?1:T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"index",this).call(this,i,h)}},{key:"restore",value:function(i){var h=void 0,k=void 0,_=i.data.split(l).join("");if(i===this.leftGuard)if(this.prev instanceof r.default){var O=this.prev.length();this.prev.insertAt(O,_),h={startNode:this.prev.domNode,startOffset:O+_.length}}else k=document.createTextNode(_),this.parent.insertBefore(p.default.create(k),this),h={startNode:k,startOffset:_.length};else i===this.rightGuard&&(this.next instanceof r.default?(this.next.insertAt(0,_),h={startNode:this.next.domNode,startOffset:_.length}):(k=document.createTextNode(_),this.parent.insertBefore(p.default.create(k),this.next),h={startNode:k,startOffset:_.length}));return i.data=l,h}},{key:"update",value:function(i,h){var k=this;i.forEach(function(_){if("characterData"===_.type&&(_.target===k.leftGuard||_.target===k.rightGuard)){var O=k.restore(_.target);O&&(h.range=O)}})}}]),a}(p.default.Embed);v.default=u},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.AlignStyle=v.AlignClass=v.AlignAttribute=void 0;var T=function y(e){return e&&e.__esModule?e:{default:e}}(d(0));var p={scope:T.default.Scope.BLOCK,whitelist:["right","center","justify"]},f=new T.default.Attributor.Attribute("align","align",p),r=new T.default.Attributor.Class("align","ql-align",p),o=new T.default.Attributor.Style("align","text-align",p);v.AlignAttribute=f,v.AlignClass=r,v.AlignStyle=o},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.BackgroundStyle=v.BackgroundClass=void 0;var T=function p(o){return o&&o.__esModule?o:{default:o}}(d(0)),y=d(26);var f=new T.default.Attributor.Class("background","ql-bg",{scope:T.default.Scope.INLINE}),r=new y.ColorAttributor("background","background-color",{scope:T.default.Scope.INLINE});v.BackgroundClass=f,v.BackgroundStyle=r},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.DirectionStyle=v.DirectionClass=v.DirectionAttribute=void 0;var T=function y(e){return e&&e.__esModule?e:{default:e}}(d(0));var p={scope:T.default.Scope.BLOCK,whitelist:["rtl"]},f=new T.default.Attributor.Attribute("direction","dir",p),r=new T.default.Attributor.Class("direction","ql-direction",p),o=new T.default.Attributor.Style("direction","direction",p);v.DirectionAttribute=f,v.DirectionClass=r,v.DirectionStyle=o},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.FontClass=v.FontStyle=void 0;var N=function(){function n(a,c){for(var i=0;i<c.length;i++){var h=c[i];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}return function(a,c,i){return c&&n(a.prototype,c),i&&n(a,i),a}}(),T=function n(a,c,i){null===a&&(a=Function.prototype);var h=Object.getOwnPropertyDescriptor(a,c);if(void 0===h){var k=Object.getPrototypeOf(a);return null===k?void 0:n(k,c,i)}if("value"in h)return h.value;var _=h.get;return void 0===_?void 0:_.call(i)},p=function f(n){return n&&n.__esModule?n:{default:n}}(d(0));function r(n,a){if(!(n instanceof a))throw new TypeError("Cannot call a class as a function")}function o(n,a){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?n:a}var t={scope:p.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new p.default.Attributor.Class("font","ql-font",t),l=function(n){function a(){return r(this,a),o(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function e(n,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(n,a):n.__proto__=a)}(a,n),N(a,[{key:"value",value:function(i){return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,i).replace(/["']/g,"")}}]),a}(p.default.Attributor.Style),u=new l("font","font-family",t);v.FontStyle=u,v.FontClass=s},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.SizeStyle=v.SizeClass=void 0;var T=function y(r){return r&&r.__esModule?r:{default:r}}(d(0));var p=new T.default.Attributor.Class("size","ql-size",{scope:T.default.Scope.INLINE,whitelist:["small","large","huge"]}),f=new T.default.Attributor.Style("size","font-size",{scope:T.default.Scope.INLINE,whitelist:["10px","18px","32px"]});v.SizeClass=p,v.SizeStyle=f},function(I,v,d){"use strict";I.exports={align:{"":d(76),center:d(77),right:d(78),justify:d(79)},background:d(80),blockquote:d(81),bold:d(82),clean:d(83),code:d(58),"code-block":d(58),color:d(84),direction:{"":d(85),rtl:d(86)},float:{center:d(87),full:d(88),left:d(89),right:d(90)},formula:d(91),header:{1:d(92),2:d(93)},italic:d(94),image:d(95),indent:{"+1":d(96),"-1":d(97)},link:d(98),list:{ordered:d(99),bullet:d(100),check:d(101)},script:{sub:d(102),super:d(103)},strike:d(104),underline:d(105),video:d(106)}},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.getLastChangeIndex=v.default=void 0;var N=function(){function c(i,h){for(var k=0;k<h.length;k++){var _=h[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(i,_.key,_)}}return function(i,h,k){return h&&c(i.prototype,h),k&&c(i,k),i}}(),y=e(d(0)),f=e(d(5));function e(c){return c&&c.__esModule?c:{default:c}}var u=function(c){function i(h,k){!function t(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i);var _=function s(c,i){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?c:i}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,h,k));return _.lastRecorded=0,_.ignoreChange=!1,_.clear(),_.quill.on(f.default.events.EDITOR_CHANGE,function(O,S,b,m){O!==f.default.events.TEXT_CHANGE||_.ignoreChange||(_.options.userOnly&&m!==f.default.sources.USER?_.transform(S):_.record(S,b))}),_.quill.keyboard.addBinding({key:"Z",shortKey:!0},_.undo.bind(_)),_.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},_.redo.bind(_)),/Win/i.test(navigator.platform)&&_.quill.keyboard.addBinding({key:"Y",shortKey:!0},_.redo.bind(_)),_}return function l(c,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);c.prototype=Object.create(i&&i.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(c,i):c.__proto__=i)}(i,c),N(i,[{key:"change",value:function(k,_){if(0!==this.stack[k].length){var O=this.stack[k].pop();this.stack[_].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[k],f.default.sources.USER),this.ignoreChange=!1;var S=a(O[k]);this.quill.setSelection(S)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(k,_){if(0!==k.ops.length){this.stack.redo=[];var O=this.quill.getContents().diff(_),S=Date.now();if(this.lastRecorded+this.options.delay>S&&this.stack.undo.length>0){var b=this.stack.undo.pop();O=O.compose(b.undo),k=b.redo.compose(k)}else this.lastRecorded=S;this.stack.undo.push({redo:k,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(k){this.stack.undo.forEach(function(_){_.undo=k.transform(_.undo,!0),_.redo=k.transform(_.redo,!0)}),this.stack.redo.forEach(function(_){_.undo=k.transform(_.undo,!0),_.redo=k.transform(_.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),i}(e(d(9)).default);function a(c){var i=c.reduce(function(k,_){return k+(_.delete||0)},0),h=c.length()-i;return function n(c){var i=c.ops[c.ops.length-1];return null!=i&&(null!=i.insert?"string"==typeof i.insert&&i.insert.endsWith("\n"):null!=i.attributes&&Object.keys(i.attributes).some(function(h){return null!=y.default.query(h,y.default.Scope.BLOCK)}))}(c)&&(h-=1),h}u.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},v.default=u,v.getLastChangeIndex=a},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.BaseTooltip=void 0;var N=function(){function P(B,Z){for(var G=0;G<Z.length;G++){var x=Z[G];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(B,x.key,x)}}return function(B,Z,G){return Z&&P(B.prototype,Z),G&&P(B,G),B}}(),T=function P(B,Z,G){null===B&&(B=Function.prototype);var x=Object.getOwnPropertyDescriptor(B,Z);if(void 0===x){var j=Object.getPrototypeOf(B);return null===j?void 0:P(j,Z,G)}if("value"in x)return x.value;var D=x.get;return void 0===D?void 0:D.call(G)},p=S(d(3)),r=S(d(2)),e=S(d(8)),s=S(d(23)),u=S(d(34)),a=S(d(59)),i=S(d(60)),k=S(d(28)),O=S(d(61));function S(P){return P&&P.__esModule?P:{default:P}}function b(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}function m(P,B){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?P:B}function g(P,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);P.prototype=Object.create(B&&B.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(P,B):P.__proto__=B)}var E=[!1,"center","right","justify"],w=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],C=[!1,"serif","monospace"],F=["1","2","3",!1],H=["small",!1,"large","huge"],Y=function(P){function B(Z,G){b(this,B);var x=m(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,Z,G));return Z.emitter.listenDOM("click",document.body,function D(R){if(!document.body.contains(Z.root))return document.body.removeEventListener("click",D);null!=x.tooltip&&!x.tooltip.root.contains(R.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),null!=x.pickers&&x.pickers.forEach(function(M){M.container.contains(R.target)||M.close()})}),x}return g(B,P),N(B,[{key:"addModule",value:function(G){var x=T(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"addModule",this).call(this,G);return"toolbar"===G&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(G,x){G.forEach(function(j){(j.getAttribute("class")||"").split(/\s+/).forEach(function(R){if(R.startsWith("ql-")&&(R=R.slice(3),null!=x[R]))if("direction"===R)j.innerHTML=x[R][""]+x[R].rtl;else if("string"==typeof x[R])j.innerHTML=x[R];else{var M=j.value||"";null!=M&&x[R][M]&&(j.innerHTML=x[R][M])}})})}},{key:"buildPickers",value:function(G,x){var j=this;this.pickers=G.map(function(R){if(R.classList.contains("ql-align"))return null==R.querySelector("option")&&A(R,E),new i.default(R,x.align);if(R.classList.contains("ql-background")||R.classList.contains("ql-color")){var M=R.classList.contains("ql-background")?"background":"color";return null==R.querySelector("option")&&A(R,w,"background"===M?"#ffffff":"#000000"),new a.default(R,x[M])}return null==R.querySelector("option")&&(R.classList.contains("ql-font")?A(R,C):R.classList.contains("ql-header")?A(R,F):R.classList.contains("ql-size")&&A(R,H)),new k.default(R)}),this.quill.on(e.default.events.EDITOR_CHANGE,function(){j.pickers.forEach(function(M){M.update()})})}}]),B}(u.default);Y.DEFAULTS=(0,p.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var B=this,Z=this.container.querySelector("input.ql-image[type=file]");null==Z&&((Z=document.createElement("input")).setAttribute("type","file"),Z.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Z.classList.add("ql-image"),Z.addEventListener("change",function(){if(null!=Z.files&&null!=Z.files[0]){var G=new FileReader;G.onload=function(x){var j=B.quill.getSelection(!0);B.quill.updateContents((new r.default).retain(j.index).delete(j.length).insert({image:x.target.result}),e.default.sources.USER),B.quill.setSelection(j.index+1,e.default.sources.SILENT),Z.value=""},G.readAsDataURL(Z.files[0])}}),this.container.appendChild(Z)),Z.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var U=function(P){function B(Z,G){b(this,B);var x=m(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,Z,G));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return g(B,P),N(B,[{key:"listen",value:function(){var G=this;this.textbox.addEventListener("keydown",function(x){s.default.match(x,"enter")?(G.save(),x.preventDefault()):s.default.match(x,"escape")&&(G.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var G=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=x?this.textbox.value=x:G!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+G)||""),this.root.setAttribute("data-mode",G)}},{key:"restoreFocus",value:function(){var G=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=G}},{key:"save",value:function(){var G=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",G,e.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",G,e.default.sources.USER)),this.quill.root.scrollTop=x;break;case"video":G=function q(P){var B=P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||P.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return B?(B[1]||"https")+"://www.youtube.com/embed/"+B[2]+"?showinfo=0":(B=P.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(B[1]||"https")+"://player.vimeo.com/video/"+B[2]+"/":P}(G);case"formula":if(!G)break;var j=this.quill.getSelection(!0);if(null!=j){var D=j.index+j.length;this.quill.insertEmbed(D,this.root.getAttribute("data-mode"),G,e.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(D+1," ",e.default.sources.USER),this.quill.setSelection(D+2,e.default.sources.USER)}}this.textbox.value="",this.hide()}}]),B}(O.default);function A(P,B){var Z=arguments.length>2&&void 0!==arguments[2]&&arguments[2];B.forEach(function(G){var x=document.createElement("option");G===Z?x.setAttribute("selected","selected"):x.setAttribute("value",G),P.appendChild(x)})}v.BaseTooltip=U,v.default=Y},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var y=[],p=0;p<arguments.length;p++)y[p]=arguments[p];this.insertBefore(y[0],null),y.length>1&&this.append.apply(this,y.slice(1))},T.prototype.contains=function(y){for(var p,f=this.iterator();p=f();)if(p===y)return!0;return!1},T.prototype.insertBefore=function(y,p){y&&(y.next=p,null!=p?(y.prev=p.prev,null!=p.prev&&(p.prev.next=y),p.prev=y,p===this.head&&(this.head=y)):null!=this.tail?(this.tail.next=y,y.prev=this.tail,this.tail=y):(y.prev=null,this.head=this.tail=y),this.length+=1)},T.prototype.offset=function(y){for(var p=0,f=this.head;null!=f;){if(f===y)return p;p+=f.length(),f=f.next}return-1},T.prototype.remove=function(y){this.contains(y)&&(null!=y.prev&&(y.prev.next=y.next),null!=y.next&&(y.next.prev=y.prev),y===this.head&&(this.head=y.next),y===this.tail&&(this.tail=y.prev),this.length-=1)},T.prototype.iterator=function(y){return void 0===y&&(y=this.head),function(){var p=y;return null!=y&&(y=y.next),p}},T.prototype.find=function(y,p){void 0===p&&(p=!1);for(var f,r=this.iterator();f=r();){var o=f.length();if(y<o||p&&y===o&&(null==f.next||0!==f.next.length()))return[f,y];y-=o}return[null,0]},T.prototype.forEach=function(y){for(var p,f=this.iterator();p=f();)y(p)},T.prototype.forEachAt=function(y,p,f){if(!(p<=0))for(var t,r=this.find(y),s=y-r[1],l=this.iterator(r[0]);(t=l())&&s<y+p;){var u=t.length();y>s?f(t,y-s,Math.min(p,s+u-y)):f(t,0,Math.min(u,y+p-s)),s+=u}},T.prototype.map=function(y){return this.reduce(function(p,f){return p.push(y(f)),p},[])},T.prototype.reduce=function(y,p){for(var f,r=this.iterator();f=r();)p=y(p,f);return p},T}();v.default=N},function(I,v,d){"use strict";var o,N=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var s in t)t.hasOwnProperty(s)&&(e[s]=t[s])},function(e,t){function s(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(s.prototype=t.prototype,new s)});Object.defineProperty(v,"__esModule",{value:!0});var T=d(17),y=d(1),p={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},r=function(o){function e(t){var s=o.call(this,t)||this;return s.scroll=s,s.observer=new MutationObserver(function(l){s.update(l)}),s.observer.observe(s.domNode,p),s.attach(),s}return N(e,o),e.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(t,s){this.update(),0===t&&s===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,t,s)},e.prototype.formatAt=function(t,s,l,u){this.update(),o.prototype.formatAt.call(this,t,s,l,u)},e.prototype.insertAt=function(t,s,l){this.update(),o.prototype.insertAt.call(this,t,s,l)},e.prototype.optimize=function(t,s){var l=this;void 0===t&&(t=[]),void 0===s&&(s={}),o.prototype.optimize.call(this,s);for(var u=[].slice.call(this.observer.takeRecords());u.length>0;)t.push(u.pop());for(var n=function(h,k){void 0===k&&(k=!0),null!=h&&h!==l&&null!=h.domNode.parentNode&&(null==h.domNode[y.DATA_KEY].mutations&&(h.domNode[y.DATA_KEY].mutations=[]),k&&n(h.parent))},a=function(h){null==h.domNode[y.DATA_KEY]||null==h.domNode[y.DATA_KEY].mutations||(h instanceof T.default&&h.children.forEach(a),h.optimize(s))},c=t,i=0;c.length>0;i+=1){if(i>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach(function(h){var k=y.find(h.target,!0);null!=k&&(k.domNode===h.target&&("childList"===h.type?(n(y.find(h.previousSibling,!1)),[].forEach.call(h.addedNodes,function(_){var O=y.find(_,!1);n(O,!1),O instanceof T.default&&O.children.forEach(function(S){n(S,!1)})})):"attributes"===h.type&&n(k.prev)),n(k))}),this.children.forEach(a),u=(c=[].slice.call(this.observer.takeRecords())).slice();u.length>0;)t.push(u.pop())}},e.prototype.update=function(t,s){var l=this;void 0===s&&(s={}),(t=t||this.observer.takeRecords()).map(function(u){var n=y.find(u.target,!0);return null==n?null:null==n.domNode[y.DATA_KEY].mutations?(n.domNode[y.DATA_KEY].mutations=[u],n):(n.domNode[y.DATA_KEY].mutations.push(u),null)}).forEach(function(u){null==u||u===l||null==u.domNode[y.DATA_KEY]||u.update(u.domNode[y.DATA_KEY].mutations||[],s)}),null!=this.domNode[y.DATA_KEY].mutations&&o.prototype.update.call(this,this.domNode[y.DATA_KEY].mutations,s),this.optimize(t,s)},e.blotName="scroll",e.defaultChild="block",e.scope=y.Scope.BLOCK_BLOT,e.tagName="DIV",e}(T.default);v.default=r},function(I,v,d){"use strict";var r,N=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,e){o.__proto__=e}||function(o,e){for(var t in e)e.hasOwnProperty(t)&&(o[t]=e[t])},function(o,e){function t(){this.constructor=o}r(o,e),o.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)});Object.defineProperty(v,"__esModule",{value:!0});var T=d(18),y=d(1);var f=function(r){function o(){return null!==r&&r.apply(this,arguments)||this}return N(o,r),o.formats=function(e){if(e.tagName!==o.tagName)return r.formats.call(this,e)},o.prototype.format=function(e,t){var s=this;e!==this.statics.blotName||t?r.prototype.format.call(this,e,t):(this.children.forEach(function(l){l instanceof T.default||(l=l.wrap(o.blotName,!0)),s.attributes.copy(l)}),this.unwrap())},o.prototype.formatAt=function(e,t,s,l){null!=this.formats()[s]||y.query(s,y.Scope.ATTRIBUTE)?this.isolate(e,t).format(s,l):r.prototype.formatAt.call(this,e,t,s,l)},o.prototype.optimize=function(e){r.prototype.optimize.call(this,e);var t=this.formats();if(0===Object.keys(t).length)return this.unwrap();var s=this.next;s instanceof o&&s.prev===this&&function p(r,o){if(Object.keys(r).length!==Object.keys(o).length)return!1;for(var e in r)if(r[e]!==o[e])return!1;return!0}(t,s.formats())&&(s.moveChildren(this),s.remove())},o.blotName="inline",o.scope=y.Scope.INLINE_BLOT,o.tagName="SPAN",o}(T.default);v.default=f},function(I,v,d){"use strict";var f,N=this&&this.__extends||(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)o.hasOwnProperty(e)&&(r[e]=o[e])},function(r,o){function e(){this.constructor=r}f(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(v,"__esModule",{value:!0});var T=d(18),y=d(1),p=function(f){function r(){return null!==f&&f.apply(this,arguments)||this}return N(r,f),r.formats=function(o){var e=y.query(r.blotName).tagName;if(o.tagName!==e)return f.formats.call(this,o)},r.prototype.format=function(o,e){null!=y.query(o,y.Scope.BLOCK)&&(o!==this.statics.blotName||e?f.prototype.format.call(this,o,e):this.replaceWith(r.blotName))},r.prototype.formatAt=function(o,e,t,s){null!=y.query(t,y.Scope.BLOCK)?this.format(t,s):f.prototype.formatAt.call(this,o,e,t,s)},r.prototype.insertAt=function(o,e,t){if(null==t||null!=y.query(e,y.Scope.INLINE))f.prototype.insertAt.call(this,o,e,t);else{var s=this.split(o),l=y.create(e,t);s.parent.insertBefore(l,s)}},r.prototype.update=function(o,e){navigator.userAgent.match(/Trident/)?this.build():f.prototype.update.call(this,o,e)},r.blotName="block",r.scope=y.Scope.BLOCK_BLOT,r.tagName="P",r}(T.default);v.default=p},function(I,v,d){"use strict";var p,N=this&&this.__extends||(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,r){f.__proto__=r}||function(f,r){for(var o in r)r.hasOwnProperty(o)&&(f[o]=r[o])},function(f,r){function o(){this.constructor=f}p(f,r),f.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)});Object.defineProperty(v,"__esModule",{value:!0});var y=function(p){function f(){return null!==p&&p.apply(this,arguments)||this}return N(f,p),f.formats=function(r){},f.prototype.format=function(r,o){p.prototype.formatAt.call(this,0,this.length(),r,o)},f.prototype.formatAt=function(r,o,e,t){0===r&&o===this.length()?this.format(e,t):p.prototype.formatAt.call(this,r,o,e,t)},f.prototype.formats=function(){return this.statics.formats(this.domNode)},f}(d(19).default);v.default=y},function(I,v,d){"use strict";var f,N=this&&this.__extends||(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var e in o)o.hasOwnProperty(e)&&(r[e]=o[e])},function(r,o){function e(){this.constructor=r}f(r,o),r.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)});Object.defineProperty(v,"__esModule",{value:!0});var T=d(19),y=d(1),p=function(f){function r(o){var e=f.call(this,o)||this;return e.text=e.statics.value(e.domNode),e}return N(r,f),r.create=function(o){return document.createTextNode(o)},r.value=function(o){var e=o.data;return e.normalize&&(e=e.normalize()),e},r.prototype.deleteAt=function(o,e){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+e)},r.prototype.index=function(o,e){return this.domNode===o?e:-1},r.prototype.insertAt=function(o,e,t){null==t?(this.text=this.text.slice(0,o)+e+this.text.slice(o),this.domNode.data=this.text):f.prototype.insertAt.call(this,o,e,t)},r.prototype.length=function(){return this.text.length},r.prototype.optimize=function(o){f.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof r&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},r.prototype.position=function(o,e){return void 0===e&&(e=!1),[this.domNode,o]},r.prototype.split=function(o,e){if(void 0===e&&(e=!1),!e){if(0===o)return this;if(o===this.length())return this.next}var t=y.create(this.domNode.splitText(o));return this.parent.insertBefore(t,this.next),this.text=this.statics.value(this.domNode),t},r.prototype.update=function(o,e){var t=this;o.some(function(s){return"characterData"===s.type&&s.target===t.domNode})&&(this.text=this.statics.value(this.domNode))},r.prototype.value=function(){return this.text},r.blotName="text",r.scope=y.Scope.INLINE_BLOT,r}(T.default);v.default=p},function(I,v,d){"use strict";var N=document.createElement("div");if(N.classList.toggle("test-class",!1),N.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(y,p){return arguments.length>1&&!this.contains(y)==!p?p:T.call(this,y)}}String.prototype.startsWith||(String.prototype.startsWith=function(y,p){return this.substr(p=p||0,y.length)===y}),String.prototype.endsWith||(String.prototype.endsWith=function(y,p){var f=this.toString();("number"!=typeof p||!isFinite(p)||Math.floor(p)!==p||p>f.length)&&(p=f.length);var r=f.indexOf(y,p-=y.length);return-1!==r&&r===p}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(p){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof p)throw new TypeError("predicate must be a function");for(var e,f=Object(this),r=f.length>>>0,o=arguments[1],t=0;t<r;t++)if(p.call(o,e=f[t],t,f))return e}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(I,v){var d=-1;function y(i,h,k){if(i==h)return i?[[0,i]]:[];(k<0||i.length<k)&&(k=null);var _=o(i,h),O=i.substring(0,_);_=e(i=i.substring(_),h=h.substring(_));var S=i.substring(i.length-_),b=function p(i,h){var k;if(!i)return[[1,h]];if(!h)return[[d,i]];var _=i.length>h.length?i:h,O=i.length>h.length?h:i,S=_.indexOf(O);if(-1!=S)return k=[[1,_.substring(0,S)],[0,O],[1,_.substring(S+O.length)]],i.length>h.length&&(k[0][0]=k[2][0]=d),k;if(1==O.length)return[[d,i],[1,h]];var b=function t(i,h){var k=i.length>h.length?i:h,_=i.length>h.length?h:i;if(k.length<4||2*_.length<k.length)return null;function O(H,Y,U){for(var B,Z,G,x,q=H.substring(U,U+Math.floor(H.length/4)),A=-1,P="";-1!=(A=Y.indexOf(q,A+1));){var j=o(H.substring(U),Y.substring(A)),D=e(H.substring(0,U),Y.substring(0,A));P.length<D+j&&(P=Y.substring(A-D,A)+Y.substring(A,A+j),B=H.substring(0,U-D),Z=H.substring(U+j),G=Y.substring(0,A-D),x=Y.substring(A+j))}return 2*P.length>=H.length?[B,Z,G,x,P]:null}var m,g,E,w,C,S=O(k,_,Math.ceil(k.length/4)),b=O(k,_,Math.ceil(k.length/2));return S||b?(m=b?S&&S[4].length>b[4].length?S:b:S,i.length>h.length?(g=m[0],E=m[1],w=m[2],C=m[3]):(w=m[0],C=m[1],g=m[2],E=m[3]),[g,E,w,C,m[4]]):null}(i,h);if(b){var g=b[1],w=b[3],C=b[4],F=y(b[0],b[2]),H=y(g,w);return F.concat([[0,C]],H)}return function f(i,h){for(var k=i.length,_=h.length,O=Math.ceil((k+_)/2),S=O,b=2*O,m=new Array(b),g=new Array(b),E=0;E<b;E++)m[E]=-1,g[E]=-1;m[S+1]=0,g[S+1]=0;for(var w=k-_,C=w%2!=0,F=0,H=0,Y=0,U=0,q=0;q<O;q++){for(var A=-q+F;A<=q-H;A+=2){for(var P=S+A,Z=(B=A==-q||A!=q&&m[P-1]<m[P+1]?m[P+1]:m[P-1]+1)-A;B<k&&Z<_&&i.charAt(B)==h.charAt(Z);)B++,Z++;if(m[P]=B,B>k)H+=2;else if(Z>_)F+=2;else if(C&&(G=S+w-A)>=0&&G<b&&-1!=g[G]&&B>=(x=k-g[G]))return r(i,h,B,Z)}for(var j=-q+Y;j<=q-U;j+=2){for(var x,G=S+j,D=(x=j==-q||j!=q&&g[G-1]<g[G+1]?g[G+1]:g[G-1]+1)-j;x<k&&D<_&&i.charAt(k-x-1)==h.charAt(_-D-1);)x++,D++;if(g[G]=x,x>k)U+=2;else if(D>_)Y+=2;else if(!C){var B;if((P=S+w-j)>=0&&P<b&&-1!=m[P]&&(Z=S+(B=m[P])-P,B>=(x=k-x)))return r(i,h,B,Z)}}}return[[d,i],[1,h]]}(i,h)}(i=i.substring(0,i.length-_),h=h.substring(0,h.length-_));return O&&b.unshift([0,O]),S&&b.push([0,S]),s(b),null!=k&&(b=function n(i,h){var k=function u(i,h){if(0===h)return[0,i];for(var k=0,_=0;_<i.length;_++){var O=i[_];if(O[0]===d||0===O[0]){var S=k+O[1].length;if(h===S)return[_+1,i];if(h<S){i=i.slice();var b=h-k,m=[O[0],O[1].slice(0,b)],g=[O[0],O[1].slice(b)];return i.splice(_,1,m,g),[_+1,i]}k=S}}throw new Error("cursor_pos is out of bounds!")}(i,h),_=k[1],O=k[0],S=_[O],b=_[O+1];if(null==S)return i;if(0!==S[0])return i;if(null!=b&&S[1]+b[1]===b[1]+S[1])return _.splice(O,2,b,S),c(_,O,2);if(null!=b&&0===b[1].indexOf(S[1])){_.splice(O,2,[b[0],S[1]],[0,S[1]]);var m=b[1].slice(S[1].length);return m.length>0&&_.splice(O+2,0,[b[0],m]),c(_,O,3)}return i}(b,k)),function a(i){for(var h=!1,k=function(b){return b.charCodeAt(0)>=56320&&b.charCodeAt(0)<=57343},_=function(b){return b.charCodeAt(b.length-1)>=55296&&b.charCodeAt(b.length-1)<=56319},O=2;O<i.length;O+=1)0===i[O-2][0]&&_(i[O-2][1])&&i[O-1][0]===d&&k(i[O-1][1])&&1===i[O][0]&&k(i[O][1])&&(h=!0,i[O-1][1]=i[O-2][1].slice(-1)+i[O-1][1],i[O][1]=i[O-2][1].slice(-1)+i[O][1],i[O-2][1]=i[O-2][1].slice(0,-1));if(!h)return i;var S=[];for(O=0;O<i.length;O+=1)i[O][1].length>0&&S.push(i[O]);return S}(b)}function r(i,h,k,_){var O=i.substring(0,k),S=h.substring(0,_),b=i.substring(k),m=h.substring(_),g=y(O,S),E=y(b,m);return g.concat(E)}function o(i,h){if(!i||!h||i.charAt(0)!=h.charAt(0))return 0;for(var k=0,_=Math.min(i.length,h.length),O=_,S=0;k<O;)i.substring(S,O)==h.substring(S,O)?S=k=O:_=O,O=Math.floor((_-k)/2+k);return O}function e(i,h){if(!i||!h||i.charAt(i.length-1)!=h.charAt(h.length-1))return 0;for(var k=0,_=Math.min(i.length,h.length),O=_,S=0;k<O;)i.substring(i.length-O,i.length-S)==h.substring(h.length-O,h.length-S)?S=k=O:_=O,O=Math.floor((_-k)/2+k);return O}function s(i){i.push([0,""]);for(var b,h=0,k=0,_=0,O="",S="";h<i.length;)switch(i[h][0]){case 1:_++,S+=i[h][1],h++;break;case d:k++,O+=i[h][1],h++;break;case 0:k+_>1?(0!==k&&0!==_&&(0!==(b=o(S,O))&&(h-k-_>0&&0==i[h-k-_-1][0]?i[h-k-_-1][1]+=S.substring(0,b):(i.splice(0,0,[0,S.substring(0,b)]),h++),S=S.substring(b),O=O.substring(b)),0!==(b=e(S,O))&&(i[h][1]=S.substring(S.length-b)+i[h][1],S=S.substring(0,S.length-b),O=O.substring(0,O.length-b))),0===k?i.splice(h-_,k+_,[1,S]):0===_?i.splice(h-k,k+_,[d,O]):i.splice(h-k-_,k+_,[d,O],[1,S]),h=h-k-_+(k?1:0)+(_?1:0)+1):0!==h&&0==i[h-1][0]?(i[h-1][1]+=i[h][1],i.splice(h,1)):h++,_=0,k=0,O="",S=""}""===i[i.length-1][1]&&i.pop();var m=!1;for(h=1;h<i.length-1;)0==i[h-1][0]&&0==i[h+1][0]&&(i[h][1].substring(i[h][1].length-i[h-1][1].length)==i[h-1][1]?(i[h][1]=i[h-1][1]+i[h][1].substring(0,i[h][1].length-i[h-1][1].length),i[h+1][1]=i[h-1][1]+i[h+1][1],i.splice(h-1,1),m=!0):i[h][1].substring(0,i[h+1][1].length)==i[h+1][1]&&(i[h-1][1]+=i[h+1][1],i[h][1]=i[h][1].substring(i[h+1][1].length)+i[h+1][1],i.splice(h+1,1),m=!0)),h++;m&&s(i)}var l=y;function c(i,h,k){for(var _=h+k-1;_>=0&&_>=h-1;_--)if(_+1<i.length){var O=i[_],S=i[_+1];O[0]===S[1]&&i.splice(_,2,[O[0],O[1]+S[1]])}return i}l.INSERT=1,l.DELETE=d,l.EQUAL=0,I.exports=l},function(I,v){function d(N){var T=[];for(var y in N)T.push(y);return T}(I.exports="function"==typeof Object.keys?Object.keys:d).shim=d},function(I,v){var d="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function N(y){return"[object Arguments]"==Object.prototype.toString.call(y)}function T(y){return y&&"object"==typeof y&&"number"==typeof y.length&&Object.prototype.hasOwnProperty.call(y,"callee")&&!Object.prototype.propertyIsEnumerable.call(y,"callee")||!1}(v=I.exports=d?N:T).supported=N,v.unsupported=T},function(I,v){"use strict";var d=Object.prototype.hasOwnProperty,N="~";function T(){}function y(f,r,o){this.fn=f,this.context=r,this.once=o||!1}function p(){this._events=new T,this._eventsCount=0}Object.create&&(T.prototype=Object.create(null),(new T).__proto__||(N=!1)),p.prototype.eventNames=function(){var o,e,r=[];if(0===this._eventsCount)return r;for(e in o=this._events)d.call(o,e)&&r.push(N?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(o)):r},p.prototype.listeners=function(r,o){var t=this._events[N?N+r:r];if(o)return!!t;if(!t)return[];if(t.fn)return[t.fn];for(var s=0,l=t.length,u=new Array(l);s<l;s++)u[s]=t[s].fn;return u},p.prototype.emit=function(r,o,e,t,s,l){var u=N?N+r:r;if(!this._events[u])return!1;var c,i,n=this._events[u],a=arguments.length;if(n.fn){switch(n.once&&this.removeListener(r,n.fn,void 0,!0),a){case 1:return n.fn.call(n.context),!0;case 2:return n.fn.call(n.context,o),!0;case 3:return n.fn.call(n.context,o,e),!0;case 4:return n.fn.call(n.context,o,e,t),!0;case 5:return n.fn.call(n.context,o,e,t,s),!0;case 6:return n.fn.call(n.context,o,e,t,s,l),!0}for(i=1,c=new Array(a-1);i<a;i++)c[i-1]=arguments[i];n.fn.apply(n.context,c)}else{var k,h=n.length;for(i=0;i<h;i++)switch(n[i].once&&this.removeListener(r,n[i].fn,void 0,!0),a){case 1:n[i].fn.call(n[i].context);break;case 2:n[i].fn.call(n[i].context,o);break;case 3:n[i].fn.call(n[i].context,o,e);break;case 4:n[i].fn.call(n[i].context,o,e,t);break;default:if(!c)for(k=1,c=new Array(a-1);k<a;k++)c[k-1]=arguments[k];n[i].fn.apply(n[i].context,c)}}return!0},p.prototype.on=function(r,o,e){var t=new y(o,e||this),s=N?N+r:r;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],t]:this._events[s].push(t):(this._events[s]=t,this._eventsCount++),this},p.prototype.once=function(r,o,e){var t=new y(o,e||this,!0),s=N?N+r:r;return this._events[s]?this._events[s].fn?this._events[s]=[this._events[s],t]:this._events[s].push(t):(this._events[s]=t,this._eventsCount++),this},p.prototype.removeListener=function(r,o,e,t){var s=N?N+r:r;if(!this._events[s])return this;if(!o)return 0==--this._eventsCount?this._events=new T:delete this._events[s],this;var l=this._events[s];if(l.fn)l.fn===o&&(!t||l.once)&&(!e||l.context===e)&&(0==--this._eventsCount?this._events=new T:delete this._events[s]);else{for(var u=0,n=[],a=l.length;u<a;u++)(l[u].fn!==o||t&&!l[u].once||e&&l[u].context!==e)&&n.push(l[u]);n.length?this._events[s]=1===n.length?n[0]:n:0==--this._eventsCount?this._events=new T:delete this._events[s]}return this},p.prototype.removeAllListeners=function(r){var o;return r?this._events[o=N?N+r:r]&&(0==--this._eventsCount?this._events=new T:delete this._events[o]):(this._events=new T,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prototype.setMaxListeners=function(){return this},p.prefixed=N,p.EventEmitter=p,typeof I<"u"&&(I.exports=p)},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.matchText=v.matchSpacing=v.matchNewline=v.matchBlot=v.matchAttributor=v.default=void 0;var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(K){return typeof K}:function(K){return K&&"function"==typeof Symbol&&K.constructor===Symbol&&K!==Symbol.prototype?"symbol":typeof K},T=function(W,X){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function K(W,X){var ee=[],Q=!0,oe=!1,ae=void 0;try{for(var Oe,le=W[Symbol.iterator]();!(Q=(Oe=le.next()).done)&&(ee.push(Oe.value),!X||ee.length!==X);Q=!0);}catch(Ne){oe=!0,ae=Ne}finally{try{!Q&&le.return&&le.return()}finally{if(oe)throw ae}}return ee}(W,X);throw new TypeError("Invalid attempt to destructure non-iterable instance")},y=function(){function K(W,X){for(var ee=0;ee<X.length;ee++){var Q=X[ee];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(W,Q.key,Q)}}return function(W,X,ee){return X&&K(W.prototype,X),ee&&K(W,ee),W}}(),f=g(d(3)),o=g(d(2)),t=g(d(0)),l=g(d(5)),n=g(d(10)),c=g(d(9)),i=d(36),h=d(37),_=g(d(13)),O=d(26),S=d(38),b=d(39),m=d(40);function g(K){return K&&K.__esModule?K:{default:K}}function E(K,W,X){return W in K?Object.defineProperty(K,W,{value:X,enumerable:!0,configurable:!0,writable:!0}):K[W]=X,K}var H=(0,n.default)("quill:clipboard"),Y="__ql-matcher",U=[[Node.TEXT_NODE,ve],[Node.TEXT_NODE,re],["br",function V(K,W){return G(W,"\n")||W.insert("\n"),W}],[Node.ELEMENT_NODE,re],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,ue],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,function me(K,W){var X={},ee=K.style||{};return ee.fontStyle&&"italic"===Z(K).fontStyle&&(X.italic=!0),ee.fontWeight&&(Z(K).fontWeight.startsWith("bold")||parseInt(Z(K).fontWeight)>=700)&&(X.bold=!0),Object.keys(X).length>0&&(W=B(W,X)),parseFloat(ee.textIndent||0)>0&&(W=(new o.default).insert("\t").concat(W)),W}],["li",function ne(K,W){var X=t.default.query(K);if(null==X||"list-item"!==X.blotName||!G(W,"\n"))return W;for(var ee=-1,Q=K.parentNode;!Q.classList.contains("ql-clipboard");)"list"===(t.default.query(Q)||{}).blotName&&(ee+=1),Q=Q.parentNode;return ee<=0?W:W.compose((new o.default).retain(W.length()-1).retain(1,{indent:ee}))}],["b",D.bind(D,"bold")],["i",D.bind(D,"italic")],["style",function J(){return new o.default}]],q=[i.AlignAttribute,S.DirectionAttribute].reduce(function(K,W){return K[W.keyName]=W,K},{}),A=[i.AlignStyle,h.BackgroundStyle,O.ColorStyle,S.DirectionStyle,b.FontStyle,m.SizeStyle].reduce(function(K,W){return K[W.keyName]=W,K},{}),P=function(K){function W(X,ee){!function w(K,W){if(!(K instanceof W))throw new TypeError("Cannot call a class as a function")}(this,W);var Q=function C(K,W){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||"object"!=typeof W&&"function"!=typeof W?K:W}(this,(W.__proto__||Object.getPrototypeOf(W)).call(this,X,ee));return Q.quill.root.addEventListener("paste",Q.onPaste.bind(Q)),Q.container=Q.quill.addContainer("ql-clipboard"),Q.container.setAttribute("contenteditable",!0),Q.container.setAttribute("tabindex",-1),Q.matchers=[],U.concat(Q.options.matchers).forEach(function(oe){var ae=T(oe,2),Oe=ae[1];!ee.matchVisual&&Oe===ue||Q.addMatcher(ae[0],Oe)}),Q}return function F(K,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function, not "+typeof W);K.prototype=Object.create(W&&W.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(K,W):K.__proto__=W)}(W,K),y(W,[{key:"addMatcher",value:function(ee,Q){this.matchers.push([ee,Q])}},{key:"convert",value:function(ee){if("string"==typeof ee)return this.container.innerHTML=ee.replace(/\>\r?\n +\</g,"><"),this.convert();var Q=this.quill.getFormat(this.quill.selection.savedRange.index);if(Q[_.default.blotName]){var oe=this.container.innerText;return this.container.innerHTML="",(new o.default).insert(oe,E({},_.default.blotName,Q[_.default.blotName]))}var ae=this.prepareMatching(),le=T(ae,2),fe=j(this.container,le[0],le[1]);return G(fe,"\n")&&null==fe.ops[fe.ops.length-1].attributes&&(fe=fe.compose((new o.default).retain(fe.length()-1).delete(1))),H.log("convert",this.container.innerHTML,fe),this.container.innerHTML="",fe}},{key:"dangerouslyPasteHTML",value:function(ee,Q){var oe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof ee)this.quill.setContents(this.convert(ee),Q),this.quill.setSelection(0,l.default.sources.SILENT);else{var ae=this.convert(Q);this.quill.updateContents((new o.default).retain(ee).concat(ae),oe),this.quill.setSelection(ee+ae.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(ee){var Q=this;if(!ee.defaultPrevented&&this.quill.isEnabled()){var oe=this.quill.getSelection(),ae=(new o.default).retain(oe.index),le=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){ae=ae.concat(Q.convert()).delete(oe.length),Q.quill.updateContents(ae,l.default.sources.USER),Q.quill.setSelection(ae.length()-oe.length,l.default.sources.SILENT),Q.quill.scrollingContainer.scrollTop=le,Q.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ee=this,Q=[],oe=[];return this.matchers.forEach(function(ae){var le=T(ae,2),Oe=le[0],Ne=le[1];switch(Oe){case Node.TEXT_NODE:oe.push(Ne);break;case Node.ELEMENT_NODE:Q.push(Ne);break;default:[].forEach.call(ee.container.querySelectorAll(Oe),function(fe){fe[Y]=fe[Y]||[],fe[Y].push(Ne)})}}),[Q,oe]}}]),W}(c.default);function B(K,W,X){return"object"===(typeof W>"u"?"undefined":N(W))?Object.keys(W).reduce(function(ee,Q){return B(ee,Q,W[Q])},K):K.reduce(function(ee,Q){return Q.attributes&&Q.attributes[W]?ee.push(Q):ee.insert(Q.insert,(0,f.default)({},E({},W,X),Q.attributes))},new o.default)}function Z(K){if(K.nodeType!==Node.ELEMENT_NODE)return{};var W="__ql-computed-style";return K[W]||(K[W]=window.getComputedStyle(K))}function G(K,W){for(var X="",ee=K.ops.length-1;ee>=0&&X.length<W.length;--ee){var Q=K.ops[ee];if("string"!=typeof Q.insert)break;X=Q.insert+X}return X.slice(-1*W.length)===W}function x(K){if(0===K.childNodes.length)return!1;var W=Z(K);return["block","list-item"].indexOf(W.display)>-1}function j(K,W,X){return K.nodeType===K.TEXT_NODE?X.reduce(function(ee,Q){return Q(K,ee)},new o.default):K.nodeType===K.ELEMENT_NODE?[].reduce.call(K.childNodes||[],function(ee,Q){var oe=j(Q,W,X);return Q.nodeType===K.ELEMENT_NODE&&(oe=W.reduce(function(ae,le){return le(Q,ae)},oe),oe=(Q[Y]||[]).reduce(function(ae,le){return le(Q,ae)},oe)),ee.concat(oe)},new o.default):new o.default}function D(K,W,X){return B(X,K,!0)}function R(K,W){var X=t.default.Attributor.Attribute.keys(K),ee=t.default.Attributor.Class.keys(K),Q=t.default.Attributor.Style.keys(K),oe={};return X.concat(ee).concat(Q).forEach(function(ae){var le=t.default.query(ae,t.default.Scope.ATTRIBUTE);null!=le&&(oe[le.attrName]=le.value(K),oe[le.attrName])||(null!=(le=q[ae])&&(le.attrName===ae||le.keyName===ae)&&(oe[le.attrName]=le.value(K)||void 0),null!=(le=A[ae])&&(le.attrName===ae||le.keyName===ae)&&(oe[(le=A[ae]).attrName]=le.value(K)||void 0))}),Object.keys(oe).length>0&&(W=B(W,oe)),W}function M(K,W){var X=t.default.query(K);if(null==X)return W;if(X.prototype instanceof t.default.Embed){var ee={},Q=X.value(K);null!=Q&&(ee[X.blotName]=Q,W=(new o.default).insert(ee,X.formats(K)))}else"function"==typeof X.formats&&(W=B(W,X.blotName,X.formats(K)));return W}function re(K,W){return G(W,"\n")||(x(K)||W.length()>0&&K.nextSibling&&x(K.nextSibling))&&W.insert("\n"),W}function ue(K,W){if(x(K)&&null!=K.nextElementSibling&&!G(W,"\n\n")){var X=K.offsetHeight+parseFloat(Z(K).marginTop)+parseFloat(Z(K).marginBottom);K.nextElementSibling.offsetTop>K.offsetTop+1.5*X&&W.insert("\n")}return W}function ve(K,W){var X=K.data;if("O:P"===K.parentNode.tagName)return W.insert(X.trim());if(0===X.trim().length&&K.parentNode.classList.contains("ql-clipboard"))return W;if(!Z(K.parentNode).whiteSpace.startsWith("pre")){var ee=function(oe,ae){return(ae=ae.replace(/[^\u00a0]/g,"")).length<1&&oe?" ":ae};X=(X=X.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,ee.bind(ee,!0)),(null==K.previousSibling&&x(K.parentNode)||null!=K.previousSibling&&x(K.previousSibling))&&(X=X.replace(/^\s+/,ee.bind(ee,!1))),(null==K.nextSibling&&x(K.parentNode)||null!=K.nextSibling&&x(K.nextSibling))&&(X=X.replace(/\s+$/,ee.bind(ee,!1)))}return W.insert(X)}P.DEFAULTS={matchers:[],matchVisual:!0},v.default=P,v.matchAttributor=R,v.matchBlot=M,v.matchNewline=re,v.matchSpacing=ue,v.matchText=ve},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function s(l,u){for(var n=0;n<u.length;n++){var a=u[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,u,n){return u&&s(l.prototype,u),n&&s(l,n),l}}(),T=function s(l,u,n){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,u);if(void 0===a){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,u,n)}if("value"in a)return a.value;var i=a.get;return void 0===i?void 0:i.call(n)};function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}var t=function(s){function l(){return r(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),N(l,[{key:"optimize",value:function(n){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,n),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(function f(s){return s&&s.__esModule?s:{default:s}}(d(6)).default);t.blotName="bold",t.tagName=["STRONG","B"],v.default=t},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.addControls=v.default=void 0;var N=function(g,E){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return function m(g,E){var w=[],C=!0,F=!1,H=void 0;try{for(var U,Y=g[Symbol.iterator]();!(C=(U=Y.next()).done)&&(w.push(U.value),!E||w.length!==E);C=!0);}catch(q){F=!0,H=q}finally{try{!C&&Y.return&&Y.return()}finally{if(F)throw H}}return w}(g,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function m(g,E){for(var w=0;w<E.length;w++){var C=E[w];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(g,C.key,C)}}return function(g,E,w){return E&&m(g.prototype,E),w&&m(g,w),g}}(),p=n(d(2)),r=n(d(0)),e=n(d(5)),s=n(d(10)),u=n(d(9));function n(m){return m&&m.__esModule?m:{default:m}}function i(m,g){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?m:g}var k=(0,s.default)("quill:toolbar"),_=function(m){function g(E,w){!function c(m,g){if(!(m instanceof g))throw new TypeError("Cannot call a class as a function")}(this,g);var H,C=i(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,E,w));if(Array.isArray(C.options.container)){var F=document.createElement("div");S(F,C.options.container),E.container.parentNode.insertBefore(F,E.container),C.container=F}else C.container="string"==typeof C.options.container?document.querySelector(C.options.container):C.options.container;return C.container instanceof HTMLElement?(C.container.classList.add("ql-toolbar"),C.controls=[],C.handlers={},Object.keys(C.options.handlers).forEach(function(Y){C.addHandler(Y,C.options.handlers[Y])}),[].forEach.call(C.container.querySelectorAll("button, select"),function(Y){C.attach(Y)}),C.quill.on(e.default.events.EDITOR_CHANGE,function(Y,U){Y===e.default.events.SELECTION_CHANGE&&C.update(U)}),C.quill.on(e.default.events.SCROLL_OPTIMIZE,function(){var Y=C.quill.selection.getRange(),U=N(Y,1);C.update(U[0])}),C):(H=k.error("Container required for toolbar",C.options),i(C,H))}return function h(m,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);m.prototype=Object.create(g&&g.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(m,g):m.__proto__=g)}(g,m),T(g,[{key:"addHandler",value:function(w,C){this.handlers[w]=C}},{key:"attach",value:function(w){var C=this,F=[].find.call(w.classList,function(Y){return 0===Y.indexOf("ql-")});if(F){if(F=F.slice(3),"BUTTON"===w.tagName&&w.setAttribute("type","button"),null==this.handlers[F]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[F])return void k.warn("ignoring attaching to disabled format",F,w);if(null==r.default.query(F))return void k.warn("ignoring attaching to nonexistent format",F,w)}w.addEventListener("SELECT"===w.tagName?"change":"click",function(Y){var U=void 0;if("SELECT"===w.tagName){if(w.selectedIndex<0)return;var q=w.options[w.selectedIndex];U=!q.hasAttribute("selected")&&(q.value||!1)}else U=!w.classList.contains("ql-active")&&(w.value||!w.hasAttribute("value")),Y.preventDefault();C.quill.focus();var A=C.quill.selection.getRange(),B=N(A,1)[0];if(null!=C.handlers[F])C.handlers[F].call(C,U);else if(r.default.query(F).prototype instanceof r.default.Embed){if(!(U=prompt("Enter "+F)))return;C.quill.updateContents((new p.default).retain(B.index).delete(B.length).insert(function a(m,g,E){return g in m?Object.defineProperty(m,g,{value:E,enumerable:!0,configurable:!0,writable:!0}):m[g]=E,m}({},F,U)),e.default.sources.USER)}else C.quill.format(F,U,e.default.sources.USER);C.update(B)}),this.controls.push([F,w])}}},{key:"update",value:function(w){var C=null==w?{}:this.quill.getFormat(w);this.controls.forEach(function(F){var H=N(F,2),Y=H[0],U=H[1];if("SELECT"===U.tagName){var q=void 0;if(null==w)q=null;else if(null==C[Y])q=U.querySelector("option[selected]");else if(!Array.isArray(C[Y])){var A=C[Y];"string"==typeof A&&(A=A.replace(/\"/g,'\\"')),q=U.querySelector('option[value="'+A+'"]')}null==q?(U.value="",U.selectedIndex=-1):q.selected=!0}else if(null==w)U.classList.remove("ql-active");else if(U.hasAttribute("value")){var P=C[Y]===U.getAttribute("value")||null!=C[Y]&&C[Y].toString()===U.getAttribute("value")||null==C[Y]&&!U.getAttribute("value");U.classList.toggle("ql-active",P)}else U.classList.toggle("ql-active",null!=C[Y])})}}]),g}(u.default);function O(m,g,E){var w=document.createElement("button");w.setAttribute("type","button"),w.classList.add("ql-"+g),null!=E&&(w.value=E),m.appendChild(w)}function S(m,g){Array.isArray(g[0])||(g=[g]),g.forEach(function(E){var w=document.createElement("span");w.classList.add("ql-formats"),E.forEach(function(C){if("string"==typeof C)O(w,C);else{var F=Object.keys(C)[0],H=C[F];Array.isArray(H)?function b(m,g,E){var w=document.createElement("select");w.classList.add("ql-"+g),E.forEach(function(C){var F=document.createElement("option");!1!==C?F.setAttribute("value",C):F.setAttribute("selected","selected"),w.appendChild(F)}),m.appendChild(w)}(w,F,H):O(w,F,H)}}),m.appendChild(w)})}_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var g=this,E=this.quill.getSelection();if(null!=E)if(0==E.length){var w=this.quill.getFormat();Object.keys(w).forEach(function(C){null!=r.default.query(C,r.default.Scope.INLINE)&&g.quill.format(C,!1)})}else this.quill.removeFormat(E,e.default.sources.USER)},direction:function(g){var E=this.quill.getFormat().align;"rtl"===g&&null==E?this.quill.format("align","right",e.default.sources.USER):!g&&"right"===E&&this.quill.format("align",!1,e.default.sources.USER),this.quill.format("direction",g,e.default.sources.USER)},indent:function(g){var E=this.quill.getSelection(),w=this.quill.getFormat(E),C=parseInt(w.indent||0);if("+1"===g||"-1"===g){var F="+1"===g?1:-1;"rtl"===w.direction&&(F*=-1),this.quill.format("indent",C+F,e.default.sources.USER)}},link:function(g){!0===g&&(g=prompt("Enter link URL:")),this.quill.format("link",g,e.default.sources.USER)},list:function(g){var E=this.quill.getSelection(),w=this.quill.getFormat(E);this.quill.format("list","check"===g?"checked"!==w.list&&"unchecked"!==w.list&&"unchecked":g,e.default.sources.USER)}}},v.default=_,v.addControls=S},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function s(l,u){for(var n=0;n<u.length;n++){var a=u[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,u,n){return u&&s(l.prototype,u),n&&s(l,n),l}}(),T=function s(l,u,n){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,u);if(void 0===a){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,u,n)}if("value"in a)return a.value;var i=a.get;return void 0===i?void 0:i.call(n)};var t=function(s){function l(u,n){!function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var a=function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,u));return a.label.innerHTML=n,a.container.classList.add("ql-color-picker"),[].slice.call(a.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(c){c.classList.add("ql-primary")}),a}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),N(l,[{key:"buildItem",value:function(n){var a=T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,n);return a.style.backgroundColor=n.getAttribute("value")||"",a}},{key:"selectItem",value:function(n,a){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,n,a);var c=this.label.querySelector(".ql-color-label"),i=n&&n.getAttribute("data-value")||"";c&&("line"===c.tagName?c.style.stroke=i:c.style.fill=i)}}]),l}(function f(s){return s&&s.__esModule?s:{default:s}}(d(28)).default);v.default=t},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function s(l,u){for(var n=0;n<u.length;n++){var a=u[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,u,n){return u&&s(l.prototype,u),n&&s(l,n),l}}(),T=function s(l,u,n){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,u);if(void 0===a){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,u,n)}if("value"in a)return a.value;var i=a.get;return void 0===i?void 0:i.call(n)};var t=function(s){function l(u,n){!function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var a=function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,u));return a.container.classList.add("ql-icon-picker"),[].forEach.call(a.container.querySelectorAll(".ql-picker-item"),function(c){c.innerHTML=n[c.getAttribute("data-value")||""]}),a.defaultItem=a.container.querySelector(".ql-selected"),a.selectItem(a.defaultItem),a}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),N(l,[{key:"selectItem",value:function(n,a){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,n,a),this.label.innerHTML=(n=n||this.defaultItem).innerHTML}}]),l}(function f(s){return s&&s.__esModule?s:{default:s}}(d(28)).default);v.default=t},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function p(f,r){for(var o=0;o<r.length;o++){var e=r[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(f,e.key,e)}}return function(f,r,o){return r&&p(f.prototype,r),o&&p(f,o),f}}();var y=function(){function p(f,r){var o=this;(function T(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")})(this,p),this.quill=f,this.boundsContainer=r||document.body,this.root=f.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return N(p,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(r){var o=r.left+r.width/2-this.root.offsetWidth/2,e=r.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=e+"px",this.root.classList.remove("ql-flip");var t=this.boundsContainer.getBoundingClientRect(),s=this.root.getBoundingClientRect(),l=0;return s.right>t.right&&(this.root.style.left=o+(l=t.right-s.right)+"px"),s.left<t.left&&(this.root.style.left=o+(l=t.left-s.left)+"px"),s.bottom>t.bottom&&(this.root.style.top=e-(r.bottom-r.top+(s.bottom-s.top))+"px",this.root.classList.add("ql-flip")),l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),p}();v.default=y},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(m,g){if(Array.isArray(m))return m;if(Symbol.iterator in Object(m))return function b(m,g){var E=[],w=!0,C=!1,F=void 0;try{for(var Y,H=m[Symbol.iterator]();!(w=(Y=H.next()).done)&&(E.push(Y.value),!g||E.length!==g);w=!0);}catch(U){C=!0,F=U}finally{try{!w&&H.return&&H.return()}finally{if(C)throw F}}return E}(m,g);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function b(m,g,E){null===m&&(m=Function.prototype);var w=Object.getOwnPropertyDescriptor(m,g);if(void 0===w){var C=Object.getPrototypeOf(m);return null===C?void 0:b(C,g,E)}if("value"in w)return w.value;var F=w.get;return void 0===F?void 0:F.call(E)},y=function(){function b(m,g){for(var E=0;E<g.length;E++){var w=g[E];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(m,w.key,w)}}return function(m,g,E){return g&&b(m.prototype,g),E&&b(m,E),m}}(),f=c(d(3)),o=c(d(8)),e=d(43),t=c(e),l=c(d(27)),u=d(15),a=c(d(41));function c(b){return b&&b.__esModule?b:{default:b}}function i(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function h(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?b:m}function k(b,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(b){function m(g,E){i(this,m),null!=E.modules.toolbar&&null==E.modules.toolbar.container&&(E.modules.toolbar.container=_);var w=h(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,g,E));return w.quill.container.classList.add("ql-snow"),w}return k(m,b),y(m,[{key:"extendToolbar",value:function(E){E.container.classList.add("ql-snow"),this.buildButtons([].slice.call(E.container.querySelectorAll("button")),a.default),this.buildPickers([].slice.call(E.container.querySelectorAll("select")),a.default),this.tooltip=new S(this.quill,this.options.bounds),E.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(w,C){E.handlers.link.call(E,!C.format.link)})}}]),m}(t.default);O.DEFAULTS=(0,f.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(m){if(m){var g=this.quill.getSelection();if(null==g||0==g.length)return;var E=this.quill.getText(g);/^\S+@\S+\.\S+$/.test(E)&&0!==E.indexOf("mailto:")&&(E="mailto:"+E),this.quill.theme.tooltip.edit("link",E)}else this.quill.format("link",!1)}}}}});var S=function(b){function m(g,E){i(this,m);var w=h(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,g,E));return w.preview=w.root.querySelector("a.ql-preview"),w}return k(m,b),y(m,[{key:"listen",value:function(){var E=this;T(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(w){E.root.classList.contains("ql-editing")?E.save():E.edit("link",E.preview.textContent),w.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(w){if(null!=E.linkRange){var C=E.linkRange;E.restoreFocus(),E.quill.formatText(C,"link",!1,o.default.sources.USER),delete E.linkRange}w.preventDefault(),E.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(w,C,F){if(null!=w){if(0===w.length&&F===o.default.sources.USER){var H=E.quill.scroll.descendant(l.default,w.index),Y=N(H,2),U=Y[0];if(null!=U){E.linkRange=new u.Range(w.index-Y[1],U.length());var A=l.default.formats(U.domNode);return E.preview.textContent=A,E.preview.setAttribute("href",A),E.show(),void E.position(E.quill.getBounds(E.linkRange))}}else delete E.linkRange;E.hide()}})}},{key:"show",value:function(){T(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),m}(e.BaseTooltip);S.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),v.default=O},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var T=Q(d(29)),y=d(36),p=d(38),f=d(64),o=Q(d(65)),t=Q(d(66)),s=d(67),l=Q(s),u=d(37),n=d(26),a=d(39),c=d(40),h=Q(d(56)),_=Q(d(68)),S=Q(d(27)),m=Q(d(69)),E=Q(d(70)),C=Q(d(71)),H=Q(d(72)),U=Q(d(73)),q=d(13),A=Q(q),B=Q(d(74)),G=Q(d(75)),j=Q(d(57)),R=Q(d(41)),V=Q(d(28)),ne=Q(d(59)),ue=Q(d(60)),ve=Q(d(61)),W=Q(d(108)),ee=Q(d(62));function Q(oe){return oe&&oe.__esModule?oe:{default:oe}}T.default.register({"attributors/attribute/direction":p.DirectionAttribute,"attributors/class/align":y.AlignClass,"attributors/class/background":u.BackgroundClass,"attributors/class/color":n.ColorClass,"attributors/class/direction":p.DirectionClass,"attributors/class/font":a.FontClass,"attributors/class/size":c.SizeClass,"attributors/style/align":y.AlignStyle,"attributors/style/background":u.BackgroundStyle,"attributors/style/color":n.ColorStyle,"attributors/style/direction":p.DirectionStyle,"attributors/style/font":a.FontStyle,"attributors/style/size":c.SizeStyle},!0),T.default.register({"formats/align":y.AlignClass,"formats/direction":p.DirectionClass,"formats/indent":f.IndentClass,"formats/background":u.BackgroundStyle,"formats/color":n.ColorStyle,"formats/font":a.FontClass,"formats/size":c.SizeClass,"formats/blockquote":o.default,"formats/code-block":A.default,"formats/header":t.default,"formats/list":l.default,"formats/bold":h.default,"formats/code":q.Code,"formats/italic":_.default,"formats/link":S.default,"formats/script":m.default,"formats/strike":E.default,"formats/underline":C.default,"formats/image":H.default,"formats/video":U.default,"formats/list/item":s.ListItem,"modules/formula":B.default,"modules/syntax":G.default,"modules/toolbar":j.default,"themes/bubble":W.default,"themes/snow":ee.default,"ui/icons":R.default,"ui/picker":V.default,"ui/icon-picker":ue.default,"ui/color-picker":ne.default,"ui/tooltip":ve.default},!0),v.default=T.default},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.IndentClass=void 0;var N=function(){function l(u,n){for(var a=0;a<n.length;a++){var c=n[a];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(u,c.key,c)}}return function(u,n,a){return n&&l(u.prototype,n),a&&l(u,a),u}}(),T=function l(u,n,a){null===u&&(u=Function.prototype);var c=Object.getOwnPropertyDescriptor(u,n);if(void 0===c){var i=Object.getPrototypeOf(u);return null===i?void 0:l(i,n,a)}if("value"in c)return c.value;var h=c.get;return void 0===h?void 0:h.call(a)},p=function f(l){return l&&l.__esModule?l:{default:l}}(d(0));function r(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function o(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?l:u}var t=function(l){function u(){return r(this,u),o(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function e(l,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}(u,l),N(u,[{key:"add",value:function(a,c){if("+1"===c||"-1"===c){var i=this.value(a)||0;c="+1"===c?i+1:i-1}return 0===c?(this.remove(a),!0):T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"add",this).call(this,a,c)}},{key:"canAdd",value:function(a,c){return T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,a,c)||T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"canAdd",this).call(this,a,parseInt(c))}},{key:"value",value:function(a){return parseInt(T(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"value",this).call(this,a))||void 0}}]),u}(p.default.Attributor.Class),s=new t("indent","ql-indent",{scope:p.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});v.IndentClass=s},function(I,v,d){"use strict";function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(v,"__esModule",{value:!0});var o=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function y(e){return e&&e.__esModule?e:{default:e}}(d(4)).default);o.blotName="blockquote",o.tagName="blockquote",v.default=o},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function t(s,l){for(var u=0;u<l.length;u++){var n=l[u];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(s,n.key,n)}}return function(s,l,u){return l&&t(s.prototype,l),u&&t(s,u),s}}();function f(t,s){if(!(t instanceof s))throw new TypeError("Cannot call a class as a function")}function r(t,s){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?t:s}var e=function(t){function s(){return f(this,s),r(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return function o(t,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);t.prototype=Object.create(s&&s.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(t,s):t.__proto__=s)}(s,t),N(s,null,[{key:"formats",value:function(u){return this.tagName.indexOf(u.tagName)+1}}]),s}(function p(t){return t&&t.__esModule?t:{default:t}}(d(4)).default);e.blotName="header",e.tagName=["H1","H2","H3","H4","H5","H6"],v.default=e},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.ListItem=void 0;var N=function(){function i(h,k){for(var _=0;_<k.length;_++){var O=k[_];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(h,O.key,O)}}return function(h,k,_){return k&&i(h.prototype,k),_&&i(h,_),h}}(),T=function i(h,k,_){null===h&&(h=Function.prototype);var O=Object.getOwnPropertyDescriptor(h,k);if(void 0===O){var S=Object.getPrototypeOf(h);return null===S?void 0:i(S,k,_)}if("value"in O)return O.value;var b=O.get;return void 0===b?void 0:b.call(_)},p=t(d(0)),r=t(d(4)),e=t(d(25));function t(i){return i&&i.__esModule?i:{default:i}}function l(i,h){if(!(i instanceof h))throw new TypeError("Cannot call a class as a function")}function u(i,h){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?i:h}function n(i,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);i.prototype=Object.create(h&&h.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(i,h):i.__proto__=h)}var a=function(i){function h(){return l(this,h),u(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return n(h,i),N(h,[{key:"format",value:function(_,O){_!==c.blotName||O?T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"format",this).call(this,_,O):this.replaceWith(p.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(_,O){return this.parent.isolate(this.offset(this.parent),this.length()),_===this.parent.statics.blotName?(this.parent.replaceWith(_,O),this):(this.parent.unwrap(),T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"replaceWith",this).call(this,_,O))}}],[{key:"formats",value:function(_){return _.tagName===this.tagName?void 0:T(h.__proto__||Object.getPrototypeOf(h),"formats",this).call(this,_)}}]),h}(r.default);a.blotName="list-item",a.tagName="LI";var c=function(i){function h(k){l(this,h);var _=u(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,k)),O=function(b){if(b.target.parentNode===k){var m=_.statics.formats(k),g=p.default.find(b.target);"checked"===m?g.format("list","unchecked"):"unchecked"===m&&g.format("list","checked")}};return k.addEventListener("touchstart",O),k.addEventListener("mousedown",O),_}return n(h,i),N(h,null,[{key:"create",value:function(_){var O="ordered"===_?"OL":"UL",S=T(h.__proto__||Object.getPrototypeOf(h),"create",this).call(this,O);return("checked"===_||"unchecked"===_)&&S.setAttribute("data-checked","checked"===_),S}},{key:"formats",value:function(_){return"OL"===_.tagName?"ordered":"UL"===_.tagName?_.hasAttribute("data-checked")?"true"===_.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),N(h,[{key:"format",value:function(_,O){this.children.length>0&&this.children.tail.format(_,O)}},{key:"formats",value:function(){return function s(i,h,k){return h in i?Object.defineProperty(i,h,{value:k,enumerable:!0,configurable:!0,writable:!0}):i[h]=k,i}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(_,O){if(_ instanceof a)T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,_,O);else{var S=null==O?this.length():O.offset(this),b=this.split(S);b.parent.insertBefore(_,b)}}},{key:"optimize",value:function(_){T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,_);var O=this.next;null!=O&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(_){if(_.statics.blotName!==this.statics.blotName){var O=p.default.create(this.statics.defaultChild);_.moveChildren(O),this.appendChild(O)}T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"replace",this).call(this,_)}}]),h}(e.default);c.blotName="list",c.scope=p.default.Scope.BLOCK_BLOT,c.tagName=["OL","UL"],c.defaultChild="list-item",c.allowedChildren=[a],v.ListItem=a,v.default=c},function(I,v,d){"use strict";function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(v,"__esModule",{value:!0});var o=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function y(e){return e&&e.__esModule?e:{default:e}}(d(56)).default);o.blotName="italic",o.tagName=["EM","I"],v.default=o},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function s(l,u){for(var n=0;n<u.length;n++){var a=u[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}}return function(l,u,n){return u&&s(l.prototype,u),n&&s(l,n),l}}(),T=function s(l,u,n){null===l&&(l=Function.prototype);var a=Object.getOwnPropertyDescriptor(l,u);if(void 0===a){var c=Object.getPrototypeOf(l);return null===c?void 0:s(c,u,n)}if("value"in a)return a.value;var i=a.get;return void 0===i?void 0:i.call(n)};function r(s,l){if(!(s instanceof l))throw new TypeError("Cannot call a class as a function")}function o(s,l){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?s:l}var t=function(s){function l(){return r(this,l),o(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function e(s,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);s.prototype=Object.create(l&&l.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(s,l):s.__proto__=l)}(l,s),N(l,null,[{key:"create",value:function(n){return"super"===n?document.createElement("sup"):"sub"===n?document.createElement("sub"):T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,n)}},{key:"formats",value:function(n){return"SUB"===n.tagName?"sub":"SUP"===n.tagName?"super":void 0}}]),l}(function f(s){return s&&s.__esModule?s:{default:s}}(d(6)).default);t.blotName="script",t.tagName=["SUB","SUP"],v.default=t},function(I,v,d){"use strict";function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(v,"__esModule",{value:!0});var o=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function y(e){return e&&e.__esModule?e:{default:e}}(d(6)).default);o.blotName="strike",o.tagName="S",v.default=o},function(I,v,d){"use strict";function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(v,"__esModule",{value:!0});var o=function(e){function t(){return p(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(function y(e){return e&&e.__esModule?e:{default:e}}(d(6)).default);o.blotName="underline",o.tagName="U",v.default=o},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function u(n,a){for(var c=0;c<a.length;c++){var i=a[c];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}return function(n,a,c){return a&&u(n.prototype,a),c&&u(n,c),n}}(),T=function u(n,a,c){null===n&&(n=Function.prototype);var i=Object.getOwnPropertyDescriptor(n,a);if(void 0===i){var h=Object.getPrototypeOf(n);return null===h?void 0:u(h,a,c)}if("value"in i)return i.value;var k=i.get;return void 0===k?void 0:k.call(c)},p=function r(u){return u&&u.__esModule?u:{default:u}}(d(0)),f=d(27);function o(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function e(u,n){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?u:n}var s=["alt","height","width"],l=function(u){function n(){return o(this,n),e(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function t(u,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);u.prototype=Object.create(n&&n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(u,n):u.__proto__=n)}(n,u),N(n,[{key:"format",value:function(c,i){s.indexOf(c)>-1?i?this.domNode.setAttribute(c,i):this.domNode.removeAttribute(c):T(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,c,i)}}],[{key:"create",value:function(c){var i=T(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,c);return"string"==typeof c&&i.setAttribute("src",this.sanitize(c)),i}},{key:"formats",value:function(c){return s.reduce(function(i,h){return c.hasAttribute(h)&&(i[h]=c.getAttribute(h)),i},{})}},{key:"match",value:function(c){return/\.(jpe?g|gif|png)$/.test(c)||/^data:image\/.+;base64/.test(c)}},{key:"sanitize",value:function(c){return(0,f.sanitize)(c,["http","https","data"])?c:"//:0"}},{key:"value",value:function(c){return c.getAttribute("src")}}]),n}(p.default.Embed);l.blotName="image",l.tagName="IMG",v.default=l},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0});var N=function(){function u(n,a){for(var c=0;c<a.length;c++){var i=a[c];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}return function(n,a,c){return a&&u(n.prototype,a),c&&u(n,c),n}}(),T=function u(n,a,c){null===n&&(n=Function.prototype);var i=Object.getOwnPropertyDescriptor(n,a);if(void 0===i){var h=Object.getPrototypeOf(n);return null===h?void 0:u(h,a,c)}if("value"in i)return i.value;var k=i.get;return void 0===k?void 0:k.call(c)},y=d(4),f=function r(u){return u&&u.__esModule?u:{default:u}}(d(27));function o(u,n){if(!(u instanceof n))throw new TypeError("Cannot call a class as a function")}function e(u,n){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?u:n}var s=["height","width"],l=function(u){function n(){return o(this,n),e(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return function t(u,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);u.prototype=Object.create(n&&n.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(u,n):u.__proto__=n)}(n,u),N(n,[{key:"format",value:function(c,i){s.indexOf(c)>-1?i?this.domNode.setAttribute(c,i):this.domNode.removeAttribute(c):T(n.prototype.__proto__||Object.getPrototypeOf(n.prototype),"format",this).call(this,c,i)}}],[{key:"create",value:function(c){var i=T(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,c);return i.setAttribute("frameborder","0"),i.setAttribute("allowfullscreen",!0),i.setAttribute("src",this.sanitize(c)),i}},{key:"formats",value:function(c){return s.reduce(function(i,h){return c.hasAttribute(h)&&(i[h]=c.getAttribute(h)),i},{})}},{key:"sanitize",value:function(c){return f.default.sanitize(c)}},{key:"value",value:function(c){return c.getAttribute("src")}}]),n}(y.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",v.default=l},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.FormulaBlot=void 0;var N=function(){function c(i,h){for(var k=0;k<h.length;k++){var _=h[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(i,_.key,_)}}return function(i,h,k){return h&&c(i.prototype,h),k&&c(i,k),i}}(),T=function c(i,h,k){null===i&&(i=Function.prototype);var _=Object.getOwnPropertyDescriptor(i,h);if(void 0===_){var O=Object.getPrototypeOf(i);return null===O?void 0:c(O,h,k)}if("value"in _)return _.value;var S=_.get;return void 0===S?void 0:S.call(k)},p=t(d(35)),r=t(d(5)),e=t(d(9));function t(c){return c&&c.__esModule?c:{default:c}}function s(c,i){if(!(c instanceof i))throw new TypeError("Cannot call a class as a function")}function l(c,i){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?c:i}function u(c,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);c.prototype=Object.create(i&&i.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(c,i):c.__proto__=i)}var n=function(c){function i(){return s(this,i),l(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return u(i,c),N(i,null,[{key:"create",value:function(k){var _=T(i.__proto__||Object.getPrototypeOf(i),"create",this).call(this,k);return"string"==typeof k&&(window.katex.render(k,_,{throwOnError:!1,errorColor:"#f00"}),_.setAttribute("data-value",k)),_}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),i}(p.default);n.blotName="formula",n.className="ql-formula",n.tagName="SPAN";var a=function(c){function i(){s(this,i);var h=l(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return h}return u(i,c),N(i,null,[{key:"register",value:function(){r.default.register(n,!0)}}]),i}(e.default);v.FormulaBlot=n,v.default=a},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.CodeToken=v.CodeBlock=void 0;var N=function(){function k(_,O){for(var S=0;S<O.length;S++){var b=O[S];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(_,b.key,b)}}return function(_,O,S){return O&&k(_.prototype,O),S&&k(_,S),_}}(),T=function k(_,O,S){null===_&&(_=Function.prototype);var b=Object.getOwnPropertyDescriptor(_,O);if(void 0===b){var m=Object.getPrototypeOf(_);return null===m?void 0:k(m,O,S)}if("value"in b)return b.value;var g=b.get;return void 0===g?void 0:g.call(S)},p=l(d(0)),r=l(d(5)),e=l(d(9));function l(k){return k&&k.__esModule?k:{default:k}}function u(k,_){if(!(k instanceof _))throw new TypeError("Cannot call a class as a function")}function n(k,_){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!_||"object"!=typeof _&&"function"!=typeof _?k:_}function a(k,_){if("function"!=typeof _&&null!==_)throw new TypeError("Super expression must either be null or a function, not "+typeof _);k.prototype=Object.create(_&&_.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(k,_):k.__proto__=_)}var c=function(k){function _(){return u(this,_),n(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return a(_,k),N(_,[{key:"replaceWith",value:function(S){this.domNode.textContent=this.domNode.textContent,this.attach(),T(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"replaceWith",this).call(this,S)}},{key:"highlight",value:function(S){var b=this.domNode.textContent;this.cachedText!==b&&((b.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=S(b),this.domNode.normalize(),this.attach()),this.cachedText=b)}}]),_}(l(d(13)).default);c.className="ql-syntax";var i=new p.default.Attributor.Class("token","hljs",{scope:p.default.Scope.INLINE}),h=function(k){function _(O,S){u(this,_);var b=n(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,O,S));if("function"!=typeof b.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var m=null;return b.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(m),m=setTimeout(function(){b.highlight(),m=null},b.options.interval)}),b.highlight(),b}return a(_,k),N(_,null,[{key:"register",value:function(){r.default.register(i,!0),r.default.register(c,!0)}}]),N(_,[{key:"highlight",value:function(){var S=this;if(!this.quill.selection.composing){this.quill.update(r.default.sources.USER);var b=this.quill.getSelection();this.quill.scroll.descendants(c).forEach(function(m){m.highlight(S.options.highlight)}),this.quill.update(r.default.sources.SILENT),null!=b&&this.quill.setSelection(b,r.default.sources.SILENT)}}}]),_}(e.default);h.DEFAULTS={highlight:null==window.hljs?null:function(k){return window.hljs.highlightAuto(k).value},interval:1e3},v.CodeBlock=c,v.CodeToken=i,v.default=h},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(I,v){I.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(I,v){I.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(I,v){I.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(I,v){I.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(I,v){I.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(I,v,d){"use strict";Object.defineProperty(v,"__esModule",{value:!0}),v.default=v.BubbleTooltip=void 0;var N=function _(O,S,b){null===O&&(O=Function.prototype);var m=Object.getOwnPropertyDescriptor(O,S);if(void 0===m){var g=Object.getPrototypeOf(O);return null===g?void 0:_(g,S,b)}if("value"in m)return m.value;var E=m.get;return void 0===E?void 0:E.call(b)},T=function(){function _(O,S){for(var b=0;b<S.length;b++){var m=S[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(O,m.key,m)}}return function(O,S,b){return S&&_(O.prototype,S),b&&_(O,b),O}}(),p=u(d(3)),r=u(d(8)),o=d(43),e=u(o),t=d(15),l=u(d(41));function u(_){return _&&_.__esModule?_:{default:_}}function n(_,O){if(!(_ instanceof O))throw new TypeError("Cannot call a class as a function")}function a(_,O){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?_:O}function c(_,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);_.prototype=Object.create(O&&O.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(_,O):_.__proto__=O)}var i=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],h=function(_){function O(S,b){n(this,O),null!=b.modules.toolbar&&null==b.modules.toolbar.container&&(b.modules.toolbar.container=i);var m=a(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,S,b));return m.quill.container.classList.add("ql-bubble"),m}return c(O,_),T(O,[{key:"extendToolbar",value:function(b){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(b.container),this.buildButtons([].slice.call(b.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(b.container.querySelectorAll("select")),l.default)}}]),O}(e.default);h.DEFAULTS=(0,p.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(_){function O(S,b){n(this,O);var m=a(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,S,b));return m.quill.on(r.default.events.EDITOR_CHANGE,function(g,E,w,C){if(g===r.default.events.SELECTION_CHANGE)if(null!=E&&E.length>0&&C===r.default.sources.USER){m.show(),m.root.style.left="0px",m.root.style.width="",m.root.style.width=m.root.offsetWidth+"px";var F=m.quill.getLines(E.index,E.length);if(1===F.length)m.position(m.quill.getBounds(E));else{var H=F[F.length-1],Y=m.quill.getIndex(H),U=Math.min(H.length()-1,E.index+E.length-Y),q=m.quill.getBounds(new t.Range(Y,U));m.position(q)}}else document.activeElement!==m.textbox&&m.quill.hasFocus()&&m.hide()}),m}return c(O,_),T(O,[{key:"listen",value:function(){var b=this;N(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){b.root.classList.remove("ql-editing")}),this.quill.on(r.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!b.root.classList.contains("ql-hidden")){var m=b.quill.getSelection();null!=m&&b.position(b.quill.getBounds(m))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(b){var m=N(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,b),g=this.root.querySelector(".ql-tooltip-arrow");if(g.style.marginLeft="",0===m)return m;g.style.marginLeft=-1*m-g.offsetWidth/2+"px"}}]),O}(o.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),v.BubbleTooltip=k,v.default=h},function(I,v,d){I.exports=d(63)}]).default}}]);